@africanies/angular-web-sdk 0.1.1 → 0.1.2

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 (71) hide show
  1. package/.angular/cache/22.0.9/playground/.tsbuildinfo +1 -1
  2. package/.angular/cache/22.0.9/playground/angular-compiler.db +0 -0
  3. package/.angular/cache/22.0.9/playground/angular-compiler.db-lock +0 -0
  4. package/.github/workflows/deploy-demo.yml +63 -0
  5. package/.nx/cache/run.json +14 -14
  6. package/.nx/cache/terminalOutputs/13524438527920092277 +196 -21
  7. package/.nx/cache/terminalOutputs/14153928176747262656 +45 -21
  8. package/.nx/cache/terminalOutputs/14416694322692463866 +108 -21
  9. package/.nx/cache/terminalOutputs/15255861479705594703 +51 -21
  10. package/.nx/cache/terminalOutputs/18132311043100376919 +315 -21
  11. package/.nx/cache/terminalOutputs/2436781291243085315 +8 -0
  12. package/.nx/cache/terminalOutputs/6664915487114632770 +44 -21
  13. package/.nx/cache/terminalOutputs/8767335728598176888 +37 -0
  14. package/.nx/cache/terminalOutputs/9739655320223921719 +47 -0
  15. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db +0 -0
  16. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-shm +0 -0
  17. package/.nx/workspace-data/0091ABA9-5C90-580D-953C-8C94E763ADB5-v3.db-wal +0 -0
  18. package/.nx/workspace-data/d/daemon.log +1367 -0
  19. package/.nx/workspace-data/d/server-process.json +2 -2
  20. package/.nx/workspace-data/file-map.json +3065 -3108
  21. package/.nx/workspace-data/nx_files.nxt +0 -0
  22. package/.nx/workspace-data/project-graph.json +6 -6
  23. package/.nx/workspace-data/project-graph.lock +0 -0
  24. package/.nx/workspace-data/source-maps.json +80 -0
  25. package/.pnpm-store/v11/index.db +0 -0
  26. package/README.md +13 -1
  27. package/apps/playground/src/app/app.config.ts +28 -3
  28. package/dist/apps/playground/3rdpartylicenses.txt +415 -0
  29. package/dist/apps/playground/browser/assets/africanies-icons/icons.sprite.svg +1844 -0
  30. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo-mini.png +0 -0
  31. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo.png +0 -0
  32. package/dist/apps/playground/browser/assets/africanies-ui/brand/africanies-logo.svg +5 -0
  33. package/dist/apps/playground/browser/assets/africanies-ui/carriers/dhl.svg +7 -0
  34. package/dist/apps/playground/browser/chunk--VJ6U9Ev.js +2 -0
  35. package/dist/apps/playground/browser/chunk-B1QVY0hA.js +1 -0
  36. package/dist/apps/playground/browser/chunk-BHI7MG2Y.js +1 -0
  37. package/dist/apps/playground/browser/chunk-BJ5IK8Re.js +1 -0
  38. package/dist/apps/playground/browser/chunk-BOSfyWK2.js +1 -0
  39. package/dist/apps/playground/browser/chunk-BYPboEAg.js +1 -0
  40. package/dist/apps/playground/browser/chunk-BZBRtbFJ.js +1 -0
  41. package/dist/apps/playground/browser/chunk-BdrGkq40.js +1 -0
  42. package/dist/apps/playground/browser/chunk-Bej5a2xR.js +1 -0
  43. package/dist/apps/playground/browser/chunk-Bg3QC1eL.js +1 -0
  44. package/dist/apps/playground/browser/chunk-BsnTz1m5.js +1 -0
  45. package/dist/apps/playground/browser/chunk-C5kLunTi.js +1 -0
  46. package/dist/apps/playground/browser/chunk-C6tu3y81.js +1 -0
  47. package/dist/apps/playground/browser/chunk-C96WSpFp.js +1 -0
  48. package/dist/apps/playground/browser/chunk-CCnOVzbz.js +2 -0
  49. package/dist/apps/playground/browser/chunk-CERmZ9We.js +1 -0
  50. package/dist/apps/playground/browser/chunk-CZBTrY_H.js +68 -0
  51. package/dist/apps/playground/browser/chunk-Cg7brw6x.js +4070 -0
  52. package/dist/apps/playground/browser/chunk-CjTyStrr.js +1 -0
  53. package/dist/apps/playground/browser/chunk-CjYlnYC7.js +1 -0
  54. package/dist/apps/playground/browser/chunk-ClSUoZp8.js +292 -0
  55. package/dist/apps/playground/browser/chunk-CsrxfMap.js +1 -0
  56. package/dist/apps/playground/browser/chunk-CtndMAe2.js +1 -0
  57. package/dist/apps/playground/browser/chunk-Cy-ZOZI8.js +1 -0
  58. package/dist/apps/playground/browser/chunk-D3-jrtyv.js +1 -0
  59. package/dist/apps/playground/browser/chunk-D3vgrlDF.js +1 -0
  60. package/dist/apps/playground/browser/chunk-D48aVVTv.js +1 -0
  61. package/dist/apps/playground/browser/chunk-D4V3eSCv.js +1 -0
  62. package/dist/apps/playground/browser/chunk-DK715t6D.js +1 -0
  63. package/dist/apps/playground/browser/chunk-DUkct7WP.js +1 -0
  64. package/dist/apps/playground/browser/chunk-Y9ccR-I6.js +1 -0
  65. package/dist/apps/playground/browser/chunk-lfUHaltX.js +1 -0
  66. package/dist/apps/playground/browser/favicon.ico +0 -0
  67. package/dist/apps/playground/browser/index.html +14 -0
  68. package/dist/apps/playground/browser/main-WEJC3BLT.js +148 -0
  69. package/dist/apps/playground/browser/styles-4FSELHYD.css +1 -0
  70. package/dist/apps/playground/prerendered-routes.json +3 -0
  71. package/package.json +31 -8
@@ -0,0 +1,148 @@
1
+ var Vp$1=Object.create;var Di$2=Object.defineProperty,Hp$1=Object.defineProperties,Bp$1=Object.getOwnPropertyDescriptor,$p$1=Object.getOwnPropertyDescriptors,Up$1=Object.getOwnPropertyNames,vr$2=Object.getOwnPropertySymbols,Wp$1=Object.getPrototypeOf,wi=Object.prototype.hasOwnProperty,_c$2=Object.prototype.propertyIsEnumerable;var bc$2=(e,t,n)=>t in e?Di$2(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||={})wi.call(t,n)&&bc$2(e,n,t[n]);if(vr$2)for(var n of vr$2(t))_c$2.call(t,n)&&bc$2(e,n,t[n]);return e},U$1=(e,t)=>Hp$1(e,$p$1(t));var qp$1=(e,t)=>{var n={};for(var r in e)wi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vr$2)for(var r of vr$2(e))t.indexOf(r)<0&&_c$2.call(e,r)&&(n[r]=e[r]);return n};var hD=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}};var Gp$1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Up$1(t))!wi.call(e,o)&&o!==n&&Di$2(e,o,{get:()=>t[o],enumerable:!(r=Bp$1(t,o))||r.enumerable});return e};var gD=(e,t,n)=>(n=e!=null?Vp$1(Wp$1(e)):{},Gp$1(Di$2(n,"default",{value:e,enumerable:true}),e));function y(e){return typeof e=="function"}function Er$2(e){return e&&y(e.schedule)}function Mc$2(e){return e[e.length-1]}function Ir$2(e){return y(Mc$2(e))?e.pop():void 0}function qe(e){return Er$2(Mc$2(e))?e.pop():void 0}function Sc$2(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i);})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u));}catch(d){s(d);}}function c(u){try{l(r.throw(u));}catch(d){s(d);}}function l(u){u.done?i(u.value):o(u.value).then(a,c);}l((r=r.apply(e,[])).next());})}function Nc$2(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return {next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt$2(e){return this instanceof dt$2?(this.v=e,this):new dt$2(e)}function xc$2(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(h){return Promise.resolve(h).then(f,d)}}function a(f,h){r[f]&&(o[f]=function(D){return new Promise(function(S,O){i.push([f,D,S,O])>1||c(f,D);})},h&&(o[f]=h(o[f])));}function c(f,h){try{l(r[f](h));}catch(D){p(i[0][3],D);}}function l(f){f.value instanceof dt$2?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f);}function u(f){c("next",f);}function d(f){c("throw",f);}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1]);}}function Ac$2(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Nc$2=="function"?Nc$2(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value);})};}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a});},s);}}var $t$2=e=>e&&typeof e.length=="number"&&typeof e!="function";function Dr$2(e){return y(e?.then)}function Ge(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack;});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wr$2=Ge(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2
+ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
3
+ `)}`:"",this.name="UnsubscriptionError",this.errors=n;});function ft$2(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1);}}var W$2=class e{constructor(t){this.initialTeardown=t,this.closed=false,this._parentage=null,this._finalizers=null;}unsubscribe(){let t;if(!this.closed){this.closed=true;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(y(r))try{r();}catch(i){t=i instanceof wr$2?i.errors:[i];}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Rc$2(i);}catch(s){t=t??[],s instanceof wr$2?t=[...t,...s.errors]:t.push(s);}}if(t)throw new wr$2(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Rc$2(t);else {if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this);}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t);}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t;}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ft$2(n,t);}remove(t){let{_finalizers:n}=this;n&&ft$2(n,t),t instanceof e&&t._removeParent(this);}};W$2.EMPTY=(()=>{let e=new W$2;return e.closed=true,e})();var Ti$1=W$2.EMPTY;function Tr$2(e){return e instanceof W$2||e&&"closed"in e&&y(e.remove)&&y(e.add)&&y(e.unsubscribe)}function Rc$2(e){y(e)?e():e.unsubscribe();}var ce={Promise:void 0};var Ut$2={setTimeout(e,t,...n){return setTimeout(e,t,...n)},clearTimeout(e){return (clearTimeout)(e)},delegate:void 0};function Cr$2(e){Ut$2.setTimeout(()=>{throw e});}function Re(){}function Wt$2(e){e();}var ht$2=class ht extends W$2{constructor(t){super(),this.isStopped=false,t?(this.destination=t,Tr$2(t)&&t.add(this)):this.destination=Zp$1;}static create(t,n,r){return new ze$3(t,n,r)}next(t){this.isStopped?_i():this._next(t);}error(t){this.isStopped?_i():(this.isStopped=true,this._error(t));}complete(){this.isStopped?_i():(this.isStopped=true,this._complete());}unsubscribe(){this.closed||(this.isStopped=true,super.unsubscribe(),this.destination=null);}_next(t){this.destination.next(t);}_error(t){try{this.destination.error(t);}finally{this.unsubscribe();}}_complete(){try{this.destination.complete();}finally{this.unsubscribe();}}};var Mi=class{constructor(t){this.partialObserver=t;}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t);}catch(r){br$1(r);}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t);}catch(r){br$1(r);}else br$1(t);}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete();}catch(n){br$1(n);}}},ze$3=class ze extends ht$2{constructor(t,n,r){super();let o;if(y(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else {o=t;}this.destination=new Mi(o);}};function br$1(e){Cr$2(e);}function Qp$1(e){throw e}function _i(e,t){}var Zp$1={closed:true,next:Re,error:Qp$1,complete:Re};var qt$2=typeof Symbol=="function"&&Symbol.observable||"@@observable";function J(e){return e}function Yp$1(...e){return Ni$1(e)}function Ni$1(e){return e.length===0?J:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var _=(()=>{class e{constructor(n){n&&(this._subscribe=n);}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Jp$1(n)?n:new ze$3(n,r,o);return Wt$2(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i));}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r);}}forEach(n,r){return r=Fc$2(r),new r((o,i)=>{let s=new ze$3({next:a=>{try{n(a);}catch(c){i(c),s.unsubscribe();}},error:i,complete:o});this.subscribe(s);})}_subscribe(n){var r;return (r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[qt$2](){return this}pipe(...n){return Ni$1(n)(this)}toPromise(n){return n=Fc$2(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i));})}}return e.create=t=>new e(t),e})();function Fc$2(e){var t;return (t=e??ce.Promise)!==null&&t!==void 0?t:Promise}function Kp$1(e){return e&&y(e.next)&&y(e.error)&&y(e.complete)}function Jp$1(e){return e&&e instanceof ht$2||Kp$1(e)&&Tr$2(e)}function _r$2(e){return y(e[qt$2])}function Mr$2(e){return Symbol.asyncIterator&&y(e?.[Symbol.asyncIterator])}function Nr$2(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Xp$1(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sr$2=Xp$1();function xr$2(e){return y(e?.[Sr$2])}function Ar$1(e){return xc$2(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield dt$2(n.read());if(o)return yield dt$2(void 0);yield yield dt$2(r);}}finally{n.releaseLock();}})}function Rr$2(e){return y(e?.getReader)}function M(e){if(e instanceof _)return e;if(e!=null){if(_r$2(e))return eh$1(e);if($t$2(e))return th$1(e);if(Dr$2(e))return nh$1(e);if(Mr$2(e))return jc$2(e);if(xr$2(e))return rh$1(e);if(Rr$2(e))return oh$1(e)}throw Nr$2(e)}function eh$1(e){return new _(t=>{let n=e[qt$2]();if(y(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function th$1(e){return new _(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete();})}function nh$1(e){return new _(t=>{e.then(n=>{t.closed||(t.next(n),t.complete());},n=>t.error(n)).then(null,Cr$2);})}function rh$1(e){return new _(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete();})}function jc$2(e){return new _(t=>{ih$1(e,t).catch(n=>t.error(n));})}function oh$1(e){return jc$2(Ar$1(e))}function ih$1(e,t){var n,r,o,i;return Sc$2(this,void 0,void 0,function*(){try{for(n=Ac$2(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s};}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n));}finally{if(o)throw o.error}}t.complete();})}function G$2(e,t,n,r=0,o=false){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe();},r);if(e.add(i),!o)return i}function sh$1(e){return y(e?.lift)}function w(e){return t=>{if(sh$1(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r);}});throw new TypeError("Unable to lift unknown Observable type")}}function E(e,t,n,r,o){return new Si(e,t,n,r,o)}var Si=class extends ht$2{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a);}catch(c){t.error(c);}}:super._next,this._error=o?function(a){try{o(a);}catch(c){t.error(c);}finally{this.unsubscribe();}}:super._error,this._complete=r?function(){try{r();}catch(a){t.error(a);}finally{this.unsubscribe();}}:super._complete;}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this));}}};function kr$2(e,t=0){return w((n,r)=>{n.subscribe(E(r,o=>G$2(r,e,()=>r.next(o),t),()=>G$2(r,e,()=>r.complete(),t),o=>G$2(r,e,()=>r.error(o),t)));})}function Or$2(e,t=0){return w((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t));})}function Vc$2(e,t){return M(e).pipe(Or$2(t),kr$2(t))}function Hc$2(e,t){return M(e).pipe(Or$2(t),kr$2(t))}function Bc$2(e,t){return new _(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule());})})}function $c$2(e,t){return new _(n=>{let r;return G$2(n,t,()=>{r=e[Sr$2](),G$2(n,t,()=>{let o,i;try{({value:o,done:i}=r.next());}catch(s){n.error(s);return}i?n.complete():n.next(o);},0,true);}),()=>y(r?.return)&&r.return()})}function Lr$2(e,t){if(!e)throw new Error("Iterable cannot be null");return new _(n=>{G$2(n,t,()=>{let r=e[Symbol.asyncIterator]();G$2(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value);});},0,true);});})}function Uc$2(e,t){return Lr$2(Ar$1(e),t)}function Wc$2(e,t){if(e!=null){if(_r$2(e))return Vc$2(e,t);if($t$2(e))return Bc$2(e,t);if(Dr$2(e))return Hc$2(e,t);if(Mr$2(e))return Lr$2(e,t);if(xr$2(e))return $c$2(e,t);if(Rr$2(e))return Uc$2(e,t)}throw Nr$2(e)}function Qe$2(e,t){return t?Wc$2(e,t):M(e)}function ah$1(...e){let t=qe(e);return Qe$2(e,t)}function ch$1(e,t){let n=y(e)?e:()=>e,r=o=>o.error(n());return new _(r)}var gt$1=Ge(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence";});function lh$1(e,t){return new Promise((r,o)=>{let i=new ze$3({next:s=>{r(s),i.unsubscribe();},error:o,complete:()=>{o(new gt$1);}});e.subscribe(i);})}function ve$2(e,t){return w((n,r)=>{let o=0;n.subscribe(E(r,i=>{r.next(e.call(t,i,o++));}));})}function qc$2(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=false,p=()=>{d&&!c.length&&!l&&t.complete();},f=D=>l<r?h(D):c.push(D),h=D=>{l++;let S=false;M(n(D,u++)).subscribe(E(t,O=>{t.next(O);},()=>{S=true;},void 0,()=>{if(S)try{for(l--;c.length&&l<r;){let O=c.shift();s?G$2(t,s,()=>h(O)):h(O);}p();}catch(O){t.error(O);}}));};return e.subscribe(E(t,f,()=>{d=true,p();})),()=>{}}function le$1(e,t,n=1/0){return y(t)?le$1((r,o)=>ve$2((i,s)=>t(r,i,o,s))(M(e(r,o))),n):(typeof t=="number"&&(n=t),w((r,o)=>qc$2(r,o,e,n)))}var{isArray:uh$1}=Array;function dh$1(e,t){return uh$1(t)?e(...t):e(t)}function Gt$2(e){return ve$2(t=>dh$1(e,t))}var fh$1=["addListener","removeListener"],ph$1=["addEventListener","removeEventListener"],hh$1=["on","off"];function xi(e,t,n,r){if(y(n)&&(r=n,n=void 0),r)return xi(e,t,n).pipe(Gt$2(r));let[o,i]=yh$1(e)?ph$1.map(s=>a=>e[s](t,a,n)):gh$1(e)?fh$1.map(Gc$2(e,t)):mh$1(e)?hh$1.map(Gc$2(e,t)):[];if(!o&&$t$2(e))return le$1(s=>xi(s,t,n))(M(e));if(!o)throw new TypeError("Invalid event target");return new _(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return o(a),()=>i(a)})}function Gc$2(e,t){return n=>r=>e[n](t,r)}function gh$1(e){return y(e.addListener)&&y(e.removeListener)}function mh$1(e){return y(e.on)&&y(e.off)}function yh$1(e){return y(e.addEventListener)&&y(e.removeEventListener)}function Pr$2(e,t){return w((n,r)=>{let o=0;n.subscribe(E(r,i=>e.call(t,i,o++)&&r.next(i)));})}var Fr$2=class Fr extends W$2{constructor(t,n){super();}schedule(t,n=0){return this}};var wn$2={setInterval(e,t,...n){let{delegate:r}=wn$2;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){return (clearInterval)(e)},delegate:void 0};var jr$2=class jr extends Fr$2{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=false;}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=true,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return wn$2.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===false)return n;n!=null&&wn$2.clearInterval(n);}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=false;let r=this._execute(t,n);if(r)return r;this.pending===false&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null));}_execute(t,n){let r=false,o;try{this.work(t);}catch(i){r=true,o=i||new Error("Scheduled action threw falsy error");}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=false,ft$2(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe();}}};var Tn$1={now(){return (Tn$1.delegate||Date).now()},delegate:void 0};var zt$2=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n;}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};zt$2.now=Tn$1.now;var Vr$2=class Vr extends zt$2{constructor(t,n=zt$2.now){super(t,n),this.actions=[],this._active=false;}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=true;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=false,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var ke$1=new Vr$2(jr$2),zc$2=ke$1;function Qc$2(e=1/0){return le$1(J,e)}function Zc$2(){return Qc$2(1)}function Qt$1(...e){return Zc$2()(Qe$2(e,qe(e)))}var Cn$2=new _(e=>e.complete());function mt$1(e){return e<=0?()=>Cn$2:w((t,n)=>{let r=0;t.subscribe(E(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete());}));})}function Yc$2(){return w((e,t)=>{e.subscribe(E(t,Re));})}function Kc$2(e){return ve$2(()=>e)}function Ai$1(e,t){return t?n=>Qt$1(t.pipe(mt$1(1),Yc$2()),n.pipe(Ai$1(e))):le$1((n,r)=>M(e(n,r)).pipe(mt$1(1),Kc$2(n)))}function Hr$2(e){return e instanceof Date&&!isNaN(e)}function Oe$2(e=0,t,n=zc$2){let r=-1;return t!=null&&(Er$2(t)?n=t:r=t),new _(o=>{let i=Hr$2(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete());},i)})}function vh$1(e,t=ke$1){let n=Oe$2(e,t);return Ai$1(()=>n)}function Jc$1(...e){let t=qe(e);return w((n,r)=>{(t?Qt$1(e,n,t):Qt$1(e,n)).subscribe(r);})}function Xc$2(e,t){return w((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(E(r,c=>{o?.unsubscribe();let l=0,u=i++;M(e(c,u)).subscribe(o=E(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a();}));},()=>{s=!0,a();}));})}function el$2(e,t,n){let r=y(e)||t||n?{next:e,error:t,complete:n}:e;return r?w((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(E(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c);},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete();},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c);},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r);}));}):J}function tl$2(e,t){return w((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,c=null,l=!1,u=()=>{c?.unsubscribe(),c=null,i&&(f(),l&&r.complete());},d=()=>{c=null,l&&r.complete();},p=h=>c=M(e(h)).subscribe(E(r,u,d)),f=()=>{if(s){s=!1;let h=a;a=null,r.next(h),!l&&p(h);}};n.subscribe(E(r,h=>{s=!0,a=h,!(c&&!c.closed)&&(o?f():p(h));},()=>{l=!0,!(i&&s&&c&&!c.closed)&&r.complete();}));})}function Eh$1(e,t=ke$1,n){let r=Oe$2(e,t);return tl$2(()=>r,n)}var nl$2=Ge(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed";});var ue$1=(()=>{class e extends _{constructor(){super(),this.closed=false,this.currentObservers=null,this.observers=[],this.isStopped=false,this.hasError=false,this.thrownError=null;}lift(n){let r=new Br$2(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new nl$2}next(n){Wt$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n);}});}error(n){Wt$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=true,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n);}});}complete(){Wt$2(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=true;let{observers:n}=this;for(;n.length;)n.shift().complete();}});}unsubscribe(){this.isStopped=this.closed=true,this.observers=this.currentObservers=null;}get observed(){var n;return ((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ti$1:(this.currentObservers=null,i.push(n),new W$2(()=>{this.currentObservers=null,ft$2(i,n);}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete();}asObservable(){let n=new _;return n.source=this,n}}return e.create=(t,n)=>new Br$2(t,n),e})(),Br$2=class Br extends ue$1{constructor(t,n){super(),this.destination=t,this.source=n;}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t);}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t);}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t);}_subscribe(t){var n,r;return (r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ti$1}};var bn$2=class bn extends ue$1{constructor(t){super(),this._value=t;}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return !n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t);}};var Ri$1=class Ri extends ue$1{constructor(t=1/0,n=1/0,r=Tn$1){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=true,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n);}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t);}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1);}}};function Ih$1(e){return !!e&&(e instanceof _||y(e.lift)&&y(e.subscribe))}var Dh$1=Ge(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n;});function wh$1(e,t){let{first:n,each:r,with:o=Th$1,scheduler:i=ke$1,meta:s=null}=Hr$2(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return w((a,c)=>{let l,u,d=null,p=0,f=h=>{u=G$2(c,i,()=>{try{l.unsubscribe(),M(o({meta:s,lastValue:d,seen:p})).subscribe(c);}catch(D){c.error(D);}},h);};l=a.subscribe(E(c,h=>{u?.unsubscribe(),p++,c.next(d=h),r>0&&f(r);},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null;})),!p&&f(n!=null?typeof n=="number"?n:+n-i.now():r);})}function Th$1(e){throw new Dh$1(e)}var{isArray:Ch$1}=Array,{getPrototypeOf:bh$1,prototype:_h$1,keys:Mh$1}=Object;function $r$1(e){if(e.length===1){let t=e[0];if(Ch$1(t))return {args:t,keys:null};if(Nh$1(t)){let n=Mh$1(t);return {args:n.map(r=>t[r]),keys:n}}}return {args:e,keys:null}}function Nh$1(e){return e&&typeof e=="object"&&bh$1(e)===_h$1}function Ur$2(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Sh$1(...e){let t=qe(e),n=Ir$2(e),{args:r,keys:o}=$r$1(e);if(r.length===0)return Qe$2([],t);let i=new _(xh$1(r,t,o?s=>Ur$2(o,s):J));return n?i.pipe(Gt$2(n)):i}function xh$1(e,t,n=J){return r=>{rl$2(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)rl$2(t,()=>{let l=Qe$2(e[c],t),u=false;l.subscribe(E(r,d=>{i[c]=d,u||(u=true,a--),a||r.next(n(i.slice()));},()=>{--s||r.complete();}));},r);},r);}}function rl$2(e,t,n){e?G$2(n,e,t):t();}function Ah$1(e){return new _(t=>{M(e()).subscribe(t);})}function Rh$1(...e){let t=Ir$2(e),{args:n,keys:r}=$r$1(e),o=new _(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=false;M(n[u]).subscribe(E(i,p=>{d||(d=true,l--),a[u]=p;},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Ur$2(r,a):a),i.complete());}));}});return t?o.pipe(Gt$2(t)):o}function ol$2(e){return w((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l);}s&&n.complete();},c=()=>{i=null,s&&n.complete();};t.subscribe(E(n,l=>{r=!0,o=l,i||M(e(l)).subscribe(i=E(n,a,c));},()=>{s=!0,(!r||!i||i.closed)&&n.complete();}));})}function kh$1(e,t=ke$1){return ol$2(()=>Oe$2(e,t))}function ki(e){return w((t,n)=>{let r=null,o=!1,i;r=t.subscribe(E(n,void 0,void 0,s=>{i=M(e(s,ki(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0;})),o&&(r.unsubscribe(),r=null,i.subscribe(n));})}function Oh$1(e,t){return y(t)?le$1(e,t,1):le$1(e,1)}function Lh$1(e){return w((t,n)=>{let r=!1,o=null,i=null,s=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let a=o;o=null,n.next(a);}};t.subscribe(E(n,a=>{i?.unsubscribe(),r=!0,o=a,i=E(n,s,Re),M(e(a)).subscribe(i);},()=>{s(),n.complete();},void 0,()=>{o=i=null;}));})}function il$2(e){return w((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o);},()=>{r||n.next(e),n.complete();}));})}function sl$2(e=Ph$1){return w((t,n)=>{let r=!1;t.subscribe(E(n,o=>{r=!0,n.next(o);},()=>r?n.complete():n.error(e())));})}function Ph$1(){return new gt$1}function al$2(e){return w((t,n)=>{try{t.subscribe(n);}finally{n.add(e);}})}function Fh$1(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Pr$2((o,i)=>e(o,i,r)):J,mt$1(1),n?il$2(t):sl$2(()=>new gt$1))}function jh$1(e){return e<=0?()=>Cn$2:w((t,n)=>{let r=[];t.subscribe(E(n,o=>{r.push(o),e<r.length&&r.shift();},()=>{for(let o of r)n.next(o);n.complete();},void 0,()=>{r=null;}));})}function Vh$1(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:o=false}=t;return n<=0?J:w((i,s)=>{let a=0,c,l=()=>{let u=!1;c=i.subscribe(E(s,d=>{o&&(a=0),s.next(d);},void 0,d=>{if(a++<n){let p=()=>{c?(c.unsubscribe(),c=null,l()):u=!0;};if(r!=null){let f=typeof r=="number"?Oe$2(r):M(r(d,a)),h=E(s,()=>{h.unsubscribe(),p();},()=>{s.complete();});f.subscribe(h);}else p();}else s.error(d);})),u&&(c.unsubscribe(),c=null,l());};l();})}function Hh$1(e){return w((t,n)=>{M(e).subscribe(E(n,()=>n.complete(),Re)),!n.closed&&t.subscribe(n);})}function Bh$1(e,t=false){return w((n,r)=>{let o=0;n.subscribe(E(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete();}));})}var Z$1=null,Wr$1=false,yt$1=1,j$1=Symbol("SIGNAL");function m$1(e){let t=Z$1;return Z$1=e,t}function qr$1(){return Z$1}var Ze$1={version:0,lastCleanEpoch:0,dirty:false,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:false,consumerAllowSignalWrites:false,consumerIsAlwaysLive:false,kind:"unknown",producerMustRecompute:()=>false,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Le(e){if(Wr$1)throw new Error("");if(Z$1===null)return;Z$1.consumerOnSignalRead(e);let t=Z$1.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Z$1.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Z$1.producers,n!==void 0&&n.producer===e)){Z$1.producersTail=n,n.lastReadVersion=e.version,n.knownValidAtEpoch=yt$1;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Z$1&&(!r||o.knownValidAtEpoch===yt$1))return;let i=Kt$1(Z$1),s={producer:e,consumer:Z$1,nextProducer:n,prevConsumer:void 0,knownValidAtEpoch:yt$1,lastReadVersion:e.version,nextConsumer:void 0};Z$1.producersTail=s,t!==void 0?t.nextProducer=s:Z$1.producers=s,i&&dl(e,s);}function cl$1(){yt$1++;}function It$2(e){if(!(Kt$1(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===yt$1)){if(!e.producerMustRecompute(e)&&!Yt$2(e)){Zt$1(e);return}e.producerRecomputeValue(e),Zt$1(e);}}function Oi$1(e){if(e.consumers===void 0)return;let t=Wr$1;Wr$1=true;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||Uh$1(r);}}finally{Wr$1=t;}}function Li$1(){return Z$1?.consumerAllowSignalWrites!==false}function Uh$1(e){e.dirty=true,Oi$1(e),e.consumerMarkedDirty?.(e);}function Zt$1(e){e.dirty=false,e.lastCleanEpoch=yt$1;}function Pe(e){return e&&ll$1(e),m$1(e)}function ll$1(e){if(e.producersTail?.knownValidAtEpoch===yt$1){let t=e.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer;}e.producersTail=void 0,e.recomputing=true;}function Ye$1(e,t){m$1(t),e&&ul$2(e);}function ul$2(e){e.recomputing=false;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Kt$1(e))do n=Pi$1(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0;}}function Yt$2(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(It$2(n),r!==n.version))return true}return false}function Ke$2(e){if(Kt$1(e)){let t=e.producers;for(;t!==void 0;)t=Pi$1(t);}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0;}function dl(e,t){let n=e.consumersTail,r=Kt$1(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)dl(o.producer,o);}function Pi$1(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Kt$1(t)){let i=t.producers;for(;i!==void 0;)i=Pi$1(i);}return n}function Kt$1(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Mn$2(e,t){return Object.is(e,t)}function Nn$2(e,t){let n=Object.create(Wh$1);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(It$2(n),Le(n),n.value===Ee$2)throw n.error;return n.value};return r[j$1]=n,r}var vt=Symbol("UNSET"),Et$1=Symbol("COMPUTING"),Ee$2=Symbol("ERRORED"),Wh$1=U$1($({},Ze$1),{value:vt,dirty:true,error:null,equal:Mn$2,kind:"computed",producerMustRecompute(e){return e.value===vt||e.value===Et$1},producerRecomputeValue(e){if(e.value===Et$1)throw new Error("");let t=e.value;e.value=Et$1;let n=Pe(e),r,o=false;try{r=e.computation(),m$1(null),o=t!==vt&&t!==Ee$2&&r!==Ee$2&&e.equal(t,r);}catch(i){r=Ee$2,e.error=i;}finally{Ye$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function qh$1(){throw new Error}var fl$1=qh$1;function pl$1(e){fl$1(e);}function Fi$1(e){fl$1=e;}function ji$1(e,t){let n=Object.create(Sn$2);n.value=e,t!==void 0&&(n.equal=t);let r=()=>hl$1(n);return r[j$1]=n,[r,s=>Je$2(n,s),s=>Gr$1(n,s)]}function hl$1(e){return Le(e),e.value}function Je$2(e,t){Li$1()||pl$1(e),e.equal(e.value,t)||(e.value=t,zh$1(e));}function Gr$1(e,t){Li$1()||pl$1(e),Je$2(e,t(e.value));}var Sn$2=U$1($({},Ze$1),{equal:Mn$2,value:void 0,kind:"signal"});function zh$1(e){e.version++,cl$1(),Oi$1(e);}var Vi$1=U$1($({},Ze$1),{consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,dirty:true,kind:"effect"});function Hi$1(e){if(e.dirty=false,e.version>0&&!Yt$2(e))return;e.version++;let t=Pe(e);try{e.cleanup(),e.fn();}finally{Ye$1(e,t);}}var Bi$1;function zr$2(){return Bi$1}function Ie$3(e){let t=Bi$1;return Bi$1=e,t}var gl$1=Symbol("NotFound");function Jt$1(e){return e===gl$1||e?.name==="\u0275NotFound"}function $i$1(e,t,n){let r=Object.create(Qh$1);r.source=e,r.computation=t,n!=null&&(r.equal=n);let i=()=>{if(It$2(r),Le(r),r.value===Ee$2)throw r.error;return r.value};return i[j$1]=r,i}function ml$1(e,t){It$2(e),Je$2(e,t),Zt$1(e);}function yl$1(e,t){if(It$2(e),e.value===Ee$2)throw e.error;Gr$1(e,t),Zt$1(e);}var Qh$1=U$1($({},Ze$1),{value:vt,dirty:true,error:null,equal:Mn$2,kind:"linkedSignal",producerMustRecompute(e){return e.value===vt||e.value===Et$1},producerRecomputeValue(e){if(e.value===Et$1)throw new Error("");let t=e.value;e.value=Et$1;let n=Pe(e),r,o=false;try{let i=e.source(),s=t!==vt&&t!==Ee$2,a=s?{source:e.sourceValue,value:t}:void 0;r=e.computation(i,a),e.sourceValue=i,m$1(null),o=s&&r!==Ee$2&&e.equal(t,r);}catch(i){r=Ee$2,e.error=i;}finally{Ye$1(e,n);}if(o){e.value=t;return}e.value=r,e.version++;}});function vl$1(e){let t=m$1(null);try{return e()}finally{m$1(t);}}var eo$2="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(t,n){super(Ln$2(t,n)),this.code=t;}};function Zh$1(e){return `NG0${Math.abs(e)}`}function Ln$2(e,t){return `${Zh$1(e)}${t?": "+t:""}`}function A$2(e){for(let t in e)if(e[t]===A$2)return t;throw Error("")}function Pn$2(e){if(typeof e=="string")return e;if(Array.isArray(e))return `[${e.map(Pn$2).join(", ")}]`;if(e==null)return ""+e;let t=e.overriddenName||e.name;if(t)return `${t}`;let n=e.toString();if(n==null)return ""+n;let r=n.indexOf(`
4
+ `);return r>=0?n.slice(0,r):n}function to$2(e,t){return e?t?`${e} ${t}`:e:t||""}var Yh$1=A$2({__forward_ref__:A$2});function no$2(e){return e.__forward_ref__=no$2,e}function q(e){return ts$2(e)?e():e}function ts$2(e){return typeof e=="function"&&e.hasOwnProperty(Yh$1)&&e.__forward_ref__===no$2}function te$1(e){return {token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Fn$2(e){return Jh$1(e,ro$2)}function Kh$1(e){return Fn$2(e)!==null}function Jh$1(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Xh$1(e){let t=e?.[ro$2]??null;return t||null}function Wi$1(e){return e&&e.hasOwnProperty(Zr$2)?e[Zr$2]:null}var ro$2=A$2({\u0275prov:A$2}),Zr$2=A$2({\u0275inj:A$2}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=te$1({token:this,providedIn:n.providedIn||"root",factory:n.factory}));}get multi(){return this}toString(){return `InjectionToken ${this._desc}`}};function ns$2(e){return e&&!!e.\u0275providers}var rs$2=A$2({\u0275cmp:A$2}),os$2=A$2({\u0275dir:A$2}),is$2=A$2({\u0275pipe:A$2}),ss$2=A$2({\u0275mod:A$2}),An$2=A$2({\u0275fac:A$2}),bt$1=A$2({__NG_ELEMENT_ID__:A$2}),El=A$2({__NG_ENV_ID__:A$2});function Tl(e){return oo$2(e),e[ss$2]||null}function tt$1(e){return oo$2(e),e[rs$2]||null}function as$2(e){return oo$2(e),e[os$2]||null}function Cl(e){return oo$2(e),e[is$2]||null}function oo$2(e,t){if(e==null)throw new b(-919,false)}function _t$2(e){return typeof e=="string"?e:e==null?"":String(e)}var bl$1=A$2({ngErrorCode:A$2}),eg$1=A$2({ngErrorMessage:A$2});A$2({ngTokenPath:A$2});function cs$2(e,t){return _l$1("",-200)}function io$2(e,t){throw new b(-201,false)}function _l$1(e,t,n){let r=new b(t,e);return r[bl$1]=t,r[eg$1]=e,r}function ng$1(e){return e[bl$1]}var qi$1;function Ml(){return qi$1}function Y$2(e){let t=qi$1;return qi$1=e,t}function ls$2(e,t,n){let r=Fn$2(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;io$2();}var Ce$1=globalThis;var rg$1={},Dt$1=rg$1,og$1="__NG_DI_FLAG__",Gi$1=class Gi{injector;constructor(t){this.injector=t;}retrieve(t,n){let r=wt(n)||0;try{return this.injector.get(t,r&8?null:Dt$1,r)}catch(o){if(Jt$1(o))return o;throw o}}};function ig$1(e,t=0){let n=zr$2();if(n===void 0)throw new b(-203,false);if(n===null)return ls$2(e,void 0,t);{let r=sg$1(t),o=n.retrieve(e,r);if(Jt$1(o)){if(r.optional)return null;throw o}return o}}function De$3(e,t=0){return (Ml()||ig$1)(q(e),t)}function T(e,t){return De$3(e,wt(t))}function wt(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function sg$1(e){return {optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function zi$1(e){let t=[];for(let n=0;n<e.length;n++){let r=q(e[n]);if(Array.isArray(r)){if(r.length===0)throw new b(900,false);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=ag$1(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a;}t.push(De$3(o,i));}else t.push(De$3(r));}return t}function ag$1(e){return e[og$1]}function Xe$1(e,t){let n=e.hasOwnProperty(An$2);return n?e[An$2]:null}function Nl(e,t,n){if(e.length!==t.length)return false;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return false}return true}function Sl(e){return e.flat(Number.POSITIVE_INFINITY)}function so$2(e,t){e.forEach(n=>Array.isArray(n)?so$2(n,t):t(n));}function us$2(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n);}function jn$2(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xl(e,t){let n=[];for(let r=0;r<e;r++)n.push(t);return n}function Al(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else {for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--;}e[t]=n,e[t+1]=r;}}function ao$2(e,t,n){let r=tn(e,t);return r>=0?e[r|1]=n:(r=~r,Al(e,r,t,n)),r}function co$2(e,t){let n=tn(e,t);if(n>=0)return e[n|1]}function tn(e,t){return cg$1(e,t,1)}function cg$1(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1;}return ~(o<<n)}var Mt$2={},de$1=[],nn=new x(""),Vn$2=new x("",-1),ds$2=new x(""),en=class{get(t,n=Dt$1){if(n===Dt$1){let o=_l$1("",-201);throw o.name="\u0275NotFound",o}return n}};function Hn$2(e){return {\u0275providers:e}}function Rl(e){return Hn$2([{provide:nn,multi:true,useValue:e}])}function kl(...e){return {\u0275providers:fs$2(true,e),\u0275fromNgModule:true}}function fs$2(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s);};return so$2(t,s=>{let a=s;Yr$1(a,i,[],r)&&(o||=[],o.push(a));}),o!==void 0&&Ol(o,i),n}function Ol(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];ps$2(o,i=>{t(i,r);});}}function Yr$1(e,t,n,r){if(e=q(e),!e)return false;let o=null,i=Wi$1(e),s=!i&&tt$1(e);if(!i&&!s){let c=e.ngModule;if(i=Wi$1(c),i)o=c;else return false}else {if(s&&!s.standalone)return false;o=e;}let a=r.has(o);if(s){if(a)return false;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Yr$1(l,t,n,r);}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;so$2(i.imports,u=>{Yr$1(u,t,n,r)&&(l||=[],l.push(u));}),l!==void 0&&Ol(l,t);}if(!a){let l=Xe$1(o)||(()=>new o);t({provide:o,useFactory:l,deps:de$1},o),t({provide:ds$2,useValue:o,multi:true},o),t({provide:nn,useValue:()=>De$3(o),multi:true},o);}let c=i.providers;if(c!=null&&!a){let l=e;ps$2(c,u=>{t(u,l);});}}else return false;return o!==e&&e.providers!==void 0}function ps$2(e,t){for(let n of e)ns$2(n)&&(n=n.\u0275providers),Array.isArray(n)?ps$2(n,t):t(n);}var lg$1=A$2({provide:String,useValue:A$2});function Ll(e){return e!==null&&typeof e=="object"&&lg$1 in e}function ug$1(e){return !!(e&&e.useExisting)}function dg$1(e){return !!(e&&e.useFactory)}function Tt$2(e){return typeof e=="function"}function Pl(e){return !!e.useClass}var hs$2=new x(""),Qr$1={},Il={},Ui$1;function rn(){return Ui$1===void 0&&(Ui$1=new en),Ui$1}var ee$1=class ee{},Ct=class extends ee$1{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=false;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Zi$1(t,s=>this.processProvider(s)),this.records.set(Vn$2,Xt$2(void 0,this)),o.has("environment")&&this.records.set(ee$1,Xt$2(void 0,this));let i=this.records.get(hs$2);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ds$2,de$1,{self:true}));}retrieve(t,n){let r=wt(n)||0;try{return this.get(t,Dt$1,r)}catch(o){if(Jt$1(o))return o;throw o}}destroy(){xn$2(this),this._destroyed=true;let t=m$1(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r();}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),m$1(t);}}onDestroy(t){return xn$2(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){xn$2(this);let n=Ie$3(this),r=Y$2(void 0);try{return t()}finally{Ie$3(n),Y$2(r);}}get(t,n=Dt$1,r){if(xn$2(this),t.hasOwnProperty(El))return t[El](this);let o=wt(r),s=Ie$3(this),a=Y$2(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=mg$1(t)&&Fn$2(t);u&&this.injectableDefInScope(u)?l=Xt$2(Qi$1(t),Qr$1):l=null,this.records.set(t,l);}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?rn():this.parent;return n=o&8&&n===Dt$1?null:n,c.get(t,n)}catch(c){let l=ng$1(c);throw l===-200||l===-201?new b(l,null):c}finally{Y$2(a),Ie$3(s);}}resolveInjectorInitializers(){let t=m$1(null),n=Ie$3(this),r=Y$2(void 0);try{let i=this.get(nn,de$1,{self:!0});for(let s of i)s();}finally{Ie$3(n),Y$2(r),m$1(t);}}toString(){return "R3Injector[...]"}processProvider(t){t=q(t);let n=Tt$2(t)?t:q(t&&t.provide),r=pg$1(t);if(!Tt$2(t)&&t.multi===true){let o=this.records.get(n);o||(o=Xt$2(void 0,Qr$1,true),o.factory=()=>zi$1(o.multi),this.records.set(n,o)),n=t,o.multi.push(t);}this.records.set(n,r);}hydrate(t,n,r){let o=m$1(null);try{if(n.value===Il)throw cs$2("");return n.value===Qr$1&&(n.value=Il,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&gg$1(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{m$1(o);}}injectableDefInScope(t){if(!t.providedIn)return false;let n=q(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1);}};function Qi$1(e){let t=Fn$2(e),n=t!==null?t.factory:Xe$1(e);if(n!==null)return n;if(e instanceof x)throw new b(-204,false);if(e instanceof Function)return fg$1(e);throw new b(-204,false)}function fg$1(e){if(e.length>0)throw new b(-204,false);let n=Xh$1(e);return n!==null?()=>n.factory(e):()=>new e}function pg$1(e){if(Ll(e))return Xt$2(void 0,e.useValue);{let t=gs$2(e);return Xt$2(t,Qr$1)}}function gs$2(e,t,n){let r;if(Tt$2(e)){let o=q(e);return Xe$1(o)||Qi$1(o)}else if(Ll(e))r=()=>q(e.useValue);else if(dg$1(e))r=()=>e.useFactory(...zi$1(e.deps||[]));else if(ug$1(e))r=(o,i)=>De$3(q(e.useExisting),i!==void 0&&i&8?8:void 0);else {let o=q(e&&(e.useClass||e.provide));if(hg$1(e))r=()=>new o(...zi$1(e.deps));else return Xe$1(o)||Qi$1(o)}return r}function xn$2(e){if(e.destroyed)throw new b(-205,false)}function Xt$2(e,t,n=false){return {factory:e,value:t,multi:n?[]:void 0}}function hg$1(e){return !!e.deps}function gg$1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function mg$1(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Zi$1(e,t){for(let n of e)Array.isArray(n)?Zi$1(n,t):n&&ns$2(n)?Zi$1(n.\u0275providers,t):t(n);}function lo$2(e,t){let n;e instanceof Ct?(xn$2(e),n=e):n=new Gi$1(e);let o=Ie$3(n),i=Y$2(void 0);try{return t()}finally{Ie$3(o),Y$2(i);}}function Fl(){return Ml()!==void 0||zr$2()!=null}var pe$1=0,g$1=1,I$2=2,H=3,ne=4,z=5,Nt$2=6,on=7,V$1=8,be$1=9,he$1=10,k=11,sn=12,ms$2=13,nt$2=14,K=15,rt$1=16,St$1=17,_e$1=18,Me$1=19,ys$2=20,je$1=21,uo$2=22,et$1=23,X$2=24,xt$1=25,Ne=26,L$2=27,jl$1=1,vs$2=6,ot$1=7,Bn$2=8,At$2=9,F$1=10;function Be$2(e){return Array.isArray(e)&&typeof e[jl$1]=="object"}function re$1(e){return Array.isArray(e)&&e[jl$1]===true}function Es$2(e){return (e.flags&4)!==0}function $e$1(e){return e.componentOffset>-1}function an(e){return (e.flags&1)===1}function it$1(e){return !!e.template}function cn$2(e){return (e[I$2]&512)!==0}function Rt(e){return (e[I$2]&256)===256}var Is$2="svg",Vl="math";function oe$1(e){for(;Array.isArray(e);)e=e[pe$1];return e}function Ds$2(e,t){return oe$1(t[e])}function ge$1(e,t){return oe$1(t[e.index])}function fo$2(e,t){return e.data[t]}function po$2(e,t){return e[t]}function ws$2(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r;}function ie(e,t){let n=t[e];return Be$2(n)?n:n[pe$1]}function ho$2(e){return (e[I$2]&128)===128}function Hl(e){return re$1(e[H])}function se$1(e,t){return t==null?null:e[t]}function Ts$2(e){e[St$1]=0;}function Cs$2(e){e[I$2]&1024||(e[I$2]|=1024,ho$2(e)&&kt$2(e));}function Bl(e,t){for(;e>0;)t=t[nt$2],e--;return t}function $n$2(e){return !!(e[I$2]&9216||e[X$2]?.dirty)}function go$2(e){e[he$1].changeDetectionScheduler?.notify(8),e[I$2]&64&&(e[I$2]|=1024),$n$2(e)&&kt$2(e);}function kt$2(e){e[he$1].changeDetectionScheduler?.notify(0);let t=Ve$2(e);for(;t!==null&&!(t[I$2]&8192||(t[I$2]|=8192,!ho$2(t)));)t=Ve$2(t);}function mo$2(e,t){if(Rt(e))throw new b(911,false);e[je$1]===null&&(e[je$1]=[]),e[je$1].push(t);}function $l$1(e,t){if(e[je$1]===null)return;let n=e[je$1].indexOf(t);n!==-1&&e[je$1].splice(n,1);}function Ve$2(e){let t=e[H];return re$1(t)?t[H]:t}function bs$2(e){return e[on]??=[]}function _s$2(e){return e.cleanup??=[]}function Ul$1(e,t,n,r){let o=bs$2(t);o.push(n),e.firstCreatePass&&_s$2(e).push(r,o.length-1);}var C={lFrame:ou$2(null),bindingsEnabled:true,skipHydrationRootTNode:null};var Yi$1=false;function Wl(){return C.lFrame.elementDepthCount}function ql$1(){C.lFrame.elementDepthCount++;}function Ms$2(){C.lFrame.elementDepthCount--;}function yo$2(){return C.bindingsEnabled}function Ns$2(){return C.skipHydrationRootTNode!==null}function Ss$2(e){return C.skipHydrationRootTNode===e}function xs$2(){C.skipHydrationRootTNode=null;}function v(){return C.lFrame.lView}function P$1(){return C.lFrame.tView}function Gl(e){return C.lFrame.contextLView=e,e[V$1]}function zl(e){return C.lFrame.contextLView=null,e}function B$1(){let e=As$2();for(;e!==null&&e.type===64;)e=e.parent;return e}function As$2(){return C.lFrame.currentTNode}function Ql(){let e=C.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function ln$2(e,t){let n=C.lFrame;n.currentTNode=e,n.isParent=t;}function Rs$2(){return C.lFrame.isParent}function ks$2(){C.lFrame.isParent=false;}function Zl$1(){return C.lFrame.contextLView}function Os$2(){return Yi$1}function Rn$2(e){let t=Yi$1;return Yi$1=e,t}function Ot$1(){let e=C.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yl$1(){return C.lFrame.bindingIndex}function Kl(e){return C.lFrame.bindingIndex=e}function st$1(){return C.lFrame.bindingIndex++}function vo$2(e){let t=C.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Jl(){return C.lFrame.inI18n}function Xl$1(e,t){let n=C.lFrame;n.bindingIndex=n.bindingRootIndex=e,Eo$2(t);}function eu$2(){return C.lFrame.currentDirectiveIndex}function Eo$2(e){C.lFrame.currentDirectiveIndex=e;}function tu$2(e){let t=C.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function nu$2(){return C.lFrame.currentQueryIndex}function Io$2(e){C.lFrame.currentQueryIndex=e;}function yg$1(e){let t=e[g$1];return t.type===2?t.declTNode:t.type===1?e[z]:null}function Ls$2(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=yg$1(i),o===null||(i=i[nt$2],o.type&10))break;if(o===null)return false;t=o,e=i;}let r=C.lFrame=ru$2();return r.currentTNode=t,r.lView=e,true}function Do$2(e){let t=ru$2(),n=e[g$1];C.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=false;}function ru$2(){let e=C.lFrame,t=e===null?null:e.child;return t===null?ou$2(e):t}function ou$2(e){let t={currentTNode:null,isParent:true,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:false};return e!==null&&(e.child=t),t}function iu$2(){let e=C.lFrame;return C.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ps$2=iu$2;function wo$2(){let e=iu$2();e.isParent=true,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0;}function su$2(e){return (C.lFrame.contextLView=Bl(e,C.lFrame.contextLView))[V$1]}function Se(){return C.lFrame.selectedIndex}function at$1(e){C.lFrame.selectedIndex=e;}function Un$2(){let e=C.lFrame;return fo$2(e.tView,e.selectedIndex)}function au$2(){C.lFrame.currentNamespace=Is$2;}function Fs$2(){return C.lFrame.currentNamespace}var cu$2=true;function To$2(){return cu$2}function Wn$2(e){cu$2=e;}function Ki$1(e,t=null,n=null,r){let o=js$2(e,t,n);return o.resolveInjectorInitializers(),o}function js$2(e,t=null,n=null,r,o=new Set){let i=[n||de$1,kl(e)];return new Ct(i,t||rn(),null,o)}var fe$1=class e{static THROW_IF_NOT_FOUND=Dt$1;static NULL=new en;static create(t,n){if(Array.isArray(t))return Ki$1({name:""},n,t);{let r=t.name??"";return Ki$1({name:r},t.parent,t.providers)}}static \u0275prov=te$1({token:e,providedIn:"any",factory:()=>De$3(Vn$2)});static __NG_ELEMENT_ID__=-1},qn$2=new x(""),xe$2=(()=>{class e{static __NG_ELEMENT_ID__=vg$1;static __NG_ENV_ID__=n=>n}return e})(),Kr$1=class Kr extends xe$2{_lView;constructor(t){super(),this._lView=t;}get destroyed(){return Rt(this._lView)}onDestroy(t){let n=this._lView;return mo$2(n,t),()=>$l$1(n,t)}};function vg$1(){return new Kr$1(v())}var lu$2=false,uu$2=new x(""),Lt$2=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=false;pendingTask=new bn$2(false);debugTaskTracker=T(uu$2,{optional:true});get hasPendingTasks(){return this.destroyed?false:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new _(n=>{n.next(false),n.complete();}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(true);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(false);}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(false),this.destroyed=true,this.pendingTask.unsubscribe();}static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ji$1=class Ji extends ue$1{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=false){super(),this.__isAsync=t,Fl()&&(this.destroyRef=T(xe$2,{optional:true})??void 0,this.pendingTasks=T(Lt$2,{optional:true})??void 0);}emit(t){let n=m$1(null);try{super.next(t);}finally{m$1(n);}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c);}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof W$2&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n);}finally{r!==void 0&&this.pendingTasks?.remove(r);}});}}},Fe$1=Ji$1;function Jr$2(...e){}function Vs$2(e){let t,n;function r(){e=Jr$2;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t);}catch{}}return t=setTimeout(()=>{e(),r();}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r();})),()=>r()}function du$2(e){return queueMicrotask(()=>e()),()=>{e=Jr$2;}}var Hs$2="isAngularZone",kn$2=Hs$2+"_ID",Eg$1=0,we$1=class e{hasPendingMacrotasks=false;hasPendingMicrotasks=false;isStable=true;onUnstable=new Fe$1(false);onMicrotaskEmpty=new Fe$1(false);onStable=new Fe$1(false);onError=new Fe$1(false);constructor(t){let{enableLongStackTrace:n=false,shouldCoalesceEventChangeDetection:r=false,shouldCoalesceRunChangeDetection:o=false,scheduleInRootZone:i=lu$2}=t;if(typeof Zone>"u")throw new b(908,false);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=false,s.scheduleInRootZone=i,wg$1(s);}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Hs$2)===true}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,false)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,false)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Ig$1,Jr$2,Jr$2);try{return i.runTask(s,n,r)}finally{i.cancelTask(s);}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Ig$1={};function Bs$2(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null);}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null));}finally{e.isStable=true;}}}function Dg$1(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=true;function t(){Vs$2(()=>{e.callbackScheduled=false,Xi$1(e),e.isCheckStableRunning=true,Bs$2(e),e.isCheckStableRunning=false;});}e.scheduleInRootZone?Zone.root.run(()=>{t();}):e._outer.run(()=>{t();}),Xi$1(e);}function wg$1(e){let t=()=>{Dg$1(e);},n=Eg$1++;e._inner=e._inner.fork({name:"angular",properties:{[Hs$2]:true,[kn$2]:n,[kn$2+n]:true},onInvokeTask:(r,o,i,s,a,c)=>{if(Tg$1(c))return r.invokeTask(i,s,a,c);try{return Dl(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),wl(e);}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Dl(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cg$1(c)&&t(),wl(e);}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Xi$1(e),Bs$2(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask));},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),false)});}function Xi$1(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===true?e.hasPendingMicrotasks=true:e.hasPendingMicrotasks=false;}function Dl(e){e._nesting++,e.isStable&&(e.isStable=false,e.onUnstable.emit(null));}function wl(e){e._nesting--,Bs$2(e);}var On$2=class On{hasPendingMicrotasks=false;hasPendingMacrotasks=false;isStable=true;onUnstable=new Fe$1;onMicrotaskEmpty=new Fe$1;onStable=new Fe$1;onError=new Fe$1;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Tg$1(e){return fu$2(e,"__ignore_ng_zone__")}function Cg$1(e){return fu$2(e,"__scheduler_tick__")}function fu$2(e,t){return !Array.isArray(e)||e.length!==1?false:e[0]?.data?.[t]===true}var He$2=class He{_console=console;handleError(t){this._console.error("ERROR",t);}},ct$1=new x("",{factory:()=>{let e=T(we$1),t=T(ee$1),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(He$2),n.handleError(r));});}}}),pu$2={provide:nn,useValue:()=>{T(He$2,{optional:true});},multi:true},bg$1=new x("",{factory:()=>{let e=T(qn$2).defaultView;if(!e)return;let t=T(ct$1),n=i=>{t(i.reason),i.preventDefault();},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault();},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r);};typeof Zone<"u"?Zone.root.run(o):o(),T(xe$2).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n);});}});function _g$1(){return Hn$2([Rl(()=>{T(bg$1);})])}function Co$2(e,t){let [n,r,o]=ji$1(e,t?.equal),i=n;i[j$1];return i.set=r,i.update=o,i.asReadonly=Gn$2.bind(i),i}function Gn$2(){let e=this[j$1];if(e.readonlyFn===void 0){let t=()=>this();t[j$1]=e,e.readonlyFn=t;}return e.readonlyFn}var hu$2=new x("",{factory:()=>Mg$1}),Mg$1="ng";var gu$2=new x(""),Ng$1=new x("",{providedIn:"platform",factory:()=>"unknown"}),Sg$1=new x(""),xg$1=new x("",{factory:()=>T(qn$2).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var un$1=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r;}static __NG_ELEMENT_ID__=Ag$1}return e})();function Ag$1(){return new un$1(v(),B$1())}var Te$1=class Te{},zn$2=new x("",{factory:()=>true});var $s$2=new x(""),bo$2=(()=>{class e{static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>new es$2})}return e})(),es$2=class es{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t);}schedule(t){t.dirty&&this.dirtyEffectCount++;}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--);}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t);}flush(){for(;this.dirtyEffectCount>0;){let t=false;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0);}}flushQueue(t){let n=false;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=true,r.run());return n}},Xr$2=class Xr{[j$1];constructor(t){this[j$1]=t;}destroy(){this[j$1].destroy();}};function mu$2(e,t){let n=t?.injector??T(fe$1),r=t?.manualCleanup!==true?n.get(xe$2):null,o,i=n.get(un$1,null,{optional:true}),s=n.get(Te$1);return i!==null?(o=Og$1(i.view,s,e),r instanceof Kr$1&&r._lView===i.view&&(r=null)):o=Lg(e,n.get(bo$2),s),o.injector=n,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Xr$2(o)}var yu$2=U$1($({},Vi$1),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=Rn$2(false);try{Hi$1(this);}finally{Rn$2(e);}},cleanup(){if(!this.cleanupFns?.length)return;let e=m$1(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()();}finally{this.cleanupFns=[],m$1(e);}}}),Rg$1=U$1($({},yu$2),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12);},destroy(){if(Ke$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this);}}),kg$1=U$1($({},yu$2),{consumerMarkedDirty(){this.view[I$2]|=8192,kt$2(this.view),this.notifier.notify(13);},destroy(){if(Ke$2(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[et$1]?.delete(this);}});function Og$1(e,t,n){let r=Object.create(kg$1);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=vu$2(r,n),e[et$1]??=new Set,e[et$1].add(r),r.consumerMarkedDirty(r),r}function Lg(e,t,n){let r=Object.create(Rg$1);return r.fn=vu$2(r,e),r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function vu$2(e,t){return ()=>{t(n=>(e.cleanupFns??=[]).push(n));}}function _o$2(e){return typeof e=="function"&&e[j$1]!==void 0}function Mo$2(e){return _o$2(e)&&typeof e.set=="function"}var Us$2=(()=>{class e{internalPendingTasks=T(Lt$2);scheduler=T(Te$1);errorHandler=T(ct$1);add(){let n=this.internalPendingTasks.add();return ()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n));}}run(n){let r=this.add();try{n().catch(this.errorHandler).finally(r);}catch(o){this.errorHandler(o),r();}}static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>new e})}return e})();function ni$2(e){return {toString:e}.toString()}var N=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(N||{}),Fo$2=class Fo{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r;}isFirstChange(){return this.firstChange}};function td(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r;}var nd=null,Qg=(()=>{nd=Eu$2;let e=()=>Eu$2;return e.ngInherit=true,e})();function Zg(){return nd}function Eu$2(e){return e.type.prototype.ngOnChanges&&(e.setInput=Kg),Yg}function Yg(){let e=rd$1(this),t=e?.current;if(t){let n=e.previous;if(n===Mt$2)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t);}}function Kg(e,t,n,r,o){let i=this.declaredInputs[r],s=rd$1(e)||Jg(e,{previous:Mt$2,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Fo$2(l&&l.currentValue,n,c===Mt$2),td(e,t,o,n);}var ea$2="__ngSimpleChanges__";function rd$1(e){return Object.hasOwn(e,ea$2)&&e[ea$2]||null}function Jg(e,t){return e[ea$2]=t}var Iu$2=[];var R$1=function(e,t=null,n){for(let r=0;r<Iu$2.length;r++){let o=Iu$2[r];o(e,t,n);}};function Xg(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Zg()(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s);}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i));}function od$1(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u);}}function Ro$2(e,t,n){id(e,t,3,n);}function ko$2(e,t,n,r){(e[I$2]&3)===n&&id(e,t,n,r);}function Ws$2(e,t){let n=e[I$2];(n&3)===t&&(n&=16383,n+=1,e[I$2]=n);}function id(e,t,n,r){let o=r!==void 0?e[St$1]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[St$1]+=65536),(a<i||i==-1)&&(em$1(e,n,t,c),e[St$1]=(e[St$1]&4294901760)+c+2),c++;}function Du$2(e,t){R$1(N.LifecycleHookStart,e,t);let n=m$1(null);try{t.call(e);}finally{m$1(n),R$1(N.LifecycleHookEnd,e,t);}}function em$1(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[I$2]>>14<e[St$1]>>16&&(e[I$2]&3)===t&&(e[I$2]+=16384,Du$2(a,i)):Du$2(a,i);}var fn$2=-1,Pt$2=class Pt{factory;name;injectImpl;resolving=false;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r;}};function tm$1(e){return (e.flags&8)!==0}function nm$1(e){return (e.flags&16)!==0}function rm$1(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i);}else {let i=o,s=n[++r];om$1(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++;}}return r}function sd(e){return e===3||e===4||e===6}function om$1(e){return e.charCodeAt(0)===64}function ri$2(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else {let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?wu$1(e,n,o,null,t[++r]):wu$1(e,n,o,null,null));}}return e}function wu$1(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++;}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o);}function ad$1(e){return e!==fn$2}function jo$2(e){return e&32767}function im$1(e){return e>>16}function Vo$2(e,t){let n=im$1(e),r=t;for(;n>0;)r=r[nt$2],n--;return r}var ta$2=true;function Ho$2(e){let t=ta$2;return ta$2=e,t}var sm$1=256,cd$1=sm$1-1,ld$1=5,am$1=0,Ae$1={};function cm$1(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(bt$1)&&(r=n[bt$1]),r==null&&(r=n[bt$1]=am$1++);let o=r&cd$1,i=1<<o;t.data[e+(o>>ld$1)]|=i;}function Bo$2(e,t){let n=ud$1(e,t);if(n!==-1)return n;let r=t[g$1];r.firstCreatePass&&(e.injectorIndex=t.length,qs$2(r.data,e),qs$2(t,null),qs$2(r.blueprint,null));let o=Pa$2(e,t),i=e.injectorIndex;if(ad$1(o)){let s=jo$2(o),a=Vo$2(o,t),c=a[g$1].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l];}return t[i+8]=o,i}function qs$2(e,t){e.push(0,0,0,0,0,0,0,0,t);}function ud$1(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Pa$2(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gd$1(o),r===null)return fn$2;if(n++,o=o[nt$2],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return fn$2}function na$2(e,t,n){cm$1(e,t,n);}function lm$1(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o<r;){let i=n[o];if(sd(i))break;if(i===0)o=o+2;else if(typeof i=="number")for(o++;o<r&&typeof n[o]=="string";)o++;else {if(i===t)return n[o+1];o=o+2;}}}return null}function dd$1(e,t,n){if(n&8||e!==void 0)return e;io$2();}function fd(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[be$1],i=Y$2(void 0);try{return o?o.get(t,r,n&8):ls$2(t,r,n&8)}finally{Y$2(i);}}return dd$1(r,t,n)}function pd$1(e,t,n,r=0,o){if(e!==null){if(t[I$2]&2048&&!(r&2)){let s=hm$1(e,t,n,r,Ae$1);if(s!==Ae$1)return s}let i=hd(e,t,n,r,Ae$1);if(i!==Ae$1)return i}return fd(t,n,r,o)}function hd(e,t,n,r,o){let i=dm$1(n);if(typeof i=="function"){if(!Ls$2(t,e,r))return r&1?dd$1(o,n,r):fd(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))io$2(n);else return s}finally{Ps$2();}}else if(typeof i=="number"){let s=null,a=ud$1(e,t),c=fn$2,l=r&1?t[K][z]:null;for((a===-1||r&4)&&(c=a===-1?Pa$2(e,t):t[a+8],c===fn$2||!Cu$2(r,false)?a=-1:(s=t[g$1],a=jo$2(c),t=Vo$2(c,t)));a!==-1;){let u=t[g$1];if(Tu$2(i,a,u.data)){let d=um$1(a,t,n,s,r,l);if(d!==Ae$1)return d}c=t[a+8],c!==fn$2&&Cu$2(r,t[g$1].data[a+8]===l)&&Tu$2(i,a,t)?(s=u,a=jo$2(c),t=Vo$2(c,t)):a=-1;}}return o}function um$1(e,t,n,r,o,i){let s=t[g$1],a=s.data[e+8],c=r==null?$e$1(a)&&ta$2:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Oo$2(a,s,n,c,l);return u!==null?Jn$2(t,s,u,a,o):Ae$1}function Oo$2(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f<p;f++){let h=s[f];if(f<c&&n===h||f>=c&&h.type===n)return f}if(o){let f=s[c];if(f&&it$1(f)&&f.type===n)return c}return null}function Jn$2(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Pt$2){let a=i;if(a.resolving)throw cs$2();let c=Ho$2(a.canSeeViewProviders);a.resolving=true;s[n].type||s[n];let d=a.injectImpl?Y$2(a.injectImpl):null;Ls$2(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Xg(n,s[n],t);}finally{d!==null&&Y$2(d),Ho$2(c),a.resolving=false,Ps$2();}}return i}function dm$1(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(bt$1)?e[bt$1]:void 0;return typeof t=="number"?t>=0?t&cd$1:fm$1:t}function Tu$2(e,t,n){let r=1<<e;return !!(n[t+(e>>ld$1)]&r)}function Cu$2(e,t){return !(e&2)&&!(e&1&&t)}var lt$1=class lt{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n;}get(t,n,r){return pd$1(this._tNode,this._lView,t,wt(r),n)}};function fm$1(){return new lt$1(B$1(),v())}function pm$1(e){return ni$2(()=>{let t=e.prototype.constructor,n=t[An$2]||ra$1(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[An$2]||ra$1(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o);}return i=>new i})}function ra$1(e){return ts$2(e)?()=>{let t=ra$1(q(e));return t&&t()}:Xe$1(e)}function hm$1(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[I$2]&2048&&!cn$2(s);){let a=hd(i,s,n,r|2,Ae$1);if(a!==Ae$1)return a;let c=i.parent;if(!c){let l=s[ys$2];if(l){let u=l.get(n,Ae$1,r&-5);if(u!==Ae$1)return u}c=gd$1(s),s=s[nt$2];}i=c;}return o}function gd$1(e){let t=e[g$1],n=t.type;return n===2?t.declTNode:n===1?e[z]:null}function md(e){return lm$1(B$1(),e)}function ar$1(e){return {token:e.token,providedIn:e.autoProvided===false?null:"root",factory:e.factory,value:void 0}}function gm$1(){return En$2(B$1(),v())}function En$2(e,t){return new cr$1(ge$1(e,t))}var cr$1=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n;}static __NG_ELEMENT_ID__=gm$1}return e})();function mm$1(e){return e instanceof cr$1?e.nativeElement:e}function ym$1(){return this._results[Symbol.iterator]()}var $o$2=class $o{_emitDistinctChangesOnly;dirty=true;_onDirty=void 0;_results=[];_changesDetected=false;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ue$1}constructor(t=false){this._emitDistinctChangesOnly=t;}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t);}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=false;let r=Sl(t);(this._changesDetected=!Nl(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0]);}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this);}onDirty(t){this._onDirty=t;}setDirty(){this.dirty=true,this._onDirty?.();}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe());}[Symbol.iterator]=ym$1};function yd$1(e){return (e.flags&128)===128}var Fa$1=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(Fa$1||{}),vd$1=new Map,vm$1=0;function Em$1(){return vm$1++}function Im$1(e){vd$1.set(e[Me$1],e);}function oa$1(e){vd$1.delete(e[Me$1]);}var bu$2="__ngContext__";function pn$2(e,t){Be$2(t)?(e[bu$2]=t[Me$1],Im$1(t)):e[bu$2]=t;}function Ed$1(e){return Dd$1(e[sn])}function Id$1(e){return Dd$1(e[ne])}function Dd$1(e){for(;e!==null&&!re$1(e);)e=e[ne];return e}var ia$1;function Dm$1(e){ia$1=e;}function ja$2(){if(ia$1!==void 0)return ia$1;if(typeof document<"u")return document;throw new b(210,false)}var wd$1="r";var Td$1="di";var wm$1=new x(""),Cd$1=false,bd$1=new x("",{factory:()=>Cd$1});var _u$2=new WeakMap;function Tm$1(e,t){if(e==null||typeof e!="object")return;let n=_u$2.get(e);n||(n=new WeakSet,_u$2.set(e,n)),n.add(t);}function oi$2(e){return (e.flags&32)===32}var _m$1=()=>null;function _d$1(e,t,n=false){return _m$1()}function Md$1(e,t){let n=e.contentQueries;if(n!==null){let r=m$1(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Io$2(i),a.contentQueries(2,t[s],s);}}}finally{m$1(r);}}}function sa$1(e,t,n){Io$2(0);let r=m$1(null);try{t(e,n);}finally{m$1(r);}}function Va$2(e,t,n){if(Es$2(t)){let r=m$1(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s);}}}finally{m$1(r);}}}var Ft$2=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Ft$2||{});var No$2;function Mm$1(){if(No$2===void 0&&(No$2=null,Ce$1.trustedTypes))try{No$2=Ce$1.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return No$2}function ii$2(e){return Mm$1()?.createHTML(e)||e}var So$2;function Nd$1(){if(So$2===void 0&&(So$2=null,Ce$1.trustedTypes))try{So$2=Ce$1.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e});}catch{}return So$2}function Mu$2(e){return Nd$1()?.createHTML(e)||e}function Nu$2(e){return Nd$1()?.createScriptURL(e)||e}var Ue$2=class Ue{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t;}toString(){return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${eo$2})`}},aa$1=class aa extends Ue$2{getTypeName(){return "HTML"}},ca$1=class ca extends Ue$2{getTypeName(){return "Style"}},la$1=class la extends Ue$2{getTypeName(){return "Script"}},ua$1=class ua extends Ue$2{getTypeName(){return "URL"}},da$1=class da extends Ue$2{getTypeName(){return "ResourceURL"}};function In$2(e){return e instanceof Ue$2?e.changingThisBreaksApplicationSecurity:e}function si$2(e,t){let n=Sd$1(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return true;throw new Error(`Required a safe ${t}, got a ${n} (see ${eo$2})`)}return n===t}function Sd$1(e){return e instanceof Ue$2&&e.getTypeName()||null}function Nm$1(e){return new aa$1(e)}function Sm$1(e){return new ca$1(e)}function xm$1(e){return new la$1(e)}function Am$1(e){return new ua$1(e)}function Rm$1(e){return new da$1(e)}function km$1(e){let t=new pa$1(e);return Om$1()?new fa$1(t):t}var fa$1=class fa{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t;}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ii$2(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},pa$1=class pa{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ii$2(t),n}};function Om$1(){try{return !!new window.DOMParser().parseFromString(ii$2(""),"text/html")}catch{return false}}var Lm$1=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ha$2(e){return e=String(e),e.match(Lm$1)?e:"unsafe:"+e}function We(e){let t={};for(let n of e.split(","))t[n]=true;return t}function lr$1(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=true);return t}var xd$1=We("area,br,col,hr,img,wbr"),Ad$1=We("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rd$1=We("rp,rt"),Pm$1=lr$1(Rd$1,Ad$1),Fm$1=lr$1(Ad$1,We("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jm$1=lr$1(Rd$1,We("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Su$1=lr$1(xd$1,Fm$1,jm$1,Pm$1),kd$2=We("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vm$1=We("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Hm$1=We("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Bm$1=lr$1(kd$2,Vm$1,Hm$1),$m$1=We("script,style,template"),ha$1=class ha{sanitizedSomething=false;buf=[];sanitizeChildren(t){let n=t.firstChild,r=true,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=true,r&&n.firstChild){o.push(n),n=qm$1(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=Wm$1(n);if(i){n=i;break}n=o.pop();}}return this.buf.join("")}startElement(t){let n=xu$2(t).toLowerCase();if(!Su$1.hasOwnProperty(n))return this.sanitizedSomething=true,!$m$1.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o<r.length;o++){let i=r.item(o),s=i.name,a=s.toLowerCase();if(!Bm$1.hasOwnProperty(a)){this.sanitizedSomething=true;continue}let c=i.value;kd$2[a]&&(c=Ha$2(c)),this.buf.push(" ",s,'="',Au$2(c),'"');}return this.buf.push(">"),true}endElement(t){let n=xu$2(t).toLowerCase();Su$1.hasOwnProperty(n)&&!xd$1.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"));}chars(t){this.buf.push(Au$2(t));}};function Um$1(e,t){return (e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Wm$1(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Od$1(t);return t}function qm$1(e){let t=e.firstChild;if(t&&Um$1(e,t))throw Od$1(t);return t}function xu$2(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Od$1(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var Gm$1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zm$1=/([^\#-~ |!])/g;function Au$2(e){return e.replace(/&/g,"&amp;").replace(Gm$1,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return "&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(zm$1,function(t){return "&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var xo$2;function Ld$1(e,t){let n=null;try{xo$2=xo$2||km$1(e);let r=t?String(t):"";n=xo$2.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=xo$2.getInertBodyElement(r);}while(r!==i);let a=new ha$1().sanitizeChildren(Ru$1(n)||n);return ii$2(a)}finally{if(n){let r=Ru$1(n)||n;for(;r.firstChild;)r.firstChild.remove();}}}function Ru$1(e){return "content"in e&&Qm$1(e)?e.content:null}function Qm$1(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Zm$1=/^>|^->|<!--|-->|--!>|<!-$/g,Ym$1=/(<|>)/g,Km$1="\u200B$1\u200B";function Jm$1(e){return e.replace(Zm$1,t=>t.replace(Ym$1,Km$1))}function Xm$1(e,t){return e.createText(t)}function ey(e,t,n){e.setValue(t,n);}function ty(e,t){return e.createComment(Jm$1(t))}function Pd$1(e,t,n){return e.createElement(t,n)}function Uo$2(e,t,n,r,o){e.insertBefore(t,n,r,o);}function Fd$1(e,t,n){e.appendChild(t,n);}function ku$2(e,t,n,r,o){r!==null?Uo$2(e,t,n,r,o):Fd$1(e,t,n);}function jd$1(e,t,n,r){e.removeChild(null,t,n,r);}function ny(e,t,n){e.setAttribute(t,"style",n);}function ry(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n);}function Vd$1(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&rm$1(e,t,r),o!==null&&ry(e,t,o),i!==null&&ny(e,t,i);}var ur$1=(function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(ur$1||{});function oy(e){let t=Ba$2();return t?Mu$2(t.sanitize(ur$1.HTML,e)||""):si$2(e,"HTML")?Mu$2(In$2(e)):Ld$1(ja$2(),_t$2(e))}function Hd$1(e){let t=Ba$2();return t?t.sanitize(ur$1.URL,e)||"":si$2(e,"URL")?In$2(e):Ha$2(_t$2(e))}function Bd$1(e){let t=Ba$2();if(t)return Nu$2(t.sanitize(ur$1.RESOURCE_URL,e)||"");if(si$2(e,"ResourceURL"))return Nu$2(In$2(e));throw new b(904,false)}var iy={embed:{src:true},frame:{src:true},iframe:{src:true},media:{src:true},base:{href:true},link:{href:true},object:{data:true,codebase:true}};function sy(e,t){return iy[e.toLowerCase()]?.[t.toLowerCase()]===true?Bd$1:Hd$1}function ay(e,t,n){return sy(t,n)(e)}function Ba$2(){let e=v();return e&&e[he$1].sanitizer}function cy(e){return e instanceof Function?e():e}function ly(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1;}}var $d$1="ng-template";function uy(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&ly(t[o+1].toLowerCase(),n,0)!==-1)return true}else if($a$1(e))return false;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return true}return false}function $a$1(e){return e.type===4&&e.value!==$d$1}function dy(e,t,n){let r=e.type===4&&!n?$d$1:e.value;return t===r}function fy(e,t,n){let r=4,o=e.attrs,i=o!==null?gy(o):0,s=false;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!me$1(r)&&!me$1(c))return false;if(s&&me$1(c))continue;s=false,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!dy(e,c,n)||c===""&&t.length===1){if(me$1(r))return false;s=true;}}else if(r&8){if(o===null||!uy(e,o,c,n)){if(me$1(r))return false;s=true;}}else {let l=t[++a],u=py(c,o,$a$1(e),n);if(u===-1){if(me$1(r))return false;s=true;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(me$1(r))return false;s=true;}}}}return me$1(r)||s}function me$1(e){return (e&1)===0}function py(e,t,n,r){if(t===null)return -1;let o=0;if(r||!n){let i=false;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=true;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else {if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2;}return -1}else return my(t,e)}function Ud$1(e,t,n=false){for(let r=0;r<t.length;r++)if(fy(e,t[r],n))return true;return false}function hy(e){let t=e.attrs;if(t!=null){let n=t.indexOf(5);if((n&1)===0)return t[n+1]}return null}function gy(e){for(let t=0;t<e.length;t++){let n=e[t];if(sd(n))return t}return e.length}function my(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return -1;if(r===t)return n;n++;}return -1}function yy(e,t){e:for(let n=0;n<t.length;n++){let r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return true}}return false}function Ou$2(e,t){return e?":not("+t.trim()+")":t}function vy(e){let t=e[0],n=1,r=2,o="",i=false;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]";}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!me$1(s)&&(t+=Ou$2(i,o),o=""),r=s,i=i||!me$1(r);n++;}return o!==""&&(t+=Ou$2(i,o)),t}function Ey(e){return e.map(vy).join(",")}function Iy(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else {if(!me$1(o))break;o=i;}r++;}return n.length&&t.push(1,...n),t}var Q$1={},Wo$2=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(Wo$2||{}),Dy;function Ua$2(e,t){return Dy(e,t)}typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var ga$1=new WeakMap;function Wd$1(e){return e?e[nt$2]??e:null}var Zn$2=new WeakSet;function wy(e,t,n){let r=ga$1.get(e);if(!r||r.length===0)return;let o=t.parentNode,i=t.previousSibling,s=Wd$1(n);for(let a=r.length-1;a>=0;a--){let{el:c,declarationView:l}=r[a],u=c.parentNode;c===t?(r.splice(a,1),Zn$2.add(c),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}}))):i&&c===i?(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c)):u&&o&&u!==o&&(s===null||l===null||s===l)&&(r.splice(a,1),c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:true}})),c.parentNode?.removeChild(c));}}function Ty(e,t,n){let r=Wd$1(n),o=ga$1.get(e);o?o.some(i=>i.el===t)||o.push({el:t,declarationView:r}):ga$1.set(e,[{el:t,declarationView:r}]);}var hn$2=new Set,ai$2=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(ai$2||{}),Vt$2=new x(""),Lu$2=new Set;function Ht$2(e){Lu$2.has(e)||(Lu$2.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}));}var ci$2=(()=>{class e{impl=null;execute(){this.impl?.execute();}static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),Wa$2=[0,1,2,3],qa$2=(()=>{class e{ngZone=T(we$1);scheduler=T(Te$1);errorHandler=T(He$2,{optional:true});sequences=new Set;deferredRegistrations=new Set;executing=false;constructor(){T(Vt$2,{optional:true});}execute(){let n=this.sequences.size>0;n&&R$1(N.AfterRenderHooksStart),this.executing=true;for(let r of Wa$2)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot));}catch(i){o.erroredOrDestroyed=true,this.errorHandler?.handleError(i);}this.executing=false;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&R$1(N.AfterRenderHooksEnd);}register(n){let{view:r}=n;r!==void 0?((r[xt$1]??=[]).push(n),kt$2(r),r[I$2]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n);}addSequence(n){this.sequences.add(n),this.scheduler.notify(7);}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=true,n.pipelinedValue=void 0,n.once=true):(this.sequences.delete(n),this.deferredRegistrations.delete(n));}maybeTrace(n,r){return r?r.run(ai$2.AFTER_NEXT_RENDER,n):n()}static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>new e})}return e})(),Xn$2=class Xn{impl;hooks;view;once;snapshot;erroredOrDestroyed=false;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy());}afterRun(){this.erroredOrDestroyed=false,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null;}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[xt$1];t&&(this.view[xt$1]=t.filter(n=>n!==this));}};function Cy(e,t){let n=t?.injector??T(fe$1);return Ht$2("NgAfterNextRender"),_y(e,n,t,true)}function by(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function _y(e,t,n,r){let o=t.get(ci$2);o.impl??=t.get(qa$2);let i=t.get(Vt$2,null,{optional:true}),s=n?.manualCleanup!==true?t.get(xe$2):null,a=t.get(un$1,null,{optional:true}),c=new Xn$2(o.impl,by(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Ga$2=new x("",{factory:()=>{let e=T(ee$1),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:false,scheduler:null,injector:e}}});function qd$1(e,t,n){let r=e.get(Ga$2);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e);}function My(e,t){let n=e.get(Ga$2);if(Array.isArray(t))for(let r of t)n.queue.delete(r);else n.queue.delete(t);}function Ny(e,t){let n=e.get(Ga$2);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0;}}function Sy(e,t){for(let[n,r]of t)qd$1(e,r.animateFns);}function Pu$2(e,t,n,r){let o=e?.[Ne]?.enter;t!==null&&o&&o.has(n.index)&&Sy(r,o);}function Fu$2(e,t,n,r){try{n.get(Vn$2);}catch{return r(false)}let o=e?.[Ne];o?.enter?.has(t.index)&&My(n,o.enter.get(t.index).animateFns);let i=xy(e,t,o);if(i.size===0){let s=false;if(e){let a=[];li$2(e,t,a),s=a.length>0;}if(!s)return r(false)}e&&hn$2.add(e[Me$1]),qd$1(n,()=>Ay(e,t,o||void 0,i,r),o||void 0);}function xy(e,t,n){let r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(let[i,s]of o){if(r.has(i))continue;let c=e[g$1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent;}}return r}function Ay(e,t,n,r,o){let i=[];if(n&&n.leave)for(let[s]of r){if(!n.leave.has(s))continue;let a=n.leave.get(s);for(let c of a.animateFns){let{promise:l}=c();i.push(l);}n.detachedLeaveAnimationFns=void 0;}if(e&&li$2(e,t,i),i.length>0){let s=n||e?.[Ne];if(s){let a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),ky(e,s.running,o);}else Promise.allSettled(i).then(()=>{e&&hn$2.delete(e[Me$1]),o(true);});}else e&&hn$2.delete(e[Me$1]),o(false);}function li$2(e,t,n){if(t.type&12){let o=e[t.index];if(re$1(o))for(let i=F$1;i<o.length;i++){let s=o[i];s[g$1].type===2&&Ry(s,n);}}let r=t.child;for(;r;)li$2(e,r,n),r=r.next;}function Ry(e,t){let n=e[Ne];if(n&&n.leave)for(let o of n.leave.values())for(let i of o.animateFns){let{promise:s}=i();t.push(s);}let r=e[g$1].firstChild;for(;r;)li$2(e,r,t),r=r.next;}function ky(e,t,n){t.then(()=>{e[Ne]?.running===t&&(e[Ne].running=void 0,hn$2.delete(e[Me$1])),n(true);});}function dn$2(e,t,n,r,o,i,s,a){if(o!=null){let c,l=false;re$1(o)?c=o:Be$2(o)&&(l=true,o=o[pe$1]);let u=oe$1(o);e===0&&r!==null?(Pu$2(a,r,i,n),s==null?Fd$1(t,r,u):Uo$2(t,r,u,s||null,true)):e===1&&r!==null?(Pu$2(a,r,i,n),Uo$2(t,r,u,s||null,true),wy(i,u,a)):e===2?(a?.[Ne]?.leave?.has(i.index)&&Ty(i,u,a),Zn$2.delete(u),Fu$2(a,i,n,d=>{if(Zn$2.has(u)){Zn$2.delete(u);return}jd$1(t,u,l,d);})):e===3&&(Zn$2.delete(u),Fu$2(a,i,n,()=>{t.destroyNode(u);})),c!=null&&Uy(t,e,n,c,i,r,s);}}function Oy(e,t){Gd$1(e,t),t[pe$1]=null,t[z]=null;}function Ly(e,t,n,r,o,i){r[pe$1]=o,r[z]=t,di$2(e,r,n,1,o,i);}function Gd$1(e,t){t[he$1].changeDetectionScheduler?.notify(9),di$2(e,t,t[k],2,null,null);}function Py(e){let t=e[sn];if(!t)return Gs$2(e[g$1],e);for(;t;){let n=null;if(Be$2(t))n=t[sn];else {let r=t[F$1];r&&(n=r);}if(!n){for(;t&&!t[ne]&&t!==e;)Be$2(t)&&Gs$2(t[g$1],t),t=t[H];t===null&&(t=e),Be$2(t)&&Gs$2(t[g$1],t),n=t&&t[ne];}t=n;}}function za$2(e,t){let n=e[At$2],r=n.indexOf(t);n.splice(r,1);}function ui$2(e,t){if(Rt(t))return;let n=t[k];n.destroyNode&&di$2(e,t,n,3,null,null),Py(t);}function Gs$2(e,t){if(Rt(t))return;let n=m$1(null);try{t[I$2]&=-129,t[I$2]|=256,t[X$2]&&Ke$2(t[X$2]),jy(e,t),Fy(e,t),t[g$1].type===1&&t[k].destroy();let r=t[rt$1];if(r!==null&&re$1(t[H])){r!==t[H]&&za$2(r,t);let o=t[_e$1];o!==null&&o.detachView(e);}oa$1(t);}finally{m$1(n);}}function Fy(e,t){let n=e.cleanup,r=t[on];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2;}else {let a=r[n[s+1]];n[s].call(a);}r!==null&&(t[on]=null);let o=t[je$1];if(o!==null){t[je$1]=null;for(let s=0;s<o.length;s++){let a=o[s];a();}}let i=t[et$1];if(i!==null){t[et$1]=null;for(let s of i)s.destroy();}}function jy(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Pt$2)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];R$1(N.LifecycleHookStart,a,c);try{c.call(a);}finally{R$1(N.LifecycleHookEnd,a,c);}}else {R$1(N.LifecycleHookStart,o,i);try{i.call(o);}finally{R$1(N.LifecycleHookEnd,o,i);}}}}}function zd$1(e,t,n){return Vy(e,t.parent,n)}function Vy(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[pe$1];if($e$1(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Ft$2.None||o===Ft$2.Emulated)return null}return ge$1(r,n)}function Qd$1(e,t,n){return By(e,t,n)}function Hy(e,t,n){return e.type&40?ge$1(e,n):null}var By=Hy;function Qa$2(e,t,n,r){let o=zd$1(e,r,t),i=t[k],s=r.parent||t[z],a=Qd$1(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)ku$2(i,o,n[c],a,false);else ku$2(i,o,n,a,false);}function Yn$2(e,t){if(t!==null){let n=t.type;if(n&3)return ge$1(t,e);if(n&4)return ma$1(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Yn$2(e,r);{let o=e[t.index];return re$1(o)?ma$1(-1,o):oe$1(o)}}else {if(n&128)return Yn$2(e,t.next);if(n&32)return Ua$2(t,e)()||oe$1(e[t.index]);{let r=Zd$1(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ve$2(e[K]);return Yn$2(o,r)}else return Yn$2(e,t.next)}}}return null}function Zd$1(e,t){if(t!==null){let r=e[K][z],o=t.projection;return r.projection[o]}return null}function ma$1(e,t){let n=F$1+e+1;if(n<t.length){let r=t[n],o=r[g$1].firstChild;if(o!==null)return Yn$2(r,o)}return t[ot$1]}function Za$2(e,t,n,r,o,i,s){for(;n!=null;){let a=r[be$1];if(n.type===128){n=n.next;continue}let c=r[n.index],l=n.type;if(s&&t===0&&(c&&pn$2(oe$1(c),r),n.flags|=2),!oi$2(n))if(l&8)Za$2(e,t,n.child,r,o,i,false),dn$2(t,e,a,o,c,n,i,r);else if(l&32){let u=Ua$2(n,r),d;for(;d=u();)dn$2(t,e,a,o,d,n,i,r);dn$2(t,e,a,o,c,n,i,r);}else l&16?Yd$1(e,t,r,n,o,i):dn$2(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next;}}function di$2(e,t,n,r,o,i){Za$2(n,r,e.firstChild,t,o,i,false);}function $y(e,t,n){let r=t[k],o=zd$1(e,n,t),i=n.parent||t[z],s=Qd$1(i,n,t);Yd$1(r,0,t,n,o,s);}function Yd$1(e,t,n,r,o,i){let s=n[K],c=s[z].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];dn$2(t,e,n[be$1],o,u,r,i,n);}else {let l=c,u=s[H];yd$1(r)&&(l.flags|=128),Za$2(e,t,l,u,o,i,true);}}function Uy(e,t,n,r,o,i,s){let a=r[ot$1],c=oe$1(r);a!==c&&dn$2(t,e,n,i,a,o,s);for(let l=F$1;l<r.length;l++){let u=r[l];di$2(u[g$1],u,e,t,i,a);}}function Wy(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else {let i=r.indexOf("-")===-1?void 0:Wo$2.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Wo$2.Important),e.setStyle(n,r,o,i));}}function Ya$2(e,t,n,r,o,i,s,a,c,l,u){let d=L$2+r,p=d+o,f=qy(d,p),h=typeof l=="function"?l():l;return f[g$1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:true,firstUpdatePass:true,staticViewQueries:false,staticContentQueries:false,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:false,ssrId:u}}function qy(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:Q$1);return n}function Gy(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Ya$2(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Ka$2(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[pe$1]=o,d[I$2]=r|4|128|8|64|1024,(l!==null||e&&e[I$2]&2048)&&(d[I$2]|=2048),Ts$2(d),d[H]=d[nt$2]=e,d[V$1]=n,d[he$1]=s||e&&e[he$1],d[k]=a||e&&e[k],d[be$1]=c||e&&e[be$1]||null,d[z]=i,d[Me$1]=Em$1(),d[Nt$2]=u,d[ys$2]=l,d[K]=t.type==2?e[K]:d,d}function zy(e,t,n){let r=ge$1(t,e),o=Gy(n),i=e[he$1].rendererFactory,s=Ja$2(e,Ka$2(e,o,null,Kd$1(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Kd$1(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Jd$1(e,t,n,r){if(n===0)return -1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Ja$2(e,t){return e[sn]?e[ms$2][ne]=t:e[sn]=t,e[ms$2]=t,t}function Qy(e=1){Xd$1(P$1(),v(),Se()+e);}function Xd$1(e,t,n,r){if((t[I$2]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ro$2(t,i,n);}else {let i=e.preOrderHooks;i!==null&&ko$2(t,i,0,n);}at$1(n);}var fi$1=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(fi$1||{});function ya$1(e,t,n,r){let o=m$1(null);try{let[i,s,a]=e.inputs[n],c=null;(s&fi$1.SignalBased)!==0&&(c=t[i][j$1]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):td(t,c,i,r);}finally{m$1(o);}}function ef$1(e,t,n,r,o){let i=Se(),s=r&2;try{at$1(-1),s&&t.length>L$2&&Xd$1(e,t,L$2,!1);let a=s?N.TemplateUpdateStart:N.TemplateCreateStart;R$1(a,o,n),n(r,o);}finally{at$1(i);let a=s?N.TemplateUpdateEnd:N.TemplateCreateEnd;R$1(a,o,n);}}function pi$2(e,t,n){ev(e,t,n),(n.flags&64)===64&&tv(e,t,n);}function dr$1(e,t,n=ge$1){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a;}}}function Zy(e,t,n,r){let i=r.get(bd$1,Cd$1)||n===Ft$2.ShadowDom||n===Ft$2.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return s}function Jy(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function tf$1(e,t,n,r,o,i){let s=t[g$1];if(nc$2(e,s,t,n,r)){$e$1(e)&&Xy(t,e.index);return}e.type&3&&(n=Jy(n)),nf$1(e,t,n,r,o,i);}function nf$1(e,t,n,r,o,i){if(e.type&3){let s=ge$1(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r);}else e.type&12;}function Xy(e,t){let n=ie(t,e);n[I$2]&16||(n[I$2]|=64);}function ev(e,t,n){let r=n.directiveStart,o=n.directiveEnd;$e$1(n)&&zy(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bo$2(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Jn$2(t,e,s,n);if(pn$2(c,t),i!==null&&iv(t,s-r,c,a,n,i),it$1(a)){let l=ie(n.index,t);l[V$1]=Jn$2(t,e,s,n);}}}function tv(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=eu$2();try{at$1(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Eo$2(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&nv(c,l);}}finally{at$1(-1),Eo$2(s);}}function nv(e,t){e.hostBindings!==null&&e.hostBindings(1,t);}function Xa$2(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Ud$1(t,i.selectors,false)&&(r??=[],it$1(i)?r.unshift(i):r.push(i));}return r}function rv(e,t,n,r,o,i){let s=ge$1(e,t);ov(t[k],s,i,e.value,n,r,o);}function ov(e,t,n,r,o,i,s){if(i==null)s?.(i,r||"",o),e.removeAttribute(t,o,n);else {let a=s==null?_t$2(i):s(i,r||"",o);e.setAttribute(t,o,a,n);}}function iv(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];ya$1(r,n,c,l);}}function ec$2(e,t,n,r,o){let i=L$2+n,s=t[g$1],a=o(s,t,e,r,n);t[i]=a,ln$2(e,true);let c=e.type===2;return c?(Vd$1(t[k],a,e),(Wl()===0||an(e))&&pn$2(a,t),ql$1()):pn$2(a,t),To$2()&&(!c||!oi$2(e))&&Qa$2(s,t,a,e),e}function tc$2(e){let t=e;return Rs$2()?ks$2():(t=t.parent,ln$2(t,false)),t}function sv(e,t){let n=e[be$1];if(!n)return;let r;try{r=n.get(ct$1,null);}catch{r=null;}r?.(t);}function nc$2(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=false;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];ya$1(d,n[l],u,o),a=true;}if(i)for(let c of i){let l=n[c],u=t.data[c];ya$1(u,l,r,o),a=true;}return a}function av(e,t){let n=ie(t,e),r=n[g$1];cv(r,n);let o=n[pe$1];o!==null&&n[Nt$2]===null&&(n[Nt$2]=_d$1(o,n[be$1])),R$1(N.ComponentStart);try{rc$2(r,n,n[V$1]);}finally{R$1(N.ComponentEnd,n[V$1]);}}function cv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n]);}function rc$2(e,t,n){Do$2(t);try{let r=e.viewQuery;r!==null&&sa$1(1,r,n);let o=e.template;o!==null&&ef$1(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[_e$1]?.finishViewCreation(e),e.staticContentQueries&&Md$1(e,t),e.staticViewQueries&&sa$1(2,e.viewQuery,n);let i=e.components;i!==null&&lv(t,i);}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=true,e.firstCreatePass=false),r}finally{t[I$2]&=-5,wo$2();}}function lv(e,t){for(let n=0;n<t.length;n++)av(e,t[n]);}function fr$1(e,t,n,r){let o=m$1(null);try{let i=t.tView,a=e[I$2]&4096?4096:16,c=Ka$2(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[rt$1]=l;let u=e[_e$1];return u!==null&&(c[_e$1]=u.createEmbeddedView(i)),rc$2(i,c,n),c}finally{m$1(o);}}function gn$2(e,t){return !t||t.firstChild===null||yd$1(e)}function er$2(e,t,n,r,o=false){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(oe$1(i)),re$1(i)&&rf$1(i,r);let s=n.type;if(s&8)er$2(e,t,n.child,r);else if(s&32){let a=Ua$2(n,t),c;for(;c=a();)r.push(c);}else if(s&16){let a=Zd$1(t,n);if(Array.isArray(a))r.push(...a);else {let c=Ve$2(t[K]);er$2(c[g$1],c,a,r,true);}}n=o?n.projectionNext:n.next;}return r}function rf$1(e,t){for(let n=F$1;n<e.length;n++){let r=e[n],o=r[g$1].firstChild;o!==null&&er$2(r[g$1],r,o,t);}e[ot$1]!==e[pe$1]&&t.push(e[ot$1]);}function of$1(e){if(e[xt$1]!==null){for(let t of e[xt$1])t.impl.addSequence(t);e[xt$1].length=0;}}var sf$1=[];function uv(e){return e[X$2]??dv(e)}function dv(e){let t=sf$1.pop()??Object.create(pv);return t.lView=e,t}function fv(e){e.lView[X$2]!==e&&(e.lView=null,sf$1.push(e));}var pv=U$1($({},Ze$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{kt$2(e.lView);},consumerOnSignalRead(){this.lView[X$2]=this;}});function hv(e){let t=e[X$2]??Object.create(gv);return t.lView=e,t}var gv=U$1($({},Ze$1),{consumerIsAlwaysLive:true,kind:"template",consumerMarkedDirty:e=>{let t=Ve$2(e.lView);for(;t&&!af$1(t[g$1]);)t=Ve$2(t);t&&Cs$2(t);},consumerOnSignalRead(){this.lView[X$2]=this;}});function af$1(e){return e.type!==2}function cf$1(e){if(e[et$1]===null)return;let t=true;for(;t;){let n=false;for(let r of e[et$1])r.dirty&&(n=true,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[I$2]&8192);}}var mv=100;function lf$1(e,t=0){let r=e[he$1].rendererFactory;r.begin?.();try{yv(e,t);}finally{r.end?.();}}function yv(e,t){let n=Os$2();try{Rn$2(!0),va$1(e,t);let r=0;for(;$n$2(e);){if(r===mv)throw new b(103,!1);r++,va$1(e,1);}}finally{Rn$2(n);}}function vv(e,t,n,r){if(Rt(t))return;let o=t[I$2],i=false,s=false;Do$2(t);let a=true,c=null,l=null;(af$1(e)?(l=uv(t),c=Pe(l)):qr$1()===null?(a=false,l=hv(t),c=Pe(l)):t[X$2]&&(Ke$2(t[X$2]),t[X$2]=null));try{Ts$2(t),Kl(e.bindingStartIndex),n!==null&&ef$1(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ro$2(t,f,null);}else {let f=e.preOrderHooks;f!==null&&ko$2(t,f,0,null),Ws$2(t,0);}if(s||Ev(t),cf$1(t),uf$1(t,0),e.contentQueries!==null&&Md$1(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ro$2(t,f);}else {let f=e.contentHooks;f!==null&&ko$2(t,f,1),Ws$2(t,1);}Dv(e,t);let d=e.components;d!==null&&ff$1(t,d,0);let p=e.viewQuery;if(p!==null&&sa$1(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ro$2(t,f);}else {let f=e.viewHooks;f!==null&&ko$2(t,f,2),Ws$2(t,2);}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[uo$2]){for(let f of t[uo$2])f();t[uo$2]=null;}i||(of$1(t),t[I$2]&=-73);}catch(u){throw kt$2(t),u}finally{l!==null&&(Ye$1(l,c),a&&fv(l)),wo$2();}}function uf$1(e,t){for(let n=Ed$1(e);n!==null;n=Id$1(n))for(let r=F$1;r<n.length;r++){let o=n[r];df$1(o,t);}}function Ev(e){for(let t=Ed$1(e);t!==null;t=Id$1(t)){if(!(t[I$2]&2))continue;let n=t[At$2];for(let r=0;r<n.length;r++){let o=n[r];Cs$2(o);}}}function Iv(e,t,n){R$1(N.ComponentStart);let r=ie(t,e);try{df$1(r,n);}finally{R$1(N.ComponentEnd,r[V$1]);}}function df$1(e,t){ho$2(e)&&va$1(e,t);}function va$1(e,t){let r=e[g$1],o=e[I$2],i=e[X$2],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&Yt$2(i)),s||=false,i&&(i.dirty=false),e[I$2]&=-9217,s)vv(r,e,r.template,e[V$1]);else if(o&8192){let a=m$1(null);try{cf$1(e),uf$1(e,1);let c=r.components;c!==null&&ff$1(e,c,1),of$1(e);}finally{m$1(a);}}}function ff$1(e,t,n){for(let r=0;r<t.length;r++)Iv(e,t[r],n);}function Dv(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)at$1(~o);else {let i=o,s=n[++r],a=n[++r];Xl$1(s,i);let c=t[i];R$1(N.HostBindingsUpdateStart,c);try{a(2,c);}finally{R$1(N.HostBindingsUpdateEnd,c);}}}}finally{at$1(-1);}}function oc$2(e,t){let n=Os$2()?64:1088;for(e[he$1].changeDetectionScheduler?.notify(t);e;){e[I$2]|=n;let r=Ve$2(e);if(cn$2(e)&&!r)return e;e=r;}return null}function pf$1(e,t,n,r){return [e,true,0,t,null,r,null,n,null,null]}function hf$1(e,t){let n=F$1+t;if(n<e.length)return e[n]}function pr$1(e,t,n,r=true){let o=t[g$1];if(wv(o,t,e,n),r){let s=ma$1(n,e),a=t[k],c=a.parentNode(e[ot$1]);c!==null&&Ly(o,e[z],a,t,c,s);}let i=t[Nt$2];i!==null&&i.firstChild!==null&&(i.firstChild=null);}function gf$1(e,t){let n=tr$1(e,t);return n!==void 0&&ui$2(n[g$1],n),n}function tr$1(e,t){if(e.length<=F$1)return;let n=F$1+t,r=e[n];if(r){let o=r[rt$1];o!==null&&o!==e&&za$2(o,r),t>0&&(e[n-1][ne]=r[ne]);let i=jn$2(e,F$1+t);Oy(r[g$1],r);let s=i[_e$1];s!==null&&s.detachView(i[g$1]),r[H]=null,r[ne]=null,r[I$2]&=-129;}return r}function wv(e,t,n,r){let o=F$1+r,i=n.length;r>0&&(n[o-1][ne]=t),r<i-F$1?(t[ne]=n[o],us$2(n,F$1+r,t)):(n.push(t),t[ne]=null),t[H]=n;let s=t[rt$1];s!==null&&n!==s&&mf$1(s,t);let a=t[_e$1];a!==null&&a.insertView(e),go$2(t),t[I$2]|=128;}function mf$1(e,t){let n=e[At$2],r=t[H];if(Be$2(r))e[I$2]|=2;else {let o=r[H][K];t[K]!==o&&(e[I$2]|=2);}n===null?e[At$2]=[t]:n.push(t);}var ut$1=class ut{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=false;exhaustive;get rootNodes(){let t=this._lView,n=t[g$1];return er$2(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n;}get context(){return this._lView[V$1]}set context(t){this._lView[V$1]=t;}get destroyed(){return Rt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[H];if(re$1(t)){let n=t[Bn$2],r=n?n.indexOf(this):-1;r>-1&&(tr$1(t,r),jn$2(n,r));}this._attachedToViewContainer=false;}ui$2(this._lView[g$1],this._lView);}onDestroy(t){mo$2(this._lView,t);}markForCheck(){oc$2(this._cdRefInjectingView||this._lView,4);}detach(){this._lView[I$2]&=-129;}reattach(){go$2(this._lView),this._lView[I$2]|=128;}detectChanges(){this._lView[I$2]|=1024,lf$1(this._lView);}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,false);this._attachedToViewContainer=true;}detachFromAppRef(){this._appRef=null;let t=cn$2(this._lView),n=this._lView[rt$1];n!==null&&!t&&za$2(n,this._lView),Gd$1(this._lView[g$1],this._lView);}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,false);this._appRef=t;let n=cn$2(this._lView),r=this._lView[rt$1];r!==null&&!n&&mf$1(r,this._lView),go$2(this._lView);}};var nr$1=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Tv;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o;}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=fr$1(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new ut$1(i)}}return e})();function Tv(){return hi$1(B$1(),v())}function hi$1(e,t){return e.type&4?new nr$1(t,e,En$2(e,t)):null}function Dn$1(e,t,n,r,o){let i=e.data[t];if(i===null)i=Cv(e,t,n,r,o),Jl()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Ql();i.injectorIndex=s===null?-1:s.injectorIndex;}return ln$2(i,true),i}function Cv(e,t,n,r,o){let i=As$2(),s=Rs$2(),a=s?i:i&&i.parent,c=e.data[t]=_v(e,a,n,t,r,o);return bv(e,c,i,s),c}function bv(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n));}function _v(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ns$2()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:Fs$2(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Mv(e){let t=e[vs$2]??[],r=e[H][k],o=[];for(let i of t)i.data[Td$1]!==void 0?o.push(i):Nv(i,r);e[vs$2]=o;}function Nv(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[wd$1];for(;n<o;){let i=r.nextSibling;jd$1(t,r,false),r=i,n++;}}}var Sv=()=>null,xv=()=>null;function qo$2(e,t){return Sv()}function yf$1(e,t,n){return xv()}var vf$1=class vf{},rr$1=class rr{},Av=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Rv()}return e})();function Rv(){let e=v(),t=B$1(),n=ie(t.index,e);return (Be$2(n)?n:e)[k]}var Ef$1=(()=>{class e{static \u0275prov=te$1({token:e,providedIn:"root",factory:()=>null})}return e})();function If(e){return e.debugInfo?.className||e.type.name||null}var Lo$2={},Go$2=class Go{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n;}get(t,n,r){let o=this.injector.get(t,Lo$2,r);return o!==Lo$2||n===Lo$2?o:this.parentInjector.get(t,n,r)}};function gi$1(e,t,n){return e[t]=n}function Df$1(e,t){return e[t]}function ae$1(e,t,n){if(n===Q$1)return false;let r=e[t];return Object.is(r,n)?false:(e[t]=n,true)}function wf$1(e,t,n,r){let o=ae$1(e,t,n);return ae$1(e,t+1,r)||o}function Po$2(e,t,n){return function r(o){let i=r.__ngNativeEl__;i!==void 0&&Tm$1(o,i);let s=$e$1(e)?ie(e.index,t):t;oc$2(s,5);let a=t[V$1],c=Vu$2(t,a,n,o),l=r.__ngNextListenerFn__;for(;l;)c=Vu$2(t,a,l,o)&&c,l=l.__ngNextListenerFn__;return c}}function Vu$2(e,t,n,r){let o=m$1(null);try{return R$1(N.OutputStart,t,n),n(r)!==!1}catch(i){return sv(e,i),false}finally{R$1(N.OutputEnd,t,n),m$1(o);}}function Tf$1(e,t,n,r,o,i,s,a){let c=an(e),l=false,u=null;if(!r&&c&&(u=Ov(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=true;}else {let d=ge$1(e,n),p=r?r(d):d;r||(a.__ngNativeEl__=d);let f=o.listen(p,i,a);if(!kv(i)){let h=r?D=>r(oe$1(D[e.index])):e.index;Cf$1(h,t,n,i,a,f,false);}}return l}function kv(e){return e.startsWith("animation")||e.startsWith("transition")}function Ov(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[on],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2);}return null}function Cf$1(e,t,n,r,o,i,s){let a=t.firstCreatePass?_s$2(t):null,c=bs$2(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1));}function Hu$2(e,t,n,r,o,i){let s=t[n],a=t[g$1],l=a.data[n].outputs[r],d=s[l].subscribe(i);Cf$1(e.index,a,t,o,i,d,true);}var Ea$2=Symbol("BINDING");var bf$1=new x("");function zo$2(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=to$2(o,a);else if(i==2){let c=a,l=t[++s];r=to$2(r,c+": "+l+";");}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o;}function hr$1(e,t=0){let n=v();if(n===null)return De$3(e,t);let r=B$1();return pd$1(r,n,q(e),t)}function Lv(){let e="invalid";throw new Error(e)}function _f$1(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}jv(e,t,n,a,i,c,l);}i!==null&&r!==null&&Pv(n,r,i);}function Pv(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new b(-301,false);r.push(t[o],i);}}function Fv(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index);}function jv(e,t,n,r,o,i,s){let a=r.length,c=null;for(let p=0;p<a;p++){let f=r[p];c===null&&it$1(f)&&(c=f,Fv(e,n,p)),na$2(Bo$2(n,t),e,f.type);}Wv(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let p=0;p<a;p++){let f=r[p];f.providersResolver&&f.providersResolver(f);}let l=false,u=false,d=Jd$1(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let f=r[p];if(n.mergedAttrs=ri$2(n.mergedAttrs,f.hostAttrs),Hv(e,n,t,d,f),Uv(d,f,o),s!==null&&s.has(f)){let[D,S]=s.get(f);n.directiveToIndex.set(f.type,[d,D+n.directiveStart,S+n.directiveStart]);}else (i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let h=f.type.prototype;!l&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=true),!u&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=true),d++;}Vv(e,n,i);}function Vv(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Bu$2(0,t,o,r),Bu$2(1,t,o,r),Uu$2(t,r,false);else {let i=n.get(o);$u$2(0,t,i,r),$u$2(1,t,i,r),Uu$2(t,r,true);}}}function Bu$2(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Mf$1(t,i);}}function $u$2(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Mf$1(t,s);}}function Mf$1(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16);}function Uu$2(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||$a$1(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2;}e.initialInputs??=[],e.initialInputs.push(s);}function Hv(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Xe$1(o.type)),s=new Pt$2(i,it$1(o),hr$1,null);e.blueprint[r]=s,n[r]=s,Bv(e,t,r,Jd$1(e,n,o.hostVars,Q$1),o);}function Bv(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;$v(s)!=a&&s.push(a),s.push(n,r,i);}}function $v(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Uv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;it$1(t)&&(n[""]=e);}}function Wv(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t;}function ic$2(e,t,n,r,o,i,s,a){let c=t[g$1],l=c.consts,u=se$1(l,s),d=Dn$1(c,e,n,r,u);return _f$1(c,t,d,se$1(l,a),o),d.mergedAttrs=ri$2(d.mergedAttrs,d.attrs),d.attrs!==null&&zo$2(d,d.attrs,false),d.mergedAttrs!==null&&zo$2(d,d.mergedAttrs,true),c.queries!==null&&c.queries.elementStart(c,d),d}function sc$2(e,t){od$1(e,t),Es$2(t)&&e.queries.elementEnd(t);}function qv(e,t,n,r,o,i){let s=t.consts,a=se$1(s,o),c=Dn$1(t,e,n,r,a);if(c.mergedAttrs=ri$2(c.mergedAttrs,c.attrs),i!=null){let l=se$1(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1);}return c.attrs!==null&&zo$2(c,c.attrs,false),c.mergedAttrs!==null&&zo$2(c,c.mergedAttrs,true),t.queries!==null&&t.queries.elementStart(t,c),c}var Nf=typeof ShadowRoot<"u",Gv=typeof Document<"u";function zv(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&fi$1.SignalBased)!==0};return o&&(i.transform=o),i})}function Qv(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Zv(e,t,n){let r=t instanceof ee$1?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Go$2(n,r):n}function Yv(e){let t=e.get(rr$1,null);if(t===null)throw new b(407,false);let n=e.get(Ef$1,null),r=e.get(Te$1,null),o=e.get(Vt$2,null,{optional:true});return {rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:false,tracingService:o}}function Kv(e,t){let n=Sf$1(e);return Pd$1(t,n,n==="svg"?Is$2:n==="math"?Vl:null)}function Jv(e){if(e?.toLowerCase()==="script")throw new b(905,false)}function Sf$1(e){return (e.selectors[0][0]||"div").toLowerCase()}var mn$2=class mn{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=zv(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Qv(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Ey(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n;}create(t,n,r,o,i,s){R$1(N.DynamicComponentStart);let a=m$1(null);try{let c=this.componentDef,l=Zv(c,o||this.ngModule,t),u=Yv(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(If(c),()=>this.createComponentRef(u,l,n,r,i,s)):this.createComponentRef(u,l,n,r,i,s)}finally{m$1(a);}}createComponentRef(t,n,r,o,i,s){let a=this.componentDef,c=Xv(o,a,s,i),l=t.rendererFactory.createRenderer(null,a),u=o?Zy(l,o,a.encapsulation,n):Kv(a,l);Jv(u?.tagName);let d=n.get(bf$1,null),p=eE(u,()=>n.get(qn$2,null)??ja$2());d&&d.addHost(p);let f=s?.some(Wu$2)||i?.some(S=>typeof S!="function"&&S.bindings.some(Wu$2)),h=Ka$2(null,c,null,512|Kd$1(a),null,null,t,l,n,null,_d$1(u,n,true));d&&Nf&&p instanceof ShadowRoot&&mo$2(h,()=>{d.removeHost(p);}),h[L$2]=u,Do$2(h);let D=null;try{let S=ic$2(L$2,h,2,"#host",()=>c.directiveRegistry,!0,0);Vd$1(l,u,S),pn$2(u,h),pi$2(c,h,S),Va$2(c,S,h),sc$2(c,S),r!==void 0&&nE(S,this.ngContentSelectors,r),D=ie(S.index,h),h[V$1]=D[V$1],rc$2(c,h,null);}catch(S){throw D!==null&&oa$1(D),oa$1(h),S}finally{R$1(N.DynamicComponentEnd),wo$2();}return new Qo$2(this.componentType,h,!!f)}};function Xv(e,t,n,r){let o=e?["ng-version","22.0.8"]:Iy(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Ea$2].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let p of d.bindings){a+=p[Ea$2].requiredVars;let f=u+1;p.create&&(p.targetIdx=f,(i??=[]).push(p)),p.update&&(p.targetIdx=f,(s??=[]).push(p));}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,p=as$2(d);c.push(p);}return Ya$2(0,null,tE(i,s),1,a,c,null,null,null,[o],null)}function eE(e,t){let n=e.getRootNode?.();return Gv&&n instanceof Document?n.head:n&&Nf&&n instanceof ShadowRoot?n:t().head}function tE(e,t){return !e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update();}}function Wu$2(e){let t=e[Ea$2].kind;return t==="input"||t==="twoWay"}var Qo$2=class Qo extends vf$1{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=fo$2(n[g$1],L$2),this.location=En$2(this._tNode,n),this.instance=ie(this._tNode.index,n)[V$1],this.hostView=this.changeDetectorRef=new ut$1(n,void 0),this.componentType=t;}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;nc$2(r,o[g$1],o,t,n);this.previousInputValues.set(t,n);let s=ie(r.index,o);oc$2(s,1);}get injector(){return new lt$1(this._tNode,this._rootLView)}destroy(){this.hostView.destroy();}onDestroy(t){this.hostView.onDestroy(t);}};function nE(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null);}}var mi$2=(()=>{class e{static __NG_ELEMENT_ID__=rE}return e})();function rE(){let e=B$1();return xf$1(e,v())}var Ia$1=class e extends mi$2{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r;}get element(){return En$2(this._hostTNode,this._hostLView)}get injector(){return new lt$1(this._hostTNode,this._hostLView)}get parentInjector(){let t=Pa$2(this._hostTNode,this._hostLView);if(ad$1(t)){let n=Vo$2(t,this._hostLView),r=jo$2(t),o=n[g$1].data[r+8];return new lt$1(o,n)}else return new lt$1(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1);}get(t){let n=qu$2(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-F$1}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=qo$2(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,gn$2(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c,l=n||{};c=l.index,r=l.injector,o=l.projectableNodes,i=l.environmentInjector||l.ngModuleRef,s=l.directives,a=l.bindings;let u=new mn$2(tt$1(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let O=this.parentInjector.get(ee$1,null);O&&(i=O);}let p=tt$1(u.componentType??{}),f=qo$2(this._lContainer,p?.id??null),h=null,D=u.create(d,o,h,i,s,a);return this.insertImpl(D.hostView,c,gn$2(this._hostTNode,f)),D}insert(t,n){return this.insertImpl(t,n,true)}insertImpl(t,n,r){let o=t._lView;if(Hl(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else {let c=o[H],l=new e(c,c[z],c[H]);l.detach(l.indexOf(t));}}let i=this._adjustIndex(n),s=this._lContainer;return pr$1(s,o,i,r),t.attachToViewContainerRef(),us$2(zs$2(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=qu$2(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=tr$1(this._lContainer,n);r&&(jn$2(zs$2(this._lContainer),n),ui$2(r[g$1],r));}detach(t){let n=this._adjustIndex(t,-1),r=tr$1(this._lContainer,n);return r&&jn$2(zs$2(this._lContainer),n)!=null?new ut$1(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function qu$2(e){return e[Bn$2]}function zs$2(e){return e[Bn$2]||(e[Bn$2]=[])}function xf$1(e,t){let n,r=t[e.index];return re$1(r)?n=r:(n=pf$1(r,t,null,e),t[e.index]=n,Ja$2(t,n)),iE(n,t,e,r),new Ia$1(n,e,t)}function oE(e,t){let n=e[k],r=n.createComment(""),o=ge$1(t,e),i=n.parentNode(o);return Uo$2(n,i,r,n.nextSibling(o),false),r}var iE=cE;function cE(e,t,n,r){if(e[ot$1])return;let o;n.type&8?o=oe$1(r):o=oE(t,n),e[ot$1]=o;}var Da$1=class e{queryList;matches=null;constructor(t){this.queryList=t;}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty();}},wa$1=class e{queries;constructor(t=[]){this.queries=t;}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone());}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t);}detachView(t){this.dirtyQueriesWithMatches(t);}finishViewCreation(t){this.dirtyQueriesWithMatches(t);}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Lf$1(t,n).matches!==null&&this.queries[n].setDirty();}},Zo$2=class Zo{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=gE(t):this.predicate=t;}},Ta=class e{queries;constructor(t=[]){this.queries=t;}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n);}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t);}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i]);}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n);}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t);}},Ca$1=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=false;_declarationNodeIndex;_appliesToNextNode=true;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n;}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n);}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=false);}template(t,n){this.elementStart(t,n);}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=true,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,lE(n,i)),this.matchTNodeWithReadOption(t,n,Oo$2(n,t,i,false,false));}else r===nr$1?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Oo$2(n,t,r,false,false));}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===cr$1||o===mi$2||o===nr$1&&n.type&4)this.addMatch(n.index,-2);else {let i=Oo$2(n,t,o,false,false);i!==null&&this.addMatch(n.index,i);}else this.addMatch(n.index,r);}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n);}};function lE(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function uE(e,t){return e.type&11?En$2(e,t):e.type&4?hi$1(e,t):null}function dE(e,t,n,r){return n===-1?uE(t,e):n===-2?fE(e,t,r):Jn$2(e,e[g$1],n,t)}function fE(e,t,n){if(n===cr$1)return En$2(t,e);if(n===nr$1)return hi$1(t,e);if(n===mi$2)return xf$1(t,e)}function Af$1(e,t,n,r){let o=t[_e$1].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else {let u=i[l];a.push(dE(t,u,s[c+1],n.metadata.read));}}o.matches=a;}return o.matches}function ba(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Af$1(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else {let l=i[a+1],u=t[-c];for(let d=F$1;d<u.length;d++){let p=u[d];p[rt$1]===p[H]&&ba(p[g$1],p,l,r);}if(u[At$2]!==null){let d=u[At$2];for(let p=0;p<d.length;p++){let f=d[p];ba(f[g$1],f,l,r);}}}}}return r}function Rf(e,t){return e[_e$1].queries[t].queryList}function kf$1(e,t,n){let r=new $o$2((n&4)===4);return Ul$1(e,t,r,r.destroy),(t[_e$1]??=new wa$1).queries.push(new Da$1(r))-1}function pE(e,t,n){let r=P$1();return r.firstCreatePass&&(Of(r,new Zo$2(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=true)),kf$1(r,v(),t)}function hE(e,t,n,r){let o=P$1();if(o.firstCreatePass){let i=B$1();Of(o,new Zo$2(t,n,r),i.index),mE(o,e),(n&2)===2&&(o.staticContentQueries=true);}return kf$1(o,v(),n)}function gE(e){return e.split(",").map(t=>t.trim())}function Of(e,t,n){e.queries===null&&(e.queries=new Ta),e.queries.track(new Ca$1(t,n));}function mE(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t);}function Lf$1(e,t){return e.queries.getByIndex(t)}function yE(e,t){let n=e[g$1],r=Lf$1(n,t);return r.crossesNgTemplate?ba(n,e,t,[]):Af$1(n,e,r,t)}function ac$2(e,t,n){let r,o=Nn$2(()=>{r._dirtyCounter();let i=vE(r,e);if(t&&i===void 0)throw new b(-951,false);return i});return r=o[j$1],r._dirtyCounter=Co$2(0),r._flatValue=void 0,o}function cc$2(e){return ac$2(true,false)}function lc$2(e){return ac$2(true,true)}function uc$2(e){return ac$2(false,false)}function Pf$1(e,t){let n=e[j$1];n._lView=v(),n._queryIndex=t,n._queryList=Rf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1));}function vE(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[I$2]&4)return t?void 0:de$1;let o=Rf(n,r),i=yE(n,r);return o.reset(i,mm$1),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function dc$2(e){return !!e&&typeof e.then=="function"}function Ff$1(e){return !!e&&typeof e.subscribe=="function"}var yn$2=class yn{},jf$1=class jf{};var Yo$2=class Yo extends yn$2{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,n,r,o=true){super(),this.ngModuleType=t,this._parent=n;let i=Tl(t);this._bootstrapComponents=cy(i.bootstrap),this._r3Injector=js$2(t,n,[{provide:yn$2,useValue:this},...r],Pn$2(t),new Set(["environment"])),o&&this.resolveInjectorInitializers();}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType);}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null;}onDestroy(t){this.destroyCbs.push(t);}},Ko$2=class Ko extends jf$1{moduleType;constructor(t){super(),this.moduleType=t;}create(t){return new Yo$2(this.moduleType,t,[])}};var or$1=class or extends yn$2{injector;instance=null;constructor(t){super();let n=new Ct([...t.providers,{provide:yn$2,useValue:this}],t.parent||rn(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers();}destroy(){this.injector.destroy();}onDestroy(t){this.injector.onDestroy(t);}};function Vf$1(e,t,n=null){return new or$1({providers:e,parent:t,debugName:n,runEnvironmentInitializers:true}).injector}var EE=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n;}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=fs$2(false,n.type),o=r.length>0?Vf$1([r],this._injector,""):null;this.cachedInjectors.set(n,o);}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy();}finally{this.cachedInjectors.clear();}}static \u0275prov=te$1({token:e,providedIn:"environment",factory:()=>new e(De$3(ee$1))})}return e})();function IE(e){return ni$2(()=>{let t=Hf$1(e),n=U$1($({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection!==Fa$1.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(EE).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??false,data:e.data||{},encapsulation:e.encapsulation||Ft$2.Emulated,styles:e.styles||de$1,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ht$2("NgStandalone"),Bf$1(n);let r=e.dependencies;return n.directiveDefs=Gu$2(r,DE),n.pipeDefs=Gu$2(r,Cl),n.id=_E(n),n})}function DE(e){return tt$1(e)||as$2(e)}function wE(e,t){if(e==null)return Mt$2;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=fi$1.None,c=null),n[i]=[r,a,c],t[i]=s;}return n}function TE(e){if(e==null)return Mt$2;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function CE(e){return ni$2(()=>{let t=Hf$1(e);return Bf$1(t),t})}function bE(e){return {type:e.type,name:e.name,factory:null,pure:e.pure!==false,standalone:e.standalone??true,onDestroy:e.type.prototype.ngOnDestroy||null}}function Hf$1(e){let t={};return {type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Mt$2,exportAs:e.exportAs||null,standalone:e.standalone??true,signals:e.signals===true,selectors:e.selectors||de$1,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:wE(e.inputs,t),outputs:TE(e.outputs),debugInfo:null}}function Bf$1(e){e.features?.forEach(t=>t(e));}function Gu$2(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i);}return r}:null}function _E(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}var fc$2=new x("");function ME(e){return Hn$2([{provide:fc$2,multi:true,useValue:e}])}var pc$2=(()=>{class e{resolve;reject;initialized=false;done=false;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r;});appInits=T(fc$2,{optional:true})??[];injector=T(fe$1);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=lo$2(this.injector,o);if(dc$2(i))n.push(i);else if(Ff$1(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c});});n.push(s);}}let r=()=>{this.done=true,this.resolve();};Promise.all(n).then(()=>{r();}).catch(o=>{this.reject(o);}),n.length===0&&r(),this.initialized=true;}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ar$1({token:e,factory:e.\u0275fac})}return e})();function $f$1(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=ri$2(e.mergedAttrs,e.attrs);let u=e.tView=Ya$2(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e));}a&&(e.flags|=a),ln$2(e,false);let c=SE(n,t);To$2()&&Qa$2(n,t,c,e),pn$2(c,t);let l=pf$1(c,t,c,e);t[r+L$2]=l,Ja$2(t,l);}function NE(e,t,n,r,o,i,s,a,c,l,u){let d=n+L$2,p;return t.firstCreatePass?(p=Dn$1(t,d,4,s||null,a||null),_f$1(t,e,p,se$1(t.consts,l),Xa$2),od$1(t,p)):p=t.data[d],$f$1(p,e,t,n,r,o,i,c),an(p)&&pi$2(t,e,p),l!=null&&dr$1(e,p,u),p}function ir$1(e,t,n,r,o,i,s,a,c,l,u){let d=n+L$2,p;if(t.firstCreatePass){if(p=Dn$1(t,d,4,s||null,a||null),l!=null){let f=se$1(t.consts,l);p.localNames=[];for(let h=0;h<f.length;h+=2)p.localNames.push(f[h],-1);}}else p=t.data[d];return $f$1(p,e,t,n,r,o,i,c),l!=null&&dr$1(e,p,u),p}function Uf$1(e,t,n,r,o,i,s,a){let c=v(),l=P$1(),u=se$1(l.consts,i);return NE(c,l,e,t,n,r,o,u,void 0,s,a),Uf$1}var SE=xE;function xE(e,t,n,r){return Wn$2(true),t[k].createComment("")}var AE=(()=>{class e{log(n){console.log(n);}warn(n){console.warn(n);}static \u0275fac=function(r){return new(r||e)};static \u0275prov=te$1({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Wf$1=new x("");var qf$1=new x("");function Gf$1(){Fi$1(()=>{let e="";throw new b(600,e)});}var RE=10;var yi$1=(()=>{class e{_runningTick=false;_destroyed=false;_destroyListeners=[];_views=[];internalErrorHandler=T(ct$1);afterRenderManager=T(ci$2);zonelessEnabled=T(zn$2);rootEffectScheduler=T(bo$2);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=false;afterTick=new ue$1;get allViews(){return [...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=T(Lt$2);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ve$2(n=>!n))}constructor(){T(Vt$2,{optional:true});}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r();}});}).finally(()=>{n.unsubscribe();})}_injector=T(ee$1);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=fe$1.NULL){return this._injector.get(we$1).run(()=>{if(R$1(N.BootstrapComponentStart),!this._injector.get(pc$2).done){let O="";throw new b(405,O)}let a=tt$1(n),c=this._injector.get(yn$2),l=new mn$2(a,c);this.componentTypes.push(n);let{hostElement:u,directives:d,bindings:p}=kE(r),f=u||l.selector,h=l.create(o,[],f,c.injector,d,p),D=h.location.nativeElement,S=h.injector.get(Wf$1,null);return S?.registerApplication(D),h.onDestroy(()=>{this.detachView(h.hostView),Kn$2(this.components,h),S?.unregisterApplication(D);}),this._loadComponent(h),R$1(N.BootstrapComponentEnd,h),h})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick();}_tick(){R$1(N.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(ai$2.CHANGE_DETECTION,this.tickImpl):this.tickImpl();}tickImpl=()=>{if(this._runningTick)throw R$1(N.ChangeDetectionEnd),new b(101,false);let n=m$1(null);try{this._runningTick=!0,this.synchronize();}finally{this._runningTick=false,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,m$1(n),this.afterTick.next(),R$1(N.ChangeDetectionEnd);}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(rr$1,null,{optional:true}));let n=0;for(;this.dirtyFlags!==0&&n++<RE;){R$1(N.ChangeDetectionSyncStart);try{this.synchronizeOnce();}finally{R$1(N.ChangeDetectionSyncEnd);}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=false;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!$n$2(o))continue;let i=r&&!this.zonelessEnabled?0:1;lf$1(o,i),n=true;}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews();}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>$n$2(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8;}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this);}detachView(n){let r=n;Kn$2(this._views,r),r.detachFromAppRef();}_loadComponent(n){this.attachView(n.hostView);try{this.tick();}catch(o){this.internalErrorHandler(o);}this.components.push(n),this._injector.get(qf$1,[]).forEach(o=>o(n));}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy());}finally{this._destroyed=true,this._views=[],this._destroyListeners=[];}}onDestroy(n){return this._destroyListeners.push(n),()=>Kn$2(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,false);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy();}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ar$1({token:e,factory:e.\u0275fac})}return e})();function kE(e){return e===void 0||typeof e=="string"||e instanceof Element?{hostElement:e}:e}function Kn$2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1);}function zf$1(e,t,n,r){let o=v(),i=st$1();if(ae$1(o,i,t)){P$1();let a=Un$2();rv(a,o,e,t,n,r);}return zf$1}var _a=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s);}else this.attach(r,i);}move(t,n){this.attach(n,this.detach(t));}};function Qs$2(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function OE(e,t,n,r){let o,i,s=0,a=e.length-1;if(Array.isArray(t)){m$1(r);let l=t.length-1;for(m$1(null);s<=a&&s<=l;){let u=e.at(s),d=t[s],p=Qs$2(s,u,s,d,n);if(p!==0){p<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),h=t[l],D=Qs$2(a,f,l,h,n);if(D!==0){D<0&&e.updateValue(a,h),a--,l--;continue}let S=n(s,u),O=n(a,f),Bt=n(s,d);if(Object.is(Bt,O)){let Ii=n(l,h);Object.is(Ii,S)?(e.swap(s,a),e.updateValue(a,h),l--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Jo$2,i??=Qu$2(e,s,a,n),Ma(e,o,s,Bt))e.updateValue(s,d),s++,a++;else if(i.has(Bt))o.set(S,e.detach(s)),a--;else {let Ii=e.create(s,t[s]);e.attach(s,Ii),s++,a++;}}for(;s<=l;)zu$2(e,o,n,s,t[s]),s++;}else if(t!=null){m$1(r);let l=t[Symbol.iterator]();m$1(null);let u=l.next();for(;!u.done&&s<=a;){let d=e.at(s),p=u.value,f=Qs$2(s,d,s,p,n);if(f!==0)f<0&&e.updateValue(s,p),s++,u=l.next();else {o??=new Jo$2,i??=Qu$2(e,s,a,n);let h=n(s,p);if(Ma(e,o,s,h))e.updateValue(s,p),s++,a++,u=l.next();else if(!i.has(h))e.attach(s,e.create(s,p)),s++,a++,u=l.next();else {let D=n(s,d);o.set(D,e.detach(s)),a--;}}}for(;!u.done;)zu$2(e,o,n,e.length,u.value),u=l.next();}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(l=>{e.destroy(l);});}function Ma(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),true):false}function zu$2(e,t,n,r,o){if(Ma(e,t,r,n(r,o)))e.updateValue(r,o);else {let i=e.create(r,o);e.attach(r,i);}}function Qu$2(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Jo$2=class Jo{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return false;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),true}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n);}else this.kvMap.set(t,n);}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n);}}};function LE(e,t,n,r,o,i,s,a){Ht$2("NgControlFlow");let c=v(),l=P$1(),u=se$1(l.consts,i);return ir$1(c,l,e,t,n,r,o,u,256,s,a),hc$2}function hc$2(e,t,n,r,o,i,s,a){Ht$2("NgControlFlow");let c=v(),l=P$1(),u=se$1(l.consts,i);return ir$1(c,l,e,t,n,r,o,u,512,s,a),hc$2}function PE(e,t){Ht$2("NgControlFlow");let n=v(),r=st$1(),o=n[r]!==Q$1?n[r]:-1,i=o!==-1?Xo$2(n,L$2+o):void 0,s=0;if(ae$1(n,r,e)){let a=m$1(null);try{if(i!==void 0&&gf$1(i,s),e!==-1){let c=L$2+e,l=Xo$2(n,c),u=Aa$1(n[g$1],c),d=yf$1(l,u,n),p=fr$1(n,u,t,{dehydratedView:d});pr$1(l,p,s,gn$2(u,d));}}finally{m$1(a);}}else if(i!==void 0){let a=hf$1(i,s);a!==void 0&&(a[V$1]=t);}}var Na$2=class Na{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r;}get $count(){return this.lContainer.length-F$1}};function FE(e){return e}function jE(e,t){return t}var Sa$1=class Sa{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r;}};function VE(e,t,n,r,o,i,s,a,c,l,u,d,p){Ht$2("NgControlFlow");let f=v(),h=P$1(),D=c!==void 0,S=v(),O=a?s.bind(S[K][V$1]):s,Bt=new Sa$1(D,O);S[L$2+e]=Bt,ir$1(f,h,e+1,t,n,r,o,se$1(h.consts,i),256);}var xa$1=class xa extends _a{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=false;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r;}get length(){return this.lContainer.length-F$1}at(t){return this.getLView(t)[V$1].$implicit}attach(t,n){let r=n[Nt$2];this.needsIndexUpdate||=t!==this.length,pr$1(this.lContainer,n,t,gn$2(this.templateTNode,r)),BE(this.lContainer,t);}detach(t){return this.needsIndexUpdate||=t!==this.length-1,$E(this.lContainer,t),UE(this.lContainer,t)}create(t,n){let r=qo$2(this.lContainer,this.templateTNode.tView.ssrId);return fr$1(this.hostLView,this.templateTNode,new Na$2(this.lContainer,n,t),{dehydratedView:r})}destroy(t){ui$2(t[g$1],t);}updateValue(t,n){this.getLView(t)[V$1].$implicit=n;}reset(){this.needsIndexUpdate=false;}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[V$1].$index=t;}getLView(t){return WE(this.lContainer,t)}};function HE(e){let t=m$1(null),n=Se();try{let r=v(),o=r[g$1],i=r[n],s=n+1,a=Xo$2(r,s);if(i.liveCollection===void 0){let l=Aa$1(o,s);i.liveCollection=new xa$1(a,r,l);}else i.liveCollection.reset();let c=i.liveCollection;if(OE(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let l=st$1(),u=c.length===0;if(ae$1(r,l,u)){let d=n+2,p=Xo$2(r,d);if(u){let f=Aa$1(o,d),h=yf$1(p,f,r),D=fr$1(r,f,void 0,{dehydratedView:h});pr$1(p,D,0,gn$2(f,h));}else o.firstUpdatePass&&Mv(p),gf$1(p,0);}}}finally{m$1(t);}}function Xo$2(e,t){return e[t]}function BE(e,t){if(e.length<=F$1)return;let n=F$1+t,r=e[n],o=r?r[Ne]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[be$1];Ny(i,o),hn$2.delete(r[Me$1]),o.detachedLeaveAnimationFns=void 0;}}function $E(e,t){if(e.length<=F$1)return;let n=F$1+t,r=e[n],o=r?r[Ne]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[]);}function UE(e,t){return tr$1(e,t)}function WE(e,t){return hf$1(e,t)}function Aa$1(e,t){return fo$2(e,t)}function Qf$1(e,t,n){let r=v(),o=st$1();if(ae$1(r,o,t)){P$1();let s=Un$2();tf$1(s,r,e,t,r[k],n);}return Qf$1}function Ra$2(e,t,n,r,o){nc$2(t,e,n,o?"class":"style",r);}function ei$2(e,t,n,r){let o=v(),i=o[g$1],s=e+L$2,a=i.firstCreatePass?ic$2(s,o,2,t,Xa$2,yo$2(),n,r):i.data[s];if($e$1(a)){let c=o[he$1].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(If(l),()=>(Zu$2(e,t,o,a,r),ei$2))}}return Zu$2(e,t,o,a,r),ei$2}function Zu$2(e,t,n,r,o){if(ec$2(r,n,e,t,Kf$1),an(r)){let i=n[g$1];pi$2(i,n,r),Va$2(i,r,n);}o!=null&&dr$1(n,r);}function gc$2(){let e=P$1(),t=B$1(),n=tc$2(t);return e.firstCreatePass&&sc$2(e,n),Ss$2(n)&&xs$2(),Ms$2(),n.classesWithoutHost!=null&&tm$1(n)&&Ra$2(e,n,v(),n.classesWithoutHost,true),n.stylesWithoutHost!=null&&nm$1(n)&&Ra$2(e,n,v(),n.stylesWithoutHost,false),gc$2}function Zf$1(e,t,n,r){return ei$2(e,t,n,r),gc$2(),Zf$1}function mc$2(e,t,n,r){let o=v(),i=o[g$1],s=e+L$2,a=i.firstCreatePass?qv(s,i,2,t,n,r):i.data[s];return ec$2(a,o,e,t,Kf$1),r!=null&&dr$1(o,a),mc$2}function yc$2(){let e=B$1(),t=tc$2(e);return Ss$2(t)&&xs$2(),Ms$2(),yc$2}function Yf$1(e,t,n,r){return mc$2(e,t,n,r),yc$2(),Yf$1}var Kf$1=(e,t,n,r,o)=>(Wn$2(true),Pd$1(t[k],r,Fs$2()));function vc$2(e,t,n){let r=v(),o=r[g$1],i=e+L$2,s=o.firstCreatePass?ic$2(i,r,8,"ng-container",Xa$2,yo$2(),t,n):o.data[i];if(ec$2(s,r,e,"ng-container",qE),an(s)){let a=r[g$1];pi$2(a,r,s),Va$2(a,s,r);}return n!=null&&dr$1(r,s),vc$2}function Ec$2(){let e=P$1(),t=B$1(),n=tc$2(t);return e.firstCreatePass&&sc$2(e,n),Ec$2}function Jf$1(e,t,n){return vc$2(e,t,n),Ec$2(),Jf$1}var qE=(e,t,n,r,o)=>(Wn$2(true),ty(t[k],""));function GE(){return v()}function Xf$1(e,t,n){let r=v(),o=st$1();if(ae$1(r,o,t)){P$1();let s=Un$2();nf$1(s,r,e,t,r[k],n);}return Xf$1}var Qn$2=void 0;function zE(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var QE=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qn$2,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Qn$2,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Qn$2,Qn$2,Qn$2],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",zE],Zs$2=Object.create(null);function ZE(e){let t=KE(e),n=Yu$2(t);if(n)return n;let r=t.split("-")[0];if(n=Yu$2(r),n)return n;if(r==="en")return QE;throw new b(701,false)}function Yu$2(e){if(!(e in Zs$2)){let t=Ce$1.ng&&Ce$1.ng.common&&Ce$1.ng.common.locales&&Ce$1.ng.common.locales[e];return t!==void 0&&(Zs$2[e]=t),t}return Zs$2[e]}var YE={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,ExtraData:21};function KE(e){return e.toLowerCase().replace(/_/g,"-")}var gr$1="en-US";function ep$1(e){typeof e=="string"&&(e.toLowerCase().replace(/_/g,"-"));}function tp$1(e,t,n){let r=v(),o=P$1(),i=B$1();return rp$1(o,r,r[k],i,e,t,n),tp$1}function np$1(e,t,n){let r=v(),o=P$1(),i=B$1();return (i.type&3||n)&&Tf$1(i,o,r,n,r[k],e,t,Po$2(i,r,t)),np$1}function rp$1(e,t,n,r,o,i,s){let a=true,c=null;if((r.type&3||s)&&(c??=Po$2(r,t,i),Tf$1(r,e,t,s,n,o,i,c)&&(a=false)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let p=u[d],f=u[d+1];c??=Po$2(r,t,i),Hu$2(r,t,p,f,o,c);}if(l&&l.length)for(let d of l)c??=Po$2(r,t,i),Hu$2(r,t,d,o,o,c);}}function XE(e=1){return su$2(e)}function eI(e,t){let n=null,r=hy(e);for(let o=0;o<t.length;o++){let i=t[o];if(i==="*"){n=o;continue}if(r===null?Ud$1(e,i,true):yy(r,i))return o}return n}function tI(e){let t=v()[K][z];if(!t.projection){let n=e?e.length:1,r=t.projection=xl(n,null),o=r.slice(),i=t.child;for(;i!==null;){if(i.type!==128){let s=e?eI(i,e):0;s!==null&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i);}i=i.next;}}}function nI(e,t=0,n,r,o,i){let s=v(),a=P$1(),c=null;let l=Dn$1(a,L$2+e,16,null,null);l.projection===null&&(l.projection=t),ks$2();let d=!s[Nt$2]||Ns$2();s[K][z].projection[l.projection]===null&&c!==null?rI(s,a,c):d&&!oi$2(l)&&$y(a,s,l);}function rI(e,t,n){let r=L$2+n,o=t.data[r],i=e[r],s=qo$2(i,o.tView.ssrId),a=fr$1(e,o,void 0,{dehydratedView:s});pr$1(i,a,0,gn$2(o,s));}function op$1(e,t,n,r,o){return Pf$1(t,hE(e,n,r,o)),op$1}function ip$1(e,t,n,r){return Pf$1(e,pE(t,n,r)),ip$1}function oI(e=1){Io$2(nu$2()+e);}function iI(e){let t=Zl$1();return po$2(t,L$2+e)}function Ao$2(e,t){return e<<17|t<<2}function jt$2(e){return e>>17&32767}function sI(e){return (e&2)==2}function aI(e,t){return e&131071|t<<17}function ka$1(e){return e|2}function vn$2(e){return (e&131068)>>2}function Ys$2(e,t){return e&-131069|t<<2}function cI(e){return (e&1)===1}function Oa$1(e){return e|1}function lI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=jt$2(s),c=vn$2(s);e[r]=n;let l=false,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||tn(d,u)>0)&&(l=true);}else u=n;if(o)if(c!==0){let p=jt$2(e[a+1]);e[r+1]=Ao$2(p,a),p!==0&&(e[p+1]=Ys$2(e[p+1],r)),e[a+1]=aI(e[a+1],r);}else e[r+1]=Ao$2(a,0),a!==0&&(e[a+1]=Ys$2(e[a+1],r)),a=r;else e[r+1]=Ao$2(c,0),a===0?a=r:e[c+1]=Ys$2(e[c+1],r),c=r;l&&(e[r+1]=ka$1(e[r+1])),Ku$2(e,u,r,true),Ku$2(e,u,r,false),uI(t,u,e,r,i),s=Ao$2(a,c),i?t.classBindings=s:t.styleBindings=s;}function uI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&tn(i,t)>=0&&(n[r+1]=Oa$1(n[r+1]));}function Ku$2(e,t,n,r){let o=e[n+1],i=t===null,s=r?jt$2(o):vn$2(o),a=false;for(;s!==0&&(a===false||i);){let c=e[s],l=e[s+1];dI(c,t)&&(a=true,e[s+1]=r?Oa$1(l):ka$1(l)),s=r?jt$2(l):vn$2(l);}a&&(e[n+1]=r?ka$1(o):Oa$1(o));}function dI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?true:Array.isArray(e)&&typeof t=="string"?tn(e,t)>=0:false}var ye$1={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fI(e){return e.substring(ye$1.key,ye$1.keyEnd)}function pI(e){return hI(e),sp$1(e,ap$1(e,0,ye$1.textEnd))}function sp$1(e,t){let n=ye$1.textEnd;return n===t?-1:(t=ye$1.keyEnd=gI(e,ye$1.key=t,n),ap$1(e,t,n))}function hI(e){ye$1.key=0,ye$1.keyEnd=0,ye$1.value=0,ye$1.valueEnd=0,ye$1.textEnd=e.length;}function ap$1(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function gI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function cp$1(e,t,n){return up$1(e,t,n,false),cp$1}function lp$1(e,t){return up$1(e,t,null,true),lp$1}function mI(e){vI(CI,yI,e,true);}function yI(e,t){for(let n=pI(t);n>=0;n=sp$1(t,n))ao$2(e,fI(t),true);}function up$1(e,t,n,r){let o=v(),i=P$1(),s=vo$2(2);if(i.firstUpdatePass&&fp$1(i,e,s,r),t!==Q$1&&ae$1(o,s,t)){let a=i.data[Se()];pp$1(i,a,o,o[k],e,o[s+1]=_I(t,n),r,s);}}function vI(e,t,n,r){let o=P$1(),i=vo$2(2);o.firstUpdatePass&&fp$1(o,null,i,r);let s=v();if(n!==Q$1&&ae$1(s,i,n)){let a=o.data[Se()];if(hp$1(a,r)&&!dp$1(o,i)){let c=a.classesWithoutHost;c!==null&&(n=to$2(c,n||"")),Ra$2(o,a,s,n,r);}else bI(o,a,s,s[k],s[i+1],s[i+1]=TI(e,t,n),r,i);}}function dp$1(e,t){return t>=e.expandoStartIndex}function fp$1(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Se()],s=dp$1(e,n);hp$1(i,r)&&t===null&&!s&&(t=false),t=EI(o,i,t,r),lI(o,i,t,n,s,r);}}function EI(e,t,n,r){let o=tu$2(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ks$2(null,e,t,n,r),n=sr$1(n,t.attrs,r),i=null);else {let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ks$2(o,e,t,n,r),i===null){let c=II(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ks$2(null,e,t,c[1],r),c=sr$1(c,t.attrs,r),DI(e,t,r,c));}else i=wI(e,t,r);}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function II(e,t,n){let r=n?t.classBindings:t.styleBindings;if(vn$2(r)!==0)return e[jt$2(r)]}function DI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[jt$2(o)]=r;}function wI(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=sr$1(r,s,n);}return sr$1(r,t.attrs,n)}function Ks$2(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=sr$1(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function sr$1(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ao$2(e,s,n?true:t[++i]));}return e===void 0?null:e}function TI(e,t,n){if(n==null||n==="")return de$1;let r=[],o=In$2(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],true);else if(o instanceof Set)for(let i of o)e(r,i,true);else if(typeof o=="object")for(let i in o)Object.hasOwn(o,i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function CI(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ao$2(e,r,n);}function bI(e,t,n,r,o,i,s,a){o===Q$1&&(o=de$1);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let p=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,h=null,D;u===d?(c+=2,l+=2,p!==f&&(h=d,D=f)):d===null||u!==null&&u<d?(c+=2,h=u):(l+=2,h=d,D=f),h!==null&&pp$1(e,t,n,r,h,D,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null;}}function pp$1(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=cI(l)?Ju$2(c,t,n,o,vn$2(l),s):void 0;if(!ti$2(u)){ti$2(i)||sI(l)&&(i=Ju$2(c,null,n,o,a,s));let d=Ds$2(Se(),n);Wy(r,s,d,o,i);}}function Ju$2(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===Q$1&&(p=d?de$1:void 0);let f=d?co$2(p,r):u===r?p:void 0;if(l&&!ti$2(f)&&(f=co$2(c,r)),ti$2(f)&&(a=f,s))return a;let h=e[o+1];o=s?jt$2(h):vn$2(h);}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=co$2(c,r));}return a}function ti$2(e){return e!==void 0}function _I(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Pn$2(In$2(e)))),e}function hp$1(e,t){return (e.flags&(t?8:16))!==0}function MI(e,t=""){let n=v(),r=P$1(),o=e+L$2,i=r.firstCreatePass?Dn$1(r,o,1,t,null):r.data[o],s=NI(r,n,i,t);n[o]=s,To$2()&&Qa$2(r,n,s,i),ln$2(i,false);}var NI=(e,t,n,r)=>(Wn$2(true),Xm$1(t[k],r));function SI(e,t,n,r=""){return ae$1(e,st$1(),n)?t+_t$2(n)+r:Q$1}function xI(e,t,n,r,o,i=""){let s=Yl$1(),a=wf$1(e,s,n,o);return vo$2(2),a?t+_t$2(n)+r+_t$2(o)+i:Q$1}function gp$1(e){return Ic$2("",e),gp$1}function Ic$2(e,t,n){let r=v(),o=SI(r,e,t,n);return o!==Q$1&&yp$1(r,Se(),o),Ic$2}function mp$1(e,t,n,r,o){let i=v(),s=xI(i,e,t,n,r,o);return s!==Q$1&&yp$1(i,Se(),s),mp$1}function yp$1(e,t,n){let r=Ds$2(t,e);ey(e[k],r,n);}function vp$1(e,t,n){Mo$2(t)&&(t=t());let r=v(),o=st$1();if(ae$1(r,o,t)){P$1();let s=Un$2();tf$1(s,r,e,t,r[k],n);}return vp$1}function AI(e,t){let n=Mo$2(e);return n&&e.set(t),n}function Ep$1(e,t){let n=v(),r=P$1(),o=B$1();return rp$1(r,n,n[k],o,e,t),Ep$1}function RI(e,t,n){let r=Ot$1()+e,o=v();return o[r]===Q$1?gi$1(o,r,t(n,o)):Df$1(o,r)}function Xu$2(e,t,n){let r=P$1();r.firstCreatePass&&Ip$1(t,r.data,r.blueprint,it$1(e),n);}function Ip$1(e,t,n,r,o){if(e=q(e),Array.isArray(e))for(let i=0;i<e.length;i++)Ip$1(e[i],t,n,r,o);else {let i=P$1(),s=v(),a=B$1(),c=Tt$2(e)?e:q(e.provide),l=gs$2(e),u=a.providerIndexes&1048575,d=a.directiveStart,p=a.providerIndexes>>20;if(Tt$2(e)||!e.multi){let f=new Pt$2(l,o,hr$1,null),h=Xs$2(c,t,u+p,d);h===-1?(na$2(Bo$2(a,s),i,c),Js$2(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(f),s.push(f)):(n[h]=f,s[h]=f);}else {let f=Xs$2(c,t,u+p,d),h=Xs$2(c,t,u,u+p),D=f>=0&&n[f],S=h>=0&&n[h];if(!D){na$2(Bo$2(a,s),i,c);let O=LI(kI,n.length,o,r,l);S&&(n[h].providerFactory=O),Js$2(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,n.push(O),s.push(O);}else {let O=Dp$1(n[f],l,r);Js$2(i,e,f>-1?f:h,O);}r&&S&&n[h].componentProviders++;}}}function Js$2(e,t,n,r){let o=Tt$2(t),i=Pl(t);if(o||i){let c=(i?q(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c);}else l.push(n,c);}}}function Dp$1(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Xs$2(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return -1}function kI(e,t,n,r,o){return La$2(this.multi,[])}function La$2(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r());}return t}function LI(e,t,n,r,o,i){let s=new Pt$2(e,n,hr$1,null);return s.multi=[],s.index=t,s.componentProviders=0,Dp$1(s,o,r&&!n),s}function PI(e,t){return n=>{n.providersResolver=(r,o)=>Xu$2(r,o?o(e):e,false);}}function FI(e,t){let n=Ot$1()+e,r=v();return r[n]===Q$1?gi$1(r,n,t()):Df$1(r,n)}function jI(e,t,n){return Tp$1(v(),Ot$1(),e,t,n)}function VI(e,t,n,r){return Cp$1(v(),Ot$1(),e,t,n,r)}function wp$1(e,t){let n=e[t];return n===Q$1?void 0:n}function Tp$1(e,t,n,r,o,i){let s=t+n;return ae$1(e,s,o)?gi$1(e,s+1,i?r.call(i,o):r(o)):wp$1(e,s+1)}function Cp$1(e,t,n,r,o,i,s){let a=t+n;return wf$1(e,a,o,i)?gi$1(e,a+2,s?r.call(s,o,i):r(o,i)):wp$1(e,a+2)}function HI(e,t){let n=P$1(),r,o=e+L$2;n.firstCreatePass?(r=BI(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=Xe$1(r.type)),a=Y$2(hr$1);try{let c=Ho$2(!1),l=i();return Ho$2(c),ws$2(n,v(),o,l),l}finally{Y$2(a);}}function BI(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function $I(e,t,n){let r=e+L$2,o=v(),i=po$2(o,r);return bp$1(o,r)?Tp$1(o,Ot$1(),t,i.transform,n,i):i.transform(n)}function UI(e,t,n,r){let o=e+L$2,i=v(),s=po$2(i,o);return bp$1(i,o)?Cp$1(i,Ot$1(),t,s.transform,n,r,s):s.transform(n,r)}function bp$1(e,t){return e[g$1].data[t].pure}function WI(e,t){return hi$1(e,t)}var _p$1=(()=>{class e{applicationErrorHandler=T(ct$1);appRef=T(yi$1);taskService=T(Lt$2);ngZone=T(we$1);zonelessEnabled=T(zn$2);tracing=T(Vt$2,{optional:true});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:true}}];subscriptions=new W$2;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(kn$2):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(T($s$2,{optional:true})??false);cancelScheduledCallback=null;useMicrotaskScheduler=false;runningTick=false;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n);})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup();}));}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=true,queueMicrotask(()=>{this.useMicrotaskScheduler=false,this.taskService.remove(n);});});}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:case 2:{this.appRef.dirtyFlags|=2;break}case 3:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8;}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?du$2:Vs$2;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()));}shouldScheduleTick(){return !(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(kn$2+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick();},void 0,this.schedulerTickApplyArgs);}catch(r){this.applicationErrorHandler(r);}finally{this.taskService.remove(n),this.cleanup();}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup();}cleanup(){if(this.runningTick=false,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n);}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ar$1({token:e,factory:e.\u0275fac})}return e})();function Mp$1(){return [{provide:Te$1,useExisting:_p$1},{provide:we$1,useClass:On$2},{provide:zn$2,useValue:true}]}var qI=(()=>{class e{compileModuleSync(n){return new Ko$2(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=ar$1({token:e,factory:e.\u0275fac})}return e})();function GI(){return typeof $localize<"u"&&$localize.locale||gr$1}var Dc$2=new x("",{factory:()=>T(Dc$2,{optional:true,skipSelf:true})||GI()});var mr$1=class mr{destroyed=false;listeners=null;errorHandler=T(He$2,{optional:true});isEmitting=false;hasNullListeners=false;destroyRef=T(xe$2);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=true,this.listeners=null;});}subscribe(t){if(this.destroyed)throw new b(953,false);return (this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?this.listeners.indexOf(t):-1;n>-1&&(this.isEmitting?(this.hasNullListeners=true,this.listeners[n]=null):this.listeners.splice(n,1));}}}emit(t){if(this.destroyed){console.warn(Ln$2(953,false));return}if(this.listeners===null)return;this.isEmitting=true;let n=m$1(null);try{for(let r of this.listeners)try{r!==null&&r(t);}catch(o){this.errorHandler?.handleError(o);}}finally{this.hasNullListeners&&(this.hasNullListeners=false,this.listeners&&zI(this.listeners)),m$1(n),this.isEmitting=false;}}};function zI(e){let t=e.length-1;for(;t>-1;)e[t]===null&&e.splice(t,1),t--;}function QI(e,t){return Nn$2(e,t?.equal)}function ZI(e){return vl$1(e)}var YI=e=>e;function KI(e,t){if(typeof e=="function"){let n=$i$1(e,YI,t?.equal);return Np$1(n)}else {let n=$i$1(e.source,e.computation,e.equal);return Np$1(n,e.debugName)}}function Np$1(e,t){let n=e[j$1],r=e;return r.set=o=>ml$1(n,o),r.update=o=>yl$1(n,o),r.asReadonly=Gn$2.bind(e),r}var Ei$1=Symbol("InputSignalNode#UNSET"),Lp$1=U$1($({},Sn$2),{transformFn:void 0,applyValueToInputSignal(e,t){Je$2(e,t);}});function Pp$1(e,t){let n=Object.create(Lp$1);n.value=e,n.transformFn=t?.transform;function r(){if(Le(n),n.value===Ei$1){let o=null;throw new b(-950,o)}return n.value}return r[j$1]=n,r}var Sp$1=class Sp{attributeName;constructor(t){this.attributeName=t;}__NG_ELEMENT_ID__=()=>md(this.attributeName);toString(){return `HostAttributeToken ${this.attributeName}`}};function DP(e){return JI(e)?e.default:e}function JI(e){return e&&typeof e=="object"&&"default"in e}function wP(e){return new mr$1}function xp$1(e,t){return Pp$1(e,t)}function XI(e){return Pp$1(Ei$1,e)}var TP=(xp$1.required=XI,xp$1);function Fp$1(e,t){let n=Object.create(Lp$1),r=new mr$1;n.value=e;function o(){return Le(n),Ap$1(n.value),n.value}return o[j$1]=n,o.asReadonly=Gn$2.bind(o),o.set=i=>{n.equal(n.value,i)||(Je$2(n,i),r.emit(i));},o.update=i=>{Ap$1(n.value),o.set(i(n.value));},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function Ap$1(e){if(e===Ei$1)throw new b(952,false)}function Rp$1(e,t){return Fp$1(e)}function eD(e){return Fp$1(Ei$1)}var CP=(Rp$1.required=eD,Rp$1);function kp$1(e,t){return cc$2()}function tD(e,t){return lc$2()}var bP=(kp$1.required=tD,kp$1);function _P(e,t){return uc$2()}function Op$1(e,t){return cc$2()}function nD(e,t){return lc$2()}var MP=(Op$1.required=nD,Op$1);function NP(e,t){return uc$2()}var xP=(()=>{class e{static __NG_ELEMENT_ID__=oD}return e})();function oD(e){return iD(B$1(),v(),(e&16)===16)}function iD(e,t,n){if($e$1(e)&&!n){let r=ie(e.index,t);return new ut$1(r,r)}else if(e.type&175){let r=t[K];return new ut$1(r,t)}return null}var Tc$2=new x(""),sD=new x("");function yr$2(e){return !e.moduleRef}function aD(e){let t=yr$2(e)?e.r3Injector:e.moduleRef.injector,n=t.get(we$1);return n.run(()=>{yr$2(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ct$1),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r});}),yr$2(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Tc$2);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i);});}else {let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Tc$2);s.add(i),e.moduleRef.onDestroy(()=>{Kn$2(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i);});}return lD(r,n,()=>{let i=t.get(Lt$2),s=i.add(),a=t.get(pc$2);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Dc$2,gr$1);if(ep$1(c||gr$1),!t.get(sD,!0))return yr$2(e)?t.get(yi$1):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(yr$2(e)){let u=t.get(yi$1);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return cD?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s);})})})}var cD;function lD(e,t,n){try{let r=n();return dc$2(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var vi$1=null;function uD(e=[],t){return fe$1.create({name:t,providers:[{provide:hs$2,useValue:"platform"},{provide:Tc$2,useValue:new Set([()=>vi$1=null])},...e]})}function dD(e=[]){if(vi$1)return vi$1;let t=uD(e);return vi$1=t,Gf$1(),fD(t),t}function fD(e){let t=e.get(gu$2,null);lo$2(e,()=>{t?.forEach(n=>n());});}function AP(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;R$1(N.BootstrapApplicationStart);try{let i=o?.injector??dD(r),s=[Mp$1(),pu$2,...n||[]],a=new or$1({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return aD({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{R$1(N.BootstrapApplicationEnd);}}function RP(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function kP(e,t=NaN){return !isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}var wc$2=Symbol("NOT_SET"),jp$1=new Set,pD=U$1($({},Sn$2),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:true,consumerAllowSignalWrites:true,value:wc$2,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=true;}this.sequence.scheduler.notify(7);},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=false,this.value!==wc$2&&!Yt$2(this))return this.signal;try{for(let o of this.cleanup??jp$1)o();}finally{this.cleanup?.clear();}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Pe(this),r;try{r=this.userFn.apply(null,t);}finally{Ye$1(this,n);}return (this.value===wc$2||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),Cc$2=class Cc extends Xn$2{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];onDestroyFns=null;constructor(t,n,r,o,i,s=null){super(t,[void 0,void 0,void 0,void 0],r,false,i.get(xe$2),s),this.scheduler=o;for(let a of Wa$2){let c=n[a];if(c===void 0)continue;let l=Object.create(pD);l.sequence=this,l.phase=a,l.userFn=c,l.dirty=true,l.signal=()=>(Le(l),l.value),l.signal[j$1]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u);}}afterRun(){super.afterRun(),this.lastPhase=null;}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let n of t.cleanup??jp$1)n();}finally{Ke$2(t);}}};function OP(e,t){let n=T(fe$1),r=n.get(Te$1),o=n.get(ci$2),i=n.get(Vt$2,null,{optional:true});o.impl??=n.get(qa$2);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=n.get(un$1,null,{optional:true}),c=new Cc$2(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,n,i?.snapshot(null));return o.impl.register(c),c}function LP(e,t){let n=tt$1(e),r=t.elementInjector||rn();return new mn$2(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function Q(t){t||(t=T(xe$2));let e=new _(r=>{if(t.destroyed){r.next();return}return t.onDestroy(r.next.bind(r))});return r=>r.pipe(Hh$1(e))}function X$1(t,e){let r=T(fe$1),o=new Ri$1(1),d=mu$2(()=>{let n;try{n=t();}catch(s){ZI(()=>o.error(s));return}ZI(()=>o.next(n));},{injector:r,manualCleanup:true});return r.get(xe$2).onDestroy(()=>{d.destroy(),o.complete();}),o.asObservable()}function Y$1(t,e){let o=!e?.manualCleanup?e?.injector?.get(xe$2)??T(xe$2):null,d=A$1(e?.equal),n;e?.requireSync?n=Co$2({kind:0},{equal:d}):n=Co$2({kind:1,value:e?.initialValue},{equal:d});let s,v=t.subscribe({next:a=>n.set({kind:1,value:a}),error:a=>{n.set({kind:2,error:a}),s?.();},complete:()=>{s?.();}});if(e?.requireSync&&n().kind===0)throw new b(601,false);return s=o?.onDestroy(v.unsubscribe.bind(v)),QI(()=>{let a=n();switch(a.kind){case 1:return a.value;case 2:throw a.error;case 0:throw new b(601,false)}},{equal:e?.equal})}function A$1(t=Object.is){return (e,r)=>e.kind===1&&r.kind===1&&t(e.value,r.value)}var O=new x("AFRICANIES_ICON_SPRITE_URL",{providedIn:"root",factory:()=>"/assets/africanies-icons/icons.sprite.svg"}),c=class t{document=T(qn$2);spriteUrl=T(O);loadPromise=null;loaded=false;ensureLoaded(){return this.loaded?Promise.resolve():this.loadPromise?this.loadPromise:(this.loadPromise=this.fetchAndInline().finally(()=>{this.loadPromise=null;}),this.loadPromise)}isLoaded(){return this.loaded}async fetchAndInline(){if(this.document.getElementById("africanies-icon-sprite")){this.loaded=true;return}let e=await fetch(this.spriteUrl);if(!e.ok)throw new Error(`Failed to load AFRICANIES icon sprite from "${this.spriteUrl}" (${e.status})`);let r=await e.text(),o=this.document.createElement("div");o.id="africanies-icon-sprite",o.setAttribute("hidden",""),o.setAttribute("aria-hidden","true"),o.innerHTML=r,this.document.body.prepend(o),this.loaded=true;}static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})};var g=class t{registry=T(c);name=TP.required();size=TP(24);constructor(){mu$2(()=>{this.name(),this.registry.ensureLoaded().catch(e=>{console.error("[africanies-icon] sprite load failed",e);});});}href(){return `#${this.name()}`}resolvedSize(){let e=this.size();return typeof e=="number"?String(e):e}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=IE({type:t,selectors:[["africanies-icon"]],hostVars:1,hostBindings:function(r,o){r&2&&zf$1("data-icon",o.name());},inputs:{name:[1,"name"],size:[1,"size"]},decls:2,vars:4,consts:[["focusable","false","part","svg"]],template:function(r,o){r&1&&(au$2(),mc$2(0,"svg",0),Yf$1(1,"use"),yc$2()),r&2&&(zf$1("width",o.resolvedSize())("height",o.resolvedSize())("aria-hidden",true),Qy(),zf$1("href",o.href()));},styles:["[_nghost-%COMP%]{display:inline-flex;line-height:0;vertical-align:middle;color:inherit}svg[_ngcontent-%COMP%]{display:block;fill:currentColor;color:inherit}"]})};var U=["abacus","absolute-position","academy-cap","accessibility","accordion-menu","add-dock","adjust","adobe-flash","airplane","alarm","align-center","align-justify","align-left","align-right","alt-a","alt","ambulance","anchor","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","archive","archives","area-select","arrow-backward","arrow-circle-down-o","arrow-circle-down","arrow-circle-left-o","arrow-circle-left","arrow-circle-right-o","arrow-circle-right","arrow-circle-up-o","arrow-circle-up","arrow-down","arrow-forward","arrow-left","arrow-long-down","arrow-long-left","arrow-right","arrow-up","arrows-cross","arrows-long-h","arrows-long-right","arrows-long-up","arrows-long-v","arrows","asterisk","at","automation","backspace-a","backspace","backwards","ban","bar-chart-h","bar-chart-v","bar-chart","barcode","bed","bell-o","bell-slash-o","bell-slash","bell","boat","bold","bolt","bomb","book-dollar","book-percent","book","bookmark-o","bookmark","briefcase","browser","bug-o","bug","building-o","building","bullets","bullseye","bus","button","calc-book","calc","calendar-briefcase","calendar-clock","calendar-envelope","calendar-o","calendar-user","calendar","camera","car","caret-down","caret-left","caret-right","caret-square-down-o","caret-square-left-o","caret-square-right-o","caret-square-up-o","caret-up","cart-o","cart","cash","chart-3d","chart-grid","chart-line","chart-timeline","chart","chat","check-circle-o","check-circle","check-square-o","check-square","check","chevron-circle-down-o","chevron-circle-down","chevron-circle-left-o","chevron-circle-left","chevron-circle-right-o","chevron-circle-right","chevron-circle-up-o","chevron-circle-up","chevron-down-small","chevron-down","chevron-left-small","chevron-left","chevron-right-small","chevron-right","chevron-up-small","chevron-up","child","circle-thin","circle","clipboard-check","clipboard-cross","clipboard-heart","clipboard-pulse","clipboard-text","clipboard-user","clipboard","clock","close-big","close-circle-o","close-circle","close-small","close","cloud-download-o","cloud-download","cloud-o","cloud-upload-o","cloud-upload","cloud","cluster","code","coffee","cog-o","cog","cogs","coin-piles","coins","combobox","comment-ellipsis-o","comment-ellipsis","comment-o","comment","comments-o","comments","compile","compress-square","compress","connect-o","connect","controller","copy-o","copy","copyright","corner-lower-left","corner-lower-right","corner-upper-left","corner-upper-right","credit-card","crop","cross-cutlery","crosshairs","css","ctrl-a","ctrl","cube","cubes","curly-brackets","cursor-o","cursor","cutlery","dashboard","database","date-input","deindent","del-a","del","dental-chair","desktop","diamond-o","diamond","diasporan-partner","diploma-scroll","diploma","disc","doctor-briefcase","doctor","dollar","dot-circle","download-alt","download","drop","edit","eject","elastic","ellipsis-circle-o","ellipsis-circle","ellipsis-dots-h","ellipsis-dots-v","ellipsis-h","ellipsis-v","enter-arrow","enter","envelope-o","envelope-open-o","envelope-open","envelope","envelopes-o","envelopes","eraser","esc-a","esc","euro","exchange","exclamation-circle-o","exclamation-circle","exclamation","exit-o","exit","expand-full","expand-square","expand","external-browser","external-link","eye-slash","eye","eyedropper","facebook-square","facebook","factory","family","fast-backward","fast-forward","female","file-add","file-code","file-font","file-movie","file-o","file-picture","file-presentation","file-process","file-refresh","file-remove","file-search","file-sound","file-start","file-table","file-text-o","file-text","file-tree-small","file-tree-sub","file-tree","file-zip","file","fill","film","filter","fire","flag-checkered","flag-o","flag","flash","flask","flight-landing","flight-takeoff","flip-h","flip-v","folder-add","folder-o","folder-open-o","folder-open","folder-remove","folder-search","folder","font","form","forward","frown-o","funcion","funnel","gamepad","gavel","gift","glass","glasses","globe-wire","globe","golf","google-plus-square","google-plus","grab","grid-bevel","grid-big-o","grid-big","grid-h","grid-small-o","grid-small","grid-v","grid","group","hammer","hand","handle-corner","hands-up","handshake","harddrive-o","harddrive","hash","header","headphones","headset","health-card","heart-o","heart","home-o","home","hospital","hourglass-empty","hourglass-end","hourglass-start","hourglass","inbox","indent","info-circle-o","info-circle","info","input","insert","institution","invoice","italic","key-o","key","keyboard-o","keyboard","laptop","layout","level-down-bold","level-down","level-left-bold","level-left","level-right-bold","level-right","level-up-bold","level-up","lifebuoy","lightbulb","line-bar-chart","line-chart","line-h","line-v","lines-list","lines","link","list-ol","list-select","list-ul","list","location-arrow-circle-o","location-arrow-circle","location-arrow","lock","magic","magnet","mailbox","male","map-marker","margin-bottom","margin-left","margin-right","margin-top","margin","medal","megaphone","meh-o","menu","microphone","mini-partner","minus-circle-o","minus-circle","minus-square-o","minus","mobile-browser","mobile-retro","mobile","modal-list","modal","money-deposit","money-exchange","money-withdraw","money","moon-o","moon","morning","movie","music","mute","native-button","newspaper","notebook","number-count","nurse","office","open-book","option-a","option","options","orientation","out","outbox","package","padding-bottom","padding-left","padding-right","padding-top","padding","paint-roll","paintbrush","palette","panel","paperclip","paperplane-o","paperplane","paragraph","partner","password","paste","pause","pencil","phone-landline","phone","picture","pie-bar-chart","pie-chart","piggy-bank-coin","piggy-bank","pill","pills","pin-post","pin","play-circle-o","play-circle","play","plug","plus-circle-o","plus-circle","plus-minus","plus-square-o","plus","pointer","power-off","presentation","print","progressbar","puzzle-piece","pyramid-chart","qrcode","question-circle-o","question-circle","question","quote-left","quote-right","random","raster-lower-left","raster","records","recycle","refresh","reply-all","reply","resize-h","resize-v","retweet","rhombus","road-branch","road-branches","road-split","road","rocket","rotate-left","rotate-right","rss-square","rss","safe-lock","safe","scale-unbalance","scale","scatter-chart","scissors","screwdriver","search-minus","search-plus","search","select","server","share-square","share","shield","shift-arrow","shift","shop","sign-in-alt","sign-in","sign-out-alt","sign-out","signal","sitemap","slider","sliders","smiley-o","sort","sound-disable","spark-line","specialist","spinner-arc","spinner-third","spinner","spline-area-chart","spline-chart","split-h","split-v","split","spoon","square-shadow","star-half-left-o","star-half-left","star-half-right-o","star-half-right","star-o","star","start-cog","step-backward","step-forward","stethoscope","stock","stop-cog","stop","stopwatch","storage","strikethrough","subscript","suitcase","sun-down","sun-o","sun-rise","superscript","sword","tab-a","tab","table","tablet","tabs","tag","tags","tasks","taxi","teeth","terminal","text-height","text-input","text-label","text-width","thin-square","thumbs-down-o","thumbs-down","thumbs-up-o","thumbs-up","ticket","time-backward","time-forward","timer","toolbox","tools","tooth","touch","train","trash","tree-table","trending-down","trending-up","trophy","truck","twin-col-select","twitter-square","twitter","umbrella","underline","unlink","unlock","upload-alt","upload","user-card","user-check","user-clock","user-heart","user-star","user","users","vaadin-h","vaadin-v","viewport","vimeo-square","vimeo","volume-down","volume-off","volume-up","volume","wallet","warehouse","warning","workplace","wrench","youtube-square","youtube"];var eo$1=null;function ge(){return eo$1}function vr$1(t){eo$1??=t;}var bt=class{},me=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:()=>T(to$1),providedIn:"platform"})}return t})();var to$1=(()=>{class t extends me{_location;_history;_doc=T(qn$2);constructor(){super(),this._location=window.location,this._history=window.history;}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(e){let r=ge().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,false),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=ge().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,false),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e;}pushState(e,r,i){this._history.pushState(e,r,i);}replaceState(e,r,i){this._history.replaceState(e,r,i);}forward(){this._history.forward();}back(){this._history.back();}historyGo(e=0){this._history.go(e);}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function cn$1(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function no$1(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function oe(t){return t&&t[0]!=="?"?`?${t}`:t}var le=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:()=>T(io$1),providedIn:"root"})}return t})(),yr$1=new x(""),io$1=(()=>{class t extends le{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??T(qn$2).location?.origin??"";}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return cn$1(this._baseHref,e)}path(e=false){let r=this._platformLocation.pathname+oe(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+oe(o));this._platformLocation.pushState(e,r,s);}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+oe(o));this._platformLocation.replaceState(e,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e);}static \u0275fac=function(r){return new(r||t)(De$3(me),De$3(yr$1,8))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ue$1=(()=>{class t{_subject=new ue$1;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=Ys$1(no$1(ro$1(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(true),pop:true,state:i.state,type:i.type});});}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[];}path(e=false){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+oe(r))}normalize(e){return t.stripTrailingSlash(Ws$1(this._basePath,ro$1(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oe(r)),i);}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+oe(r)),i);}forward(){this._locationStrategy.forward();}back(){this._locationStrategy.back();}historyGo(e=0){this._locationStrategy.historyGo?.(e);}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state);}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null);}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r));}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=oe;static joinWithSlash=cn$1;static stripTrailingSlash=no$1;static \u0275fac=function(r){return new(r||t)(De$3(le))};static \u0275prov=te$1({token:t,factory:()=>qs$1(),providedIn:"root"})}return t})();function qs$1(){return new Ue$1(De$3(le))}function Ws$1(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function ro$1(t){return t.replace(/\/index\.html$/,"")}function Ys$1(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Tr$1=(()=>{class t extends le{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r);}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()();}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e));}getBaseHref(){return this._baseHref}path(e=false){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=cn$1(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+oe(o))||this._platformLocation.pathname;this._platformLocation.pushState(e,r,s);}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+oe(o))||this._platformLocation.pathname;this._platformLocation.replaceState(e,r,s);}forward(){this._platformLocation.forward();}back(){this._platformLocation.back();}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e);}static \u0275fac=function(r){return new(r||t)(De$3(me),De$3(yr$1,8))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})();var _r$1=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(_r$1||{});var B=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(B||{}),R=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(R||{}),V=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(V||{}),G$1={Decimal:0,Group:1,MinusSign:5,Exponential:6,Infinity:9,CurrencyDecimal:12,CurrencyGroup:13};function uo$1(t){return ZE(t)[YE.LocaleId]}function co$1(t,n,e){let r=ZE(t),i=[r[YE.DayPeriodsFormat],r[YE.DayPeriodsStandalone]],o=ee(i,n);return ee(o,e)}function lo$1(t,n,e){let r=ZE(t),i=[r[YE.DaysFormat],r[YE.DaysStandalone]],o=ee(i,n);return ee(o,e)}function ho$1(t,n,e){let r=ZE(t),i=[r[YE.MonthsFormat],r[YE.MonthsStandalone]],o=ee(i,n);return ee(o,e)}function fo$1(t,n){let r=ZE(t)[YE.Eras];return ee(r,n)}function At$1(t,n){let e=ZE(t);return ee(e[YE.DateFormat],n)}function Tt$1(t,n){let e=ZE(t);return ee(e[YE.TimeFormat],n)}function _t$1(t,n){let r=ZE(t)[YE.DateTimeFormat];return ee(r,n)}function de(t,n){let e=ZE(t),r=e[YE.NumberSymbols][n];if(typeof r>"u"){if(n===G$1.CurrencyDecimal)return e[YE.NumberSymbols][G$1.Decimal];if(n===G$1.CurrencyGroup)return e[YE.NumberSymbols][G$1.Group]}return r}function po$1(t,n){return ZE(t)[YE.NumberFormats][n]}function go$1(t){if(!t[YE.ExtraData])throw new b(2303,false)}function mo$1(t){let n=ZE(t);return go$1(n),(n[YE.ExtraData][2]||[]).map(r=>typeof r=="string"?Dr$1(r):[Dr$1(r[0]),Dr$1(r[1])])}function vo$1(t,n,e){let r=ZE(t);go$1(r);let i=[r[YE.ExtraData][0],r[YE.ExtraData][1]],o=ee(i,n)||[];return ee(o,e)||[]}function ee(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new b(2304,false)}function Dr$1(t){let[n,e]=t.split(":");return {hours:+n,minutes:+e}}var Xs$1=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ln$1=Object.create(null),Zs$1=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ks$1=256;function yo$1(t,n,e,r){let i=aa(t);Js$1(n),n=ve$1(e,n)||n;let s=[],u;for(;n;)if(u=Zs$1.exec(n),u){s=s.concat(u.slice(1));let l=s.pop();if(!l)break;n=l;}else {s.push(n);break}let a=i.getTimezoneOffset();r&&(a=wo$1(r,a),i=sa(i,r));let c="";return s.forEach(l=>{let d=ia(l);c+=d?d(i,e,a):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'");}),c}function Js$1(t){if(t.length>Ks$1)throw new b(2300,false)}function gn$1(t,n,e){let r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function ve$1(t,n){let e=uo$1(t);if(ln$1[e]??=Object.create(null),ln$1[e][n])return ln$1[e][n];let r="";switch(n){case "shortDate":r=At$1(t,V.Short);break;case "mediumDate":r=At$1(t,V.Medium);break;case "longDate":r=At$1(t,V.Long);break;case "fullDate":r=At$1(t,V.Full);break;case "shortTime":r=Tt$1(t,V.Short);break;case "mediumTime":r=Tt$1(t,V.Medium);break;case "longTime":r=Tt$1(t,V.Long);break;case "fullTime":r=Tt$1(t,V.Full);break;case "short":let i=ve$1(t,"shortTime"),o=ve$1(t,"shortDate");r=dn$1(_t$1(t,V.Short),[i,o]);break;case "medium":let s=ve$1(t,"mediumTime"),u=ve$1(t,"mediumDate");r=dn$1(_t$1(t,V.Medium),[s,u]);break;case "long":let a=ve$1(t,"longTime"),c=ve$1(t,"longDate");r=dn$1(_t$1(t,V.Long),[a,c]);break;case "full":let l=ve$1(t,"fullTime"),d=ve$1(t,"fullDate");r=dn$1(_t$1(t,V.Full),[l,d]);break}return r&&(ln$1[e][n]=r),r}function dn$1(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return Object.hasOwn(n,r)?n[r]:e})),t}function se(t,n,e="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=e));let s=String(t);for(;s.length<n;)s="0"+s;return r&&(s=s.slice(s.length-n)),o+s}function Qs$1(t,n){return se(t,3).substring(0,n)}function P(t,n,e=0,r=false,i=false){return function(o,s){let u=ea$1(t,o);if((e>0||u>-e)&&(u+=e),t===3)u===0&&e===-12&&(u=12);else if(t===6)return Qs$1(u,n);let a=de(s,G$1.MinusSign);return se(u,n,a,r,i)}}function ea$1(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new b(2301,false)}}function A(t,n,e=B.Format,r=false){return function(i,o){return ta$1(i,o,t,n,e,r)}}function ta$1(t,n,e,r,i,o){switch(e){case 2:return ho$1(n,i,r)[t.getMonth()];case 1:return lo$1(n,i,r)[t.getDay()];case 0:let s=t.getHours(),u=t.getMinutes();if(o){let c=mo$1(n),l=vo$1(n,i,r),d=c.findIndex(f=>{if(Array.isArray(f)){let[v,E]=f,N=s>=v.hours&&u>=v.minutes,b=s<E.hours||s===E.hours&&u<E.minutes;if(v.hours<E.hours){if(N&&b)return true}else if(N||b)return true}else if(f.hours===s&&f.minutes===u)return true;return false});if(d!==-1)return l[d]}return co$1(n,i,r)[s<12?0:1];case 3:return fo$1(n,r)[t.getFullYear()<=0?0:1];default:throw new b(2302,false)}}function hn$1(t){return function(n,e,r){let i=-1*r,o=de(e,G$1.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case 0:return (i>=0?"+":"")+se(s,2,o)+se(Math.abs(i%60),2,o);case 1:return "GMT"+(i>=0?"+":"")+se(s,1,o);case 2:return "GMT"+(i>=0?"+":"")+se(s,2,o)+":"+se(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+se(s,2,o)+":"+se(Math.abs(i%60),2,o);default:throw new b(2310,false)}}}var na$1=0,pn$1=4;function ra(t){let n=gn$1(t,na$1,1).getDay();return gn$1(t,0,1+(n<=pn$1?pn$1:pn$1+7)-n)}function Do$1(t){let n=t.getDay(),e=n===0?-3:pn$1-n;return gn$1(t.getFullYear(),t.getMonth(),t.getDate()+e)}function wr$1(t,n=false){return function(e,r){let i;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();i=1+Math.floor((s+o)/7);}else {let o=Do$1(e),s=ra(o.getFullYear()),u=o.getTime()-s.getTime();i=1+Math.round(u/6048e5);}return se(i,t,de(r,G$1.MinusSign))}}function fn$1(t,n=false){return function(e,r){let o=Do$1(e).getFullYear();return se(o,t,de(r,G$1.MinusSign),n)}}var Er$1=Object.create(null);function ia(t){if(Er$1[t])return Er$1[t];let n;switch(t){case "G":case "GG":case "GGG":n=A(3,R.Abbreviated);break;case "GGGG":n=A(3,R.Wide);break;case "GGGGG":n=A(3,R.Narrow);break;case "y":n=P(0,1,0,false,true);break;case "yy":n=P(0,2,0,true,true);break;case "yyy":n=P(0,3,0,false,true);break;case "yyyy":n=P(0,4,0,false,true);break;case "Y":n=fn$1(1);break;case "YY":n=fn$1(2,true);break;case "YYY":n=fn$1(3);break;case "YYYY":n=fn$1(4);break;case "M":case "L":n=P(1,1,1);break;case "MM":case "LL":n=P(1,2,1);break;case "MMM":n=A(2,R.Abbreviated);break;case "MMMM":n=A(2,R.Wide);break;case "MMMMM":n=A(2,R.Narrow);break;case "LLL":n=A(2,R.Abbreviated,B.Standalone);break;case "LLLL":n=A(2,R.Wide,B.Standalone);break;case "LLLLL":n=A(2,R.Narrow,B.Standalone);break;case "w":n=wr$1(1);break;case "ww":n=wr$1(2);break;case "W":n=wr$1(1,true);break;case "d":n=P(2,1);break;case "dd":n=P(2,2);break;case "c":case "cc":n=P(7,1);break;case "ccc":n=A(1,R.Abbreviated,B.Standalone);break;case "cccc":n=A(1,R.Wide,B.Standalone);break;case "ccccc":n=A(1,R.Narrow,B.Standalone);break;case "cccccc":n=A(1,R.Short,B.Standalone);break;case "E":case "EE":case "EEE":n=A(1,R.Abbreviated);break;case "EEEE":n=A(1,R.Wide);break;case "EEEEE":n=A(1,R.Narrow);break;case "EEEEEE":n=A(1,R.Short);break;case "a":case "aa":case "aaa":n=A(0,R.Abbreviated);break;case "aaaa":n=A(0,R.Wide);break;case "aaaaa":n=A(0,R.Narrow);break;case "b":case "bb":case "bbb":n=A(0,R.Abbreviated,B.Standalone,true);break;case "bbbb":n=A(0,R.Wide,B.Standalone,true);break;case "bbbbb":n=A(0,R.Narrow,B.Standalone,true);break;case "B":case "BB":case "BBB":n=A(0,R.Abbreviated,B.Format,true);break;case "BBBB":n=A(0,R.Wide,B.Format,true);break;case "BBBBB":n=A(0,R.Narrow,B.Format,true);break;case "h":n=P(3,1,-12);break;case "hh":n=P(3,2,-12);break;case "H":n=P(3,1);break;case "HH":n=P(3,2);break;case "m":n=P(4,1);break;case "mm":n=P(4,2);break;case "s":n=P(5,1);break;case "ss":n=P(5,2);break;case "S":n=P(6,1);break;case "SS":n=P(6,2);break;case "SSS":n=P(6,3);break;case "Z":case "ZZ":case "ZZZ":n=hn$1(0);break;case "ZZZZZ":n=hn$1(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":n=hn$1(1);break;case "OOOO":case "ZZZZ":case "zzzz":n=hn$1(2);break;default:return null}return Er$1[t]=n,n}function wo$1(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function oa(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function sa(t,n,e){let i=t.getTimezoneOffset(),o=wo$1(n,i);return oa(t,-1*(o-i))}function aa(t){if(oo$1(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(u=>+u);return gn$1(i,o-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(Xs$1))return ua(r)}let n=new Date(t);if(!oo$1(n))throw new b(2311,false);return n}function ua(t){let n=new Date(0),e=0,r=0,i=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,u=Number(t[5]||0)-r,a=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,s,u,a,c),n}function oo$1(t){return t instanceof Date&&!isNaN(t.valueOf())}var ca=/^(\d+)?\.((\d+)(-(\d+))?)?$/,so$1=22,mn$1=".",It$1="0",la=";",da=",",Cr$1="#";function ha(t,n,e,r,i,o,s=false){let u="",a=false;if(!isFinite(t))u=de(e,G$1.Infinity);else {let c=ga(t);s&&(c=pa(c));let l=n.minInt,d=n.minFrac,f=n.maxFrac;if(o){let U=o.match(ca);if(U===null)throw new b(2306,false);let k=U[1],ce=U[3],Ce=U[5];k!=null&&(l=Sr$1(k)),ce!=null&&(d=Sr$1(ce)),Ce!=null?f=Sr$1(Ce):ce!=null&&d>f&&(f=d);let ne=100;if(l>ne||d>ne||f>ne)throw new b(2306,false)}ma(c,d,f);let v=c.digits,E=c.integerLen,N=c.exponent,b$1=[];for(a=v.every(U=>!U);E<l;E++)v.unshift(0);for(;E<0;E++)v.unshift(0);E>0?b$1=v.splice(E,v.length):(b$1=v,v=[0]);let $=[];for(v.length>=n.lgSize&&$.unshift(v.splice(-n.lgSize,v.length).join(""));v.length>n.gSize;)$.unshift(v.splice(-n.gSize,v.length).join(""));v.length&&$.unshift(v.join("")),u=$.join(de(e,r)),b$1.length&&(u+=de(e,i)+b$1.join("")),N&&(u+=de(e,G$1.Exponential)+"+"+N);}return t<0&&!a?u=n.negPre+u+n.negSuf:u=n.posPre+u+n.posSuf,u}function Eo$1(t,n,e){let r=po$1(n,_r$1.Decimal),i=fa(r,de(n,G$1.MinusSign));return ha(t,i,n,G$1.Group,G$1.Decimal,e)}function fa(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(la),i=r[0],o=r[1],s=i.indexOf(mn$1)!==-1?i.split(mn$1):[i.substring(0,i.lastIndexOf(It$1)+1),i.substring(i.lastIndexOf(It$1)+1)],u=s[0],a=s[1]||"";e.posPre=u.substring(0,u.indexOf(Cr$1));for(let l=0;l<a.length;l++){let d=a.charAt(l);d===It$1?e.minFrac=e.maxFrac=l+1:d===Cr$1?e.maxFrac=l+1:e.posSuf+=d;}let c=u.split(da);if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,o){let l=i.length-e.posPre.length-e.posSuf.length,d=o.indexOf(Cr$1);e.negPre=o.substring(0,d).replace(/'/g,""),e.negSuf=o.slice(d+l).replace(/'/g,"");}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}function pa(t){if(t.digits[0]===0)return t;let n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(n===0?t.digits.push(0,0):n===1&&t.digits.push(0),t.integerLen+=2),t}function ga(t){let n=Math.abs(t)+"",e=0,r,i,o,s,u;for((i=n.indexOf(mn$1))>-1&&(n=n.replace(mn$1,"")),(o=n.search(/e/i))>0?(i<0&&(i=o),i+=+n.slice(o+1),n=n.substring(0,o)):i<0&&(i=n.length),o=0;n.charAt(o)===It$1;o++);if(o===(u=n.length))r=[0],i=1;else {for(u--;n.charAt(u)===It$1;)u--;for(i-=o,r=[],s=0;o<=u;o++,s++)r[s]=Number(n.charAt(o));}return i>so$1&&(r=r.splice(0,so$1-1),e=i-1,i=1),{digits:r,exponent:e,integerLen:i}}function ma(t,n,e){if(n>e)throw new b(2307,false);let r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(n,i),e),s=o+t.integerLen,u=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d<r.length;d++)r[d]=0;}else {i=Math.max(0,i),t.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let d=1;d<s;d++)r[d]=0;}if(u>=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++;}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let a=o!==0,c=n+t.integerLen,l=r.reduceRight(function(d,f,v,E){return f=f+d,E[v]=f<10?f:f-10,a&&(E[v]===0&&v>=c?E.pop():a=false),f>=10?1:0},0);l&&(r.unshift(l),t.integerLen++);}function Sr$1(t){let n=parseInt(t);if(isNaN(n))throw new b(2305,false);return n}var Rr$1=/\s+/,ao$1=[],va=(()=>{class t{_ngEl;_renderer;initialClasses=ao$1;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r;}set klass(e){this.initialClasses=e!=null?e.trim().split(Rr$1):ao$1;}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Rr$1):e;}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,true);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,true);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff();}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=true,i.enabled=r),i.touched=true):this.stateMap.set(e,{enabled:r,changed:true,touched:true});}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=false):i.touched||(i.enabled&&this._toggleClass(r,false),this.stateMap.delete(r)),i.touched=false;}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Rr$1).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i);});}static \u0275fac=function(r){return new(r||t)(hr$1(cr$1),hr$1(Av))};static \u0275dir=CE({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var ya=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=T(fe$1);constructor(e){this._viewContainerRef=e;}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()});}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return !!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):false,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(hr$1(mi$2))};static \u0275dir=CE({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Qg]})}return t})();function Co$1(t,n){return new b(2100,false)}var Da="mediumDate",So$1=new x(""),Ro$1=new x(""),wa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,r,i){this.locale=e,this.defaultTimezone=r,this.defaultOptions=i;}transform(e,r,i,o){if(e==null||e===""||e!==e)return null;try{let s=r??this.defaultOptions?.dateFormat??Da,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return yo$1(e,s,o||this.locale,u)}catch(s){throw Co$1(t,s.message)}}static \u0275fac=function(r){return new(r||t)(hr$1(Dc$2,16),hr$1(So$1,24),hr$1(Ro$1,24))};static \u0275pipe=bE({name:"date",type:t,pure:true})}return t})();var Ea$1=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=bE({name:"json",type:t,pure:false})}return t})();var Ca=(()=>{class t{_locale;constructor(e){this._locale=e;}transform(e,r,i){if(!Sa(e))return null;i||=this._locale;try{let o=Ra$1(e);return Eo$1(o,i,r)}catch(o){throw Co$1(t,o.message)}}static \u0275fac=function(r){return new(r||t)(hr$1(Dc$2,16))};static \u0275pipe=bE({name:"number",type:t,pure:true})}return t})();function Sa(t){return !(t==null||t===""||t!==t)}function Ra$1(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new b(2309,false);return t}function Mt$1(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var Mr$1="browser";function kd$1(t){return t===Mr$1}var bo$1=(()=>{class t{static \u0275prov=te$1({token:t,providedIn:"root",factory:()=>new Ir$1(T(qn$2),window)})}return t})(),Ir$1=class Ir{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e;}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n;}getScrollPosition(){return [this.window.scrollX,this.window.scrollY]}scrollToPosition(n,e){this.window.scrollTo(U$1($({},e),{left:n[0],top:n[1]}));}scrollToAnchor(n,e){let r=Pa$1(this.document,n);r&&(this.scrollToElement(r,e),r.focus({preventScroll:true}));}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n;}catch{console.warn(Ln$2(2400,false));}}scrollToElement(n,e){let r=n.getBoundingClientRect(),i=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(U$1($({},e),{left:i-s[0],top:o-s[1]}));}};function Pa$1(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${CSS.escape(n)}"]`);if(s)return s}i=r.nextNode();}}return null}var Ot=class{_doc;constructor(n){this._doc=n;}manager},vn$1=(()=>{class t extends Ot{constructor(e){super(e);}supports(e){return true}addEventListener(e,r,i,o){return e.addEventListener(r,i,o),()=>this.removeEventListener(e,r,i,o)}removeEventListener(e,r,i,o){return e.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(De$3(qn$2))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})(),wn$1=new x(""),Nr$1=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this;});let i=e.filter(s=>!(s instanceof vn$1));this._plugins=i.slice().reverse();let o=e.find(s=>s instanceof vn$1);o&&this._plugins.push(o);}addEventListener(e,r,i,o){return this._findPluginFor(r).addEventListener(e,r,i,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new b(-5101,false);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(De$3(wn$1),De$3(we$1))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})(),Or$1="ng-app-id";function Ao$1(t){for(let n of t)n.remove();}function To$1(t,n){let e=n.createElement("style");return e.textContent=t,e}function Na$1(t,n,e,r){let i=t.head?.querySelectorAll(`style[${Or$1}="${n}"],link[${Or$1}="${n}"]`);if(!i||i.length===0)return false;for(let o of i)o.removeAttribute(Or$1),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]});return true}function Fr$1(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Lr$1=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,Na$1(e,r,this.inline,this.external)&&this.hosts.add(e.head);}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,To$1);r?.forEach(i=>this.addUsage(i,this.external,Fr$1));}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external));}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))});}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(Ao$1(i.elements),r.delete(e)));}ngOnDestroy(){for(let[,{elements:e}]of [...this.inline,...this.external])Ao$1(e);this.hosts.clear();}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,To$1(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,Fr$1(r,this.doc)));}}removeHost(e){this.hosts.delete(e);for(let r of [...this.inline.values(),...this.external.values()]){let i=[];for(let o of r.elements)o.parentNode===e?o.remove():i.push(o);r.elements=i;}}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(De$3(qn$2),De$3(hu$2),De$3(xg$1,8),De$3(Ng$1))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})(),Pr$1={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},xr$1=/%COMP%/g;var Io$1="%COMP%",La$1=`_nghost-${Io$1}`,xa=`_ngcontent-${Io$1}`,Ua$1=true,ka=new x("",{factory:()=>Ua$1});function Ba$1(t){return xa.replace(xr$1,t)}function ja$1(t){return La$1.replace(xr$1,t)}function Mo$1(t,n){return n.map(e=>e.replace(xr$1,t))}var Ur$1=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,i,o,s,u,a=null,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=u,this.nonce=a,this.tracingService=c,this.defaultRenderer=new Pt$1(e,s,u,this.tracingService);}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(e,r);return i instanceof Dn?i.applyToHost(e):i instanceof Ft$1&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,u=this.ngZone,a=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case Ft$2.Emulated:o=new Dn(a,c,r,this.appId,l,s,u,d);break;case Ft$2.ShadowDom:return new yn$1(a,e,r,s,u,this.nonce,d,c);case Ft$2.ExperimentalIsolatedShadowDom:return new yn$1(a,e,r,s,u,this.nonce,d);default:o=new Ft$1(a,c,r,l,s,u,d);break}i.set(r.id,o);}return o}ngOnDestroy(){this.rendererByCompId.clear();}componentReplaced(e){this.rendererByCompId.delete(e);}static \u0275fac=function(r){return new(r||t)(De$3(Nr$1),De$3(bf$1),De$3(hu$2),De$3(ka),De$3(qn$2),De$3(we$1),De$3(xg$1),De$3(Vt$2,8))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})(),Pt$1=class Pt{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=true;constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.tracingService=i;}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Pr$1[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(_o$1(n)?n.content:n).appendChild(e);}insertBefore(n,e,r){n&&(_o$1(n)?n.content:n).insertBefore(e,r);}removeChild(n,e){e.remove();}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new b(-5104,false);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=Pr$1[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r);}else n.setAttribute(e,r);}removeAttribute(n,e,r){if(r){let i=Pr$1[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`);}else n.removeAttribute(e);}addClass(n,e){n.classList.add(e);}removeClass(n,e){n.classList.remove(e);}setStyle(n,e,r,i){i&(Wo$2.DashCase|Wo$2.Important)?n.style.setProperty(e,r,i&Wo$2.Important?"important":""):n.style[e]=r;}removeStyle(n,e,r){r&Wo$2.DashCase?n.style.removeProperty(e):n.style[e]="";}setProperty(n,e,r){n!=null&&(n[e]=r);}setValue(n,e){n.nodeValue=e;}listen(n,e,r,i){if(typeof n=="string"&&(n=ge().getGlobalEventTarget(this.doc,n),!n))throw new b(-5102,false);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,i)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===false&&e.preventDefault();}}};function _o$1(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var yn$1=class yn extends Pt$1{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,r,i,o,s,u,a){super(n,i,o,u),this.hostEl=e,this.sharedStylesHost=a,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let c=r.styles;c=Mo$1(r.id,c);for(let d of c){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f);}let l=r.getExternalStyles?.();if(l)for(let d of l){let f=Fr$1(d,i);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f);}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot);}},Ft$1=class Ft extends Pt$1{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,u,a){super(n,o,s,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let c=r.styles;this.styles=a?Mo$1(a,c):c,this.styleUrls=r.getExternalStyles?.(a);}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls);}destroy(){this.removeStylesOnCompDestroy&&hn$2.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls);}},Dn=class extends Ft$1{contentAttr;hostAttr;constructor(n,e,r,i,o,s,u,a){let c=i+"-"+r.id;super(n,e,r,o,s,u,a,c),this.contentAttr=Ba$1(c),this.hostAttr=ja$1(c);}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"");}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var En$1=class t extends bt{supportsDOMEvents=true;static makeCurrent(){vr$1(new t);}onAndCancel(n,e,r,i){return n.addEventListener(e,r,i),()=>{n.removeEventListener(e,r,i);}}dispatchEvent(n,e){n.dispatchEvent(e);}remove(n){n.remove();}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=za$1();return e==null?null:Ha$1(e)}resetBaseElement(){Nt$1=null;}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Mt$1(document.cookie,n)}},Nt$1=null;function za$1(){return Nt$1=Nt$1||document.head.querySelector("base"),Nt$1?Nt$1.getAttribute("href"):null}function Ha$1(t){return new URL(t,document.baseURI).pathname}var Oo$1=["alt","control","meta","shift"],Va$1={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ga$1={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Po$1=(()=>{class t extends Ot{constructor(e){super(e);}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i,o){let s=t.parseEventName(r),u=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ge().onAndCancel(e,s.domEventName,u,o))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",u=r.indexOf("code");if(u>-1&&(r.splice(u,1),s="code."),Oo$1.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".");}),s+=o,r.length!=0||o.length===0)return null;let a={};return a.domEventName=i,a.fullKey=s,a}static matchEventFullKeyCode(e,r){let i=Va$1[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?false:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Oo$1.forEach(s=>{if(s!==i){let u=Ga$1[s];u(e)&&(o+=s+".");}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o));}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(De$3(qn$2))};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})();async function qa$1(t,n,e){let r=$({rootComponent:t},Wa$1(n,e));return AP(r)}function Wa$1(t,n){return {platformRef:n?.platformRef,appProviders:[...Ja$1,...t?.providers??[]],platformProviders:Ka$1}}function Ya$1(){En$1.makeCurrent();}function Xa$1(){return new He$2}function Za$1(){return Dm$1(document),document}var Ka$1=[{provide:Ng$1,useValue:Mr$1},{provide:gu$2,useValue:Ya$1,multi:true},{provide:qn$2,useFactory:Za$1}];var Ja$1=[{provide:hs$2,useValue:"root"},{provide:He$2,useFactory:Xa$1},{provide:wn$1,useClass:vn$1,multi:true},{provide:wn$1,useClass:Po$1,multi:true},Ur$1,{provide:bf$1,useClass:Lr$1},{provide:Lr$1,useExisting:bf$1},Nr$1,{provide:rr$1,useExisting:Ur$1},[]];var De$2=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
5
+ `).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o);}});}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e);})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r);});}:this.headers=new Map;}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n);}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null));}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e));});}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case "a":case "s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case "d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else {let s=this.headers.get(e);if(!s)return;s=s.filter(u=>o.indexOf(u)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s);}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e]);}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i);}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)));}};var jr$1=class jr{defaultValue;constructor(n){this.defaultValue=n;}},Sn$1=class Sn{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}},Rn$1=class Rn{encodeKey(n){return Fo$1(n)}encodeValue(n){return Fo$1(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function Qa$1(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,u]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],a=e.get(s)||[];a.push(u),e.set(s,a);}),e}var eu$1=/%(\d[a-f0-9])/gi,tu$1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Fo$1(t){return encodeURIComponent(t).replace(eu$1,(n,e)=>tu$1[e]??n)}function Cn$1(t){return `${t}`}var ye=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Rn$1,n.fromString){if(n.fromObject)throw new b(2805,false);this.map=Qa$1(n.fromString,this.encoder);}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(Cn$1):[Cn$1(r)];this.map.set(e,i);})):this.map=null;}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"});}):e.push({param:r,value:i,op:"a"});}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case "a":case "s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Cn$1(n.value)),this.map.set(n.param,e);break;case "d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(Cn$1(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param);}else {this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null);}};function nu$1(t){switch(t){case "DELETE":case "GET":case "HEAD":case "OPTIONS":case "JSONP":return false;default:return true}}function No$1(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Lo$1(t){return typeof Blob<"u"&&t instanceof Blob}function xo$1(t){return typeof FormData<"u"&&t instanceof FormData}function ru$1(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var kr$1="Content-Type",Uo$1="Accept",Bo$1="text/plain",jo$1="application/json",iu$1=`${jo$1}, ${Bo$1}, */*`,Ke$1=class t{url;body=null;headers;context;reportProgress=false;reportUploadProgress=false;reportDownloadProgress=false;withCredentials=false;credentials;keepalive=false;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(nu$1(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.reportUploadProgress=!!o.reportUploadProgress,this.reportDownloadProgress=!!o.reportDownloadProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new b(2822,"");this.timeout=o.timeout;}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache;}if(this.headers??=new De$2,this.context??=new Sn$1,!this.params)this.params=new ye,this.urlWithParams=e;else {let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else {let u=e,a="",c=e.indexOf("#");c!==-1&&(a=e.substring(c),u=e.substring(0,c));let l=u.indexOf("?"),d=l===-1?"?":l<u.length-1?"&":"";this.urlWithParams=u+d+s+a;}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||No$1(this.body)||Lo$1(this.body)||xo$1(this.body)||ru$1(this.body)?this.body:this.body instanceof ye?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||xo$1(this.body)?null:Lo$1(this.body)?this.body.type||null:No$1(this.body)?null:typeof this.body=="string"?Bo$1:this.body instanceof ye?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?jo$1:null}clone(n={}){let e=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,o=n.keepalive??this.keepalive,s=n.priority||this.priority,u=n.cache||this.cache,a=n.mode||this.mode,c=n.redirect||this.redirect,l=n.credentials||this.credentials,d=n.referrer??this.referrer,f=n.integrity||this.integrity,v=n.referrerPolicy||this.referrerPolicy,E=n.transferCache??this.transferCache,N=n.timeout??this.timeout,b=n.body!==void 0?n.body:this.body,$=n.withCredentials??this.withCredentials,U=n.reportProgress??this.reportProgress,k=n.reportUploadProgress??this.reportUploadProgress,ce=n.reportDownloadProgress??this.reportDownloadProgress,Ce=n.headers||this.headers,ne=n.params||this.params,Zt=n.context??this.context;return n.setHeaders!==void 0&&(Ce=Object.keys(n.setHeaders).reduce((Ve,Pe)=>Ve.set(Pe,n.setHeaders[Pe]),Ce)),n.setParams&&(ne=Object.keys(n.setParams).reduce((Ve,Pe)=>Ve.set(Pe,n.setParams[Pe]),ne)),new t(e,r,b,{params:ne,headers:Ce,context:Zt,reportProgress:U,reportUploadProgress:k,reportDownloadProgress:ce,responseType:i,withCredentials:$,transferCache:E,keepalive:o,cache:u,priority:s,timeout:N,mode:a,redirect:c,credentials:l,referrer:d,integrity:f,referrerPolicy:v})}},Je$1=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Je$1||{}),Qe$1=class Qe{headers;status;statusText;url;ok;type;redirected;responseType;constructor(n,e=200,r="OK"){this.headers=n.headers||new De$2,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.responseType=n.responseType,this.ok=this.status>=200&&this.status<300;}},bn$1=class t extends Qe$1{constructor(n={}){super(n);}type=Je$1.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Lt$1=class t extends Qe$1{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null;}type=Je$1.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected,responseType:n.responseType??this.responseType})}},ke=class extends Qe$1{name="HttpErrorResponse";message;error;ok=false;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null;}},ou$1=200;var su$1=/^\)\]\}',?\n/,$o$1=new x("",{factory:()=>null}),An$1=(()=>{class t{fetchImpl=T($r,{optional:true})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=T(we$1);destroyRef=T(xe$2);maxResponseSize=T($o$1);handle(e){return new _(r=>{let i=new AbortController;this.doRequest(e,i.signal,r).then(zr$1,s=>r.error(new ke({error:s})));let o;return e.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"));},e.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort();}})}async doRequest(e,r,i){let o=this.createRequestInit(e),s;try{let b=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,$({signal:r},o)));au$1(b),i.next({type:Je$1.Sent}),s=await b;}catch(b){i.error(new ke({error:b,status:b.status??0,statusText:b.statusText,url:e.urlWithParams,headers:b.headers}));return}let u=new De$2(s.headers),a=s.statusText,c=s.url||e.urlWithParams,l=s.status,d=null,f=e.reportProgress||e.reportDownloadProgress;if(f&&i.next(new bn$1({headers:u,status:l,statusText:a,url:c})),s.body){let b=s.headers.get("content-length"),$=b!==null?Number(b):NaN;this.maxResponseSize!==null&&Number.isFinite($)&&$>this.maxResponseSize&&ko$1(this.maxResponseSize);let U=[],k=s.body.getReader(),ce=0,Ce,ne,Zt=typeof Zone<"u"&&Zone.current,Ve=false;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await k.cancel(),Ve=true;break}let{done:gt,value:tr}=await k.read();if(gt)break;if(U.push(tr),ce+=tr.length,this.maxResponseSize!==null&&ce>this.maxResponseSize&&(await k.cancel(),ko$1(this.maxResponseSize)),f){ne=e.responseType==="text"?(ne??"")+(Ce??=new TextDecoder).decode(tr,{stream:true}):void 0;let wi=()=>i.next({type:Je$1.DownloadProgress,total:Number.isFinite($)?$:void 0,loaded:ce,partialText:ne});Zt?Zt.run(wi):wi();}}}),Ve){i.complete();return}let Pe=this.concatChunks(U,ce);try{let gt=s.headers.get(kr$1)??"";d=this.parseBody(e,Pe,gt,l);}catch(gt){i.error(new ke({error:gt,headers:new De$2(s.headers),status:s.status,statusText:s.statusText,url:s.url||e.urlWithParams}));return}}l===0&&(l=d?ou$1:0);let v=l>=200&&l<300,E=s.redirected,N=s.type;v?(i.next(new Lt$1({body:d,headers:u,status:l,statusText:a,url:c,redirected:E,responseType:N})),i.complete()):i.error(new ke({error:d,headers:u,status:l,statusText:a,url:c,redirected:E,responseType:N}));}parseBody(e,r,i,o){switch(e.responseType){case "json":let s=new TextDecoder().decode(r).replace(su$1,"");if(s==="")return null;try{return JSON.parse(s)}catch(u){if(o<200||o>=300)return s;throw u}case "text":return new TextDecoder().decode(r);case "blob":return new Blob([r],{type:i});case "arraybuffer":return r.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new b(2824,false);let r={},i;if(i=e.credentials,e.withCredentials&&(i="include"),e.headers.forEach((o,s)=>r[o]=s.join(",")),e.headers.has(Uo$1)||(r[Uo$1]=iu$1),!e.headers.has(kr$1)){let o=e.detectContentTypeHeader();o!==null&&(r[kr$1]=o);}return {body:e.serializeBody(),method:e.method,headers:r,credentials:i,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,r){let i=new Uint8Array(r),o=0;for(let s of e)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})(),$r=class{};function zr$1(){}function au$1(t){t.then(zr$1,zr$1);}function ko$1(t){throw new b(-2825,false)}function uu$1(t,n){return n(t)}function cu$1(t,n,e){return (r,i)=>lo$2(e,()=>n(r,o=>t(o,i)))}var Hr$1=new x("",{factory:()=>[]}),zo$1=new x(""),Ho$1=new x("",{factory:()=>true});var Vr$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=De$3(An$1),i},providedIn:"root"})}return t})();var Tn=(()=>{class t{backend;injector;chain=null;pendingTasks=T(Us$2);contributeToStability=T(Ho$1);constructor(e,r){this.backend=e,this.injector=r;}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Hr$1),...this.injector.get(zo$1,[])]));this.chain=i.reduceRight((o,s)=>cu$1(o,s,this.injector),uu$1);}let r=this.chain;if(this.contributeToStability){let i=this.pendingTasks.add();return ZI(()=>r(e,o=>this.backend.handle(o))).pipe(al$2(i))}else return ZI(()=>r(e,i=>this.backend.handle(i)))}static \u0275fac=function(r){return new(r||t)(De$3(Vr$1),De$3(ee$1))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=De$3(Tn),i},providedIn:"root"})}return t})();function Br$1(t,n){return $({body:n},t)}var Vo$1=(()=>{class t{handler;constructor(e){this.handler=e;}request(e,r,i={}){let o;if(e instanceof Ke$1)o=e;else {let a;i.headers instanceof De$2?a=i.headers:a=new De$2(i.headers);let c;i.params&&(i.params instanceof ye?c=i.params:c=new ye({fromObject:i.params})),o=new Ke$1(e,r,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:c,reportProgress:i.reportProgress,reportUploadProgress:i.reportUploadProgress,reportDownloadProgress:i.reportDownloadProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout});}let s=ah$1(o).pipe(Oh$1(a=>this.handler.handle(a)));if(e instanceof Ke$1||i.observe==="events")return s;let u=s.pipe(Pr$2(a=>a instanceof Lt$1));switch(i.observe||"body"){case "body":switch(o.responseType){case "arraybuffer":return u.pipe(ve$2(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new b(2806,false);return a.body}));case "blob":return u.pipe(ve$2(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new b(2807,false);return a.body}));case "text":return u.pipe(ve$2(a=>{if(a.body!==null&&typeof a.body!="string")throw new b(2808,false);return a.body}));default:return u.pipe(ve$2(a=>a.body))}case "response":return u;default:throw new b(2809,false)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new ye().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,Br$1(i,r))}post(e,r,i={}){return this.request("POST",e,Br$1(i,r))}put(e,r,i={}){return this.request("PUT",e,Br$1(i,r))}static \u0275fac=function(r){return new(r||t)(De$3(Gr))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var lu$1=new x("",{factory:()=>true}),du$1="XSRF-TOKEN",hu$1=new x("",{factory:()=>du$1}),fu$1="X-XSRF-TOKEN",pu$1=new x("",{factory:()=>fu$1}),gu$1=(()=>{class t{cookieName=T(hu$1);doc=T(qn$2);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mt$1(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})(),Go$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=De$3(gu$1),i},providedIn:"root"})}return t})();function mu$1(t,n){if(!T(lu$1)||t.method==="GET"||t.method==="HEAD")return n(t);try{let i=T(me).href,{origin:o}=new URL(i),{origin:s}=new URL(t.url,o);if(o!==s)return n(t)}catch{return n(t)}let e=T(Go$1).getToken(),r=T(pu$1);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}var qr=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t[t.Xhr=7]="Xhr",t})(qr||{});function vu$1(t,n){return {\u0275kind:t,\u0275providers:n}}function yu$1(...t){let n=[Vo$1,An$1,Tn,{provide:Gr,useExisting:Tn},{provide:Vr$1,useFactory:()=>T(An$1)},{provide:Hr$1,useValue:mu$1,multi:true}];for(let e of t)n.push(...e.\u0275providers);return Hn$2(n)}function Du$1(t){return vu$1(qr.Interceptors,t.map(n=>({provide:Hr$1,useValue:n,multi:true})))}var qo$1=(()=>{class t{_doc;constructor(e){this._doc=e;}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||"";}static \u0275fac=function(r){return new(r||t)(De$3(qn$2))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Eu$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=te$1({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=De$3(Cu$1),i},providedIn:"root"})}return t})(),Cu$1=(()=>{class t extends Eu$1{_doc=T(qn$2);sanitize(e,r){if(r==null)return null;switch(e){case ur$1.NONE:return r;case ur$1.HTML:return si$2(r,"HTML")?In$2(r):Ld$1(this._doc,String(r)).toString();case ur$1.STYLE:return si$2(r,"Style")?In$2(r):r;case ur$1.SCRIPT:if(si$2(r,"Script"))return In$2(r);throw new b(5200,false);case ur$1.URL:return si$2(r,"URL")?In$2(r):Ha$2(String(r));case ur$1.RESOURCE_URL:if(si$2(r,"ResourceURL"))return In$2(r);throw new b(-5201,false);default:throw new b(5202,false)}}bypassSecurityTrustHtml(e){return Nm$1(e)}bypassSecurityTrustStyle(e){return Sm$1(e)}bypassSecurityTrustScript(e){return xm$1(e)}bypassSecurityTrustUrl(e){return Am$1(e)}bypassSecurityTrustResourceUrl(e){return Rm$1(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})();var m="primary",Wt$1=Symbol("RouteTitle"),Kr=class{params;constructor(n){this.params=n||{};}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return []}get keys(){return Object.keys(this.params)}};function je(t){return new Kr(t)}function Wr(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return false}return true}function ts$1(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let a={},c=t.slice(0,r.length);return Wr(r,c,a)?{consumed:c,posParams:a}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let u={};return !Wr(o,t.slice(0,o.length),u)||!Wr(s,t.slice(t.length-s.length),u)?null:{consumed:t,posParams:u}}function Fn$1(t){return new Promise((n,e)=>{t.pipe(Fh$1()).subscribe({next:r=>n(r),error:r=>e(r)});})}function bu$1(t,n){if(t.length!==n.length)return false;for(let e=0;e<t.length;++e)if(!he(t[e],n[e]))return false;return true}function he(t,n){let e=t?Jr$1(t):void 0,r=n?Jr$1(n):void 0;if(!e||!r||e.length!=r.length)return false;let i;for(let o=0;o<e.length;o++)if(i=e[o],!ns$1(t[i],n[i]))return false;return true}function Jr$1(t){return [...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function ns$1(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return false;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function Au$1(t){return t.length>0?t[t.length-1]:null}function ze$2(t){return Ih$1(t)?t:dc$2(t)?Qe$2(Promise.resolve(t)):ah$1(t)}function rs$1(t){return Ih$1(t)?Fn$1(t):Promise.resolve(t)}var Tu$1={exact:ss$1,subset:as$1},is$1={exact:_u$1,subset:Iu$1,ignored:()=>true},os$1={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function Wo$1(t,n,e){return Tu$1[e.paths](t.root,n.root,e.matrixParams)&&is$1[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function _u$1(t,n){return he(t,n)}function ss$1(t,n,e){if(!Be$1(t.segments,n.segments)||!Mn$1(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return false;for(let r in n.children)if(!t.children[r]||!ss$1(t.children[r],n.children[r],e))return false;return true}function Iu$1(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>ns$1(t[e],n[e]))}function as$1(t,n,e){return us$1(t,n,n.segments,e)}function us$1(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return !(!Be$1(i,e)||n.hasChildren()||!Mn$1(i,e,r))}else if(t.segments.length===e.length){if(!Be$1(t.segments,e)||!Mn$1(t.segments,e,r))return false;for(let i in n.children)if(!t.children[i]||!as$1(t.children[i],n.children[i],r))return false;return true}else {let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return !Be$1(t.segments,i)||!Mn$1(t.segments,i,r)||!t.children[m]?false:us$1(t.children[m],n,o,r)}}function Mn$1(t,n,e){return n.every((r,i)=>is$1[e](t[i].parameters,r.parameters))}var Y=class{root;queryParams;fragment;_queryParamMap;constructor(n=new S([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r;}get queryParamMap(){return this._queryParamMap??=je(this.queryParams),this._queryParamMap}toString(){return Pu$1.serialize(this)}},S=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this);}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return On$1(this)}},_e=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e;}get parameterMap(){return this._parameterMap??=je(this.parameters),this._parameterMap}toString(){return ls$1(this)}};function Mu$1(t,n){return Be$1(t,n)&&t.every((e,r)=>he(e.parameters,n[r].parameters))}function Be$1(t,n){return t.length!==n.length?false:t.every((e,r)=>e.path===n[r].path)}function Ou$1(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===m&&(e=e.concat(n(i,r)));}),Object.entries(t.children).forEach(([r,i])=>{r!==m&&(e=e.concat(n(i,r)));}),e}var He$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:()=>new Ie$2})}return t})(),Ie$2=class Ie{parse(n){let e=new ti$1(n);return new Y(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${xt(n.root,true)}`,r=Lu$1(n.queryParams),i=typeof n.fragment=="string"?`#${Fu$1(n.fragment)}`:"";return `${e}${r}${i}`}},Pu$1=new Ie$2;function On$1(t){return t.segments.map(n=>ls$1(n)).join("/")}function xt(t,n){if(!t.hasChildren())return On$1(t);if(n){let e=t.children[m]?xt(t.children[m],false):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==m&&r.push(`${i}:${xt(o,false)}`);}),r.length>0?`${e}(${r.join("//")})`:e}else {let e=Ou$1(t,(r,i)=>i===m?[xt(t.children[m],false)]:[`${i}:${xt(r,false)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${On$1(t)}/${e[0]}`:`${On$1(t)}/(${e.join("//")})`}}function cs$1(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _n$1(t){return cs$1(t).replace(/%3B/gi,";")}function Fu$1(t){return encodeURI(t)}function ei$1(t){return cs$1(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pn$1(t){return decodeURIComponent(t)}function Yo$1(t){return Pn$1(t.replace(/\+/g,"%20"))}function ls$1(t){return `${ei$1(t.path)}${Nu$1(t.parameters)}`}function Nu$1(t){return Object.entries(t).map(([n,e])=>`;${ei$1(n)}=${ei$1(e)}`).join("")}function Lu$1(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${_n$1(e)}=${_n$1(i)}`).join("&"):`${_n$1(e)}=${_n$1(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var xu$1=/^[^\/()?;#]+/;function Yr(t){let n=t.match(xu$1);return n?n[0]:""}var Uu$1=/^[^\/()?;=#]+/;function ku$1(t){let n=t.match(Uu$1);return n?n[0]:""}var Bu$1=/^[^=?&#]+/;function ju$1(t){let n=t.match(Bu$1);return n?n[0]:""}var $u$1=/^[^&#]+/;function zu$1(t){let n=t.match($u$1);return n?n[0]:""}var ti$1=class ti{url;remaining;constructor(n){this.url=n,this.remaining=n;}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new S([],{}):new S([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new b(4010,false);if(this.remaining==="")return {};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(true,n));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(false,n)),(e.length>0||Object.keys(r).length>0)&&(i[m]=new S(e,r)),i}parseSegment(){let n=Yr(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,false);return this.capture(n),new _e(Pn$1(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=ku$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Yr(this.remaining);i&&(r=i,this.capture(r));}n[Pn$1(e)]=Pn$1(r);}parseQueryParam(n){let e=ju$1(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=zu$1(this.remaining);s&&(r=s,this.capture(r));}let i=Yo$1(e),o=Yo$1(r);if(Object.hasOwn(n,i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o);}else n[i]=o;}parseParens(n,e){let r=Object.create(null);for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=Yr(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new b(4010,false);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=m);let u=this.parseChildren(e+1);r[s??m]=Object.keys(u).length===1&&u[m]?u[m]:new S([],u),this.consumeOptional("//");}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),true):false}capture(n){if(!this.consumeOptional(n))throw new b(4011,false)}};function ds$1(t){return t.segments.length>0?new S([],{[m]:t}):t}function hs$1(t){let n=Object.create(null);for(let[r,i]of Object.entries(t.children)){let o=hs$1(i);if(r===m&&o.segments.length===0&&o.hasChildren())for(let[s,u]of Object.entries(o.children))n[s]=u;else (o.segments.length>0||o.hasChildren())&&(n[r]=o);}let e=new S(t.segments,n);return Hu$1(e)}function Hu$1(t){if(t.numberOfChildren===1&&t.children[m]){let n=t.children[m];return new S(t.segments.concat(n.segments),n.children)}return t}function Me(t){return t instanceof Y}function fs$1(t,n,e=null,r=null,i=new Ie$2){let o=ps$1(t);return gs$1(o,n,e,r,i)}function ps$1(t){let n;function e(o){let s={};for(let a of o.children){let c=e(a);s[a.outlet]=c;}let u=new S(o.url,s);return o===t&&(n=u),u}let r=e(t.root),i=ds$1(r);return n??i}function gs$1(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Xr$1(o,o,o,e,r,i);let s=Vu$1(n);if(s.toRoot())return Xr$1(o,o,new S([],{}),e,r,i);let u=Gu$1(s,o,t),a=u.processChildren?kt$1(u.segmentGroup,u.index,s.commands):vs$1(u.segmentGroup,u.index,s.commands);return Xr$1(o,u.segmentGroup,a,e,r,i)}function Nn$1(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function jt$1(t){return typeof t=="object"&&t!=null&&t.outlets}function Xo$1(t,n,e){t||="\u0275";let r=new Y;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Xr$1(t,n,e,r,i,o){let s={};for(let[c,l]of Object.entries(r??{}))s[c]=Array.isArray(l)?l.map(d=>Xo$1(c,d,o)):Xo$1(c,l,o);let u;t===n?u=e:u=ms$1(t,n,e);let a=ds$1(hs$1(u));return new Y(a,s,i)}function ms$1(t,n,e){let r=Object.create(null);return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=ms$1(o,n,e);}),new S(t.segments,r)}var Ln$1=class Ln{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&Nn$1(r[0]))throw new b(4003,false);let i=r.find(jt$1);if(i&&i!==Au$1(r))throw new b(4004,false)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Vu$1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Ln$1(true,0,t);let n=0,e=false,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let u={};return Object.entries(o.outlets).forEach(([a,c])=>{u[a]=typeof c=="string"?c.split("/"):c;}),[...i,{outlets:u}]}if(o.segmentPath)return [...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((u,a)=>{a==0&&u==="."||(a==0&&u===""?e=true:u===".."?n++:u!=""&&i.push(u));}),i):[...i,o]},[]);return new Ln$1(e,n,r)}var tt=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r;}};function Gu$1(t,n,e){if(t.isAbsolute)return new tt(n,true,0);if(!e)return new tt(n,false,NaN);if(e.parent===null)return new tt(e,true,0);let r=Nn$1(t.commands[0])?0:1,i=e.segments.length-1+r;return qu$1(e,i,t.numberOfDoubleDots)}function qu$1(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new b(4005,false);i=r.segments.length;}return new tt(r,false,i-o)}function Wu$1(t){return jt$1(t[0])?t[0].outlets:{[m]:t}}function vs$1(t,n,e){if(t??=new S([],{}),t.segments.length===0&&t.hasChildren())return kt$1(t,n,e);let r=Yu$1(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new S(t.segments.slice(0,r.pathIndex),{});return o.children[m]=new S(t.segments.slice(r.pathIndex),t.children),kt$1(o,0,i)}else return r.match&&i.length===0?new S(t.segments,{}):r.match&&!t.hasChildren()?ni$1(t,n,e):r.match?kt$1(t,0,i):ni$1(t,n,e)}function kt$1(t,n,e){if(e.length===0)return new S(t.segments,{});{let r=Wu$1(e),i=Object.create(null);if(Object.keys(r).some(o=>o!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let o=kt$1(t.children[m],n,e);return new S(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=vs$1(t.children[o],n,s));}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s);}),new S(t.segments,i)}}function Yu$1(t,n,e){let r=0,i=n,o={match:false,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],u=e[r];if(jt$1(u))break;let a=`${u}`,c=r<e.length-1?e[r+1]:null;if(i>0&&a===void 0)break;if(a&&c&&typeof c=="object"&&c.outlets===void 0){if(!Ko$1(a,c,s))return o;r+=2;}else {if(!Ko$1(a,{},s))return o;r++;}i++;}return {match:true,pathIndex:i,commandIndex:r}}function ni$1(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(jt$1(o)){let a=Xu$1(o.outlets);return new S(r,a)}if(i===0&&Nn$1(e[0])){let a=t.segments[n];r.push(new _e(a.path,Zo$1(e[0]))),i++;continue}let s=jt$1(o)?o.outlets[m]:`${o}`,u=i<e.length-1?e[i+1]:null;s&&u&&Nn$1(u)?(r.push(new _e(s,Zo$1(u))),i+=2):(r.push(new _e(s,{})),i++);}return new S(r,{})}function Xu$1(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=ni$1(new S([],{}),0,r));}),n}function Zo$1(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Ko$1(t,n,e){return t==e.path&&he(n,e.parameters)}var nt$1="imperative",F=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(F||{}),X=class{id;url;constructor(n,e){this.id=n,this.url=e;}},Oe$1=class Oe extends X{type=F.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i;}toString(){return `NavigationStart(id: ${this.id}, url: '${this.url}')`}},ue=class extends X{urlAfterRedirects;type=F.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r;}toString(){return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},j=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(j||{}),it=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(it||{}),te=class extends X{reason;code;type=F.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}toString(){return `NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function ys$1(t){return t instanceof te&&(t.code===j.Redirect||t.code===j.SupersededByNewNavigation)}var fe=class extends X{reason;code;type=F.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i;}},$e=class extends X{error;target;type=F.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i;}toString(){return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},$t$1=class $t extends X{urlAfterRedirects;state;type=F.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},xn$1=class xn extends X{urlAfterRedirects;state;type=F.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Un$1=class Un extends X{urlAfterRedirects;state;shouldActivate;type=F.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o;}toString(){return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},kn$1=class kn extends X{urlAfterRedirects;state;type=F.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Bn$1=class Bn extends X{urlAfterRedirects;state;type=F.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i;}toString(){return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},jn$1=class jn{route;type=F.RouteConfigLoadStart;constructor(n){this.route=n;}toString(){return `RouteConfigLoadStart(path: ${this.route.path})`}},$n$1=class $n{route;type=F.RouteConfigLoadEnd;constructor(n){this.route=n;}toString(){return `RouteConfigLoadEnd(path: ${this.route.path})`}},zn$1=class zn{snapshot;type=F.ChildActivationStart;constructor(n){this.snapshot=n;}toString(){return `ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Hn$1=class Hn{snapshot;type=F.ChildActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vn$1=class Vn{snapshot;type=F.ActivationStart;constructor(n){this.snapshot=n;}toString(){return `ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Gn$1=class Gn{snapshot;type=F.ActivationEnd;constructor(n){this.snapshot=n;}toString(){return `ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},ot=class{routerEvent;position;anchor;scrollBehavior;type=F.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i;}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return `Scroll(anchor: '${this.anchor}', position: '${n}')`}},st=class{},zt$1=class zt{},at=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e;}};function Zu$1(t){return !(t instanceof st)&&!(t instanceof at)&&!(t instanceof zt$1)}var qn$1=class qn{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new dt$1(this.rootInjector);}},dt$1=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e;}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i);}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null);}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e;}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new qn$1(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(De$3(ee$1))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wn$1=class Wn{_root;constructor(n){this._root=n;}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=ri$1(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=ri$1(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=ii$1(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return ii$1(n,this._root).map(e=>e.value)}};function ri$1(t,n){if(t===n.value)return n;for(let e of n.children){let r=ri$1(t,e);if(r)return r}return null}function ii$1(t,n){if(t===n.value)return [n];for(let e of n.children){let r=ii$1(t,e);if(r.length)return r.unshift(n),r}return []}var W$1=class W{value;children;constructor(n,e){this.value=n,this.children=e;}toString(){return `TreeNode(${this.value})`}};function et(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Ht$1=class Ht extends Wn$1{snapshot;constructor(n,e){super(n),this.snapshot=e,fi(this,n);}toString(){return this.snapshot.toString()}};function Ds$1(t,n){let e=Ku$1(t,n),r=new bn$2([new _e("",{})]),i=new bn$2({}),o=new bn$2({}),s=new bn$2({}),u=new bn$2(""),a=new Ee$1(r,i,s,u,o,m,t,e.root);return a.snapshot=e.root,new Ht$1(new W$1(a,[]),e)}function Ku$1(t,n){let e={},r={},i={},s=new ut([],e,i,"",r,m,t,null,{},n);return new Vt$1("",new W$1(s,[]))}var Ee$1=class Ee{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(n,e,r,i,o,s,u,a){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=u,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(ve$2(c=>c[Wt$1]))??ah$1(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o;}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ve$2(n=>je(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ve$2(n=>je(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}},Ju$1="always";function hi(t,n,e){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:$($({},n.params),t.params),data:$($({},n.data),t.data),resolve:$($($($({},t.data),n.data),i?.data),t._resolvedData)}:r={params:$({},t.params),data:$({},t.data),resolve:$($({},t.data),t._resolvedData??{})},i&&Es$1(i)&&(r.resolve[Wt$1]=i.title),r}var ut=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Wt$1]}constructor(n,e,r,i,o,s,u,a,c,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=u,this.routeConfig=a,this._resolve=c,this._environmentInjector=l;}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=je(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=je(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return `Route(url:'${n}', path:'${e}')`}},Vt$1=class Vt extends Wn$1{url;constructor(n,e){super(e),this.url=n,fi(this,e);}toString(){return ws$1(this._root)}};function fi(t,n){n.value._routerState=t,n.children.forEach(e=>fi(t,e));}function ws$1(t){let n=t.children.length>0?` { ${t.children.map(ws$1).join(", ")} } `:"";return `${t.value}${n}`}function Zr$1(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,he(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),he(n.params,e.params)||t.paramsSubject.next(e.params),bu$1(n.url,e.url)||t.urlSubject.next(e.url),he(n.data,e.data)||t.dataSubject.next(e.data);}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data);}function oi$1(t,n){let e=he(t.params,n.params)&&Mu$1(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||oi$1(t.parent,n.parent))}function Es$1(t){return typeof t.title=="string"||t.title===null}var Cs$1=new x(""),pi$1=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=m;activateEvents=new Fe$1;deactivateEvents=new Fe$1;attachEvents=new Fe$1;detachEvents=new Fe$1;routerOutletData=TP();parentContexts=T(dt$1);location=T(mi$2);changeDetector=T(xP);inputBinder=T(Kn$1,{optional:true});supportsBindingToComponentInputs=true;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName();}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this);}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName();}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector));}get isActivated(){return !!this.activated}get component(){if(!this.activated)throw new b(4012,false);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,false);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,false);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance);}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e);}}activateWith(e,r){if(this.isActivated)throw new b(4013,false);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,a=new si$1(e,u,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:a,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance);}static \u0275fac=function(r){return new(r||t)};static \u0275dir=CE({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Qg]})}return t})(),si$1=class si{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i;}get(n,e){return n===Ee$1?this.route:n===dt$1?this.childContexts:n===Cs$1?this.outletData:this.parent.get(n,e)}},Kn$1=new x("");var gi=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=IE({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Zf$1(0,"router-outlet");},dependencies:[pi$1],encapsulation:2,changeDetection:1})}return t})();function mi$1(t){let n=t.children&&t.children.map(mi$1),e=n?U$1($({},t),{children:n}):$({},t);return !e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==m&&(e.component=gi),e}function Qu$1(t,n,e){let r=new Set,i=Gt$1(t,n._root,e?e._root:void 0,r);return {newlyCreatedRoutes:r,state:new Ht$1(i,n)}}function Gt$1(t,n,e,r){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let i=e.value;i._futureSnapshot=n.value;let o=ec$1(t,n,e,r);return new W$1(i,o)}else {if(t.shouldAttach(n.value)){let s=t.retrieve(n.value);if(s!==null){let u=s.route;return u.value._futureSnapshot=n.value,u.children=n.children.map(a=>Gt$1(t,a,void 0,r)),u}}let i=tc$1(n.value);r.add(i);let o=n.children.map(s=>Gt$1(t,s,void 0,r));return new W$1(i,o)}}function ec$1(t,n,e,r){return n.children.map(i=>{for(let o of e.children)if(t.shouldReuseRoute(i.value,o.value.snapshot))return Gt$1(t,i,o,r);return Gt$1(t,i,void 0,r)})}function tc$1(t){return new Ee$1(new bn$2(t.url),new bn$2(t.params),new bn$2(t.queryParams),new bn$2(t.fragment),new bn$2(t.data),t.outlet,t.component,t)}var ct=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e;}},Ss$1="ngNavigationCancelingError";function Yn$1(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Me(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=Rs$1(false,j.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function Rs$1(t,n){let e=new Error(`NavigationCancelingError: ${""}`);return e[Ss$1]=true,e.cancellationCode=n,e}function nc$1(t){return bs$1(t)&&Me(t.url)}function bs$1(t){return !!t&&t[Ss$1]}var ai$1=class ai{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o;}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Zr$1(this.futureState.root),this.activateChildRoutes(e,r,n);}deactivateChildRoutes(n,e,r){let i=et(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s];}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r);});}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children);}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r);}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e);}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=et(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),u=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:u});}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=et(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null),n.value._localInjector?.destroy();}activateChildRoutes(n,e,r){let i=et(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new Gn$1(o.value.snapshot));}),n.children.length&&this.forwardEvent(new Hn$1(n.value.snapshot));}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Zr$1(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children);}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let u=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(u.contexts),s.attachRef=u.componentRef,s.route=u.route.value,s.outlet&&s.outlet.attach(u.componentRef,u.route.value),Zr$1(u.route.value),this.activateChildRoutes(n,null,s.children);}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children);}else this.activateChildRoutes(n,null,r);}},Xn$1=class Xn{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1];}},rt=class{component;route;constructor(n,e){this.component=n,this.route=e;}};function rc$1(t,n,e){let r=t._root,i=n?n._root:null;return Ut$1(r,i,e,[r.value])}function ic$1(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return !n||n.length===0?null:{node:t,guards:n}}function ht$1(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Kh$1(t)?t:n.get(t):r}function Ut$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=et(n);return t.children.forEach(s=>{oc$1(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet];}),Object.entries(o).forEach(([s,u])=>Bt$1(u,e.getContext(s),i)),i}function oc$1(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,u=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let a=sc$1(s,o,o.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Xn$1(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Ut$1(t,n,u?u.children:null,r,i):Ut$1(t,n,e,r,i),a&&u&&u.outlet&&u.outlet.isActivated&&i.canDeactivateChecks.push(new rt(u.outlet.component,s));}else s&&Bt$1(n,u,i),i.canActivateChecks.push(new Xn$1(r)),o.component?Ut$1(t,null,u?u.children:null,r,i):Ut$1(t,null,e,r,i);return i}function sc$1(t,n,e){if(typeof e=="function")return lo$2(n._environmentInjector,()=>e(t,n));switch(e){case "pathParamsChange":return !Be$1(t.url,n.url);case "pathParamsOrQueryParamsChange":return !Be$1(t.url,n.url)||!he(t.queryParams,n.queryParams);case "always":return true;case "paramsOrQueryParamsChange":return !oi$1(t,n)||!he(t.queryParams,n.queryParams);default:return !oi$1(t,n)}}function Bt$1(t,n,e){let r=et(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?Bt$1(s,n.children.getContext(o),e):Bt$1(s,null,e):Bt$1(s,n,e);}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new rt(n.outlet.component,i)):e.canDeactivateChecks.push(new rt(null,i)):e.canDeactivateChecks.push(new rt(null,i));}function Yt$1(t){return typeof t=="function"}function ac$1(t){return typeof t=="boolean"}function uc$1(t){return t&&Yt$1(t.canLoad)}function cc$1(t){return t&&Yt$1(t.canActivate)}function lc$1(t){return t&&Yt$1(t.canActivateChild)}function dc$1(t){return t&&Yt$1(t.canDeactivate)}function hc$1(t){return t&&Yt$1(t.canMatch)}function As$1(t){return t instanceof gt$1||t?.name==="EmptyError"}var In$1=Symbol("INITIAL_VALUE");function lt(){return Xc$2(t=>Sh$1(t.map(n=>n.pipe(mt$1(1),Jc$1(In$1)))).pipe(ve$2(n=>{for(let e of n)if(e!==true){if(e===In$1)return In$1;if(e===false||fc$1(e))return e}return true}),Pr$2(n=>n!==In$1),mt$1(1)))}function fc$1(t){return Me(t)||t instanceof ct}function Ts$1(t){return t.aborted?ah$1(void 0).pipe(mt$1(1)):new _(n=>{let e=()=>{n.next(),n.complete();};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function _s$1(t){return Hh$1(Ts$1(t))}function pc$1(t){return le$1(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?ah$1(U$1($({},n),{guardsResult:true})):gc$1(o,e,r).pipe(le$1(s=>s&&ac$1(s)?mc$1(e,i,t):ah$1(s)),ve$2(s=>U$1($({},n),{guardsResult:s})))})}function gc$1(t,n,e){return Qe$2(t).pipe(le$1(r=>Ec$1(r.component,r.route,e,n)),Fh$1(r=>r!==true,true))}function mc$1(t,n,e){return Qe$2(n).pipe(Oh$1(r=>Qt$1(yc$1(r.route.parent,e),vc$1(r.route,e),wc$1(t,r.path),Dc$1(t,r.route))),Fh$1(r=>r!==true,true))}function vc$1(t,n){return t!==null&&n&&n(new Vn$1(t)),ah$1(true)}function yc$1(t,n){return t!==null&&n&&n(new zn$1(t)),ah$1(true)}function Dc$1(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return ah$1(true);let r=e.map(i=>Ah$1(()=>{let o=n._environmentInjector,s=ht$1(i,o),u=cc$1(s)?s.canActivate(n,t):lo$2(o,()=>s(n,t));return ze$2(u).pipe(Fh$1())}));return ah$1(r).pipe(lt())}function wc$1(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>ic$1(o)).filter(o=>o!==null).map(o=>Ah$1(()=>{let s=o.guards.map(u=>{let a=o.node._environmentInjector,c=ht$1(u,a),l=lc$1(c)?c.canActivateChild(e,t):lo$2(a,()=>c(e,t));return ze$2(l).pipe(Fh$1())});return ah$1(s).pipe(lt())}));return ah$1(i).pipe(lt())}function Ec$1(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return ah$1(true);let o=i.map(s=>{let u=n._environmentInjector,a=ht$1(s,u),c=dc$1(a)?a.canDeactivate(t,n,e,r):lo$2(u,()=>a(t,n,e,r));return ze$2(c).pipe(Fh$1())});return ah$1(o).pipe(lt())}function Cc$1(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return ah$1(true);let s=o.map(u=>{let a=ht$1(u,t),c=uc$1(a)?a.canLoad(n,e):lo$2(t,()=>a(n,e)),l=ze$2(c);return i?l.pipe(_s$1(i)):l});return ah$1(s).pipe(lt(),Is$1(r))}function Is$1(t){return Yp$1(el$2(n=>{if(typeof n!="boolean")throw Yn$1(t,n)}),ve$2(n=>n===true))}function Sc$1(t,n,e,r,i,o){let s=n.canMatch;if(!s||s.length===0)return ah$1(true);let u=s.map(a=>{let c=ht$1(a,t),l=hc$1(c)?c.canMatch(n,e,i):lo$2(t,()=>c(n,e,i));return ze$2(l).pipe(_s$1(o))});return ah$1(u).pipe(lt(),Is$1(r))}var we=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype);}},qt$1=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype);}};function Rc$1(t){throw new b(4e3,false)}function bc$1(t){throw Rs$1(false,j.GuardRejected)}var ui$1=class ui{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e;}async lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[m])throw Rc$1(`${n.redirectTo}`);i=i.children[m];}}async applyRedirectCommands(n,e,r,i,o){let s=await Ac$1(e,i,o);if(s instanceof Y)throw new qt$1(s);let u=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new qt$1(u);return u}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new Y(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let u=o.substring(1);r[i]=e[u];}else r[i]=o;}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s=Object.create(null);return Object.entries(e.children).forEach(([u,a])=>{s[u]=this.createSegmentGroup(n,a,r,i);}),new S(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new b(4001,false);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++;}return n}};function Ac$1(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return Fn$1(ze$2(lo$2(e,()=>r(n))))}function Tc$1(t,n){return t.providers&&!t._injector&&(t._injector=Vf$1(t.providers,n,`Route: ${t.path}`)),t._injector??n}function ae(t){return t.outlet||m}function _c$1(t,n){let e=t.filter(r=>ae(r)===n);return e.push(...t.filter(r=>ae(r)!==n)),e}var ci$1={matched:false,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ms$1(t){return {routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function Ic$1(t,n,e,r,i,o,s){let u=Os$1(t,n,e);if(!u.matched)return ah$1(u);let a=Ms$1(o(u));return r=Tc$1(n,r),Sc$1(r,n,e,i,a,s).pipe(ve$2(c=>c===true?u:$({},ci$1)))}function Os$1(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?$({},ci$1):{matched:true,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||ts$1)(e,t,n);if(!i)return $({},ci$1);let o={};Object.entries(i.posParams??{}).forEach(([u,a])=>{o[u]=a.path;});let s=i.consumed.length>0?$($({},o),i.consumed[i.consumed.length-1].parameters):o;return {matched:true,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Jo$1(t,n,e,r,i){return e.length>0&&Pc$1(t,e,r,i)?{segmentGroup:new S(n,Oc$1(r,new S(e,t.children))),slicedSegments:[]}:e.length===0&&Fc$1(t,e,r)?{segmentGroup:new S(t.segments,Mc$1(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new S(t.segments,t.children),slicedSegments:e}}function Mc$1(t,n,e,r){let i={};for(let o of e)if(Jn$1(t,n,o)&&!r[ae(o)]){let s=new S([],{});i[ae(o)]=s;}return $($({},r),i)}function Oc$1(t,n){let e={};e[m]=n;for(let r of t)if(r.path===""&&ae(r)!==m){let i=new S([],{});e[ae(r)]=i;}return e}function Pc$1(t,n,e,r){return e.some(i=>!Jn$1(t,n,i)||!(ae(i)!==m)?false:!(r!==void 0&&ae(i)===r))}function Fc$1(t,n,e){return e.some(r=>Jn$1(t,n,r))}function Jn$1(t,n,e){return (t.hasChildren()||n.length>0)&&e.pathMatch==="full"?false:e.path===""}function Nc$1(t,n,e){return n.length===0&&!t.children[e]}var li$1=class li{};async function Lc$1(t,n,e,r,i,o,s,u){return new di$1(t,n,e,r,i,s,o,u).recognize()}var xc$1=31,di$1=class di{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=true;constructor(n,e,r,i,o,s,u,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=u,this.abortSignal=a,this.applyRedirects=new ui$1(this.urlSerializer,this.urlTree);}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}async recognize(){let n=Jo$1(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),i=new W$1(r,e),o=new Vt$1("",i),s=fs$1(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(n){let e=new ut([],Object.freeze({}),Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),m,this.rootComponentType,null,{},this.injector);try{return {children:await this.processSegmentGroup(this.injector,this.config,n,m,e),rootSnapshot:e}}catch(r){if(r instanceof qt$1)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof we?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=await this.processSegment(n,e,r,r.segments,i,true,o);return s instanceof W$1?[s]:[]}async processChildren(n,e,r,i){let o=[];for(let a of Object.keys(r.children))a==="primary"?o.unshift(a):o.push(a);let s=[];for(let a of o){let c=r.children[a],l=_c$1(e,a),d=await this.processSegmentGroup(n,l,c,a,i);s.push(...d);}let u=Ps$1(s);return Uc$1(u),u}async processSegment(n,e,r,i,o,s,u){for(let a of e)try{return await this.processSegmentAgainstRoute(a._injector??n,e,a,r,i,o,s,u)}catch(c){if(c instanceof we||As$1(c))continue;throw c}if(Nc$1(r,i,o))return new li$1;throw new we(r)}async processSegmentAgainstRoute(n,e,r,i,o,s,u,a){if(ae(r)!==s&&(s===m||!Jn$1(i,o,r)))throw new we(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,a);if(this.allowRedirects&&u)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,a);throw new we(i)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,u){let{matched:a,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Os$1(e,i,o);if(!a)throw new we(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>xc$1&&(this.allowRedirects=false));let v=this.createSnapshot(n,i,o,c,u);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let E=await this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,Ms$1(v),n),N=await this.applyRedirects.lineralizeSegments(i,E);return this.processSegment(n,r,e,N.concat(f),s,false,u)}createSnapshot(n,e,r,i,o){let s=new ut(r,i,Object.freeze($({},this.urlTree.queryParams)),this.urlTree.fragment,Bc$1(e),ae(e),e.component??e._loadedComponent??null,e,jc$1(e),n),u=hi(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(u.params),s.data=Object.freeze(u.data),s}async matchSegmentAgainstRoute(n,e,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let u=k=>this.createSnapshot(n,r,k.consumedSegments,k.parameters,s),a=await Fn$1(Ic$1(e,r,i,n,this.urlSerializer,u,this.abortSignal));if(r.path==="**"&&(e.children={}),!a?.matched)throw new we(e);n=r._injector??n;let{routes:c}=await this.getChildConfig(n,r,i),l=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:v}=a,E=this.createSnapshot(n,r,f,d,s),{segmentGroup:N,slicedSegments:b}=Jo$1(e,f,v,c,o);if(b.length===0&&N.hasChildren()){let k=await this.processChildren(l,c,N,E);return new W$1(E,k)}if(c.length===0&&b.length===0)return new W$1(E,[]);let $=ae(r)===o,U=await this.processSegment(l,c,N,b,$?m:o,true,E);return new W$1(E,U instanceof W$1?[U]:[])}async getChildConfig(n,e,r){if(e.children)return {routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await Fn$1(Cc$1(n,e,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw bc$1()}return {routes:[],injector:n}}};function Uc$1(t){t.sort((n,e)=>n.value.outlet===m?-1:e.value.outlet===m?1:n.value.outlet.localeCompare(e.value.outlet));}function kc$1(t){let n=t.value.routeConfig;return n&&n.path===""}function Ps$1(t){let n=[],e=new Set;for(let r of t){if(!kc$1(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r);}for(let r of e){let i=Ps$1(r.children);n.push(new W$1(r.value,i));}return n.filter(r=>!e.has(r))}function Bc$1(t){return t.data||{}}function jc$1(t){return t.resolve||{}}function $c$1(t,n,e,r,i,o,s){return le$1(async u=>{let{state:a,tree:c}=await Lc$1(t,n,e,r,u.extractedUrl,i,o,s);return U$1($({},u),{targetSnapshot:a,urlAfterRedirects:c})})}function zc$1(t){return le$1(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return ah$1(n);let i=new Set(r.map(u=>u.route)),o=new Set;for(let u of i)if(!o.has(u))for(let a of Fs$1(u))o.add(a);let s=0;return Qe$2(o).pipe(Oh$1(u=>i.has(u)?Hc$1(u,e,t):(u.data=hi(u,u.parent,t).resolve,ah$1(void 0))),el$2(()=>s++),jh$1(1),le$1(u=>s===o.size?ah$1(n):Cn$2))})}function Fs$1(t){let n=t.children.map(e=>Fs$1(e)).flat();return [t,...n]}function Hc$1(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!Es$1(r)&&(i[Wt$1]=r.title),Ah$1(()=>(t.data=hi(t,t.parent,e).resolve,Vc$1(i,t,n).pipe(ve$2(o=>(t._resolvedData=o,t.data=$($({},t.data),o),null)))))}function Vc$1(t,n,e){let r=Jr$1(t);if(r.length===0)return ah$1({});let i={};return Qe$2(r).pipe(le$1(o=>Gc$1(t[o],n,e).pipe(Fh$1(),el$2(s=>{if(s instanceof ct)throw Yn$1(new Ie$2,s);i[o]=s;}))),jh$1(1),ve$2(()=>i),ki(o=>As$1(o)?Cn$2:ch$1(o)))}function Gc$1(t,n,e){let r=n._environmentInjector,i=ht$1(t,r),o=i.resolve?i.resolve(n,e):lo$2(r,()=>i(n,e));return ze$2(o)}function Qo$1(t){return Xc$2(n=>{let e=t(n);return e?Qe$2(e).pipe(ve$2(()=>n)):ah$1(n)})}var vi=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===m);return r}getResolvedTitleForRoute(e){return e.data[Wt$1]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:()=>T(Ns$1)})}return t})(),Ns$1=(()=>{class t extends vi{title;constructor(e){super(),this.title=e;}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r);}static \u0275fac=function(r){return new(r||t)(De$3(qo$1))};static \u0275prov=te$1({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ft$1=new x("",{factory:()=>({})}),Xt$1=new x(""),Ls$1=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=T(qI);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await rs$1(lo$2(e,()=>r.loadComponent())),s=await Us$1(DP(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r);}})();return this.componentLoaders.set(r,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await xs$1(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r);}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})();async function xs$1(t,n,e,r){let i=await rs$1(lo$2(e,()=>t.loadChildren())),o=await Us$1(DP(i)),s;o instanceof jf$1||Array.isArray(o)?s=o:s=await n.compileModuleAsync(o),r&&r(t);let u,a,l;return Array.isArray(s)?(a=s,true):(u=s.create(e).injector,l=s,a=u.get(Xt$1,[],{optional:true,self:true}).flat()),{routes:a.map(mi$1),injector:u,factory:l}}async function Us$1(t){return t}var Qn$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:()=>T(qc$1)})}return t})(),qc$1=(()=>{class t{shouldProcessUrl(e){return true}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})(),ks$1=new x("");var Bs$1=new x(""),Wc$1=()=>{},js$1=new x(""),yi=(()=>{class t{currentNavigation=Co$2(null,{equal:()=>false});currentTransition=null;lastSuccessfulNavigation=Co$2(null);events=new ue$1;transitionAbortWithErrorSubject=new ue$1;configLoader=T(Ls$1);environmentInjector=T(ee$1);destroyRef=T(xe$2);urlSerializer=T(He$1);rootContexts=T(dt$1);location=T(Ue$1);inputBindingEnabled=T(Kn$1,{optional:true})!==null;titleStrategy=T(vi);options=T(ft$1,{optional:true})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||Ju$1;urlHandlingStrategy=T(Qn$1);createViewTransition=T(ks$1,{optional:true});navigationErrorHandler=T(js$1,{optional:true});activatedRouteInjectorFeature=T(Bs$1,{optional:true});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>ah$1(void 0);rootComponentType=null;destroyed=false;constructor(){let e=i=>this.events.next(new jn$1(i)),r=i=>this.events.next(new $n$1(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=true;});}complete(){this.transitions?.complete();}handleNavigationRequest(e){let r=++this.navigationId;ZI(()=>{this.transitions?.next(U$1($({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}));});}setupNavigations(e){return this.transitions=new bn$2(null),this.transitions.pipe(Pr$2(r=>r!==null),Xc$2(r=>{let i=true,o=false,s=new AbortController,u=()=>!o&&this.currentTransition?.id===r.id;return ah$1(r).pipe(Xc$2(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",j.SupersededByNewNavigation),Cn$2;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?U$1($({},c),{previousNavigation:null}):null,abort:()=>s.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&d!=="reload")return this.events.next(new fe(a.id,this.urlSerializer.serialize(a.rawUrl),"",it.IgnoredSameUrlNavigation)),a.resolve(false),Cn$2;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return ah$1(a).pipe(Xc$2(f=>(this.events.next(new Oe$1(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?Cn$2:Promise.resolve(f))),$c$1(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,s.signal),el$2(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(v=>(v.finalUrl=f.urlAfterRedirects,v)),this.events.next(new zt$1);}),Xc$2(f=>Qe$2(r.routesRecognizeHandler.deferredHandle??ah$1(void 0)).pipe(ve$2(()=>f))),el$2(()=>{let f=new $t$1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f);}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:v,source:E,restoredState:N,extras:b}=a,$$1=new Oe$1(f,this.urlSerializer.serialize(v),E,N);this.events.next($$1);let U=Ds$1(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=U$1($({},a),{targetSnapshot:U,urlAfterRedirects:v,extras:U$1($({},b),{skipLocationChange:false,replaceUrl:false})}),this.currentNavigation.update(k=>(k.finalUrl=v,k)),ah$1(r)}else return this.events.next(new fe(a.id,this.urlSerializer.serialize(a.extractedUrl),"",it.IgnoredByUrlHandlingStrategy)),a.resolve(false),Cn$2}),ve$2(a=>{let c=new xn$1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=U$1($({},a),{guards:rc$1(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),pc$1(a=>this.events.next(a)),Xc$2(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Yn$1(this.urlSerializer,a.guardsResult);let c=new Un$1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!u())return Cn$2;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",j.GuardRejected),Cn$2;if(a.guards.canActivateChecks.length===0)return ah$1(a);let l=new kn$1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!u())return Cn$2;let d=false;return ah$1(a).pipe(zc$1(this.paramsInheritanceStrategy),el$2({next:()=>{d=true;let f=new Bn$1(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f);},complete:()=>{d||this.cancelNavigationTransition(a,"",j.NoDataFromResolver);}}))}),Qo$1(a=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let v=d._environmentInjector;f.push(this.configLoader.loadComponent(v,d.routeConfig).then(E=>{d.component=E;}));}for(let v of d.children)f.push(...c(v));return f},l=c(a.targetSnapshot.root);return l.length===0?ah$1(a):Qe$2(Promise.all(l).then(()=>a))}),Xc$2(a=>{let{newlyCreatedRoutes:c,state:l}=Qu$1(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=r=a=U$1($({},a),{targetRouterState:l,newlyCreatedRoutes:c}),this.currentNavigation.update(d=>(d.targetRouterState=l,d)),ah$1(a)}),this.activatedRouteInjectorFeature?.operator()??(a=>a),Qo$1(()=>this.afterPreactivation()),Xc$2(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?Qe$2(l).pipe(ve$2(()=>r)):ah$1(r)}),mt$1(1),Xc$2(a=>{i=false,this.events.next(new st);let c=r.beforeActivateHandler.deferredHandle;return c?Qe$2(c.then(()=>a)):ah$1(a)}),el$2(a=>{new ai$1(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),a.newlyCreatedRoutes?.clear(),u()&&(o=true,this.currentNavigation.update(c=>(c.abort=Wc$1,c)),this.lastSuccessfulNavigation.set(ZI(this.currentNavigation)),this.events.next(new ue(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(true));}),Hh$1(Ts$1(s.signal).pipe(Pr$2(()=>!o&&i),el$2(()=>{this.cancelNavigationTransition(r,s.signal.reason+"",j.Aborted);}))),el$2({complete:()=>{o=true;}}),Hh$1(this.transitionAbortWithErrorSubject.pipe(el$2(a=>{throw a}))),al$2(()=>{s.abort(),o||this.cancelNavigationTransition(r,"",j.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null);}),ki(a=>{if(o=true,es$1(r),this.destroyed)return r.resolve(false),Cn$2;if(bs$1(a))this.events.next(new te(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),nc$1(a)?this.events.next(new at(a.url,a.navigationBehaviorOptions)):r.resolve(false);else {let c=new $e(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=lo$2(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof ct){let{message:d,cancellationCode:f}=Yn$1(this.urlSerializer,l);this.events.next(new te(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new at(l.redirectTo,l.navigationBehaviorOptions));}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(false):r.reject(l);}}return Cn$2}))}))}cancelNavigationTransition(e,r,i){es$1(e);let o=new te(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(false);}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(true))),r=ZI(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})();function Yc$1(t){return t!==nt$1}function es$1(t){if(t.newlyCreatedRoutes)for(let n of t.newlyCreatedRoutes)n._localInjector?.destroy();}var $s$1=new x("");var zs$1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:()=>T(Xc$1)})}return t})(),Zn$1=class Zn{shouldDetach(n){return false}store(n,e){}shouldAttach(n){return false}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return true}},Xc$1=(()=>{class t extends Zn$1{static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})(),er$1=(()=>{class t{urlSerializer=T(He$1);options=T(ft$1,{optional:true})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=T(Ue$1);urlHandlingStrategy=T(Qn$1);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Y;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof Y?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i;}routerState=Ds$1(null,T(ee$1));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento();}createStateMemento(){return {rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:()=>T(Zc$1)})}return t})(),Zc$1=(()=>{class t extends er$1{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:true});});})}handleRouterEvent(e,r){e instanceof Oe$1?this.updateStateMemento():e instanceof fe?this.commitTransition(r):e instanceof $t$1?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof st?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof te&&!ys$1(e)?this.restoreHistory(r):e instanceof $e?this.restoreHistory(r,true):e instanceof ue&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId);}setBrowserUrl(e,r){let{extras:i,id:o}=r,{replaceUrl:s,state:u}=i;if(this.location.isCurrentPathEqualTo(e)||s){let a=this.browserPageId,c=$($({},u),this.generateNgRouterState(o,a,r));this.location.replaceState(e,"",c);}else {let a=$($({},u),this.generateNgRouterState(o,this.browserPageId+1,r));this.location.go(e,"",a);}}restoreHistory(e,r=false){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree());}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree);}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId));}generateNgRouterState(e,r,i){return this.canceledNavigationResolution==="computed"?$({navigationId:e,\u0275routerPageId:r},this.routerUrlState(i)):$({navigationId:e},this.routerUrlState(i))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})();function Di$1(t,n){t.events.pipe(Pr$2(e=>e instanceof ue||e instanceof te||e instanceof $e||e instanceof fe),ve$2(e=>e instanceof ue||e instanceof fe?0:(e instanceof te?e.code===j.Redirect||e.code===j.SupersededByNewNavigation:false)?2:1),Pr$2(e=>e!==2),mt$1(1)).subscribe(()=>{n();});}var pt$1=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=false;nonRouterCurrentEntryChangeSubscription;console=T(AE);stateManager=T(er$1);options=T(ft$1,{optional:true})||{};pendingTasks=T(Lt$2);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=T(yi);urlSerializer=T(He$1);location=T(Ue$1);urlHandlingStrategy=T(Qn$1);injector=T(ee$1);_events=new ue$1;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=false;routeReuseStrategy=T(zs$1);injectorCleanup=T($s$1,{optional:true});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=T(Xt$1,{optional:true})?.flat()??[];componentInputBindingEnabled=!!T(Kn$1,{optional:true});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents();}eventsSubscription=new W$2;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=ZI(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof te&&r.code!==j.Redirect&&r.code!==j.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof ue)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof at){let s=r.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),a=$({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Yc$1(i.source)},s);this.scheduleNavigation(u,nt$1,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise});}}Zu$1(r)&&this._events.next(r);}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i);}});this.eventsSubscription.add(e);}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e;}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(true),nt$1,this.stateManager.restoredState(),{replaceUrl:true});}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i,o)=>{this.navigateToSyncWithBrowser(e,i,r,o);});}navigateToSyncWithBrowser(e,r,i,o){let s=i?.navigationId?i:null,u=i?.\u0275routerUrl??e;if(i?.\u0275routerUrl&&(o=U$1($({},o),{browserUrl:e})),i){let c=$({},i);delete c.navigationId,delete c.\u0275routerPageId,delete c.\u0275routerUrl,Object.keys(c).length!==0&&(o.state=c);}let a=this.parseUrl(u);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(ct$1)(c);});}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return ZI(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(mi$1),this.navigated=false;}ngOnDestroy(){this.dispose();}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=true,this.eventsSubscription.unsubscribe();}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:u,preserveFragment:a}=r,c=a?this.currentUrlTree.fragment:s,l=null;switch(u??this.options.defaultQueryParamsHandling){case "merge":l=$($({},this.currentUrlTree.queryParams),o);break;case "preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null;}l!==null&&(l=this.removeEmptyProps(l));let d;try{let f=i?i.snapshot:this.routerState.snapshot.root;d=ps$1(f);}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root;}return gs$1(d,e,l,c??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:false}){let i=Me(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,nt$1,null,r)}navigate(e,r={skipLocationChange:false}){return Kc$1(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Ln$2(4018,false)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===true?i=$({},os$1):r===false?i=$({},Qr):i=$($({},Qr),r),Me(e))return Wo$1(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Wo$1(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(false);let u,a,c;s?(u=s.resolve,a=s.reject,c=s.promise):c=new Promise((d,f)=>{u=d,a=f;});let l=this.pendingTasks.add();return Di$1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l));}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:u,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})();function Kc$1(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new b(4008,false)}var Qc$1=(()=>{class t{router=T(pt$1);stateManager=T(er$1);fragment=Co$2("");queryParams=Co$2({});path=Co$2("");serializer=T(He$1);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof ue&&this.updateState();});}updateState(){let{fragment:e,root:r,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(i),this.path.set(this.serializer.serialize(new Y(r)));}static \u0275fac=function(r){return new(r||t)};static \u0275prov=ar$1({token:t,factory:t.\u0275fac})}return t})(),Hs$1=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=T(new Sp$1("href"),{optional:true});reactiveHref=KI(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return ZI(this.reactiveHref)}set href(e){this.reactiveHref.set(e);}set target(e){this._target.set(e);}get target(){return ZI(this._target)}_target=Co$2(void 0);set queryParams(e){this._queryParams.set(e);}get queryParams(){return ZI(this._queryParams)}_queryParams=Co$2(void 0,{equal:()=>false});set fragment(e){this._fragment.set(e);}get fragment(){return ZI(this._fragment)}_fragment=Co$2(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e);}get queryParamsHandling(){return ZI(this._queryParamsHandling)}_queryParamsHandling=Co$2(void 0);set state(e){this._state.set(e);}get state(){return ZI(this._state)}_state=Co$2(void 0,{equal:()=>false});set info(e){this._info.set(e);}get info(){return ZI(this._info)}_info=Co$2(void 0,{equal:()=>false});set relativeTo(e){this._relativeTo.set(e);}get relativeTo(){return ZI(this._relativeTo)}_relativeTo=Co$2(void 0);set preserveFragment(e){this._preserveFragment.set(e);}get preserveFragment(){return ZI(this._preserveFragment)}_preserveFragment=Co$2(false);set skipLocationChange(e){this._skipLocationChange.set(e);}get skipLocationChange(){return ZI(this._skipLocationChange)}_skipLocationChange=Co$2(false);set replaceUrl(e){this._replaceUrl.set(e);}get replaceUrl(){return ZI(this._replaceUrl)}_replaceUrl=Co$2(false);browserUrl=TP(void 0);isAnchorElement;onChanges=new ue$1;applicationErrorHandler=T(ct$1);options=T(ft$1,{optional:true});reactiveRouterState=T(Qc$1);constructor(e,r,i,o,s,u){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=u;let a=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area"||!!(typeof customElements=="object"&&customElements.get(a)?.observedAttributes?.includes?.("href"));}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e);}ngOnChanges(e){this.onChanges.next(this);}routerLinkInput=Co$2(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Me(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"));}onClick(e,r,i,o,s){let u=this._urlTree();if(u===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return true;let a=this.browserUrl(),c=$({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},a!==void 0&&{browserUrl:a});return this.router.navigateByUrl(u,c)?.catch(l=>{this.applicationErrorHandler(l);}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e);}_urlTree=QI(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=i=>i==="preserve"||i==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Me(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return ZI(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(hr$1(pt$1),hr$1(Ee$1),md("tabindex"),hr$1(Av),hr$1(cr$1),hr$1(le))};static \u0275dir=CE({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&tp$1("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&zf$1("href",i.reactiveHref(),ay)("target",i._target());},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",RP],skipLocationChange:[2,"skipLocationChange","skipLocationChange",RP],replaceUrl:[2,"replaceUrl","replaceUrl",RP],browserUrl:[1,"browserUrl"],routerLink:"routerLink"},features:[Qg]})}return t})();var Vs$1=new x(""),el$1=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=nt$1;restoredId=0;store={};isHydrating=T(wm$1,{optional:true})??false;urlSerializer=T(He$1);zone=T(we$1);viewportScroller=T(bo$1);transitions=T(yi);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&T(yi$1).whenStable().then(()=>{this.isHydrating=false;});}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents();}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Oe$1?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof ue?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof fe&&e.code===it.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment));})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof ot)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]);})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let i=ZI(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o);}),this.zone.run(()=>{this.transitions.events.next(new ot(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i));});});}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe();}static \u0275fac=function(r){Lv();};static \u0275prov=te$1({token:t,factory:t.\u0275fac})}return t})();function tl$1(t,...n){return Hn$2([{provide:Xt$1,multi:true,useValue:t},{provide:Ee$1,useFactory:nl$1},{provide:qf$1,multi:true,useFactory:il$1},n.map(e=>e.\u0275providers)])}function nl$1(){return T(pt$1).routerState.root}function Gs$1(t,n){return {\u0275kind:t,\u0275providers:n}}function rl$1(t={}){return Gs$1(4,[{provide:Vs$1,useFactory:()=>new el$1(t)}])}function il$1(){let t=T(fe$1);return n=>{let e=t.get(yi$1);if(n!==e.components[0])return;let r=t.get(pt$1),i=t.get(ol$1);t.get(sl$1)===1&&r.initialNavigation(),t.get(al$1,null,{optional:true})?.setUpPreloading(),t.get(Vs$1,null,{optional:true})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe());}}var ol$1=new x("",{factory:()=>new ue$1}),sl$1=new x("",{factory:()=>1});var al$1=new x("");function ul$1(){return Gs$1(6,[{provide:le,useClass:Tr$1}])}
6
+ var An=[5,15,30],pt=15,En=30;var mt={LegacyParallel:"legacy-parallel",Named:"named"},Xr=mt.LegacyParallel;function ln(n){return n.transport??Xr}var Zr={id:"track-shipments",route:["portal","shipment","track-shipments"],transport:"legacy-parallel",pagination:{pageParam:"page",sizeParam:"size"},search:{param:"search",label:"Shipment ID",placeholder:"Search"},date:{rangeParams:{from:"from",to:"to"},fieldParam:"date",fields:[{value:"created_at",label:"Date Created"}]},sort:{param:"order",options:[{value:"asc",label:"Ascending"},{value:"desc",label:"Descending"}]},fields:[{key:"payment_status",label:"Payment Status",type:"enum",exclusive:true,options:[{value:"paid",label:"Paid",color:"#25945c"},{value:"unpaid",label:"Unpaid",color:"#f48220"}]},{key:"shipment_status",label:"Shipment Status",type:"enum",exclusive:true,options:[{value:"pending",label:"Pending",color:"#DBB316"},{value:"in-process",label:"In Process",color:"#3B82F6"},{value:"completed",label:"Completed",color:"#25945c"}]},{key:"tracking_number",label:"Tracking Number",type:"text",placeholder:"Search"}]},Jr={id:"update-shipments",route:["portal","shipment","update-shipments"],transport:"legacy-parallel",pagination:{pageParam:"page",sizeParam:"size"},search:{param:"search",label:"Shipment ID",placeholder:"Search"},date:{rangeParams:{from:"from",to:"to"},fieldParam:"date",fields:[{value:"created_at",label:"Date Created"},{value:"paid_at",label:"Date of Payment"},{value:"packaged_at",label:"Date Packaged"},{value:"shipment_processed_at",label:"Date Processed"}]},sort:{param:"order",options:[{value:"asc",label:"Ascending"},{value:"desc",label:"Descending"}]},fields:[{key:"payment_status",label:"Payment Status",type:"enum",exclusive:true,options:[{value:"paid",label:"Paid",color:"#25945c"},{value:"unpaid",label:"Unpaid",color:"#f48220"}]},{key:"shipment_status",label:"Shipment Status",type:"enum",exclusive:true,options:[{value:"pending",label:"Pending",color:"#DBB316"},{value:"in-process",label:"In Process",color:"#3B82F6"},{value:"completed",label:"Completed",color:"#25945c"}]},{key:"type",label:"Shipment Type",type:"enum",exclusive:true,options:[{value:"shipment",label:"Shipment",color:"#3B82F6"},{value:"etw_shipment",label:"ETW Shipment",color:"#8B5CF6"}]},{key:"shipment_method_id",label:"Shipment Carrier",type:"select",optionsSource:"shipmentMethods",placeholder:"Shipment Methods"},{key:"type_of_user",label:"User Type",type:"select",optionsSource:"static",options:[{value:"individual",label:"Individual"},{value:"business",label:"Business"}],placeholder:"User Type"},{key:"warehouse_id",label:"Warehouse",type:"select",optionsSource:"warehouses",placeholder:"Warehouse"},{key:"shipment_manifest_id",label:"Shipment Manifest",type:"select",optionsSource:"shipmentManifests",placeholder:"Shipment Manifest"},{key:"api_request",label:"API Request",type:"boolean",options:[{value:"1",label:"Yes"},{value:"0",label:"No"}]},{key:"is_insured",label:"Insured",type:"boolean",options:[{value:"1",label:"Yes"},{value:"0",label:"No"}]}]},eo={id:"users",route:["portal","customer","all"],transport:"legacy-parallel",pagination:{pageParam:"page",sizeParam:"size"},search:{param:"search",label:"Search",placeholder:"Search"},date:{rangeParams:{from:"from",to:"to"},fieldParam:"date",fields:[{value:"created_at",label:"Date Created"}]},sort:{param:"order",options:[{value:"asc",label:"Ascending"},{value:"desc",label:"Descending"}]},fields:[{key:"performed_action",label:"Performed Action",type:"enum",exclusive:true,options:[{value:"pending",label:"Pending",color:"#DBB316"},{value:"approved",label:"Approved",color:"#25945c"},{value:"rejected",label:"Rejected",color:"#FF001C"}]},{key:"type",label:"User Type",type:"select",optionsSource:"static",options:[{value:"individual",label:"Individual"},{value:"business",label:"Business"}],placeholder:"User Type"}]},to={id:"shipment-tracking-item-list",transport:mt.Named,pagination:{pageParam:"page",sizeParam:"size"},search:{param:"search",label:"Search",placeholder:"Search"},date:{rangeParams:{from:"from",to:"to"},fieldParam:"date",fields:[{value:"created_at",label:"Date Created"}]},fields:[{key:"claim_status",label:"Claim Status",type:"enum",exclusive:true,options:[{value:"open",label:"Open",color:"#25945c"},{value:"closed",label:"Closed",color:"#667185"},{value:"pending",label:"Pending",color:"#DBB316"}]}]},Aa={"track-shipments":Zr};function In(){return {values:{},order:"desc"}}function On(n){return n==null?In():{search:n.search,from:n.from,to:n.to,date:n.date,order:n.order,page:n.page,size:n.size,values:$({},n.values)}}function dn(n,e){let t={};if(n.search!=null&&n.search!==""&&(t[e.search?.param??"search"]=n.search),n.from&&(t[e.date?.rangeParams.from??"from"]=n.from),n.to&&(t[e.date?.rangeParams.to??"to"]=n.to),n.date&&(t[e.date?.fieldParam??"date"]=n.date),n.order&&(t[e.sort?.param??"order"]=n.order),n.page!=null&&(t[e.pagination?.pageParam??"page"]=n.page),n.size!=null&&(t[e.pagination?.sizeParam??"size"]=n.size),ln(e)===mt.Named){for(let o of e.fields){let u=n.values[o.key];u!=null&&u!==""&&(t[o.key]=u);}return t}let i=[],r=[];for(let o of e.fields){let u=n.values[o.key];u===void 0||u===""||(i.push(o.key),r.push(String(u)));}return i.length&&(t.filterColumn=i.join(","),t.filterValue=r.join(",")),t}function Di(n,e){let t=In(),i=S=>Ea(n[S]);t.search=i(e.search?.param??"search"),t.from=i(e.date?.rangeParams.from??"from"),t.to=i(e.date?.rangeParams.to??"to"),t.date=i(e.date?.fieldParam??"date"),t.order=i(e.sort?.param??"order");let r=i(e.pagination?.pageParam??"page"),o=i(e.pagination?.sizeParam??"size");if(r!=null){let S=Number(r);Number.isNaN(S)||(t.page=S);}if(o!=null){let S=Number(o);Number.isNaN(S)||(t.size=S);}if(ln(e)===mt.Named){for(let S of e.fields){let R=i(S.key);R!=null&&(t.values[S.key]=R);}return t}let u=(i("filterColumn")??"").split(",").map(S=>S.trim()).filter(Boolean),v=(i("filterValue")??"").split(",").map(S=>S.trim());return u.forEach((S,R)=>{let O=v[R];O!=null&&O!==""&&(t.values[S]=O);}),t}function Rn(n){let e=[n.search?.param??"search",n.date?.rangeParams.from??"from",n.date?.rangeParams.to??"to",n.date?.fieldParam??"date",n.sort?.param??"order",n.pagination?.pageParam??"page",n.pagination?.sizeParam??"size"];return ln(n)===mt.Named?e.push(...n.fields.map(t=>t.key)):e.push("filterColumn","filterValue"),[...new Set(e)]}function Ti(n,e){return Rn(e).some(t=>Ea(n[t])!=null)}function Ea(n){if(n==null)return;if(Array.isArray(n))return n[0]!=null&&String(n[0])!==""?String(n[0]):void 0;let e=String(n);return e===""?void 0:e}function Ai(n=false,e){let t=In();return n&&e&&(t.page=e.page,t.size=e.size),t}var cn=class{};function Ei(n,e){let t=n.getItem(e);return t===null||t===""?null:JSON.parse(t)}function Ii(n,e,t){n.setItem(e,JSON.stringify(t));}var Nt=class n extends cn{get(e){return Ei(localStorage,e)}set(e,t){Ii(localStorage,e,t);}remove(e){localStorage.removeItem(e);}clear(){localStorage.clear();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=pm$1(n)))(i||n)}})();static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var Nn=class n extends cn{get(e){return Ei(sessionStorage,e)}set(e,t){Ii(sessionStorage,e,t);}remove(e){sessionStorage.removeItem(e);}clear(){sessionStorage.clear();}static \u0275fac=(()=>{let e;return function(i){return (e||(e=pm$1(n)))(i||n)}})();static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var ft=new x("AFRICANIES_STORAGE",{providedIn:"root",factory:()=>T(Nt)});function no(){return Hn$2([Nt,{provide:ft,useExisting:Nt}])}var Oi="africanies.theme",Ri="africanies.shippingMode",Ni="africanies.modeConfig",Pn="africanies.accessToken";var Fn=new x("AFRICANIES_SDK_CONFIG");function G(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)?n:null}function St(n){return Array.isArray(n)?n:[]}function Pt(n,e){return St(n).map(e)}function cl(n){if(Array.isArray(n)||n==null)return n;let e=G(n);if(e===null)return n;let t=e.data??e.items??e.results;return Array.isArray(t)?t:t==null&&("current_page"in e||"currentPage"in e||"last_page"in e||"lastPage"in e||"per_page"in e||"perPage"in e)?[]:n}function Ft(n,e){let t=cl(n);return t==null?[]:Array.isArray(t)?t.map(e):[e(t)]}function W(n,e=0){let t=Number(n);return Number.isFinite(t)?t:e}function pe(n){if(n==null||n==="")return null;let e=Number(n);return Number.isFinite(e)?e:null}function L$1(n,e=""){return n==null?e:typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?String(n):e}function I$1(n){return n==null?null:typeof n=="string"?n:typeof n=="number"||typeof n=="boolean"?String(n):null}function Ye(n){if(typeof n=="boolean")return n;if(typeof n=="number")return n===1;let e=String(n??"").trim().toLowerCase();return e==="1"||e==="true"}function Ie$1(n){if(n==null||n==="")return null;if(typeof n=="boolean")return n;if(typeof n=="number")return n===1;if(typeof n=="string"){let e=n.trim().toLowerCase();if(e==="1"||e==="true")return true;if(e==="0"||e==="false")return false}return null}function io(n){return n==null||n===""?null:n===1||n==="1"||n===true?1:n===0||n==="0"||n===false?0:null}function Pi(n){let e=G(n);if(e===null)return false;let t=Object.keys(e);return t.length===0?false:t.every(i=>{let r=e[i];return Array.isArray(r)&&r.every(o=>typeof o=="string")})}function ro(n){let e=[];for(let[t,i]of Object.entries(n)){let r=St(i).map(o=>L$1(o).trim()).filter(o=>o.length>0);for(let o of r)e.push({field:t,message:o,code:null});}return e}function Fi(n){if(!n?.length)return null;let e=[],t=new Set;for(let i of n){let r=i.message.trim();!r||t.has(r)||(t.add(r),e.push(r));}return e.length>0?e.join(`
7
+ `):null}function ul(n){let e=G(n);return e!==null&&"success"in e&&"data"in e}function Ia(n){let e=G(n);return e===null?false:(Array.isArray(e.data)||e.data==null)&&("current_page"in e||"currentPage"in e||"last_page"in e||"lastPage"in e||"per_page"in e||"perPage"in e)}function Oa(n){let e=G(n);if(e===null)return null;let t=e.current_page??e.currentPage,i=e.per_page??e.perPage,r=e.total_items??e.totalItems??e.total,o=e.total_pages??e.totalPages??e.last_page??e.lastPage,u=e.has_next_page??e.hasNextPage,v=e.has_previous_page??e.hasPreviousPage;if(u==null){let S=e.next_page_url??e.nextPageUrl;u=S!=null&&S!=="";}if(v==null){let S=e.prev_page_url??e.prevPageUrl;v=S!=null&&S!=="";}return {current_page:W(t),per_page:W(i),total_items:W(r),total_pages:W(o),has_next_page:!!u,has_previous_page:!!v}}function pl(n){if(!Ia(n))return {data:n??null,pagination:null};let e=G(n);return e===null?{data:null,pagination:null}:{data:Array.isArray(e.data)?e.data:[],pagination:Oa(e)}}function ml(n){let e=G(n)??{};return {field:L$1(e.field)||null,message:L$1(e.message),code:L$1(e.code)||null}}function fl(n,e,t){if(Array.isArray(n)){let i=St(n).map(ml);return i.length>0?i:null}if(Pi(n)){let i=ro(G(n)??{});return i.length>0?i:null}if(!t&&Pi(e)){let i=ro(G(e)??{});return i.length>0?i:null}return null}function Vi(n){if(ul(n)){let e=G(n);if(e!==null){let t=e.success,i=typeof t=="boolean"?t:!!t,r=e.status_code??e.statusCode??null,o=Oa(e.pagination),u=e.data??null;if(o===null&&Ia(u)){let R=pl(u);u=R.data??null,o=R.pagination;}let v=fl(e.errors,u,i),S=I$1(e.message);return !i&&Pi(u)&&(u=null),{success:i,message:Fi(v)??S,data:u,errors:v,pagination:o,status_code:r==null?null:W(r)}}}return {success:true,message:null,data:n??null,errors:null,pagination:null,status_code:null}}function un(n){if(typeof n=="string"&&n.trim())return n.trim();if(n instanceof ke){let e=un(n.error);return e!=="Something went wrong."?e:n.status===0?"Network error. Check your connection.":n.status===401||n.status===403?"Authentication failed. Check your access token.":n.status>=500?"Server error. Try again in a moment.":n.message?.trim()?n.message.trim():`Request failed (${n.status})`}if(n&&typeof n=="object"&&"success"in n&&"data"in n){let e=Vi(n);return Fi(e.errors)??e.message?.trim()??"Something went wrong."}if(n&&typeof n=="object"){let e=G(n);if(e&&typeof e.message=="string"&&e.message.trim())return e.message.trim()}return n instanceof Error&&n.message.trim()?n.message.trim():"Something went wrong."}var Li=class{store=new Map;get(e){let t=this.store.get(e);return t?Date.now()>=t.expiresAt?(this.store.delete(e),null):t.value:null}set(e,t,i){this.store.set(e,{value:t,expiresAt:Date.now()+i});}clear(){this.store.clear();}};function Ra(n){return n instanceof ke?n.status===0||n.status===408||n.status===429||n.status>=500:true}var oo=new jr$1(()=>null);function ao(n){return n==="stn"||n==="sfn"?n:void 0}function Na(n,e){return (e??new Sn$1).set(oo,n)}var Vn=new x("AFRICANIES_HTTP_TOAST"),Bi=new jr$1(()=>null);function so(n){return new Sn$1().set(Bi,{success:n?.success??true,error:n?.error??true,successMessage:n?.successMessage,errorMessage:n?.errorMessage})}function Pa(n,e,t){if(e===false)return;let i=(t??"").toUpperCase()==="GET";if(i&&e==null)return;let r=i?null:hl(n),o=e?$($({},r??{}),e):r;if(!o)return;let u=o.success??true,v=o.error??true;if(!(!u&&!v))return so({success:u,error:v,successMessage:o.successMessage,errorMessage:o.errorMessage})}function hl(n){return n==null||n==="off"?null:n==="errors"?{success:false,error:true}:n==="all"?{success:true,error:true}:n}function Fa(n,e,t){let i=Pa(n,e.toast,t),r=ao(e.shippingMode);return r&&(i=Na(r,i)),i}function Va(n,e){return ao(n?.shippingMode)??e}function kt(n,e=null){let t=n.replace(/\/+$/,"");return e===null?t:`${t}/${e}`}function pn(n,e){let v=e??{},{page:t,size:i,order:r}=v,o=qp$1(v,["page","size","order"]),u={};for(let[S,R]of Object.entries(o))R==null||R===""||(u[S]=R);return n===null&&(t!==void 0&&(u.page=t),u.size=i??pt,r!==void 0&&(u.order=r)),Object.keys(u).length>0?u:void 0}function Hi(n,e){return n===null?void 0:e}function mn(n,e,t,i){if(e==null)return typeof n=="number"?null:[];if(typeof n=="number"){let r=Array.isArray(e)?e[0]:e;return r==null?null:t(r)}return i(e)}var De$1=class n{http=T(Vo$1);config=T(Fn);shippingMode=T(He);cache=new Li;get(e,t={}){return this.request("GET",e,void 0,t)}post(e,t,i={}){return this.request("POST",e,t,i)}patch(e,t,i={}){return this.request("PATCH",e,t,i)}put(e,t,i={}){return this.request("PUT",e,t,i)}delete(e,t,i={}){return this.request("DELETE",e,t,i)}getResource(e,t,i,r={}){let o=kt(e,t),u=$({mode:Va(r,this.shippingMode.mode())},r.params??{});t===null&&(i?.page!==void 0&&(u.page=i.page),u.size=i?.size??pt,i?.order!==void 0&&(u.order=i.order));let R=r,{responseMode:v}=R,S=qp$1(R,["responseMode"]);return this.get(o,U$1($({},S),{params:u}))}getResourcePage(e,t){return this.getResource(e,null,t)}getResourceAll(e){return this.getResource(e,"all")}getResourceById(e,t){return this.getResource(e,t)}clearCache(){this.cache.clear();}buildHttpContext(e,t){return Fa(this.config.httpToasts,e,t)}request(e,t,i,r){let o=r.responseMode??"wrapped",u=this.resolveUrl(t),v=e==="POST"||e==="PUT"||e==="PATCH"||e==="DELETE"&&i!==void 0&&i!==null,S=typeof FormData<"u"&&i instanceof FormData,R=this.buildHeaders(r.headers,v&&!S);S&&R.has("Content-Type")&&(R=R.delete("Content-Type"));let O=this.buildParams(r.params),U=this.buildHttpContext(r,e),ie=e==="GET"&&r.cacheTtlMs!=null?`${e} ${u}?${O.toString()}`:null;if(ie){let oe=this.cache.get(ie);if(oe!==null)return ah$1(this.unwrap(oe,o))}let ee,de=U?{headers:R,params:O,context:U}:{headers:R,params:O};switch(e){case "GET":ee=this.http.get(u,de);break;case "POST":ee=this.http.post(u,i,de);break;case "PUT":ee=this.http.put(u,i,de);break;case "PATCH":ee=this.http.patch(u,i,de);break;case "DELETE":ee=this.http.delete(u,v?U$1($({},de),{body:i}):de);break}return e==="GET"&&(ee=ee.pipe(Vh$1({count:1,delay:(oe,fi)=>Ra(oe)?Oe$2(2**(fi-1)*1e3):ch$1(()=>oe)}))),this.config.timeout!=null&&(ee=ee.pipe(wh$1({each:this.config.timeout,with:()=>ch$1(()=>new Error(`AFRICANIES API request timed out after ${this.config.timeout}ms: ${e} ${u}`))}))),ee.pipe(ve$2(oe=>Vi(oe)),el$2(oe=>{ie&&r.cacheTtlMs!=null&&this.cache.set(ie,oe,r.cacheTtlMs);}),ve$2(oe=>this.unwrap(oe,o)),ki(oe=>ch$1(()=>new Error(un(oe)))))}unwrap(e,t){return t==="raw"?e.data:e}resolveUrl(e){if(/^https?:\/\//i.test(e))return e;let t=this.config.baseUrl.replace(/\/+$/,""),i=e.startsWith("/")?e:`/${e}`;return `${t}${i}`}buildHeaders(e,t=false){let i=new De$2($($({Accept:"application/json"},this.config.defaultHeaders??{}),e??{}));return t&&!i.has("Content-Type")&&(i=i.set("Content-Type","application/json")),i}buildParams(e){let t=new ye;if(!e)return t;for(let[i,r]of Object.entries(e))r==null||r===""||(t=t.set(i,String(r)));return t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var gl="sfn",He=class n{storage=T(Nn);injector=T(fe$1);_mode=Co$2(this.readInitialMode());modeChangeGuard=null;mode=this._mode.asReadonly();registerModeChangeGuard(e){this.modeChangeGuard=e;}requestModeChange(e){if(e===this._mode())return ah$1(false);let t=this._mode(),i=this.modeChangeGuard;return (i?i(e,t):ah$1(true)).pipe(mt$1(1),el$2(o=>{o&&this.applyMode(e);}),ve$2(o=>!!o))}setMode(e){e!==this._mode()&&this.applyMode(e);}applyMode(e){this._mode.set(e),this.storage.set(Ri,e),this.injector.get(De$1).clearCache();}readInitialMode(){let e=this.storage.get(Ri);return e==="stn"||e==="sfn"?e:gl}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var lo="/public/mode/config",Ba={dimension_unit:"cm",mass_unit:"KG",currency:"NGN",currency_symbol:""};function _l(n){return n==="inches"?"inches":"cm"}function yl(n){return n==="LBS"?"LBS":"KG"}function vl(n){return n==="USD"?"USD":"NGN"}function bl(n){let e=G(n)??{};return {dimension_unit:_l(e.dimension_unit??e.dimensionUnit),mass_unit:yl(e.mass_unit??e.massUnit),currency:vl(e.currency),currency_symbol:L$1(e.currency_symbol??e.currencySymbol)}}function La(n){let e=G(n)??{},t={};for(let[i,r]of Object.entries(e))t[i]=bl(r);return t}function fn(n,e){return n[e]??n.default??$({},Ba)}function co(n){let e=G(n)??{},t=La(e.sfn),i=La(e.stn),r={default:fn(t,"default"),ng:fn(t,"ng")},o={default:fn(i,"default"),us:fn(i,"us"),cn:fn(i,"cn"),gb:fn(i,"gb")};return {sfn:r,stn:o}}function Ha(n){if(n===null||typeof n!="object")return false;let e=n,t=e.sfn,i=e.stn;if(t===null||typeof t!="object"||Array.isArray(t)||i===null||typeof i!="object"||Array.isArray(i))return false;let r=t,o=i;return r.default!=null&&typeof r.default=="object"&&o.default!=null&&typeof o.default=="object"}function uo(n,e,t){let r=(e==="sfn"?n?.sfn:n?.stn)??{};if(t!=null&&t!==""){let o=L$1(t).toLowerCase();if(o!=="default"){let u=r[o];if(u!=null)return u}}return r.default??$({},Ba)}var zi="/auth/forgot/password";var Ui=class n{api=T(De$1);forgot(e){return this.api.post(zi,{email:L$1(e).trim()})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var hn=class n{storage=T(ft);api=T(De$1);_token=Co$2(this.readInitialToken());token=this._token.asReadonly();get(){return this._token()}set(e){let t=L$1(e).trim();if(t===""){this.clear();return}this._token.set(t),this.storage.set(Pn,t);}clear(){this._token.set(null),this.storage.remove(Pn),this.api.clearCache();}readInitialToken(){let e=this.storage.get(Pn);if(typeof e!="string")return null;let t=e.trim();return t===""?null:t}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};function za(n){return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(L$1(n).trim())}var Ua="/public/country/read";function po(n){let e=G(n)??{};return {name:L$1(e.name),state_code:L$1(e.state_code??e.stateCode)}}function ji(n){let e=G(n)??{};return {id:W(e.id),name:L$1(e.name),iso3:L$1(e.iso3),iso2:L$1(e.iso2),states:Pt(e.states,po)}}var ja="/file/read";var $a="/public/document/read";var Wa="/public/plan/read";var Ga="/public/service/read";var qa="/currency/read",Ya="/currency/create",Ka="/currency/update",Qa="/currency/delete";var Xa="/payment_method/read",Za="/payment_method/update";var $i="/shipment_method/read";function Ul(n){return typeof n=="boolean"?n:L$1(n).trim().toLowerCase()==="yes"}function Ja(n){return n==="stn"?"stn":"sfn"}function mo(n){let e=G(n);return e===null?null:{id:W(e.id),name:L$1(e.name),type:L$1(e.type),active:Ye(e.active)}}function fo(n){let e=G(n)??{};return {id:W(e.id),zone_id:W(e.zone_id??e.zoneId),shipment_method_id:W(e.shipment_method_id??e.shipmentMethodId),active:Ye(e.active),mode:Ja(e.mode),zone:mo(e.zone)}}function ho(n){let e=G(n);return e===null?{data:[],current_page:0,per_page:0,total:0,last_page:0}:{data:Pt(e.data??e.items,fo),current_page:W(e.current_page??e.currentPage),per_page:W(e.per_page??e.perPage),total:W(e.total),last_page:W(e.last_page??e.lastPage)}}function Ln(n){let e=G(n)??{};return {id:W(e.id),name:L$1(e.name),slug:L$1(e.slug),model:L$1(e.model),min_delivery_business_day:W(e.min_delivery_business_day??e.minDeliveryBusinessDay),max_delivery_business_day:W(e.max_delivery_business_day??e.maxDeliveryBusinessDay),notes:L$1(e.notes),blacklisted_words:I$1(e.blacklisted_words??e.blacklistedWords),position:W(e.position),min_weight:W(e.min_weight??e.minWeight),max_weight:W(e.max_weight??e.maxWeight),max_length:W(e.max_length??e.maxLength),max_width:W(e.max_width??e.maxWidth),max_height:W(e.max_height??e.maxHeight),markup:W(e.markup),surcharge:W(e.surcharge),insurance_benchmark:W(e.insurance_benchmark??e.insuranceBenchmark),insurance:W(e.insurance),clearing_handling:W(e.clearing_handling??e.clearingHandling),destination:L$1(e.destination),sea_only:Ul(e.sea_only??e.seaOnly),currency:L$1(e.currency),type:L$1(e.type),active:Ye(e.active),multiple_rates:Ye(e.multiple_rates??e.multipleRates),first_shipment_discount:W(e.first_shipment_discount??e.firstShipmentDiscount),discount_type:L$1(e.discount_type??e.discountType),discount_active:Ye(e.discount_active??e.discountActive),mode:Ja(e.mode),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),markdown:W(e.markdown),zone_values:ho(e.zone_values??e.zoneValues)}}function Wi(n){return Ft(n,Ln)}var jl=5*6e4,Bn=class n{api=T(De$1);read(e=null,t){return this.api.get(kt($i,e),{params:pn(e,t),cacheTtlMs:Hi(e,jl)}).pipe(ve$2(i=>U$1($({},i),{data:mn(e,i.data,Ln,Wi)})))}readPage(e){return this.read(null,e)}readAll(e){return this.read("all",e)}readById(e,t){return this.read(e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};function Gi(n){if(n==null)return null;if(typeof n=="string"||typeof n=="boolean")return n;if(typeof n=="number")return Number.isFinite(n)?n:null;if(Array.isArray(n))return n.map(i=>Gi(i)??null);let e=G(n);if(e===null)return null;let t={};for(let[i,r]of Object.entries(e))t[i]=Gi(r)??null;return t}var qi="/warehouse/read";function go(n){let e=G(n);return e===null?null:{id:W(e.id),name:L$1(e.name),state_code:L$1(e.state_code??e.stateCode),country:L$1(e.country),country_code:L$1(e.country_code??e.countryCode)}}function _o(n){return n==null?null:ji(n)}function Hn(n){let e=G(n)??{};return {id:W(e.id),partner_id:pe(e.partner_id??e.partnerId),name:L$1(e.name),phone:L$1(e.phone),email:L$1(e.email),country:_o(e.country),api_enabled:Ye(e.api_enabled??e.apiEnabled),state:go(e.state),city:L$1(e.city),address:L$1(e.address),longitude:W(e.longitude),latitude:W(e.latitude),zip_code:L$1(e.zip_code??e.zipCode),usage:W(e.usage),active:Ye(e.active),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),storage_charge:W(e.storage_charge??e.storageCharge),storage_period:W(e.storage_period??e.storagePeriod),delivery_charge:W(e.delivery_charge??e.deliveryCharge),delivery_count:W(e.delivery_count??e.deliveryCount),currency:L$1(e.currency),etw_shipment_available:Ye(e.etw_shipment_available??e.etwShipmentAvailable),local:Ye(e.local),no_shippo:Ye(e.no_shippo??e.noShippo),partner:Gi(e.partner)}}function Yi(n){return Ft(n,Hn)}var $l=5*6e4,zn=class n{api=T(De$1);read(e=null,t){return this.api.get(kt(qi,e),{toast:false,params:pn(e,t),cacheTtlMs:Hi(e,$l)}).pipe(ve$2(i=>U$1($({},i),{data:mn(e,i.data,Hn,Yi)})))}readPage(e){return this.read(null,e)}readAll(e){return this.read("all",e)}readById(e,t){return this.read(e,t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var es="/zone/read/records";var Ki="/user",Qi="/user/change/password",Xi="/user/logout-from-all-sessions",ts=new Set(["business","individual"]),ql=new Set(["instant","consolidation"]),ns=new Set(["monthly","quarterly","biannually","annually"]),Yl=new Set(["App\\Models\\Customer","App\\Models\\Admin"]);function gn(n,e){return typeof n!="string"?null:e.has(n)?n:null}function yo(n){let e=G(n);return e===null?null:{name:I$1(e.name),state_code:I$1(e.state_code??e.stateCode)}}function vo(n){let e=G(n);if(e===null)return null;let t=Array.isArray(e.states)?Pt(e.states,yo).filter(i=>i!==null):null;return {id:pe(e.id),name:I$1(e.name),iso3:I$1(e.iso3),iso2:I$1(e.iso2),states:t}}function bo(n){if(n==null)return null;if(typeof n=="string")return n;let e=G(n);return e!==null?I$1(e.name??e.state):null}function Co(n){let e=G(n);return e===null?null:{id:pe(e.id),plan_id:pe(e.plan_id??e.planId),company_service_id:pe(e.company_service_id??e.companyServiceId),name:I$1(e.name),metrics:I$1(e.metrics),volume:pe(e.volume),discount:I$1(e.discount),model:I$1(e.model),monthly:I$1(e.monthly),quarterly:I$1(e.quarterly),biannually:I$1(e.biannually),annually:I$1(e.annually),active:Ie$1(e.active),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt)}}function xo(n){let e=G(n);if(e===null)return null;let t=Array.isArray(e.packages)?Pt(e.packages,Co).filter(i=>i!==null):null;return {id:pe(e.id),name:I$1(e.name),active:Ie$1(e.active),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),packages:t}}function wo(n){let e=G(n);return e===null?null:{id:pe(e.id),user_id:pe(e.user_id??e.userId),plan_id:pe(e.plan_id??e.planId),account_id:pe(e.account_id??e.accountId),reference:I$1(e.reference),process_url:I$1(e.process_url??e.processUrl),reference_salt:I$1(e.reference_salt??e.referenceSalt),amount:I$1(e.amount),currency:I$1(e.currency),payment_amount:I$1(e.payment_amount??e.paymentAmount),payment_currency:I$1(e.payment_currency??e.paymentCurrency),coupon_id:pe(e.coupon_id??e.couponId),coupon_discount:I$1(e.coupon_discount??e.couponDiscount),coupon_amount:I$1(e.coupon_amount??e.couponAmount),payment_payload:I$1(e.payment_payload??e.paymentPayload),plan_type:gn(e.plan_type??e.planType,ns),used:Ie$1(e.used),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt)}}function So(n){let e=G(n);return e===null?null:{id:pe(e.id),user_id:pe(e.user_id??e.userId),plan_id:pe(e.plan_id??e.planId),name:I$1(e.name),account_email:I$1(e.account_email??e.accountEmail),plan_type:gn(e.plan_type??e.planType,ns),first_payment:Ie$1(e.first_payment??e.firstPayment),is_whitelisted:Ie$1(e.is_whitelisted??e.isWhitelisted),no_state_validation:Ie$1(e.no_state_validation??e.noStateValidation),show_waybill:Ie$1(e.show_waybill??e.showWaybill),notify_api_shipment:Ie$1(e.notify_api_shipment??e.notifyApiShipment),active:Ie$1(e.active),expires_at:I$1(e.expires_at??e.expiresAt),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),type:gn(e.type,ts),days_left:pe(e.days_left??e.daysLeft),plan:xo(e.plan),subscription:wo(e.subscription)}}function ko(n){let e=G(n);return e===null?null:{id:pe(e.id),user_id:pe(e.user_id??e.userId),manager_id:pe(e.manager_id??e.managerId),account_id:pe(e.account_id??e.accountId),name:I$1(e.name),email:I$1(e.email),phone:I$1(e.phone),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),deleted_at:I$1(e.deleted_at??e.deletedAt)}}function Zi(n){let e=G(n)??{};return {id:pe(e.id),central_id:I$1(e.central_id??e.centralId),name:I$1(e.name),first_name:I$1(e.first_name??e.firstName),middle_name:I$1(e.middle_name??e.middleName),last_name:I$1(e.last_name??e.lastName),email:I$1(e.email),phone:I$1(e.phone),unit_number:I$1(e.unit_number??e.unitNumber),referral_code:I$1(e.referral_code??e.referralCode),old_unit_number:I$1(e.old_unit_number??e.oldUnitNumber),account_email:I$1(e.account_email??e.accountEmail),two_factor:Ie$1(e.two_factor??e.twoFactor),default_pin:Ie$1(e.default_pin??e.defaultPin),model:gn(e.model,Yl),country:vo(e.country),state:bo(e.state),email_verified_at:I$1(e.email_verified_at??e.emailVerifiedAt),phone_verified_at:I$1(e.phone_verified_at??e.phoneVerifiedAt),kyc_verified_at:I$1(e.kyc_verified_at??e.kycVerifiedAt),passport_verified_at:I$1(e.passport_verified_at??e.passportVerifiedAt),suspended_at:I$1(e.suspended_at??e.suspendedAt),deactivated_at:I$1(e.deactivated_at??e.deactivatedAt),active:Ie$1(e.active),default_password:Ie$1(e.default_password??e.defaultPassword),type:gn(e.type,ts),deleted_at:I$1(e.deleted_at??e.deletedAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt),last_login_at:I$1(e.last_login_at??e.lastLoginAt),socialite_signup:io(e.socialite_signup??e.socialiteSignup),form_signup:io(e.form_signup??e.formSignup),main_region:I$1(e.main_region??e.mainRegion),shipping_type:gn(e.shipping_type??e.shippingType,ql),accounts:Array.isArray(e.accounts)?e.accounts:null,business_account:So(e.business_account??e.businessAccount),account_manager:ko(e.account_manager??e.accountManager)}}var Ji=class n{api=T(De$1);me(){return this.api.get(Ki).pipe(ve$2(e=>U$1($({},e),{data:e.data==null?null:Zi(e.data)})))}changePassword(e){return this.api.post(Qi,{current_password:L$1(e?.current_password),password:L$1(e?.password),password_confirmation:L$1(e?.password_confirmation)})}logoutFromAllSessions(){return this.api.post(Xi,{})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var Un="/user/notifications/read",er="/user/notifications/update";function tr(n){let e=G(n);if(typeof n=="string"&&n.trim())try{e=G(JSON.parse(n));}catch{e=null;}let t=e??{},i=t.user_id??t.userId;return {user_id:i==null?null:W(i),title:L$1(t.title),body:I$1(t.body),link:I$1(t.link),image:I$1(t.image),external_link:Ie$1(t.external_link??t.externalLink)}}function Vt(n){let e=G(n)??{};return {id:L$1(e.id),type:L$1(e.type),notifiable_type:L$1(e.notifiable_type??e.notifiableType),notifiable_id:W(e.notifiable_id??e.notifiableId),data:tr(e.data),read_at:I$1(e.read_at??e.readAt),created_at:I$1(e.created_at??e.createdAt),updated_at:I$1(e.updated_at??e.updatedAt)}}function nr(n){return Ft(n,Vt).filter(e=>e.id!=="")}function is(n){let e=n??Vt(null),t=e.data??tr(null);return {id:L$1(e.id),title:L$1(t.title),body:t.body??void 0,timestamp:e.created_at??void 0,read:e.read_at!=null&&e.read_at!=="",link:t.link??void 0,external_link:t.external_link??void 0,image:t.image}}var ir=class n{api=T(De$1);read(e=null,t){let i=e===null?U$1($({},t),{size:t?.size??En}):t;return this.api.get(kt(Un,e),{params:pn(e,i)}).pipe(ve$2(r=>U$1($({},r),{data:mn(e,r?.data,Vt,nr)})),ki(()=>ah$1({success:false,message:null,data:[],errors:null,pagination:null,status_code:null})))}readPage(e){return this.read(null,e)}readAll(e){return this.read("all",e)}readOne(e){let t=L$1(e).trim();return this.api.get(`${Un}/${encodeURIComponent(t)}`).pipe(ve$2(i=>U$1($({},i),{data:i.data==null?null:Vt(Array.isArray(i.data)?i.data[0]:i.data)})))}markRead(e){let t=e?{id:L$1(e)}:{};return this.api.put(er,t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var Mo={stn:"shiptonaija",sfn:"shipfromnaija"};function rr(n,e){let t=L$1(n).trim();if(!t)return t;try{let i=new URL(t);return i.searchParams.set("shipment_app",Mo[e]),i.hostname=Xl(i.hostname,e),i.toString()}catch{return Zl(t,e)}}function Xl(n,e){return e==="stn"?n.replace(/-export/i,"-import"):n.replace(/-import/i,"-export")}function Zl(n,e){let t=n.replace(/shipment_app=(?:shipfromnaija|shiptonaija)/gi,`shipment_app=${Mo[e]}`);if(!/shipment_app=/i.test(t)){let i=t.includes("?")?"&":"?";t=`${t}${i}shipment_app=${Mo[e]}`;}return e==="stn"?t.replace(/-export/gi,"-import"):t.replace(/-import/gi,"-export")}var rs="/product/read";async function or(n){if(typeof document>"u")return false;try{if(typeof navigator<"u"&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(n),!0}catch{}try{let e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select();let t=document.execCommand("copy");return document.body.removeChild(e),t}catch{return false}}var ar=class n{api=T(De$1);storage=T(ft);shippingMode=T(He);_config=Co$2(null);_loading=Co$2(false);config=this._config.asReadonly();loading=this._loading.asReadonly();constructor(){this.hydrateFromStorage();}loadConfig(){return this._loading.set(true),this.api.get(lo).pipe(el$2(e=>{e.success&&e.data!==null&&this.saveRecord(co(e.data));}),al$2(()=>{this._loading.set(false);}))}getRegionConfig(e,t){let i=this._config();if(i===null)return null;let r=t??this.shippingMode.mode();return uo(i,r,e)}saveRecord(e){this._config.set(e),this.storage.set(Ni,e);}hydrateFromStorage(){let e=this.storage.get(Ni);Ha(e)&&this._config.set(e);}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};function os(){return Hn$2([ME(()=>{let n=T(ar);return lh$1(n.loadConfig().pipe(ki(()=>ah$1(null))))})])}function rd(n){return Hn$2([{provide:Fn,useValue:n},no(),...n.loadModeConfig!==false?[os()]:[]])}var as=(n,e)=>{let i=n.context.get(oo)??T(He).mode();return e(n.clone({setHeaders:{"x-shipment-mode":i}}))};var ss=(n,e)=>{let t=T(hn).get();return e(t===null||t===""?n:n.clone({setHeaders:{Authorization:`Bearer ${t}`}}))};var ls=(n,e)=>{let t=n.context.get(Bi);if(!t)return e(n);let i=T(Vn,{optional:true});return i?e(n).pipe(el$2(()=>{t.success&&i.success(t.successMessage??"Done");}),ki(r=>(t.error&&i.error(t.errorMessage??od(r)),ch$1(()=>r)))):e(n)};function od(n){return un(n)}function ad(n,...e){let t=[];return yu$1(Du$1([as,ss,ls,...t]),...e)}function Do(n){return St(n?.fields).filter(e=>e.type==="select"&&e.optionsSource!=null&&e.optionsSource!=="static")}function To(n){return n?.length?n.map(e=>({value:String(e.id),label:e.name})):[]}function Ao(n){return n?.length?n.map(e=>({value:String(e.id),label:e.name})):[]}var ds=new Set(["warehouses","shipmentMethods"]),_n=class n{warehouses=T(zn);shipmentMethods=T(Bn);resolveField(e){return e.type!=="select"||e.optionsSource==null||e.optionsSource==="static"?ah$1(this.staticFieldOptions(e)):ds.has(e.optionsSource)?this.fetchSource(e.optionsSource):ah$1([])}resolve(e){let t=Do(e);if(t.length===0)return ah$1({});let i=new Set,r={};for(let u of t){let v=u.optionsSource;!ds.has(v)||i.has(v)||(i.add(v),r[v]=this.fetchSource(v).pipe(ve$2(S=>{let R={};for(let O of t)O.optionsSource===v&&(R[O.key]=S);return R})));}let o=Object.keys(r);return o.length===0?ah$1({}):Rh$1(o.reduce((u,v)=>(u[v]=r[v],u),{})).pipe(ve$2(u=>o.reduce((v,S)=>(Object.assign(v,u[S]),v),{})))}staticFieldOptions(e){return (e.options??[]).map(t=>({value:t.value,label:t.label}))}fetchSource(e){switch(e){case "warehouses":return this.warehouses.readAll().pipe(ve$2(t=>t.success?To(t.data):[]));case "shipmentMethods":return this.shipmentMethods.readAll().pipe(ve$2(t=>t.success?Ao(t.data):[]));default:return ah$1([])}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var Eo=new x("AFRICANIES_MODAL_SERVICE"),Io=new x("AFRICANIES_DRAWER_SERVICE");new x("AFRICANIES_OVERLAY_ROUTE_CONFIGS");var re=class n{shippingMode=T(He);classes=QI(()=>this.shippingMode.mode()==="sfn"?{text:"text-export",bg:"bg-export",bgSubtle:"bg-export-subtle",border:"border-export",primary:"bg-export text-white border-transparent hover:bg-export-light",ghostPrimary:"bg-transparent text-export border-transparent hover:bg-export-subtle dark:hover:bg-export/15",soft:"bg-export-subtle dark:bg-export/15",softHover:"hover:bg-export-subtle dark:hover:bg-export/15"}:{text:"text-import",bg:"bg-import",bgSubtle:"bg-import-subtle",border:"border-import",primary:"bg-import text-white border-transparent hover:bg-import-light",ghostPrimary:"bg-transparent text-import border-transparent hover:bg-import-subtle dark:hover:bg-import/15",soft:"bg-import-subtle dark:bg-import/15",softHover:"hover:bg-import-subtle dark:hover:bg-import/15"});static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var jn=class n{storage=T(ft);document=T(qn$2);theme=Co$2(this.resolveInitialTheme());constructor(){this.applyToDocument(this.theme());}setTheme(e){this.theme.set(e),this.applyToDocument(e);try{this.storage.set(Oi,e);}catch{}}toggle(){let e=this.theme()==="light"?"dark":"light";return this.setTheme(e),e}resolveInitialTheme(){try{let e=this.storage.get(Oi);if(e==="light"||e==="dark")return e}catch{}return this.prefersDark()?"dark":"light"}prefersDark(){return !!this.document.defaultView?.matchMedia?.("(prefers-color-scheme: dark)").matches}applyToDocument(e){let t=this.document.documentElement;e==="dark"?t.classList.add("dark"):t.classList.remove("dark"),t.style.colorScheme=e;}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var ld=["*"];function dd(n,e){if(n&1&&(ei$2(0,"span",1),Zf$1(1,"africanies-icon",2),gc$2()),n&2){let t=XE();Qy(),Qf$1("size",t.spinnerSize());}}var Z=class n{modeColor=T(re);variant=TP("primary");size=TP("md");disabled=TP(false,{transform:RP});loading=TP(false);inactive=QI(()=>this.disabled()||this.loading());spinnerSize=QI(()=>{let e=this.size();return e==="sm"?14:e==="lg"?18:16});hostClass=QI(()=>{let e="relative inline-flex items-center justify-center gap-2 box-border font-sans font-medium rounded-md border transition-colors cursor-pointer focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink disabled:opacity-50 disabled:cursor-not-allowed aria-disabled:opacity-50 aria-disabled:cursor-not-allowed",t={sm:"text-body-sm px-2.5 py-0 h-8",md:"text-body px-3.5 py-0 h-10",lg:"text-body-lg px-4 py-0 h-12"},i=this.variant(),r;return i==="primary"?r=this.modeColor.classes().primary:i==="ghost-primary"?r=this.modeColor.classes().ghostPrimary:i==="secondary"?r="bg-white dark:bg-ink-950 text-ink dark:text-white border-border dark:border-white/15 hover:bg-background-welcome dark:hover:bg-white/10":i==="ghost"?r="bg-transparent text-ink dark:text-white border-transparent hover:bg-background-welcome dark:hover:bg-white/10":i==="ghost-danger"?r="bg-transparent text-danger border-transparent hover:bg-danger-subtle dark:hover:bg-danger/10":i==="underline"?r="bg-transparent text-ink dark:text-white border-transparent underline underline-offset-2 hover:opacity-80 !px-0 !h-auto !min-h-0":r="bg-danger text-white border-transparent hover:bg-danger-dark",`${e} ${t[this.size()]} ${r}`});blockWhenDisabled(e){this.inactive()&&(e.preventDefault(),e.stopPropagation());}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["button","africanies-button",""],["a","africanies-button",""]],hostVars:6,hostBindings:function(t,i){t&1&&tp$1("click",function(o){return i.blockWhenDisabled(o)}),t&2&&(zf$1("aria-disabled",i.inactive()?true:null)("disabled",i.inactive()?true:null)("aria-busy",i.loading()?true:null)("tabindex",i.inactive()?-1:null),mI(i.hostClass()));},inputs:{variant:[1,"variant"],size:[1,"size"],disabled:[1,"disabled"],loading:[1,"loading"]},ngContentSelectors:ld,decls:3,vars:4,consts:[[1,"inline-flex","items-center","justify-center","gap-2"],["aria-hidden","true",1,"pointer-events-none","absolute","inset-0","inline-flex","items-center","justify-center"],["name","spinner",1,"animate-spin",3,"size"]],template:function(t,i){t&1&&(tI(),ei$2(0,"span",0),nI(1),gc$2(),LE(2,dd,2,1,"span",1)),t&2&&(lp$1("invisible",i.loading()),zf$1("aria-hidden",i.loading()?true:null),Qy(2),PE(i.loading()?2:-1));},dependencies:[g],encapsulation:2})};var Oo;try{Oo=typeof Intl<"u"&&Intl.v8BreakIterator;}catch{Oo=false;}var Lt=(()=>{class n{_platformId=T(Ng$1);isBrowser=this._platformId?kd$1(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Oo)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();function sr(n){if(n.composedPath)try{return n.composedPath()[0]}catch{}return n.target}function Ro(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var lr=new WeakMap,No=(()=>{class n{_appRef;_injector=T(fe$1);_environmentInjector=T(ee$1);load(t){let i=this._appRef=this._appRef||this._injector.get(yi$1),r=lr.get(i);r||(r={loaders:new Set,refs:[]},lr.set(i,r),i.onDestroy(()=>{lr.get(i)?.refs.forEach(o=>o.destroy()),lr.delete(i);})),r.loaders.has(t)||(r.loaders.add(t),r.refs.push(LP(t,{environmentInjector:this._environmentInjector})));}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();function xe$1(n){return n==null?"":typeof n=="string"?n:`${n}px`}function Po(n){return Array.isArray(n)?n:[n]}function cs(n){return n instanceof cr$1?n.nativeElement:n}var cd=new x("cdk-dir-doc",{providedIn:"root",factory:()=>T(qn$2)}),ud=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function pd(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?ud.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Fo=(()=>{class n{get value(){return this.valueSignal()}valueSignal=Co$2("ltr");change=new Fe$1;constructor(){let t=T(cd,{optional:true});if(t){let i=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(pd(i||r||"ltr"));}}ngOnDestroy(){this.change.complete();}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();var Bt;function us(){if(Bt==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Bt=false,Bt;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)Bt=true;else {let n=Element.prototype.scrollTo;n?Bt=!/\{\s*\[native code\]\s*\}/.test(n.toString()):Bt=false;}}return Bt}var gd=20,Vo=(()=>{class n{_ngZone=T(we$1);_platform=T(Lt);_renderer=T(rr$1).createRenderer(null,null);_cleanupGlobalListener;_scrolled=new ue$1;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)));}deregister(t){let i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t));}scrolled(t=gd){return this._platform.isBrowser?new _(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=t>0?this._scrolled.pipe(kh$1(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0);}}):ah$1()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete();}ancestorScrolled(t,i){let r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Pr$2(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){let i=[];return this.scrollContainers.forEach((r,o)=>{this._targetContainsElement(o,t)&&i.push(o);}),i}_targetContainsElement(t,i){let r=cs(i),o=t.getElementRef().nativeElement;do if(r==o)return true;while(r=r.parentElement);return false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();var _d=20,$n=(()=>{class n{_platform=T(Lt);_listeners;_viewportSize=null;_change=new ue$1;_document=T(qn$2);constructor(){let t=T(we$1),i=T(rr$1).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)];}this.change().subscribe(()=>this._viewportSize=null);});}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete();}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return {top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return {top:0,left:0};let t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect(),u=-o.top||t.body?.scrollTop||i.scrollY||r.scrollTop||0,v=-o.left||t.body?.scrollLeft||i.scrollX||r.scrollLeft||0;return {top:u,left:v}}change(t=_d){return t>0?this._change.pipe(kh$1(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0};}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();var ps=new Map,dr=class n{_appId=T(hu$2);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(e,t=false){this._appId!=="ng"&&(e+=this._appId);let i=ps.get(e);return i===void 0?i=0:i++,ps.set(e,i),`${e}${t?n._infix+"-":""}${i}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})};var Wn=class{_attachedHost=null;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach());}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e;}},Ht=class extends Wn{component;viewContainerRef;injector;projectableNodes;bindings;directives;constructor(e,t,i,r,o,u){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.projectableNodes=r,this.bindings=o||null,this.directives=u||null;}},Gn=class extends Wn{templateRef;viewContainerRef;context;injector;constructor(e,t,i,r){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i,this.injector=r;}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},Lo=class extends Wn{element;constructor(e){super(),this.element=e instanceof cr$1?e.nativeElement:e;}},Bo=class{_attachedPortal=null;_disposeFn=null;_isDisposed=false;hasAttached(){return !!this._attachedPortal}attach(e){if(e instanceof Ht)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Gn)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof Lo)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn();}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=true;}setDisposeFn(e){this._disposeFn=e;}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null);}},cr=class extends Bo{outletElement;_appRef;_defaultInjector;constructor(e,t,i){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=i;}attachComponentPortal(e){let t;if(e.viewContainerRef){let i=e.injector||e.viewContainerRef.injector,r=i.get(yn$2,null,{optional:true})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),this.setDisposeFn(()=>t.destroy());}else {let i=this._appRef,r=e.injector||this._defaultInjector||fe$1.NULL,o=r.get(ee$1,i.injector);t=LP(e.component,{elementInjector:r,environmentInjector:o,projectableNodes:e.projectableNodes||void 0,bindings:e.bindings||void 0,directives:e.directives||void 0}),i.attachView(t.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(t.hostView),t.destroy();});}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);r!==-1&&t.remove(r);}),this._attachedPortal=e,i}attachDomPortal=e=>{let t=e.element;t.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(i,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(t,i);});};dispose(){super.dispose(),this.outletElement.remove();}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};function ms(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}var fs=us();function Cs(n){return new ur(n.get($n),n.get(qn$2))}var ur=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=false;_document;constructor(e,t){this._viewportRuler=e,this._document=t;}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=xe$1(-this._previousScrollPosition.left),e.style.top=xe$1(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=true;}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,i=e.style,r=t.style,o=i.scrollBehavior||"",u=r.scrollBehavior||"";this._isEnabled=false,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),fs&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),fs&&(i.scrollBehavior=o,r.scrollBehavior=u);}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return false;let t=this._document.documentElement,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}};function xs(n,e){return new pr(n.get(Vo),n.get(we$1),n.get($n),e)}var pr=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Pr$2(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition();})):this._scrollSubscription=e.subscribe(this._detach);}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach());}};var qn=class{enable(){}disable(){}attach(){}};function Ho(n,e){return e.some(t=>{let i=n.bottom<t.top,r=n.top>t.bottom,o=n.right<t.left,u=n.left>t.right;return i||r||o||u})}function hs(n,e){return e.some(t=>{let i=n.top<t.top,r=n.bottom>t.bottom,o=n.left<t.left,u=n.right>t.right;return i||r||o||u})}function Uo(n,e){return new mr(n.get(Vo),n.get($n),n.get(we$1),e)}var mr=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r;}attach(e){this._overlayRef,this._overlayRef=e;}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Ho(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()));}});}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null);}detach(){this.disable(),this._overlayRef=null;}},ws=(()=>{class n{_injector=T(fe$1);noop=()=>new qn;close=t=>xs(this._injector,t);block=()=>Cs(this._injector);reposition=t=>Uo(this._injector,t);static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),Yn=class{positionStrategy;scrollStrategy=new qn;panelClass="";hasBackdrop=false;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=false;usePopover;eventPredicate;constructor(e){if(e){let t=Object.keys(e);for(let i of t)e[i]!==void 0&&(this[i]=e[i]);}}};var fr=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t;}};var Ss=(()=>{class n{_attachedOverlays=[];_document=T(qn$2);_isAttached=false;ngOnDestroy(){this.detach();}add(t){this.remove(t),this._attachedOverlays.push(t);}remove(t){let i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach();}canReceiveEvent(t,i,r){return r.observers.length<1?false:t.eventPredicate?t.eventPredicate(i):true}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),ks=(()=>{class n extends Ss{_ngZone=T(we$1);_renderer=T(rr$1).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener);}),this._isAttached=true);}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=false);}_keydownListener=t=>{let i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--){let o=i[r];if(this.canReceiveEvent(o,t,o._keydownEvents)){this._ngZone.run(()=>o._keydownEvents.next(t));break}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),Ms=(()=>{class n extends Ss{_platform=T(Lt);_ngZone=T(we$1);_renderer=T(rr$1).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=false;_pointerDownEventTarget=null;_cleanups;add(t){if(super.add(t),!this._isAttached){let i=this._document.body,r={capture:true},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=true),this._isAttached=true;}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=false),this._isAttached=false);}_pointerDownListener=t=>{this._pointerDownEventTarget=sr(t);};_clickListener=t=>{let i=sr(t),r=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let u=o.length-1;u>-1;u--){let v=o[u],S=v._outsidePointerEvents;if(!(!v.hasAttached()||!this.canReceiveEvent(v,t,S))){if(gs(v.overlayElement,i)||gs(v.overlayElement,r))break;this._ngZone?this._ngZone.run(()=>S.next(t)):S.next(t);}}};static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})();function gs(n,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,i=e;for(;i;){if(i===n)return true;i=t&&i instanceof ShadowRoot?i.host:i.parentNode;}return false}var Ds=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=IE({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper {
8
+ pointer-events: none;
9
+ top: 0;
10
+ left: 0;
11
+ height: 100%;
12
+ width: 100%;
13
+ }
14
+
15
+ .cdk-overlay-container {
16
+ position: fixed;
17
+ }
18
+ @layer cdk-overlay {
19
+ .cdk-overlay-container {
20
+ z-index: 1000;
21
+ }
22
+ }
23
+ .cdk-overlay-container:empty {
24
+ display: none;
25
+ }
26
+
27
+ .cdk-global-overlay-wrapper {
28
+ display: flex;
29
+ position: absolute;
30
+ }
31
+ @layer cdk-overlay {
32
+ .cdk-global-overlay-wrapper {
33
+ z-index: 1000;
34
+ }
35
+ }
36
+
37
+ .cdk-overlay-pane {
38
+ position: absolute;
39
+ pointer-events: auto;
40
+ box-sizing: border-box;
41
+ display: flex;
42
+ max-width: 100%;
43
+ max-height: 100%;
44
+ }
45
+ @layer cdk-overlay {
46
+ .cdk-overlay-pane {
47
+ z-index: 1000;
48
+ }
49
+ }
50
+
51
+ .cdk-overlay-backdrop {
52
+ position: absolute;
53
+ top: 0;
54
+ bottom: 0;
55
+ left: 0;
56
+ right: 0;
57
+ pointer-events: auto;
58
+ -webkit-tap-highlight-color: transparent;
59
+ opacity: 0;
60
+ touch-action: manipulation;
61
+ }
62
+ @layer cdk-overlay {
63
+ .cdk-overlay-backdrop {
64
+ z-index: 1000;
65
+ transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
66
+ }
67
+ }
68
+ @media (prefers-reduced-motion) {
69
+ .cdk-overlay-backdrop {
70
+ transition-duration: 1ms;
71
+ }
72
+ }
73
+
74
+ .cdk-overlay-backdrop-showing {
75
+ opacity: 1;
76
+ }
77
+ @media (forced-colors: active) {
78
+ .cdk-overlay-backdrop-showing {
79
+ opacity: 0.6;
80
+ }
81
+ }
82
+
83
+ @layer cdk-overlay {
84
+ .cdk-overlay-dark-backdrop {
85
+ background: rgba(0, 0, 0, 0.32);
86
+ }
87
+ }
88
+
89
+ .cdk-overlay-transparent-backdrop {
90
+ transition: visibility 1ms linear, opacity 1ms linear;
91
+ visibility: hidden;
92
+ opacity: 1;
93
+ }
94
+ .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing, .cdk-high-contrast-active .cdk-overlay-transparent-backdrop {
95
+ opacity: 0;
96
+ visibility: visible;
97
+ }
98
+
99
+ .cdk-overlay-backdrop-noop-animation {
100
+ transition: none;
101
+ }
102
+
103
+ .cdk-overlay-connected-position-bounding-box {
104
+ position: absolute;
105
+ display: flex;
106
+ flex-direction: column;
107
+ min-width: 1px;
108
+ min-height: 1px;
109
+ }
110
+ @layer cdk-overlay {
111
+ .cdk-overlay-connected-position-bounding-box {
112
+ z-index: 1000;
113
+ }
114
+ }
115
+
116
+ .cdk-global-scrollblock {
117
+ position: fixed;
118
+ width: 100%;
119
+ overflow-y: scroll;
120
+ }
121
+
122
+ .cdk-overlay-popover {
123
+ background: none;
124
+ border: none;
125
+ padding: 0;
126
+ outline: 0;
127
+ overflow: visible;
128
+ position: fixed;
129
+ pointer-events: none;
130
+ white-space: normal;
131
+ color: inherit;
132
+ text-decoration: none;
133
+ width: 100%;
134
+ height: 100%;
135
+ inset: auto;
136
+ top: 0;
137
+ left: 0;
138
+ }
139
+ .cdk-overlay-popover::backdrop {
140
+ display: none;
141
+ }
142
+ .cdk-overlay-popover .cdk-overlay-backdrop {
143
+ position: fixed;
144
+ z-index: auto;
145
+ }
146
+ `],encapsulation:2})}return n})(),Ts=(()=>{class n{_platform=T(Lt);_containerElement;_document=T(qn$2);_styleLoader=T(No);ngOnDestroy(){this._containerElement?.remove();}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||Ro()){let r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove();}let i=this._document.createElement("div");i.classList.add(t),Ro()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i;}_loadStyles(){this._styleLoader.load(Ds);}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),zo=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,i,r){this._renderer=t,this._ngZone=i,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",r);}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing");});}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove();}};function jo(n){return n&&n.nodeType===1}var hr=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new ue$1;_attachments=new ue$1;_detachments=new ue$1;_positionStrategy;_scrollStrategy;_locationChanges=W$2.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=false;_previousHostParent;_keydownEvents=new ue$1;_outsidePointerEvents=new ue$1;_afterNextRenderRef;constructor(e,t,i,r,o,u,v,S,R,O=false,U,ie){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=u,this._document=v,this._location=S,this._outsideClickDispatcher=R,this._animationsDisabled=O,this._injector=U,this._renderer=ie,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy;}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(e){if(this._disposed)return null;this._attachHost();let t=this._portalOutlet.attach(e);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Cy(()=>{this.hasAttached()&&this.updatePosition();},{injector:this._injector}),this._togglePointerEvents(true),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,true),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()));}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(false),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){if(this._disposed)return;let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=true;}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply();}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()));}updateSize(e){this._config=$($({},this._config),e),this._updateElementSize();}setDirection(e){this._config=U$1($({},this._config),{direction:e}),this._updateElementDirection();}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,true);}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,false);}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()));}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection());}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=xe$1(this._config.width),e.height=xe$1(this._config.height),e.minWidth=xe$1(this._config.minWidth),e.minHeight=xe$1(this._config.minHeight),e.maxWidth=xe$1(this._config.maxWidth),e.maxHeight=xe$1(this._config.maxHeight);}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none";}_attachHost(){if(!this._host.parentElement){let e=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;jo(e)?e.after(this._host):e?.type==="parent"?e.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host);}if(this._config.usePopover)try{this._host.showPopover();}catch{}}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new zo(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t);}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,true),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e));}):this._backdropRef.element.classList.add(e);}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host);}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach();}_toggleClasses(e,t,i){let r=Po(t||[]).filter(o=>!!o);r.length&&(i?e.classList.add(...r):e.classList.remove(...r));}_detachContentWhenEmpty(){let e=false;try{this._detachContentAfterRenderRef=Cy(()=>{e=!0,this._detachContent();},{injector:this._injector});}catch(t){if(e)throw t;this._detachContent();}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent();}),this._detachContentMutationObserver.observe(this._pane,{childList:true}));}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,false),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent());}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect();}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.();}},_s="cdk-overlay-connected-position-bounding-box",yd=/([A-Za-z%]+)$/;function $o(n,e){return new gr(e,n.get($n),n.get(qn$2),n.get(Lt),n.get(Ts))}var gr=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=false;_lastBoundingBoxSize={width:0,height:0};_isPushed=false;_canPush=true;_growAfterOpen=false;_hasFlexibleDimensions=true;_positionLocked=false;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=false;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new ue$1;_resizeSubscription=W$2.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(e);}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(_s),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=false,this._isInitialRender=true,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=true,this.apply();});}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],u;for(let v of this._preferredPositions){let S=this._getOriginPoint(e,r,v),R=this._getOverlayPoint(S,t,v),O=this._getOverlayFit(R,t,i,v);if(O.isCompletelyWithinViewport){this._isPushed=false,this._applyPosition(v,S);return}if(this._canFitWithFlexibleDimensions(O,R,i)){o.push({position:v,origin:S,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(S,v)});continue}(!u||u.overlayFit.visibleArea<O.visibleArea)&&(u={overlayFit:O,overlayPoint:R,originPoint:S,position:v,overlayRect:t});}if(o.length){let v=null,S=-1;for(let R of o){let O=R.boundingBoxRect.width*R.boundingBoxRect.height*(R.position.weight||1);O>S&&(S=O,v=R);}this._isPushed=false,this._applyPosition(v.position,v.origin);return}if(this._canPush){this._isPushed=true,this._applyPosition(u.position,u.originPoint);return}this._applyPosition(u.position,u.originPoint);}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe();}dispose(){this._isDisposed||(this._boundingBox&&zt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(_s),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=true);}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;e?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(e,this._getOriginPoint(this._originRect,this._containerRect,e))):this.apply();}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=true){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=true){return this._growAfterOpen=e,this}withPush(e=true){return this._canPush=e,this}withLockedPosition(e=true){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}withPopoverLocation(e){return this._popoverLocation=e,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof cr$1?this._origin.nativeElement:jo(this._origin)?this._origin:null}_getOriginPoint(e,t,i){let r;if(i.originX=="center")r=e.left+e.width/2;else {let u=this._isRtl()?e.right:e.left,v=this._isRtl()?e.left:e.right;r=i.originX=="start"?u:v;}t.left<0&&(r-=t.left);let o;return i.originY=="center"?o=e.top+e.height/2:o=i.originY=="top"?e.top:e.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(e,t,i){let r;i.overlayX=="center"?r=-t.width/2:i.overlayX==="start"?r=this._isRtl()?-t.width:0:r=this._isRtl()?0:-t.width;let o;return i.overlayY=="center"?o=-t.height/2:o=i.overlayY=="top"?0:-t.height,{x:e.x+r,y:e.y+o}}_getOverlayFit(e,t,i,r){let o=vs(t),{x:u,y:v}=e,S=this._getOffset(r,"x"),R=this._getOffset(r,"y");S&&(u+=S),R&&(v+=R);let O=0-u,U=u+o.width-i.width,ie=0-v,ee=v+o.height-i.height,de=this._subtractOverflows(o.width,O,U),oe=this._subtractOverflows(o.height,ie,ee),fi=de*oe;return {visibleArea:fi,isCompletelyWithinViewport:o.width*o.height===fi,fitsInViewportVertically:oe===o.height,fitsInViewportHorizontally:de==o.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){let r=i.bottom-t.y,o=i.right-t.x,u=ys(this._overlayRef.getConfig().minHeight),v=ys(this._overlayRef.getConfig().minWidth),S=e.fitsInViewportVertically||u!=null&&u<=r,R=e.fitsInViewportHorizontally||v!=null&&v<=o;return S&&R}return false}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return {x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=vs(t),o=this._viewportRect,u=Math.max(e.x+r.width-o.width,0),v=Math.max(e.y+r.height-o.height,0),S=Math.max(o.top-i.top-e.y,0),R=Math.max(o.left-i.left-e.x,0),O=0,U=0;return r.width<=o.width?O=R||-u:O=e.x<this._getViewportMarginStart()?o.left-i.left-e.x:0,r.height<=o.height?U=S||-v:U=e.y<this._getViewportMarginTop()?o.top-i.top-e.y:0,this._previousPushAmount={x:O,y:U},{x:e.x+O,y:e.y+U}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let i=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!vd(this._lastScrollVisibility,i)){let r=new fr(e,i);this._positionChanges.next(r);}this._lastScrollVisibility=i;}this._lastPosition=e,this._isInitialRender=false;}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),i,r=e.overlayY;e.overlayX==="center"?i="center":this._isRtl()?i=e.overlayX==="start"?"right":"left":i=e.overlayX==="start"?"left":"right";for(let o=0;o<t.length;o++)t[o].style.transformOrigin=`${i} ${r}`;}_calculateBoundingBoxRect(e,t){let i=this._viewportRect,r=this._isRtl(),o,u,v;if(t.overlayY==="top")u=e.y,o=i.height-u+this._getViewportMarginBottom();else if(t.overlayY==="bottom")v=i.height-e.y+this._getViewportMarginTop()+this._getViewportMarginBottom(),o=i.height-v+this._getViewportMarginTop();else {let ee=Math.min(i.bottom-e.y+i.top,e.y),de=this._lastBoundingBoxSize.height;o=ee*2,u=e.y-ee,o>de&&!this._isInitialRender&&!this._growAfterOpen&&(u=e.y-de/2);}let S=t.overlayX==="start"&&!r||t.overlayX==="end"&&r,R=t.overlayX==="end"&&!r||t.overlayX==="start"&&r,O,U,ie;if(R)ie=i.width-e.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),O=e.x-this._getViewportMarginStart();else if(S)U=e.x,O=i.right-e.x-this._getViewportMarginEnd();else {let ee=Math.min(i.right-e.x+i.left,e.x),de=this._lastBoundingBoxSize.width;O=ee*2,U=e.x-ee,O>de&&!this._isInitialRender&&!this._growAfterOpen&&(U=e.x-de/2);}return {top:u,left:U,bottom:v,right:ie,width:O,height:o}}_setBoundingBoxStyles(e,t){let i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="auto",r.maxHeight=r.maxWidth="",r.width=r.height="100%";else {let o=this._overlayRef.getConfig().maxHeight,u=this._overlayRef.getConfig().maxWidth;r.width=xe$1(i.width),r.height=xe$1(i.height),r.top=xe$1(i.top)||"auto",r.bottom=xe$1(i.bottom)||"auto",r.left=xe$1(i.left)||"auto",r.right=xe$1(i.right)||"auto",t.overlayX==="center"?r.alignItems="center":r.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?r.justifyContent="center":r.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=xe$1(o)),u&&(r.maxWidth=xe$1(u));}this._lastBoundingBoxSize=i,zt(this._boundingBox.style,r);}_resetBoundingBoxStyles(){zt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""});}_resetOverlayElementStyles(){zt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""});}_setOverlayElementStyles(e,t){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,u=this._overlayRef.getConfig();if(r){let O=this._viewportRuler.getViewportScrollPosition();zt(i,this._getExactOverlayY(t,e,O)),zt(i,this._getExactOverlayX(t,e,O));}else i.position="static";let v="",S=this._getOffset(t,"x"),R=this._getOffset(t,"y");S&&(v+=`translateX(${S}px) `),R&&(v+=`translateY(${R}px)`),i.transform=v.trim(),u.maxHeight&&(r?i.maxHeight=xe$1(u.maxHeight):o&&(i.maxHeight="")),u.maxWidth&&(r?i.maxWidth=xe$1(u.maxWidth):o&&(i.maxWidth="")),zt(this._pane.style,i);}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),e.overlayY==="bottom"){let u=this._document.documentElement.clientHeight;r.bottom=`${u-(o.y+this._overlayRect.height)}px`;}else r.top=xe$1(o.y);return r}_getExactOverlayX(e,t,i){let r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let u;if(this._isRtl()?u=e.overlayX==="end"?"left":"right":u=e.overlayX==="end"?"right":"left",u==="right"){let v=this._document.documentElement.clientWidth;r.right=`${v-(o.x+this._overlayRect.width)}px`;}else r.left=xe$1(o.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return {isOriginClipped:hs(e,i),isOriginOutsideView:Ho(e,i),isOverlayClipped:hs(t,i),isOverlayOutsideView:Ho(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return {top:i.top+this._getViewportMarginTop(),left:i.left+this._getViewportMarginStart(),right:i.left+e-this._getViewportMarginEnd(),bottom:i.top+t-this._getViewportMarginBottom(),width:e-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:t-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return !this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Po(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t));});}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e);}),this._appliedPanelClasses=[]);}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let e=this._origin;if(e instanceof cr$1)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,i=e.height||0;return {top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}_getContainerRect(){let e=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",t=this._overlayContainer.getContainerElement();e&&(t.style.display="block");let i=t.getBoundingClientRect();return e&&(t.style.display=""),i}};function zt(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function ys(n){if(typeof n!="number"&&n!=null){let[e,t]=n.split(yd);return !t||t==="px"?parseFloat(e):null}return n||null}function vs(n){return {top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}function vd(n,e){return n===e?true:n.isOriginClipped===e.isOriginClipped&&n.isOriginOutsideView===e.isOriginOutsideView&&n.isOverlayClipped===e.isOverlayClipped&&n.isOverlayOutsideView===e.isOverlayOutsideView}var bs="cdk-global-overlay-wrapper";function As(n){return new _r}var _r=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=false;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(bs),this._isDisposed=false;}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:u,maxHeight:v}=i,S=(r==="100%"||r==="100vw")&&(!u||u==="100%"||u==="100vw"),R=(o==="100%"||o==="100vh")&&(!v||v==="100%"||v==="100vh"),O=this._xPosition,U=this._xOffset,ie=this._overlayRef.getConfig().direction==="rtl",ee="",de="",oe="";S?oe="flex-start":O==="center"?(oe="center",ie?de=U:ee=U):ie?O==="left"||O==="end"?(oe="flex-end",ee=U):(O==="right"||O==="start")&&(oe="flex-start",de=U):O==="left"||O==="start"?(oe="flex-start",ee=U):(O==="right"||O==="end")&&(oe="flex-end",de=U),e.position=this._cssPosition,e.marginLeft=S?"0":ee,e.marginTop=R?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=S?"0":de,t.justifyContent=oe,t.alignItems=R?"flex-start":this._alignItems;}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(bs),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=true;}},Es=(()=>{class n{_injector=T(fe$1);global(){return As()}flexibleConnectedTo(t){return $o(this._injector,t)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),Wo=new x("OVERLAY_DEFAULT_CONFIG");function Go(n,e){n.get(No).load(Ds);let t=n.get(Ts),i=n.get(qn$2),r=n.get(dr),o=n.get(yi$1),u=n.get(Fo),v=n.get(Av,null,{optional:true})||n.get(rr$1).createRenderer(null,null),S=new Yn(e),R=n.get(Wo,null,{optional:true})?.usePopover??true;S.direction=S.direction||u.value,!i.body||!("showPopover"in i.body)?S.usePopover=false:S.usePopover=e?.usePopover??R;let O=i.createElement("div"),U=i.createElement("div");O.id=r.getId("cdk-overlay-"),O.classList.add("cdk-overlay-pane"),U.appendChild(O),S.usePopover&&(U.setAttribute("popover","manual"),U.classList.add("cdk-overlay-popover"));let ie=S.usePopover?S.positionStrategy?.getPopoverInsertionPoint?.():null;return jo(ie)?ie.after(U):ie?.type==="parent"?ie.element.appendChild(U):t.getContainerElement().appendChild(U),new hr(new cr(O,o,n),U,O,S,n.get(we$1),n.get(ks),i,n.get(Ue$1),n.get(Ms),e?.disableAnimations??n.get(Sg$1,null,{optional:true})==="NoopAnimations",n.get(ee$1),v)}var Ut=(()=>{class n{scrollStrategies=T(ws);_positionBuilder=T(Es);_injector=T(fe$1);create(t){return Go(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||n)};static \u0275prov=ar$1({token:n,factory:n.\u0275fac})}return n})(),bd=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Cd=new x("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let n=T(fe$1);return ()=>Uo(n)}}),Oe=(()=>{class n{elementRef=T(cr$1);static \u0275fac=function(i){return new(i||n)};static \u0275dir=CE({type:n,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return n})(),Is=new x("cdk-connected-overlay-default-config"),ht=(()=>{class n{_dir=T(Fo,{optional:true});_injector=T(fe$1);_overlayRef;_templatePortal;_backdropSubscription=W$2.EMPTY;_attachSubscription=W$2.EMPTY;_detachSubscription=W$2.EMPTY;_positionSubscription=W$2.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=T(Cd);_ngZone=T(we$1);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position);}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position);}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=false;disableClose=false;transformOriginSelector;hasBackdrop=false;lockPosition=false;flexibleDimensions=false;growAfterOpen=false;push=false;disposeOnNavigation=false;usePopover;matchWidth=false;set _config(t){typeof t!="string"&&this._assignConfig(t);}backdropClick=new Fe$1;positionChange=new Fe$1;attach=new Fe$1;detach=new Fe$1;overlayKeydown=new Fe$1;overlayOutsideClick=new Fe$1;constructor(){let t=T(nr$1),i=T(mi$2),r=T(Is,{optional:true}),o=T(Wo,{optional:true});this.usePopover=o?.usePopover===false?null:"global",this._templatePortal=new Gn(t,i),this.scrollStrategy=this._scrollStrategyFactory(),r&&this._assignConfig(r);}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose();}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay());}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bd);let t=this._overlayRef=Go(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!ms(i)&&(i.preventDefault(),this.detachOverlay());}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=sr(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i);});}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),i=new Yn({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return (this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(t){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let t=$o(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Oe?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Oe?this.origin.elementRef.nativeElement:this.origin instanceof cr$1?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let t=this._overlayRef;t.getConfig().hasBackdrop=this.hasBackdrop,t.updateSize({width:this._getWidth()}),t.hasAttached()||t.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=t.backdropClick().subscribe(i=>this.backdropClick.emit(i)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Bh$1(()=>this.positionChange.observers.length>0)).subscribe(i=>{this._ngZone.run(()=>this.positionChange.emit(i)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe();})),this.open=true;}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=false;}_assignConfig(t){this.origin=t.origin??this.origin,this.positions=t.positions??this.positions,this.positionStrategy=t.positionStrategy??this.positionStrategy,this.offsetX=t.offsetX??this.offsetX,this.offsetY=t.offsetY??this.offsetY,this.width=t.width??this.width,this.height=t.height??this.height,this.minWidth=t.minWidth??this.minWidth,this.minHeight=t.minHeight??this.minHeight,this.backdropClass=t.backdropClass??this.backdropClass,this.panelClass=t.panelClass??this.panelClass,this.viewportMargin=t.viewportMargin??this.viewportMargin,this.scrollStrategy=t.scrollStrategy??this.scrollStrategy,this.disableClose=t.disableClose??this.disableClose,this.transformOriginSelector=t.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=t.hasBackdrop??this.hasBackdrop,this.lockPosition=t.lockPosition??this.lockPosition,this.flexibleDimensions=t.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=t.growAfterOpen??this.growAfterOpen,this.push=t.push??this.push,this.disposeOnNavigation=t.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=t.usePopover??this.usePopover,this.matchWidth=t.matchWidth??this.matchWidth;}static \u0275fac=function(i){return new(i||n)};static \u0275dir=CE({type:n,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",RP],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",RP],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",RP],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",RP],push:[2,"cdkConnectedOverlayPush","push",RP],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",RP],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",RP],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Qg]})}return n})();var qo={info:4500,success:4500,warning:8e3,danger:null},Yo={info:"info-circle",success:"check-circle",warning:"warning",danger:"warning"};function Ko(n,e,t){return `${n}|${e??""}|${t}`}function xd(n,e){if(n&1&&(ei$2(0,"p"),MI(1),gc$2()),n&2){let t=XE(3);mI(t.titleClass()),Qy(),gp$1(e);}}function wd(n,e){if(n&1){let t=GE();ei$2(0,"div"),Zf$1(1,"div",4),ei$2(2,"div",5)(3,"div",6),Zf$1(4,"africanies-icon",7),ei$2(5,"div",5),LE(6,xd,2,3,"p",1),ei$2(7,"p",8),MI(8),gc$2()(),ei$2(9,"button",9),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.dismissOne.emit())}),Zf$1(10,"africanies-icon",10),gc$2()()()();}if(n&2){let t,i=e.$index,r=XE(2);mI(r.shellClass()),zf$1("role",i===0?r.a11yRole():null)("aria-live",i===0?r.a11yLive():null),Qy(),mI(r.accentClass()),Qy(3),mI(r.iconClass()),Qf$1("name",r.item().icon??r.defaultIcon())("size",18),Qy(2),PE((t=r.item().title)?6:-1,t),Qy(2),Ic$2(" ",r.item().message," "),Qy(2),Qf$1("size",14);}}function Sd(n,e){if(n&1){let t=GE();VE(0,wd,11,13,"div",1,jE),ei$2(2,"div",2)(3,"button",3),tp$1("click",function(){Gl(t);let r=XE();return zl(r.collapse.emit())}),MI(4," Collapse "),gc$2(),ei$2(5,"button",3),tp$1("click",function(){Gl(t);let r=XE();return zl(r.dismissAll.emit())}),MI(6," Close all "),gc$2()();}if(n&2){let t=XE();HE(t.copies());}}function kd(n,e){if(n&1&&(ei$2(0,"p"),MI(1),gc$2()),n&2){let t=XE(2);mI(t.titleClass()),Qy(),gp$1(e);}}function Md(n,e){if(n&1&&(ei$2(0,"span",13),MI(1),gc$2()),n&2){let t=XE(2);Qy(),Ic$2(" \xD7",t.item().count," ");}}function Dd(n,e){if(n&1){let t=GE();ei$2(0,"div",15)(1,"button",3),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.expand.emit())}),MI(2," Expand "),gc$2(),ei$2(3,"button",3),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.dismissAll.emit())}),MI(4," Close all "),gc$2()();}}function Td(n,e){if(n&1&&(ei$2(0,"div",16),Zf$1(1,"div",17),gc$2()),n&2){let t=XE(2);Qy(),mI(t.railFillClass()),cp$1("animation-duration",t.item().durationMs,"ms");}}function Ad(n,e){if(n&1){let t=GE();ei$2(0,"div"),Zf$1(1,"div",4),ei$2(2,"div",5)(3,"div",11),Zf$1(4,"africanies-icon",7),ei$2(5,"div",5)(6,"div",12)(7,"div",5),LE(8,kd,2,3,"p",1),ei$2(9,"p",8),MI(10),gc$2()(),LE(11,Md,2,1,"span",13),ei$2(12,"button",14),tp$1("click",function(){Gl(t);let r=XE();return zl(r.dismissOne.emit())}),Zf$1(13,"africanies-icon",10),gc$2()(),LE(14,Dd,5,0,"div",15),gc$2()(),LE(15,Td,2,4,"div",16),gc$2()();}if(n&2){let t,i=XE();mI(i.shellClass()),zf$1("role",i.a11yRole())("aria-live",i.a11yLive()),Qy(),mI(i.accentClass()),Qy(3),mI(i.iconClass()),Qf$1("name",i.item().icon??i.defaultIcon())("size",18),Qy(4),PE((t=i.item().title)?8:-1,t),Qy(2),Ic$2(" ",i.item().message," "),Qy(),PE(i.item().count>1?11:-1),Qy(),zf$1("aria-label",i.item().count>1?"Dismiss outermost":"Dismiss"),Qy(),Qf$1("size",14),Qy(),PE(i.item().count>1?14:-1),Qy(),PE(i.item().durationMs?15:-1);}}var yr=class n{item=TP.required();dismissOne=wP();dismissAll=wP();expand=wP();collapse=wP();paused=wP();resumed=wP();isPaused=Co$2(false);copies=QI(()=>Array.from({length:Math.max(1,this.item().count)},(e,t)=>t));defaultIcon=QI(()=>Yo[this.item().variant]);a11yRole=QI(()=>{let e=this.item().variant;return e==="warning"||e==="danger"?"alert":"status"});a11yLive=QI(()=>{let e=this.item().variant;return e==="warning"||e==="danger"?"assertive":"polite"});shellClass=QI(()=>"africanies-toast-enter relative flex w-full overflow-hidden rounded-lg border border-border bg-white/95 text-ink shadow-lg backdrop-blur-md dark:border-white/15 dark:bg-ink/95 dark:text-white");accentClass=QI(()=>`w-1 shrink-0 self-stretch ${Os(this.item().variant)}`);iconClass=QI(()=>{switch(this.item().variant){case "success":return "text-export dark:text-export-light";case "warning":return "text-warning-dark dark:text-warning";case "danger":return "text-danger";default:return "text-ink-blue dark:text-neutral-300"}});titleClass=QI(()=>{let e="m-0 break-words text-body-sm font-semibold";switch(this.item().variant){case "success":return `${e} text-export dark:text-export-light`;case "warning":return `${e} text-warning-dark dark:text-warning`;case "danger":return `${e} text-danger`;default:return `${e} text-ink dark:text-white`}});railFillClass=QI(()=>Ed(this.item().variant));onPause(){this.isPaused.set(true),this.paused.emit();}onResume(){this.isPaused.set(false),this.resumed.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-toast-item"]],hostAttrs:[1,"pointer-events-auto","block","w-full"],hostVars:2,hostBindings:function(t,i){t&1&&tp$1("mouseenter",function(){return i.onPause()})("mouseleave",function(){return i.onResume()})("focusin",function(){return i.onPause()})("focusout",function(){return i.onResume()}),t&2&&lp$1("is-paused",i.isPaused());},inputs:{item:[1,"item"]},outputs:{dismissOne:"dismissOne",dismissAll:"dismissAll",expand:"expand",collapse:"collapse",paused:"paused",resumed:"resumed"},decls:3,vars:1,consts:[[1,"flex","w-full","flex-col","gap-1.5"],[3,"class"],[1,"flex","flex-wrap","justify-end","gap-1","px-0.5"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-2","!py-1","!text-caption",3,"click"],["aria-hidden","true"],[1,"min-w-0","flex-1"],[1,"flex","items-start","gap-3","px-3.5","py-3"],[1,"mt-0.5","shrink-0",3,"name","size"],[1,"m-0","break-words","text-body-sm","text-neutral-600","dark:text-neutral-300"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Dismiss",1,"!min-h-0","!px-1.5","!py-1","shrink-0",3,"click"],["name","close",3,"size"],[1,"flex","items-start","gap-3","px-3.5","pt-3","pb-3"],[1,"flex","items-start","gap-2"],[1,"shrink-0","rounded-full","bg-ink/8","px-1.5","py-0.5","text-caption","font-semibold","tabular-nums","text-ink","dark:bg-white/15","dark:text-white"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-1.5","!py-1","shrink-0",3,"click"],[1,"mt-2","flex","flex-wrap","gap-1"],["aria-hidden","true",1,"h-0.5","w-full","overflow-hidden","bg-ink/5","dark:bg-white/10"],[1,"africanies-toast-rail","h-full","w-full","origin-left"]],template:function(t,i){t&1&&(ei$2(0,"div",0),LE(1,Sd,7,0)(2,Ad,16,17,"div",1),gc$2()),t&2&&(Qy(),PE(i.item().expanded&&i.item().count>1?1:2));},dependencies:[g,Z],styles:["@keyframes _ngcontent-%COMP%_africanies-toast-in{0%{opacity:0;transform:translate(.75rem)}to{opacity:1;transform:translate(0)}}@keyframes _ngcontent-%COMP%_africanies-toast-rail{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.africanies-toast-enter[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_africanies-toast-in .22s ease-out both}.africanies-toast-rail[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_africanies-toast-rail;animation-timing-function:linear;animation-fill-mode:forwards}.is-paused[_nghost-%COMP%] .africanies-toast-rail[_ngcontent-%COMP%]{animation-play-state:paused}"]})};function Os(n){switch(n){case "success":return "bg-export";case "warning":return "bg-warning";case "danger":return "bg-danger";default:return "bg-neutral-400"}}function Ed(n){return Os(n)}function Id(n,e){return this.trackToast(e)}function Od(n,e){if(n&1){let t=GE();ei$2(0,"button",3),tp$1("click",function(){Gl(t);let r=XE(3);return zl(r.toastService.collapseAll())}),MI(1," Collapse all "),gc$2();}}function Rd(n,e){if(n&1){let t=GE();ei$2(0,"button",3),tp$1("click",function(){Gl(t);let r=XE(3);return zl(r.toastService.expandAll())}),MI(1," Expand all "),gc$2();}}function Nd(n,e){if(n&1&&LE(0,Od,2,0,"button",4)(1,Rd,2,0,"button",4),n&2){let t=XE(2);PE(t.toastService.allStacksExpanded()?0:1);}}function Pd(n,e){if(n&1){let t=GE();ei$2(0,"div",1),LE(1,Nd,2,1),ei$2(2,"button",3),tp$1("click",function(){Gl(t);let r=XE();return zl(r.toastService.clear())}),MI(3," Close all "),gc$2()();}if(n&2){let t=XE();Qy(),PE(t.toastService.hasStacks()?1:-1);}}function Fd(n,e){if(n&1){let t=GE();ei$2(0,"africanies-toast-item",5),tp$1("dismissOne",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.dismissOne(r.id))})("dismissAll",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.dismiss(r.id))})("expand",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.expand(r.id))})("collapse",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.collapse(r.id))})("paused",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.pause(r.id))})("resumed",function(){let r=Gl(t).$implicit,o=XE();return zl(o.toastService.resume(r.id))}),gc$2();}if(n&2){let t=e.$implicit;Qf$1("item",t);}}var vr=class n{toastService=T(Ke);toasts=this.toastService.items;trackToast(e){return `${e.id}:${e.createdAt}:${e.count}:${e.expanded}`}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-toast-host"]],hostAttrs:["role","region","aria-label","Notifications",1,"africanies-overlay-scroll","pointer-events-auto","block","min-h-0","w-[min(calc(100%-2rem),24rem)]","max-h-[calc(100dvh-2rem)]","overflow-y-auto","overflow-x-hidden","overscroll-contain"],decls:4,vars:1,consts:[[1,"flex","w-full","flex-col","gap-2"],[1,"sticky","top-0","z-10","flex","flex-wrap","justify-end","gap-2","bg-white/80","pb-1","backdrop-blur-sm","dark:bg-ink/80"],[3,"item"],["africanies-button","","type","button","variant","secondary","size","sm",1,"!min-h-0","!rounded-full","!bg-white","!px-2.5","!py-1","!text-caption","dark:!bg-ink",3,"click"],["africanies-button","","type","button","variant","secondary","size","sm",1,"!min-h-0","!rounded-full","!bg-white","!px-2.5","!py-1","!text-caption","dark:!bg-ink"],[3,"dismissOne","dismissAll","expand","collapse","paused","resumed","item"]],template:function(t,i){t&1&&(ei$2(0,"div",0),LE(1,Pd,4,1,"div",1),VE(2,Fd,1,1,"africanies-toast-item",2,Id,true),gc$2()),t&2&&(Qy(),PE(i.toastService.showHostActions()?1:-1),Qy(),HE(i.toasts()));},dependencies:[yr,Z],encapsulation:2})};var Vd="1100",Ke=class n{overlay=T(Ut);injector=T(fe$1);destroyRef=T(xe$2);itemsSignal=Co$2([]);timers=new Map;fingerprints=new Map;host=null;hostAttached=false;seq=0;items=this.itemsSignal.asReadonly();hasStacks=QI(()=>this.itemsSignal().some(e=>e.count>1));showHostActions=QI(()=>{let e=this.itemsSignal();return e.length>1||e.some(t=>t.count>1)});allStacksExpanded=QI(()=>{let e=this.itemsSignal().filter(t=>t.count>1);return e.length>0&&e.every(t=>t.expanded)});ensureHost(){if(this.hostAttached||typeof document>"u")return;let e=this.overlay.create({hasBackdrop:false,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy:this.overlay.position().global().top("1rem").right("1rem"),panelClass:["africanies-toast-panel","pointer-events-none","!w-[min(calc(100%-2rem),24rem)]","max-w-[min(calc(100%-2rem),24rem)]","!max-h-[calc(100dvh-2rem)]"]});e.hostElement.classList.add("africanies-toast-overlay"),e.hostElement.style.zIndex=Vd,e.attach(new Ht(vr,null,this.injector)),this.host=e.hostElement,this.hostAttached=true,this.watchOverlayStack(e.hostElement);}show(e){this.ensureHost(),this.raiseToTop();let t=e.variant??"info",i=e.message.trim();if(!i)return "";let r=e.title?.trim()||void 0,o=e.durationMs===void 0?qo[t]:e.durationMs,u=Ko(t,r,i),v=this.fingerprints.get(u);if(v){let O=this.itemsSignal(),U=O.find(ie=>ie.id===v);if(U){let ie=U$1($({},U),{count:U.count+1,createdAt:Date.now(),durationMs:o});return this.itemsSignal.set([ie,...O.filter(ee=>ee.id!==v)]),this.armTimer(ie),v}}let S=`africanies-toast-${++this.seq}`,R={id:S,message:i,title:r,variant:t,durationMs:o,icon:e.icon,count:1,expanded:false,createdAt:Date.now()};return this.fingerprints.set(u,S),this.itemsSignal.set([R,...this.itemsSignal()]),this.armTimer(R),S}info(e,t){return this.show({variant:"info",message:e,title:t})}success(e,t){return this.show({variant:"success",message:e,title:t})}warning(e,t){return this.show({variant:"warning",message:e,title:t})}error(e,t){return this.show({variant:"danger",message:e,title:t})}dismissOne(e){let t=this.itemsSignal().find(o=>o.id===e);if(!t)return;if(t.count<=1){this.teardown(e);return}let i=t.count-1,r=U$1($({},t),{count:i,expanded:t.expanded&&i>1,createdAt:Date.now()});this.itemsSignal.update(o=>o.map(u=>u.id===e?r:u)),this.armTimer(r);}dismiss(e){this.teardown(e);}expand(e){this.itemsSignal.update(t=>t.map(i=>i.id===e&&i.count>1?U$1($({},i),{expanded:true}):i));}collapse(e){this.itemsSignal.update(t=>t.map(i=>i.id===e?U$1($({},i),{expanded:false}):i));}expandAll(){this.itemsSignal.update(e=>e.map(t=>t.count>1?U$1($({},t),{expanded:true}):t));}collapseAll(){this.itemsSignal.update(e=>e.map(t=>U$1($({},t),{expanded:false})));}clear(){for(let e of [...this.timers.keys()])this.clearTimer(e);this.fingerprints.clear(),this.itemsSignal.set([]);}pause(e){this.clearTimer(e);}resume(e){let t=this.itemsSignal().find(i=>i.id===e);t&&this.armTimer(t);}raiseToTop(){let e=this.host;if(!(!e?.hidePopover||!e.showPopover))try{e.matches(":popover-open")&&(e.hidePopover(),e.showPopover());}catch{}}watchOverlayStack(e){let t=e.parentElement;if(!t||typeof MutationObserver>"u")return;let i=new MutationObserver(r=>{r.some(u=>Array.from(u.addedNodes).some(v=>v!==e))&&this.raiseToTop();});i.observe(t,{childList:true}),this.destroyRef.onDestroy(()=>i.disconnect());}armTimer(e){if(this.clearTimer(e.id),e.durationMs==null||e.durationMs<=0)return;let t=e.durationMs;this.timers.set(e.id,setTimeout(()=>this.dismissOne(e.id),t));}teardown(e){this.clearTimer(e);for(let[t,i]of this.fingerprints)if(i===e){this.fingerprints.delete(t);break}this.itemsSignal.update(t=>t.filter(i=>i.id!==e));}clearTimer(e){let t=this.timers.get(e);t&&(clearTimeout(t),this.timers.delete(e));}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac})};function Ld(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=XE();Qy(),gp$1(t.showCopied()?t.copiedLabel():e);}}var br=class n{toastService=T(Ke,{optional:true});value=TP.required();label=TP(void 0);copiedLabel=TP("Copied");ariaLabel=TP(void 0);buttonClass=TP("");size=TP("sm");feedbackMs=TP(1600,{transform:kP});announce=TP(false,{transform:RP});copied=wP();failed=wP();busy=Co$2(false);showCopied=Co$2(false);feedbackTimer=null;iconSize=QI(()=>this.size()==="lg"?18:14);resolvedAriaLabel=QI(()=>{let e=this.ariaLabel();if(e)return this.showCopied()?"Copied":e;let t=this.label();return t?this.showCopied()?this.copiedLabel():t:this.showCopied()?"Copied":"Copy to clipboard"});async onCopy(){if(this.busy())return;let e=this.value();this.busy.set(true);try{if(!await or(e)){this.failed.emit(),this.toastService?.error("Could not copy to the clipboard.");return}if(this.flashCopied(),this.copied.emit(e),this.announce()&&this.toastService){let i=e.length>64?`${e.slice(0,61).trimEnd()}\u2026`:e;this.toastService.success(`Copied ${i}`);}}finally{this.busy.set(false);}}flashCopied(){this.showCopied.set(true),this.feedbackTimer&&clearTimeout(this.feedbackTimer),this.feedbackTimer=setTimeout(()=>{this.showCopied.set(false),this.feedbackTimer=null;},this.feedbackMs());}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-copy"]],inputs:{value:[1,"value"],label:[1,"label"],copiedLabel:[1,"copiedLabel"],ariaLabel:[1,"ariaLabel"],buttonClass:[1,"buttonClass"],size:[1,"size"],feedbackMs:[1,"feedbackMs"],announce:[1,"announce"]},outputs:{copied:"copied",failed:"failed"},decls:3,vars:9,consts:[["africanies-button","","type","button","variant","ghost",3,"click","size","disabled","title"],[3,"name","size"]],template:function(t,i){if(t&1&&(ei$2(0,"button",0),tp$1("click",function(){return i.onCopy()}),Zf$1(1,"africanies-icon",1),LE(2,Ld,2,1,"span"),gc$2()),t&2){let r;mI(i.buttonClass()),Qf$1("size",i.size())("disabled",i.busy())("title",i.resolvedAriaLabel()),zf$1("aria-label",i.resolvedAriaLabel()),Qy(),Qf$1("name",i.showCopied()?"check":"copy")("size",i.iconSize()),Qy(),PE((r=i.label())?2:-1,r);}},dependencies:[Z,g],encapsulation:2})};var gt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesActionMenuTrigger",""]]})};var Bd=["panel"],Hd=[[["","africaniesActionMenuTrigger",""]]],zd=["[africaniesActionMenuTrigger]"];function Ud(n,e){if(n&1){let t=GE();ei$2(0,"button",6),tp$1("click",function(r){Gl(t);let o=XE();return zl(o.onTriggerClick(r))})("keydown",function(r){Gl(t);let o=XE();return zl(o.onTriggerKeydown(r))}),Zf$1(1,"africanies-icon",7),gc$2();}if(n&2){let t=XE();Qf$1("disabled",t.disabled()),zf$1("aria-label",t.ariaLabel())("aria-haspopup","menu")("aria-expanded",t.open()),Qy(),Qf$1("size",16);}}function jd(n,e){n&1&&Zf$1(0,"div",9);}function $d(n,e){n&1&&Zf$1(0,"africanies-icon",11),n&2&&Qf$1("name",e)("size",16);}function Wd(n,e){if(n&1){let t=GE();LE(0,jd,1,0,"div",9),ei$2(1,"button",10),tp$1("click",function(){let r=Gl(t).$implicit,o=XE(2);return zl(o.selectItem(r))})("mouseenter",function(){let r=Gl(t).$index,o=XE(2);return zl(o.activeIndex.set(r))}),LE(2,$d,1,2,"africanies-icon",11),ei$2(3,"span",12),MI(4),gc$2()();}if(n&2){let t,i=e.$implicit,r=e.$index,o=XE(2);PE(i.dividerBefore?0:-1),Qy(),mI(o.itemClass(i,r)),Qf$1("id",o.itemDomId(r))("disabled",!!i.disabled),Qy(),PE((t=i.icon)?2:-1,t),Qy(2),gp$1(i.label);}}function Gd(n,e){if(n&1){let t=GE();ei$2(0,"div",8,1),tp$1("keydown",function(r){Gl(t);let o=XE();return zl(o.onPanelKeydown(r))}),VE(2,Wd,5,7,null,null,FE),gc$2();}if(n&2){let t=XE();zf$1("aria-label",t.ariaLabel()),Qy(2),HE(t.items());}}var qd=[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:4},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-4},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:4}],yn=class n{panelPositions=qd;panelRef=bP("panel");projectedTrigger=MP(gt);items=TP.required();ariaLabel=TP("Actions");disabled=TP(false,{transform:RP});open=Co$2(false);activeIndex=Co$2(0);menuId=`africanies-menu-${++Yd}`;hasCustomTrigger=QI(()=>this.projectedTrigger()!=null);itemDomId(e){return `${this.menuId}-item-${e}`}itemClass(e,t){let i=this.activeIndex()===t,r="flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-body-sm transition-colors disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-[-2px] focus-visible:outline-ink";return e.danger?`${r} text-danger `+(i?"bg-danger-subtle dark:bg-danger/15":"hover:bg-danger-subtle dark:hover:bg-danger/15"):`${r} text-ink dark:text-white `+(i?"bg-background-welcome dark:bg-white/10":"hover:bg-background-welcome dark:hover:bg-white/10")}onTriggerClick(e){e.preventDefault(),e.stopPropagation(),!this.disabled()&&this.toggle();}onTriggerKeydown(e){this.disabled()||(e.key==="ArrowDown"||e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.openMenu());}onPanelKeydown(e){let t=this.enabledIndexes();if(t.length)switch(e.key){case "Escape":e.preventDefault(),this.close();break;case "ArrowDown":e.preventDefault(),this.moveActive(1,t);break;case "ArrowUp":e.preventDefault(),this.moveActive(-1,t);break;case "Home":{e.preventDefault();let i=t[0];i!==void 0&&this.activeIndex.set(i);break}case "End":{e.preventDefault();let i=t[t.length-1];i!==void 0&&this.activeIndex.set(i);break}case "Enter":case " ":{e.preventDefault();let i=this.items()[this.activeIndex()];i&&!i.disabled&&this.selectItem(i);break}}}onOutsideClick(e){let t=e.target;t&&this.panelRef()?.nativeElement.contains(t)||this.close();}onOverlayDetach(){this.open.set(false);}selectItem(e){e.disabled||(e.onClick(),this.close());}toggle(){this.open()?this.close():this.openMenu();}openMenu(){let e=this.enabledIndexes();this.activeIndex.set(e[0]??0),this.open.set(true),queueMicrotask(()=>this.panelRef()?.nativeElement.focus());}close(){this.open.set(false);}enabledIndexes(){return this.items().map((e,t)=>e.disabled?-1:t).filter(e=>e>=0)}moveActive(e,t){if(t.length===0)return;let i=t.indexOf(this.activeIndex()),r=i<0?0:i,o=t[(r+e+t.length)%t.length];o!==void 0&&this.activeIndex.set(o);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-action-menu"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.projectedTrigger,gt,5),t&2&&oI();},viewQuery:function(t,i){t&1&&ip$1(i.panelRef,Bd,5),t&2&&oI();},inputs:{items:[1,"items"],ariaLabel:[1,"ariaLabel"],disabled:[1,"disabled"]},ngContentSelectors:zd,decls:6,vars:8,consts:[["triggerOrigin","cdkOverlayOrigin"],["panel",""],["cdkOverlayOrigin","",1,"inline-flex"],[1,"inline-flex",3,"click","keydown"],["africanies-button","","type","button","variant","ghost","size","sm",3,"disabled"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","overlayOutsideClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","cdkConnectedOverlayHasBackdrop"],["africanies-button","","type","button","variant","ghost","size","sm",3,"click","keydown","disabled"],["name","ellipsis-v",3,"size"],["role","menu","tabindex","-1",1,"min-w-44","rounded-md","border","border-border","bg-white","py-1","shadow-lg","outline-none","dark:border-white/15","dark:bg-ink-950",3,"keydown"],["role","separator",1,"my-1","border-t","border-border","dark:border-white/10"],["type","button","role","menuitem",3,"click","mouseenter","id","disabled"],[1,"shrink-0",3,"name","size"],[1,"min-w-0","flex-1","truncate","text-left"]],template:function(t,i){if(t&1&&(tI(Hd),ei$2(0,"span",2,0)(2,"span",3),tp$1("click",function(o){return i.onTriggerClick(o)})("keydown",function(o){return i.onTriggerKeydown(o)}),nI(3),gc$2(),LE(4,Ud,2,5,"button",4),gc$2(),Uf$1(5,Gd,4,1,"ng-template",5),tp$1("backdropClick",function(){return i.close()})("overlayOutsideClick",function(o){return i.onOutsideClick(o)})("detach",function(){return i.onOverlayDetach()})),t&2){let r=iI(1);Qy(2),lp$1("hidden",!i.hasCustomTrigger()),Qy(2),PE(i.hasCustomTrigger()?-1:4),Qy(),Qf$1("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.open())("cdkConnectedOverlayPositions",i.panelPositions)("cdkConnectedOverlayPush",true)("cdkConnectedOverlayHasBackdrop",true);}},dependencies:[g,Z,Oe,ht],encapsulation:2})},Yd=0;var Mt=class n{message=TP("No results found.");refreshing=TP(false,{transform:RP});retry=wP();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-empty-state"]],inputs:{message:[1,"message"],refreshing:[1,"refreshing"]},outputs:{retry:"retry"},decls:7,vars:6,consts:[["role","status",1,"flex","flex-col","items-center","justify-center","gap-3","py-10","px-4","text-center","text-ink","dark:text-white"],["name","inbox",1,"text-neutral-400",3,"size"],[1,"m-0","text-body","text-neutral-600","dark:text-neutral-400","max-w-md"],["africanies-button","","type","button","variant","secondary",3,"click","disabled"],["name","refresh",3,"size"]],template:function(t,i){t&1&&(ei$2(0,"div",0),Zf$1(1,"africanies-icon",1),ei$2(2,"p",2),MI(3),gc$2(),ei$2(4,"button",3),tp$1("click",function(){return i.retry.emit()}),Zf$1(5,"africanies-icon",4),MI(6," Retry "),gc$2()()),t&2&&(Qy(),Qf$1("size",32),Qy(2),gp$1(i.message()),Qy(),Qf$1("disabled",i.refreshing()),Qy(),mI(i.refreshing()?"animate-spin":""),Qf$1("size",16));},dependencies:[g,Z],encapsulation:2})};function Kd(n,e){if(n&1){let t=GE();ei$2(0,"div",0)(1,"span",1),Zf$1(2,"span",2)(3,"span",3),gc$2(),ei$2(4,"span",4),MI(5),gc$2(),ei$2(6,"button",5),tp$1("click",function(){Gl(t);let r=XE();return zl(r.onRetry())}),MI(7),gc$2()();}if(n&2){let t=XE();Qy(5),Ic$2(" ",t.message()," "),Qy(),lp$1("opacity-50",t.disabled()),Qf$1("disabled",t.disabled()),Qy(),Ic$2(" ",t.actionLabel()," ");}}var Dt=class n{error=TP(void 0);retryText=TP("Retry");refreshing=TP(false,{transform:RP});refreshingText=TP("Loading...");disabled=TP(false,{transform:RP});retry=wP();message=QI(()=>{let e=this.error()?.trim();return e||null});visible=QI(()=>this.message()!==null);actionLabel=QI(()=>this.refreshing()?this.refreshingText():this.retryText());onRetry(){this.disabled()||this.retry.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-error-indicator"]],hostAttrs:[1,"africanies-error-indicator","block"],inputs:{error:[1,"error"],retryText:[1,"retryText"],refreshing:[1,"refreshing"],refreshingText:[1,"refreshingText"],disabled:[1,"disabled"]},outputs:{retry:"retry"},decls:1,vars:1,consts:[["role","alert","aria-live","assertive",1,"africanies-error-indicator-pill","inline-flex","max-w-full","items-center","gap-2","rounded-full","bg-danger-subtle","px-3","py-1","shadow-sm","dark:bg-red-900/20"],["aria-hidden","true",1,"relative","inline-flex","size-3","shrink-0","items-center","justify-center"],[1,"africanies-error-indicator-dot-ping","absolute","inset-0","rounded-full","bg-red-400","opacity-75"],[1,"africanies-error-indicator-dot-core","relative","size-3","rounded-full","bg-red-500"],[1,"min-w-0","flex-1","text-caption","font-medium","leading-snug","text-ink","dark:text-white"],["africanies-button","","type","button","variant","ghost","size","sm",1,"africanies-error-indicator-retry","shrink-0","!min-h-0","!border-transparent","!bg-transparent","!px-1.5","!py-0.5","!text-danger","hover:!bg-danger/10","dark:hover:!bg-danger/20",3,"click","disabled"]],template:function(t,i){t&1&&LE(0,Kd,8,5,"div",0),t&2&&PE(i.visible()?0:-1);},dependencies:[Z],styles:["@keyframes _ngcontent-%COMP%_africanies-error-indicator-enter{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes _ngcontent-%COMP%_africanies-error-indicator-dot-pulse{0%,to{transform:scale(1);opacity:.7}50%{transform:scale(1.3);opacity:1}}@keyframes _ngcontent-%COMP%_africanies-error-indicator-dot-ping{0%{transform:scale(1);opacity:.75}70%,to{transform:scale(2);opacity:0}}.africanies-error-indicator-pill[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_africanies-error-indicator-enter .35s cubic-bezier(.34,1.56,.64,1)}.africanies-error-indicator-dot-ping[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_africanies-error-indicator-dot-ping 1.5s cubic-bezier(0,0,.2,1) infinite}.africanies-error-indicator-dot-core[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_africanies-error-indicator-dot-pulse 1.5s ease-in-out infinite alternate}.africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled){transition:transform .15s ease}.africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled):hover{transform:scale(1.05)}.africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled):active{transform:scale(.95)}@media(prefers-reduced-motion:reduce){.africanies-error-indicator-pill[_ngcontent-%COMP%], .africanies-error-indicator-dot-ping[_ngcontent-%COMP%], .africanies-error-indicator-dot-core[_ngcontent-%COMP%], .africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled){animation:none;transition:none}.africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled):hover, .africanies-error-indicator-retry[_ngcontent-%COMP%]:not(:disabled):active{transform:none}}"]})};var Tt=class n{message=TP.required();refreshing=TP(false,{transform:RP});retry=wP();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-error-state"]],inputs:{message:[1,"message"],refreshing:[1,"refreshing"]},outputs:{retry:"retry"},decls:7,vars:6,consts:[["role","alert",1,"flex","flex-col","items-center","justify-center","gap-3","py-10","px-4","text-center","text-ink","dark:text-white"],["name","warning",1,"text-danger",3,"size"],[1,"m-0","text-body","text-danger","max-w-md"],["africanies-button","","type","button","variant","secondary",3,"click","disabled"],["name","refresh",3,"size"]],template:function(t,i){t&1&&(ei$2(0,"div",0),Zf$1(1,"africanies-icon",1),ei$2(2,"p",2),MI(3),gc$2(),ei$2(4,"button",3),tp$1("click",function(){return i.retry.emit()}),Zf$1(5,"africanies-icon",4),MI(6," Retry "),gc$2()()),t&2&&(Qy(),Qf$1("size",32),Qy(2),gp$1(i.message()),Qy(),Qf$1("disabled",i.refreshing()),Qy(),mI(i.refreshing()?"animate-spin":""),Qf$1("size",16));},dependencies:[g,Z],encapsulation:2})};function Qd(n,e){if(n&1&&(ei$2(0,"p",3),MI(1),gc$2()),n&2){let t=XE();mI(t.mode()==="block"?"text-body":"text-body-sm"),Qy(),Ic$2(" ",t.message()," ");}}var At=class n{modeColor=T(re);message=TP(void 0);mode=TP("block");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-loading-state"]],inputs:{message:[1,"message"],mode:[1,"mode"]},decls:3,vars:6,consts:[["role","status","aria-live","polite"],["name","spinner",3,"size"],[1,"m-0","text-neutral-600","dark:text-neutral-400",3,"class"],[1,"m-0","text-neutral-600","dark:text-neutral-400"]],template:function(t,i){t&1&&(ei$2(0,"div",0),Zf$1(1,"africanies-icon",1),LE(2,Qd,2,3,"p",2),gc$2()),t&2&&(mI(i.mode()==="block"?"flex flex-col items-center justify-center gap-3 py-10 px-4 text-center text-ink dark:text-white":"inline-flex items-center gap-2 text-ink dark:text-white"),Qy(),mI("animate-spin "+i.modeColor.classes().text),Qf$1("size",i.mode()==="block"?32:20),Qy(),PE(i.message()?2:-1));},dependencies:[g],encapsulation:2})};var Xd=["*"];function Zd(n,e){n&1&&Zf$1(0,"africanies-loading-state",0);}function Jd(n,e){if(n&1){let t=GE();ei$2(0,"africanies-error-state",3),tp$1("retry",function(){Gl(t);let r=XE();return zl(r.retry.emit())}),gc$2();}if(n&2){let t=XE();Qf$1("message",t.errorMessage())("refreshing",t.state().isFetching);}}function ec(n,e){if(n&1){let t=GE();ei$2(0,"africanies-empty-state",3),tp$1("retry",function(){Gl(t);let r=XE();return zl(r.retry.emit())}),gc$2();}if(n&2){let t=XE();Qf$1("message",t.emptyMessage())("refreshing",t.state().isFetching);}}function tc(n,e){if(n&1){let t=GE();ei$2(0,"div",4)(1,"africanies-error-indicator",5),tp$1("retry",function(){Gl(t);let r=XE(3);return zl(r.retry.emit())}),gc$2()();}if(n&2){let t=XE(),i=XE(2);Qy(),Qf$1("error",i.staleErrorCopy())("refreshingText",i.staleRefreshingText())("refreshing",t.fetching);}}function nc(n,e){n&1&&LE(0,tc,2,3,"div",4),n&2&&PE(e.staleError?0:-1);}function ic(n,e){if(n&1&&(ei$2(0,"div",2),LE(1,nc,1,1),nI(2),gc$2()),n&2){let t,i=XE();Qy(),PE((t=i.contentBadges())?1:-1,t);}}var Cr=class n{state=TP.required();emptyMessage=TP("No results found.");staleErrorMessage=TP("Failed to fetch the most recent data.");staleRefreshingText=TP("Refreshing...");retry=wP();errorMessage=QI(()=>this.state().error??"Something went wrong.");staleErrorCopy=QI(()=>{let e=this.state().error?.trim();return e||this.staleErrorMessage()});view=QI(()=>{let e=this.state();return e.isLoading?{kind:"loading"}:e.isError&&e.data===void 0?{kind:"error",message:e.error??"Something went wrong."}:rc(e.data)?{kind:"empty"}:{kind:"content",staleError:e.isError,fetching:e.isFetching}});contentBadges=QI(()=>{let e=this.view();return e.kind==="content"?{staleError:e.staleError,fetching:e.fetching}:null});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-async-state"]],inputs:{state:[1,"state"],emptyMessage:[1,"emptyMessage"],staleErrorMessage:[1,"staleErrorMessage"],staleRefreshingText:[1,"staleRefreshingText"]},outputs:{retry:"retry"},ngContentSelectors:Xd,decls:4,vars:1,consts:[["message","Loading\u2026"],[3,"message","refreshing"],[1,"flex","flex-col","gap-3"],[3,"retry","message","refreshing"],[1,"flex","justify-end"],["retryText","Refresh",1,"max-w-[min(100%,20rem)]",3,"retry","error","refreshingText","refreshing"]],template:function(t,i){if(t&1&&(tI(),LE(0,Zd,1,0,"africanies-loading-state",0)(1,Jd,1,2,"africanies-error-state",1)(2,ec,1,2,"africanies-empty-state",1)(3,ic,3,1,"div",2)),t&2){let r;PE((r=i.view().kind)==="loading"?0:r==="error"?1:r==="empty"?2:r==="content"?3:-1);}},dependencies:[Mt,Dt,Tt,At],encapsulation:2})};function rc(n){return !!(n==null||Array.isArray(n)&&n.length===0)}var oc=["*"];function ac(n,e){if(n&1&&(ei$2(0,"p"),MI(1),gc$2()),n&2){let t=XE();mI(t.titleClass()),Qy(),gp$1(e);}}function sc(n,e){if(n&1){let t=GE();ei$2(0,"button",4),tp$1("click",function(){Gl(t);let r=XE();return zl(r.onDismiss())}),Zf$1(1,"africanies-icon",5),gc$2();}n&2&&(Qy(),Qf$1("size",16));}var lc={info:"info-circle",success:"check-circle",warning:"warning",danger:"warning"},xr=class n{variant=TP("info");title=TP(void 0);message=TP.required();dismissible=TP(true,{transform:RP});icon=TP(void 0);dismissed=wP();resolvedIcon=QI(()=>this.icon()??lc[this.variant()]);a11yRole=QI(()=>{let e=this.variant();return e==="warning"||e==="danger"?"alert":"status"});a11yLive=QI(()=>{let e=this.variant();return e==="warning"||e==="danger"?"assertive":"polite"});shellClass=QI(()=>{let e="flex items-center gap-3 rounded-lg border px-4 py-3 text-body text-ink dark:text-white";switch(this.variant()){case "success":return `${e} border-export/30 bg-export-subtle dark:border-export/40 dark:bg-export/15`;case "warning":return `${e} border-warning/40 bg-warning-subtle dark:border-warning/50 dark:bg-warning/15`;case "danger":return `${e} border-danger/30 bg-danger-subtle dark:border-danger/40 dark:bg-danger/15`;default:return `${e} border-border bg-background-welcome dark:border-white/15 dark:bg-ink-950`}});iconClass=QI(()=>{switch(this.variant()){case "success":return "text-export dark:text-export-light";case "warning":return "text-warning-dark dark:text-warning";case "danger":return "text-danger";default:return "text-ink-blue dark:text-neutral-300"}});titleClass=QI(()=>{let e="m-0 text-body font-medium";switch(this.variant()){case "success":return `${e} text-export dark:text-export-light`;case "warning":return `${e} text-warning-dark dark:text-warning`;case "danger":return `${e} text-danger`;default:return `${e} text-ink dark:text-white`}});messageClass=QI(()=>"m-0 text-body-sm text-neutral-600 dark:text-neutral-300");onDismiss(){this.dismissed.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-alert"]],inputs:{variant:[1,"variant"],title:[1,"title"],message:[1,"message"],dismissible:[1,"dismissible"],icon:[1,"icon"]},outputs:{dismissed:"dismissed"},ngContentSelectors:oc,decls:8,vars:13,consts:[[1,"shrink-0",3,"name","size"],[1,"min-w-0","flex-1","flex","flex-col","justify-center","gap-1"],[3,"class"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Dismiss",1,"shrink-0","!min-h-0","!px-1.5","!py-1"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Dismiss",1,"shrink-0","!min-h-0","!px-1.5","!py-1",3,"click"],["name","close",3,"size"]],template:function(t,i){if(t&1&&(tI(),ei$2(0,"div"),Zf$1(1,"africanies-icon",0),ei$2(2,"div",1),LE(3,ac,2,3,"p",2),ei$2(4,"p"),MI(5),gc$2(),nI(6),gc$2(),LE(7,sc,2,1,"button",3),gc$2()),t&2){let r;mI(i.shellClass()),zf$1("role",i.a11yRole())("aria-live",i.a11yLive()),Qy(),mI(i.iconClass()),Qf$1("name",i.resolvedIcon())("size",20),Qy(2),PE((r=i.title())?3:-1,r),Qy(),mI(i.messageClass()),Qy(),gp$1(i.message()),Qy(2),PE(i.dismissible()?7:-1);}},dependencies:[g,Z],encapsulation:2})};var dc=["*"];function cc(n,e){if(n&1&&Zf$1(0,"africanies-icon",0),n&2){let t=XE();Qf$1("name",e)("size",t.iconSize());}}function uc(n,e){if(n&1){let t=GE();ei$2(0,"button",3),tp$1("click",function(r){Gl(t);let o=XE();return zl(o.onRemove(r))}),Zf$1(1,"africanies-icon",4),gc$2();}if(n&2){let t=XE();zf$1("aria-label",t.removeLabel()),Qy(),Qf$1("size",12);}}var wr=class n{variant=TP("neutral");size=TP("sm");icon=TP(void 0);removable=TP(false,{transform:RP});removeLabel=TP("Remove");removed=wP();iconSize=QI(()=>this.size()==="md"?14:12);hostClass=QI(()=>`inline-flex max-w-full items-center gap-1 rounded-md font-sans font-medium border border-transparent ${{sm:"px-2 py-0.5 text-caption",md:"px-2.5 py-1 text-body-sm"}[this.size()]} ${this.toneClass()}`);toneClass(){switch(this.variant()){case "success":case "export":return "bg-export-subtle text-export dark:bg-export/15 dark:text-export-light";case "import":return "bg-import-subtle text-import dark:bg-import/15 dark:text-import-light";case "warning":return "bg-warning-subtle text-warning-dark dark:bg-warning/15 dark:text-warning";case "danger":return "bg-danger-subtle text-danger dark:bg-danger/15 dark:text-danger";default:return "bg-border/60 text-ink dark:bg-white/10 dark:text-neutral-200"}}onRemove(e){e.stopPropagation(),this.removed.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-chip"]],hostAttrs:["role","status"],hostVars:2,hostBindings:function(t,i){t&2&&mI(i.hostClass());},inputs:{variant:[1,"variant"],size:[1,"size"],icon:[1,"icon"],removable:[1,"removable"],removeLabel:[1,"removeLabel"]},outputs:{removed:"removed"},ngContentSelectors:dc,decls:4,vars:2,consts:[[1,"shrink-0",3,"name","size"],[1,"min-w-0","truncate"],["type","button",1,"inline-flex","shrink-0","cursor-pointer","items-center","justify-center","rounded-sm","opacity-70","transition-opacity","hover:opacity-100","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-ink"],["type","button",1,"inline-flex","shrink-0","cursor-pointer","items-center","justify-center","rounded-sm","opacity-70","transition-opacity","hover:opacity-100","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-1","focus-visible:outline-ink",3,"click"],["name","close",3,"size"]],template:function(t,i){if(t&1&&(tI(),LE(0,cc,1,2,"africanies-icon",0),ei$2(1,"span",1),nI(2),gc$2(),LE(3,uc,2,2,"button",2)),t&2){let r;PE((r=i.icon())?0:-1,r),Qy(3),PE(i.removable()?3:-1);}},dependencies:[g],encapsulation:2})};function pc(n,e){if(n&1&&(mc$2(0,"p",1),MI(1),yc$2()),n&2){let t=XE();Qy(),Ic$2(" ",t.title()," ");}}function mc(n,e){if(n&1&&(mc$2(0,"p",2),MI(1),yc$2()),n&2){let t=XE();Qy(),Ic$2(" ",t.subtitle()," ");}}function fc(n,e){if(n&1&&(mc$2(0,"p",3),MI(1),yc$2()),n&2){let t=XE();Qy(),Ic$2(" ",t.extraLine()," ");}}var Sr=class n{title=TP("");subtitle=TP("");extraLine=TP("");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-content-stack"]],hostAttrs:[1,"block","min-w-0"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"],extraLine:[1,"extraLine"]},decls:4,vars:3,consts:[[1,"flex","min-w-0","flex-col","gap-0.5"],[1,"m-0","text-body-sm","font-medium","text-ink","dark:text-white"],[1,"m-0","text-caption","text-neutral-600","dark:text-neutral-400"],[1,"m-0","text-caption","text-neutral-500","dark:text-neutral-400"]],template:function(t,i){t&1&&(mc$2(0,"div",0),LE(1,pc,2,1,"p",1),LE(2,mc,2,1,"p",2),LE(3,fc,2,1,"p",3),yc$2()),t&2&&(Qy(),PE(i.title()?1:-1),Qy(),PE(i.subtitle()?2:-1),Qy(),PE(i.extraLine()?3:-1));},encapsulation:2})};function Rs(){return Hn$2([Ke,{provide:Vn,useExisting:Ke},ME(()=>{T(Ke).ensureHost();})])}var jt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesTooltipTrigger",""]]})};var hc=[[["","africaniesTooltipTrigger",""]]],gc=["[africaniesTooltipTrigger]"];function _c(n,e){if(n&1){let t=GE();ei$2(0,"button",5),tp$1("click",function(r){Gl(t);let o=XE();return zl(o.onTriggerClick(r))})("keydown",function(r){Gl(t);let o=XE();return zl(o.onKeydown(r))}),Zf$1(1,"africanies-icon",6),gc$2();}if(n&2){let t=XE();Qf$1("disabled",t.disabled()),zf$1("aria-label",t.ariaLabel())("aria-describedby",t.open()?t.tooltipId:null)("aria-expanded",t.open()),Qy(),Qf$1("name",t.icon())("size",16);}}function yc(n,e){if(n&1){let t=GE();ei$2(0,"div",7),tp$1("pointerenter",function(){Gl(t);let r=XE();return zl(r.onPanelEnter())})("pointerleave",function(){Gl(t);let r=XE();return zl(r.onPointerLeave())}),MI(1),gc$2();}if(n&2){let t=XE();Qf$1("id",t.tooltipId),Qy(),Ic$2(" ",t.text()," ");}}var vc=0,Ns={top:[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-8},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:8}],bottom:[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:8},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-8}],left:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-8},{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:8}],right:[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:8},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-8}]},kr=class n{tooltipId=`africanies-tooltip-${++vc}`;customTrigger=MP(jt);text=TP.required();placement=TP("top");icon=TP("info-circle");ariaLabel=TP("More information");disabled=TP(false,{transform:RP});open=Co$2(false);sticky=Co$2(false);closeTimer=null;hasCustomTrigger=QI(()=>!!this.customTrigger());panelPositions=QI(()=>Ns[this.placement()]??Ns.top);onPointerEnter(){this.disabled()||(this.clearCloseTimer(),this.open.set(true));}onPointerLeave(){this.sticky()||this.scheduleClose();}onPanelEnter(){this.clearCloseTimer();}onFocusIn(){this.disabled()||(this.clearCloseTimer(),this.open.set(true));}onFocusOut(e){if(this.sticky())return;let t=e.relatedTarget,i=e.currentTarget;i&&t&&i.contains(t)||this.scheduleClose();}onTriggerClick(e){if(!this.disabled()){if(e.stopPropagation(),this.clearCloseTimer(),this.open()&&this.sticky()){this.close();return}this.sticky.set(true),this.open.set(true);}}onKeydown(e){e.key==="Escape"&&this.open()&&(e.preventDefault(),this.close());}onOutsideClick(){this.sticky()&&this.close();}onOverlayDetach(){this.open.set(false),this.sticky.set(false);}close(){this.clearCloseTimer(),this.open.set(false),this.sticky.set(false);}scheduleClose(){this.clearCloseTimer(),this.closeTimer=setTimeout(()=>{this.sticky()||this.open.set(false);},120);}clearCloseTimer(){this.closeTimer&&(clearTimeout(this.closeTimer),this.closeTimer=null);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-tooltip"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.customTrigger,jt,5),t&2&&oI();},hostAttrs:[1,"inline-flex","max-w-full","align-middle"],inputs:{text:[1,"text"],placement:[1,"placement"],icon:[1,"icon"],ariaLabel:[1,"ariaLabel"],disabled:[1,"disabled"]},ngContentSelectors:gc,decls:6,vars:8,consts:[["triggerOrigin","cdkOverlayOrigin"],["cdkOverlayOrigin","",1,"inline-flex",3,"pointerenter","pointerleave","focusin","focusout"],[1,"inline-flex",3,"click","keydown"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-1.5","!py-1",3,"disabled"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","overlayOutsideClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","cdkConnectedOverlayHasBackdrop"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-1.5","!py-1",3,"click","keydown","disabled"],[3,"name","size"],["role","tooltip",1,"max-w-xs","rounded-md","border","border-border","bg-ink","px-3","py-2","text-body-sm","text-white","shadow-lg","dark:border-white/15","dark:bg-ink-950",3,"pointerenter","pointerleave","id"]],template:function(t,i){if(t&1&&(tI(hc),ei$2(0,"span",1,0),tp$1("pointerenter",function(){return i.onPointerEnter()})("pointerleave",function(){return i.onPointerLeave()})("focusin",function(){return i.onFocusIn()})("focusout",function(o){return i.onFocusOut(o)}),ei$2(2,"span",2),tp$1("click",function(o){return i.onTriggerClick(o)})("keydown",function(o){return i.onKeydown(o)}),nI(3),gc$2(),LE(4,_c,2,6,"button",3),gc$2(),Uf$1(5,yc,2,2,"ng-template",4),tp$1("backdropClick",function(){return i.close()})("overlayOutsideClick",function(){return i.onOutsideClick()})("detach",function(){return i.onOverlayDetach()})),t&2){let r=iI(1);Qy(2),lp$1("hidden",!i.hasCustomTrigger()),Qy(2),PE(i.hasCustomTrigger()?-1:4),Qy(),Qf$1("cdkConnectedOverlayOrigin",r)("cdkConnectedOverlayOpen",i.open())("cdkConnectedOverlayPositions",i.panelPositions())("cdkConnectedOverlayPush",true)("cdkConnectedOverlayHasBackdrop",i.sticky());}},dependencies:[g,Z,Oe,ht],encapsulation:2})};var ve=new x("");var Te="block text-body-sm font-medium text-ink dark:text-white mb-1.5 empty:hidden",Qe="flex items-center w-full h-10 box-border rounded-md border border-neutral-300 bg-white dark:bg-ink-950 text-ink dark:text-white dark:border-white/25 focus-within:outline focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-ink",Ve$1="!border-danger dark:!border-danger focus-within:!outline-danger",_t="flex-1 min-w-0 min-h-0 h-full w-full bg-transparent border-0 outline-none text-body text-ink dark:text-white px-3 py-0 placeholder:text-neutral-400 disabled:cursor-not-allowed",Xe="inline-flex items-center shrink-0 px-2.5 text-neutral-600 dark:text-neutral-400 empty:hidden",Ps=_t+" cursor-pointer [&::-webkit-calendar-picker-indicator]:cursor-pointer",be="mt-1.5 text-caption text-neutral-600 dark:text-neutral-400 m-0",Ce="mt-1.5 text-caption text-danger m-0",Ze="opacity-50 cursor-not-allowed";var bc=["dateInput"],Cc=[[["","prefix",""]],[["","suffix",""]]],xc=["[prefix]","[suffix]"];function wc(n,e){if(n&1&&(mc$2(0,"p",6),MI(1),yc$2()),n&2){let t=XE();mI(t.errorClass),Xf$1("id",t.errorId),Qy(),gp$1(e);}}function Sc(n,e){if(n&1&&(mc$2(0,"p",7),MI(1),yc$2()),n&2){let t=XE();mI(t.hintClass),Xf$1("id",t.hintId),Qy(),gp$1(e);}}var kc=0,$t=class n{theme=T(jn,{optional:true});controlId=`africanies-date-picker-${++kc}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;affixClass=Xe;innerClass=Ps;hintClass=be;errorClass=Ce;dateInput=bP("dateInput");label=TP("");hint=TP(void 0);error=TP(null);min=TP(void 0);max=TP(void 0);value=CP(null);disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());colorScheme=QI(()=>this.theme?.theme()??"light");shellClass=QI(()=>{let e=Qe;return this.error()&&(e+=` ${Ve$1}`),this.disabled()?e+=` ${Ze}`:e+=" cursor-pointer",e});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.value.set(e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}openPicker(e){if(this.disabled())return;e?.stopPropagation();let t=this.dateInput()?.nativeElement;if(!(!t||typeof t.showPicker!="function"))try{t.showPicker();}catch{}}onInput(e){let t=e.target.value,i=t===""?null:t;this.value.set(i),this.onChange(i);}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-date-picker"]],viewQuery:function(t,i){t&1&&ip$1(i.dateInput,bc,5),t&2&&oI();},inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],min:[1,"min"],max:[1,"max"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:xc,decls:11,vars:22,consts:[["dateInput",""],["data-slot","prefix"],["type","date",3,"click","input","blur","id","value","disabled"],["data-slot","suffix"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(tI(Cc),mc$2(0,"label"),MI(1),yc$2(),mc$2(2,"div")(3,"span",1),nI(4),yc$2(),mc$2(5,"input",2,0),np$1("click",function(o){return i.openPicker(o)})("input",function(o){return i.onInput(o)})("blur",function(){return i.onBlur()}),yc$2(),mc$2(7,"span",3),nI(8,1),yc$2()(),LE(9,wc,2,4,"p",4)(10,Sc,2,4,"p",5)),t&2){let r;mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(),mI(i.affixClass),Qy(2),mI(i.innerClass),cp$1("color-scheme",i.colorScheme()),Xf$1("id",i.controlId)("value",i.value()??"")("disabled",i.disabled()),zf$1("min",i.min()||null)("max",i.max()||null)("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(2),mI(i.affixClass),Qy(2),PE((r=i.error())?9:(r=i.hint())?10:-1,r);}},encapsulation:2})};function Mc(n,e){return this.trackOption(e)}function Dc(n,e){if(n&1&&Yf$1(0,"span"),n&2){let t=XE(2);mI(t.dotClass());}}function Tc(n,e){if(n&1){let t=GE();mc$2(0,"label",5)(1,"span",6)(2,"input",7),np$1("change",function(){let r=Gl(t).$implicit,o=XE();return zl(o.select(r))})("blur",function(){Gl(t);let r=XE();return zl(r.onBlur())}),yc$2(),mc$2(3,"span",8),LE(4,Dc,1,2,"span",9),yc$2()(),mc$2(5,"span"),MI(6),yc$2()();}if(n&2){let t=e.$implicit,i=XE();lp$1("opacity-50",i.disabled()||t.disabled)("cursor-pointer",!(i.disabled()||t.disabled))("cursor-not-allowed",i.disabled()||t.disabled),Qy(2),lp$1("cursor-pointer",!(i.disabled()||t.disabled))("cursor-not-allowed",i.disabled()||t.disabled),Xf$1("name",i.groupName)("checked",i.isSelected(t))("disabled",i.disabled()||!!t.disabled),Qy(),mI(i.markClass(t)),Qy(),PE(i.isSelected(t)?4:-1),Qy(2),gp$1(t.label);}}function Ac(n,e){if(n&1&&(mc$2(0,"p",10),MI(1),yc$2()),n&2){let t=XE();mI(t.errorClass),Xf$1("id",t.errorId),Qy(),gp$1(e);}}function Ec(n,e){if(n&1&&(mc$2(0,"p",11),MI(1),yc$2()),n&2){let t=XE();mI(t.hintClass),Xf$1("id",t.hintId),Qy(),gp$1(e);}}var Ic=0,Wt=class n{modeColor=T(re);groupName=`africanies-radio-${++Ic}`;hintId=`${this.groupName}-hint`;errorId=`${this.groupName}-error`;labelClass=Te;hintClass=be;errorClass=Ce;label=TP("");hint=TP(void 0);error=TP(null);options=TP([]);value=CP(null);disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};trackOption(e){return String(e.value)}isSelected(e){return Object.is(this.value(),e.value)}markClass(e){let t="pointer-events-none flex size-4 items-center justify-center rounded-full border-2 bg-transparent transition-colors peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-ink",i=this.error()?" !border-danger dark:!border-danger":"";return this.isSelected(e)?`${t} ${this.modeColor.classes().border}${i}`:`${t} border-neutral-400 dark:border-white${i}`}dotClass=QI(()=>`block size-1.5 rounded-full ${this.modeColor.classes().bg}`);writeValue(e){this.value.set(e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}select(e){this.disabled()||e.disabled||(this.value.set(e.value),this.onChange(e.value));}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-radio"]],hostAttrs:[1,"inline-flex","max-w-full"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],options:[1,"options"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],decls:8,vars:6,consts:[[1,"m-0","p-0","border-0","min-w-0"],["role","radiogroup",1,"flex","flex-row","flex-wrap","gap-x-4","gap-y-2"],[1,"inline-flex","items-center","gap-2.5","text-body","text-ink","dark:text-white",3,"opacity-50","cursor-pointer","cursor-not-allowed"],["role","alert",3,"id","class"],[3,"id","class"],[1,"inline-flex","items-center","gap-2.5","text-body","text-ink","dark:text-white"],[1,"relative","inline-flex","size-4","shrink-0"],["type","radio",1,"peer","absolute","inset-0","z-10","m-0","size-full","opacity-0",3,"change","blur","name","checked","disabled"],["aria-hidden","true"],[3,"class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(mc$2(0,"fieldset",0)(1,"legend"),MI(2),yc$2(),mc$2(3,"div",1),VE(4,Tc,7,17,"label",2,Mc,true),yc$2(),LE(6,Ac,2,4,"p",3)(7,Ec,2,4,"p",4),yc$2()),t&2){let r;zf$1("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),mI(i.labelClass),Qy(),gp$1(i.label()),Qy(2),HE(i.options()),Qy(2),PE((r=i.error())?6:(r=i.hint())?7:-1,r);}},encapsulation:2})};var Qo={md:["max-w-lg","w-[min(calc(100%-2rem),32rem)]"],lg:["max-w-2xl","w-[min(calc(100%-2rem),42rem)]"],xl:["max-w-4xl","w-[min(calc(100%-2rem),56rem)]"]};var Ae=class{constructor(e,t){this.overlayRef=e;this.playLeave=t;}overlayRef;playLeave;closed$=new ue$1;settled=false;close(e){if(this.settled)return;this.settled=true;let t=()=>{this.closed$.next(e),this.closed$.complete(),this.overlayRef.dispose();};if(!this.playLeave){t();return}this.playLeave().then(t,t);}afterClosed(){return this.closed$.asObservable()}};var Je=new x("AFRICANIES_OVERLAY_DATA");var Fs="cubic-bezier(0.22, 1, 0.36, 1)";function Vs(){return typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches}function Ls(n,e){if(Vs())return;n.backdropElement?.animate([{opacity:0},{opacity:1}],{duration:220,easing:"ease-out",fill:"both"});let t=n.overlayElement;if(e==="modal"){t.animate([{opacity:0,transform:"scale(0.96) translateY(10px)"},{opacity:1,transform:"scale(1) translateY(0)"}],{duration:260,easing:Fs,fill:"both"});return}t.animate([{opacity:0,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],{duration:300,easing:Fs,fill:"both"});}function Bs(n,e){if(Vs())return Promise.resolve();let t=[],i=n.backdropElement?.animate([{opacity:1},{opacity:0}],{duration:160,easing:"ease-in",fill:"both"});i&&t.push(i);let r=n.overlayElement,o=e==="modal"?r.animate([{opacity:1,transform:"scale(1) translateY(0)"},{opacity:0,transform:"scale(0.98) translateY(6px)"}],{duration:160,easing:"ease-in",fill:"both"}):r.animate([{opacity:1,transform:"translateX(0)"},{opacity:0,transform:"translateX(100%)"}],{duration:220,easing:"ease-in",fill:"both"});return t.push(o),Promise.all(t.map(u=>u.finished)).then(()=>{})}function Mr(n,e,t,i,r,o){let u=n.create(i),v=new Ae(u,()=>Bs(u,r)),S=[{provide:Ae,useValue:v},{provide:Je,useValue:o?.data}],R=fe$1.create({parent:e,providers:S}),O=new Ht(t,null,R);return u.attach(O),Ls(u,r),o?.dismissible===true&&(u.backdropClick().subscribe(()=>v.close()),u.keydownEvents().subscribe(U=>{U.key==="Escape"&&(U.preventDefault(),v.close());})),v}var ze$1=class n{overlay=T(Ut);injector=T(fe$1);open(e,t){let i=t?.panelClass==null?[]:Array.isArray(t.panelClass)?[...t.panelClass]:[t.panelClass],r=t?.size??"md",o=Qo[r];return Mr(this.overlay,this.injector,e,{hasBackdrop:true,backdropClass:["africanies-overlay-backdrop","bg-ink/45","backdrop-blur-sm","dark:bg-ink/60"],panelClass:["africanies-modal-panel","bg-white","dark:bg-ink-950","text-ink","dark:text-white","rounded-lg","shadow-xl","border","border-border","dark:border-white/15","p-6","box-border","flex","flex-col","items-stretch",...o,"min-h-0","will-change-transform",...i,"!overflow-hidden","!max-h-[90vh]"],scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global().centerHorizontally().centerVertically()},"modal",t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac})};var Oc=["searchInput"],Rc=[[["","prefix",""]],[["","suffix",""]]],Nc=["[prefix]","[suffix]"];function Hs(n,e){return this.trackOption(e)}function Pc(n,e){if(n&1&&(ei$2(0,"span",5),Zf$1(1,"africanies-icon",17),gc$2()),n&2){let t=XE();mI(t.affixClass),Qy(),Qf$1("name",e)("size",16);}}function Fc(n,e){if(n&1&&(ei$2(0,"span",5),Zf$1(1,"img",18),gc$2()),n&2){let t=XE();mI(t.affixClass),Qy(),mI(t.optionPrefixImageClass),Qf$1("src",e,Hd$1);}}function Vc(n,e){if(n&1&&(ei$2(0,"span",19),MI(1),gc$2()),n&2){let t=XE();mI(t.affixClass),Qy(),Ic$2(" ",e," ");}}function Lc(n,e){n&1&&Zf$1(0,"africanies-icon",17),n&2&&Qf$1("name",e)("size",14);}function Bc(n,e){if(n&1&&Zf$1(0,"img",18),n&2){let t=XE().$implicit,i=XE(2);mI(i.optionPrefixImageClass),Qf$1("src",t.prefixImageUrl,Hd$1);}}function Hc(n,e){if(n&1&&(ei$2(0,"span",22),MI(1),gc$2()),n&2){let t=XE().$implicit;Qy(),gp$1(t.prefixText);}}function zc(n,e){n&1&&Zf$1(0,"africanies-icon",17),n&2&&Qf$1("name",e)("size",14);}function Uc(n,e){if(n&1){let t=GE();ei$2(0,"span",20),LE(1,Lc,1,2,"africanies-icon",17)(2,Bc,1,3,"img",21)(3,Hc,2,1,"span",22),MI(4),LE(5,zc,1,2,"africanies-icon",17),ei$2(6,"button",23),tp$1("click",function(r){let o=Gl(t).$implicit,u=XE(2);return zl(u.removeChip(o,r))}),Zf$1(7,"africanies-icon",24),gc$2()();}if(n&2){let t,i,r=e.$implicit,o=XE(2);Qy(),PE((t=r.prefix)?1:r.prefixImageUrl?2:r.prefixText?3:-1,t),Qy(3),Ic$2(" ",r.label," "),Qy(),PE((i=r.suffix)?5:-1,i),Qy(),Qf$1("disabled",o.disabled()),zf$1("aria-label","Remove "+r.label),Qy(),Qf$1("size",12);}}function jc(n,e){if(n&1&&VE(0,Uc,8,6,"span",20,Hs,true),n&2){let t=XE();HE(t.selectedList());}}function $c(n,e){if(n&1&&MI(0),n&2){let t=XE();Ic$2(" ",t.loadingLabel()," ");}}function Wc(n,e){if(n&1&&MI(0),n&2){let t=XE();Ic$2(" ",t.displayLabel()||t.triggerText()," ");}}function Gc(n,e){if(n&1&&Zf$1(0,"africanies-icon",25),n&2){let t=XE();mI("shrink-0 animate-spin "+t.modeColor.classes().text),Qf$1("size",16);}}function qc(n,e){n&1&&Zf$1(0,"africanies-icon",10),n&2&&Qf$1("size",16);}function Yc(n,e){if(n&1&&(ei$2(0,"span",12),Zf$1(1,"africanies-icon",17),gc$2()),n&2){let t=XE();mI(t.affixClass),Qy(),Qf$1("name",e)("size",16);}}function Kc(n,e){if(n&1){let t=GE();ei$2(0,"div",27)(1,"input",32,1),tp$1("input",function(r){Gl(t);let o=XE(2);return zl(o.onSearchInput(r))})("keydown",function(r){Gl(t);let o=XE(2);return zl(o.onSearchKeydown(r))}),gc$2()();}if(n&2){let t=XE(2);Qy(),Qf$1("value",t.searchQuery());}}function Qc(n,e){if(n&1&&(ei$2(0,"div",28),Zf$1(1,"africanies-icon",33),MI(2),gc$2()),n&2){let t=XE(2);Qy(),mI("shrink-0 animate-spin "+t.modeColor.classes().text),Qf$1("size",16),Qy(),Ic$2(" ",t.loadingLabel()," ");}}function Xc(n,e){if(n&1){let t=GE();ei$2(0,"button",36),tp$1("click",function(r){Gl(t);let o=XE(3);return zl(o.onCreateClick(r))})("mouseenter",function(){Gl(t);let r=XE(3);return zl(r.activeIndex.set(r.createIndex()))}),Zf$1(1,"africanies-icon",37),MI(2),gc$2();}if(n&2){let t=XE(3);mI(t.createRowClass()),Qy(),Qf$1("size",16),Qy(),Ic$2(" ",e.label," ");}}function Zc(n,e){if(n&1){let t=GE();ei$2(0,"button",38),tp$1("click",function(r){Gl(t);let o=XE(3);return zl(o.onFreeTextClick(r))})("mouseenter",function(){Gl(t);let r=XE(3);return zl(r.activeIndex.set(r.freeTextIndex()))}),MI(1),gc$2();}if(n&2){let t=XE(3);mI(t.freeTextClass()),zf$1("aria-selected",false),Qy(),Ic$2(' Add "',t.searchQuery().trim(),'" ');}}function Jc(n,e){if(n&1&&(LE(0,Xc,3,4,"button",34),LE(1,Zc,2,4,"button",35)),n&2){let t,i=XE(2);PE((t=i.create())?0:-1,t),Qy(),PE(i.showFreeTextRow()?1:-1);}}function eu(n,e){n&1&&(ei$2(0,"div",29),MI(1," No matches "),gc$2());}function tu(n,e){n&1&&Zf$1(0,"africanies-icon",42),n&2&&Qf$1("size",12);}function nu(n,e){if(n&1&&(ei$2(0,"span"),LE(1,tu,1,1,"africanies-icon",42),gc$2()),n&2){let t=XE().$implicit,i=XE(2);mI(i.multiCheckClass(t)),Qy(),PE(i.isSelected(t)?1:-1);}}function iu(n,e){n&1&&Zf$1(0,"africanies-icon",17),n&2&&Qf$1("name",e)("size",16);}function ru(n,e){if(n&1&&Zf$1(0,"img",18),n&2){let t=XE().$implicit,i=XE(2);mI(i.optionPrefixImageClass),Qf$1("src",t.prefixImageUrl,Hd$1);}}function ou(n,e){if(n&1&&(ei$2(0,"span",22),MI(1),gc$2()),n&2){let t=XE().$implicit;Qy(),gp$1(t.prefixText);}}function au(n,e){n&1&&Zf$1(0,"africanies-icon",17),n&2&&Qf$1("name",e)("size",16);}function su(n,e){if(n&1){let t=GE();ei$2(0,"button",39),tp$1("click",function(){let r=Gl(t).$implicit,o=XE(2);return zl(o.selectOption(r))})("mouseenter",function(){let r=Gl(t).$index,o=XE(2);return zl(o.activeIndex.set(o.optionIndex(r)))}),LE(1,nu,2,3,"span",40),LE(2,iu,1,2,"africanies-icon",17)(3,ru,1,3,"img",21)(4,ou,2,1,"span",22),ei$2(5,"span",41),MI(6),gc$2(),LE(7,au,1,2,"africanies-icon",17),gc$2();}if(n&2){let t,i,r=e.$implicit,o=e.$index,u=XE(2);mI(u.optionClass(o)),Qf$1("disabled",u.isOptionDisabled(r)),zf$1("aria-selected",u.isSelected(r)),Qy(),PE(u.multiple()?1:-1),Qy(),PE((t=r.prefix)?2:r.prefixImageUrl?3:r.prefixText?4:-1,t),Qy(4),gp$1(r.label),Qy(),PE((i=r.suffix)?7:-1,i);}}function lu(n,e){if(n&1&&(ei$2(0,"div",31),MI(1),gc$2()),n&2){let t=XE(2);Qy(),Ic$2(" Up to ",t.maxSelected()," selected ");}}function du(n,e){if(n&1){let t=GE();ei$2(0,"div",26),tp$1("keydown",function(r){Gl(t);let o=XE();return zl(o.onPanelKeydown(r))}),LE(1,Kc,3,1,"div",27),LE(2,Qc,3,4,"div",28)(3,Jc,2,2),LE(4,eu,2,0,"div",29),VE(5,su,8,8,"button",30,Hs,true),LE(7,lu,2,1,"div",31),gc$2();}if(n&2){let t=XE();zf$1("aria-multiselectable",t.multiple()||null),Qy(),PE(t.searchable()?1:-1),Qy(),PE(t.loading()?2:3),Qy(2),PE(t.filteredOptions().length===0&&!t.showFreeTextRow()&&!t.loading()?4:-1),Qy(),HE(t.filteredOptions()),Qy(2),PE(t.multiple()&&t.maxSelected()!==null&&t.maxSelected()!==void 0?7:-1);}}function cu(n,e){if(n&1){let t=GE();ei$2(0,"button",45),tp$1("click",function(r){Gl(t);let o=XE(2);return zl(o.onRetry(r))}),MI(1),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()||t.retrying()),Qy(),Ic$2(" ",t.retrying()?t.retryingLabel():t.retryLabel()," ");}}function uu(n,e){if(n&1&&(ei$2(0,"p",43)(1,"span"),MI(2),gc$2(),LE(3,cu,2,2,"button",44),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(2),gp$1(e),Qy(),PE(t.showRetry()?3:-1);}}function pu(n,e){if(n&1&&(ei$2(0,"p",46)(1,"span",47),Zf$1(2,"africanies-icon",33),MI(3),gc$2()()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(2),mI("shrink-0 animate-spin "+t.modeColor.classes().text),Qf$1("size",14),Qy(),Ic$2(" ",t.loadingLabel()," ");}}function mu(n,e){if(n&1&&(ei$2(0,"p",48),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}var fu=0,hu=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:4},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-4}],yt=class n{modal=T(ze$1,{optional:true});modeColor=T(re);controlId=`africanies-select-${++fu}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;affixClass=Xe;optionPrefixImageClass="size-4 shrink-0 rounded-full object-cover";hintClass=be;errorClass=Ce;panelPositions=hu;minPanelWidth=224;searchInput=bP("searchInput");triggerOrigin=bP(Oe);label=TP("");hint=TP(void 0);error=TP(null);showRetry=TP(false,{transform:RP});retryLabel=TP("Retry");retryingLabel=TP("Retrying\u2026");retrying=TP(false,{transform:RP});retry=wP();searchChange=wP();loading=TP(false,{transform:RP});loadingLabel=TP("Loading\u2026");placeholder=TP("");options=CP([]);selected=CP(null);searchable=TP(false,{transform:RP});allowFreeText=TP(false,{transform:RP});multiple=TP(false,{transform:RP});maxSelected=TP(null,{transform:e=>e==null||e===""?null:kP(e)});create=TP(null);disabledInput=TP(false,{alias:"disabled",transform:RP});showTriggerIcon=TP(true,{transform:RP});size=TP("md");open=Co$2(false);searchQuery=Co$2("");activeIndex=Co$2(0);cvaDisabled=Co$2(false);panelWidth=Co$2("auto");closingFromApi=false;disabled=QI(()=>this.disabledInput()||this.cvaDisabled());isBusy=QI(()=>this.loading()||this.retrying());triggerDisabled=QI(()=>this.disabled()||this.isBusy());shellClass=QI(()=>{let e=Qe;return this.error()&&(e+=` ${Ve$1}`),this.size()==="sm"&&(e+=" !h-8"),this.multiple()&&this.selectedList().length&&(e+=" !h-auto min-h-10 items-stretch py-1.5"),this.disabled()?e+=` ${Ze}`:this.loading()?e+=" cursor-wait":e+=" cursor-pointer",e});describedBy=QI(()=>this.error()?this.errorId:this.loading()?this.hintId:this.hint()?this.hintId:null);selectedList=QI(()=>{let e=this.selected();return this.multiple()?Array.isArray(e)?e:[]:e&&!Array.isArray(e)?[e]:[]});filteredOptions=QI(()=>{let e=this.searchQuery().trim().toLowerCase(),t=this.options();return !this.searchable()||!e?t:t.filter(i=>i.label.toLowerCase().includes(e))});showFreeTextRow=QI(()=>{if(!this.allowFreeText()||!this.searchable())return false;let e=this.searchQuery().trim();return e?!this.options().some(t=>t.label.toLowerCase()===e.toLowerCase()):false});createIndex=QI(()=>this.create()?0:-1);freeTextIndex=QI(()=>this.showFreeTextRow()?this.create()?1:0:-1);navigableCount=QI(()=>{let e=this.create()?1:0;return (this.showFreeTextRow()?1:0)+this.filteredOptions().length+e});displayLabel=QI(()=>{if(this.multiple())return "";let e=this.selected();return e&&!Array.isArray(e)?e.label:""});hasMultiSelection=QI(()=>this.multiple()&&this.selectedList().length>0);triggerText=QI(()=>this.hasMultiSelection()?"":this.placeholder()||"Select\u2026");singleSelected=QI(()=>{if(this.multiple())return null;let e=this.selected();return e&&!Array.isArray(e)?e:null});shellPrefix=QI(()=>this.singleSelected()?.prefix??null);shellPrefixImageUrl=QI(()=>this.shellPrefix()?null:this.singleSelected()?.prefixImageUrl??null);shellPrefixText=QI(()=>this.shellPrefix()||this.shellPrefixImageUrl()?null:this.singleSelected()?.prefixText??null);shellSuffix=QI(()=>this.singleSelected()?.suffix??null);onChange=()=>{};onTouched=()=>{};optionClass(e){let t=this.activeIndex()===this.optionIndex(e),i=this.modeColor.classes(),r="flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left text-body text-ink dark:text-white disabled:opacity-50 disabled:cursor-not-allowed";return t?`${r} ${i.soft}`:`${r} ${i.softHover}`}freeTextClass(){let e=this.activeIndex()===this.freeTextIndex(),t=this.modeColor.classes(),i=`flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left text-body ${t.text}`;return e?`${i} ${t.soft}`:`${i} ${t.softHover}`}createRowClass(){let e=this.activeIndex()===this.createIndex(),t=this.modeColor.classes(),i=`flex w-full cursor-pointer items-center gap-2 px-3 py-2 text-left text-body ${t.text}`;return e?`${i} ${t.soft}`:`${i} ${t.softHover}`}multiCheckClass(e){let t="inline-flex size-4 items-center justify-center rounded border shrink-0 text-white dark:border-white/20";if(!this.isSelected(e))return `${t} border-neutral-400`;let i=this.modeColor.classes();return `${t} ${i.bg} ${i.border}`}writeValue(e){this.selected.set(e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}trackOption(e){return `${e.label}:${String(e.value)}`}optionIndex(e){return (this.create()?1:0)+(this.showFreeTextRow()?1:0)+e}isSelected(e){return this.selectedList().some(t=>Object.is(t.value,e.value))}isOptionDisabled(e){if(e.disabled||this.disabled()||this.loading())return true;if(!this.multiple())return false;let t=this.maxSelected();return t==null||this.isSelected(e)?false:this.selectedList().length>=t}onShellClick(){this.toggleOpen();}onTriggerClick(e){e.stopPropagation(),this.toggleOpen();}toggleOpen(){if(!this.triggerDisabled()){if(this.open()){this.closePanel();return}this.openPanel();}}openPanel(){let t=this.triggerOrigin()?.elementRef.nativeElement?.getBoundingClientRect().width??0;this.panelWidth.set(t>0?t:this.minPanelWidth),this.open.set(true),this.activeIndex.set(0),queueMicrotask(()=>this.searchInput()?.nativeElement.focus());}closePanel(){this.open()&&(this.closingFromApi=true,this.open.set(false),this.onTouched(),queueMicrotask(()=>{this.closingFromApi=false;}));}onOutsideClick(e){let t=this.triggerOrigin()?.elementRef.nativeElement,i=e.target;t&&i&&t.contains(i)||this.closePanel();}onOverlayDetach(){this.closingFromApi||this.open()&&(this.open.set(false),this.onTouched());}onSearchInput(e){let t=e.target.value;this.searchQuery.set(t),this.activeIndex.set(0),this.searchChange.emit(t);}onSearchKeydown(e){e.stopPropagation(),this.onPanelKeydown(e);}onFreeTextClick(e){e.stopPropagation(),this.commitFreeText();}onCreateClick(e){e.stopPropagation(),this.openCreateModal();}onTriggerKeydown(e){this.disabled()||(e.key==="ArrowDown"||e.key==="ArrowUp"||e.key==="Enter"||e.key===" "?(e.preventDefault(),this.open()?e.key==="Enter"||e.key===" "?this.activateCurrent():this.moveActive(e.key==="ArrowDown"?1:-1):this.openPanel()):e.key==="Escape"&&this.closePanel());}onPanelKeydown(e){e.key==="ArrowDown"?(e.preventDefault(),this.moveActive(1)):e.key==="ArrowUp"?(e.preventDefault(),this.moveActive(-1)):e.key==="Enter"?(e.preventDefault(),this.activateCurrent()):e.key==="Escape"&&(e.preventDefault(),this.closePanel());}moveActive(e){let t=this.navigableCount();if(t===0)return;let i=(this.activeIndex()+e+t)%t;this.activeIndex.set(i);}activateCurrent(){let e=this.activeIndex();if(this.showFreeTextRow()&&e===this.freeTextIndex()){this.commitFreeText();return}if(this.create()&&e===this.createIndex()){this.openCreateModal();return}let t=e-(this.create()?1:0)-(this.showFreeTextRow()?1:0),i=this.filteredOptions()[t];i&&this.selectOption(i);}selectOption(e){if(!this.isOptionDisabled(e)){if(this.multiple()){let t=[...this.selectedList()],i=t.findIndex(r=>Object.is(r.value,e.value));i>=0?t.splice(i,1):t.push(e),this.commitSelection(t);return}this.commitSelection(e),this.closePanel(),this.searchQuery.set("");}}removeChip(e,t){if(t.stopPropagation(),this.disabled())return;let i=this.selectedList().filter(r=>!Object.is(r.value,e.value));this.commitSelection(i);}commitFreeText(){let e=this.searchQuery().trim();if(!e)return;let t={label:e,value:e};this.appendCreatedOption(t);}openCreateModal(){let e=this.create();if(!e)return;if(!this.modal){console.error("[africanies-select] create requires ModalService \u2014 call provideAfricaniesUiOverlays() at bootstrap.");return}this.modal.open(e.component,{data:e.data}).afterClosed().subscribe(i=>{if(i==null)return;let r=e.mapResult(i);this.appendCreatedOption(r);});}appendCreatedOption(e){if(this.options.set([...this.options(),e]),this.multiple()){let t=this.maxSelected(),i=[...this.selectedList()];i.some(r=>Object.is(r.value,e.value))||(t==null||i.length<t)&&i.push(e),this.commitSelection(i),this.searchQuery.set("");return}this.commitSelection(e),this.searchQuery.set(""),this.closePanel();}commitSelection(e){this.selected.set(e),this.onChange(e);}onBlur(){this.onTouched();}onRetry(e){e.preventDefault(),e.stopPropagation(),!(this.disabled()||this.retrying())&&this.retry.emit();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-select"]],viewQuery:function(t,i){t&1&&ip$1(i.searchInput,Oc,5)(i.triggerOrigin,Oe,5),t&2&&oI(2);},hostAttrs:[1,"relative","block"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],showRetry:[1,"showRetry"],retryLabel:[1,"retryLabel"],retryingLabel:[1,"retryingLabel"],retrying:[1,"retrying"],loading:[1,"loading"],loadingLabel:[1,"loadingLabel"],placeholder:[1,"placeholder"],options:[1,"options"],selected:[1,"selected"],searchable:[1,"searchable"],allowFreeText:[1,"allowFreeText"],multiple:[1,"multiple"],maxSelected:[1,"maxSelected"],create:[1,"create"],disabledInput:[1,"disabled","disabledInput"],showTriggerIcon:[1,"showTriggerIcon"],size:[1,"size"]},outputs:{retry:"retry",searchChange:"searchChange",options:"optionsChange",selected:"selectedChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:Nc,decls:24,vars:44,consts:[["triggerOrigin","cdkOverlayOrigin"],["searchInput",""],["cdkOverlayOrigin","",3,"click"],["data-slot","prefix",3,"class"],["data-slot","prefix","aria-hidden","true",3,"class"],["data-slot","prefix"],[1,"flex","h-full","min-h-0","min-w-0","flex-1","flex-wrap","items-center","gap-1.5","py-0"],["type","button",1,"flex","flex-1","cursor-pointer","items-center","justify-between","gap-2","min-w-[6rem]","text-left","bg-transparent","border-0","outline-none","disabled:cursor-not-allowed",3,"click","keydown","blur","id","disabled"],[1,"min-w-0","truncate"],["name","spinner","aria-hidden","true",3,"size","class"],["name","angle-down",1,"shrink-0","text-neutral-600","dark:text-neutral-400",3,"size"],["data-slot","suffix",3,"class"],["data-slot","suffix"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","overlayOutsideClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayMinWidth","cdkConnectedOverlayPush","cdkConnectedOverlayHasBackdrop"],["role","alert",1,"flex","flex-wrap","items-center","gap-x-1",3,"id","class"],["role","status","aria-live","polite",3,"id","class"],[3,"id","class"],[1,"shrink-0",3,"name","size"],["alt","","loading","lazy","aria-hidden","true",3,"src"],["data-slot","prefix","aria-hidden","true"],[1,"inline-flex","items-center","gap-1","rounded-md","border","border-neutral-300","bg-background-welcome","dark:border-white/20","dark:bg-ink","text-body-sm","text-ink","dark:text-white","px-2","py-0.5"],["alt","","loading","lazy","aria-hidden","true",3,"src","class"],["aria-hidden","true",1,"shrink-0"],["type","button",1,"inline-flex","cursor-pointer","text-neutral-600","dark:text-neutral-400","hover:text-ink","dark:hover:text-white","disabled:cursor-not-allowed",3,"click","disabled"],["name","close-small",3,"size"],["name","spinner","aria-hidden","true",3,"size"],["role","listbox","tabindex","-1",1,"w-full","rounded-md","border","border-border","dark:border-white/15","bg-white","dark:bg-ink-950","shadow-lg","max-h-64","overflow-auto","africanies-overlay-scroll",3,"keydown"],[1,"sticky","top-0","z-[1]","bg-white","dark:bg-ink-950","border-b","border-border","dark:border-white/10","p-2"],["role","status","aria-live","polite",1,"flex","items-center","gap-2","px-3","py-2","text-body-sm","text-neutral-600","dark:text-neutral-400"],[1,"px-3","py-2","text-body-sm","text-neutral-600","dark:text-neutral-400"],["type","button","role","option",3,"class","disabled"],[1,"px-3","py-1.5","text-caption","text-neutral-600","dark:text-neutral-400","border-t","border-border","dark:border-white/10"],["type","search","placeholder","Search\u2026",1,"w-full","rounded-md","border","border-neutral-300","dark:border-white/25","bg-transparent","text-body","text-ink","dark:text-white","px-2.5","py-1.5","outline-none","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink",3,"input","keydown","value"],["name","spinner",3,"size"],["type","button",3,"class"],["type","button","role","option",3,"class"],["type","button",3,"click","mouseenter"],["name","file-add",3,"size"],["type","button","role","option",3,"click","mouseenter"],["type","button","role","option",3,"click","mouseenter","disabled"],[3,"class"],[1,"min-w-0","flex-1","truncate","text-left"],["name","check",3,"size"],["role","alert",1,"flex","flex-wrap","items-center","gap-x-1",3,"id"],["type","button",1,"inline","cursor-pointer","underline","font-medium","text-danger","hover:text-danger/80","disabled:cursor-not-allowed","disabled:no-underline","disabled:opacity-50",3,"disabled"],["type","button",1,"inline","cursor-pointer","underline","font-medium","text-danger","hover:text-danger/80","disabled:cursor-not-allowed","disabled:no-underline","disabled:opacity-50",3,"click","disabled"],["role","status","aria-live","polite",3,"id"],[1,"inline-flex","items-center","gap-1.5"],[3,"id"]],template:function(t,i){if(t&1&&(tI(Rc),ei$2(0,"label"),MI(1),gc$2(),ei$2(2,"div",2,0),tp$1("click",function(){return i.onShellClick()}),LE(4,Pc,2,4,"span",3)(5,Fc,2,5,"span",3)(6,Vc,2,3,"span",4),ei$2(7,"span",5),nI(8),gc$2(),ei$2(9,"div",6),LE(10,jc,2,0),ei$2(11,"button",7),tp$1("click",function(o){return i.onTriggerClick(o)})("keydown",function(o){return i.onTriggerKeydown(o)})("blur",function(){return i.onBlur()}),ei$2(12,"span",8),LE(13,$c,1,1)(14,Wc,1,1),gc$2(),LE(15,Gc,1,3,"africanies-icon",9)(16,qc,1,1,"africanies-icon",10),gc$2()(),LE(17,Yc,2,4,"span",11),ei$2(18,"span",12),nI(19,1),gc$2()(),Uf$1(20,du,8,5,"ng-template",13),tp$1("backdropClick",function(){return i.closePanel()})("overlayOutsideClick",function(o){return i.onOutsideClick(o)})("detach",function(){return i.onOverlayDetach()}),LE(21,uu,4,5,"p",14)(22,pu,4,7,"p",15)(23,mu,2,4,"p",16)),t&2){let r,o,u,v=iI(3);mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(2),PE((r=i.shellPrefix())?4:(r=i.shellPrefixImageUrl())?5:(r=i.shellPrefixText())?6:-1,r),Qy(3),mI(i.affixClass),lp$1("hidden",!!i.shellPrefix()||!!i.shellPrefixImageUrl()||!!i.shellPrefixText()),Qy(2),lp$1("px-3",i.size()!=="sm")("px-2",i.size()==="sm"),Qy(),PE(i.multiple()&&i.selectedList().length?10:-1),Qy(),lp$1("text-body",i.size()!=="sm")("text-body-sm",i.size()==="sm"),Qf$1("id",i.controlId)("disabled",i.triggerDisabled()),zf$1("aria-expanded",i.open())("aria-haspopup","listbox")("aria-invalid",i.error()?true:null)("aria-busy",i.loading()?true:null)("aria-describedby",i.describedBy()),Qy(),lp$1("text-neutral-400",!i.loading()&&!i.displayLabel()&&!i.hasMultiSelection()),Qy(),PE(i.loading()&&!i.displayLabel()&&!i.hasMultiSelection()?13:14),Qy(2),PE(i.loading()?15:i.showTriggerIcon()?16:-1),Qy(2),PE((o=i.shellSuffix())?17:-1,o),Qy(),mI(i.affixClass),lp$1("hidden",!!i.shellSuffix()),Qy(2),Qf$1("cdkConnectedOverlayOrigin",v)("cdkConnectedOverlayOpen",i.open())("cdkConnectedOverlayPositions",i.panelPositions)("cdkConnectedOverlayWidth",i.panelWidth())("cdkConnectedOverlayMinWidth",i.panelWidth())("cdkConnectedOverlayPush",true)("cdkConnectedOverlayHasBackdrop",true),Qy(),PE((u=i.error())?21:i.loading()?22:(u=i.hint())?23:-1,u);}},dependencies:[g,Oe,ht],encapsulation:2})};var gu=[[["","prefix",""]],[["","suffix",""]]],_u=["[prefix]","[suffix]"];function yu(n,e){if(n&1&&(mc$2(0,"p",5),MI(1),yc$2()),n&2){let t=XE();mI(t.errorClass),Xf$1("id",t.errorId),Qy(),gp$1(e);}}function vu(n,e){if(n&1&&(mc$2(0,"p",6),MI(1),yc$2()),n&2){let t=XE();mI(t.hintClass),Xf$1("id",t.hintId),Qy(),gp$1(e);}}var bu=0,Gt=class n{controlId=`africanies-text-input-${++bu}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;affixClass=Xe;innerClass=_t;hintClass=be;errorClass=Ce;label=TP("");hint=TP(void 0);error=TP(null);placeholder=TP("");type=TP("text");autocomplete=TP("");value=CP("");disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());shellClass=QI(()=>{let e=Qe;return this.error()&&(e+=` ${Ve$1}`),this.disabled()&&(e+=` ${Ze}`),e});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.value.set(e??"");}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}onInput(e){let t=e.target.value;this.value.set(t),this.onChange(t);}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-text-input"]],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],placeholder:[1,"placeholder"],type:[1,"type"],autocomplete:[1,"autocomplete"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:_u,decls:10,vars:21,consts:[["data-slot","prefix"],[3,"input","blur","id","value","disabled"],["data-slot","suffix"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(tI(gu),mc$2(0,"label"),MI(1),yc$2(),mc$2(2,"div")(3,"span",0),nI(4),yc$2(),mc$2(5,"input",1),np$1("input",function(o){return i.onInput(o)})("blur",function(){return i.onBlur()}),yc$2(),mc$2(6,"span",2),nI(7,1),yc$2()(),LE(8,yu,2,4,"p",3)(9,vu,2,4,"p",4)),t&2){let r;mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(),mI(i.affixClass),Qy(2),mI(i.innerClass),Xf$1("id",i.controlId)("value",i.value())("disabled",i.disabled()),zf$1("type",i.type())("placeholder",i.placeholder()||null)("autocomplete",i.autocomplete()||null)("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),mI(i.affixClass),Qy(2),PE((r=i.error())?8:(r=i.hint())?9:-1,r);}},encapsulation:2})};var dt=class n{route=T(Ee$1,{optional:true});router=T(pt$1,{optional:true});hasParams(e){return Ti(this.snapshotBag(),e)}read(e){return Di(this.snapshotBag(),e)}write(e,t){if(!this.router||!this.route)return Promise.resolve(false);let i=$({},this.snapshotRecord());for(let o of Rn(t))delete i[o];let r=dn(e,t);for(let[o,u]of Object.entries(r))u!==void 0&&(i[o]=u);return this.router.navigate([],{relativeTo:this.route,queryParams:i,queryParamsHandling:""})}setPage(e,t){let i=t?.pagination?.pageParam??"page";return this.mergeQuery({[i]:e})}setSize(e,t){let i=t?.pagination?.pageParam??"page",r=t?.pagination?.sizeParam??"size";return this.mergeQuery({[i]:1,[r]:e})}mergeQuery(e){return !this.router||!this.route?Promise.resolve(false):this.router.navigate([],{relativeTo:this.route,queryParams:e,queryParamsHandling:"merge"})}snapshotBag(){return this.snapshotRecord()}snapshotRecord(){let e=this.route?.snapshot.queryParamMap;return e?Cu(e):{}}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};function Cu(n){let e={};for(let t of n.keys){let i=n.get(t);i!=null&&i!==""&&(e[t]=i);}return e}var nt=class n{overlay=T(Ut);injector=T(fe$1);open(e,t){let i=t?.panelClass==null?[]:Array.isArray(t.panelClass)?[...t.panelClass]:[t.panelClass];return Mr(this.overlay,this.injector,e,{hasBackdrop:true,backdropClass:["africanies-overlay-backdrop","bg-ink/45","backdrop-blur-sm","dark:bg-ink/60"],panelClass:["africanies-drawer-panel","bg-white","dark:bg-ink-950","text-ink","dark:text-white","shadow-xl","border-l","border-border","dark:border-white/15","flex","flex-col","items-stretch","h-full","min-h-0","w-[min(100%,24rem)]","p-6","will-change-transform",...i,"!overflow-hidden"],scrollStrategy:this.overlay.scrollStrategies.block(),positionStrategy:this.overlay.position().global().right("0").top("0").bottom("0")},"drawer",t)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac})};var xu=()=>[],wu=(n,e)=>e.key,Su=(n,e)=>e.value;function ku(n,e){if(n&1){let t=GE();ei$2(0,"africanies-text-input",16),tp$1("valueChange",function(r){Gl(t);let o=XE();return zl(o.patchSearch(r))}),gc$2();}if(n&2){let t=e,i=XE();Qf$1("label",t.label)("placeholder",t.placeholder??"")("value",i.draft().search??"");}}function Mu(n,e){if(n&1){let t=GE();ei$2(0,"div",9)(1,"div",17)(2,"p",18),MI(3," Date "),gc$2(),ei$2(4,"button",19),tp$1("click",function(){Gl(t);let r=XE();return zl(r.clearDateSection())}),MI(5," Clear "),gc$2()(),ei$2(6,"africanies-select",20),tp$1("selectedChange",function(r){Gl(t);let o=XE();return zl(o.onDateFieldChange(r))}),gc$2(),ei$2(7,"div",21)(8,"africanies-date-picker",22),tp$1("valueChange",function(r){Gl(t);let o=XE();return zl(o.patchFrom(r))}),gc$2(),ei$2(9,"africanies-date-picker",23),tp$1("valueChange",function(r){Gl(t);let o=XE();return zl(o.patchTo(r))}),gc$2()()();}if(n&2){let t=XE();Qy(6),Qf$1("searchable",true)("options",t.dateFieldOptions())("selected",t.selectedDateField()),Qy(2),Qf$1("value",t.draft().from??null)("max",t.draft().to||void 0),Qy(),Qf$1("value",t.draft().to??null)("min",t.draft().from||void 0);}}function Du(n,e){if(n&1){let t=GE();ei$2(0,"africanies-select",24),tp$1("selectedChange",function(r){Gl(t);let o=XE();return zl(o.onSortChange(r))}),gc$2();}if(n&2){let t=XE();Qf$1("searchable",t.sortOptions().length>6)("options",t.sortOptions())("selected",t.selectedSort());}}function Tu(n,e){if(n&1){let t=GE();ei$2(0,"button",32),tp$1("click",function(){let r=Gl(t).$implicit,o=XE(2).$implicit,u=XE(2);return zl(u.setFieldValue(o.key,r.value))}),MI(1),gc$2();}if(n&2){let t=e.$implicit,i=XE(2).$implicit,r=XE(2);mI(r.draft().values[i.key]===t.value?"font-medium":"border-neutral-300 text-neutral-600 hover:border-neutral-400 dark:border-white/15 dark:text-neutral-300"),cp$1("color",r.draft().values[i.key]===t.value?t.color??null:null)("border-color",r.draft().values[i.key]===t.value?t.color??null:null)("background-color",r.draft().values[i.key]===t.value&&t.color?t.color+"1A":null),Qy(),Ic$2(" ",t.label," ");}}function Au(n,e){if(n&1&&(ei$2(0,"div",27),VE(1,Tu,2,9,"button",31,Su),gc$2()),n&2){let t=XE().$implicit;Qy(),HE(t.options??FI(0,xu));}}function Eu(n,e){if(n&1){let t=GE();ei$2(0,"africanies-radio",33),tp$1("valueChange",function(r){Gl(t);let o=XE().$implicit,u=XE(2);return zl(u.onRadioChange(o.key,r))}),gc$2();}if(n&2){let t=XE().$implicit,i=XE(2);Qf$1("options",i.toRadioOptions(t.options))("value",i.draft().values[t.key]??null);}}function Iu(n,e){if(n&1){let t=GE();ei$2(0,"africanies-select",34),tp$1("retry",function(){Gl(t);let r=XE().$implicit,o=XE(2);return zl(o.retryFieldOptions(r.key))})("selectedChange",function(r){Gl(t);let o=XE().$implicit,u=XE(2);return zl(u.onSelectChange(o.key,r))}),gc$2();}if(n&2){let t=XE().$implicit,i=XE(2);Qf$1("searchable",true)("placeholder",t.placeholder??"Select\u2026")("options",i.selectOptionsFor(t))("selected",i.selectedForField(t))("error",i.optionErrorFor(t.key))("loading",i.optionLoadingFor(t.key))("retrying",i.optionLoadingFor(t.key))("showRetry",true);}}function Ou(n,e){if(n&1){let t=GE();ei$2(0,"africanies-text-input",35),tp$1("valueChange",function(r){Gl(t);let o=XE().$implicit,u=XE(2);return zl(u.setFieldValue(o.key,r))}),gc$2();}if(n&2){let t=XE().$implicit,i=XE(2);Qf$1("placeholder",t.placeholder??"")("value",i.draft().values[t.key]??"");}}function Ru(n,e){if(n&1){let t=GE();ei$2(0,"div",26)(1,"div",17)(2,"p",18),MI(3),gc$2(),ei$2(4,"button",19),tp$1("click",function(){let r=Gl(t).$implicit,o=XE(2);return zl(o.clearField(r.key))}),MI(5," Clear "),gc$2()(),LE(6,Au,3,1,"div",27)(7,Eu,1,2,"africanies-radio",28)(8,Iu,1,8,"africanies-select",29)(9,Ou,1,2,"africanies-text-input",30),gc$2();}if(n&2){let t,i=e.$implicit;Qy(3),Ic$2(" ",i.label," "),Qy(3),PE((t=i.type)==="enum"?6:t==="boolean"?7:t==="select"?8:t==="text"?9:-1);}}function Nu(n,e){if(n&1){let t=GE();ei$2(0,"africanies-select",25),tp$1("selectedChange",function(r){Gl(t);let o=XE();return zl(o.onFilterByChange(r))}),gc$2(),VE(1,Ru,10,2,"div",26,wu);}if(n&2){let t=XE();Qf$1("multiple",true)("searchable",true)("options",t.filterByOptions())("selected",t.selectedFilterBy()),Qy(),HE(t.activeFields());}}function Pu(n,e){if(n&1){let t=GE();ei$2(0,"div",12),Zf$1(1,"africanies-icon",36),ei$2(2,"div",37)(3,"p",38),MI(4,"Apply failed"),gc$2(),ei$2(5,"p",39),MI(6),gc$2()(),ei$2(7,"button",40),tp$1("click",function(){Gl(t);let r=XE();return zl(r.applyError.set(null))}),Zf$1(8,"africanies-icon",6),gc$2()();}n&2&&(Qy(),Qf$1("size",16),Qy(5),Ic$2(" ",e," "),Qy(2),Qf$1("size",14));}var Kn=class n{data=T(Je);ref=T(Ae);destroyRef=T(xe$2);filterOptions=T(_n);filterQuery=T(dt);config=this.data.config;title=QI(()=>this.data.title??"Filters");applying=Co$2(false);applyError=Co$2(null);draft=Co$2(On(this.data.state));selectedKeys=Co$2(Object.keys(this.data.state?.values??{}).filter(e=>!!this.data.state?.values?.[e]));optionLists=Co$2(this.seedOptionLists());optionErrors=Co$2({});optionLoading=Co$2({});optionLoadsStarted=new Set;constructor(){for(let e of this.selectedKeys())this.ensureFieldOptionsByKey(e);}activeFields=QI(()=>{let e=new Set(this.selectedKeys());return this.config.fields.filter(t=>e.has(t.key))});filterByOptions=QI(()=>this.config.fields.map(e=>({label:e.label,value:e.key})));dateFieldOptions=QI(()=>(this.config.date?.fields??[]).map(e=>({label:e.label,value:e.value})));sortOptions=QI(()=>(this.config.sort?.options??[]).map(e=>({label:e.label,value:e.value})));selectedFilterBy(){let e=new Set(this.selectedKeys());return this.filterByOptions().filter(t=>e.has(t.value))}selectedDateField(){let e=this.draft().date;return e?this.dateFieldOptions().find(t=>t.value===e)??{label:e,value:e}:null}selectedSort(){let e=this.draft().order;return e?this.sortOptions().find(t=>t.value===e)??{label:e,value:e}:null}onFilterByChange(e){let t=Array.isArray(e)?e.map(o=>o.value):e?[e.value]:[],i=new Set(this.selectedKeys()),r=new Set(t);for(let o of i)r.has(o)||this.clearField(o);this.selectedKeys.set(t);for(let o of t)this.ensureFieldOptionsByKey(o);}clearField(e){this.draft.update(t=>{let i=$({},t.values);return delete i[e],U$1($({},t),{values:i})});}setFieldValue(e,t){this.draft.update(i=>U$1($({},i),{values:U$1($({},i.values),{[e]:t})}));}patchSearch(e){this.draft.update(t=>U$1($({},t),{search:e||void 0}));}patchFrom(e){this.draft.update(t=>{let i=e??void 0,r=i&&t.to&&t.to<i?void 0:t.to;return U$1($({},t),{from:i,to:r})});}patchTo(e){this.draft.update(t=>{let i=e??void 0,r=i&&t.from&&t.from>i?void 0:t.from;return U$1($({},t),{from:r,to:i})});}clearDateSection(){this.draft.update(e=>U$1($({},e),{date:void 0,from:void 0,to:void 0}));}onDateFieldChange(e){let t=Array.isArray(e)?e[0]:e;this.draft.update(i=>U$1($({},i),{date:t?.value}));}onSortChange(e){let t=Array.isArray(e)?e[0]:e;this.draft.update(i=>U$1($({},i),{order:t?.value}));}onRadioChange(e,t){if(t==null){this.clearField(e);return}this.setFieldValue(e,t);}onSelectChange(e,t){let i=Array.isArray(t)?t[0]:t;if(!i){this.clearField(e);return}this.setFieldValue(e,String(i.value));}selectOptionsFor(e){return (this.optionLists()[e.key]??e.options??[]).map(r=>$($({label:r.label,value:r.value},r.prefixText?{prefixText:r.prefixText}:{}),r.prefixImageUrl?{prefixImageUrl:r.prefixImageUrl}:{}))}optionErrorFor(e){return this.optionErrors()[e]??null}optionLoadingFor(e){return this.optionLoading()[e]??false}retryFieldOptions(e){let t=this.config.fields.find(i=>i.key===e);t&&(this.optionLoadsStarted.delete(e),this.optionLists.update(i=>{let r=$({},i);return delete r[e],r}),this.optionErrors.update(i=>U$1($({},i),{[e]:null})),this.ensureFieldOptions(t));}seedOptionLists(){let e={};for(let[t,i]of Object.entries(this.data.optionLists??{}))e[t]=i.map(r=>$($({value:r.value,label:r.label},r.prefixText?{prefixText:r.prefixText}:{}),r.prefixImageUrl?{prefixImageUrl:r.prefixImageUrl}:{}));return e}ensureFieldOptionsByKey(e){let t=this.config.fields.find(i=>i.key===e);t&&this.ensureFieldOptions(t);}ensureFieldOptions(e){if(e.type!=="select"||e.options?.length||this.data.optionLists?.[e.key]!==void 0||e.optionsSource==null||e.optionsSource==="static"||e.optionsSource==="shipmentManifests")return;let t=e.key;this.optionLoadsStarted.has(t)||this.optionLists()[t]!==void 0&&!this.optionErrors()[t]||(this.optionLoadsStarted.add(t),this.optionLoading.update(i=>U$1($({},i),{[t]:true})),this.optionErrors.update(i=>U$1($({},i),{[t]:null})),this.filterOptions.resolveField(e).pipe(mt$1(1),Q(this.destroyRef)).subscribe({next:i=>{this.optionLists.update(r=>U$1($({},r),{[t]:i.map(o=>({value:o.value,label:o.label}))})),this.optionLoading.update(r=>U$1($({},r),{[t]:false}));},error:i=>{this.optionLoadsStarted.delete(t),this.optionErrors.update(r=>U$1($({},r),{[t]:this.catalogErrorMessage(i)})),this.optionLoading.update(r=>U$1($({},r),{[t]:false}));}}));}catalogErrorMessage(e){if(e instanceof ke){let t=e.error;if(t&&typeof t=="object"&&typeof t.message=="string")return t.message;if(typeof t=="string"&&t.trim())return t.trim();if(e.status===401||e.status===403)return "Authentication failed. Check your access token."}if(typeof e=="string"&&e.trim())return e.trim();if(e&&typeof e=="object"&&"message"in e){let t=e.message;if(typeof t=="string"&&t.trim())return t.trim()}return "Could not load options. Try again."}selectedForField(e){let t=this.draft().values[e.key];return t==null||t===""?null:this.selectOptionsFor(e).find(i=>i.value===t)??{label:t,value:t}}toRadioOptions(e){return (e??[]).map(t=>({label:t.label,value:t.value}))}onReset(){let e=Ai(true,this.draft());this.draft.set(e),this.selectedKeys.set([]);}onApply(){if(this.applying())return;let e=On(this.draft());e.page=1,e.size==null&&(e.size=this.filterQuery.read(this.config).size);let t=dn(e,this.config),i={applied:true,state:e,params:t},r=this.data.onApply;if(!r){this.commitApply(i);return}let o;try{o=r({state:e,params:t});}catch(S){this.applyError.set(this.errorMessage(S));return}if(o==null){this.commitApply(i);return}this.applying.set(true),this.applyError.set(null);let u=()=>{this.applying.set(false),this.commitApply(i);},v=S=>{this.applying.set(false),this.applyError.set(this.errorMessage(S));};if(Ih$1(o)){o.pipe(mt$1(1),Q(this.destroyRef)).subscribe({next:()=>u(),error:v});return}Promise.resolve(o).then(u,v);}commitApply(e){this.filterQuery.write(e.state,this.config),this.ref.close(e);}errorMessage(e){if(e instanceof ke){let t=e.error;return t&&typeof t=="object"&&typeof t.message=="string"?t.message:typeof t=="string"&&t.trim()?t.trim():e.status===0?"Network error. Check your connection and try again.":e.status===401||e.status===403?"Authentication failed. Check your access token and try again.":e.status>=500?"Server error. Try again in a moment.":e.message||`Request failed (${e.status}).`}if(typeof e=="string"&&e.trim())return e.trim();if(e&&typeof e=="object"&&"message"in e){let t=e.message;if(typeof t=="string"&&t.trim())return t.trim()}return "Could not apply filters. Try again."}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-filter-drawer"]],hostAttrs:[1,"block","h-full","min-h-0","overflow-hidden"],decls:21,vars:10,consts:[[1,"flex","h-full","min-h-0","flex-col","-mx-6"],[1,"flex","shrink-0","items-start","justify-between","gap-3","px-6","pb-4","pt-6"],[1,"min-w-0","flex","flex-col","gap-1"],[1,"m-0","text-caption","font-medium","uppercase","tracking-wide","text-neutral-600","dark:text-neutral-400"],[1,"m-0","text-heading-3","text-ink","dark:text-white"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Close",3,"click"],["name","close",3,"size"],[1,"africanies-overlay-scroll","flex","min-h-0","flex-1","flex-col","gap-5","overflow-y-auto","px-6","pb-5"],[3,"label","placeholder","value"],[1,"flex","flex-col","gap-3"],["label","Sort",3,"searchable","options","selected"],[1,"flex","shrink-0","flex-col","gap-2","border-t","border-border","bg-white","px-6","pt-3","pb-2","dark:border-white/10","dark:bg-ink-950"],["role","alert","aria-live","polite",1,"flex","items-start","gap-2.5","rounded-md","border","border-danger/20","border-l-[3px]","border-l-danger","bg-danger-subtle/40","px-3","py-2.5","dark:border-danger/25","dark:bg-danger/10"],[1,"flex","gap-2"],["africanies-button","","type","button","variant","ghost",1,"flex-1",3,"click","disabled"],["africanies-button","","type","button","variant","primary",1,"flex-1",3,"click","disabled"],[3,"valueChange","label","placeholder","value"],[1,"flex","items-center","justify-between","gap-2"],[1,"m-0","text-body-sm","font-medium","text-ink","dark:text-white"],["africanies-button","","type","button","variant","ghost","size","sm",3,"click"],["label","",3,"selectedChange","searchable","options","selected"],[1,"grid","grid-cols-2","gap-3"],["label","From",3,"valueChange","value","max"],["label","To",3,"valueChange","value","min"],["label","Sort",3,"selectedChange","searchable","options","selected"],["label","Filter by","placeholder","Select fields\u2026",3,"selectedChange","multiple","searchable","options","selected"],[1,"flex","flex-col","gap-2","border-t","border-border","pt-4","dark:border-white/10"],[1,"flex","flex-wrap","gap-2"],["label","",3,"options","value"],["label","",3,"searchable","placeholder","options","selected","error","loading","retrying","showRetry"],["label","",3,"placeholder","value"],["type","button",1,"cursor-pointer","rounded-md","border","px-2.5","py-1.5","text-body-sm","transition-colors",3,"color","border-color","background-color","class"],["type","button",1,"cursor-pointer","rounded-md","border","px-2.5","py-1.5","text-body-sm","transition-colors",3,"click"],["label","",3,"valueChange","options","value"],["label","",3,"retry","selectedChange","searchable","placeholder","options","selected","error","loading","retrying","showRetry"],["label","",3,"valueChange","placeholder","value"],["name","warning",1,"mt-0.5","shrink-0","text-danger",3,"size"],[1,"min-w-0","flex-1","flex","flex-col","gap-0.5"],[1,"m-0","text-caption","font-medium","text-danger"],[1,"m-0","text-caption","leading-snug","text-neutral-700","dark:text-neutral-300"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Dismiss",1,"shrink-0","!min-h-0","self-start","!px-1","!py-0","text-neutral-500","hover:text-ink","dark:text-neutral-400","dark:hover:text-white",3,"click"]],template:function(t,i){if(t&1&&(ei$2(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),MI(4," Filters "),gc$2(),ei$2(5,"h2",4),MI(6),gc$2()(),ei$2(7,"button",5),tp$1("click",function(){return i.ref.close()}),Zf$1(8,"africanies-icon",6),gc$2()(),ei$2(9,"div",7),LE(10,ku,1,3,"africanies-text-input",8),LE(11,Mu,10,7,"div",9),LE(12,Du,1,3,"africanies-select",10),LE(13,Nu,3,4),gc$2(),ei$2(14,"div",11),LE(15,Pu,9,3,"div",12),ei$2(16,"div",13)(17,"button",14),tp$1("click",function(){return i.onReset()}),MI(18," Reset "),gc$2(),ei$2(19,"button",15),tp$1("click",function(){return i.onApply()}),MI(20),gc$2()()()()),t&2){let r,o,u,v;Qy(6),Ic$2(" ",i.title()," "),Qy(2),Qf$1("size",18),Qy(2),PE((r=i.config.search)?10:-1,r),Qy(),PE((o=i.config.date)?11:-1,o),Qy(),PE((u=i.config.sort)?12:-1,u),Qy(),PE(i.config.fields.length?13:-1),Qy(2),PE((v=i.applyError())?15:-1,v),Qy(2),Qf$1("disabled",i.applying()),Qy(2),Qf$1("disabled",i.applying()),Qy(),Ic$2(" ",i.applying()?"Applying\u2026":"Apply"," ");}},dependencies:[g,Z,$t,Wt,yt,Gt],encapsulation:2})};var vn=class n{drawer=T(nt);filterQuery=T(dt);open(e){let t=this.filterQuery.hasParams(e.config)?U$1($({},e),{state:this.filterQuery.read(e.config)}):e;return this.drawer.open(Kn,{data:t,dismissible:true})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac})};function Fu(n,e){if(n&1){let t=GE();ei$2(0,"button",8),tp$1("click",function(){Gl(t);let r=XE();return zl(r.confirm())}),MI(1),gc$2(),ei$2(2,"button",9),tp$1("click",function(){Gl(t);let r=XE();return zl(r.cancel())}),MI(3),gc$2();}if(n&2){let t=XE();Qf$1("disabled",t.loading()),Qy(),Ic$2(" ",t.confirmLabel()," "),Qy(),Qf$1("disabled",t.loading()),Qy(),Ic$2(" ",t.cancelLabel()," ");}}function Vu(n,e){if(n&1){let t=GE();ei$2(0,"button",8),tp$1("click",function(){Gl(t);let r=XE();return zl(r.cancel())}),MI(1),gc$2(),ei$2(2,"button",10),tp$1("click",function(){Gl(t);let r=XE();return zl(r.confirm())}),MI(3),gc$2();}if(n&2){let t=XE();Qf$1("disabled",t.loading()),Qy(),Ic$2(" ",t.cancelLabel()," "),Qy(),Qf$1("variant",t.options.danger?"danger":"primary")("loading",t.loading()),Qy(),Ic$2(" ",t.confirmLabel()," ");}}var Qn=class n{titleId=`africanies-confirm-title-${zs()}`;messageId=`africanies-confirm-message-${zs()}`;options=T(Je);ref=T(Ae);destroyRef=T(xe$2);workSub=null;loading=Co$2(false);title=QI(()=>this.options.title??"Confirm");confirmLabel=QI(()=>this.options.confirmLabel??"Confirm");cancelLabel=QI(()=>this.options.cancelLabel??"Cancel");emphasizeCancel=QI(()=>this.options.emphasizeCancel===true);iconName=QI(()=>this.options.danger?"warning":"question");iconWellClass=QI(()=>{let e="inline-flex size-14 shrink-0 items-center justify-center rounded-2xl";return this.options.danger?`${e} bg-danger-subtle text-danger dark:bg-danger/20 dark:text-danger`:`${e} bg-export-subtle text-export dark:bg-export/20 dark:text-export-light`});constructor(){this.destroyRef.onDestroy(()=>this.workSub?.unsubscribe());}confirm(){if(this.loading())return;let e=this.options.onConfirm;if(!e){this.ref.close(true);return}this.loading.set(true),setTimeout(()=>this.runConfirmWork(e),0);}cancel(){this.loading()||this.ref.close(false);}runConfirmWork(e){this.destroyRef.destroyed||!this.loading()||(this.workSub?.unsubscribe(),this.workSub=Ah$1(()=>Lu(e)).pipe(mt$1(1)).subscribe({next:()=>this.ref.close(true),error:()=>this.loading.set(false)}));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-confirm-dialog"]],hostAttrs:[1,"block","w-full","min-w-0"],decls:12,vars:12,consts:[["role","alertdialog",1,"flex","flex-col","gap-5"],[1,"flex","flex-col","gap-3"],["aria-hidden","true"],[3,"name","size"],[1,"flex","min-w-0","flex-col","gap-1.5"],[1,"m-0","text-heading-3","font-semibold","text-ink","dark:text-white",3,"id"],[1,"m-0","text-body","text-neutral-600","dark:text-neutral-400",3,"id"],[1,"flex","flex-wrap","justify-end","gap-2"],["africanies-button","","type","button","variant","ghost",3,"click","disabled"],["africanies-button","","type","button","variant","primary",3,"click","disabled"],["africanies-button","","type","button",3,"click","variant","loading"]],template:function(t,i){t&1&&(ei$2(0,"div",0)(1,"div",1)(2,"div",2),Zf$1(3,"africanies-icon",3),gc$2(),ei$2(4,"div",4)(5,"h2",5),MI(6),gc$2(),ei$2(7,"p",6),MI(8),gc$2()()(),ei$2(9,"div",7),LE(10,Fu,4,4)(11,Vu,4,5),gc$2()()),t&2&&(zf$1("aria-labelledby",i.titleId)("aria-describedby",i.messageId)("aria-busy",i.loading()?true:null),Qy(2),mI(i.iconWellClass()),Qy(),Qf$1("name",i.iconName())("size",32),Qy(2),Qf$1("id",i.titleId),Qy(),Ic$2(" ",i.title()," "),Qy(),Qf$1("id",i.messageId),Qy(),Ic$2(" ",i.options.message," "),Qy(2),PE(i.emphasizeCancel()?10:11));},dependencies:[g,Z],encapsulation:2})};function Lu(n){let e;try{e=n();}catch(t){return ch$1(()=>t instanceof Error?t:new Error("Confirm action failed."))}return e==null?ah$1(void 0):typeof e.subscribe=="function"?e:Qe$2(e)}function zs(){return Math.random().toString(36).slice(2,10)}var bn=class n{modal=T(ze$1);confirm(e){return this.modal.open(Qn,{data:e,dismissible:e.dismissible===true}).afterClosed().pipe(ve$2(t=>t===true))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac})};function Us(){return Hn$2([ze$1,nt,bn,vn,{provide:Eo,useExisting:ze$1},{provide:Io,useExisting:nt}])}var Cn=new x("AFRICANIES_GOOGLE_PLACES_CONFIG");var Bu="https://places.googleapis.com/v1/places:autocomplete",Hu=["suggestions.placePrediction.placeId","suggestions.placePrediction.text","suggestions.placePrediction.structuredFormat","suggestions.placePrediction.types"].join(","),zu="id,displayName,formattedAddress,addressComponents,location",xn=class n{config=T(Cn,{optional:true});async getPredictions(e,t){let i=this.apiKey(),r=e.trim();if(!r||!i)return [];let o={input:r},u=(t??[]).map(R=>R.trim().toLowerCase()).filter(Boolean);u.length?o.includedRegionCodes=u:this.config?.region?.trim()&&(o.includedRegionCodes=[this.config.region.trim().toLowerCase()]),this.config?.language?.trim()&&(o.languageCode=this.config.language.trim());let v=await js(Bu,i,{method:"POST",fieldMask:Hu,body:JSON.stringify(o)}),S=[];for(let R of v.suggestions??[]){let O=R.placePrediction,U=O?.placeId?.trim();if(!O||!U)continue;let ie=O.text?.text?.trim()||O.structuredFormat?.mainText?.text?.trim()||"";if(!ie)continue;let ee={placeId:U,description:ie},de=O.structuredFormat?.mainText?.text?.trim(),oe=O.structuredFormat?.secondaryText?.text?.trim();de&&(ee.mainText=de),oe&&(ee.secondaryText=oe),S.push(ee);}return S}async getPlaceDetails(e){let t=this.apiKey(),i=ju(e);if(!i||!t)return null;let r=await js(`https://places.googleapis.com/v1/places/${encodeURIComponent(i)}`,t,{method:"GET",fieldMask:zu});return $u(r,i)}apiKey(){return this.config?.apiKey?.trim()??""}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};async function js(n,e,t){let u=t,{fieldMask:i}=u,r=qp$1(u,["fieldMask"]),o=await fetch(n,U$1($({},r),{headers:$({"Content-Type":"application/json","X-Goog-Api-Key":e,"X-Goog-FieldMask":i},r.headers)}));if(!o.ok)throw new Error(await Uu(o));return o.json()}async function Uu(n){try{let e=await n.json();if(e.error?.message?.trim())return e.error.message.trim()}catch{}switch(n.status){case 401:return "Authentication failed. Please check your API key.";case 403:return "Access denied. Enable Places API (New) for this key.";case 429:return "Too many requests. Please try again in a moment.";default:return `Places API request failed (${n.status}).`}}function ju(n){let e=n.trim();return e.startsWith("places/")?e.slice(7):e}function $u(n,e){let t=(n.addressComponents??[]).map(v=>({longName:v.longText??"",shortName:v.shortText??"",types:v.types??[]})),i=v=>t.find(S=>S.types.includes(v)),r=i("locality")??i("postal_town")??i("sublocality")??i("neighborhood")??i("administrative_area_level_2"),o=i("country"),u=i("landmark")??i("neighborhood")??i("sublocality")??i("premise")??i("point_of_interest");return {placeId:n.id||e,formattedAddress:n.formattedAddress??"",name:n.displayName?.text?.trim()||void 0,lat:n.location?.latitude,lng:n.location?.longitude,streetNumber:i("street_number")?.longName,route:i("route")?.longName,locality:r?.longName,administrativeAreaLevel1:i("administrative_area_level_1")?.longName,administrativeAreaLevel1Code:i("administrative_area_level_1")?.shortName,country:o?.longName,countryCode:o?.shortName,postalCode:i("postal_code")?.longName,landmark:u?.longName||void 0,addressComponents:t.length?t:void 0}}var Wu=[[["","prefix",""]],[["","suffix",""]]],Gu=["[prefix]","[suffix]"],qu=(n,e)=>e.placeId;function Yu(n,e){n&1&&(ei$2(0,"div",9),MI(1," Searching\u2026 "),gc$2());}function Ku(n,e){n&1&&(ei$2(0,"div",9),MI(1),gc$2()),n&2&&(Qy(),Ic$2(" ",e," "));}function Qu(n,e){n&1&&(ei$2(0,"div",9),MI(1," No matches "),gc$2());}function Xu(n,e){n&1&&(ei$2(0,"span",13),MI(1),gc$2()),n&2&&(Qy(),Ic$2(" ",e," "));}function Zu(n,e){if(n&1){let t=GE();ei$2(0,"button",11),tp$1("mousedown",function(r){return r.preventDefault()})("click",function(){let r=Gl(t).$implicit,o=XE(3);return zl(o.selectPrediction(r))})("mouseenter",function(){let r=Gl(t).$index,o=XE(3);return zl(o.activeIndex.set(r))}),ei$2(1,"span",12),MI(2),gc$2(),LE(3,Xu,2,1,"span",13),gc$2();}if(n&2){let t,i=e.$implicit,r=e.$index,o=XE(3);lp$1("bg-background-welcome",o.activeIndex()===r)("dark:bg-white/5",o.activeIndex()===r),Qf$1("id",o.optionId(r)),zf$1("aria-selected",o.activeIndex()===r),Qy(2),Ic$2(" ",i.mainText||i.description," "),Qy(),PE((t=i.secondaryText)?3:-1,t);}}function Ju(n,e){if(n&1&&VE(0,Zu,4,8,"button",10,qu),n&2){let t=XE(2);HE(t.predictions());}}function ep(n,e){if(n&1&&(ei$2(0,"div",8),LE(1,Yu,2,0,"div",9)(2,Ku,2,1,"div",9)(3,Qu,2,0,"div",9)(4,Ju,2,0),gc$2()),n&2){let t,i=XE();Qf$1("id",i.listboxId),Qy(),PE(i.loading()?1:(t=i.apiError())?2:i.predictions().length===0?3:4,t);}}function tp(n,e){if(n&1&&(ei$2(0,"p",14),MI(1),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(),gp$1(e);}}function np(n,e){if(n&1&&(ei$2(0,"p",15),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}var ip=0,rp=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:4},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-4}],Xn=class n{places=T(xn);destroyRef=T(xe$2);controlId=`africanies-address-input-${++ip}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;listboxId=`${this.controlId}-listbox`;labelClass=Te;affixClass=Xe;innerClass=_t;hintClass=be;errorClass=Ce;panelPositions=rp;minPanelWidth=224;triggerOrigin=bP(Oe);querySubject=new ue$1;label=TP("");hint=TP(void 0);error=TP(null);placeholder=TP("");countries=TP(void 0);debounceMs=TP(300,{transform:kP});value=CP(null);placeSelected=wP();queryChange=wP();disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());query=Co$2("");open=Co$2(false);loading=Co$2(false);predictions=Co$2([]);apiError=Co$2(null);activeIndex=Co$2(-1);panelWidth=Co$2(this.minPanelWidth);shellClass=QI(()=>{let e=Qe;return this.error()&&(e+=` ${Ve$1}`),this.disabled()&&(e+=` ${Ze}`),e});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);activeOptionId=QI(()=>{let e=this.activeIndex();return e<0||!this.open()?null:this.optionId(e)});onChange=()=>{};onTouched=()=>{};constructor(){mu$2(()=>{let e=this.value()?.formattedAddress?.trim()??"";e&&this.query.set(e);}),this.querySubject.pipe(Lh$1(()=>Oe$2(Math.max(0,Number(this.debounceMs())||0))),Xc$2(async e=>{let t=e.trim();if(!t)return this.predictions.set([]),this.apiError.set(null),this.loading.set(false),this.open.set(false),[];this.loading.set(true),this.open.set(true);try{let i=await this.places.getPredictions(t,this.countries());return this.apiError.set(null),i}catch(i){return this.apiError.set(i instanceof Error?i.message:"Could not load address suggestions."),[]}finally{this.loading.set(false);}}),Q(this.destroyRef)).subscribe(e=>{this.predictions.set(e),this.activeIndex.set(e.length?0:-1),this.query().trim().length>0&&this.open.set(true);});}writeValue(e){this.value.set(e),this.query.set(e?.formattedAddress??"");}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}optionId(e){return `${this.controlId}-option-${e}`}onInput(e){let t=e.target.value;this.query.set(t),this.queryChange.emit(t),this.value()!==null&&(this.value.set(null),this.onChange(null)),this.syncPanelWidth(),this.querySubject.next(t);}onFocus(){this.syncPanelWidth(),this.query().trim()&&this.predictions().length&&this.open.set(true);}onBlur(){this.onTouched();}onKeydown(e){if(!this.open()&&(e.key==="ArrowDown"||e.key==="ArrowUp")){this.predictions().length&&(this.open.set(true),e.preventDefault());return}if(!this.open()){e.key==="Escape"&&e.target.blur();return}let t=this.predictions().length;switch(e.key){case "ArrowDown":{if(e.preventDefault(),!t)return;this.activeIndex.set((this.activeIndex()+1)%t);break}case "ArrowUp":{if(e.preventDefault(),!t)return;this.activeIndex.set((this.activeIndex()-1+t)%t);break}case "Enter":{e.preventDefault();let i=this.activeIndex(),r=this.predictions()[i];r&&this.selectPrediction(r);break}case "Escape":{e.preventDefault(),this.closePanel();break}}}async selectPrediction(e){this.loading.set(true);try{let t=await this.places.getPlaceDetails(e.placeId);if(!t)return;this.query.set(t.formattedAddress),this.queryChange.emit(t.formattedAddress),this.value.set(t),this.onChange(t),this.placeSelected.emit(t),this.closePanel(),this.predictions.set([]);}finally{this.loading.set(false);}}closePanel(){this.open.set(false),this.activeIndex.set(-1);}onOutsideClick(e){this.triggerOrigin()?.elementRef.nativeElement?.contains(e.target)||this.closePanel();}onOverlayDetach(){this.open.set(false);}syncPanelWidth(){let t=this.triggerOrigin()?.elementRef.nativeElement?.getBoundingClientRect().width??this.minPanelWidth;this.panelWidth.set(Math.max(t,this.minPanelWidth));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-address-input"]],viewQuery:function(t,i){t&1&&ip$1(i.triggerOrigin,Oe,5),t&2&&oI();},hostAttrs:[1,"relative","block"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],placeholder:[1,"placeholder"],countries:[1,"countries"],debounceMs:[1,"debounceMs"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange",placeSelected:"placeSelected",queryChange:"queryChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:Gu,decls:12,vars:30,consts:[["triggerOrigin","cdkOverlayOrigin"],["cdkOverlayOrigin",""],["data-slot","prefix"],["type","text","role","combobox","autocomplete","off",3,"input","focus","keydown","blur","id","value","disabled"],["data-slot","suffix"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","overlayOutsideClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayMinWidth","cdkConnectedOverlayPush","cdkConnectedOverlayHasBackdrop"],["role","alert",3,"id","class"],[3,"id","class"],["role","listbox","tabindex","-1",1,"w-full","rounded-md","border","border-border","bg-white","shadow-lg","dark:border-white/15","dark:bg-ink-950","max-h-64","overflow-auto","africanies-overlay-scroll",3,"id"],[1,"px-3","py-2","text-body-sm","text-neutral-600","dark:text-neutral-400"],["type","button","role","option",1,"flex","w-full","flex-col","gap-0.5","px-3","py-2","text-left","text-body","text-ink","outline-none","cursor-pointer","hover:bg-background-welcome","focus-visible:bg-background-welcome","dark:text-white","dark:hover:bg-white/5","dark:focus-visible:bg-white/5",3,"id","bg-background-welcome","dark:bg-white/5"],["type","button","role","option",1,"flex","w-full","flex-col","gap-0.5","px-3","py-2","text-left","text-body","text-ink","outline-none","cursor-pointer","hover:bg-background-welcome","focus-visible:bg-background-welcome","dark:text-white","dark:hover:bg-white/5","dark:focus-visible:bg-white/5",3,"mousedown","click","mouseenter","id"],[1,"min-w-0","truncate","font-medium"],[1,"min-w-0","truncate","text-caption","text-neutral-600","dark:text-neutral-400"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(tI(Wu),ei$2(0,"label"),MI(1),gc$2(),ei$2(2,"div",1,0)(4,"span",2),nI(5),gc$2(),ei$2(6,"input",3),tp$1("input",function(o){return i.onInput(o)})("focus",function(){return i.onFocus()})("keydown",function(o){return i.onKeydown(o)})("blur",function(){return i.onBlur()}),gc$2(),ei$2(7,"span",4),nI(8,1),gc$2()(),Uf$1(9,ep,5,2,"ng-template",5),tp$1("backdropClick",function(){return i.closePanel()})("overlayOutsideClick",function(o){return i.onOutsideClick(o)})("detach",function(){return i.onOverlayDetach()}),LE(10,tp,2,4,"p",6)(11,np,2,4,"p",7)),t&2){let r,o=iI(3);mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(2),mI(i.affixClass),Qy(2),mI(i.innerClass),Qf$1("id",i.controlId)("value",i.query())("disabled",i.disabled()),zf$1("placeholder",i.placeholder()||null)("aria-expanded",i.open())("aria-controls",i.listboxId)("aria-autocomplete","list")("aria-activedescendant",i.activeOptionId())("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),mI(i.affixClass),Qy(2),Qf$1("cdkConnectedOverlayOrigin",o)("cdkConnectedOverlayOpen",i.open())("cdkConnectedOverlayPositions",i.panelPositions)("cdkConnectedOverlayWidth",i.panelWidth())("cdkConnectedOverlayMinWidth",i.panelWidth())("cdkConnectedOverlayPush",true)("cdkConnectedOverlayHasBackdrop",true),Qy(),PE((r=i.error())?10:(r=i.hint())?11:-1,r);}},dependencies:[Oe,ht],encapsulation:2})};function Xo(n){return Hn$2([{provide:Cn,useValue:n}])}function op(n,e){n&1&&Zf$1(0,"africanies-icon",5),n&2&&Qf$1("size",12);}function ap(n,e){if(n&1&&(ei$2(0,"p",9),MI(1),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(),gp$1(e);}}function sp(n,e){if(n&1&&(ei$2(0,"p",10),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}var lp=0,Zn=class n{modeColor=T(re);controlId=`africanies-checkbox-${++lp}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;hintClass=be;errorClass=Ce;label=TP("");hint=TP(void 0);error=TP(null);value=CP(false);disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());markClass=QI(()=>{let e="pointer-events-none flex size-4 items-center justify-center rounded border text-white transition-colors peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-ink",t=this.error()?" !border-danger dark:!border-danger":"";if(this.value()){let i=this.modeColor.classes();return `${e} ${i.bg} ${i.border}${t}`}return `${e} border-neutral-400 bg-white dark:border-white/40 dark:bg-ink-950${t}`});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.value.set(!!e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}onChangeEvent(e){let t=e.target.checked;this.value.set(t),this.onChange(t);}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-checkbox"]],hostAttrs:[1,"inline-flex","max-w-full"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],decls:10,vars:21,consts:[[1,"inline-flex","max-w-full","flex-col","gap-1.5"],[1,"inline-flex","items-center","gap-2.5","text-body","text-ink","dark:text-white"],[1,"relative","inline-flex","size-4","shrink-0"],["type","checkbox",1,"peer","absolute","inset-0","z-10","m-0","size-full","opacity-0",3,"change","blur","id","checked","disabled"],["aria-hidden","true"],["name","check",1,"text-white",3,"size"],[1,"text-body","leading-5"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(ei$2(0,"div",0)(1,"label",1)(2,"span",2)(3,"input",3),tp$1("change",function(o){return i.onChangeEvent(o)})("blur",function(){return i.onBlur()}),gc$2(),ei$2(4,"span",4),LE(5,op,1,1,"africanies-icon",5),gc$2()(),ei$2(6,"span",6),MI(7),gc$2()(),LE(8,ap,2,4,"p",7)(9,sp,2,4,"p",8),gc$2()),t&2){let r;Qy(),lp$1("opacity-50",i.disabled())("cursor-pointer",!i.disabled())("cursor-not-allowed",i.disabled()),zf$1("for",i.controlId),Qy(2),lp$1("cursor-pointer",!i.disabled())("cursor-not-allowed",i.disabled()),Qf$1("id",i.controlId)("checked",i.value())("disabled",i.disabled()),zf$1("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),mI(i.markClass()),Qy(),PE(i.value()?5:-1),Qy(2),gp$1(i.label()),Qy(),PE((r=i.error())?8:(r=i.hint())?9:-1,r);}},dependencies:[g],encapsulation:2})};var dp=["preview"],cp=["snapshot"];function up(n,e){if(n&1&&(ei$2(0,"p",9),MI(1),gc$2()),n&2){let t=XE();Qf$1("id",t.errorId),Qy(),Ic$2(" ",e," ");}}function pp(n,e){n&1&&(ei$2(0,"p",17),MI(1," Starting camera\u2026 "),gc$2());}function mp(n,e){if(n&1&&(ei$2(0,"div",10),Zf$1(1,"video",16,1),LE(3,pp,2,0,"p",17),gc$2()),n&2){let t=XE();Qy(3),PE(t.starting()?3:-1);}}var Dr=class n{destroyRef=T(xe$2);ref=T(Ae);preview=bP("preview");snapshot=bP("snapshot");titleId=`africanies-camera-title-${Math.random().toString(36).slice(2,10)}`;hintId=`${this.titleId}-hint`;errorId=`${this.titleId}-error`;starting=Co$2(true);capturing=Co$2(false);streamActive=Co$2(false);error=Co$2(null);stream=null;facing="environment";constructor(){this.destroyRef.onDestroy(()=>this.stopStream()),Cy(()=>{this.startStream();});}cancel(){this.stopStream(),this.ref.close();}switchFacing(){this.facing=this.facing==="environment"?"user":"environment",this.startStream();}capture(){let e=this.preview()?.nativeElement,t=this.snapshot()?.nativeElement;if(!e||!t||!this.streamActive()||this.capturing())return;let i=e.videoWidth,r=e.videoHeight;if(!i||!r){this.error.set("Camera is not ready yet. Try again in a moment.");return}this.capturing.set(true),t.width=i,t.height=r;let o=t.getContext("2d");if(!o){this.capturing.set(false),this.error.set("Could not capture this frame. Try another browser.");return}o.drawImage(e,0,0,i,r),t.toBlob(u=>{if(this.capturing.set(false),!u){this.error.set("Could not create the photo. Try again.");return}let v=new File([u],`camera-${Date.now()}.jpg`,{type:"image/jpeg",lastModified:Date.now()});this.stopStream(),this.ref.close(v);},"image/jpeg",.92);}async startStream(){if(this.starting.set(true),this.error.set(null),this.streamActive.set(false),this.stopStream(),typeof navigator>"u"||!navigator.mediaDevices?.getUserMedia){this.starting.set(false),this.error.set("Camera capture is not available in this browser. Use Choose files instead.");return}try{this.stream=await navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:{ideal:this.facing},width:{ideal:1280},height:{ideal:720}}});let e=this.preview()?.nativeElement;if(!e){this.stopStream(),this.starting.set(!1),this.error.set("Camera preview failed to start.");return}e.srcObject=this.stream,await e.play().catch(()=>{}),this.streamActive.set(!0),this.starting.set(!1);}catch{this.starting.set(false),this.streamActive.set(false),this.error.set("Could not access the camera. Check permissions and try again.");}}stopStream(){let e=this.preview()?.nativeElement;if(e&&(e.srcObject=null),this.stream){for(let t of this.stream.getTracks())t.stop();this.stream=null;}this.streamActive.set(false);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-camera-capture-dialog"]],viewQuery:function(t,i){t&1&&ip$1(i.preview,dp,5)(i.snapshot,cp,5),t&2&&oI(2);},decls:19,vars:10,consts:[["snapshot",""],["preview",""],["role","dialog","aria-modal","true",1,"flex","w-full","flex-col","gap-4"],[1,"flex","items-start","justify-between","gap-3"],[1,"min-w-0"],[1,"m-0","text-heading-3","font-semibold","text-ink","dark:text-white",3,"id"],[1,"m-0","mt-1","text-body-sm","text-neutral-600","dark:text-neutral-400",3,"id"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!px-2",3,"click","disabled"],["name","refresh",3,"size"],["role","alert",1,"m-0","text-body-sm","text-danger",3,"id"],[1,"relative","aspect-video","w-full","min-h-[12rem]","overflow-hidden","rounded-md","bg-ink-950","ring-1","ring-border","dark:ring-white/15"],[1,"flex","flex-wrap","justify-end","gap-2"],["africanies-button","","type","button","variant","ghost",3,"click"],["africanies-button","","type","button","variant","primary",3,"click","disabled"],["name","camera",3,"size"],["aria-hidden","true",1,"sr-only"],["autoplay","","playsinline","","muted","",1,"size-full","object-cover"],[1,"absolute","inset-0","m-0","flex","items-center","justify-center","bg-ink/50","text-body-sm","text-white"]],template:function(t,i){if(t&1&&(ei$2(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),MI(4," Take a photo "),gc$2(),ei$2(5,"p",6),MI(6," Allow camera access, then capture when ready. "),gc$2()(),ei$2(7,"button",7),tp$1("click",function(){return i.switchFacing()}),Zf$1(8,"africanies-icon",8),gc$2()(),LE(9,up,2,2,"p",9)(10,mp,4,1,"div",10),ei$2(11,"div",11)(12,"button",12),tp$1("click",function(){return i.cancel()}),MI(13," Cancel "),gc$2(),ei$2(14,"button",13),tp$1("click",function(){return i.capture()}),Zf$1(15,"africanies-icon",14),MI(16," Capture "),gc$2()(),Zf$1(17,"canvas",15,0),gc$2()),t&2){let r;zf$1("aria-labelledby",i.titleId)("aria-describedby",i.error()?i.errorId:i.hintId),Qy(3),Qf$1("id",i.titleId),Qy(2),Qf$1("id",i.hintId),Qy(2),Qf$1("disabled",!i.streamActive()),zf$1("aria-label","Switch camera"),Qy(),Qf$1("size",16),Qy(),PE((r=i.error())?9:10,r),Qy(5),Qf$1("disabled",!i.streamActive()||i.capturing()),Qy(),Qf$1("size",16);}},dependencies:[g,Z],encapsulation:2})};function Tr(n,e){let t=$s(e);if(!t.length)return true;let i=n.name.toLowerCase(),r=(n.type||"").toLowerCase();return t.some(o=>o.startsWith(".")?i.endsWith(o):o.endsWith("/*")?r.startsWith(o.slice(0,-1)):r===o)}function Jn(n){let e=$s(n),t=[],i=new Set;for(let r of e){let o=fp(r);i.has(o)||(i.add(o),t.push(o));}return t}function $s(n){return n.split(",").map(e=>e.trim().toLowerCase()).filter(Boolean)}function fp(n){return n==="image/*"?"Images":n==="video/*"?"Video":n==="audio/*"?"Audio":n==="application/pdf"||n===".pdf"?"PDF":n==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"||n===".xlsx"||n===".xls"||n==="application/vnd.ms-excel"?"Excel":n==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||n===".docx"||n===".doc"||n==="application/msword"?"Word":n==="application/zip"||n===".zip"?"ZIP":n.startsWith(".")?n.slice(1).toUpperCase():n.endsWith("/*")?`${n.slice(0,-2)} files`:(n.includes("/")?n.split("/")[1]:n).toUpperCase()}function ei(n){let e=n.lastIndexOf(".");return e<0||e===n.length-1?"":n.slice(e+1).toUpperCase().slice(0,5)}function hp(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=XE();Qy(),Ic$2(" \xB7 ",t.data.file.type);}}function gp(n,e){if(n&1&&Zf$1(0,"img",8),n&2){let t=XE();Qf$1("src",t.src(),Hd$1)("alt",t.data.file.name);}}function _p(n,e){n&1&&(ei$2(0,"div",9),Zf$1(1,"africanies-icon",10),ei$2(2,"p",11),MI(3," Preview not available "),gc$2(),ei$2(4,"p",12),MI(5," You can\u2019t view this file here. Only images can be previewed before upload. "),gc$2()()),n&2&&(Qy(),Qf$1("size",32));}var Ar=class n{data=T(Je);ref=T(Ae);destroyRef=T(xe$2);titleId=`africanies-file-preview-${Math.random().toString(36).slice(2,10)}`;ownedUrl;constructor(){this.ownedUrl=this.data.isImage&&!this.data.previewUrl?URL.createObjectURL(this.data.file):null,this.destroyRef.onDestroy(()=>{this.ownedUrl&&URL.revokeObjectURL(this.ownedUrl);});}src=QI(()=>this.data.previewUrl??this.ownedUrl??"");kind=QI(()=>{let e=(this.data.file.type||"").toLowerCase();return this.data.isImage||e.startsWith("image/")?"image":"unavailable"});sizeLabel(){let e=this.data.file.size;return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}close(){this.ref.close();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-file-preview-dialog"]],hostAttrs:[1,"flex","min-h-0","w-full","flex-col","overflow-hidden"],decls:13,vars:7,consts:[["role","dialog","aria-modal","true",1,"flex","min-h-0","w-full","flex-1","flex-col"],[1,"flex","shrink-0","items-start","justify-between","gap-3","pb-4"],[1,"min-w-0"],[1,"m-0","truncate","text-heading-3","font-semibold","text-ink","dark:text-white",3,"id"],[1,"m-0","mt-1","text-body-sm","text-neutral-600","dark:text-neutral-400"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Close preview",1,"!px-2",3,"click"],["name","close",3,"size"],[1,"africanies-overlay-scroll","min-h-0","flex-1","overflow-y-auto"],[1,"max-h-[min(70vh,40rem)]","w-full","rounded-md","object-contain","bg-background-welcome","ring-1","ring-border","dark:bg-ink","dark:ring-white/15",3,"src","alt"],[1,"flex","flex-col","items-center","gap-3","rounded-md","bg-background-welcome","px-6","py-10","text-center","ring-1","ring-border","dark:bg-white/5","dark:ring-white/15"],["name","eye-slash",1,"text-neutral-500",3,"size"],[1,"m-0","text-body","font-medium","text-ink","dark:text-white"],[1,"m-0","max-w-sm","text-body-sm","text-neutral-600","dark:text-neutral-400"]],template:function(t,i){t&1&&(ei$2(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2",3),MI(4),gc$2(),ei$2(5,"p",4),MI(6),LE(7,hp,2,1,"span"),gc$2()(),ei$2(8,"button",5),tp$1("click",function(){return i.close()}),Zf$1(9,"africanies-icon",6),gc$2()(),ei$2(10,"div",7),LE(11,gp,1,2,"img",8)(12,_p,6,1,"div",9),gc$2()()),t&2&&(zf$1("aria-labelledby",i.titleId),Qy(3),Qf$1("id",i.titleId),Qy(),Ic$2(" ",i.data.file.name," "),Qy(2),Ic$2(" ",i.sizeLabel()," "),Qy(),PE(i.data.file.type?7:-1),Qy(2),Qf$1("size",16),Qy(2),PE(i.kind()==="image"?11:12));},dependencies:[g,Z],encapsulation:2})};var yp=["fileInput"],vp=["cameraInput"];function bp(n,e){return this.trackResult(e)}function Cp(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=XE();mI(t.labelClass),Qy(),gp$1(t.label());}}function xp(n,e){if(n&1){let t=GE();ei$2(0,"button",16),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.openFilePicker())}),Zf$1(1,"africanies-icon",17),MI(2),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Qf$1("size",16),Qy(),Ic$2(" ",t.chooseLabel()," ");}}function wp(n,e){if(n&1){let t=GE();ei$2(0,"button",16),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.openCamera())}),Zf$1(1,"africanies-icon",18),MI(2," Camera "),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Qf$1("size",16);}}function Sp(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=e.$implicit,i=XE(3);mI(i.chipClass),Qy(),gp$1(t);}}function kp(n,e){if(n&1&&(ei$2(0,"div",13),VE(1,Sp,2,3,"span",4,jE),gc$2()),n&2){let t=XE(2);Qy(),HE(t.acceptChips());}}function Mp(n,e){if(n&1){let t=GE();ei$2(0,"div",10),tp$1("dragenter",function(r){Gl(t);let o=XE();return zl(o.onDragEnter(r))})("dragover",function(r){Gl(t);let o=XE();return zl(o.onDragOver(r))})("dragleave",function(r){Gl(t);let o=XE();return zl(o.onDragLeave(r))})("drop",function(r){Gl(t);let o=XE();return zl(o.onDrop(r))}),ei$2(1,"div",11),LE(2,xp,3,3,"button",12),LE(3,wp,3,2,"button",12),LE(4,kp,3,0,"div",13),gc$2(),ei$2(5,"p",14),MI(6),gc$2(),Jf$1(7,15),gc$2();}if(n&2){let t=XE(),i=iI(9);mI(t.panelClass()),zf$1("aria-invalid",t.error()?true:null)("aria-describedby",t.describedBy()),Qy(2),PE(t.allowFileSelect()?2:-1),Qy(),PE(t.allowCamera()?3:-1),Qy(),PE(t.acceptChips().length?4:-1),Qy(2),Ic$2(" ",t.dropHint()," "),Qy(),Qf$1("ngTemplateOutlet",i);}}function Dp(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=e.$implicit,i=XE(3);mI(i.chipClass),Qy(),gp$1(t);}}function Tp(n,e){if(n&1&&(ei$2(0,"div",22),VE(1,Dp,2,3,"span",4,jE),gc$2()),n&2){let t=XE(2);Qy(),HE(t.acceptChips());}}function Ap(n,e){if(n&1){let t=GE();ei$2(0,"button",16),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.openFilePicker())}),MI(1," Browse "),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled());}}function Ep(n,e){if(n&1){let t=GE();ei$2(0,"button",25),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.openCamera())}),Zf$1(1,"africanies-icon",18),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Qf$1("size",16);}}function Ip(n,e){if(n&1){let t=GE();ei$2(0,"div",10),tp$1("dragenter",function(r){Gl(t);let o=XE();return zl(o.onDragEnter(r))})("dragover",function(r){Gl(t);let o=XE();return zl(o.onDragOver(r))})("dragleave",function(r){Gl(t);let o=XE();return zl(o.onDragLeave(r))})("drop",function(r){Gl(t);let o=XE();return zl(o.onDrop(r))}),Zf$1(1,"africanies-icon",19),ei$2(2,"div",20)(3,"p",21),MI(4),gc$2(),LE(5,Tp,3,0,"div",22),gc$2(),ei$2(6,"div",23),LE(7,Ap,2,1,"button",12),LE(8,Ep,2,2,"button",24),gc$2()(),Jf$1(9,15);}if(n&2){let t=XE(),i=iI(9);mI(t.compactClass()),zf$1("aria-invalid",t.error()?true:null)("aria-describedby",t.describedBy()),Qy(),Qf$1("size",20),Qy(3),Ic$2(" ",t.dropTitle()," "),Qy(),PE(t.acceptChips().length?5:-1),Qy(2),PE(t.allowFileSelect()?7:-1),Qy(),PE(t.allowCamera()?8:-1),Qy(),Qf$1("ngTemplateOutlet",i);}}function Op(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=e.$implicit,i=XE(3);mI(i.chipClass),Qy(),gp$1(t);}}function Rp(n,e){if(n&1&&(ei$2(0,"div",33),VE(1,Op,2,3,"span",4,jE),gc$2()),n&2){let t=XE(2);Qy(),HE(t.acceptChips());}}function Np(n,e){if(n&1){let t=GE();ei$2(0,"button",16),tp$1("click",function(r){return Gl(t),XE(2).openFilePicker(),zl(r.stopPropagation())}),Zf$1(1,"africanies-icon",17),MI(2),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Qf$1("size",16),Qy(),Ic$2(" ",t.chooseLabel()," ");}}function Pp(n,e){if(n&1){let t=GE();ei$2(0,"button",25),tp$1("click",function(r){return Gl(t),XE(2).openCamera(),zl(r.stopPropagation())}),Zf$1(1,"africanies-icon",18),MI(2," Camera "),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Qf$1("size",16);}}function Fp(n,e){if(n&1){let t=GE();ei$2(0,"div",26),tp$1("click",function(r){Gl(t);let o=XE();return zl(o.onDropzoneActivate(r))})("keydown.enter",function(r){Gl(t);let o=XE();return zl(o.onDropzoneActivate(r))})("keydown.space",function(r){Gl(t);let o=XE();return zl(o.onDropzoneActivate(r))})("dragenter",function(r){Gl(t);let o=XE();return zl(o.onDragEnter(r))})("dragover",function(r){Gl(t);let o=XE();return zl(o.onDragOver(r))})("dragleave",function(r){Gl(t);let o=XE();return zl(o.onDragLeave(r))})("drop",function(r){Gl(t);let o=XE();return zl(o.onDrop(r))}),ei$2(1,"div",27)(2,"span",28),Zf$1(3,"africanies-icon",29),gc$2(),ei$2(4,"div",30)(5,"p",31),MI(6),gc$2(),ei$2(7,"p",32),MI(8),gc$2()(),LE(9,Rp,3,0,"div",33),gc$2(),ei$2(10,"div",34),LE(11,Np,3,3,"button",12),LE(12,Pp,3,2,"button",24),gc$2()(),Jf$1(13,15);}if(n&2){let t=XE(),i=iI(9);mI(t.dropzoneClass()),zf$1("aria-disabled",t.disabled()?true:null)("aria-invalid",t.error()?true:null)("aria-describedby",t.describedBy()),Qy(3),Qf$1("size",24),Qy(3),Ic$2(" ",t.dropTitle()," "),Qy(2),Ic$2(" ",t.dropHint()," "),Qy(),PE(t.acceptChips().length?9:-1),Qy(2),PE(t.allowFileSelect()?11:-1),Qy(),PE(t.allowCamera()?12:-1),Qy(),Qf$1("ngTemplateOutlet",i);}}function Vp(n,e){n&1&&(ei$2(0,"p",5),MI(1),gc$2()),n&2&&(Qy(),gp$1(e));}function Lp(n,e){if(n&1&&(ei$2(0,"p",35),MI(1),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(),gp$1(e);}}function Bp(n,e){if(n&1&&(ei$2(0,"p",36),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}function Hp(n,e){if(n&1&&Zf$1(0,"img",39),n&2){let t=XE().$implicit;Qf$1("src",t.previewUrl,Hd$1)("alt",t.file.name);}}function zp(n,e){n&1&&(ei$2(0,"span",47),MI(1),gc$2()),n&2&&(Qy(),Ic$2(" ",e," "));}function Up(n,e){if(n&1&&(ei$2(0,"div",40),Zf$1(1,"africanies-icon",46),LE(2,zp,2,1,"span",47),gc$2()),n&2){let t,i=XE().$implicit,r=XE(3);Qy(),Qf$1("name",r.nonImageIcon(i.file))("size",22),Qy(),PE((t=r.extensionOf(i.file))?2:-1,t);}}function jp(n,e){if(n&1&&(ei$2(0,"span"),MI(1),gc$2()),n&2){let t=XE().$implicit,i=XE(3);Qy(),Ic$2(" \xB7 ",i.kindLabel(t.file));}}function $p(n,e){if(n&1){let t=GE();ei$2(0,"li"),LE(1,Hp,1,2,"img",39)(2,Up,3,3,"div",40),ei$2(3,"div",20)(4,"p",41),MI(5),gc$2(),ei$2(6,"p",42),MI(7),LE(8,jp,2,1,"span"),ei$2(9,"span"),MI(10," \xB7 "),gc$2(),ei$2(11,"button",43),tp$1("click",function(r){let o=Gl(t).$implicit;return XE(3).openPreview(o),zl(r.stopPropagation())}),MI(12," View "),gc$2()()(),ei$2(13,"button",44),tp$1("click",function(){let r=Gl(t).$index,o=XE(3);return zl(o.removeAt(r))}),Zf$1(14,"africanies-icon",45),gc$2()();}if(n&2){let t=e.$implicit,i=XE(3);mI(i.fileRowClass()),Qy(),PE(t.isImage&&t.previewUrl?1:2),Qy(4),Ic$2(" ",t.file.name," "),Qy(2),Ic$2(" ",i.formatSize(t.file.size)," "),Qy(),PE(t.isImage?-1:8),Qy(5),Qf$1("disabled",i.disabled()),zf$1("aria-label","Remove "+t.file.name),Qy(),Qf$1("size",16);}}function Wp(n,e){if(n&1&&(ei$2(0,"ul",38),VE(1,$p,15,9,"li",4,bp,true),gc$2()),n&2){let t=XE(2);lp$1("mt-3",t.variant()!=="compact")("mt-2",t.variant()==="compact"),Qy(),HE(t.results());}}function Gp(n,e){if(n&1&&LE(0,Wp,3,4,"ul",37),n&2){let t=XE();PE(t.results().length?0:-1);}}var qp=0,ti=class n{destroyRef=T(xe$2);modal=T(ze$1,{optional:true});fileInput=bP("fileInput");cameraInput=bP("cameraInput");controlId=`africanies-file-upload-${++qp}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;hintClass=be;errorClass=Ce;chipClass="inline-flex items-center rounded-full border border-neutral-300 bg-background-welcome px-2 py-0.5 text-caption font-medium text-neutral-600 dark:border-white/20 dark:bg-white/10 dark:text-neutral-300";label=TP("");hint=TP(void 0);error=TP(null);variant=TP("dropzone");accept=TP("");allowFileSelect=TP(true,{transform:RP});allowCamera=TP(true,{transform:RP});multiple=TP(false,{transform:RP});filesSelected=wP();disabledInput=TP(false,{alias:"disabled",transform:RP});results=Co$2([]);cvaDisabled=Co$2(false);dragDepth=Co$2(0);rejectMessage=Co$2(null);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());dragging=QI(()=>this.dragDepth()>0);acceptChips=QI(()=>Jn(this.accept()));chooseLabel=QI(()=>this.multiple()?"Choose files":"Choose file");dropTitle=QI(()=>this.multiple()?"Drag & drop files here":"Drag & drop a file here");dropHint=QI(()=>this.multiple()?"or click to browse \u2014 multiple files allowed":"or click to browse \u2014 one file only");describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);panelClass=QI(()=>{let e="rounded-md border border-dashed border-neutral-400 bg-background-welcome p-4 transition-colors dark:border-white/20 dark:bg-white/[0.03]";return this.dragging()&&(e+=" border-ink bg-white dark:border-white dark:bg-white/10 ring-2 ring-ink/10 dark:ring-white/20"),this.error()&&(e+=" !border-danger dark:!border-danger"),this.disabled()&&(e+=" cursor-not-allowed opacity-50"),e});dropzoneClass=QI(()=>{let e="rounded-lg border-2 border-dashed border-neutral-400 bg-background-welcome px-4 py-8 transition-colors dark:border-white/20 dark:bg-white/[0.03]";return this.disabled()||(e+=" cursor-pointer hover:border-neutral-600 dark:hover:border-white/40"),this.dragging()&&(e+=" border-ink bg-white dark:border-white dark:bg-white/10 ring-2 ring-ink/10 dark:ring-white/20"),this.error()&&(e+=" !border-danger dark:!border-danger"),this.disabled()&&(e+=" cursor-not-allowed opacity-50"),e});compactClass=QI(()=>{let e="flex items-center gap-3 rounded-md border border-dashed border-neutral-400 bg-background-welcome px-3 py-2.5 transition-colors dark:border-white/20 dark:bg-white/[0.03]";return this.dragging()&&(e+=" border-ink bg-white dark:border-white dark:bg-white/10 ring-2 ring-ink/10 dark:ring-white/20"),this.error()&&(e+=" !border-danger dark:!border-danger"),this.disabled()&&(e+=" cursor-not-allowed opacity-50"),e});fileRowClass=QI(()=>"flex items-center gap-3 rounded-md border border-border bg-white p-2 dark:border-white/15 dark:bg-white/[0.04]");onChange=()=>{};onTouched=()=>{};rejectClearTimer=null;constructor(){this.destroyRef.onDestroy(()=>this.clearRejectTimer());}ngOnDestroy(){this.revokeAll(this.results()),this.clearRejectTimer();}writeValue(e){this.revokeAll(this.results()),this.results.set(e??[]);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}openFilePicker(){this.disabled()||this.fileInput()?.nativeElement.click();}openCamera(){if(this.disabled())return;if(!(!!this.modal&&typeof navigator<"u"&&!!navigator.mediaDevices?.getUserMedia)||!this.modal){this.cameraInput()?.nativeElement.click();return}this.modal.open(Dr,{dismissible:true}).afterClosed().pipe(Q(this.destroyRef)).subscribe(t=>{t&&this.commitFiles([t]);});}onDropzoneActivate(e){this.disabled()||!this.allowFileSelect()||(e.preventDefault(),this.openFilePicker());}onDragEnter(e){this.disabled()||!this.hasFilePayload(e)||(e.preventDefault(),this.dragDepth.update(t=>t+1));}onDragOver(e){this.disabled()||!this.hasFilePayload(e)||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="copy"));}onDragLeave(e){this.disabled()||(e.preventDefault(),this.dragDepth.update(t=>Math.max(0,t-1)));}onDrop(e){if(e.preventDefault(),this.dragDepth.set(0),this.disabled())return;let t=Array.from(e.dataTransfer?.files??[]);t.length&&this.commitFiles(t);}onNativeChange(e){let t=e.target,i=Array.from(t.files??[]);t.value="",i.length&&this.commitFiles(i);}openPreview(e){if(this.modal){this.modal.open(Ar,{dismissible:true,data:e,size:"xl"});return}if(!e.isImage&&!e.file.type.startsWith("image/"))return;let t=e.previewUrl??URL.createObjectURL(e.file);window.open(t,"_blank","noopener"),e.previewUrl||window.setTimeout(()=>URL.revokeObjectURL(t),6e4);}removeAt(e){if(this.disabled())return;let t=this.results(),i=t[e];if(!i)return;i.previewUrl&&URL.revokeObjectURL(i.previewUrl);let r=t.filter((o,u)=>u!==e);this.results.set(r),this.filesSelected.emit(r),this.onChange(r),this.onTouched();}trackResult(e){return `${e.file.name}:${e.file.size}:${e.file.lastModified}`}formatSize(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}extensionOf(e){return ei(e.name)}nonImageIcon(e){let t=(e.type||"").toLowerCase(),i=e.name.toLowerCase();return t==="application/pdf"||i.endsWith(".pdf")?"file-text":t.includes("zip")||i.endsWith(".zip")||i.endsWith(".rar")?"file-zip":t.startsWith("video/")||i.match(/\.(mp4|mov|webm)$/)?"file-movie":t.startsWith("audio/")||i.match(/\.(mp3|wav|ogg)$/)?"file-sound":t.includes("sheet")||t.includes("excel")||i.match(/\.(xlsx|xls|csv)$/)?"file-table":t.startsWith("text/")||i.match(/\.(txt|md|csv)$/)?"file-text-o":i.match(/\.(js|ts|json|html|css|xml)$/)?"file-code":"file"}kindLabel(e){let t=ei(e.name);return t?`${t} file`:e.type?e.type:"File"}commitFiles(e){let t=this.accept(),i=e.filter(S=>Tr(S,t)),r=e.length-i.length;if(r>0){let S=Jn(t),R=S.length?S.join(", "):"the allowed types";this.showReject(r===1?`1 file was skipped. Only ${R} allowed.`:`${r} files were skipped. Only ${R} allowed.`);}else this.rejectMessage.set(null);if(!i.length){this.onTouched();return}let o=i;this.multiple()||(o=i.slice(0,1));let u=o.map(S=>this.toResult(S)),v=this.multiple()?[...this.results(),...u]:u;this.multiple()||this.revokeAll(this.results()),this.results.set(v),this.filesSelected.emit(v),this.onChange(v),this.onTouched();}showReject(e){this.rejectMessage.set(e),this.clearRejectTimer(),this.rejectClearTimer=setTimeout(()=>{this.rejectMessage.set(null),this.rejectClearTimer=null;},6e3);}clearRejectTimer(){this.rejectClearTimer&&(clearTimeout(this.rejectClearTimer),this.rejectClearTimer=null);}hasFilePayload(e){let t=e.dataTransfer?.types;return t?Array.from(t).includes("Files"):false}toResult(e){let t=e.type.startsWith("image/");return {file:e,isImage:t,previewUrl:t?URL.createObjectURL(e):null}}revokeAll(e){for(let t of e)t.previewUrl&&URL.revokeObjectURL(t.previewUrl);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-file-upload"]],viewQuery:function(t,i){t&1&&ip$1(i.fileInput,yp,5)(i.cameraInput,vp,5),t&2&&oI(2);},hostAttrs:[1,"block"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],variant:[1,"variant"],accept:[1,"accept"],allowFileSelect:[1,"allowFileSelect"],allowCamera:[1,"allowCamera"],multiple:[1,"multiple"],disabledInput:[1,"disabled","disabledInput"]},outputs:{filesSelected:"filesSelected"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],decls:14,vars:8,consts:[["fileList",""],["fileInput",""],["cameraInput",""],[1,"flex","flex-col","gap-2"],[3,"class"],["role","status",1,"m-0","text-body-sm","text-danger"],["role","alert",3,"id","class"],[3,"id","class"],["type","file",1,"sr-only",3,"change","disabled"],["type","file","accept","image/*","capture","environment",1,"sr-only",3,"change","disabled"],[3,"dragenter","dragover","dragleave","drop"],[1,"flex","flex-wrap","items-center","gap-2"],["africanies-button","","type","button","variant","secondary","size","sm",3,"disabled"],[1,"flex","flex-wrap","gap-1.5"],[1,"m-0","mt-2","text-caption","text-neutral-600","dark:text-neutral-400"],[3,"ngTemplateOutlet"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click","disabled"],["name","upload",3,"size"],["name","camera",3,"size"],["name","cloud-upload",1,"shrink-0","text-neutral-600","dark:text-neutral-400",3,"size"],[1,"min-w-0","flex-1"],[1,"m-0","text-body-sm","text-ink","dark:text-white"],[1,"mt-1","flex","flex-wrap","gap-1"],[1,"flex","shrink-0","flex-wrap","gap-1.5"],["africanies-button","","type","button","variant","ghost","size","sm",3,"disabled"],["africanies-button","","type","button","variant","ghost","size","sm",3,"click","disabled"],["role","button","tabindex","0",3,"click","keydown.enter","keydown.space","dragenter","dragover","dragleave","drop"],[1,"pointer-events-none","flex","flex-col","items-center","gap-3","text-center"],[1,"inline-flex","size-12","items-center","justify-center","rounded-full","bg-background-welcome","text-ink","shadow-sm","ring-1","ring-border","dark:bg-white/10","dark:text-white","dark:ring-white/15"],["name","cloud-upload",3,"size"],[1,"flex","flex-col","gap-1"],[1,"m-0","text-body","font-medium","text-ink","dark:text-white"],[1,"m-0","text-body-sm","text-neutral-600","dark:text-neutral-400"],[1,"flex","flex-wrap","justify-center","gap-1.5"],[1,"pointer-events-auto","mt-4","flex","flex-wrap","justify-center","gap-2"],["role","alert",3,"id"],[3,"id"],[1,"m-0","flex","list-none","flex-col","gap-2","p-0",3,"mt-3","mt-2"],[1,"m-0","flex","list-none","flex-col","gap-2","p-0"],[1,"size-12","shrink-0","rounded-md","object-cover","ring-1","ring-border","dark:ring-white/15",3,"src","alt"],[1,"relative","flex","size-12","shrink-0","items-center","justify-center","rounded-md","bg-background-welcome","text-neutral-600","ring-1","ring-border","dark:bg-white/10","dark:text-neutral-300","dark:ring-white/15"],[1,"m-0","truncate","text-body-sm","font-medium","text-ink","dark:text-white"],[1,"m-0","text-caption","text-neutral-600","dark:text-neutral-400"],["type","button",1,"cursor-pointer","bg-transparent","p-0","text-caption","font-medium","text-ink","underline","underline-offset-2","hover:text-neutral-700","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-white","dark:hover:text-neutral-200",3,"click"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!px-2",3,"click","disabled"],["name","close",3,"size"],[3,"name","size"],[1,"absolute","-bottom-1","left-1/2","-translate-x-1/2","rounded","bg-ink","px-1","py-px","text-[10px]","font-semibold","uppercase","leading-none","tracking-wide","text-white","dark:bg-white/20","dark:text-white"]],template:function(t,i){if(t&1&&(ei$2(0,"div",3),LE(1,Cp,2,3,"span",4),LE(2,Mp,8,9,"div",4)(3,Ip,10,10)(4,Fp,14,12),LE(5,Vp,2,1,"p",5),LE(6,Lp,2,4,"p",6)(7,Bp,2,4,"p",7),gc$2(),Uf$1(8,Gp,1,1,"ng-template",null,0,WI),ei$2(10,"input",8,1),tp$1("change",function(o){return i.onNativeChange(o)}),gc$2(),ei$2(12,"input",9,2),tp$1("change",function(o){return i.onNativeChange(o)}),gc$2()),t&2){let r,o,u;Qy(),PE(i.label()?1:-1),Qy(),PE((r=i.variant())==="button"?2:r==="compact"?3:4),Qy(3),PE((o=i.rejectMessage())?5:-1,o),Qy(),PE((u=i.error())?6:(u=i.hint())?7:-1,u),Qy(4),Qf$1("disabled",i.disabled()),zf$1("accept",i.accept()||null)("multiple",i.multiple()?true:null),Qy(2),Qf$1("disabled",i.disabled());}},dependencies:[g,Z,ya],encapsulation:2})};var Yp=["inputEl"],Kp=[[["","prefix",""]],[["","suffix",""]]],Qp=["[prefix]","[suffix]"];function Xp(n,e){if(n&1&&(mc$2(0,"p",6),MI(1),yc$2()),n&2){let t=XE();mI(t.errorClass),Xf$1("id",t.errorId),Qy(),gp$1(e);}}function Zp(n,e){if(n&1&&(mc$2(0,"p",7),MI(1),yc$2()),n&2){let t=XE();mI(t.hintClass),Xf$1("id",t.hintId),Qy(),gp$1(e);}}var Jp=0,Gs=new Intl.NumberFormat("en-US");function em(n){let e=n.trim();if(e===""||e==="-")return {display:e==="-"?"-":"",numeric:null};let t=e.startsWith("-"),i=t?e.slice(1):e,r=i.indexOf("."),o=r!==-1,u=o?i.slice(0,r):i,v=o?i.slice(r+1).replace(/[^\d]/g,""):"",S=u.replace(/[^\d]/g,""),R=S===""?o?"0":"":Gs.format(Number(S)),O=`${t?"-":""}${R}`;if(o&&(O+=`.${v}`),S===""&&!o)return {display:O,numeric:null};if(o&&v===""&&i.endsWith("."))return {display:O,numeric:void 0};let U=+`${t?"-":""}${S||"0"}${o?`.${v}`:""}`;return Number.isNaN(U)?{display:O,numeric:void 0}:{display:O,numeric:U}}var ni=class n{controlId=`africanies-number-input-${++Jp}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;affixClass=Xe;innerClass=_t;hintClass=be;errorClass=Ce;inputEl=bP("inputEl");label=TP("");hint=TP(void 0);error=TP(null);placeholder=TP("");value=CP(null);disabledInput=TP(false,{alias:"disabled",transform:RP});draftText=Co$2(null);cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());displayText=QI(()=>{let e=this.draftText();if(e!==null)return e;let t=this.value();return t==null?"":Gs.format(t)});shellClass=QI(()=>{let e=Qe;return this.error()&&(e+=` ${Ve$1}`),this.disabled()&&(e+=` ${Ze}`),e});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.draftText.set(null),this.value.set(e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}onInput(e){let t=e.target,i=t.value,r=t.selectionStart??i.length,o=Ws(i.slice(0,r)),u=i.indexOf(".")!==-1&&r>i.indexOf("."),v=u?Ws(i.slice(i.indexOf(".")+1,r)):0,{display:S,numeric:R}=em(i);this.draftText.set(S),t.value=S,R!==void 0&&(this.value.set(R),this.onChange(R));let O=tm(S,o,u,v);queueMicrotask(()=>{(this.inputEl()?.nativeElement??t).setSelectionRange(O,O);});}onBlur(){this.draftText.set(null),this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-number-input"]],viewQuery:function(t,i){t&1&&ip$1(i.inputEl,Yp,5),t&2&&oI();},inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],placeholder:[1,"placeholder"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:Qp,decls:11,vars:19,consts:[["inputEl",""],["data-slot","prefix"],["type","text","inputmode","decimal","autocomplete","off",3,"input","blur","id","value","disabled"],["data-slot","suffix"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(tI(Kp),mc$2(0,"label"),MI(1),yc$2(),mc$2(2,"div")(3,"span",1),nI(4),yc$2(),mc$2(5,"input",2,0),np$1("input",function(o){return i.onInput(o)})("blur",function(){return i.onBlur()}),yc$2(),mc$2(7,"span",3),nI(8,1),yc$2()(),LE(9,Xp,2,4,"p",4)(10,Zp,2,4,"p",5)),t&2){let r;mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(),mI(i.affixClass),Qy(2),mI(i.innerClass),Xf$1("id",i.controlId)("value",i.displayText())("disabled",i.disabled()),zf$1("placeholder",i.placeholder()||null)("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(2),mI(i.affixClass),Qy(2),PE((r=i.error())?9:(r=i.hint())?10:-1,r);}},encapsulation:2})};function Ws(n){return (n.match(/\d/g)??[]).length}function tm(n,e,t,i){let r=n.indexOf(".");if(!t||r===-1){let u=0;for(let v=0;v<n.length;v++){let S=n[v];if(S!==void 0&&/\d/.test(S)&&(u++,u>=e))return v+1}return r===-1?n.length:r}let o=0;for(let u=r+1;u<n.length;u++){let v=n[u];if(v!==void 0&&/\d/.test(v)&&(o++,o>=i))return u+1}return n.length}var nm=["cellInput"];function im(n,e){if(n&1&&(ei$2(0,"p",7),MI(1),gc$2()),n&2){let t=XE();mI(t.labelClass),Qf$1("id",t.labelId),Qy(),gp$1(t.label());}}function rm(n,e){if(n&1){let t=GE();ei$2(0,"input",8,0),tp$1("input",function(r){let o=Gl(t).$index,u=XE();return zl(u.onCellInput(o,r))})("keydown",function(r){let o=Gl(t).$index,u=XE();return zl(u.onCellKeydown(o,r))})("paste",function(r){let o=Gl(t).$index,u=XE();return zl(u.onPaste(o,r))})("focus",function(){let r=Gl(t).$index,o=XE();return zl(o.onCellFocus(r))})("blur",function(){Gl(t);let r=XE();return zl(r.onBlur())}),gc$2();}if(n&2){let t=e.$implicit,i=e.$index,r=XE();mI(r.cellClass()),Qf$1("type",r.cellType())("id",i===0?r.controlId:null)("value",t)("disabled",r.disabled()),zf$1("autocomplete",i===0?"one-time-code":"off")("aria-label","Digit "+(i+1)+" of "+r.length())("aria-invalid",r.error()?true:null);}}function om(n,e){if(n&1&&(ei$2(0,"p",9),MI(1),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(),gp$1(e);}}function am(n,e){if(n&1&&(ei$2(0,"p",7),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}function sm(n,e){if(n&1&&(ei$2(0,"span",10),MI(1),gc$2()),n&2){let t=XE(2);Qy(),Ic$2(" Resend in ",t.cooldownRemaining(),"s ");}}function lm(n,e){if(n&1){let t=GE();ei$2(0,"button",12),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.onResendClick())}),MI(1),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.disabled()),Qy(),Ic$2(" ",t.resendLabel()," ");}}function dm(n,e){if(n&1&&(ei$2(0,"div",6)(1,"span"),MI(2),gc$2(),LE(3,sm,2,1,"span",10)(4,lm,2,2,"button",11),gc$2()),n&2){let t=XE();Qy(2),gp$1(t.resendPrompt()),Qy(),PE(t.cooldownRemaining()>0?3:4);}}var cm=0,ii=class n{destroyRef=T(xe$2);cellInputs=_P();controlId=`africanies-otp-input-${++cm}`;labelId=`${this.controlId}-label`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;hintClass=be;errorClass=Ce;cellClass=QI(()=>{let e="size-10 shrink-0 rounded-md border border-neutral-300 bg-white text-center text-body font-medium text-ink outline-none transition-colors dark:border-white/25 dark:bg-ink-950 dark:text-white focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-ink disabled:cursor-not-allowed";return this.masked()&&(e+=" africanies-otp-cell-masked text-body-lg"),this.error()&&(e+=` ${Ve$1}`),e});masked=QI(()=>this.variant()==="masked");cellType=QI(()=>this.masked()?"password":"text");label=TP("");hint=TP(void 0);error=TP(null);length=TP(6,{transform:kP});variant=TP("default");value=CP("");disabledInput=TP(false,{alias:"disabled",transform:RP});showResend=TP(true,{transform:RP});resendPrompt=TP("Didn't get a code?");resendLabel=TP("Resend");resendCooldown=TP(60,{transform:kP});completed=wP();resend=wP();cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());cooldownRemaining=Co$2(0);cells=QI(()=>{let e=Math.max(1,Math.floor(this.length())||6),t=this.digitsOnly(this.value()).slice(0,e);return Array.from({length:e},(i,r)=>t[r]??"")});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};lastCompleted="";cooldownTimer=null;constructor(){this.destroyRef.onDestroy(()=>this.clearCooldownTimer()),queueMicrotask(()=>this.startCooldown());}ngOnDestroy(){this.clearCooldownTimer();}writeValue(e){this.applyValue(this.digitsOnly(e??""),false);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}onResendClick(){this.disabled()||this.cooldownRemaining()>0||(this.resend.emit(),this.startCooldown());}restartCooldown(){this.startCooldown();}onCellInput(e,t){let i=t.target,o=this.digitsOnly(i.value).slice(-1);i.value=o;let u=[...this.cells()];u[e]=o,this.commitCells(u),o&&e<u.length-1&&this.focusCell(e+1);}onCellKeydown(e,t){let i=t.key;if(i==="Backspace"){t.preventDefault();let r=[...this.cells()];r[e]?(r[e]="",this.commitCells(r)):e>0&&(r[e-1]="",this.commitCells(r),this.focusCell(e-1));return}if(i==="ArrowLeft"&&e>0){t.preventDefault(),this.focusCell(e-1);return}if(i==="ArrowRight"&&e<this.cells().length-1){t.preventDefault(),this.focusCell(e+1);return}i.length===1&&!/[0-9]/.test(i)&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&t.preventDefault();}onPaste(e,t){t.preventDefault();let i=this.digitsOnly(t.clipboardData?.getData("text")??"");if(!i)return;let r=[...this.cells()],o=e;for(let v of i){if(o>=r.length)break;r[o]=v,o+=1;}this.commitCells(r);let u=Math.min(o,r.length-1);this.focusCell(u);}onCellFocus(e){this.cellInputs()[e]?.nativeElement?.select();}onBlur(){this.onTouched();}startCooldown(){let e=Math.max(0,Math.floor(this.resendCooldown())||0);if(this.clearCooldownTimer(),e<=0){this.cooldownRemaining.set(0);return}this.cooldownRemaining.set(e),this.cooldownTimer=setInterval(()=>{let t=this.cooldownRemaining()-1;if(t<=0){this.cooldownRemaining.set(0),this.clearCooldownTimer();return}this.cooldownRemaining.set(t);},1e3);}clearCooldownTimer(){this.cooldownTimer&&(clearInterval(this.cooldownTimer),this.cooldownTimer=null);}commitCells(e){this.applyValue(e.join(""),true);}applyValue(e,t){let i=Math.max(1,Math.floor(this.length())||6),r=e.slice(0,i);this.value.set(r),t&&this.onChange(r),r.length===i&&r!==this.lastCompleted&&(this.lastCompleted=r,this.completed.emit(r)),r.length<i&&(this.lastCompleted="");}digitsOnly(e){return e.replace(/\D/g,"")}focusCell(e){queueMicrotask(()=>{let t=this.cellInputs()[e]?.nativeElement;t?.focus(),t?.select();});}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-otp-input"]],viewQuery:function(t,i){t&1&&ip$1(i.cellInputs,nm,5),t&2&&oI();},hostAttrs:[1,"block"],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],length:[1,"length"],variant:[1,"variant"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"],showResend:[1,"showResend"],resendPrompt:[1,"resendPrompt"],resendLabel:[1,"resendLabel"],resendCooldown:[1,"resendCooldown"]},outputs:{value:"valueChange",completed:"completed",resend:"resend"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],decls:8,vars:10,consts:[["cellInput",""],["role","group"],[3,"id","class"],[1,"flex","flex-wrap","gap-2"],["inputmode","numeric","pattern","[0-9]*","maxlength","1",3,"type","class","id","value","disabled"],["role","alert",3,"id","class"],[1,"mt-3","flex","flex-wrap","items-center","gap-x-1.5","gap-y-1","text-body-sm","text-neutral-600","dark:text-neutral-400"],[3,"id"],["inputmode","numeric","pattern","[0-9]*","maxlength","1",3,"input","keydown","paste","focus","blur","type","id","value","disabled"],["role","alert",3,"id"],["aria-live","polite",1,"tabular-nums"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-1.5","!py-0.5","!text-body-sm",3,"disabled"],["africanies-button","","type","button","variant","ghost","size","sm",1,"!min-h-0","!px-1.5","!py-0.5","!text-body-sm",3,"click","disabled"]],template:function(t,i){if(t&1&&(ei$2(0,"div",1),LE(1,im,2,4,"p",2),ei$2(2,"div",3),VE(3,rm,2,9,"input",4,FE),gc$2(),LE(5,om,2,4,"p",5)(6,am,2,4,"p",2),LE(7,dm,5,2,"div",6),gc$2()),t&2){let r;zf$1("aria-labelledby",i.label()?i.labelId:null)("aria-describedby",i.describedBy())("aria-disabled",i.disabled()?true:null),Qy(),PE(i.label()?1:-1),Qy(),lp$1("opacity-50",i.disabled())("cursor-not-allowed",i.disabled()),Qy(),HE(i.cells()),Qy(2),PE((r=i.error())?5:(r=i.hint())?6:-1,r),Qy(2),PE(i.showResend()?7:-1);}},dependencies:[Z],styles:[".africanies-otp-cell-masked[_ngcontent-%COMP%]{-webkit-text-security:disc;text-security:disc}"]})};var um=[[["","prefix",""]],[["","suffix",""]]],pm=["[prefix]","[suffix]"];function mm(n,e){if(n&1&&(mc$2(0,"p",5),MI(1),yc$2()),n&2){let t=XE();mI(t.errorClass),Xf$1("id",t.errorId),Qy(),gp$1(e);}}function fm(n,e){if(n&1&&(mc$2(0,"p",6),MI(1),yc$2()),n&2){let t=XE();mI(t.hintClass),Xf$1("id",t.hintId),Qy(),gp$1(e);}}var hm=0,ri=class n{controlId=`africanies-textarea-${++hm}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;labelClass=Te;affixClass=Xe;innerClass=`${_t} resize-y min-h-20 h-auto py-2`;hintClass=be;errorClass=Ce;label=TP("");hint=TP(void 0);error=TP(null);placeholder=TP("");rows=TP(3,{transform:kP});value=CP("");disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());shellClass=QI(()=>{let e=`${Qe} !h-auto min-h-10 items-stretch`;return this.error()&&(e+=` ${Ve$1}`),this.disabled()&&(e+=` ${Ze}`),e});describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.value.set(e??"");}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}onInput(e){let t=e.target.value;this.value.set(t),this.onChange(t);}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-textarea"]],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],placeholder:[1,"placeholder"],rows:[1,"rows"],value:[1,"value"],disabledInput:[1,"disabled","disabledInput"]},outputs:{value:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],ngContentSelectors:pm,decls:10,vars:20,consts:[["data-slot","prefix"],[3,"input","blur","id","rows","value","disabled"],["data-slot","suffix"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(tI(um),mc$2(0,"label"),MI(1),yc$2(),mc$2(2,"div")(3,"span",0),nI(4),yc$2(),mc$2(5,"textarea",1),np$1("input",function(o){return i.onInput(o)})("blur",function(){return i.onBlur()}),yc$2(),mc$2(6,"span",2),nI(7,1),yc$2()(),LE(8,mm,2,4,"p",3)(9,fm,2,4,"p",4)),t&2){let r;mI(i.labelClass),zf$1("for",i.controlId),Qy(),gp$1(i.label()),Qy(),mI(i.shellClass()),Qy(),mI(i.affixClass),Qy(2),mI(i.innerClass),Xf$1("id",i.controlId)("rows",i.rows())("value",i.value())("disabled",i.disabled()),zf$1("placeholder",i.placeholder()||null)("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),mI(i.affixClass),Qy(2),PE((r=i.error())?8:(r=i.hint())?9:-1,r);}},encapsulation:2})};function gm(n,e){n&1&&Zf$1(0,"africanies-icon",4),n&2&&Qf$1("size",12);}function _m(n,e){if(n&1&&(ei$2(0,"p",8),MI(1),gc$2()),n&2){let t=XE();mI(t.errorClass),Qf$1("id",t.errorId),Qy(),gp$1(e);}}function ym(n,e){if(n&1&&(ei$2(0,"p",9),MI(1),gc$2()),n&2){let t=XE();mI(t.hintClass),Qf$1("id",t.hintId),Qy(),gp$1(e);}}var vm=0,oi=class n{modeColor=T(re);controlId=`africanies-toggle-${++vm}`;hintId=`${this.controlId}-hint`;errorId=`${this.controlId}-error`;hintClass=be;errorClass=Ce;label=TP("");hint=TP(void 0);error=TP(null);value=TP(false);valueChange=wP();loading=TP(false);disabledInput=TP(false,{alias:"disabled",transform:RP});cvaDisabled=Co$2(false);cvaValue=Co$2(void 0);disabled=QI(()=>this.disabledInput()||this.cvaDisabled());inactive=QI(()=>this.disabled()||this.loading());on=QI(()=>{let e=this.cvaValue();return e!==void 0?e:this.value()});trackClass=QI(()=>this.on()?this.modeColor.classes().bg:"bg-neutral-300 dark:bg-neutral-600");describedBy=QI(()=>this.error()?this.errorId:this.hint()?this.hintId:null);onChange=()=>{};onTouched=()=>{};writeValue(e){this.cvaValue.set(!!e);}registerOnChange(e){this.onChange=e;}registerOnTouched(e){this.onTouched=e;}setDisabledState(e){this.cvaDisabled.set(e);}toggle(){if(this.inactive())return;let e=!this.on();this.onChange(e),this.valueChange.emit(e),this.cvaValue()!==void 0&&this.cvaValue.set(e);}onBlur(){this.onTouched();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-toggle"]],inputs:{label:[1,"label"],hint:[1,"hint"],error:[1,"error"],value:[1,"value"],loading:[1,"loading"],disabledInput:[1,"disabled","disabledInput"]},outputs:{valueChange:"valueChange"},features:[PI([{provide:ve,useExisting:no$2(()=>n),multi:true}])],decls:9,vars:20,consts:[[1,"flex","flex-col","gap-1.5"],[1,"inline-flex","items-center","gap-3","text-body","text-ink","dark:text-white"],["type","button","role","switch",1,"relative","inline-flex","h-5","w-9","shrink-0","items-center","rounded-full","border","border-border","p-0.5","box-border","transition-colors","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:border-white/15",3,"click","blur","id","ngClass","disabled"],[1,"pointer-events-none","relative","block","size-3.5","shrink-0","rounded-full","bg-white","shadow","transition-transform","duration-200","ease-out",3,"ngClass"],["name","spinner","aria-hidden","true",1,"absolute","inset-0","m-auto","animate-spin","text-ink",3,"size"],[1,"text-body","leading-5"],["role","alert",3,"id","class"],[3,"id","class"],["role","alert",3,"id"],[3,"id"]],template:function(t,i){if(t&1&&(ei$2(0,"div",0)(1,"label",1)(2,"button",2),tp$1("click",function(){return i.toggle()})("blur",function(){return i.onBlur()}),ei$2(3,"span",3),LE(4,gm,1,1,"africanies-icon",4),gc$2()(),ei$2(5,"span",5),MI(6),gc$2()(),LE(7,_m,2,4,"p",6)(8,ym,2,4,"p",7),gc$2()),t&2){let r;Qy(),lp$1("opacity-50",i.disabled()&&!i.loading())("cursor-pointer",!i.inactive())("cursor-not-allowed",i.disabled()&&!i.loading())("cursor-wait",i.loading()),zf$1("for",i.controlId),Qy(),Qf$1("id",i.controlId)("ngClass",i.trackClass())("disabled",i.inactive()),zf$1("aria-checked",i.on())("aria-busy",i.loading()?true:null)("aria-invalid",i.error()?true:null)("aria-describedby",i.describedBy()),Qy(),Qf$1("ngClass",i.on()?"translate-x-4":"translate-x-0"),Qy(),PE(i.loading()?4:-1),Qy(2),gp$1(i.label()),Qy(),PE((r=i.error())?7:(r=i.hint())?8:-1,r);}},dependencies:[g,va],encapsulation:2})};var bm=(n,e)=>e.id;function Cm(n,e){n&1&&Zf$1(0,"africanies-icon",3),n&2&&Qf$1("size",12);}function xm(n,e){n&1&&Zf$1(0,"africanies-icon",7),n&2&&Qf$1("name",e)("size",14);}function wm(n,e){if(n&1&&(ei$2(0,"span",4),LE(1,xm,1,2,"africanies-icon",7),MI(2),gc$2()),n&2){let t,i=XE().$implicit;Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Sm(n,e){n&1&&Zf$1(0,"africanies-icon",8),n&2&&Qf$1("name",e)("size",14);}function km(n,e){if(n&1&&(ei$2(0,"a",5),LE(1,Sm,1,2,"africanies-icon",8),MI(2),gc$2()),n&2){let t,i=XE().$implicit,r=XE();Qf$1("ngClass",r.modeColor.classes().text)("routerLink",i.routerLink)("queryParams",i.queryParams)("fragment",i.fragment),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Mm(n,e){n&1&&Zf$1(0,"africanies-icon",7),n&2&&Qf$1("name",e)("size",14);}function Dm(n,e){if(n&1&&(ei$2(0,"span",9),LE(1,Mm,1,2,"africanies-icon",7),MI(2),gc$2()),n&2){let t,i=XE().$implicit;lp$1("opacity-50",i.disabled),Qf$1("ngClass",i.breadcrumbMuted===false?"text-ink dark:text-white":"text-neutral-600 dark:text-neutral-400"),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Tm(n,e){if(n&1&&(ei$2(0,"li",2),LE(1,Cm,1,1,"africanies-icon",3),LE(2,wm,3,2,"span",4)(3,km,3,6,"a",5)(4,Dm,3,5,"span",6),gc$2()),n&2){let t=e.$implicit,i=e.$index,r=e.$count;Qy(),PE(i>0?1:-1),Qy(),PE(i===r-1?2:t.routerLink!==null&&t.routerLink!==void 0&&!t.disabled?3:4);}}var qt=class n{modeColor=T(re);items=TP.required();static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-breadcrumb"]],inputs:{items:[1,"items"]},decls:4,vars:0,consts:[["aria-label","Breadcrumb",1,"text-body-sm"],[1,"m-0","flex","list-none","flex-wrap","items-center","gap-1","p-0"],[1,"inline-flex","items-center","gap-1","min-w-0"],["name","angle-right","aria-hidden","true",1,"shrink-0","text-neutral-400",3,"size"],["aria-current","page",1,"truncate","font-medium","text-ink","dark:text-white"],[1,"inline-flex","cursor-pointer","items-center","gap-1","truncate","transition-colors","hover:underline",3,"ngClass","routerLink","queryParams","fragment"],[1,"truncate",3,"ngClass","opacity-50"],[1,"mr-1","inline-block","align-text-bottom",3,"name","size"],[1,"shrink-0",3,"name","size"],[1,"truncate",3,"ngClass"]],template:function(t,i){t&1&&(ei$2(0,"nav",0)(1,"ol",1),VE(2,Tm,5,2,"li",2,bm),gc$2()()),t&2&&(Qy(2),HE(i.items()));},dependencies:[g,Hs$1,va],encapsulation:2})};function Yt(n,e){if(e.routerLink==null)return null;let t=Array.isArray(e.routerLink)?[...e.routerLink]:[e.routerLink];return n.createUrlTree(t,{queryParams:e.queryParams,fragment:e.fragment})}function Kt(n,e,t){let i=Yt(n,e);return i?n.isActive(i,t):false}function Er(n){return n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey}function Ir(n,e){let t=Yt(n,e);return t?n.serializeUrl(t):null}function Or(n,e,t=true){let i=Yt(n,e);return i?n.navigateByUrl(i,t?{scroll:"manual"}:void 0):null}var Am=(n,e)=>e.id;function Em(n,e){n&1&&Zf$1(0,"africanies-icon",4),n&2&&Qf$1("name",e)("size",14);}function Im(n,e){if(n&1){let t=GE();ei$2(0,"a",3),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE();return zl(u.onRoutedClick(r,o))}),LE(1,Em,1,2,"africanies-icon",4),MI(2),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE();mI(r.segmentChrome()+" "+(r.isItemActive(i)?r.selectedClass():r.idleClass())),lp$1("cursor-pointer",!i.disabled)("cursor-not-allowed",i.disabled)("opacity-50",i.disabled),zf$1("href",i.disabled?null:r.hrefFor(i),Hd$1)("aria-current",r.isItemActive(i)?"true":null)("aria-disabled",i.disabled?true:null),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Om(n,e){n&1&&Zf$1(0,"africanies-icon",4),n&2&&Qf$1("name",e)("size",14);}function Rm(n,e){if(n&1){let t=GE();ei$2(0,"button",5),tp$1("click",function(){Gl(t);let r=XE().$implicit,o=XE();return zl(o.selectLocal(r))}),LE(1,Om,1,2,"africanies-icon",4),MI(2),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE();mI(r.segmentChrome()+" "+(r.isItemActive(i)?r.selectedClass():r.idleClass())),lp$1("cursor-pointer",!i.disabled)("cursor-not-allowed",i.disabled),Qf$1("disabled",!!i.disabled),zf$1("aria-pressed",r.isItemActive(i)),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Nm(n,e){if(n&1&&LE(0,Im,3,13,"a",1)(1,Rm,3,10,"button",2),n&2){let t=e.$implicit;PE(t.routerLink!==null&&t.routerLink!==void 0?0:1);}}var Pm={paths:"exact",queryParams:"exact",fragment:"ignored",matrixParams:"ignored"},ai=class n{router=T(pt$1);modeColor=T(re);items=TP.required();activeId=CP(null);ariaLabel=TP("Segments");linkActiveOptions=TP(Pm);keepScroll=TP(true,{transform:RP});url=Y$1(this.router.events.pipe(Pr$2(e=>e instanceof ue),ve$2(()=>this.router.url),Jc$1(this.router.url)),{initialValue:this.router.url});segmentChrome=QI(()=>"inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-body-sm transition-colors duration-150 no-underline");selectedClass=QI(()=>{let e=this.modeColor.classes();return `${e.soft} ${e.text} shadow-sm font-semibold`});idleClass=QI(()=>"font-medium text-neutral-600 hover:text-ink dark:text-neutral-400 dark:hover:text-white");constructor(){mu$2(()=>{this.url();let e=this.linkActiveOptions(),t=this.items().filter(r=>r.routerLink!=null);if(t.length===0)return;let i=t.find(r=>Kt(this.router,r,e));i&&this.activeId()!==i.id&&this.activeId.set(i.id);});}hrefFor(e){return Ir(this.router,e)}isItemActive(e){return e.routerLink!=null?(this.url(),Kt(this.router,e,this.linkActiveOptions())):this.activeId()===e.id}selectLocal(e){e.disabled||e.routerLink!=null||this.activeId.set(e.id);}onRoutedClick(e,t){if(t.disabled){e.preventDefault();return}Er(e)||(e.preventDefault(),Or(this.router,t,this.keepScroll()));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-segment"]],inputs:{items:[1,"items"],activeId:[1,"activeId"],ariaLabel:[1,"ariaLabel"],linkActiveOptions:[1,"linkActiveOptions"],keepScroll:[1,"keepScroll"]},outputs:{activeId:"activeIdChange"},decls:3,vars:1,consts:[["role","group",1,"inline-flex","max-w-full","flex-wrap","gap-1","rounded-lg","bg-background-welcome","p-1","dark:bg-ink-950"],[3,"class","cursor-pointer","cursor-not-allowed","opacity-50"],["type","button",3,"class","disabled","cursor-pointer","cursor-not-allowed"],[3,"click"],[1,"shrink-0",3,"name","size"],["type","button",3,"click","disabled"]],template:function(t,i){t&1&&(ei$2(0,"div",0),VE(1,Nm,2,1,null,null,Am),gc$2()),t&2&&(zf$1("aria-label",i.ariaLabel()),Qy(),HE(i.items()));},dependencies:[g],encapsulation:2})};var Rr=new x("AFRICANIES_BRAND_LOGO_URL",{providedIn:"root",factory:()=>"/assets/africanies-ui/brand/africanies-logo.png"}),wn=new x("AFRICANIES_BRAND_LOGO_MINI_URL",{providedIn:"root",factory:()=>"/assets/africanies-ui/brand/africanies-logo-mini.png"});function Nr(n,e,t,i){if(i!=null)return {routerLink:i};if(!n)return null;let r=Et(e),o=Et(n),u=t?Et(t):"",v=u&&u!==o&&u.startsWith(`${o}/`)?u:o;if(!v||v===r)return null;let S=Vm(e);return S?{routerLink:v,queryParams:S}:{routerLink:v}}function Pr(n){let e=[],t=n;for(;t;)e.push(t.url.map(i=>i.path)),t=t.firstChild;return Fm(e)}function Fm(n){if(n.length<2)return null;let e=qs(n);for(let t=n.length-2;t>=0;t-=1){let i=qs(n.slice(0,t+1));if(i!=="/"&&i!==e)return i}return null}function qs(n){let e=n.flat().filter(Boolean);return e.length?`/${e.join("/")}`:"/"}function Vm(n){let e=n.split("#")[0]?.split("?")[1];if(!e)return;let t=new URLSearchParams(e),i={};return t.forEach((r,o)=>{i[o]=r;}),Object.keys(i).length?i:void 0}function Fr(n,e){let t=Jo(Et(n),e);return t&&Sn(t.item.routerLink)||null}function Zo(n,e){return Jo(Et(n),e)?.item??null}function Xs(n,e){let t=Et(n),r=[{id:"home",label:"Home",routerLink:Zs(e),icon:"home"}];if(Lm(t,e))return r.push({id:"overview",label:"Overview"}),r;let o=Jo(t,e);if(!o)return Ks(r,t,""),Qs(r,t);o.group&&r.push({id:o.group.id,label:o.group.label,icon:o.group.icon});let u=Sn(o.item.routerLink);return r.push({id:o.item.id,label:o.item.label,routerLink:u}),t!==u&&Ks(r,t,o.basePath),Qs(r,t)}function Et(n){let e=n.split("?")[0]?.split("#")[0]??"/";return e==="/"?"/":e.replace(/\/+$/,"")}function Zs(n){for(let e of n){let t=Sn(e.routerLink);if(t)return t}return "/overview"}function Lm(n,e){return n==="/"?true:n===Et(Zs(e))}function Sn(n){return typeof n=="string"?n:""}function Ys(n){return n.replace(/\/overview$/,"").replace(/\/+$/,"")||n}function Jo(n,e){let t=null;for(let i of e){if(i.children?.length){for(let u of i.children){let v=Sn(u.routerLink);if(!v)continue;let S=Ys(v);n.startsWith(S)&&(!t||S.length>t.basePath.length)&&(t={group:{id:i.id,label:i.label,icon:i.icon},item:u,basePath:S});}continue}let r=Sn(i.routerLink);if(!r)continue;let o=Ys(r);n.startsWith(o)&&(!t||o.length>t.basePath.length)&&(t={item:i,basePath:o});}return t}function Ks(n,e,t){let r=(t?e.slice(t.length):e).split("/").filter(Boolean);if(!r.length)return;let o=t;for(let u of r)o=`${o}/${u}`,n.push({id:`segment-${u}`,label:Bm(u),routerLink:o});}function Bm(n){return n.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Qs(n,e){if(n.length<2)return n;let t=n[n.length-1],i=Sn(t.routerLink);return i&&Et(i)===e&&(n[n.length-1]={id:t.id,label:t.label,icon:t.icon}),n}var Hm=[[["","footer",""]],[["","brand",""]]],zm=["[footer]","[brand]"],Js=n=>({$implicit:n}),el=n=>({visible:n,compact:false}),tl=n=>({visible:n,compact:true}),Um=(n,e)=>({visible:n,compact:e}),ea=(n,e)=>e.id;function jm(n,e){if(n&1&&Zf$1(0,"img",11),n&2){let t=XE(2);Qf$1("src",t.resolvedMiniLogo(),Hd$1);}}function $m(n,e){if(n&1&&LE(0,jm,1,1,"img",11),n&2){let t=XE();PE(t.showLogo()?0:-1);}}function Wm(n,e){if(n&1&&(ei$2(0,"div",12),Zf$1(1,"img",14),gc$2()),n&2){let t=XE(2);Qy(),Qf$1("src",t.resolvedFullLogo(),Hd$1);}}function Gm(n,e){n&1&&(ei$2(0,"div",13),nI(1,1),gc$2());}function qm(n,e){if(n&1&&LE(0,Wm,2,1,"div",12)(1,Gm,2,0,"div",13),n&2){let t=XE();PE(t.showLogo()?0:1);}}function Ym(n,e){if(n&1){let t=GE();ei$2(0,"button",15),tp$1("click",function(){Gl(t);let r=XE();return zl(r.collapseAllBranches())}),Zf$1(1,"africanies-icon",16),gc$2();}n&2&&(Qy(),Qf$1("size",14));}function Km(n,e){if(n&1){let t=GE();ei$2(0,"a",22),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE();return zl(u.onActivate(o,r))}),Jf$1(1,23),gc$2();}if(n&2){let t=XE().$implicit,i=XE(),r=iI(14);mI(i.rowClass(t)),Qf$1("routerLink",t.disabled?null:t.routerLink)("queryParams",t.queryParams)("fragment",t.fragment),zf$1("aria-current",i.isLeafActive(t)?"page":null)("aria-expanded",t.children?.length?i.isBranchOpen(t.id):null)("aria-disabled",t.disabled?true:null),Qy(),Qf$1("ngTemplateOutlet",r)("ngTemplateOutletContext",jI(10,Js,t));}}function Qm(n,e){if(n&1){let t=GE();ei$2(0,"button",24),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE();return zl(u.onActivate(o,r))}),Jf$1(1,23),gc$2();}if(n&2){let t=XE().$implicit,i=XE(),r=iI(14);mI(i.rowClass(t)),Qf$1("disabled",!!t.disabled),zf$1("aria-current",i.isLeafActive(t)?"page":null)("aria-expanded",t.children?.length?i.isBranchOpen(t.id):null),Qy(),Qf$1("ngTemplateOutlet",r)("ngTemplateOutletContext",jI(7,Js,t));}}function Xm(n,e){n&1&&Zf$1(0,"africanies-icon",29),n&2&&Qf$1("name",e)("size",14);}function Zm(n,e){if(n&1){let t=GE();ei$2(0,"a",22),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE(3);return zl(u.onActivate(o,r))}),LE(1,Xm,1,2,"africanies-icon",29),ei$2(2,"span",30),MI(3),gc$2(),Jf$1(4,23),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE(3),o=iI(16);mI(r.childRowClass(i)),Qf$1("routerLink",i.disabled?null:i.routerLink)("queryParams",i.queryParams)("fragment",i.fragment),zf$1("aria-current",r.isLeafActive(i)?"page":null),Qy(),PE((t=i.icon)?1:-1,t),Qy(2),gp$1(i.label),Qy(),Qf$1("ngTemplateOutlet",o)("ngTemplateOutletContext",jI(10,el,i.badge));}}function Jm(n,e){n&1&&Zf$1(0,"africanies-icon",29),n&2&&Qf$1("name",e)("size",14);}function ef(n,e){if(n&1){let t=GE();ei$2(0,"button",24),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE(3);return zl(u.onActivate(o,r))}),LE(1,Jm,1,2,"africanies-icon",29),ei$2(2,"span",30),MI(3),gc$2(),Jf$1(4,23),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE(3),o=iI(16);mI(r.childRowClass(i)),Qf$1("disabled",!!i.disabled),zf$1("aria-current",r.isLeafActive(i)?"page":null),Qy(),PE((t=i.icon)?1:-1,t),Qy(2),gp$1(i.label),Qy(),Qf$1("ngTemplateOutlet",o)("ngTemplateOutletContext",jI(8,el,i.badge));}}function tf(n,e){if(n&1&&(ei$2(0,"li",28),LE(1,Zm,5,12,"a",18)(2,ef,5,10,"button",19),gc$2()),n&2){let t=e.$implicit,i=XE(2).$implicit,r=XE();lp$1("opacity-0",!r.isBranchOpen(i.id))("opacity-100",r.isBranchOpen(i.id)),Qy(),PE(t.routerLink!==null&&t.routerLink!==void 0?1:2);}}function nf(n,e){if(n&1&&(ei$2(0,"div",25)(1,"ul",26),VE(2,tf,3,5,"li",27,ea),gc$2()()),n&2){let t=XE().$implicit,i=XE();cp$1("grid-template-rows",i.isBranchOpen(t.id)?"1fr":"0fr"),lp$1("pointer-events-none",!i.isBranchOpen(t.id)),zf$1("aria-hidden",!i.isBranchOpen(t.id)),Qy(2),HE(t.children);}}function rf(n,e){n&1&&Zf$1(0,"africanies-icon",6),n&2&&Qf$1("name",e)("size",14);}function of(n,e){if(n&1){let t=GE();ei$2(0,"a",37),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE(4);return zl(u.onActivate(o,r))}),LE(1,rf,1,2,"africanies-icon",6),MI(2),Jf$1(3,23),gc$2();}if(n&2){let t,i=XE().$implicit;XE(4);let r=iI(16);lp$1("opacity-50",i.disabled),Qf$1("routerLink",i.disabled?null:i.routerLink)("queryParams",i.queryParams)("fragment",i.fragment),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," "),Qy(),Qf$1("ngTemplateOutlet",r)("ngTemplateOutletContext",jI(9,tl,i.badge));}}function af(n,e){n&1&&Zf$1(0,"africanies-icon",6),n&2&&Qf$1("name",e)("size",14);}function sf(n,e){if(n&1){let t=GE();ei$2(0,"button",38),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE(4);return zl(u.onActivate(o,r))}),LE(1,af,1,2,"africanies-icon",6),MI(2),Jf$1(3,23),gc$2();}if(n&2){let t,i=XE().$implicit;XE(4);let r=iI(16);Qf$1("disabled",!!i.disabled),Qy(),PE((t=i.icon)?1:-1,t),Qy(),Ic$2(" ",i.label," "),Qy(),Qf$1("ngTemplateOutlet",r)("ngTemplateOutletContext",jI(5,tl,i.badge));}}function lf(n,e){if(n&1&&(ei$2(0,"li"),LE(1,of,4,11,"a",35)(2,sf,4,7,"button",36),gc$2()),n&2){let t=e.$implicit;Qy(),PE(t.routerLink!==null&&t.routerLink!==void 0?1:2);}}function df(n,e){if(n&1&&(ei$2(0,"ul",34),VE(1,lf,3,1,"li",null,ea),gc$2()),n&2){let t=XE(2).$implicit;Qy(),HE(t.children);}}function cf(n,e){if(n&1&&(ei$2(0,"div",21),Zf$1(1,"div",31),ei$2(2,"div",32)(3,"p",33),MI(4),gc$2()(),LE(5,df,3,0,"ul",34),gc$2()),n&2){let t=XE().$implicit,i=XE();Qy(),mI(i.modeColor.classes().bg),Qy(3),gp$1(t.label),Qy(),PE(t.children?.length?5:-1);}}function uf(n,e){if(n&1){let t=GE();ei$2(0,"li",17),tp$1("mouseenter",function(){let r=Gl(t).$implicit,o=XE();return zl(o.onItemEnter(r.id))})("mouseleave",function(){let r=Gl(t).$implicit,o=XE();return zl(o.onItemLeave(r.id))}),LE(1,Km,2,12,"a",18)(2,Qm,2,9,"button",19),LE(3,nf,4,5,"div",20),LE(4,cf,6,4,"div",21),gc$2();}if(n&2){let t=e.$implicit,i=XE();Qy(),PE(t.routerLink!==null&&t.routerLink!==void 0?1:2),Qy(2),PE(!i.collapsed()&&t.children?.length?3:-1),Qy(),PE(i.collapsed()&&i.hoverId()===t.id?4:-1);}}function pf(n,e){n&1&&Zf$1(0,"africanies-icon",6),n&2&&Qf$1("name",e)("size",16);}function mf(n,e){n&1&&Zf$1(0,"span",40);}function ff(n,e){if(n&1&&Zf$1(0,"africanies-icon",43),n&2){let t=XE(2).$implicit,i=XE();lp$1("rotate-180",i.isBranchOpen(t.id)),Qf$1("size",14);}}function hf(n,e){if(n&1&&(ei$2(0,"span",41),MI(1),gc$2(),LE(2,ff,1,3,"africanies-icon",42)),n&2){let t=XE().$implicit;Qy(),gp$1(t.label),Qy(),PE(t.children?.length?2:-1);}}function gf(n,e){if(n&1&&(ei$2(0,"span",39),LE(1,pf,1,2,"africanies-icon",6)(2,mf,1,0,"span",40),gc$2(),LE(3,hf,3,2),Jf$1(4,23)),n&2){let t,i=e.$implicit,r=XE(),o=iI(16);Qy(),PE((t=i.icon)?1:2,t),Qy(2),PE(r.collapsed()?-1:3),Qy(),Qf$1("ngTemplateOutlet",o)("ngTemplateOutletContext",VI(4,Um,i.badge,r.collapsed()));}}function _f(n,e){if(n&1&&(ei$2(0,"span",45),Zf$1(1,"span",46)(2,"span",47),gc$2()),n&2){let t=XE().compact;mI(t?"right-0.5 top-0.5 h-2 w-2":"right-1.5 top-1 h-2 w-2");}}function yf(n,e){if(n&1&&LE(0,_f,3,2,"span",44),n&2){let t=e.visible;PE(t?0:-1);}}var vf={paths:"subset",queryParams:"subset",fragment:"ignored",matrixParams:"ignored"},si=class n{modeColor=T(re);defaultLogoUrl=T(Rr);defaultLogoMiniUrl=T(wn);router=T(pt$1);items=TP.required();collapsed=CP(false);activeId=CP(null);ariaLabel=TP("Side navigation");expandParents=TP(true,{transform:RP});expandBranchesByDefault=TP(true,{transform:RP});linkActiveOptions=TP(vf);showLogo=TP(true,{transform:RP});logoSrc=TP(null);logoMiniSrc=TP(null);resolvedFullLogo=QI(()=>this.logoSrc()??this.defaultLogoUrl);resolvedMiniLogo=QI(()=>this.logoMiniSrc()??this.defaultLogoMiniUrl);openBranches=Co$2(new Set);hoverId=Co$2(null);hasOpenBranches=QI(()=>this.openBranches().size>0);matchedRoutedItem=QI(()=>Zo(this.url(),this.items()));branchesSeeded=false;url=Y$1(this.router.events.pipe(Pr$2(e=>e instanceof ue),ve$2(()=>this.router.url),Jc$1(this.router.url)),{initialValue:this.router.url});constructor(){mu$2(()=>{let e=this.collectParentIds(this.items());!this.expandBranchesByDefault()||this.branchesSeeded||e.length===0||(this.openBranches.set(new Set(e)),this.branchesSeeded=true);}),mu$2(()=>{let e=this.activeId();e&&this.ensureAncestorsOpen(e);}),mu$2(()=>{let e=this.matchedRoutedItem();e&&this.activeId()!==e.id&&this.activeId.set(e.id);});}toggleCollapsed(){this.collapsed.update(e=>!e),this.hoverId.set(null);}collapseAllBranches(){this.openBranches.set(new Set);}onItemEnter(e){this.collapsed()&&this.hoverId.set(e);}onItemLeave(e){this.hoverId()===e&&this.hoverId.set(null);}isBranchOpen(e){return this.openBranches().has(e)}isLeafActive(e){return e.routerLink!=null?this.matchedRoutedItem()?.id===e.id:this.activeId()===e.id}isItemActive(e){return this.isLeafActive(e)?true:(e.children??[]).some(t=>this.isItemActive(t))}rowClass(e){let t="group relative flex w-full items-center gap-2 rounded-lg text-body-sm no-underline transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink "+(this.collapsed()?"justify-center px-1.5 py-2":"px-3 py-2")+(e.disabled?" cursor-not-allowed opacity-50":" cursor-pointer"),i=this.isLeafActive(e),r=!i&&this.isItemActive(e);return i?`${t} ${this.modeColor.classes().soft} ${this.modeColor.classes().text} font-semibold`:r?`${t} ${this.modeColor.classes().soft} ${this.modeColor.classes().text} font-semibold`:`${t} font-medium text-neutral-600 hover:bg-background-welcome hover:text-ink dark:text-neutral-400 dark:hover:bg-white/10 dark:hover:text-white`}childRowClass(e){let t="relative flex w-full items-center gap-2 rounded-lg px-3 py-1.5 text-body-sm no-underline transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ink "+(e.disabled?"cursor-not-allowed opacity-50 ":"cursor-pointer ");return this.isLeafActive(e)?`${t} ${this.modeColor.classes().soft} ${this.modeColor.classes().text} font-semibold`:`${t} font-medium text-neutral-600 hover:bg-background-welcome hover:text-ink dark:text-neutral-400 dark:hover:bg-white/10 dark:hover:text-white`}onActivate(e,t){if(e.disabled){t.preventDefault();return}let i=e.children??[];if(i.length>0){this.onParentActivate(e,i,t);return}e.routerLink==null&&this.activeId.set(e.id),this.collapsed()&&this.hoverId.set(null);}onParentActivate(e,t,i){let r=this.collapsed(),o=this.isBranchOpen(e.id);if(!r){if(e.routerLink!=null&&i.preventDefault(),!this.expandParents())return;this.openBranches.update(v=>{let S=new Set(v);return o?S.delete(e.id):S.add(e.id),S});return}this.collapsed.set(false),this.hoverId.set(null),this.expandParents()&&this.openBranches.update(v=>{let S=new Set(v);return S.add(e.id),S});let u=t.find(v=>!v.disabled);u&&(e.routerLink!=null&&i.preventDefault(),this.activateLeaf(u));}activateLeaf(e){if(e.routerLink!=null){let t=Yt(this.router,e);t&&this.router.navigateByUrl(t);return}this.activeId.set(e.id);}flatten(e){let t=[];for(let i of e)t.push(i),i.children?.length&&t.push(...this.flatten(i.children));return t}collectParentIds(e){let t=[];for(let i of e)i.children?.length&&(t.push(i.id),t.push(...this.collectParentIds(i.children)));return t}ensureAncestorsOpen(e){let t=this.findPath(this.items(),e);!t||t.length<2||this.openBranches.update(i=>{let r=new Set(i);for(let o of t.slice(0,-1))r.add(o);return r});}findPath(e,t,i=[]){for(let r of e){let o=[...i,r.id];if(r.id===t)return o;if(r.children?.length){let u=this.findPath(r.children,t,o);if(u)return u}}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-side-nav"]],hostAttrs:[1,"relative","z-20","block","h-full"],inputs:{items:[1,"items"],collapsed:[1,"collapsed"],activeId:[1,"activeId"],ariaLabel:[1,"ariaLabel"],expandParents:[1,"expandParents"],expandBranchesByDefault:[1,"expandBranchesByDefault"],linkActiveOptions:[1,"linkActiveOptions"],showLogo:[1,"showLogo"],logoSrc:[1,"logoSrc"],logoMiniSrc:[1,"logoMiniSrc"]},outputs:{collapsed:"collapsedChange",activeId:"activeIdChange"},ngContentSelectors:zm,decls:17,vars:19,consts:[["rowInner",""],["navBadge",""],[1,"relative","flex","h-full","flex-col","overflow-visible","border-r","border-border","bg-white","transition-[width]","duration-200","ease-out","dark:border-white/10","dark:bg-ink"],["aria-hidden","true",1,"pointer-events-none","absolute","inset-y-0","left-0","w-[3px]","transition-colors"],[1,"flex","shrink-0","items-center","gap-2","border-b","border-border","py-3","dark:border-white/10"],["type","button",1,"inline-flex","size-8","shrink-0","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"click"],[3,"name","size"],[1,"africanies-overlay-scroll","relative","flex-1","overflow-y-auto","overflow-x-visible","px-3","py-3"],["type","button","aria-label","Collapse all",1,"absolute","right-1.5","top-1.5","z-10","inline-flex","size-7","cursor-pointer","items-center","justify-center","rounded-md","bg-white","text-neutral-500","shadow-sm","ring-1","ring-border/80","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:bg-ink","dark:text-neutral-400","dark:ring-white/15","dark:hover:bg-white/10","dark:hover:text-white"],[1,"m-0","flex","list-none","flex-col","gap-0.5","p-0"],[1,"relative","overflow-visible"],["alt","African Import Export Solutions",1,"size-8","shrink-0","object-contain",3,"src"],[1,"min-w-0","flex-1"],[1,"min-w-0","flex-1","truncate","text-body-sm","font-semibold","text-ink","dark:text-white"],["alt","African Import Export Solutions",1,"h-9","max-w-full","object-contain","object-left",3,"src"],["type","button","aria-label","Collapse all",1,"absolute","right-1.5","top-1.5","z-10","inline-flex","size-7","cursor-pointer","items-center","justify-center","rounded-md","bg-white","text-neutral-500","shadow-sm","ring-1","ring-border/80","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:bg-ink","dark:text-neutral-400","dark:ring-white/15","dark:hover:bg-white/10","dark:hover:text-white",3,"click"],["name","compress",3,"size"],[1,"relative","overflow-visible",3,"mouseenter","mouseleave"],[3,"routerLink","queryParams","fragment","class"],["type","button",3,"class","disabled"],[1,"grid","transition-[grid-template-rows]","duration-200","ease-out",3,"grid-template-rows","pointer-events-none"],["role","tooltip",1,"absolute","left-full","top-0","z-50","ml-2","min-w-[11rem]","overflow-hidden","rounded-md","border","border-border","bg-ink","text-white","shadow-lg","dark:border-white/15"],[3,"click","routerLink","queryParams","fragment"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"click","disabled"],[1,"grid","transition-[grid-template-rows]","duration-200","ease-out"],[1,"relative","m-0","mt-0.5","min-h-0","list-none","space-y-0.5","overflow-hidden","py-1","pl-4","before:absolute","before:bottom-1","before:left-[1.35rem]","before:top-0","before:w-px","before:bg-border","dark:before:bg-white/15"],[1,"transition-opacity","duration-200","ease-out",3,"opacity-0","opacity-100"],[1,"transition-opacity","duration-200","ease-out"],[1,"shrink-0","opacity-80",3,"name","size"],[1,"truncate"],["aria-hidden","true",1,"absolute","inset-y-0","left-0","w-1"],[1,"border-b","border-white/10","px-3","py-2","pl-4"],[1,"m-0","text-body-sm","font-semibold"],[1,"m-0","list-none","space-y-0.5","p-1.5"],[1,"relative","flex","items-center","gap-2","rounded","px-2.5","py-1.5","text-body-sm","text-white/85","no-underline","transition-colors","hover:bg-white/10","hover:text-white",3,"routerLink","queryParams","fragment","opacity-50"],["type","button",1,"relative","flex","w-full","items-center","gap-2","rounded","px-2.5","py-1.5","text-left","text-body-sm","text-white/85","transition-colors","hover:bg-white/10","hover:text-white",3,"disabled"],[1,"relative","flex","items-center","gap-2","rounded","px-2.5","py-1.5","text-body-sm","text-white/85","no-underline","transition-colors","hover:bg-white/10","hover:text-white",3,"click","routerLink","queryParams","fragment"],["type","button",1,"relative","flex","w-full","items-center","gap-2","rounded","px-2.5","py-1.5","text-left","text-body-sm","text-white/85","transition-colors","hover:bg-white/10","hover:text-white",3,"click","disabled"],[1,"inline-flex","size-5","shrink-0","items-center","justify-center"],["aria-hidden","true",1,"size-1.5","rounded-full","bg-current","opacity-70"],[1,"min-w-0","flex-1","truncate","text-left"],["name","chevron-down",1,"shrink-0","opacity-70","transition-transform","duration-200","ease-out",3,"size","rotate-180"],["name","chevron-down",1,"shrink-0","opacity-70","transition-transform","duration-200","ease-out",3,"size"],["aria-hidden","true",1,"pointer-events-none","absolute","z-10","overflow-visible",3,"class"],["aria-hidden","true",1,"pointer-events-none","absolute","z-10","overflow-visible"],[1,"africanies-side-nav-badge-ping","absolute","left-1/2","top-1/2","size-2","rounded-full","bg-danger"],[1,"absolute","left-1/2","top-1/2","size-2","-translate-x-1/2","-translate-y-1/2","rounded-full","bg-danger","ring-2","ring-white","dark:ring-ink"]],template:function(t,i){t&1&&(tI(Hm),ei$2(0,"aside",2),Zf$1(1,"div",3),ei$2(2,"div",4),LE(3,$m,1,1)(4,qm,2,1),ei$2(5,"button",5),tp$1("click",function(){return i.toggleCollapsed()}),Zf$1(6,"africanies-icon",6),gc$2()(),ei$2(7,"nav",7),LE(8,Ym,2,1,"button",8),ei$2(9,"ul",9),VE(10,uf,5,3,"li",10,ea),gc$2()(),nI(12),gc$2(),Uf$1(13,gf,5,7,"ng-template",null,0,WI)(15,yf,1,1,"ng-template",null,1,WI)),t&2&&(cp$1("width",i.collapsed()?"3.75rem":"15rem"),zf$1("aria-label",i.ariaLabel()),Qy(),mI(i.modeColor.classes().bg),Qy(),lp$1("flex-col",i.collapsed())("px-3",i.collapsed())("pl-4",!i.collapsed())("pr-2",!i.collapsed()),Qy(),PE(i.collapsed()?3:4),Qy(2),zf$1("aria-label",i.collapsed()?"Expand navigation":"Collapse navigation")("aria-expanded",!i.collapsed()),Qy(),Qf$1("name",i.collapsed()?"angle-double-right":"angle-double-left")("size",16),Qy(2),PE(!i.collapsed()&&i.expandParents()&&i.hasOpenBranches()?8:-1),Qy(2),HE(i.items()));},dependencies:[g,Hs$1,ya],styles:["@keyframes _ngcontent-%COMP%_africanies-side-nav-badge-pulse{0%{transform:translate(-50%,-50%) scale(.85);opacity:.9}70%{transform:translate(-50%,-50%) scale(2.4);opacity:0}to{transform:translate(-50%,-50%) scale(2.4);opacity:0}}.africanies-side-nav-badge-ping[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_africanies-side-nav-badge-pulse 1.4s cubic-bezier(0,0,.2,1) infinite}@media(prefers-reduced-motion:reduce){.africanies-side-nav-badge-ping[_ngcontent-%COMP%]{animation:none;opacity:.5}}"]})};var It=class n{template=T(nr$1);africaniesTabDef=TP.required();static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesTabDef",""]],inputs:{africaniesTabDef:[1,"africaniesTabDef"]}})};var bf=["tabEl"],Cf=n=>({$implicit:n}),xf=(n,e)=>e.id;function wf(n,e){n&1&&Zf$1(0,"africanies-icon",6),n&2&&Qf$1("name",e)("size",16);}function Sf(n,e){if(n&1){let t=GE();ei$2(0,"a",5,0),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE();return zl(u.onRoutedClick(r,o))}),LE(2,wf,1,2,"africanies-icon",6),MI(3),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE();mI(r.tabChrome()+" "+(r.isItemActive(i)?r.activeTabClass():r.inactiveTabClass())),lp$1("cursor-pointer",!i.disabled)("cursor-not-allowed",i.disabled)("opacity-50",i.disabled),zf$1("href",i.disabled?null:r.hrefFor(i),Hd$1)("aria-selected",r.isItemActive(i))("tabindex",r.isItemActive(i)?0:-1)("aria-disabled",i.disabled?true:null)("id","africanies-tab-"+i.id),Qy(2),PE((t=i.icon)?2:-1,t),Qy(),Ic$2(" ",i.label," ");}}function kf(n,e){n&1&&Zf$1(0,"africanies-icon",6),n&2&&Qf$1("name",e)("size",16);}function Mf(n,e){if(n&1){let t=GE();ei$2(0,"button",7,0),tp$1("click",function(){Gl(t);let r=XE().$implicit,o=XE();return zl(o.selectLocal(r))}),LE(2,kf,1,2,"africanies-icon",6),MI(3),gc$2();}if(n&2){let t,i=XE().$implicit,r=XE();mI(r.tabChrome()+" "+(r.isItemActive(i)?r.activeTabClass():r.inactiveTabClass())),lp$1("cursor-pointer",!i.disabled)("cursor-not-allowed",i.disabled),Qf$1("disabled",!!i.disabled),zf$1("aria-selected",r.isItemActive(i))("tabindex",r.isItemActive(i)?0:-1)("id","africanies-tab-"+i.id)("aria-controls",r.hasPanels()?"africanies-tab-panel-"+i.id:null),Qy(2),PE((t=i.icon)?2:-1,t),Qy(),Ic$2(" ",i.label," ");}}function Df(n,e){if(n&1&&LE(0,Sf,4,15,"a",3)(1,Mf,4,13,"button",4),n&2){let t=e.$implicit;PE(t.routerLink!==null&&t.routerLink!==void 0?0:1);}}function Tf(n,e){if(n&1&&(ei$2(0,"div",8),Jf$1(1,9),gc$2()),n&2){let t=XE(2);zf$1("id","africanies-tab-panel-"+t.activeId())("aria-labelledby","africanies-tab-"+t.activeId()),Qy(),Qf$1("ngTemplateOutlet",e)("ngTemplateOutletContext",jI(4,Cf,t.activeId()));}}function Af(n,e){if(n&1&&LE(0,Tf,2,6,"div",8),n&2){let t,i=XE();PE((t=i.activePanel())?0:-1,t);}}var Ef={paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"},li=class n{router=T(pt$1);modeColor=T(re);tabDefs=NP();tabEls=_P();items=TP.required();activeId=CP(null);ariaLabel=TP("Tabs");linkActiveOptions=TP(Ef);keepScroll=TP(true,{transform:RP});url=Y$1(this.router.events.pipe(Pr$2(e=>e instanceof ue),ve$2(()=>this.router.url),Jc$1(this.router.url)),{initialValue:this.router.url});panelMap=QI(()=>{let e=new Map;for(let t of this.tabDefs())e.set(t.africaniesTabDef(),t.template);return e});hasPanels=QI(()=>this.panelMap().size>0);activePanel=QI(()=>{let e=this.activeId();return e?this.panelMap().get(e)??null:null});tabChrome=QI(()=>"inline-flex items-center gap-1.5 border-b-2 px-3 py-2 text-body-sm transition-colors -mb-px no-underline");activeTabClass=QI(()=>`${this.modeColor.classes().text} border-current font-semibold`);inactiveTabClass=QI(()=>"border-transparent font-medium text-neutral-600 hover:text-ink dark:text-neutral-400 dark:hover:text-white");constructor(){mu$2(()=>{this.url();let e=this.linkActiveOptions(),t=this.items().filter(r=>r.routerLink!=null);if(t.length===0)return;let i=t.find(r=>Kt(this.router,r,e));i&&this.activeId()!==i.id&&this.activeId.set(i.id);});}hrefFor(e){return Ir(this.router,e)}isItemActive(e){return e.routerLink!=null?(this.url(),Kt(this.router,e,this.linkActiveOptions())):this.activeId()===e.id}selectLocal(e){e.disabled||e.routerLink!=null||this.activeId.set(e.id);}onRoutedClick(e,t){if(t.disabled){e.preventDefault();return}Er(e)||(e.preventDefault(),Or(this.router,t,this.keepScroll()));}onTablistKeydown(e){if(e.key!=="ArrowLeft"&&e.key!=="ArrowRight")return;let t=this.tabEls().map(S=>S.nativeElement).filter(S=>!S.hasAttribute("disabled")&&S.getAttribute("aria-disabled")!=="true");if(t.length===0)return;let i=document.activeElement,r=t.findIndex(S=>S===i);if(r<0)return;e.preventDefault();let o=e.key==="ArrowRight"?1:-1,u=(r+o+t.length)%t.length,v=t[u];if(v&&(v.focus(),v.tagName==="BUTTON")){let S=v.id.replace(/^africanies-tab-/,""),R=this.items().find(O=>O.id===S);R&&this.selectLocal(R);}}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-tabs"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.tabDefs,It,4),t&2&&oI();},viewQuery:function(t,i){t&1&&ip$1(i.tabEls,bf,5),t&2&&oI();},inputs:{items:[1,"items"],activeId:[1,"activeId"],ariaLabel:[1,"ariaLabel"],linkActiveOptions:[1,"linkActiveOptions"],keepScroll:[1,"keepScroll"]},outputs:{activeId:"activeIdChange"},decls:5,vars:2,consts:[["tabEl",""],[1,"flex","flex-col","gap-4"],["role","tablist","tabindex","-1",1,"flex","flex-wrap","gap-1","border-b","border-border","dark:border-white/10",3,"keydown"],["role","tab",3,"class","cursor-pointer","cursor-not-allowed","opacity-50"],["type","button","role","tab",3,"class","disabled","cursor-pointer","cursor-not-allowed"],["role","tab",3,"click"],[1,"shrink-0",3,"name","size"],["type","button","role","tab",3,"click","disabled"],["role","tabpanel",1,"min-w-0","text-ink","dark:text-white"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){t&1&&(ei$2(0,"div",1)(1,"div",2),tp$1("keydown",function(o){return i.onTablistKeydown(o)}),VE(2,Df,2,1,null,null,xf),gc$2(),LE(4,Af,1,1),gc$2()),t&2&&(Qy(),zf$1("aria-label",i.ariaLabel()),Qy(),HE(i.items()),Qy(2),PE(i.hasPanels()?4:-1));},dependencies:[g,ya],encapsulation:2})};var Qt=class n{template=T(nr$1);africaniesCellDef=TP.required();static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesCellDef",""]],inputs:{africaniesCellDef:[1,"africaniesCellDef"]}})};var Xt=class n{template=T(nr$1);label=TP.required({alias:"africaniesRowDetail"});static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesRowDetail",""]],inputs:{label:[1,"africaniesRowDetail","label"]}})};function Pf(n,e){return this.trackPageItem(e,n)}function Ff(n,e){if(n&1&&(ei$2(0,"span",4),Zf$1(1,"africanies-icon",8),ei$2(2,"span",9),MI(3,"Loading page"),gc$2()()),n&2){let t=XE();Qy(),mI("animate-spin "+t.modeColor.classes().text),Qf$1("size",20);}}function Vf(n,e){n&1&&(ei$2(0,"span",10),MI(1," \u2026 "),gc$2());}function Lf(n,e){if(n&1){let t=GE();ei$2(0,"button",12),tp$1("click",function(){Gl(t);let r=XE().$implicit,o=XE();return zl(o.emitPage(r))}),MI(1),gc$2();}if(n&2){let t=XE().$implicit,i=XE();Qf$1("variant",t===i.meta().current_page?"primary":"secondary")("disabled",i.controlsDisabled()),zf$1("aria-label","Page "+t)("aria-current",t===i.meta().current_page?"page":null),Qy(),Ic$2(" ",t," ");}}function Bf(n,e){if(n&1&&LE(0,Vf,2,0,"span",10)(1,Lf,2,5,"button",11),n&2){let t=e.$implicit;PE(t==="ellipsis"?0:1);}}var di=class n{filterQuery=T(dt);modeColor=T(re);meta=TP.required();disabled=TP(false,{transform:RP});loading=TP(false,{transform:RP});pageSizes=TP(An);pageChange=wP();sizeChange=wP();controlsDisabled=QI(()=>this.disabled()||this.loading());sizeOptions=QI(()=>this.pageSizes().map(e=>({label:String(e),value:e})));selectedSize=QI(()=>{let e=this.meta().per_page;return this.pageSizes().includes(e)?e:pt});selectedSizeOption=QI(()=>this.sizeOptions().find(e=>e.value===this.selectedSize())??null);pageItems=QI(()=>{let e=this.meta().total_pages,t=this.meta().current_page;if(e<=0)return [];if(e<=7)return Array.from({length:e},(S,R)=>R+1);let i=[1],r=t>3,o=t<e-2,u=Math.max(2,t-1),v=Math.min(e-1,t+1);r&&i.push("ellipsis");for(let S=u;S<=v;S+=1)i.push(S);return o&&i.push("ellipsis"),i.push(e),i});trackPageItem(e,t){return e==="ellipsis"?`ellipsis-${t}`:`page-${e}`}emitPage(e){this.controlsDisabled()||e===this.meta().current_page||(this.filterQuery.setPage(e),this.pageChange.emit(e));}onSizeSelect(e){this.controlsDisabled()||e==null||Array.isArray(e)||e.value!==this.meta().per_page&&(this.filterQuery.setSize(e.value),this.sizeChange.emit(e.value));}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-pagination"]],inputs:{meta:[1,"meta"],disabled:[1,"disabled"],loading:[1,"loading"],pageSizes:[1,"pageSizes"]},outputs:{pageChange:"pageChange",sizeChange:"sizeChange"},decls:15,vars:12,consts:[["aria-label","Pagination",1,"flex","flex-wrap","items-center","justify-between","gap-3","py-2","text-body","text-ink","dark:text-white"],[1,"m-0","text-body-sm","text-neutral-600","dark:text-neutral-400"],[1,"text-neutral-400","dark:text-neutral-500"],[1,"inline-flex","flex-wrap","items-center","gap-2"],["role","status","aria-live","polite",1,"inline-flex","size-8","shrink-0","items-center","justify-center"],["size","sm",1,"w-20","[&_button[aria-haspopup]]:min-w-0",3,"selectedChange","showTriggerIcon","disabled","options","selected"],["suffix","","name","chevron-down","aria-hidden","true",3,"size"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click","disabled"],["name","spinner","aria-hidden","true",3,"size"],[1,"sr-only"],["aria-hidden","true",1,"inline-flex","min-w-8","items-center","justify-center","text-body-sm","text-neutral-500","dark:text-neutral-400"],["africanies-button","","type","button","size","sm",1,"min-w-8",3,"variant","disabled"],["africanies-button","","type","button","size","sm",1,"min-w-8",3,"click","variant","disabled"]],template:function(t,i){t&1&&(ei$2(0,"nav",0)(1,"p",1),MI(2),ei$2(3,"span",2),MI(4),gc$2()(),ei$2(5,"div",3),LE(6,Ff,4,3,"span",4),ei$2(7,"africanies-select",5),tp$1("selectedChange",function(o){return i.onSizeSelect(o)}),Zf$1(8,"africanies-icon",6),gc$2(),ei$2(9,"button",7),tp$1("click",function(){return i.emitPage(i.meta().current_page-1)}),MI(10," Previous "),gc$2(),VE(11,Bf,2,1,null,null,Pf,true),ei$2(13,"button",7),tp$1("click",function(){return i.emitPage(i.meta().current_page+1)}),MI(14," Next "),gc$2()()()),t&2&&(zf$1("aria-busy",i.controlsDisabled()||null),Qy(2),mp$1(" Page ",i.meta().current_page," of ",i.meta().total_pages," "),Qy(2),Ic$2(" (",i.meta().total_items," items) "),Qy(2),PE(i.loading()?6:-1),Qy(),Qf$1("showTriggerIcon",false)("disabled",i.controlsDisabled())("options",i.sizeOptions())("selected",i.selectedSizeOption()),Qy(),Qf$1("size",16),Qy(),Qf$1("disabled",i.controlsDisabled()||!i.meta().has_previous_page),Qy(2),HE(i.pageItems()),Qy(2),Qf$1("disabled",i.controlsDisabled()||!i.meta().has_next_page));},dependencies:[g,Z,yt],encapsulation:2})};var kn=class n{template=T(nr$1);africaniesHeaderCellDef=TP.required();static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesHeaderCellDef",""]],inputs:{africaniesHeaderCellDef:[1,"africaniesHeaderCellDef"]}})};var nl=(n,e)=>e.key;function Hf(n,e){return this.rowId(e,n)}var zf=(n,e)=>e.label();function Uf(n,e){if(n&1){let t=GE();ei$2(0,"button",12),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.refreshClick.emit())}),Zf$1(1,"africanies-icon",13),MI(2),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.loading()||t.refreshing()),zf$1("aria-label",t.refreshLabel()),Qy(),mI(t.refreshing()?"animate-spin":""),Qf$1("size",16),Qy(),Ic$2(" ",t.refreshLabel()," ");}}function jf(n,e){if(n&1&&(ei$2(0,"span",16),MI(1),gc$2()),n&2){let t=XE(3);Qy(),Ic$2(" ",t.filterCount()," ");}}function $f(n,e){if(n&1){let t=GE();ei$2(0,"button",14),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.filterClick.emit())}),Zf$1(1,"africanies-icon",15),MI(2),LE(3,jf,2,1,"span",16),gc$2();}if(n&2){let t=XE(2);zf$1("aria-label",t.filterLabel()),Qy(),Qf$1("size",16),Qy(),Ic$2(" ",t.filterLabel()," "),Qy(),PE(t.filterCount()>0?3:-1);}}function Wf(n,e){if(n&1){let t=GE();ei$2(0,"button",14),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.exportClick.emit())}),Zf$1(1,"africanies-icon",17),MI(2),gc$2();}if(n&2){let t=XE(2);zf$1("aria-label",t.exportLabel()),Qy(),Qf$1("size",16),Qy(),Ic$2(" ",t.exportLabel()," ");}}function Gf(n,e){if(n&1&&(ei$2(0,"div",1)(1,"div",9),LE(2,Uf,3,6,"button",10),gc$2(),ei$2(3,"div",9),LE(4,$f,4,4,"button",11),LE(5,Wf,3,3,"button",11),gc$2()()),n&2){let t=XE();Qy(2),PE(t.showToolbarRefresh()?2:-1),Qy(2),PE(t.showFilter()?4:-1),Qy(),PE(t.showExport()?5:-1);}}function qf(n,e){if(n&1){let t=GE();ei$2(0,"div",2)(1,"africanies-error-indicator",18),tp$1("retry",function(){Gl(t);let r=XE();return zl(r.refreshClick.emit())}),gc$2()();}if(n&2){let t=XE();Qy(),Qf$1("error",e)("refreshing",t.refreshing());}}function Yf(n,e){if(n&1){let t=GE();ei$2(0,"button",22),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.collapseAllRows())}),Zf$1(1,"africanies-icon",23),gc$2();}n&2&&(Qy(),Qf$1("size",16));}function Kf(n,e){if(n&1){let t=GE();ei$2(0,"button",24),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.expandAllRows())}),Zf$1(1,"africanies-icon",25),gc$2();}if(n&2){let t=XE(2);Qf$1("disabled",t.rowList().length===0),Qy(),Qf$1("size",16);}}function Qf(n,e){if(n&1&&(ei$2(0,"th",19),LE(1,Yf,2,1,"button",20)(2,Kf,2,2,"button",21),gc$2()),n&2){let t=XE();mI(t.expandHeaderClass()),Qy(),PE(t.someRowsExpanded()?1:2);}}function Xf(n,e){n&1&&Jf$1(0,26),n&2&&Qf$1("ngTemplateOutlet",e);}function Zf(n,e){if(n&1){let t=GE();ei$2(0,"button",28),tp$1("click",function(){Gl(t);let r=XE().$implicit,o=XE();return zl(o.onSortHeaderClick(r.key))}),ei$2(1,"span"),MI(2),gc$2(),ei$2(3,"span",29),MI(4),gc$2()();}if(n&2){let t=XE().$implicit,i=XE();Qy(2),gp$1(t.header),Qy(2),Ic$2(" ",i.sortIndicator(t.key)," ");}}function Jf(n,e){if(n&1&&MI(0),n&2){let t=XE().$implicit;Ic$2(" ",t.header," ");}}function eh(n,e){if(n&1&&(ei$2(0,"th",19),LE(1,Xf,1,1,"ng-container",26)(2,Zf,5,2,"button",27)(3,Jf,1,1),gc$2()),n&2){let t,i=e.$implicit,r=XE();mI(r.headerCellClass(i)),cp$1("width",i.width??null),Qy(),PE((t=r.headerTemplateFor(i.key))?1:i.sortable?2:3,t);}}function th(n,e){if(n&1&&(ei$2(0,"tr")(1,"td",30),Zf$1(2,"africanies-loading-state",31),gc$2()()),n&2){let t=XE();Qy(),zf$1("colspan",t.colSpan()),Qy(),Qf$1("message",t.loadingLabel());}}function nh(n,e){if(n&1){let t=GE();ei$2(0,"tr")(1,"td",30)(2,"africanies-error-state",32),tp$1("retry",function(){Gl(t);let r=XE();return zl(r.refreshClick.emit())}),gc$2()()();}if(n&2){let t=XE();Qy(),zf$1("colspan",t.colSpan()),Qy(),Qf$1("message",t.errorMessage())("refreshing",t.refreshing());}}function ih(n,e){if(n&1){let t=GE();ei$2(0,"tr")(1,"td",30)(2,"africanies-empty-state",32),tp$1("retry",function(){Gl(t);let r=XE();return zl(r.refreshClick.emit())}),gc$2()()();}if(n&2){let t=XE();Qy(),zf$1("colspan",t.colSpan()),Qy(),Qf$1("message",t.emptyMessage())("refreshing",t.refreshing());}}function rh(n,e){if(n&1){let t=GE();ei$2(0,"td")(1,"button",36),tp$1("click",function(){Gl(t);let r=XE(),o=r.$implicit,u=r.$index,v=XE(2);return zl(v.toggleRowExpanded(o,u))}),Zf$1(2,"africanies-icon",37),gc$2()();}if(n&2){let t=XE(),i=t.$implicit,r=t.$index,o=XE(2);mI(o.expandBodyClass(r)),Qy(),zf$1("aria-label",o.isRowExpanded(i,r)?"Collapse row details":"Expand row details")("aria-expanded",o.isRowExpanded(i,r)),Qy(),Qf$1("name",o.isRowExpanded(i,r)?"minus":"plus")("size",16);}}function oh(n,e){if(n&1&&Jf$1(0,38),n&2){let t=XE(2).$implicit,i=XE(2);Qf$1("ngTemplateOutlet",e)("ngTemplateOutletContext",i.cellContext(t));}}function ah(n,e){if(n&1&&MI(0),n&2){let t=XE().$implicit,i=XE().$implicit,r=XE(2);Ic$2(" ",r.defaultCellText(i,t.key)," ");}}function sh(n,e){if(n&1&&(ei$2(0,"td"),LE(1,oh,1,2,"ng-container",38)(2,ah,1,1),gc$2()),n&2){let t,i=e.$implicit,r=XE().$index,o=XE(2);mI(o.bodyCellClass(i,r)),cp$1("width",i.width??null),Qy(),PE((t=o.templateFor(i.key))?1:2,t);}}function lh(n,e){if(n&1&&(ei$2(0,"div",44)(1,"dt",45),MI(2),gc$2(),ei$2(3,"dd",46),Jf$1(4,38),gc$2()()),n&2){let t=e.$implicit,i=XE(2).$implicit,r=XE(2);Qy(2),Ic$2(" ",t.label()," "),Qy(2),Qf$1("ngTemplateOutlet",t.template)("ngTemplateOutletContext",r.cellContext(i));}}function dh(n,e){if(n&1&&(ei$2(0,"tr",39)(1,"td",40)(2,"div",41)(3,"div",42)(4,"dl",43),VE(5,lh,5,3,"div",44,zf),gc$2()()()()()),n&2){let t=XE(),i=t.$implicit,r=t.$index,o=XE(2);lp$1("border-b",o.isRowExpanded(i,r))("border-border",o.isRowExpanded(i,r))("dark:border-white/10",o.isRowExpanded(i,r)),Qy(),zf$1("colspan",o.columns().length+1),Qy(),cp$1("grid-template-rows",o.isRowExpanded(i,r)?"1fr":"0fr"),lp$1("pointer-events-none",!o.isRowExpanded(i,r)),zf$1("aria-hidden",!o.isRowExpanded(i,r)),Qy(2),lp$1("opacity-0",!o.isRowExpanded(i,r))("opacity-100",o.isRowExpanded(i,r)),Qy(),HE(o.rowDetailDefs());}}function ch(n,e){if(n&1&&(ei$2(0,"tr"),LE(1,rh,3,6,"td",33),VE(2,sh,3,5,"td",34,nl),gc$2(),LE(4,dh,7,16,"tr",35)),n&2){let t=e.$implicit,i=e.$index,r=XE(2);mI(r.bodyRowClass(t,i)),Qy(),PE(r.isExpandable()?1:-1),Qy(),HE(r.columns()),Qy(2),PE(r.isExpandable()?4:-1);}}function uh(n,e){if(n&1&&VE(0,ch,5,4,null,null,Hf,true),n&2){let t=XE();HE(t.rowList());}}function ph(n,e){if(n&1){let t=GE();ei$2(0,"africanies-pagination",47),tp$1("pageChange",function(r){Gl(t);let o=XE();return zl(o.pageChange.emit(r))})("sizeChange",function(r){Gl(t);let o=XE();return zl(o.sizeChange.emit(r))}),gc$2();}if(n&2){let t=XE();Qf$1("meta",e)("loading",t.paginationLoading())("disabled",t.loading()&&!t.paginationLoading());}}var Vr=class n{expandable=TP(true,{transform:RP});rowTrackBy=TP((e,t)=>t);rowExpandChange=wP();columns=TP.required();rows=TP.required();sort=TP(null);showRefresh=TP(false,{transform:RP});refreshLabel=TP("Refresh");refreshing=TP(false,{transform:RP});loading=TP(false,{transform:RP});loadingLabel=TP("Loading\u2026");error=TP(null);emptyMessage=TP("No results found.");showFilter=TP(false,{transform:RP});filterLabel=TP("Filters");filterCount=TP(0,{transform:kP});showExport=TP(false,{transform:RP});exportLabel=TP("Export");meta=TP(null);sortChange=wP();refreshClick=wP();filterClick=wP();exportClick=wP();pageChange=wP();sizeChange=wP();cellDefs=NP();headerCellDefs=NP();rowDetailDefs=NP();expandedRowIds=Co$2(new Set);rowList=QI(()=>this.rows()??[]);isExpandable=QI(()=>this.expandable()&&this.rowDetailDefs().length>0);colSpan=QI(()=>this.columns().length+(this.isExpandable()?1:0));errorMessage=QI(()=>this.error()?.trim()||"Something went wrong.");staleError=QI(()=>{let e=this.error()?.trim();return !e||this.loading()||this.rowList().length===0?null:e});bodyKind=QI(()=>this.loading()&&this.rowList().length===0?"loading":this.error()?.trim()&&this.rowList().length===0?"error":this.rowList().length===0?"empty":"rows");paginationLoading=QI(()=>(this.loading()||this.refreshing())&&this.rowList().length>0);showToolbarRefresh=QI(()=>this.showRefresh()&&this.bodyKind()==="rows");visibleRowIds=QI(()=>this.rowList().map((e,t)=>this.rowId(e,t)));someRowsExpanded=QI(()=>{let e=this.expandedRowIds();return this.visibleRowIds().some(t=>e.has(t))});cellTemplateMap=QI(()=>{let e=new Map;for(let t of this.cellDefs())e.set(t.africaniesCellDef(),t.template);return e});headerCellTemplateMap=QI(()=>{let e=new Map;for(let t of this.headerCellDefs())e.set(t.africaniesHeaderCellDef(),t.template);return e});templateFor(e){return this.cellTemplateMap().get(e)??null}headerTemplateFor(e){return this.headerCellTemplateMap().get(e)??null}cellContext(e){return {$implicit:e}}bodyRowClass(e,t){return this.isExpandable()&&this.isRowExpanded(e,t)?"africanies-table-row group [&>td]:border-b-0":"africanies-table-row group last:[&>td]:border-b-0"}stickyEdge(e){return e.sticky===false?null:e.sticky==="left"||e.sticky==="right"?e.sticky:e.key==="actions"?"right":null}expandHeaderClass(){return "w-10 border-b border-border px-2 py-3.5 dark:border-white/10 "+this.stickyPinClass("left","head")}expandBodyClass(e){let t=e>0?this.rowList()[e-1]:void 0,i=t!==void 0&&this.isRowExpanded(t,e-1);return "w-10 px-2 py-3.5 align-middle "+this.stickyPinClass("left","body",e,i)}headerCellClass(e){return "border-b border-border whitespace-normal wrap-break-word px-3 py-3.5 font-medium text-neutral-600 dark:border-white/10 dark:text-neutral-400 "+this.stickySurfaceClass(e,"head")}bodyCellClass(e,t){let i=this.stickyEdge(e)?"":"border-b border-border dark:border-white/10 ",r=t>0?this.rowList()[t-1]:void 0,o=r!==void 0&&this.isRowExpanded(r,t-1),u=e.key==="actions"?"whitespace-nowrap ":"whitespace-normal wrap-break-word ";return i+"px-3 py-3.5 align-middle "+u+this.stickySurfaceClass(e,"body",t,o)}stickyPinClass(e,t,i=0,r=false){let o=e==="right"?"sticky right-0 z-[1]":"sticky left-0 z-[1]";if(t==="head")return `${o} z-[2] bg-background-welcome dark:bg-ink-950`;let u=!r&&i>0?"shadow-[0_-1px_0_0_#c9d5e1] dark:shadow-[0_-1px_0_0_rgba(255,255,255,0.1)]":"";return `${o} bg-white dark:bg-ink ${u}`}stickySurfaceClass(e,t,i=0,r=false){let o=this.stickyEdge(e);return o?this.stickyPinClass(o,t,i,r):""}rowId(e,t){return String(this.rowTrackBy()(e,t))}isRowExpanded(e,t){return this.expandedRowIds().has(this.rowId(e,t))}toggleRowExpanded(e,t){let i=this.rowId(e,t),r=this.expandedRowIds().has(i);this.expandedRowIds.update(o=>{let u=new Set(o);return r?u.delete(i):u.add(i),u}),this.rowExpandChange.emit({row:e,expanded:!r});}expandAllRows(){this.expandedRowIds.set(new Set(this.visibleRowIds()));}collapseAllRows(){this.expandedRowIds.set(new Set);}defaultCellText(e,t){let i=e[t];return i==null?"":String(i)}sortIndicator(e){let t=this.sort();return !t||t.key!==e?"\u2195":t.direction==="asc"?"\u2191":"\u2193"}onSortHeaderClick(e){let t=this.sort(),i=t?.key===e&&t.direction==="asc"?"desc":"asc";this.sortChange.emit({key:e,direction:i});}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-table"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.cellDefs,Qt,4)(r,i.headerCellDefs,kn,4)(r,i.rowDetailDefs,Xt,4),t&2&&oI(3);},hostAttrs:[1,"block","w-full","min-w-0"],inputs:{expandable:[1,"expandable"],rowTrackBy:[1,"rowTrackBy"],columns:[1,"columns"],rows:[1,"rows"],sort:[1,"sort"],showRefresh:[1,"showRefresh"],refreshLabel:[1,"refreshLabel"],refreshing:[1,"refreshing"],loading:[1,"loading"],loadingLabel:[1,"loadingLabel"],error:[1,"error"],emptyMessage:[1,"emptyMessage"],showFilter:[1,"showFilter"],filterLabel:[1,"filterLabel"],filterCount:[1,"filterCount"],showExport:[1,"showExport"],exportLabel:[1,"exportLabel"],meta:[1,"meta"]},outputs:{rowExpandChange:"rowExpandChange",sortChange:"sortChange",refreshClick:"refreshClick",filterClick:"filterClick",exportClick:"exportClick",pageChange:"pageChange",sizeChange:"sizeChange"},decls:16,vars:6,consts:[[1,"flex","w-full","min-w-0","flex-col","gap-3"],[1,"flex","items-center","justify-between","gap-2"],[1,"flex","justify-end"],[1,"min-w-0","w-full","overflow-x-auto","rounded-md","border","border-border","bg-white","dark:border-white/10","dark:bg-ink"],[1,"w-max","min-w-full","table-auto","border-separate","border-spacing-0","bg-inherit","text-left","text-body","text-ink","dark:text-white"],[1,"border-b","border-border","bg-background-welcome","dark:border-white/10","dark:bg-ink-950"],["scope","col",3,"class"],["scope","col",3,"class","width"],[3,"meta","loading","disabled"],[1,"flex","items-center","gap-2"],["africanies-button","","type","button","variant","secondary","size","sm",3,"disabled"],["africanies-button","","type","button","variant","secondary","size","sm"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click","disabled"],["name","refresh",3,"size"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click"],["name","filter",3,"size"],[1,"inline-flex","min-w-5","items-center","justify-center","rounded-full","bg-ink","px-1.5","py-0.5","text-caption","font-semibold","tabular-nums","text-white","dark:bg-white","dark:text-ink"],["name","download",3,"size"],["retryText","Refresh",1,"max-w-[min(100%,20rem)]",3,"retry","error","refreshing"],["scope","col"],["type","button","aria-label","Collapse all",1,"inline-flex","size-8","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-white","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white"],["type","button","aria-label","Expand all",1,"inline-flex","size-8","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-white","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","disabled:cursor-not-allowed","disabled:opacity-40","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"disabled"],["type","button","aria-label","Collapse all",1,"inline-flex","size-8","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-white","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"click"],["name","minus",3,"size"],["type","button","aria-label","Expand all",1,"inline-flex","size-8","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-white","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","disabled:cursor-not-allowed","disabled:opacity-40","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"click","disabled"],["name","plus",3,"size"],[3,"ngTemplateOutlet"],["type","button",1,"inline-flex","cursor-pointer","items-center","gap-1","rounded-sm","font-medium","text-neutral-600","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:text-white"],["type","button",1,"inline-flex","cursor-pointer","items-center","gap-1","rounded-sm","font-medium","text-neutral-600","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:text-white",3,"click"],["aria-hidden","true",1,"text-caption","text-neutral-400"],[1,"px-3","py-6"],[3,"message"],[3,"retry","message","refreshing"],[3,"class"],[3,"class","width"],[1,"last:border-b-0",3,"border-b","border-border","dark:border-white/10"],["type","button",1,"inline-flex","size-8","cursor-pointer","items-center","justify-center","rounded-md","text-neutral-600","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"click"],[3,"name","size"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"last:border-b-0"],[1,"p-0","align-top"],[1,"grid","transition-[grid-template-rows]","duration-200","ease-out","motion-reduce:transition-none"],[1,"min-h-0","overflow-hidden","border-t","border-border/70","bg-neutral-50","dark:border-white/10","dark:bg-white/[0.05]"],[1,"m-0","grid","gap-x-6","gap-y-3","px-3","py-3","transition-opacity","duration-200","ease-out","motion-reduce:transition-none","sm:grid-cols-2","lg:grid-cols-3"],[1,"min-w-0"],[1,"m-0","text-caption","font-medium","text-neutral-500","dark:text-neutral-400"],[1,"m-0","mt-0.5","text-body-sm","text-ink","dark:text-white"],[3,"pageChange","sizeChange","meta","loading","disabled"]],template:function(t,i){if(t&1&&(ei$2(0,"div",0),LE(1,Gf,6,3,"div",1),LE(2,qf,2,2,"div",2),ei$2(3,"div",3)(4,"table",4)(5,"thead",5)(6,"tr"),LE(7,Qf,3,3,"th",6),VE(8,eh,4,5,"th",7,nl),gc$2()(),ei$2(10,"tbody"),LE(11,th,3,2,"tr")(12,nh,3,3,"tr")(13,ih,3,3,"tr")(14,uh,2,0),gc$2()()(),LE(15,ph,1,3,"africanies-pagination",8),gc$2()),t&2){let r,o,u;zf$1("aria-busy",i.loading()||i.refreshing()||null),Qy(),PE(i.showRefresh()||i.showFilter()||i.showExport()?1:-1),Qy(),PE((r=i.staleError())?2:-1,r),Qy(5),PE(i.isExpandable()?7:-1),Qy(),HE(i.columns()),Qy(3),PE((o=i.bodyKind())==="loading"?11:o==="error"?12:o==="empty"?13:14),Qy(4),PE((u=i.meta())?15:-1,u);}},dependencies:[ya,Z,g,Mt,Dt,Tt,At,di],styles:["[_nghost-%COMP%] tr.africanies-table-row[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%]{background-color:#eef2f6}.dark[_nghost-%COMP%] tr.africanies-table-row[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%], .dark [_nghost-%COMP%] tr.africanies-table-row[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%]{background-color:#272729}"]})};var Zt=class n{template=T(nr$1);africaniesStepDef=TP.required();static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesStepDef",""]],inputs:{africaniesStepDef:[1,"africaniesStepDef"]}})};var mh=["stepPane"],fh=(n,e)=>e.key;function hh(n,e){n&1&&MI(0," \u2713 ");}function gh(n,e){if(n&1&&MI(0),n&2){let t=XE().$index;Ic$2(" ",t+1," ");}}function _h(n,e){n&1&&Zf$1(0,"span",14);}function yh(n,e){if(n&1){let t=GE();ei$2(0,"li",8)(1,"button",11),tp$1("click",function(){let r=Gl(t).$index,o=XE();return zl(o.onHeaderClick(r))}),ei$2(2,"span",12),LE(3,hh,1,0)(4,gh,1,1),gc$2(),ei$2(5,"span",13),MI(6),gc$2()(),LE(7,_h,1,0,"span",14),gc$2();}if(n&2){let t=e.$implicit,i=e.$index,r=XE();Qy(),mI(r.headerButtonClass(i)),Qf$1("disabled",!r.canActivate(i)),zf$1("aria-current",i===r.activeIndex()?"step":null),Qy(),mI(r.stepBadgeClass(i)),Qy(),PE(i<r.activeIndex()?3:4),Qy(3),gp$1(t.label),Qy(),PE(i<r.steps().length-1?7:-1);}}function vh(n,e){if(n&1&&(ei$2(0,"div",10,0),Jf$1(2,15),gc$2()),n&2){let t=XE();Qy(2),Qf$1("ngTemplateOutlet",e)("ngTemplateOutletContext",t.stepContext());}}function bh(){return typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches}var Lr=class n{modeColor=T(re);steps=TP.required();activeIndex=TP.required();linear=TP(true,{transform:RP});animateSteps=TP(true,{transform:RP});activeIndexChange=wP();stepDefs=NP();stepPane=bP("stepPane");animatedIndex=Co$2(null);stepTemplateMap=QI(()=>{let e=new Map;for(let t of this.stepDefs())e.set(t.africaniesStepDef(),t.template);return e});activeTemplate=QI(()=>{let e=this.steps()[this.activeIndex()];return e?this.stepTemplateMap().get(e.key)??null:null});stepContext=QI(()=>({$implicit:this.steps()[this.activeIndex()]?.key??""}));progressPercent=QI(()=>{let e=this.steps().length;return e<=0?0:(this.activeIndex()+1)/e*100});constructor(){OP(()=>{if(!this.animateSteps())return;let e=this.activeIndex(),t=this.stepPane()?.nativeElement;if(!t)return;let i=this.animatedIndex();if(i===e||(this.animatedIndex.set(e),i===null||bh()))return;let r=e>i;t.animate([{opacity:0,transform:`translateX(${r?"1rem":"-1rem"})`},{opacity:1,transform:"translateX(0)"}],{duration:280,easing:"cubic-bezier(0.22, 1, 0.36, 1)",fill:"both"});});}headerButtonClass(e){let t=e===this.activeIndex(),i=e<this.activeIndex();return t?"bg-background-welcome text-ink dark:bg-white/10 dark:text-white":i?"cursor-pointer text-ink hover:bg-background-welcome dark:text-white dark:hover:bg-white/10":"opacity-40 text-neutral-500 dark:text-neutral-400"}stepBadgeClass(e){let t="inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-full border text-body-sm font-medium";if(e<=this.activeIndex()){let i=this.modeColor.classes();return `${t} ${i.border} ${i.bg} text-white`}return `${t} border-border bg-white text-neutral-500 dark:border-white/20 dark:bg-ink-950 dark:text-neutral-400`}canActivate(e){return e===this.activeIndex()||!this.linear()?true:e<this.activeIndex()}onHeaderClick(e){e!==this.activeIndex()&&this.canActivate(e)&&this.activeIndexChange.emit(e);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-stepper"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.stepDefs,Zt,4),t&2&&oI();},viewQuery:function(t,i){t&1&&ip$1(i.stepPane,mh,5),t&2&&oI();},hostAttrs:[1,"block","min-w-0"],inputs:{steps:[1,"steps"],activeIndex:[1,"activeIndex"],linear:[1,"linear"],animateSteps:[1,"animateSteps"]},outputs:{activeIndexChange:"activeIndexChange"},decls:13,vars:8,consts:[["stepPane",""],[1,"flex","flex-col","gap-5","text-ink","dark:text-white"],[1,"flex","flex-col","gap-2"],[1,"m-0","text-caption","font-medium","uppercase","tracking-wide","text-neutral-500","dark:text-neutral-400"],[1,"normal-case","tracking-normal","text-neutral-400","dark:text-neutral-500"],["aria-hidden","true",1,"h-1","w-full","overflow-hidden","rounded-full","bg-background-welcome","dark:bg-white/10"],[1,"h-full","rounded-full","transition-[width]","duration-300","ease-out"],["role","list",1,"africanies-step-rail","m-0","flex","list-none","items-start","gap-1","overflow-x-auto","p-0","pb-1"],[1,"flex","min-w-0","shrink-0","items-center","gap-1"],[1,"africanies-step-body"],[1,"africanies-step-pane"],["type","button",1,"inline-flex","max-w-38","items-center","gap-2","rounded-lg","px-2","py-1.5","text-left","transition-colors","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","disabled:cursor-not-allowed",3,"click","disabled"],["aria-hidden","true"],[1,"truncate","text-body-sm","font-medium"],["aria-hidden","true",1,"hidden","h-px","w-4","shrink-0","bg-border","sm:block","dark:bg-white/15"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,i){if(t&1&&(ei$2(0,"div",1)(1,"div",2)(2,"p",3),MI(3),ei$2(4,"span",4),MI(5),gc$2()(),ei$2(6,"div",5),Zf$1(7,"div",6),gc$2(),ei$2(8,"ol",7),VE(9,yh,8,9,"li",8,fh),gc$2()(),ei$2(11,"div",9),LE(12,vh,3,2,"div",10),gc$2()()),t&2){let r;Qy(3),mp$1(" Step ",i.activeIndex()+1," of ",i.steps().length," "),Qy(2),Ic$2(" \xB7 ",i.steps()[i.activeIndex()]?.label," "),Qy(2),mI(i.modeColor.classes().bg),cp$1("width",i.progressPercent(),"%"),Qy(2),HE(i.steps()),Qy(3),PE((r=i.activeTemplate())?12:-1,r);}},dependencies:[ya],styles:[".africanies-step-rail[_ngcontent-%COMP%]{scrollbar-width:thin}.africanies-step-body[_ngcontent-%COMP%]{min-width:0;overflow-x:clip;padding-inline:2px;margin-inline:-2px}.africanies-step-pane[_ngcontent-%COMP%]{min-width:0;will-change:opacity,transform}"]})};var Ch=[[["","actions",""]]],xh=["[actions]"];function wh(n,e){if(n&1&&(mc$2(0,"h1",2),MI(1),yc$2()),n&2){let t=XE(2);Qy(),Ic$2(" ",t.title()," ");}}function Sh(n,e){if(n&1&&(mc$2(0,"p",3),MI(1),yc$2()),n&2){let t=XE(2);Qy(),Ic$2(" ",t.subtitle()," ");}}function kh(n,e){if(n&1&&(mc$2(0,"header",0)(1,"div",1),LE(2,wh,2,1,"h1",2),LE(3,Sh,2,1,"p",3),yc$2(),mc$2(4,"div",4),nI(5),yc$2()()),n&2){let t=XE();Qy(2),PE(t.title()?2:-1),Qy(),PE(t.subtitle()?3:-1);}}var ci=class n{title=TP("");subtitle=TP("");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-page-header"]],hostAttrs:[1,"block"],inputs:{title:[1,"title"],subtitle:[1,"subtitle"]},ngContentSelectors:xh,decls:1,vars:1,consts:[[1,"flex","flex-col","gap-3","sm:flex-row","sm:items-end","sm:justify-between"],[1,"flex","min-w-0","max-w-3xl","flex-col","gap-1"],[1,"m-0","text-heading-3","font-bold","text-ink","dark:text-white"],[1,"m-0","text-body","text-neutral-600","dark:text-neutral-400"],[1,"flex","shrink-0","flex-wrap","items-center","gap-2","empty:hidden"]],template:function(t,i){t&1&&(tI(Ch),LE(0,kh,6,2,"header",0)),t&2&&PE(i.title()||i.subtitle()?0:-1);},encapsulation:2})};function Mh(n,e){if(n&1&&(ei$2(0,"a",3),Zf$1(1,"africanies-icon",5),gc$2()),n&2){let t=XE(3);Qf$1("routerLink",t.backTarget().routerLink)("queryParams",t.backTarget().queryParams)("fragment",t.backTarget().fragment),zf$1("aria-label",t.backLabel()),Qy(),Qf$1("size",18);}}function Dh(n,e){if(n&1&&(ei$2(0,"div",6),Zf$1(1,"africanies-breadcrumb",7),gc$2()),n&2){let t=XE(3);lp$1("border-l",t.showBackButton())("pl-2",t.showBackButton())("sm:pl-3",t.showBackButton())("border-border",t.showBackButton())("dark:border-white/10",t.showBackButton()),Qy(),Qf$1("items",t.breadcrumbs());}}function Th(n,e){if(n&1&&(ei$2(0,"div",1),LE(1,Mh,2,5,"a",3),LE(2,Dh,2,11,"div",4),gc$2()),n&2){let t=XE(2);Qy(),PE(t.showBackButton()?1:-1),Qy(),PE(t.breadcrumbs().length?2:-1);}}function Ah(n,e){if(n&1&&Zf$1(0,"africanies-page-header",2),n&2){let t=XE(2);Qf$1("title",t.title())("subtitle",t.subtitle());}}function Eh(n,e){if(n&1&&(ei$2(0,"div",0),LE(1,Th,3,2,"div",1),LE(2,Ah,1,2,"africanies-page-header",2),gc$2()),n&2){let t=XE();Qy(),PE(t.showBackButton()||t.breadcrumbs().length?1:-1),Qy(),PE(t.title()||t.subtitle()?2:-1);}}var ui=class n{router=T(pt$1);breadcrumbs=TP([]);title=TP("");subtitle=TP("");url=TP("");catalogNav=TP([]);showBack=TP(true,{transform:RP});backLink=TP(null);backLabel=TP("Back");routeUrl=Y$1(this.router.events.pipe(Pr$2(e=>e instanceof ue),ve$2(e=>e.urlAfterRedirects),Jc$1(this.router.url)),{initialValue:this.router.url});backTarget=QI(()=>{let e=this.routeUrl()||this.url();return Nr(Pr(this.router.routerState.snapshot.root),e,Fr(e,this.catalogNav()),this.backLink())});showBackButton=QI(()=>this.showBack()&&this.backTarget()!=null);static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-app-shell-content-header"]],inputs:{breadcrumbs:[1,"breadcrumbs"],title:[1,"title"],subtitle:[1,"subtitle"],url:[1,"url"],catalogNav:[1,"catalogNav"],showBack:[1,"showBack"],backLink:[1,"backLink"],backLabel:[1,"backLabel"]},decls:1,vars:1,consts:[[1,"mb-6","flex","flex-col","gap-4"],[1,"flex","min-w-0","items-center","gap-2","sm:gap-3"],[3,"title","subtitle"],[1,"inline-flex","size-8","shrink-0","cursor-pointer","items-center","justify-center","rounded-lg","text-neutral-600","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"routerLink","queryParams","fragment"],[1,"min-w-0","flex-1",3,"border-l","pl-2","sm:pl-3","border-border","dark:border-white/10"],["name","chevron-left","aria-hidden","true",3,"size"],[1,"min-w-0","flex-1"],[3,"items"]],template:function(t,i){t&1&&LE(0,Eh,3,2,"div",0),t&2&&PE(i.showBackButton()||i.breadcrumbs().length||i.title()||i.subtitle()?0:-1);},dependencies:[g,qt,ci,Hs$1],encapsulation:2})};function Ih(n,e){if(n&1){let t=GE();mc$2(0,"img",3),np$1("error",function(){Gl(t);let r=XE();return zl(r.imageFailed.set(true))}),yc$2();}if(n&2){let t=XE();Xf$1("src",t.src(),Hd$1)("alt",t.alt()||t.name()||"");}}function Oh(n,e){if(n&1&&(mc$2(0,"span"),MI(1),yc$2()),n&2){let t=XE();mI(t.initialsClass()),Qy(),gp$1(t.initials());}}var Br=class n{name=TP("");src=TP(null);alt=TP("");size=TP("md");imageFailed=Co$2(false);initials=QI(()=>Rh(this.name()));shellClass=QI(()=>{let e="inline-flex items-center justify-center overflow-hidden rounded-full bg-background-welcome font-semibold text-ink ring-1 ring-border dark:bg-white/10 dark:text-white dark:ring-white/15";switch(this.size()){case "sm":return `${e} size-7 text-caption`;case "lg":return `${e} size-10 text-body-sm`;default:return `${e} size-8 text-caption`}});initialsClass=QI(()=>"uppercase tracking-wide");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-avatar"]],hostAttrs:[1,"inline-flex","shrink-0"],inputs:{name:[1,"name"],src:[1,"src"],alt:[1,"alt"],size:[1,"size"]},decls:3,vars:4,consts:[["role","img"],[1,"size-full","rounded-full","object-cover",3,"src","alt"],[3,"class"],[1,"size-full","rounded-full","object-cover",3,"error","src","alt"]],template:function(t,i){t&1&&(mc$2(0,"span",0),LE(1,Ih,1,2,"img",1)(2,Oh,2,3,"span",2),yc$2()),t&2&&(mI(i.shellClass()),zf$1("aria-label",i.name()||i.alt()||"Avatar"),Qy(),PE(i.src()&&!i.imageFailed()?1:2));},encapsulation:2})};function Rh(n){let e=n.trim().split(/\s+/).filter(Boolean);if(e.length===0)return "?";let t=e[0]??"";if(e.length===1)return t.slice(0,2).toUpperCase();let i=e[e.length-1]??"";return `${t[0]??""}${i[0]??""}`.toUpperCase()}function Nh(n,e){n&1&&Zf$1(0,"africanies-icon",3),n&2&&Qf$1("size",14);}var pi=class n{name=TP.required();src=TP(null);menuItems=TP.required();size=TP("md");ariaLabel=TP("Account menu");disabled=TP(false,{transform:RP});showCaret=TP(true,{transform:RP});static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-avatar-menu"]],inputs:{name:[1,"name"],src:[1,"src"],menuItems:[1,"menuItems"],size:[1,"size"],ariaLabel:[1,"ariaLabel"],disabled:[1,"disabled"],showCaret:[1,"showCaret"]},decls:4,vars:8,consts:[[3,"items","ariaLabel","disabled"],["type","button","africaniesActionMenuTrigger","",1,"inline-flex","cursor-pointer","items-center","gap-1","rounded-lg","p-0.5","pr-1","transition-colors","hover:bg-background-welcome","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","disabled:cursor-not-allowed","disabled:opacity-50","dark:hover:bg-white/10"],[3,"name","src","size"],["name","chevron-down","aria-hidden","true",1,"shrink-0","text-neutral-500","dark:text-neutral-400",3,"size"]],template:function(t,i){t&1&&(ei$2(0,"africanies-action-menu",0)(1,"button",1),Zf$1(2,"africanies-avatar",2),LE(3,Nh,1,1,"africanies-icon",3),gc$2()()),t&2&&(Qf$1("items",i.menuItems())("ariaLabel",i.ariaLabel())("disabled",i.disabled()),Qy(),zf$1("aria-label",i.ariaLabel()),Qy(),Qf$1("name",i.name())("src",i.src())("size",i.size()),Qy(),PE(i.showCaret()?3:-1));},dependencies:[Br,yn,gt,g],encapsulation:2})};var Ph=["scrollHost"],Fh=["loadSentinel"],Vh=(n,e)=>e.id;function Lh(n,e){if(n&1&&(ei$2(0,"p",7),MI(1),gc$2()),n&2){let t=XE();Qy(),Ic$2(" ",t.unreadCount()," unread ");}}function Bh(n,e){if(n&1){let t=GE();ei$2(0,"button",16),tp$1("click",function(){Gl(t);let r=XE();return zl(r.markAllRead())}),MI(1),gc$2();}if(n&2){let t=XE();Qf$1("variant",t.confirmingMarkAll()?"secondary":"ghost")("disabled",t.markingAll()),zf$1("aria-label",t.markAllReadAria()),Qy(),Ic$2(" ",t.markAllReadLabel()," ");}}function Hh(n,e){n&1&&(ei$2(0,"div",13),Zf$1(1,"africanies-icon",17),ei$2(2,"p",18),MI(3," Loading notifications\u2026 "),gc$2()()),n&2&&(Qy(),Qf$1("size",24));}function zh(n,e){if(n&1){let t=GE();ei$2(0,"button",21),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.retryInitialLoad())}),MI(1," Try again "),gc$2();}}function Uh(n,e){if(n&1&&(ei$2(0,"div",14)(1,"p",19),MI(2),gc$2(),LE(3,zh,2,0,"button",20),gc$2()),n&2){let t=XE();Qy(2),Ic$2(" ",t.loadError()," "),Qy(),PE(t.usesPagination()?3:-1);}}function jh(n,e){n&1&&(ei$2(0,"div",15),Zf$1(1,"africanies-icon",22),ei$2(2,"p",23),MI(3," You're all caught up. "),gc$2()()),n&2&&(Qy(),Qf$1("size",32));}function $h(n,e){if(n&1&&(ei$2(0,"time",31),MI(1),gc$2()),n&2){let t=XE().$implicit,i=XE(2);Qf$1("dateTime",t.timestamp),Qy(),Ic$2(" ",i.formatTimestamp(t.timestamp)," ");}}function Wh(n,e){if(n&1&&(ei$2(0,"p",35),MI(1),gc$2()),n&2){let t=XE().$implicit;lp$1("text-neutral-800",!t.read)("dark:text-neutral-100",!t.read)("text-neutral-600",t.read)("dark:text-neutral-400",t.read),Qy(),Ic$2(" ",t.body," ");}}function Gh(n,e){n&1&&Zf$1(0,"africanies-icon",39),n&2&&Qf$1("size",12);}function qh(n,e){if(n&1){let t=GE();ei$2(0,"a",38),tp$1("click",function(r){Gl(t);let o=XE(2).$implicit,u=XE(2);return zl(u.onViewClick(r,o))}),MI(1),LE(2,Gh,1,1,"africanies-icon",39),gc$2();}if(n&2){let t=XE(2).$implicit,i=XE(2);mI(i.viewLinkClass()),lp$1("pointer-events-none",i.markingId()===t.id)("opacity-50",i.markingId()===t.id),Qf$1("href",i.viewHref(t),Hd$1),zf$1("target",t.externalLink?"_blank":null)("rel",t.externalLink?"noopener noreferrer":null),Qy(),Ic$2(" ",i.markingId()===t.id?"Opening\u2026":"View"," "),Qy(),PE(t.externalLink?2:-1);}}function Yh(n,e){if(n&1){let t=GE();ei$2(0,"div",33),LE(1,qh,3,11,"a",36),ei$2(2,"button",37),tp$1("click",function(){Gl(t);let r=XE().$implicit,o=XE(2);return zl(o.markRead(r))}),MI(3),gc$2()();}if(n&2){let t=XE().$implicit,i=XE(2);Qy(),PE(t.link?1:-1),Qy(),Qf$1("disabled",i.markingId()===t.id),Qy(),Ic$2(" ",i.markingId()===t.id?"Marking\u2026":"Mark read"," ");}}function Kh(n,e){n&1&&Zf$1(0,"africanies-icon",39),n&2&&Qf$1("size",12);}function Qh(n,e){if(n&1){let t=GE();ei$2(0,"div",34)(1,"a",38),tp$1("click",function(r){Gl(t);let o=XE().$implicit,u=XE(2);return zl(u.onViewClick(r,o))}),MI(2),LE(3,Kh,1,1,"africanies-icon",39),gc$2()();}if(n&2){let t=XE().$implicit,i=XE(2);Qy(),mI(i.viewLinkClass()),lp$1("pointer-events-none",i.markingId()===t.id)("opacity-50",i.markingId()===t.id),Qf$1("href",i.viewHref(t),Hd$1),zf$1("target",t.externalLink?"_blank":null)("rel",t.externalLink?"noopener noreferrer":null),Qy(),Ic$2(" ",i.markingId()===t.id?"Opening\u2026":"View"," "),Qy(),PE(t.externalLink?3:-1);}}function Xh(n,e){if(n&1&&(ei$2(0,"li")(1,"article",26),Zf$1(2,"span",27),ei$2(3,"div",28)(4,"div",29)(5,"h3",30),MI(6),gc$2(),LE(7,$h,2,2,"time",31),gc$2(),LE(8,Wh,2,9,"p",32),LE(9,Yh,4,3,"div",33)(10,Qh,4,11,"div",34),gc$2()()()),n&2){let t=e.$implicit,i=XE(2);Qy(),mI(i.itemCardClass(t)),Qy(),lp$1("bg-ink-blue",!t.read)("dark:bg-export-light",!t.read)("bg-transparent",t.read),Qy(3),lp$1("font-bold",!t.read)("text-ink",!t.read)("dark:text-white",!t.read)("font-medium",t.read)("text-neutral-600",t.read)("dark:text-neutral-300",t.read),Qy(),Ic$2(" ",t.title," "),Qy(),PE(t.timestamp?7:-1),Qy(),PE(t.body?8:-1),Qy(),PE(!t.read&&i.canMarkRead()?9:t.link?10:-1);}}function Zh(n,e){n&1&&(ei$2(0,"span",40),Zf$1(1,"africanies-icon",41),MI(2," Loading more\u2026 "),gc$2()),n&2&&(Qy(),Qf$1("size",14));}function Jh(n,e){if(n&1&&(ei$2(0,"div",25,1),LE(2,Zh,3,1,"span",40),gc$2()),n&2){let t=XE(2);Qy(2),PE(t.loadingMore()?2:-1);}}function eg(n,e){if(n&1&&(ei$2(0,"ul",24),VE(1,Xh,11,24,"li",null,Vh),gc$2(),LE(3,Jh,3,1,"div",25)),n&2){let t=XE();Qy(),HE(t.items()),Qy(2),PE(t.usesPagination()?3:-1);}}var tg=120,ng=4e3,Hr=class n{ref=T(Ae);data=T(Je);destroyRef=T(xe$2);injector=T(fe$1);shipping=T(He);scrollHost=bP("scrollHost");loadSentinel=bP("loadSentinel");observer=null;viewLinkClass=QI(()=>{let e="inline-flex cursor-pointer items-center gap-1 self-start text-caption font-semibold underline underline-offset-[3px] transition-colors";return this.shipping.mode()==="stn"?`${e} text-import decoration-import/35 hover:decoration-import dark:text-import-light dark:decoration-import-light/40 dark:hover:decoration-import-light`:`${e} text-export decoration-export/35 hover:decoration-export dark:text-export-light dark:decoration-export-light/40 dark:hover:decoration-export-light`});title=QI(()=>this.data.title??"Notifications");items=Co$2(this.data.onLoadPage?[]:this.data.notifications??[]);markingId=Co$2(null);markingAll=Co$2(false);confirmingMarkAll=Co$2(false);loadingInitial=Co$2(!!this.data.onLoadPage);loadingMore=Co$2(false);loadError=Co$2(null);hasMore=Co$2(false);currentPage=Co$2(0);unreadCount=QI(()=>(this.items()??[]).filter(e=>!e.read).length);hasUnread=QI(()=>this.unreadCount()>0);markAllReadLabel=QI(()=>this.markingAll()?"Marking\u2026":this.confirmingMarkAll()?"Click again to confirm":"Mark all as read");markAllReadAria=QI(()=>this.confirmingMarkAll()?"Click again to confirm mark all as read":"Mark all as read");markAllConfirmTimer=null;constructor(){this.data.onLoadPage&&this.fetchPage(1,"replace"),mu$2(()=>{this.loadingInitial()||!this.data.onLoadPage||!this.hasMore()||this.items().length===0||!this.loadSentinel()||ZI(()=>this.scheduleInfiniteScrollSetup());}),this.destroyRef.onDestroy(()=>{this.observer?.disconnect(),this.observer=null,this.clearMarkAllConfirm();});}usesPagination(){return typeof this.data.onLoadPage=="function"}canMarkAllRead(){return typeof this.data.onMarkAllRead=="function"}canMarkRead(){return typeof this.data.onMarkRead=="function"}retryInitialLoad(){this.data.onLoadPage&&(this.loadError.set(null),this.fetchPage(1,"replace"));}itemCardClass(e){return e.read?"border-border bg-transparent dark:border-white/10":"border-ink-blue/20 bg-background-welcome dark:border-export-light/20 dark:bg-white/[0.04]"}viewHref(e){let t=e.link?.trim();return t?rr(t,this.shipping.mode()):""}onViewClick(e,t){if(this.markingId()||this.markingAll()){e.preventDefault();return}let i=()=>{this.ref.close({selectedId:t.id,markedReadId:t.read?void 0:t.id});},r=()=>{let o=this.viewHref(t);o&&(t.externalLink?window.open(o,"_blank","noopener,noreferrer"):window.location.assign(o)),i();};if(t.read||!this.data.onMarkRead){i();return}e.preventDefault(),this.markingId.set(t.id),this.runHook(()=>this.data.onMarkRead?.(t.id),()=>{this.patchRead(t.id),this.markingId.set(null),r();},()=>this.markingId.set(null));}markRead(e){e.read||this.markingId()||this.markingAll()||!this.data.onMarkRead||(this.markingId.set(e.id),this.runHook(()=>this.data.onMarkRead?.(e.id),()=>{this.patchRead(e.id),this.markingId.set(null);},()=>this.markingId.set(null)));}markAllRead(){if(!(this.markingAll()||!this.data.onMarkAllRead)){if(!this.confirmingMarkAll()){this.armMarkAllConfirm();return}this.clearMarkAllConfirm(),this.markingAll.set(true),this.runHook(()=>this.data.onMarkAllRead?.(),()=>{this.items.update(e=>(e??[]).map(t=>U$1($({},t),{read:true}))),this.markingAll.set(false),this.ref.close({markedAllRead:true});},()=>this.markingAll.set(false));}}armMarkAllConfirm(){this.confirmingMarkAll.set(true),this.clearMarkAllConfirmTimer(),this.markAllConfirmTimer=setTimeout(()=>{this.confirmingMarkAll.set(false),this.markAllConfirmTimer=null;},ng);}clearMarkAllConfirm(){this.confirmingMarkAll.set(false),this.clearMarkAllConfirmTimer();}clearMarkAllConfirmTimer(){this.markAllConfirmTimer!=null&&(clearTimeout(this.markAllConfirmTimer),this.markAllConfirmTimer=null);}formatTimestamp(e){let t=Date.parse(e);return Number.isNaN(t)?e:new wa("en-US").transform(t,"MMM d, h:mm a")??e}scheduleInfiniteScrollSetup(){lo$2(this.injector,()=>{Cy(()=>this.setupInfiniteScroll());});}setupInfiniteScroll(){this.observer?.disconnect();let e=this.scrollHost()?.nativeElement,t=this.loadSentinel()?.nativeElement;!e||!t||!this.data.onLoadPage||(this.observer=new IntersectionObserver(i=>{i.some(r=>r.isIntersecting)&&this.loadNextPage();},{root:e,rootMargin:`0px 0px ${tg}px 0px`,threshold:0}),this.observer.observe(t));}resolveHasMore(e,t){return t===0||e==null?false:e.has_next_page?true:e.total_pages>0?e.current_page<e.total_pages:false}loadNextPage(){!this.data.onLoadPage||!this.hasMore()||this.loadingMore()||this.loadingInitial()||this.fetchPage(this.currentPage()+1,"append");}fetchPage(e,t){let i=this.data.onLoadPage;i&&(t==="replace"?(this.loadingInitial.set(true),this.loadError.set(null)):this.loadingMore.set(true),this.runPageLoad(()=>i(e),r=>{t==="replace"?this.items.set(r.items??[]):this.appendItems(r.items??[]),this.currentPage.set(e),this.hasMore.set(this.resolveHasMore(r.pagination,(r.items??[]).length)),this.loadingInitial.set(false),this.loadingMore.set(false);},()=>{t==="replace"&&(this.loadError.set("Could not load notifications. Try again."),this.loadingInitial.set(false)),this.loadingMore.set(false);}));}appendItems(e){let t=e??[];t.length&&this.items.update(i=>{let r=new Set((i??[]).map(u=>u.id)),o=t.filter(u=>!r.has(u.id));return o.length?[...i,...o]:i});}patchRead(e){this.items.update(t=>(t??[]).map(i=>i.id===e?U$1($({},i),{read:true}):i));}runPageLoad(e,t,i){let r;try{r=e();}catch{i();return}if(Ih$1(r)){r.pipe(mt$1(1),Q(this.destroyRef)).subscribe({next:o=>t(o),error:()=>i()});return}Promise.resolve(r).then(t,i);}runHook(e,t,i){let r;try{r=e();}catch{i();return}if(r==null){t();return}if(Ih$1(r)){r.pipe(mt$1(1),Q(this.destroyRef)).subscribe({next:()=>t(),error:()=>i()});return}Promise.resolve(r).then(t,i);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-notification-drawer"]],viewQuery:function(t,i){t&1&&ip$1(i.scrollHost,Ph,5)(i.loadSentinel,Fh,5),t&2&&oI(2);},hostAttrs:[1,"block","h-full","w-full","min-w-0","overflow-hidden"],decls:18,vars:5,consts:[["scrollHost",""],["loadSentinel",""],[1,"flex","h-full","min-h-0","w-full","flex-col"],[1,"flex","shrink-0","items-start","justify-between","gap-3","border-b","border-border","pb-4","dark:border-white/10"],[1,"min-w-0","flex","flex-col","gap-1"],[1,"m-0","text-caption","font-medium","uppercase","tracking-wide","text-neutral-600","dark:text-neutral-400"],[1,"m-0","text-heading-3","font-bold","text-ink","dark:text-white"],[1,"m-0","text-caption","text-neutral-500","dark:text-neutral-400"],[1,"flex","shrink-0","items-center","gap-1"],["africanies-button","","type","button","size","sm",1,"whitespace-nowrap",3,"variant","disabled"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Close notifications",3,"click"],["name","close",3,"size"],[1,"africanies-overlay-scroll","flex","min-h-0","flex-1","w-full","flex-col","overflow-y-auto","py-3"],["aria-busy","true","aria-live","polite",1,"flex","flex-1","flex-col","items-center","justify-center","gap-2","py-12"],[1,"flex","flex-1","flex-col","items-center","justify-center","gap-3","px-4","py-12","text-center"],[1,"flex","flex-1","flex-col","items-center","justify-center","gap-3","py-12","text-center"],["africanies-button","","type","button","size","sm",1,"whitespace-nowrap",3,"click","variant","disabled"],["name","spinner",1,"animate-spin","text-neutral-500","dark:text-neutral-400",3,"size"],[1,"m-0","text-body-sm","text-neutral-600","dark:text-neutral-400"],[1,"m-0","text-body-sm","text-neutral-700","dark:text-neutral-300"],["africanies-button","","type","button","variant","secondary","size","sm"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click"],["name","bell-o",1,"text-neutral-400","dark:text-neutral-500",3,"size"],[1,"m-0","max-w-xs","text-body","leading-relaxed","text-neutral-600","dark:text-neutral-300"],[1,"m-0","flex","w-full","list-none","flex-col","gap-3","p-0"],["aria-hidden","true",1,"flex","min-h-10","items-center","justify-center","py-2"],[1,"flex","w-full","gap-2.5","rounded-xl","border","px-3","py-2.5","transition-colors"],["aria-hidden","true",1,"mt-1.5","size-1.5","shrink-0","rounded-full"],[1,"min-w-0","flex-1","flex","flex-col","gap-1.5"],[1,"flex","items-start","justify-between","gap-2"],[1,"m-0","min-w-0","flex-1","text-body-sm","leading-snug"],[1,"shrink-0","whitespace-nowrap","text-[11px]","tabular-nums","text-neutral-500","dark:text-neutral-400",3,"dateTime"],[1,"m-0","text-caption","leading-relaxed",3,"text-neutral-800","dark:text-neutral-100","text-neutral-600","dark:text-neutral-400"],[1,"flex","flex-wrap","items-center","justify-end","gap-x-3","gap-y-1"],[1,"flex","items-center","justify-end"],[1,"m-0","text-caption","leading-relaxed"],[3,"href","class","pointer-events-none","opacity-50"],["type","button",1,"inline-flex","cursor-pointer","self-start","rounded-md","text-caption","font-medium","text-neutral-600","transition-colors","hover:text-ink","disabled:cursor-not-allowed","disabled:opacity-50","dark:text-neutral-400","dark:hover:text-white",3,"click","disabled"],[3,"click","href"],["name","external-link",3,"size"],["aria-live","polite",1,"inline-flex","items-center","gap-2","text-caption","text-neutral-500","dark:text-neutral-400"],["name","spinner",1,"animate-spin",3,"size"]],template:function(t,i){t&1&&(ei$2(0,"div",2)(1,"div",3)(2,"div",4)(3,"p",5),MI(4," Inbox "),gc$2(),ei$2(5,"h2",6),MI(6),gc$2(),LE(7,Lh,2,1,"p",7),gc$2(),ei$2(8,"div",8),LE(9,Bh,2,4,"button",9),ei$2(10,"button",10),tp$1("click",function(){return i.ref.close()}),Zf$1(11,"africanies-icon",11),gc$2()()(),ei$2(12,"div",12,0),LE(14,Hh,4,1,"div",13)(15,Uh,4,2,"div",14)(16,jh,4,1,"div",15)(17,eg,4,1),gc$2()()),t&2&&(Qy(6),Ic$2(" ",i.title()," "),Qy(),PE(i.hasUnread()?7:-1),Qy(2),PE(i.hasUnread()&&i.canMarkAllRead()?9:-1),Qy(2),Qf$1("size",18),Qy(3),PE(i.loadingInitial()?14:i.loadError()?15:i.items().length===0?16:17));},dependencies:[g,Z],encapsulation:2})};var mi=class n{drawer=T(nt);open(e){return this.drawer.open(Hr,{data:e,dismissible:true,panelClass:["!w-[min(100%,28rem)]","!p-4","!overflow-hidden","sm:!p-5"]})}static \u0275fac=function(t){return new(t||n)};static \u0275prov=te$1({token:n,factory:n.\u0275fac,providedIn:"root"})};var ig={"wee-hours":["Moonlit chat?","Still here?","Quiet hours.","Night-owl desk.","The city's asleep.","Burning the midnight oil?","Late-night glow.","Stars are out.","Hushed shift.","After midnight.","Just us and the dark.","Owl hours."],dawn:["First light.","Dawn patrol.","Before the rush.","The sky's waking up.","Early bird.","Sunrise shift.","Coffee's brewing.","Soft morning.","Ahead of the day.","Pale gold hour.","World still yawning.","Catch the quiet."],"early-morning":["Rise and shine.","Let's ease in.","Bright and early.","Warm-up lap.","Day's just starting.","Stretch and go.","Morning pages.","Good hour to begin.","Easy does it.","First coffee?","Laces tied.","Fresh notebook energy."],morning:["Morning momentum.","Ready to ship?","Let's make it count.","Onward.","Full steam.","Let's clear the decks.","Good hour for it.","Inbox awaits.","Let's get into it.","Lights are on.","Plotting the day?","Open the windows."],midday:["Midday check-in.","Sun's high.","Halfway there.","Peak hours.","Lunch-adjacent.","Keep the pace.","Quick reset?","Still rolling.","High noon.","Midday desk.","Second act.","Refill and resume."],afternoon:["Afternoon stretch.","Second wind?","Back at it.","Steady on.","Still plenty of day.","Carry it forward.","Afternoon light.","Keep going.","Golden grind.","Long-shadow hours.","Push the next tile.","Not done yet."],dusk:["Golden hour.","Evening glow.","Last daylight.","Wrapping the day?","Soft landing.","Dusk desk.","Sunset shift.","Almost there.","Light's going gold.","Close of play?","Sky on fire.","Blue hour soon."],evening:["Evening session.","Night's coming in.","After hours?","Evening quiet.","One more round?","Lights are low.","Evening desk.","Unwind or push?","Settling in.","Lamp-light hours.","City lights on.","Slow the tempo?"],"late-night":["Moonlit chat?","Late shift.","Quiet tonight.","Still glowing?","Night desk.","Hushed hours.","Wrap it gently?","Starside.","Last lap?","Soft landing tonight.","The moon is clocked in.","Dim the noise."]},rg={clear:["Clear skies.","Sun's out.","Bright out there.","Blue overhead."],cloudy:["Soft grey day.","Cloud cover.","Overcast calm.","Grey but going."],fog:["Foggy out.","Misty hours.","Wrapped in fog.","Low and quiet."],drizzle:["Light drizzle.","Soft rain.","Grey and gentle.","A little wet out."],rain:["Rainy round?","Wet out there.","Cozy weather for it.","Rain on the glass."],snow:["Snow in the air.","Flurries out.","Cold sparkle.","Winter at the window."],storm:["Stormy out.","Wild skies.","Hold tight.","Thunder weather."]},og=new Set(["rain","snow","storm","fog"]);function il(n){let e=n?.trim()??"";return e?e.split(/\s+/)[0]??"":""}function rl(n){let e=n.getHours();return e<5?"wee-hours":e<7?"dawn":e<9?"early-morning":e<12?"morning":e<14?"midday":e<17?"afternoon":e<19?"dusk":e<22?"evening":"late-night"}function ag(n,e=null){let t=ig[n];if(!e)return t;let i=[...rg[e.kind],...sg(e.temperatureC)];return og.has(e.kind)?[...i,...i,...t]:[...t,...i]}function ta(n,e=new Date,t=null){let i=il(n);if(!i)return null;let r=rl(e),o=ag(r,t),u=t?.kind??"none",v=`${i.toLowerCase()}|${e.getFullYear()}-${e.getMonth()}-${e.getDate()}|${r}|${u}`;return {kicker:o[lg(v)%o.length]??o[0],name:i}}function sg(n){return n===void 0||!Number.isFinite(n)?[]:n>=32?["Heat's on.","Warm one."]:n<=12?["Chilly out.","Crisp air."]:[]}function lg(n){let e=0;for(let t=0;t<n.length;t+=1)e=e*31+n.charCodeAt(t)>>>0;return e}var al="africanies-header-weather-v3";var dg="https://get.geojs.io/v1/ip/geo.json",cg={clear:"Clear",cloudy:"Cloudy",fog:"Fog",drizzle:"Drizzle",rain:"Rain",snow:"Snow",storm:"Storm"};function ug(n){return n===0||n===1?"clear":n===2||n===3?"cloudy":n===45||n===48?"fog":n>=51&&n<=57?"drizzle":n>=61&&n<=67||n>=80&&n<=82?"rain":n>=71&&n<=77||n===85||n===86?"snow":n===95||n===96||n===99?"storm":null}function na(n){return cg[n]}function sl(n,e){return n==="clear"?e>=19||e<6?"moon-o":"sun-o":n==="rain"||n==="drizzle"||n==="storm"?"cloud":"cloud-o"}async function ll(n){let e=pg();if(typeof e!="function"||typeof window>"u")return null;let t=mg(),i=fg(t);if(i)return i;try{let r=await ol(e,dg),o=zr(r?.latitude),u=zr(r?.longitude);if(o===null||u===null)return null;let v=`https://api.open-meteo.com/v1/forecast?latitude=${o}&longitude=${u}&current=weather_code,temperature_2m`,S=await ol(e,v),R=zr(S?.current?.weather_code);if(R===null)return null;let O=ug(R);if(!O)return null;let U=zr(S?.current?.temperature_2m)??void 0,ie=gg(r?.city),ee={kind:O,temperatureC:U,city:ie};return hg({hour:t,kind:O,temperatureC:U,city:ie}),ee}catch{return null}}function pg(){return typeof fetch=="function"?fetch.bind(globalThis):void 0}function mg(n=new Date){return `${n.getFullYear()}-${n.getMonth()}-${n.getDate()}-${n.getHours()}`}function fg(n){try{let e=sessionStorage.getItem(al);if(!e)return null;let t=JSON.parse(e);return t.hour!==n||!t.kind?null:{kind:t.kind,temperatureC:t.temperatureC,city:t.city}}catch{return null}}function hg(n){try{sessionStorage.setItem(al,JSON.stringify(n));}catch{}}function zr(n){if(typeof n=="number"&&Number.isFinite(n))return n;if(typeof n=="string"&&n.trim()){let e=Number(n);return Number.isFinite(e)?e:null}return null}function gg(n){if(typeof n!="string")return;let e=n.trim();if(!(!e||e.toLowerCase()==="n/a"))return e}async function ol(n,e){let t=new AbortController,i=setTimeout(()=>t.abort(),4e3);try{let r=await n(e,{signal:t.signal});return r.ok?await r.json():null}catch{return null}finally{clearTimeout(i);}}var _g=[[["","africaniesAppShellHeaderStart",""]],[["","africaniesAppShellHeaderEnd",""]]],yg=["[africaniesAppShellHeaderStart]","[africaniesAppShellHeaderEnd]"];function vg(n,e){if(n&1&&(ei$2(0,"div",2)(1,"p",6),MI(2),gc$2(),ei$2(3,"p",7),MI(4),gc$2()()),n&2){let t=e;Qy(2),Ic$2(" ",t.kicker," "),Qy(2),Ic$2(" ",t.name," ");}}function bg(n,e){n&1&&(ei$2(0,"span",11),MI(1),gc$2()),n&2&&(Qy(),Ic$2(" ",e,"\xB0 "));}function Cg(n,e){if(n&1&&(ei$2(0,"div",8),Zf$1(1,"africanies-icon",10),LE(2,bg,2,1,"span",11),ei$2(3,"span",12),MI(4),gc$2()()),n&2){let t,i=XE(2);zf$1("aria-label",i.weatherAriaLabel()),Qy(),Qf$1("name",i.weatherIcon())("size",18),Qy(),PE((t=i.weatherTemp())?2:-1,t),Qy(2),Ic$2(" ",i.weatherPlace()," ");}}function xg(n,e){if(n&1&&(ei$2(0,"div",9)(1,"time",13),MI(2),HI(3,"date"),gc$2(),ei$2(4,"time",14),MI(5),HI(6,"date"),gc$2()()),n&2){let t=XE(2);Qy(),Qf$1("dateTime",t.nowIso()),Qy(),Ic$2(" ",UI(3,4,t.now(),t.clockDateFormat())," "),Qy(2),Qf$1("dateTime",t.nowIso()),Qy(),Ic$2(" ",UI(6,7,t.now(),t.clockFormat())," ");}}function wg(n,e){if(n&1&&(ei$2(0,"div",4),LE(1,Cg,5,5,"div",8),LE(2,xg,7,10,"div",9),gc$2()),n&2){let t=XE();Qy(),PE(t.weather()?1:-1),Qy(),PE(t.showClock()?2:-1);}}function Sg(n,e){if(n&1&&(ei$2(0,"span",20),MI(1),gc$2()),n&2){let t=XE(3);Qy(),Ic$2(" ",t.unreadBadge()," ");}}function kg(n,e){if(n&1){let t=GE();ei$2(0,"button",18),tp$1("click",function(){Gl(t);let r=XE(2);return zl(r.openNotifications())}),Zf$1(1,"africanies-icon",19),LE(2,Sg,2,1,"span",20),gc$2();}if(n&2){let t=XE(2);zf$1("aria-label",t.notificationAriaLabel()),Qy(),Qf$1("size",24),Qy(),PE(t.unreadCount()>0?2:-1);}}function Mg(n,e){if(n&1&&Zf$1(0,"africanies-avatar-menu",17),n&2){let t=XE(2);Qf$1("name",t.userName())("src",t.userAvatarSrc())("menuItems",t.userMenuItems())("size","md");}}function Dg(n,e){if(n&1&&(ei$2(0,"div",15),LE(1,kg,3,3,"button",16),LE(2,Mg,1,4,"africanies-avatar-menu",17),gc$2()),n&2){let t=XE();lp$1("border-l",!(t.weather()||t.showClock()))("border-border",!(t.weather()||t.showClock()))("pl-2",!(t.weather()||t.showClock()))("sm:pl-3",!(t.weather()||t.showClock()))("dark:border-white/15",!(t.weather()||t.showClock())),Qy(),PE(t.showNotifications()?1:-1),Qy(),PE(t.userName()?2:-1);}}var Ur=class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesAppShellHeaderEnd",""]]})},Mn=class n{notificationsDrawer=T(mi);destroyRef=T(xe$2);userName=TP(null);greetingName=TP(null);userAvatarSrc=TP(null);userMenuItems=TP([]);notifications=TP([]);notificationsTitle=TP("Notifications");onNotificationMarkRead=TP(void 0);onNotificationMarkAllRead=TP(void 0);onNotificationLoadPage=TP(void 0);showClock=TP(true,{transform:RP});showNotifications=TP(true,{transform:RP});density=TP("desktop");clockDateFormat=TP("EEE, MMM d, y");clockFormat=TP("h:mm a");now=Co$2(new Date);weather=Co$2(null);nowIso=QI(()=>this.now().toISOString());greeting=QI(()=>ta(this.greetingName(),this.now(),this.weather()));weatherIcon=QI(()=>{let e=this.weather();return e?sl(e.kind,this.now().getHours()):"cloud-o"});weatherTemp=QI(()=>{let e=this.weather()?.temperatureC;return e===void 0||!Number.isFinite(e)?null:e.toFixed(1)});weatherPlace=QI(()=>{let e=this.weather();return e?e.city?.trim()||na(e.kind):""});weatherAriaLabel=QI(()=>{let e=this.weather();if(!e)return "Weather";let t=na(e.kind).toLowerCase(),i=this.weatherTemp(),r=e.city?.trim(),o=i===null?t:`${i} degrees, ${t}`;return r?`Weather in ${r}: ${o}`:`Weather: ${o}`});unreadCount=QI(()=>(this.notifications()??[]).filter(e=>!e.read).length);unreadBadge=QI(()=>{let e=this.unreadCount();return e>9?"9+":`${e}`});notificationAriaLabel=QI(()=>{let e=this.unreadCount();return e===0?"Open notifications":`Open notifications, ${e} unread`});constructor(){let e=true,t=()=>{ll().then(r=>{e&&r&&this.weather.set(r);});};t();let i=setInterval(()=>{let r=new Date,o=r.getHours()!==this.now().getHours()||r.getDate()!==this.now().getDate();this.now.set(r),o&&t();},1e3);this.destroyRef.onDestroy(()=>{e=false,clearInterval(i);});}openNotifications(){let e=this.onNotificationMarkRead(),t=this.onNotificationMarkAllRead(),i=this.onNotificationLoadPage();this.notificationsDrawer.open({title:this.notificationsTitle(),notifications:i?void 0:this.notifications(),onLoadPage:i,onMarkRead:e,onMarkAllRead:t}).afterClosed().pipe(Q(this.destroyRef)).subscribe();}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-app-shell-header"]],inputs:{userName:[1,"userName"],greetingName:[1,"greetingName"],userAvatarSrc:[1,"userAvatarSrc"],userMenuItems:[1,"userMenuItems"],notifications:[1,"notifications"],notificationsTitle:[1,"notificationsTitle"],onNotificationMarkRead:[1,"onNotificationMarkRead"],onNotificationMarkAllRead:[1,"onNotificationMarkAllRead"],onNotificationLoadPage:[1,"onNotificationLoadPage"],showClock:[1,"showClock"],showNotifications:[1,"showNotifications"],density:[1,"density"],clockDateFormat:[1,"clockDateFormat"],clockFormat:[1,"clockFormat"]},ngContentSelectors:yg,decls:8,vars:3,consts:[[1,"flex","min-w-0","items-center","gap-2","px-3","py-2.5","sm:gap-4","sm:px-6","sm:py-3"],[1,"flex","min-w-0","flex-1","items-center","gap-2","sm:gap-3"],[1,"min-w-0","overflow-hidden"],[1,"flex","shrink-0","items-center","gap-1.5","sm:gap-3"],[1,"hidden","items-center","gap-3","pr-2","sm:flex","sm:border-r","sm:border-border","sm:pr-4","dark:sm:border-white/15"],[1,"flex","items-center","gap-1.5","sm:gap-3",3,"border-l","border-border","pl-2","sm:pl-3","dark:border-white/15"],[1,"m-0","truncate","text-caption","leading-none","text-neutral-500","dark:text-neutral-400"],[1,"m-0","mt-1","truncate","text-body","font-semibold","leading-none","tracking-tight","text-ink","sm:text-body-lg","dark:text-white"],[1,"flex","items-center","gap-1.5"],["aria-live","polite",1,"flex","items-baseline","gap-2"],[1,"text-neutral-500","dark:text-neutral-400",3,"name","size"],[1,"text-body-sm","font-medium","tabular-nums","tracking-tight","text-ink","dark:text-white"],[1,"hidden","text-caption","text-neutral-500","md:inline","dark:text-neutral-400"],[1,"hidden","text-caption","text-neutral-500","md:inline","dark:text-neutral-400",3,"dateTime"],[1,"text-body-sm","font-medium","tabular-nums","tracking-tight","text-ink","dark:text-white",3,"dateTime"],[1,"flex","items-center","gap-1.5","sm:gap-3"],["type","button",1,"relative","inline-flex","size-9","cursor-pointer","items-center","justify-center","rounded-lg","text-neutral-600","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white"],[3,"name","src","menuItems","size"],["type","button",1,"relative","inline-flex","size-9","cursor-pointer","items-center","justify-center","rounded-lg","text-neutral-600","transition-colors","hover:bg-background-welcome","hover:text-ink","focus-visible:outline","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-ink","dark:text-neutral-400","dark:hover:bg-white/10","dark:hover:text-white",3,"click"],["name","bell-o",1,"block","translate-x-[-1px]","translate-y-0.5",3,"size"],["aria-hidden","true",1,"pointer-events-none","absolute","-right-0.5","-top-0.5","flex","size-4","items-center","justify-center","rounded-full","bg-danger","text-[10px]","font-semibold","leading-none","text-white","ring-2","ring-white","dark:ring-ink-950"]],template:function(t,i){if(t&1&&(tI(_g),ei$2(0,"div",0)(1,"div",1),nI(2),LE(3,vg,5,2,"div",2),gc$2(),ei$2(4,"div",3),LE(5,wg,3,2,"div",4),nI(6,1),LE(7,Dg,3,12,"div",5),gc$2()()),t&2){let r;Qy(3),PE((r=i.greeting())?3:-1,r),Qy(2),PE(i.weather()||i.showClock()?5:-1),Qy(2),PE(i.showNotifications()||i.userName()?7:-1);}},dependencies:[g,pi,wa],encapsulation:2})};var Jt=class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=CE({type:n,selectors:[["","africaniesAppShellHeader",""]]})};var Tg=[[["","sidenav",""]],"*",[["","africaniesAppShellHeader",""]]],Ag=["[sidenav]","*","[africaniesAppShellHeader]"];function Eg(n,e){if(n&1){let t=GE();ei$2(0,"button",7),tp$1("click",function(){Gl(t);let r=XE();return zl(r.closeMobileNav())}),gc$2();}if(n&2){let t=XE();lp$1("lg:hidden",!t.layoutPreview());}}function Ig(n,e){if(n&1){let t=GE();ei$2(0,"div",8)(1,"button",9),tp$1("click",function(){Gl(t);let r=XE();return zl(r.toggleMobileNav())}),Zf$1(2,"africanies-icon",10),gc$2(),Zf$1(3,"img",11),gc$2();}if(n&2){let t=XE();lp$1("lg:hidden",!t.layoutPreview()),Qy(),zf$1("aria-label",t.mobileNavOpen()?"Close navigation":"Open navigation")("aria-expanded",t.mobileNavOpen()),Qy(),Qf$1("size",18),Qy(),Qf$1("src",t.logoMiniUrl,Hd$1);}}function Og(n,e){n&1&&nI(0,2);}function Rg(n,e){if(n&1&&Zf$1(0,"africanies-app-shell-header",4),n&2){let t=XE();Qf$1("userName",t.userName())("greetingName",t.greetingName())("userAvatarSrc",t.userAvatarSrc())("userMenuItems",t.userMenuItems())("notifications",t.notifications())("notificationsTitle",t.notificationsTitle())("showClock",t.showClock())("showNotifications",t.showNotifications())("clockDateFormat",t.clockDateFormat())("clockFormat",t.clockFormat())("density",t.headerDensity());}}function Ng(n,e){if(n&1&&Zf$1(0,"div",12),n&2){let t=XE();mI(t.modeColor.classes().bg);}}function Pg(n,e){if(n&1&&Zf$1(0,"africanies-app-shell-content-header",6),n&2){let t=XE();Qf$1("breadcrumbs",t.breadcrumbs())("title",t.headerTitle())("subtitle",t.headerSubtitle())("url",t.currentUrl())("catalogNav",t.catalogNav())("showBack",t.showContentBack())("backLink",t.contentBackLink())("backLabel",t.contentBackLabel());}}var jr=class n{modeColor=T(re);logoMiniUrl=T(wn);router=T(pt$1);customHeader=MP(Jt);mobileNavOpen=Co$2(false);contentWidth=TP("5xl");showAccent=TP(true,{transform:RP});showHeaderChrome=TP(true,{transform:RP});layoutPreview=TP(null);headerTitle=TP("");headerSubtitle=TP("");breadcrumbs=TP([]);catalogNav=TP([]);showContentBack=TP(true,{transform:RP});contentBackLink=TP(null);contentBackLabel=TP("Back");userName=TP(null);greetingName=TP(null);userAvatarSrc=TP(null);userMenuItems=TP([]);notifications=TP([]);notificationsTitle=TP("Notifications");showClock=TP(true,{transform:RP});showNotifications=TP(true,{transform:RP});clockDateFormat=TP("EEE, MMM d, y");clockFormat=TP("h:mm:ss a");hasCustomHeader=QI(()=>this.customHeader()!=null);currentUrl=Y$1(this.router.events.pipe(Pr$2(e=>e instanceof ue),ve$2(()=>this.router.url),Jc$1(this.router.url)),{initialValue:this.router.url});showContentChrome=QI(()=>this.breadcrumbs().length>0||this.headerTitle().length>0||this.headerSubtitle().length>0||this.showContentBack());hostClass=QI(()=>this.layoutPreview()?"block h-full":"block min-h-full");shellRootClass=QI(()=>this.layoutPreview()?"relative flex h-full min-h-0":"relative flex min-h-full");headerDensity=QI(()=>{let e=this.layoutPreview();return e==="mobile"?"mobile":e==="tablet"?"tablet":"desktop"});showMobileBar=QI(()=>{let e=this.layoutPreview();return e==="mobile"||e==="tablet"?true:e!=="desktop"});sidenavHostClass=QI(()=>{let e=this.layoutPreview(),t=this.mobileNavOpen();if(e==="desktop")return "z-50 shrink-0 self-start sticky top-0 block h-full";if(e==="mobile"||e==="tablet")return t?"z-50 shrink-0 self-start absolute inset-y-0 left-0 h-full shadow-xl":"hidden";let i="z-50 shrink-0 self-start h-dvh";return t?`${i} fixed inset-y-0 left-0 shadow-xl lg:sticky lg:top-0 lg:block`:`${i} hidden lg:sticky lg:top-0 lg:block`});mainClass=QI(()=>{let e=this.contentWidth(),i=this.layoutPreview()==="mobile"?"flex-1 px-3 py-5":"flex-1 px-4 py-8 sm:px-6 sm:py-10";return e==="full"?`w-full ${i}`:e==="90"?`mx-auto w-[90%] ${i}`:`mx-auto w-full ${{"3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"}[e]} ${i}`});toggleMobileNav(){this.mobileNavOpen.update(e=>!e);}closeMobileNav(){this.mobileNavOpen.set(false);}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=IE({type:n,selectors:[["africanies-app-shell"]],contentQueries:function(t,i,r){t&1&&op$1(r,i.customHeader,Jt,5),t&2&&oI();},hostVars:2,hostBindings:function(t,i){t&2&&mI(i.hostClass());},inputs:{contentWidth:[1,"contentWidth"],showAccent:[1,"showAccent"],showHeaderChrome:[1,"showHeaderChrome"],layoutPreview:[1,"layoutPreview"],headerTitle:[1,"headerTitle"],headerSubtitle:[1,"headerSubtitle"],breadcrumbs:[1,"breadcrumbs"],catalogNav:[1,"catalogNav"],showContentBack:[1,"showContentBack"],contentBackLink:[1,"contentBackLink"],contentBackLabel:[1,"contentBackLabel"],userName:[1,"userName"],greetingName:[1,"greetingName"],userAvatarSrc:[1,"userAvatarSrc"],userMenuItems:[1,"userMenuItems"],notifications:[1,"notifications"],notificationsTitle:[1,"notificationsTitle"],showClock:[1,"showClock"],showNotifications:[1,"showNotifications"],clockDateFormat:[1,"clockDateFormat"],clockFormat:[1,"clockFormat"]},ngContentSelectors:Ag,decls:13,vars:11,consts:[["type","button","aria-label","Close navigation",1,"absolute","inset-0","z-40","cursor-pointer","bg-ink/40",3,"lg:hidden"],[1,"flex","min-w-0","flex-1","flex-col"],[1,"flex","shrink-0","items-center","gap-2","border-b","border-border","px-3","py-2","dark:border-white/10",3,"lg:hidden"],[1,"sticky","top-0","z-30","border-b","border-border","bg-white/90","backdrop-blur-md","dark:border-white/10","dark:bg-ink-950/90"],[3,"userName","greetingName","userAvatarSrc","userMenuItems","notifications","notificationsTitle","showClock","showNotifications","clockDateFormat","clockFormat","density"],["aria-hidden","true",1,"h-0.5","w-full","transition-colors","duration-300",3,"class"],[3,"breadcrumbs","title","subtitle","url","catalogNav","showBack","backLink","backLabel"],["type","button","aria-label","Close navigation",1,"absolute","inset-0","z-40","cursor-pointer","bg-ink/40",3,"click"],[1,"flex","shrink-0","items-center","gap-2","border-b","border-border","px-3","py-2","dark:border-white/10"],["type","button",1,"inline-flex","size-9","shrink-0","cursor-pointer","items-center","justify-center","rounded-lg","border","border-border","text-ink","transition-colors","hover:bg-background-welcome","dark:border-white/15","dark:text-white","dark:hover:bg-white/10",3,"click"],["name","align-justify",3,"size"],["alt","African Import Export Solutions",1,"h-7","w-auto","object-contain",3,"src"],["aria-hidden","true",1,"h-0.5","w-full","transition-colors","duration-300"]],template:function(t,i){t&1&&(tI(Tg),ei$2(0,"div"),LE(1,Eg,1,2,"button",0),ei$2(2,"div"),nI(3),gc$2(),ei$2(4,"div",1),LE(5,Ig,4,6,"div",2),ei$2(6,"div",3),LE(7,Og,1,0)(8,Rg,1,11,"africanies-app-shell-header",4),LE(9,Ng,1,2,"div",5),gc$2(),ei$2(10,"main"),LE(11,Pg,1,8,"africanies-app-shell-content-header",6),nI(12,1),gc$2()()()),t&2&&(mI(i.shellRootClass()),Qy(),PE(i.mobileNavOpen()?1:-1),Qy(),mI(i.sidenavHostClass()),Qy(3),PE(i.showMobileBar()?5:-1),Qy(2),PE(i.hasCustomHeader()?7:i.showHeaderChrome()?8:-1),Qy(2),PE(i.showAccent()?9:-1),Qy(),mI(i.mainClass()),Qy(),PE(i.showContentChrome()?11:-1));},dependencies:[g,ui,Mn],encapsulation:2})};
147
+ function Ee(e,o){if(e&1&&Zf$1(0,"africanies-alert",17),e&2){let n=XE(2);Qf$1("message",n.connectedMessage())("dismissible",false);}}function De(e,o){e&1&&Zf$1(0,"africanies-alert",18),e&2&&Qf$1("dismissible",false);}function ze(e,o){if(e&1){let n=GE();ei$2(0,"div",6),tp$1("keydown.escape",function(){Gl(n);let a=XE();return zl(a.closePanel())}),ei$2(1,"div",7)(2,"div",8)(3,"div",9),Zf$1(4,"africanies-icon",10),gc$2(),ei$2(5,"div",11)(6,"h2",12),MI(7," API access "),gc$2(),ei$2(8,"p",13),MI(9),gc$2()()(),ei$2(10,"button",14),tp$1("click",function(){Gl(n);let a=XE();return zl(a.closePanel())}),Zf$1(11,"africanies-icon",15),gc$2()(),ei$2(12,"div",16),LE(13,Ee,1,2,"africanies-alert",17)(14,De,1,1,"africanies-alert",18),ei$2(15,"div",19)(16,"africanies-textarea",20),Ep$1("valueChange",function(a){Gl(n);let f=XE();return AI(f.draft,a)||(f.draft=a),zl(a)}),gc$2(),ei$2(17,"p",21),MI(18," Sent as "),ei$2(19,"span",22),MI(20,"Authorization: Bearer \u2026"),gc$2(),MI(21," on outbound HTTP via the SDK interceptor. "),gc$2()()(),ei$2(22,"div",23)(23,"button",24),tp$1("click",function(){Gl(n);let a=XE();return zl(a.clear())}),MI(24," Clear token "),gc$2(),ei$2(25,"button",25),tp$1("click",function(){Gl(n);let a=XE();return zl(a.save())}),MI(26," Save & connect "),gc$2()()();}if(e&2){let n=XE();Qy(4),Qf$1("size",16),Qy(4),Qf$1("title",n.apiBaseUrl()),Qy(),Ic$2(" ",n.apiBaseUrl()," "),Qy(2),Qf$1("size",16),Qy(2),PE(n.hasToken()?13:14),Qy(3),Qf$1("rows",3),vp$1("value",n.draft),Qy(7),Qf$1("disabled",!n.hasToken()),Qy(2),Qf$1("disabled",n.draft().trim()==="");}}var Be=[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:6},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-6}],I=class e{auth=T(hn);sdkConfig=T(Fn);toast=T(Ke);panelPositions=Be;panelOpen=Co$2(false);draft=Co$2("");hasToken=QI(()=>this.auth.token()!=null);apiBaseUrl=QI(()=>this.sdkConfig.baseUrl);connectedMessage=QI(()=>{let o=this.auth.token();return o?`Requests include your saved token (${o.length<=4?"\u2022\u2022\u2022\u2022":`\u2022\u2022\u2022\u2022${o.slice(-4)}`}). Replace below to update.`:""});togglePanel(){this.panelOpen.update(o=>!o);}closePanel(){this.panelOpen.set(false);}save(){this.auth.set(this.draft()),this.draft.set(""),this.closePanel(),this.toast.success("SDK HTTP calls will include your bearer token.","Connected");}clear(){this.auth.clear(),this.draft.set(""),this.toast.info("Live catalog and profile calls may fail until you connect again.","Token cleared");}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=IE({type:e,selectors:[["app-playground-access-token"]],decls:7,vars:12,consts:[["triggerOrigin","cdkOverlayOrigin"],["cdkOverlayOrigin","",1,"inline-flex"],["africanies-button","","type","button","variant","secondary","size","sm","aria-controls","pg-access-token-panel",1,"gap-1.5",3,"click"],["aria-hidden","true",1,"size-1.5","shrink-0","rounded-full"],["name","chevron-down","aria-hidden","true",1,"shrink-0","text-neutral-500","transition-transform","duration-200","dark:text-neutral-400",3,"size"],["cdkConnectedOverlay","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"backdropClick","overlayOutsideClick","detach","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayPush","cdkConnectedOverlayHasBackdrop"],["id","pg-access-token-panel","role","dialog","aria-labelledby","pg-access-token-title","aria-describedby","pg-access-token-desc","tabindex","-1",1,"w-[min(22rem,calc(100dvw-2rem))]","overflow-hidden","rounded-xl","border","border-border","bg-white","shadow-xl","outline-none","dark:border-white/15","dark:bg-ink-950",3,"keydown.escape"],[1,"flex","items-start","justify-between","gap-3","border-b","border-border","px-4","py-3","dark:border-white/10"],[1,"flex","min-w-0","items-start","gap-3"],[1,"flex","size-9","shrink-0","items-center","justify-center","rounded-lg","bg-background-welcome","text-ink","dark:bg-white/10","dark:text-white"],["name","key",3,"size"],[1,"min-w-0"],["id","pg-access-token-title",1,"m-0","text-body-sm","font-semibold","text-ink","dark:text-white"],[1,"m-0","mt-0.5","truncate","font-mono","text-caption","text-neutral-500","dark:text-neutral-400",3,"title"],["africanies-button","","type","button","variant","ghost","size","sm","aria-label","Close",1,"shrink-0","self-start",3,"click"],["name","close",3,"size"],[1,"flex","flex-col","gap-4","p-4"],["variant","success","title","Token active",3,"message","dismissible"],["variant","warning","title","Not connected","message","Live SDK calls (filter catalogs, user profile, \u2026) need a bearer token from the test API.",3,"dismissible"],["id","pg-access-token-desc",1,"flex","flex-col","gap-3"],["label","Access token","hint","Paste access_token from login/register. Stored in localStorage as africanies.accessToken.","placeholder","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\u2026",3,"valueChange","rows","value"],[1,"m-0","text-caption","text-neutral-500","dark:text-neutral-400"],[1,"pg-code"],[1,"flex","items-center","justify-between","gap-2","border-t","border-border","bg-background-welcome","px-4","py-3","dark:border-white/10","dark:bg-white/[0.03]"],["africanies-button","","type","button","variant","ghost","size","sm",3,"click","disabled"],["africanies-button","","type","button","variant","primary","size","sm",3,"click","disabled"]],template:function(n,t){if(n&1&&(ei$2(0,"span",1,0)(2,"button",2),tp$1("click",function(){return t.togglePanel()}),Zf$1(3,"span",3),MI(4),Zf$1(5,"africanies-icon",4),gc$2()(),Uf$1(6,ze,27,9,"ng-template",5),tp$1("backdropClick",function(){return t.closePanel()})("overlayOutsideClick",function(){return t.closePanel()})("detach",function(){return t.closePanel()})),n&2){let a=iI(1);Qy(2),zf$1("aria-expanded",t.panelOpen()),Qy(),mI(t.hasToken()?"bg-export shadow-[0_0_0_2px] shadow-export/25":"bg-warning shadow-[0_0_0_2px] shadow-warning/25"),Qy(),Ic$2(" ",t.hasToken()?"Connected":"API token"," "),Qy(),lp$1("rotate-180",t.panelOpen()),Qf$1("size",12),Qy(),Qf$1("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",t.panelOpen())("cdkConnectedOverlayPositions",t.panelPositions)("cdkConnectedOverlayPush",true)("cdkConnectedOverlayHasBackdrop",true);}},dependencies:[xr,Z,ri,g,Oe,ht],encapsulation:2})};var L=class e{theme=T(jn);shipping=T(He);auth=T(hn);notificationsApi=T(ir);usersApi=T(Ji);router=T(pt$1);confirm=T(bn);toast=T(Ke);themeMode=this.theme.theme;shippingMode=this.shipping.mode;navCollapsed=Co$2(false);notifications=Co$2([]);profile=Co$2(null);greetingName=QI(()=>this.profile()?.first_name||this.profile()?.name||null);displayName=QI(()=>this.profile()?.name||this.greetingName()||"Playground");constructor(){X$1(this.auth.token).pipe(Xc$2(o=>o?this.notificationsApi.readPage({page:1,size:En,order:"desc"}).pipe(ve$2(n=>n.success&&n.data?this.mapNotificationRows(n.data):[]),ki(()=>ah$1([]))):ah$1([])),Q()).subscribe(o=>this.notifications.set(o)),X$1(this.auth.token).pipe(Xc$2(o=>o?this.usersApi.me().pipe(ve$2(n=>n.success&&n.data?n.data:null),ki(()=>ah$1(null))):ah$1(null)),Q()).subscribe(o=>this.profile.set(o));}loadNotificationPage=o=>this.notificationsApi.readPage({page:o,size:En,order:"desc"}).pipe(ve$2(n=>({items:n.success&&n.data?this.mapNotificationRows(n.data):[],pagination:n.pagination??null})));markNotificationRead=o=>this.notificationsApi.markRead(o).pipe(el$2(()=>{this.notifications.update(n=>n.map(t=>t.id===o?U$1($({},t),{read:true}):t));}));markAllNotificationsRead=()=>this.notificationsApi.markRead().pipe(el$2(()=>{this.notifications.update(o=>o.map(n=>U$1($({},n),{read:true})));}));mapNotificationRows(o){return o.map(n=>{let t=is(n);return {id:t.id,title:t.title,body:t.body,timestamp:t.timestamp,read:t.read,link:t.link,externalLink:t.external_link,image:t.image}})}linkActiveOptions={paths:"exact",queryParams:"exact",fragment:"ignored",matrixParams:"ignored"};url=Y$1(this.router.events.pipe(Pr$2(o=>o instanceof ue),ve$2(()=>this.router.url)),{initialValue:this.router.url});crumbs=QI(()=>Xs(this.url(),this.navItems));pageTitle=QI(()=>{let o=this.crumbs();return o[o.length-1]?.label??"Playground"});accountMenu=[{label:"Profile",icon:"user",onClick:()=>{}},{label:"Settings",icon:"cog",onClick:()=>{}},{label:"Log out",icon:"sign-out",danger:true,dividerBefore:true,onClick:()=>this.confirmLogout()}];navItems=[{id:"overview",label:"Overview",icon:"home",routerLink:"/overview"},{id:"components",label:"Components",icon:"grid",children:[{id:"button",label:"Button",routerLink:"/components/button"},{id:"alert",label:"Alert",routerLink:"/components/alert"},{id:"chip",label:"Chip",routerLink:"/components/chip"},{id:"action-menu",label:"Action menu",routerLink:"/components/action-menu"},{id:"feedback",label:"Feedback",routerLink:"/components/feedback"},{id:"overlays",label:"Overlays",routerLink:"/components/overlays"},{id:"forms",label:"Forms",routerLink:"/components/forms"},{id:"filters",label:"Filters",routerLink:"/components/filters"},{id:"tooltip",label:"Tooltip",routerLink:"/components/tooltip"},{id:"toast",label:"Toast",routerLink:"/components/toast"},{id:"navigation",label:"Navigation",routerLink:"/components/navigation/overview"},{id:"table",label:"Table",routerLink:"/components/table"},{id:"stepper",label:"Stepper",routerLink:"/components/stepper"}]},{id:"usecases",label:"Use cases",icon:"truck",children:[{id:"back-breadcrumbs",label:"Back button and Breadcrumbs",routerLink:"/usecases/shipment"},{id:"onboarding-forgot",label:"Forgot password",routerLink:"/usecases/onboarding/login"}]},{id:"foundation",label:"Foundation",icon:"cube",children:[{id:"icons",label:"Icons",routerLink:"/icons"},{id:"tokens",label:"Tokens",routerLink:"/tokens"},{id:"models",label:"Models",routerLink:"/models"},{id:"api",label:"SDK API",routerLink:"/api"}]},{id:"learn",label:"Learn",icon:"book",children:[{id:"lecture",label:"Lecture",routerLink:"/lecture"}]}];toggleTheme(){this.theme.toggle();}setShippingMode(o){this.shipping.setMode(o);}confirmLogout(){this.confirm.confirm({title:"Log out?",message:"This signs you out of this device and every other session.",confirmLabel:"Log out",danger:true}).subscribe(o=>{if(!o)return;let n=()=>{this.auth.clear();};if(!this.auth.get()){n(),this.toast.success("You have been logged out.");return}this.usersApi.logoutFromAllSessions().pipe(al$2(n)).subscribe({next:t=>{this.toast.success(t.message?.trim()||"You have been logged out.");},error:()=>{this.toast.success("You have been logged out.");}});});}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=IE({type:e,selectors:[["app-root"]],decls:15,vars:19,consts:[["contentWidth","90",3,"headerTitle","breadcrumbs","catalogNav"],["africaniesAppShellHeader",""],[3,"userName","greetingName","userMenuItems","notifications","onNotificationMarkRead","onNotificationMarkAllRead","onNotificationLoadPage"],["africaniesAppShellHeaderEnd","",1,"flex","flex-wrap","items-center","justify-end","gap-2"],["role","group","aria-label","Import or export mode",1,"inline-flex","rounded-lg","border","border-border","p-0.5","dark:border-white/15"],["africanies-button","","type","button","size","sm",3,"click","variant"],["africanies-button","","type","button","variant","secondary","size","sm",3,"click"],[3,"name","size"],["sidenav","","ariaLabel","Catalog",3,"collapsedChange","items","collapsed","linkActiveOptions"]],template:function(n,t){n&1&&(ei$2(0,"africanies-app-shell",0)(1,"div",1)(2,"africanies-app-shell-header",2)(3,"div",3),Zf$1(4,"app-playground-access-token"),ei$2(5,"div",4)(6,"button",5),tp$1("click",function(){return t.setShippingMode("stn")}),MI(7," Import "),gc$2(),ei$2(8,"button",5),tp$1("click",function(){return t.setShippingMode("sfn")}),MI(9," Export "),gc$2()(),ei$2(10,"button",6),tp$1("click",function(){return t.toggleTheme()}),Zf$1(11,"africanies-icon",7),MI(12),gc$2()()()(),ei$2(13,"africanies-side-nav",8),Ep$1("collapsedChange",function(f){return AI(t.navCollapsed,f)||(t.navCollapsed=f),f}),gc$2(),Zf$1(14,"router-outlet"),gc$2()),n&2&&(Qf$1("headerTitle",t.pageTitle())("breadcrumbs",t.crumbs())("catalogNav",t.navItems),Qy(2),Qf$1("userName",t.displayName())("greetingName",t.greetingName())("userMenuItems",t.accountMenu)("notifications",t.notifications())("onNotificationMarkRead",t.markNotificationRead)("onNotificationMarkAllRead",t.markAllNotificationsRead)("onNotificationLoadPage",t.loadNotificationPage),Qy(4),Qf$1("variant",t.shippingMode()==="stn"?"primary":"ghost"),Qy(2),Qf$1("variant",t.shippingMode()==="sfn"?"primary":"ghost"),Qy(2),zf$1("aria-label","Switch to "+(t.themeMode()==="light"?"dark":"light")+" theme"),Qy(),Qf$1("name",t.themeMode()==="light"?"adjust":"alarm")("size",14),Qy(),Ic$2(" ",t.themeMode()==="light"?"Dark":"Light"," "),Qy(),Qf$1("items",t.navItems),vp$1("collapsed",t.navCollapsed),Qf$1("linkActiveOptions",t.linkActiveOptions));},dependencies:[pi$1,jr,Mn,Jt,Ur,si,Z,g,I],styles:["[_nghost-%COMP%]{display:block;min-height:100%}"]})};var xe=[{path:"",pathMatch:"full",redirectTo:"overview"},{path:"overview",loadComponent:()=>import('./chunk-BOSfyWK2.js').then(e=>e.HomePage)},{path:"components/button",loadComponent:()=>import('./chunk-D3vgrlDF.js').then(e=>e.ButtonPage)},{path:"components/alert",loadComponent:()=>import('./chunk-Y9ccR-I6.js').then(e=>e.AlertPage)},{path:"components/chip",loadComponent:()=>import('./chunk-CsrxfMap.js').then(e=>e.ChipPage)},{path:"components/action-menu",loadComponent:()=>import('./chunk-DK715t6D.js').then(e=>e.ActionMenuPage)},{path:"components/feedback",loadComponent:()=>import('./chunk-BZBRtbFJ.js').then(e=>e.FeedbackPage)},{path:"components/overlays",loadComponent:()=>import('./chunk-CjTyStrr.js').then(e=>e.OverlayPage)},{path:"components/forms",loadComponent:()=>import('./chunk-D4V3eSCv.js').then(e=>e.FormsPage)},{path:"components/filters",loadComponent:()=>import('./chunk--VJ6U9Ev.js').then(e=>e.FiltersPage)},{path:"components/tooltip",loadComponent:()=>import('./chunk-BdrGkq40.js').then(e=>e.TooltipPage)},{path:"components/toast",loadComponent:()=>import('./chunk-D48aVVTv.js').then(e=>e.ToastPage)},{path:"components/table",loadComponent:()=>import('./chunk-CCnOVzbz.js').then(e=>e.TablePage)},{path:"components/stepper",loadComponent:()=>import('./chunk-BJ5IK8Re.js').then(e=>e.StepperPage)},{path:"components/navigation",loadComponent:()=>import('./chunk-CERmZ9We.js').then(e=>e.NavigationPage),children:[{path:"",pathMatch:"full",redirectTo:"overview"},{path:"overview",loadComponent:()=>import('./chunk-B1QVY0hA.js').then(e=>e.NavOverviewPanel)},{path:"documents",loadComponent:()=>import('./chunk-B1QVY0hA.js').then(e=>e.NavDocumentsPanel)},{path:"events",loadComponent:()=>import('./chunk-B1QVY0hA.js').then(e=>e.NavEventsPanel)}]},{path:"usecases/shipment",loadComponent:()=>import('./chunk-BHI7MG2Y.js').then(e=>e.ShipmentUsecasePage),children:[{path:"",loadComponent:()=>import('./chunk-D3-jrtyv.js').then(e=>e.ShipmentListPage)},{path:":id",loadComponent:()=>import('./chunk-C5kLunTi.js').then(e=>e.ShipmentDetailPage)}]},{path:"usecases/onboarding",loadComponent:()=>import('./chunk-C6tu3y81.js').then(e=>e.OnboardingUsecasePage),children:[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",loadComponent:()=>import('./chunk-Bg3QC1eL.js').then(e=>e.OnboardingLoginPage)},{path:"forgot-password",loadComponent:()=>import('./chunk-BYPboEAg.js').then(e=>e.OnboardingForgotPasswordPage)},{path:"reset-password",loadComponent:()=>import('./chunk-DUkct7WP.js').then(e=>e.OnboardingResetPasswordPage)}]},{path:"lecture",loadComponent:()=>import('./chunk-Bej5a2xR.js').then(e=>e.LecturePage)},{path:"icons",loadComponent:()=>import('./chunk-lfUHaltX.js').then(e=>e.IconsPage)},{path:"tokens",loadComponent:()=>import('./chunk-C96WSpFp.js').then(e=>e.TokensPage)},{path:"models",loadComponent:()=>import('./chunk-ClSUoZp8.js').then(e=>e.ModelsPage)},{path:"api",loadComponent:()=>import('./chunk-BsnTz1m5.js').then(e=>e.ApiPage)}];var Ue="https://test-api-export.africaniestest.com/api",Fe="africanies.googlePlacesApiKey";function Ve(){try{return globalThis.localStorage?.getItem(Fe)??""}catch{return ""}}var Ie={providers:[_g$1(),tl$1(xe,ul$1(),rl$1({anchorScrolling:"enabled",scrollPositionRestoration:"enabled"})),{provide:O,useValue:"assets/africanies-icons/icons.sprite.svg"},{provide:Rr,useValue:"assets/africanies-ui/brand/africanies-logo.png"},{provide:wn,useValue:"assets/africanies-ui/brand/africanies-logo-mini.png"},rd({baseUrl:Ue,httpToasts:"errors"}),ad(),Us(),Rs(),Xo({apiKey:Ve()}),ME(()=>{T(jn);})]};qa$1(L,Ie).catch(e=>console.error(e));
148
+ export{ni as $,At as A,Mt as B,Co$2 as C,Dt as D,Cr as E,FI as F,GE as G,Hs$1 as H,IE as I,zf$1 as J,ze$1 as K,LE as L,MI as M,nt as N,bn as O,PE as P,Qy as Q,Je as R,Ae as S,T,Gt as U,VE as V,ri as W,XE as X,yt as Y,Z,Xn as _,gc$2 as a,Ui as a$,ii as a0,ti as a1,Zn as a2,Wt as a3,oi as a4,$t as a5,Ca as a6,Ea$1 as a7,Ep$1 as a8,AI as a9,jt as aA,He as aB,pt as aC,mu$2 as aD,ZI as aE,Vr as aF,Qt as aG,Xt as aH,Sr as aI,Uf$1 as aJ,Hd$1 as aK,Lr as aL,Zt as aM,mp$1 as aN,pt$1 as aO,Y$1 as aP,Pr$2 as aQ,ue as aR,ve$2 as aS,Jc$1 as aT,qt as aU,li as aV,It as aW,ai as aX,si as aY,pi$1 as aZ,jr as a_,HI as aa,vp$1 as ab,$I as ac,UI as ad,RI as ae,vn as af,dt as ag,Ee$1 as ah,Ke as ai,Zr as aj,Jr as ak,eo as al,In as am,dn as an,Q as ao,Aa as ap,ln as aq,ah$1 as ar,vh$1 as as,Xc$2 as at,ch$1 as au,to as av,el$2 as aw,Di as ax,cp$1 as ay,kr as az,HE as b,za as b0,lh$1 as b1,Ji as b2,hn as b3,qn$2 as b4,xe$2 as b5,Cy as b6,xi as b7,Eh$1 as b8,lp$1 as b9,Eu$1 as bA,RP as bB,gD as bC,hD as bD,oy as bE,U as ba,or as bb,Ua as bc,Ga as bd,$a as be,Wa as bf,qa as bg,Ya as bh,Ka as bi,Qa as bj,Xa as bk,Za as bl,$i as bm,qi as bn,es as bo,rs as bp,zi as bq,Ki as br,Qi as bs,Xi as bt,Un as bu,er as bv,lo as bw,ja as bx,ke as by,un as bz,Zf$1 as c,Qf$1 as d,ei$2 as e,gp$1 as f,g,br as h,Ic$2 as i,jE as j,TP as k,tI as l,mI as m,mc$2 as n,nI as o,Gl as p,yn as q,re as r,gt as s,tp$1 as t,QI as u,Tt as v,wr as w,xr as x,yc$2 as y,zl as z};