marketplacepos 3.5.0 → 3.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/Marketplace/3rdpartylicenses.txt +5 -5
  2. package/Marketplace/{chunk-75KTCVZF.js → chunk-233MWU5I.js} +2 -2
  3. package/Marketplace/chunk-2FZAKLVH.js +2 -0
  4. package/Marketplace/chunk-2GUSUJKR.js +2 -0
  5. package/Marketplace/chunk-2Y66HZFD.js +1 -0
  6. package/Marketplace/{chunk-FHIDET6K.js → chunk-35GLPUIA.js} +1 -1
  7. package/Marketplace/{chunk-TGSKHOI4.js → chunk-37HLVAAU.js} +1 -1
  8. package/Marketplace/chunk-3G5KO3TI.js +2 -0
  9. package/Marketplace/chunk-3KJSV75O.js +1 -0
  10. package/Marketplace/{chunk-SUBRCXIB.js → chunk-3ZNOGHL3.js} +1 -1
  11. package/Marketplace/chunk-4TY6WDXS.js +1 -0
  12. package/Marketplace/{chunk-PMCLVNMY.js → chunk-53K2CWAN.js} +1 -1
  13. package/Marketplace/chunk-5LICD27P.js +5 -0
  14. package/Marketplace/chunk-6HLIRI7N.js +1 -0
  15. package/Marketplace/chunk-6YFZBURX.js +1 -0
  16. package/Marketplace/{chunk-KLMICCVJ.js → chunk-7ARC4G4F.js} +1 -1
  17. package/Marketplace/{chunk-VPHHTNUD.js → chunk-AO2MXRCQ.js} +1 -1
  18. package/Marketplace/chunk-BUG6II55.js +1 -0
  19. package/Marketplace/{chunk-2NSPG6VQ.js → chunk-CIGF5YG5.js} +1 -1
  20. package/Marketplace/{chunk-CMHF5RTN.js → chunk-DKPFXQNF.js} +1 -1
  21. package/Marketplace/chunk-E64JNFG7.js +1 -0
  22. package/Marketplace/chunk-FBU5QXHN.js +1 -0
  23. package/Marketplace/chunk-FTYEJYHR.js +1 -0
  24. package/Marketplace/{chunk-FVAPOGDC.js → chunk-G4PZ5CPL.js} +1 -1
  25. package/Marketplace/chunk-HEYRRICW.js +1 -0
  26. package/Marketplace/chunk-HVNMMTYL.js +1 -0
  27. package/Marketplace/{chunk-GJLYUWSL.js → chunk-I7PLLVEH.js} +1 -1
  28. package/Marketplace/chunk-IM6ZDC7I.js +2 -0
  29. package/Marketplace/{chunk-NWWR3K33.js → chunk-IOUI2FZD.js} +1 -1
  30. package/Marketplace/{chunk-W5JLE65X.js → chunk-IPSBLHOU.js} +2 -2
  31. package/Marketplace/{chunk-3H6SWWM2.js → chunk-ISJRZPJX.js} +1 -1
  32. package/Marketplace/{chunk-VMNROKIK.js → chunk-JGYSNRH6.js} +1 -1
  33. package/Marketplace/chunk-JUIDNG6B.js +1 -0
  34. package/Marketplace/chunk-JWESCPR3.js +1 -0
  35. package/Marketplace/chunk-K5FAZTRK.js +1 -0
  36. package/Marketplace/{chunk-F55Q67A4.js → chunk-KDJNHDU2.js} +1 -1
  37. package/Marketplace/{chunk-QUDJWHMB.js → chunk-KTPCOMZ2.js} +1 -1
  38. package/Marketplace/{chunk-3UYUXGVK.js → chunk-M3XCT7JY.js} +1 -1
  39. package/Marketplace/{chunk-CQY6SBLJ.js → chunk-MBHOZDLB.js} +1 -1
  40. package/Marketplace/{chunk-QMFPH7XZ.js → chunk-MGVAWFYU.js} +7 -7
  41. package/Marketplace/{chunk-4FXEREAP.js → chunk-MIAEM23L.js} +1 -1
  42. package/Marketplace/chunk-MLMGMDJA.js +1 -0
  43. package/Marketplace/chunk-NAXDUEX4.js +1 -0
  44. package/Marketplace/{chunk-3EZXX4SY.js → chunk-NEAQH3FX.js} +1 -1
  45. package/Marketplace/chunk-PP4T4PLJ.js +1 -0
  46. package/Marketplace/{chunk-FKBDMXZF.js → chunk-PUSB4EIC.js} +1 -1
  47. package/Marketplace/chunk-Q2ZCP6BL.js +1 -0
  48. package/Marketplace/chunk-Q6Y22NLN.js +1 -0
  49. package/Marketplace/chunk-QC4HQRFC.js +1 -0
  50. package/Marketplace/{chunk-3S4B7FJG.js → chunk-R2U2NYVL.js} +1 -1
  51. package/Marketplace/chunk-SFDY7NUA.js +1 -0
  52. package/Marketplace/chunk-SUY2H7ZI.js +1 -0
  53. package/Marketplace/chunk-SY5WIR62.js +3 -0
  54. package/Marketplace/chunk-UTRK7TTD.js +1 -0
  55. package/Marketplace/chunk-UTSC6PL6.js +1 -0
  56. package/Marketplace/chunk-UWU5GEHX.js +1 -0
  57. package/Marketplace/chunk-V3NJFGV3.js +1 -0
  58. package/Marketplace/chunk-V752HOUZ.js +1 -0
  59. package/Marketplace/chunk-VX5ROJLM.js +1 -0
  60. package/Marketplace/chunk-W7OIIPRU.js +1 -0
  61. package/Marketplace/chunk-WNUGQVRM.js +5 -0
  62. package/Marketplace/{chunk-TXVLR2RN.js → chunk-YBAPXY6T.js} +1 -1
  63. package/Marketplace/chunk-YK6VKTWV.js +1 -0
  64. package/Marketplace/{chunk-RBJQ6EI6.js → chunk-YS2YJHB3.js} +1 -1
  65. package/Marketplace/{chunk-OVHULOR3.js → chunk-ZVELVZIL.js} +1 -1
  66. package/Marketplace/{chunk-CIUA5X4L.js → chunk-ZXU3FVPS.js} +11 -11
  67. package/Marketplace/index.html +2 -2
  68. package/Marketplace/main-ICOUGZTS.js +1 -0
  69. package/Marketplace/{styles-VIFLB3RD.css → styles-XDRE2JJC.css} +1 -1
  70. package/package.json +1 -1
  71. package/Marketplace/chunk-266DSHGO.js +0 -1
  72. package/Marketplace/chunk-2FIOSKRJ.js +0 -1
  73. package/Marketplace/chunk-3C4XDMT2.js +0 -1
  74. package/Marketplace/chunk-3KDFTXQM.js +0 -1
  75. package/Marketplace/chunk-3URAANI6.js +0 -5
  76. package/Marketplace/chunk-4PPU4SZR.js +0 -1
  77. package/Marketplace/chunk-5A74K34K.js +0 -2
  78. package/Marketplace/chunk-5BFBDU4Y.js +0 -1
  79. package/Marketplace/chunk-5FWZE3M6.js +0 -1
  80. package/Marketplace/chunk-6ORFYERF.js +0 -1
  81. package/Marketplace/chunk-6R23WA5G.js +0 -1
  82. package/Marketplace/chunk-A6HOOHGI.js +0 -1
  83. package/Marketplace/chunk-BFSIXPYE.js +0 -1
  84. package/Marketplace/chunk-BNL5KXTW.js +0 -1
  85. package/Marketplace/chunk-CGWBESJR.js +0 -1
  86. package/Marketplace/chunk-D7MTVAUX.js +0 -2
  87. package/Marketplace/chunk-EV36IP6L.js +0 -2
  88. package/Marketplace/chunk-F3YY7P47.js +0 -1
  89. package/Marketplace/chunk-G5PYEJ6I.js +0 -1
  90. package/Marketplace/chunk-G6FQOKR3.js +0 -1
  91. package/Marketplace/chunk-GUDIOT6F.js +0 -1
  92. package/Marketplace/chunk-IHMSIZQP.js +0 -1
  93. package/Marketplace/chunk-IKMQT2F2.js +0 -1
  94. package/Marketplace/chunk-KJQHDPO2.js +0 -1
  95. package/Marketplace/chunk-KSOIRHFB.js +0 -1
  96. package/Marketplace/chunk-KTTSCH5B.js +0 -1
  97. package/Marketplace/chunk-L73KNYMB.js +0 -1
  98. package/Marketplace/chunk-LKBZC32T.js +0 -1
  99. package/Marketplace/chunk-NGLKNAAE.js +0 -5
  100. package/Marketplace/chunk-NHFS3EQL.js +0 -3
  101. package/Marketplace/chunk-NVLJ23H4.js +0 -1
  102. package/Marketplace/chunk-QS23P4G5.js +0 -1
  103. package/Marketplace/chunk-R56RSI2V.js +0 -2
  104. package/Marketplace/chunk-RHYOB3FA.js +0 -1
  105. package/Marketplace/chunk-VPZ3M3XI.js +0 -1
  106. package/Marketplace/chunk-VVGZ7KQX.js +0 -1
  107. package/Marketplace/chunk-WX2VXA4V.js +0 -1
  108. package/Marketplace/main-FFSPLMLV.js +0 -1
  109. /package/Marketplace/{chunk-T6GUYLRX.js → chunk-6RUGKYFT.js} +0 -0
  110. /package/Marketplace/{chunk-GWMLSBG4.js → chunk-KPTAVWMG.js} +0 -0
  111. /package/Marketplace/{chunk-MNDH6U5G.js → chunk-V6VYUZWG.js} +0 -0
  112. /package/Marketplace/{chunk-2IH2MGS7.js → chunk-ZLME6FEU.js} +0 -0
  113. /package/Marketplace/{polyfills-HTM62PZX.js → polyfills-L2ZK4WXQ.js} +0 -0
@@ -1 +0,0 @@
1
- import{$ as C,Aa as H,B as ji,Ba as qi,Bc as ve,Cc as Pt,Dc as Je,Ea as ke,Eb as Ot,Fa as M,Gb as Ji,H as $e,Ha as Hi,Hb as es,I as We,Ia as be,J as Bi,Ja as j,Jb as ts,La as Ce,Ma as Dt,Na as Qe,Ob as is,Pa as Ge,Pb as ss,Q as qe,R as Ui,Rb as Ne,Ta as Mt,U as He,Ua as Ye,Ub as L,W as zi,Ya as kt,Z as E,Za as Ct,_ as w,_a as Ze,a as Ri,aa as x,b as Ve,ba as y,c as q,ca as U,d as Pi,da as It,db as Qi,ea as N,fa as ce,fc as ns,gb as Gi,ha as Ki,ib as Xe,jb as Yi,kb as Nt,lc as rs,n as Fi,nc as os,ob as Zi,q as Me,qb as Xi,qc as Z,r as Li,sa as Vi,ta as $i,u as xi,ua as ie,uc as as,va as Wi,vc as Rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import{a as R,b as Oi}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var Lt;try{Lt=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Lt=!1}var $=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?ns(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Lt)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(s){return new(s||e)(y($i))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ee,ls=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function wa(){if(Ee)return Ee;if(typeof document!="object"||!document)return Ee=new Set(ls),Ee;let n=document.createElement("input");return Ee=new Set(ls.filter(e=>(n.setAttribute("type",e),n.type===e))),Ee}var Oe;function gn(){if(Oe==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oe=!0}))}finally{Oe=Oe||!1}return Oe}function Te(n){return gn()?n:!!n.capture}var de;function Sa(){if(de==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return de=!1,de;if("scrollBehavior"in document.documentElement.style)de=!0;else{let n=Element.prototype.scrollTo;n?de=!/\{\s*\[native code\]\s*\}/.test(n.toString()):de=!1}}return de}var Ft;function _n(){if(Ft==null){let n=typeof document<"u"?document.head:null;Ft=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ft}function cs(n){if(_n()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function ds(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function re(n){return n.composedPath?n.composedPath()[0]:n.target}function hs(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function et(n,...e){return e.length?e.some(i=>n[i]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function jt(n){return n!=null&&`${n}`!="false"}function us(n,e=0){return yn(n)?Number(n):e}function yn(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function Bt(n){return Array.isArray(n)?n:[n]}function Da(n){return n==null?"":typeof n=="string"?n:`${n}px`}function ue(n){return n instanceof H?n.nativeElement:n}function Ma(n,e=/\s+/){let i=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let s of t){let r=`${s}`.trim();r&&i.push(r)}}return i}var bn=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ms=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[bn]});let n=e;return n})();var fs=new Set,me,vn=(()=>{let e=class e{constructor(t,s){this._platform=t,this._nonce=s,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Tn}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&En(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(s){return new(s||e)(y($),y(Wi,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function En(n,e){if(!fs.has(n))try{me||(me=document.createElement("style"),e&&(me.nonce=e),me.setAttribute("type","text/css"),document.head.appendChild(me)),me.sheet&&(me.sheet.insertRule(`@media ${n} {body{ }}`,0),fs.add(n))}catch(i){console.error(i)}}function Tn(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var gs=(()=>{let e=class e{constructor(t,s){this._mediaMatcher=t,this._zone=s,this._queries=new Map,this._destroySubject=new q}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ps(Bt(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let r=ps(Bt(t)).map(a=>this._registerQuery(a).observable),o=Li(r);return o=xi(o.pipe(We(1)),o.pipe(qe(1),$e(0))),o.pipe(Me(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:d})=>{l.matches=l.matches||c,l.breakpoints[d]=c}),l}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let s=this._mediaMatcher.matchMedia(t),o={observable:new Ve(a=>{let l=c=>this._zone.run(()=>a.next(c));return s.addListener(l),()=>{s.removeListener(l)}}).pipe(Ui(s),Me(({matches:a})=>({query:t,matches:a})),He(this._destroySubject)),mql:s};return this._queries.set(t,o),o}};e.\u0275fac=function(s){return new(s||e)(y(vn),y(j))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ps(n){return n.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var ws=" ";function zn(n,e,i){let t=st(n,e);t.some(s=>s.trim()==i.trim())||(t.push(i.trim()),n.setAttribute(e,t.join(ws)))}function Kn(n,e,i){let s=st(n,e).filter(r=>r!=i.trim());s.length?n.setAttribute(e,s.join(ws)):n.removeAttribute(e)}function st(n,e){return(n.getAttribute(e)||"").match(/\S+/g)||[]}var Ss="cdk-describedby-message",tt="cdk-describedby-host",Kt=0,il=(()=>{let e=class e{constructor(t,s){this._platform=s,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${Kt++}`,this._document=t,this._id=U(Vi)+"-"+Kt++}describe(t,s,r){if(!this._canBeDescribed(t,s))return;let o=Ut(s,r);typeof s!="string"?(_s(s,this._id),this._messageRegistry.set(o,{messageElement:s,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(s,r),this._isElementDescribedByMessage(t,o)||this._addMessageReference(t,o)}removeDescription(t,s,r){if(!s||!this._isElementNode(t))return;let o=Ut(s,r);if(this._isElementDescribedByMessage(t,o)&&this._removeMessageReference(t,o),typeof s=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${tt}="${this._id}"]`);for(let s=0;s<t.length;s++)this._removeCdkDescribedByReferenceIds(t[s]),t[s].removeAttribute(tt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,s){let r=this._document.createElement("div");_s(r,this._id),r.textContent=t,s&&r.setAttribute("role",s),this._createMessagesContainer(),this._messagesContainer.appendChild(r),this._messageRegistry.set(Ut(t,s),{messageElement:r,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",s=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let o=0;o<s.length;o++)s[o].remove();let r=this._document.createElement("div");r.style.visibility="hidden",r.classList.add(t),r.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&r.setAttribute("platform","server"),this._document.body.appendChild(r),this._messagesContainer=r}_removeCdkDescribedByReferenceIds(t){let s=st(t,"aria-describedby").filter(r=>r.indexOf(Ss)!=0);t.setAttribute("aria-describedby",s.join(" "))}_addMessageReference(t,s){let r=this._messageRegistry.get(s);zn(t,"aria-describedby",r.messageElement.id),t.setAttribute(tt,this._id),r.referenceCount++}_removeMessageReference(t,s){let r=this._messageRegistry.get(s);r.referenceCount--,Kn(t,"aria-describedby",r.messageElement.id),t.removeAttribute(tt)}_isElementDescribedByMessage(t,s){let r=st(t,"aria-describedby"),o=this._messageRegistry.get(s),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(t,s){if(!this._isElementNode(t))return!1;if(s&&typeof s=="object")return!0;let r=s==null?"":`${s}`.trim(),o=t.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(s){return new(s||e)(y(L),y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ut(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function _s(n,e){n.id||(n.id=`${Ss}-${e}-${Kt++}`)}var nt=class{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new q,this._typeaheadSubscription=Ri.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=i=>i.disabled,this._pressedLetters=[],this.tabOut=new q,this.change=new q,e instanceof Ot&&(this._itemChangesSubscription=e.changes.subscribe(i=>{if(this._activeItem){let s=i.toArray().indexOf(this._activeItem);s>-1&&s!==this._activeItemIndex&&(this._activeItemIndex=s)}}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(zi(i=>this._pressedLetters.push(i)),$e(e),ji(()=>this._pressedLetters.length>0),Me(()=>this._pressedLetters.join(""))).subscribe(i=>{let t=this._getItemsArray();for(let s=1;s<t.length+1;s++){let r=(this._activeItemIndex+s)%t.length,o=t[r];if(!this._skipPredicateFn(o)&&o.getLabel().toUpperCase().trim().indexOf(i)===0){this.setActiveItem(r);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,i=10){return this._pageUpAndDown={enabled:e,delta:i},this}setActiveItem(e){let i=this._activeItem;this.updateActiveItem(e),this._activeItem!==i&&this.change.next(this._activeItemIndex)}onKeydown(e){let i=e.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!e[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(i){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex+this._pageUpAndDown.delta,o=this._getItemsArray().length;this._setActiveItemByIndex(r<o?r:o-1,-1);break}else return;default:(s||et(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(i>=65&&i<=90||i>=48&&i<=57)&&this._letterKeyStream.next(String.fromCharCode(i)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let i=this._getItemsArray(),t=typeof e=="number"?e:i.indexOf(e),s=i[t];this._activeItem=s??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let i=this._getItemsArray();for(let t=1;t<=i.length;t++){let s=(this._activeItemIndex+e*t+i.length)%i.length,r=i[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,i){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=i,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ot?this._items.toArray():this._items}},ys=class extends nt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},bs=class extends nt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Vn=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return Wn(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let s=$n(Jn(t));if(s&&(vs(s)===-1||!this.isVisible(s)))return!1;let r=t.nodeName.toLowerCase(),o=vs(t);return t.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Zn(t)?!1:r==="audio"?t.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,s){return Xn(t)&&!this.isDisabled(t)&&(s?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(s){return new(s||e)(y($))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function $n(n){try{return n.frameElement}catch{return null}}function Wn(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function qn(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Hn(n){return Gn(n)&&n.type=="hidden"}function Qn(n){return Yn(n)&&n.hasAttribute("href")}function Gn(n){return n.nodeName.toLowerCase()=="input"}function Yn(n){return n.nodeName.toLowerCase()=="a"}function As(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function vs(n){if(!As(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Zn(n){let e=n.nodeName.toLowerCase(),i=e==="input"&&n.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function Xn(n){return Hn(n)?!1:qn(n)||Qn(n)||n.hasAttribute("contenteditable")||As(n)}function Jn(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Vt=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,t,s,r=!1){this._element=e,this._checker=i,this._ngZone=t,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let t=this._getFirstTabbableElement(i);return t?.focus(e),!!t}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=0;t<i.length;t++){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(i[t]):null;if(s)return s}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let t=i.length-1;t>=0;t--){let s=i[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[t]):null;if(s)return s}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe(We(1)).subscribe(e)}},er=(()=>{let e=class e{constructor(t,s,r){this._checker=t,this._ngZone=s,this._document=r}create(t,s=!1){return new Vt(t,this._checker,this._ngZone,this._document,s)}};e.\u0275fac=function(s){return new(s||e)(y(Vn),y(j),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),sl=(()=>{let e=class e{get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=t}constructor(t,s,r){this._elementRef=t,this._focusTrapFactory=s,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){let s=t.autoCapture;s&&!s.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=ds(),this.focusTrap.focusInitialElementWhenReady()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(er),M(L))},e.\u0275dir=ce({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled",Ne],autoCapture:["cdkTrapFocusAutoCapture","autoCapture",Ne]},exportAs:["cdkTrapFocus"],features:[Ce,Ki]});let n=e;return n})();function $t(n){return n.buttons===0||n.detail===0}function Wt(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var tr=new x("cdk-input-modality-detector-options"),ir={ignoreKeys:[18,17,224,91,16]},Is=650,we=Te({passive:!0,capture:!0}),sr=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,s,r,o){this._platform=t,this._mostRecentTarget=null,this._modality=new Pi(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=re(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<Is||(this._modality.next($t(a)?"keyboard":"mouse"),this._mostRecentTarget=re(a))},this._onTouchstart=a=>{if(Wt(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=re(a)},this._options=R(R({},ir),o),this.modalityDetected=this._modality.pipe(qe(1)),this.modalityChanged=this.modalityDetected.pipe(Bi()),t.isBrowser&&s.runOutsideAngular(()=>{r.addEventListener("keydown",this._onKeydown,we),r.addEventListener("mousedown",this._onMousedown,we),r.addEventListener("touchstart",this._onTouchstart,we)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,we),document.removeEventListener("mousedown",this._onMousedown,we),document.removeEventListener("touchstart",this._onTouchstart,we))}};e.\u0275fac=function(s){return new(s||e)(y($),y(j),y(L),y(tr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),nr=new x("liveAnnouncerElement",{providedIn:"root",factory:rr});function rr(){return null}var or=new x("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),ar=0,nl=(()=>{let e=class e{constructor(t,s,r,o){this._ngZone=s,this._defaultOptions=o,this._document=r,this._liveElement=t||this._createLiveElement()}announce(t,...s){let r=this._defaultOptions,o,a;return s.length===1&&typeof s[0]=="number"?a=s[0]:[o,a]=s,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(l=>this._currentResolve=l)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",s=this._document.getElementsByClassName(t),r=this._document.createElement("div");for(let o=0;o<s.length;o++)s[o].remove();return r.classList.add(t),r.classList.add("cdk-visually-hidden"),r.setAttribute("aria-atomic","true"),r.setAttribute("aria-live","polite"),r.id=`cdk-live-announcer-${ar++}`,this._document.body.appendChild(r),r}_exposeAnnouncerToModals(t){let s=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let r=0;r<s.length;r++){let o=s[r],a=o.getAttribute("aria-owns");a?a.indexOf(t)===-1&&o.setAttribute("aria-owns",a+" "+t):o.setAttribute("aria-owns",t)}}};e.\u0275fac=function(s){return new(s||e)(y(nr,8),y(j),y(L),y(or,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var lr=new x("cdk-focus-monitor-default-options"),it=Te({passive:!0,capture:!0}),cr=(()=>{let e=class e{constructor(t,s,r,o,a){this._ngZone=t,this._platform=s,this._inputModalityDetector=r,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new q,this._rootNodeFocusAndBlurListener=l=>{let c=re(l);for(let d=c;d;d=d.parentElement)l.type==="focus"?this._onFocus(l,d):this._onBlur(l,d)},this._document=o,this._detectionMode=a?.detectionMode||0}monitor(t,s=!1){let r=ue(t);if(!this._platform.isBrowser||r.nodeType!==1)return Fi();let o=cs(r)||this._getDocument(),a=this._elementInfo.get(r);if(a)return s&&(a.checkChildren=!0),a.subject;let l={checkChildren:s,subject:new q,rootNode:o};return this._elementInfo.set(r,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(t){let s=ue(t),r=this._elementInfo.get(s);r&&(r.subject.complete(),this._setClasses(s),this._elementInfo.delete(s),this._removeGlobalListeners(r))}focusVia(t,s,r){let o=ue(t),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,s,c)):(this._setOrigin(s),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((t,s)=>this.stopMonitoring(s))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===1||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,s){t.classList.toggle("cdk-focused",!!s),t.classList.toggle("cdk-touch-focused",s==="touch"),t.classList.toggle("cdk-keyboard-focused",s==="keyboard"),t.classList.toggle("cdk-mouse-focused",s==="mouse"),t.classList.toggle("cdk-program-focused",s==="program")}_setOrigin(t,s=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&s,this._detectionMode===0){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?Is:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(t,s){let r=this._elementInfo.get(s),o=re(t);!r||!r.checkChildren&&s!==o||this._originChanged(s,this._getFocusOrigin(o),r)}_onBlur(t,s){let r=this._elementInfo.get(s);!r||r.checkChildren&&t.relatedTarget instanceof Node&&s.contains(t.relatedTarget)||(this._setClasses(s),this._emitOrigin(r,null))}_emitOrigin(t,s){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(s))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let s=t.rootNode,r=this._rootNodeFocusListenerCount.get(s)||0;r||this._ngZone.runOutsideAngular(()=>{s.addEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.addEventListener("blur",this._rootNodeFocusAndBlurListener,it)}),this._rootNodeFocusListenerCount.set(s,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(He(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(t){let s=t.rootNode;if(this._rootNodeFocusListenerCount.has(s)){let r=this._rootNodeFocusListenerCount.get(s);r>1?this._rootNodeFocusListenerCount.set(s,r-1):(s.removeEventListener("focus",this._rootNodeFocusAndBlurListener,it),s.removeEventListener("blur",this._rootNodeFocusAndBlurListener,it),this._rootNodeFocusListenerCount.delete(s))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,s,r){this._setClasses(t,s),this._emitOrigin(r,s),this._lastFocusOrigin=s}_getClosestElementsInfo(t){let s=[];return this._elementInfo.forEach((r,o)=>{(o===t||r.checkChildren&&o.contains(t))&&s.push([o,r])}),s}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:s,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!s||s===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let o=t.labels;if(o){for(let a=0;a<o.length;a++)if(o[a].contains(s))return!0}return!1}};e.\u0275fac=function(s){return new(s||e)(y(j),y($),y(sr),y(L,8),y(lr,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),rl=(()=>{let e=class e{constructor(t,s){this._elementRef=t,this._focusMonitor=s,this._focusOrigin=null,this.cdkFocusChange=new be}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(s=>{this._focusOrigin=s,this.cdkFocusChange.emit(s)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(s){return new(s||e)(M(H),M(cr))},e.\u0275dir=ce({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});let n=e;return n})(),Es="cdk-high-contrast-black-on-white",Ts="cdk-high-contrast-white-on-black",zt="cdk-high-contrast-active",qt=(()=>{let e=class e{constructor(t,s){this._platform=t,this._document=s,this._breakpointSubscription=U(gs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let s=this._document.defaultView||window,r=s&&s.getComputedStyle?s.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(zt,Es,Ts),this._hasCheckedHighContrastMode=!0;let s=this.getHighContrastMode();s===1?t.add(zt,Es):s===2&&t.add(zt,Ts)}}};e.\u0275fac=function(s){return new(s||e)(y($),y(L))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ol=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(s){return new(s||e)(y(qt))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ms]});let n=e;return n})();var ur=new x("cdk-dir-doc",{providedIn:"root",factory:mr});function mr(){return U(L)}var fr=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function pr(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?fr.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var _l=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new be,t){let s=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=pr(s||r||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(s){return new(s||e)(y(ur,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Ht=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({});let n=e;return n})();function Ds(n){return new E(3e3,!1)}function gr(){return new E(3100,!1)}function _r(){return new E(3101,!1)}function yr(n){return new E(3001,!1)}function br(n){return new E(3003,!1)}function vr(n){return new E(3004,!1)}function Er(n,e){return new E(3005,!1)}function Tr(){return new E(3006,!1)}function wr(){return new E(3007,!1)}function Sr(n,e){return new E(3008,!1)}function Ar(n){return new E(3002,!1)}function Ir(n,e,i,t,s){return new E(3010,!1)}function Dr(){return new E(3011,!1)}function Mr(){return new E(3012,!1)}function kr(){return new E(3200,!1)}function Cr(){return new E(3202,!1)}function Nr(){return new E(3013,!1)}function Or(n){return new E(3014,!1)}function Rr(n){return new E(3015,!1)}function Pr(n){return new E(3016,!1)}function Fr(n,e){return new E(3404,!1)}function Lr(n){return new E(3502,!1)}function xr(n){return new E(3503,!1)}function jr(){return new E(3300,!1)}function Br(n){return new E(3504,!1)}function Ur(n){return new E(3301,!1)}function zr(n,e){return new E(3302,!1)}function Kr(n){return new E(3303,!1)}function Vr(n,e){return new E(3400,!1)}function $r(n){return new E(3401,!1)}function Wr(n){return new E(3402,!1)}function qr(n,e){return new E(3505,!1)}function oe(n){switch(n.length){case 0:return new ve;case 1:return n[0];default:return new Pt(n)}}function zs(n,e,i=new Map,t=new Map){let s=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,h=d&&a||new Map;l.forEach((b,_)=>{let m=_,f=b;if(_!=="offset")switch(m=n.normalizePropertyName(m,s),f){case Je:f=i.get(_);break;case Z:f=t.get(_);break;default:f=n.normalizeStyleValue(_,m,f,s);break}h.set(m,f)}),d||r.push(h),a=h,o=c}),s.length)throw Lr(s);return r}function pi(n,e,i,t){switch(e){case"start":n.onStart(()=>t(i&&Qt(i,"start",n)));break;case"done":n.onDone(()=>t(i&&Qt(i,"done",n)));break;case"destroy":n.onDestroy(()=>t(i&&Qt(i,"destroy",n)));break}}function Qt(n,e,i){let t=i.totalTime,s=!!i.disabled,r=gi(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,t??n.totalTime,s),o=n._data;return o!=null&&(r._data=o),r}function gi(n,e,i,t,s="",r=0,o){return{element:n,triggerName:e,fromState:i,toState:t,phaseName:s,totalTime:r,disabled:!!o}}function K(n,e,i){let t=n.get(e);return t||n.set(e,t=i),t}function Ms(n){let e=n.indexOf(":"),i=n.substring(1,e),t=n.slice(e+1);return[i,t]}var Hr=(()=>typeof document>"u"?null:document.documentElement)();function _i(n){let e=n.parentNode||n.host||null;return e===Hr?null:e}function Qr(n){return n.substring(1,6)=="ebkit"}var fe=null,ks=!1;function Gr(n){fe||(fe=Yr()||{},ks=fe.style?"WebkitAppearance"in fe.style:!1);let e=!0;return fe.style&&!Qr(n)&&(e=n in fe.style,!e&&ks&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in fe.style)),e}function Yr(){return typeof document<"u"?document.body:null}function Ks(n,e){for(;e;){if(e===n)return!0;e=_i(e)}return!1}function Vs(n,e,i){if(i)return Array.from(n.querySelectorAll(e));let t=n.querySelector(e);return t?[t]:[]}var yi=(()=>{let e=class e{validateStyleProperty(t){return Gr(t)}matchesElement(t,s){return!1}containsElement(t,s){return Ks(t,s)}getParentElement(t){return _i(t)}query(t,s,r){return Vs(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,o,a,l=[],c){return new ve(r,o)}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),Be=(()=>{let e=class e{};e.NOOP=new yi;let n=e;return n})(),_e=class{};var Zr=1e3,$s="{{",Xr="}}",Ws="ng-enter",ei="ng-leave",rt="ng-trigger",dt=".ng-trigger",Cs="ng-animating",ti=".ng-animating";function se(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ii(parseFloat(e[1]),e[2])}function ii(n,e){switch(e){case"s":return n*Zr;default:return n}}function ht(n,e,i){return n.hasOwnProperty("duration")?n:Jr(n,e,i)}function Jr(n,e,i){let t=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,s,r=0,o="";if(typeof n=="string"){let a=n.match(t);if(a===null)return e.push(Ds(n)),{duration:0,delay:0,easing:""};s=ii(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=ii(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else s=n;if(!i){let a=!1,l=e.length;s<0&&(e.push(gr()),a=!0),r<0&&(e.push(_r()),a=!0),a&&e.splice(l,0,Ds(n))}return{duration:s,delay:r,easing:o}}function Ue(n,e={}){return Object.keys(n).forEach(i=>{e[i]=n[i]}),e}function qs(n){let e=new Map;return Object.keys(n).forEach(i=>{let t=n[i];e.set(i,t)}),e}function eo(n){return n.length?n[0]instanceof Map?n:n.map(e=>qs(e)):[]}function Ae(n,e=new Map,i){if(i)for(let[t,s]of i)e.set(t,s);for(let[t,s]of n)e.set(t,s);return e}function X(n,e,i){e.forEach((t,s)=>{let r=bi(s);i&&!i.has(s)&&i.set(s,n.style[r]),n.style[r]=t})}function ge(n,e){e.forEach((i,t)=>{let s=bi(t);n.style[s]=""})}function Re(n){return Array.isArray(n)?n.length==1?n[0]:as(n):n}function to(n,e,i){let t=e.params||{},s=Hs(n);s.length&&s.forEach(r=>{t.hasOwnProperty(r)||i.push(yr(r))})}var si=new RegExp(`${$s}\\s*(.+?)\\s*${Xr}`,"g");function Hs(n){let e=[];if(typeof n=="string"){let i;for(;i=si.exec(n);)e.push(i[1]);si.lastIndex=0}return e}function Fe(n,e,i){let t=n.toString(),s=t.replace(si,(r,o)=>{let a=e[o];return a==null&&(i.push(br(o)),a=""),a.toString()});return s==t?n:s}function ut(n){let e=[],i=n.next();for(;!i.done;)e.push(i.value),i=n.next();return e}var io=/-+([a-z0-9])/g;function bi(n){return n.replace(io,(...e)=>e[1].toUpperCase())}function so(n,e){return n===0||e===0}function no(n,e,i){if(i.size&&e.length){let t=e[0],s=[];if(i.forEach((r,o)=>{t.has(o)||s.push(o),t.set(o,r)}),s.length)for(let r=1;r<e.length;r++){let o=e[r];s.forEach(a=>o.set(a,Qs(n,a)))}}return e}function z(n,e,i){switch(e.type){case 7:return n.visitTrigger(e,i);case 0:return n.visitState(e,i);case 1:return n.visitTransition(e,i);case 2:return n.visitSequence(e,i);case 3:return n.visitGroup(e,i);case 4:return n.visitAnimate(e,i);case 5:return n.visitKeyframes(e,i);case 6:return n.visitStyle(e,i);case 8:return n.visitReference(e,i);case 9:return n.visitAnimateChild(e,i);case 10:return n.visitAnimateRef(e,i);case 11:return n.visitQuery(e,i);case 12:return n.visitStagger(e,i);default:throw vr(e.type)}}function Qs(n,e){return window.getComputedStyle(n)[e]}var ro=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),mt=class extends _e{normalizePropertyName(e,i){return bi(e)}normalizeStyleValue(e,i,t,s){let r="",o=t.toString().trim();if(ro.has(i)&&t!==0&&t!=="0")if(typeof t=="number")r="px";else{let a=t.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&s.push(Er(e,t))}return o+r}};var ft="*";function oo(n,e){let i=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>ao(t,i,e)):i.push(n),i}function ao(n,e,i){if(n[0]==":"){let l=lo(n,i);if(typeof l=="function"){e.push(l);return}n=l}let t=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return i.push(Rr(n)),e;let s=t[1],r=t[2],o=t[3];e.push(Ns(s,o));let a=s==ft&&o==ft;r[0]=="<"&&!a&&e.push(Ns(o,s))}function lo(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,t)=>parseFloat(t)>parseFloat(i);case":decrement":return(i,t)=>parseFloat(t)<parseFloat(i);default:return e.push(Pr(n)),"* => *"}}var ot=new Set(["true","1"]),at=new Set(["false","0"]);function Ns(n,e){let i=ot.has(n)||at.has(n),t=ot.has(e)||at.has(e);return(s,r)=>{let o=n==ft||n==s,a=e==ft||e==r;return!o&&i&&typeof s=="boolean"&&(o=s?ot.has(n):at.has(n)),!a&&t&&typeof r=="boolean"&&(a=r?ot.has(e):at.has(e)),o&&a}}var Gs=":self",co=new RegExp(`s*${Gs}s*,?`,"g");function Ys(n,e,i,t){return new ni(n).build(e,i,t)}var Os="",ni=class{constructor(e){this._driver=e}build(e,i,t){let s=new ri(i);return this._resetContextStyleTimingState(s),z(this,Re(e),s)}_resetContextStyleTimingState(e){e.currentQuerySelector=Os,e.collectedStyles=new Map,e.collectedStyles.set(Os,new Map),e.currentTime=0}visitTrigger(e,i){let t=i.queryCount=0,s=i.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(Tr()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==0){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,r.push(this.visitState(l,i))}),l.name=c}else if(a.type==1){let l=this.visitTransition(a,i);t+=l.queryCount,s+=l.depCount,o.push(l)}else i.errors.push(wr())}),{type:7,name:e.name,states:r,transitions:o,queryCount:t,depCount:s,options:null}}visitState(e,i){let t=this.visitStyle(e.styles,i),s=e.options&&e.options.params||null;if(t.containsDynamicStyles){let r=new Set,o=s||{};if(t.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Hs(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size){let a=ut(r.values());i.errors.push(Sr(e.name,a))}}return{type:0,name:e.name,style:t,options:s?{params:s}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let t=z(this,Re(e.animation),i);return{type:1,matchers:oo(e.expr,i.errors),animation:t,queryCount:i.queryCount,depCount:i.depCount,options:pe(e.options)}}visitSequence(e,i){return{type:2,steps:e.steps.map(t=>z(this,t,i)),options:pe(e.options)}}visitGroup(e,i){let t=i.currentTime,s=0,r=e.steps.map(o=>{i.currentTime=t;let a=z(this,o,i);return s=Math.max(s,i.currentTime),a});return i.currentTime=s,{type:3,steps:r,options:pe(e.options)}}visitAnimate(e,i){let t=fo(e.timings,i.errors);i.currentAnimateTimings=t;let s,r=e.styles?e.styles:Rt({});if(r.type==5)s=this.visitKeyframes(r,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};t.easing&&(c.easing=t.easing),o=Rt(c)}i.currentTime+=t.duration+t.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,s=l}return i.currentAnimateTimings=null,{type:4,timings:t,style:s,options:null}}visitStyle(e,i){let t=this._makeStyleAst(e,i);return this._validateStyleAst(t,i),t}_makeStyleAst(e,i){let t=[],s=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of s)typeof a=="string"?a===Z?t.push(a):i.errors.push(Ar(a)):t.push(qs(a));let r=!1,o=null;return t.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf($s)>=0){r=!0;break}}}),{type:6,styles:t,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,i){let t=i.currentAnimateTimings,s=i.currentTime,r=i.currentTime;t&&r>0&&(r-=t.duration+t.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),d=c.get(l),h=!0;d&&(r!=s&&r>=d.startTime&&s<=d.endTime&&(i.errors.push(Ir(l,d.startTime,d.endTime,r,s)),h=!1),r=d.startTime),h&&c.set(l,{startTime:r,endTime:s}),i.options&&to(a,i.options,i.errors)})})}visitKeyframes(e,i){let t={type:5,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(Dr()),t;let s=1,r=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(A=>{let I=this._makeStyleAst(A,i),P=I.offset!=null?I.offset:mo(I.styles),k=0;return P!=null&&(r++,k=I.offset=P),l=l||k<0||k>1,a=a||k<c,c=k,o.push(k),I});l&&i.errors.push(Mr()),a&&i.errors.push(kr());let h=e.steps.length,b=0;r>0&&r<h?i.errors.push(Cr()):r==0&&(b=s/(h-1));let _=h-1,m=i.currentTime,f=i.currentAnimateTimings,T=f.duration;return d.forEach((A,I)=>{let P=b>0?I==_?1:b*I:o[I],k=P*T;i.currentTime=m+f.delay+k,f.duration=k,this._validateStyleAst(A,i),A.offset=P,t.styles.push(A)}),t}visitReference(e,i){return{type:8,animation:z(this,Re(e.animation),i),options:pe(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:9,options:pe(e.options)}}visitAnimateRef(e,i){return{type:10,animation:this.visitReference(e.animation,i),options:pe(e.options)}}visitQuery(e,i){let t=i.currentQuerySelector,s=e.options||{};i.queryCount++,i.currentQuery=e;let[r,o]=ho(e.selector);i.currentQuerySelector=t.length?t+" "+r:r,K(i.collectedStyles,i.currentQuerySelector,new Map);let a=z(this,Re(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=t,{type:11,selector:r,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:pe(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(Nr());let t=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ht(e.timings,i.errors,!0);return{type:12,animation:z(this,Re(e.animation),i),timings:t,options:null}}};function ho(n){let e=!!n.split(/\s*,\s*/).find(i=>i==Gs);return e&&(n=n.replace(co,"")),n=n.replace(/@\*/g,dt).replace(/@\w+/g,i=>dt+"-"+i.slice(1)).replace(/:animating/g,ti),[n,e]}function uo(n){return n?Ue(n):null}var ri=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function mo(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(i=>{if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let i=n;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function fo(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ht(n,e).duration;return Gt(r,0,"")}let i=n;if(i.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=Gt(0,0,"");return r.dynamic=!0,r.strValue=i,r}let s=ht(i,e);return Gt(s.duration,s.delay,s.easing)}function pe(n){return n?(n=Ue(n),n.params&&(n.params=uo(n.params))):n={},n}function Gt(n,e,i){return{duration:n,delay:e,easing:i}}function vi(n,e,i,t,s,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:i,postStyleProps:t,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}var Le=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let t=this._map.get(e);t||this._map.set(e,t=[]),t.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},po=1,go=":enter",_o=new RegExp(go,"g"),yo=":leave",bo=new RegExp(yo,"g");function Zs(n,e,i,t,s,r=new Map,o=new Map,a,l,c=[]){return new oi().buildKeyframes(n,e,i,t,s,r,o,a,l,c)}var oi=class{buildKeyframes(e,i,t,s,r,o,a,l,c,d=[]){c=c||new Le;let h=new ai(e,i,c,s,r,d,[]);h.options=l;let b=l.delay?se(l.delay):0;h.currentTimeline.delayNextStep(b),h.currentTimeline.setStyles([o],null,h.errors,l),z(this,t,h);let _=h.timelines.filter(m=>m.containsAnimation());if(_.length&&a.size){let m;for(let f=_.length-1;f>=0;f--){let T=_[f];if(T.element===i){m=T;break}}m&&!m.allowOnlyTimelineStyles()&&m.setStyles([a],null,h.errors,l)}return _.length?_.map(m=>m.buildKeyframes()):[vi(i,[],[],[],0,b,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let t=i.subInstructions.get(i.element);if(t){let s=i.createSubContext(e.options),r=i.currentTimeline.currentTime,o=this._visitSubInstructions(t,s,s.options);r!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let t=i.createSubContext(e.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,t),this.visitReference(e.animation,t),i.transformIntoNewTimeline(t.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,t){for(let s of e){let r=s?.delay;if(r){let o=typeof r=="number"?r:se(Fe(r,s?.params??{},i.errors));t.delayNextStep(o)}}}_visitSubInstructions(e,i,t){let r=i.currentTimeline.currentTime,o=t.duration!=null?se(t.duration):null,a=t.delay!=null?se(t.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,i){i.updateOptions(e.options,!0),z(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let t=i.subContextCount,s=i,r=e.options;if(r&&(r.params||r.delay)&&(s=i.createSubContext(r),s.transformIntoNewTimeline(),r.delay!=null)){s.previousNode.type==6&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=pt);let o=se(r.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>z(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>t&&s.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let t=[],s=i.currentTimeline.currentTime,r=e.options&&e.options.delay?se(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);r&&a.delayNextStep(r),z(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),t.push(a.currentTimeline)}),t.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(s),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let t=e.strValue,s=i.params?Fe(t,i.params,i.errors):t;return ht(s,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let t=i.currentAnimateTimings=this._visitTiming(e.timings,i),s=i.currentTimeline;t.delay&&(i.incrementTime(t.delay),s.snapshotCurrentStyles());let r=e.style;r.type==5?this.visitKeyframes(r,i):(i.incrementTime(t.duration),this.visitStyle(r,i),s.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let t=i.currentTimeline,s=i.currentAnimateTimings;!s&&t.hasCurrentStyleProperties()&&t.forwardFrame();let r=s&&s.easing||e.easing;e.isEmptyStep?t.applyEmptyStep(r):t.setStyles(e.styles,r,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let t=i.currentAnimateTimings,s=i.currentTimeline.duration,r=t.duration,a=i.createSubContext().currentTimeline;a.easing=t.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(s+r),i.previousNode=e}visitQuery(e,i){let t=i.currentTimeline.currentTime,s=e.options||{},r=s.delay?se(s.delay):0;r&&(i.previousNode.type===6||t==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=pt);let o=t,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{i.currentQueryIndex=d;let h=i.createSubContext(e.options,c);r&&h.delayNextStep(r),c===i.element&&(l=h.currentTimeline),z(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let b=h.currentTimeline.currentTime;o=Math.max(o,b)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let t=i.parentContext,s=i.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=t.currentStaggerTime;break}let d=i.currentTimeline;l&&d.delayNextStep(l);let h=d.currentTime;z(this,e.animation,i),i.previousNode=e,t.currentStaggerTime=s.currentTime-h+(s.startTime-t.currentTimeline.startTime)}},pt={},ai=class n{constructor(e,i,t,s,r,o,a,l){this._driver=e,this.element=i,this.subInstructions=t,this._enterClassName=s,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new gt(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let t=e,s=this.options;t.duration!=null&&(s.duration=se(t.duration)),t.delay!=null&&(s.delay=se(t.delay));let r=t.params;if(r){let o=s.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=Fe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let t=e.params={};Object.keys(i).forEach(s=>{t[s]=i[s]})}}return e}createSubContext(e=null,i,t){let s=i||this.element,r=new n(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,t||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=pt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,t){let s={duration:i??e.duration,delay:this.currentTimeline.currentTime+(t??0)+e.delay,easing:""},r=new li(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(r),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,t,s,r,o){let a=[];if(s&&a.push(this.element),e.length>0){e=e.replace(_o,"."+this._enterClassName),e=e.replace(bo,"."+this._leaveClassName);let l=t!=1,c=this._driver.query(this.element,e,l);t!==0&&(c=t<0?c.slice(c.length+t,c.length):c.slice(0,t)),a.push(...c)}return!r&&a.length==0&&o.push(Or(i)),a}},gt=class n{constructor(e,i,t,s){this._driver=e,this.element=i,this.startTime=t,this._elementTimelineStylesLookup=s,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new n(this._driver,e,i||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=po,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,t]of this._globalTimelineStyles)this._backFill.set(i,t||Z),this._currentKeyframe.set(i,Z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,t,s){i&&this._previousKeyframe.set("easing",i);let r=s&&s.params||{},o=vo(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Fe(l,r,t);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Z),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,t)=>{let s=this._styleSummary.get(t);(!s||i.time>s.time)&&this._updateStyle(t,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,t=this._keyframes.size===1&&this.duration===0,s=[];this._keyframes.forEach((a,l)=>{let c=Ae(a,new Map,this._backFill);c.forEach((d,h)=>{d===Je?e.add(h):d===Z&&i.add(h)}),t||c.set("offset",l/this.duration),s.push(c)});let r=e.size?ut(e.values()):[],o=i.size?ut(i.values()):[];if(t){let a=s[0],l=new Map(a);a.set("offset",0),l.set("offset",1),s=[a,l]}return vi(this.element,s,r,o,this.duration,this.startTime,this.easing,!1)}},li=class extends gt{constructor(e,i,t,s,r,o,a=!1){super(e,i,o.delay),this.keyframes=t,this.preStyleProps=s,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:t,easing:s}=this.timings;if(this._stretchStartingKeyframe&&i){let r=[],o=t+i,a=i/o,l=Ae(e[0]);l.set("offset",0),r.push(l);let c=Ae(e[0]);c.set("offset",Rs(a)),r.push(c);let d=e.length-1;for(let h=1;h<=d;h++){let b=Ae(e[h]),_=b.get("offset"),m=i+_*t;b.set("offset",Rs(m/o)),r.push(b)}t=o,i=0,s="",e=r}return vi(this.element,e,this.preStyleProps,this.postStyleProps,t,i,s,!0)}};function Rs(n,e=3){let i=Math.pow(10,e-1);return Math.round(n*i)/i}function vo(n,e){let i=new Map,t;return n.forEach(s=>{if(s==="*"){t=t||e.keys();for(let r of t)i.set(r,Z)}else Ae(s,i)}),i}function Ps(n,e,i,t,s,r,o,a,l,c,d,h,b){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:t,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:h,errors:b}}var Yt={},_t=class{constructor(e,i,t){this._triggerName=e,this.ast=i,this._stateStyles=t}match(e,i,t,s){return Eo(this.ast.matchers,e,i,t,s)}buildStyles(e,i,t){let s=this._stateStyles.get("*");return e!==void 0&&(s=this._stateStyles.get(e?.toString())||s),s?s.buildStyles(i,t):new Map}build(e,i,t,s,r,o,a,l,c,d){let h=[],b=this.ast.options&&this.ast.options.params||Yt,_=a&&a.params||Yt,m=this.buildStyles(t,_,h),f=l&&l.params||Yt,T=this.buildStyles(s,f,h),A=new Set,I=new Map,P=new Map,k=s==="void",ye={params:To(f,b),delay:this.ast.options?.delay},G=d?[]:Zs(e,i,this.ast.animation,r,o,m,T,ye,c,h),F=0;if(G.forEach(ee=>{F=Math.max(ee.duration+ee.delay,F)}),h.length)return Ps(i,this._triggerName,t,s,k,m,T,[],[],I,P,F,h);G.forEach(ee=>{let te=ee.element,Mi=K(I,te,new Set);ee.preStyleProps.forEach(ae=>Mi.add(ae));let De=K(P,te,new Set);ee.postStyleProps.forEach(ae=>De.add(ae)),te!==i&&A.add(te)});let J=ut(A.values());return Ps(i,this._triggerName,t,s,k,m,T,G,J,I,P,F)}};function Eo(n,e,i,t,s){return n.some(r=>r(e,i,t,s))}function To(n,e){let i=Ue(e);for(let t in n)n.hasOwnProperty(t)&&n[t]!=null&&(i[t]=n[t]);return i}var ci=class{constructor(e,i,t){this.styles=e,this.defaultParams=i,this.normalizer=t}buildStyles(e,i){let t=new Map,s=Ue(this.defaultParams);return Object.keys(e).forEach(r=>{let o=e[r];o!==null&&(s[r]=o)}),this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Fe(o,s,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),t.set(a,o)})}),t}};function wo(n,e,i){return new di(n,e,i)}var di=class{constructor(e,i,t){this.name=e,this.ast=i,this._normalizer=t,this.transitionFactories=[],this.states=new Map,i.states.forEach(s=>{let r=s.options&&s.options.params||{};this.states.set(s.name,new ci(s.style,r,t))}),Fs(this.states,"true","1"),Fs(this.states,"false","0"),i.transitions.forEach(s=>{this.transitionFactories.push(new _t(e,s,this.states))}),this.fallbackTransition=So(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,t,s){return this.transitionFactories.find(o=>o.match(e,i,t,s))||null}matchStyles(e,i,t){return this.fallbackTransition.buildStyles(e,i,t)}};function So(n,e,i){let r={type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0};return new _t(n,r,e)}function Fs(n,e,i){n.has(e)?n.has(i)||n.set(i,n.get(e)):n.has(i)&&n.set(e,n.get(i))}var Ao=new Le,hi=class{constructor(e,i,t){this.bodyNode=e,this._driver=i,this._normalizer=t,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let t=[],s=[],r=Ys(this._driver,i,t,s);if(t.length)throw xr(t);s.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,i,t){let s=e.element,r=zs(this._normalizer,e.keyframes,i,t);return this._driver.animate(s,r,e.duration,e.delay,e.easing,[],!0)}create(e,i,t={}){let s=[],r=this._animations.get(e),o,a=new Map;if(r?(o=Zs(this._driver,i,r,Ws,ei,new Map,new Map,t,Ao,s),o.forEach(d=>{let h=K(a,d.element,new Map);d.postStyleProps.forEach(b=>h.set(b,null))})):(s.push(jr()),o=[]),s.length)throw Br(s);a.forEach((d,h)=>{d.forEach((b,_)=>{d.set(_,this._driver.computeStyle(h,_,Z))})});let l=o.map(d=>{let h=a.get(d.element);return this._buildPlayer(d,new Map,h)}),c=oe(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let t=this.players.indexOf(i);t>=0&&this.players.splice(t,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw Ur(e);return i}listen(e,i,t,s){let r=gi(i,"","","");return pi(this._getPlayer(e),t,r,s),()=>{}}command(e,i,t,s){if(t=="register"){this.register(e,s[0]);return}if(t=="create"){let o=s[0]||{};this.create(e,i,o);return}let r=this._getPlayer(e);switch(t){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e);break}}},Ls="ng-animate-queued",Io=".ng-animate-queued",Zt="ng-animate-disabled",Do=".ng-animate-disabled",Mo="ng-star-inserted",ko=".ng-star-inserted",Co=[],Xs={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},No={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Q="__ng_removed",xe=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let t=e&&e.hasOwnProperty("value"),s=t?e.value:e;if(this.value=Ro(s),t){let r=Ue(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let t=this.options.params;Object.keys(i).forEach(s=>{t[s]==null&&(t[s]=i[s])})}}},Pe="void",Xt=new xe(Pe),ui=class{constructor(e,i,t){this.id=e,this.hostElement=i,this._engine=t,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,W(i,this._hostClassName)}listen(e,i,t,s){if(!this._triggers.has(i))throw zr(t,i);if(t==null||t.length==0)throw Kr(i);if(!Po(t))throw Vr(t,i);let r=K(this._elementListeners,e,[]),o={name:i,phase:t,callback:s};r.push(o);let a=K(this._engine.statesByElement,e,new Map);return a.has(i)||(W(e,rt),W(e,rt+"-"+i),a.set(i,Xt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw $r(e);return i}trigger(e,i,t,s=!0){let r=this._getTrigger(i),o=new je(this.id,i,e),a=this._engine.statesByElement.get(e);a||(W(e,rt),W(e,rt+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new xe(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Xt),!(c.value===Pe)&&l.value===c.value){if(!xo(l.params,c.params)){let f=[],T=r.matchStyles(l.value,l.params,f),A=r.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(()=>{ge(e,T),X(e,A)})}return}let b=K(this._engine.playersByElement,e,[]);b.forEach(f=>{f.namespaceId==this.id&&f.triggerName==i&&f.queued&&f.destroy()});let _=r.matchTransition(l.value,c.value,e,c.params),m=!1;if(!_){if(!s)return;_=r.fallbackTransition,m=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:_,fromState:l,toState:c,player:o,isFallbackTransition:m}),m||(W(e,Ls),o.onStart(()=>{Se(e,Ls)})),o.onDone(()=>{let f=this.players.indexOf(o);f>=0&&this.players.splice(f,1);let T=this._engine.playersByElement.get(e);if(T){let A=T.indexOf(o);A>=0&&T.splice(A,1)}}),this.players.push(o),b.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,t)=>{this._elementListeners.set(t,i.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(t=>t.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let t=this._engine.driver.query(e,dt,!0);t.forEach(s=>{if(s[Q])return;let r=this._engine.fetchNamespacesByElement(s);r.size?r.forEach(o=>o.triggerLeaveAnimation(s,i,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,i,t,s){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Pe,s);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),t&&oe(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),t=this._engine.statesByElement.get(e);if(i&&t){let s=new Set;i.forEach(r=>{let o=r.name;if(s.has(o))return;s.add(o);let l=this._triggers.get(o).fallbackTransition,c=t.get(o)||Xt,d=new xe(Pe),h=new je(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:h,isFallbackTransition:!0})})}}removeNode(e,i){let t=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let s=!1;if(t.totalAnimations){let r=t.players.length?t.playersByQueriedElement.get(e):[];if(r&&r.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(t.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)t.markElementAsRemoved(this.id,e,!1,i);else{let r=e[Q];(!r||r===Xs)&&(t.afterFlush(()=>this.clearElementCache(e)),t.destroyInnerAnimations(e),t._onRemovalComplete(e,i))}}insertNode(e,i){W(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(t=>{let s=t.player;if(s.destroyed)return;let r=t.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==t.triggerName){let l=gi(r,t.triggerName,t.fromState.value,t.toState.value);l._data=e,pi(t.player,a.phase,l,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):i.push(t)}),this._queue=[],i.sort((t,s)=>{let r=t.transition.ast.depCount,o=s.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(t.element,s.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},mi=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,t){this.bodyNode=e,this.driver=i,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,i){let t=new ui(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(t,i):(this.newHostElements.set(i,t),this.collectEnterElement(i)),this._namespaceLookup[e]=t}_balanceNamespaceList(e,i){let t=this._namespaceList,s=this.namespacesByHostElement;if(t.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=s.get(a);if(l){let c=t.indexOf(l);t.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||t.unshift(e)}else t.push(e);return s.set(i,e),e}register(e,i){let t=this._namespaceLookup[e];return t||(t=this.createNamespace(e,i)),t}registerTrigger(e,i,t){let s=this._namespaceLookup[e];s&&s.register(i,t)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(e);this.namespacesByHostElement.delete(t.hostElement);let s=this._namespaceList.indexOf(t);s>=0&&this._namespaceList.splice(s,1),t.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,t=this.statesByElement.get(e);if(t){for(let s of t.values())if(s.namespaceId){let r=this._fetchNamespace(s.namespaceId);r&&i.add(r)}}return i}trigger(e,i,t,s){if(lt(i)){let r=this._fetchNamespace(e);if(r)return r.trigger(i,t,s),!0}return!1}insertNode(e,i,t,s){if(!lt(i))return;let r=i[Q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,t)}s&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,Zt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Se(e,Zt))}removeNode(e,i,t){if(lt(i)){let s=e?this._fetchNamespace(e):null;s?s.removeNode(i,t):this.markElementAsRemoved(e,i,!1,t);let r=this.namespacesByHostElement.get(i);r&&r.id!==e&&r.removeNode(i,t)}else this._onRemovalComplete(i,t)}markElementAsRemoved(e,i,t,s,r){this.collectedLeaveElements.push(i),i[Q]={namespaceId:e,setForRemoval:s,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,i,t,s,r){return lt(i)?this._fetchNamespace(e).listen(i,t,s,r):()=>{}}_buildInstruction(e,i,t,s,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,t,s,e.fromState.options,e.toState.options,i,r)}destroyInnerAnimations(e){let i=this.driver.query(e,dt,!0);i.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,ti,!0),i.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return oe(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Q];if(i&&i.setForRemoval){if(e[Q]=Xs,i.namespaceId){this.destroyInnerAnimations(e);let t=this._fetchNamespace(i.namespaceId);t&&t.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Zt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Do,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,s)=>this._balanceNamespaceList(t,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;t<this.collectedEnterElements.length;t++){let s=this.collectedEnterElements[t];W(s,Mo)}if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){let t=[];try{i=this._flushAnimations(t,e)}finally{for(let s=0;s<t.length;s++)t[s]()}}else for(let t=0;t<this.collectedLeaveElements.length;t++){let s=this.collectedLeaveElements[t];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],i.length?oe(i).onDone(()=>{t.forEach(s=>s())}):t.forEach(s=>s())}}reportError(e){throw Wr(e)}_flushAnimations(e,i){let t=new Le,s=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(u=>{d.add(u);let p=this.driver.query(u,Io,!0);for(let g=0;g<p.length;g++)d.add(p[g])});let h=this.bodyNode,b=Array.from(this.statesByElement.keys()),_=Bs(b,this.collectedEnterElements),m=new Map,f=0;_.forEach((u,p)=>{let g=Ws+f++;m.set(p,g),u.forEach(v=>W(v,g))});let T=[],A=new Set,I=new Set;for(let u=0;u<this.collectedLeaveElements.length;u++){let p=this.collectedLeaveElements[u],g=p[Q];g&&g.setForRemoval&&(T.push(p),A.add(p),g.hasAnimation?this.driver.query(p,ko,!0).forEach(v=>A.add(v)):I.add(p))}let P=new Map,k=Bs(b,Array.from(A));k.forEach((u,p)=>{let g=ei+f++;P.set(p,g),u.forEach(v=>W(v,g))}),e.push(()=>{_.forEach((u,p)=>{let g=m.get(p);u.forEach(v=>Se(v,g))}),k.forEach((u,p)=>{let g=P.get(p);u.forEach(v=>Se(v,g))}),T.forEach(u=>{this.processLeaveNode(u)})});let ye=[],G=[];for(let u=this._namespaceList.length-1;u>=0;u--)this._namespaceList[u].drainQueuedTransitions(i).forEach(g=>{let v=g.player,D=g.element;if(ye.push(v),this.collectedEnterElements.length){let O=D[Q];if(O&&O.setForMove){if(O.previousTriggersValues&&O.previousTriggersValues.has(g.triggerName)){let le=O.previousTriggersValues.get(g.triggerName),V=this.statesByElement.get(g.element);if(V&&V.has(g.triggerName)){let Ke=V.get(g.triggerName);Ke.value=le,V.set(g.triggerName,Ke)}}v.destroy();return}}let Y=!h||!this.driver.containsElement(h,D),B=P.get(D),ne=m.get(D),S=this._buildInstruction(g,t,ne,B,Y);if(S.errors&&S.errors.length){G.push(S);return}if(Y){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}if(g.isFallbackTransition){v.onStart(()=>ge(D,S.fromStyles)),v.onDestroy(()=>X(D,S.toStyles)),s.push(v);return}let Ni=[];S.timelines.forEach(O=>{O.stretchStartingKeyframe=!0,this.disabledNodes.has(O.element)||Ni.push(O)}),S.timelines=Ni,t.append(D,S.timelines);let pn={instruction:S,player:v,element:D};o.push(pn),S.queriedElements.forEach(O=>K(a,O,[]).push(v)),S.preStyleProps.forEach((O,le)=>{if(O.size){let V=l.get(le);V||l.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))}}),S.postStyleProps.forEach((O,le)=>{let V=c.get(le);V||c.set(le,V=new Set),O.forEach((Ke,At)=>V.add(At))})});if(G.length){let u=[];G.forEach(p=>{u.push(qr(p.triggerName,p.errors))}),ye.forEach(p=>p.destroy()),this.reportError(u)}let F=new Map,J=new Map;o.forEach(u=>{let p=u.element;t.has(p)&&(J.set(p,p),this._beforeAnimationBuild(u.player.namespaceId,u.instruction,F))}),s.forEach(u=>{let p=u.element;this._getPreviousPlayers(p,!1,u.namespaceId,u.triggerName,null).forEach(v=>{K(F,p,[]).push(v),v.destroy()})});let ee=T.filter(u=>Us(u,l,c)),te=new Map;js(te,this.driver,I,c,Z).forEach(u=>{Us(u,l,c)&&ee.push(u)});let De=new Map;_.forEach((u,p)=>{js(De,this.driver,new Set(u),l,Je)}),ee.forEach(u=>{let p=te.get(u),g=De.get(u);te.set(u,new Map([...p?.entries()??[],...g?.entries()??[]]))});let ae=[],ki=[],Ci={};o.forEach(u=>{let{element:p,player:g,instruction:v}=u;if(t.has(p)){if(d.has(p)){g.onDestroy(()=>X(p,v.toStyles)),g.disabled=!0,g.overrideTotalTime(v.totalTime),s.push(g);return}let D=Ci;if(J.size>1){let B=p,ne=[];for(;B=B.parentNode;){let S=J.get(B);if(S){D=S;break}ne.push(B)}ne.forEach(S=>J.set(S,D))}let Y=this._buildAnimation(g.namespaceId,v,F,r,De,te);if(g.setRealPlayer(Y),D===Ci)ae.push(g);else{let B=this.playersByElement.get(D);B&&B.length&&(g.parentPlayer=oe(B)),s.push(g)}}else ge(p,v.fromStyles),g.onDestroy(()=>X(p,v.toStyles)),ki.push(g),d.has(p)&&s.push(g)}),ki.forEach(u=>{let p=r.get(u.element);if(p&&p.length){let g=oe(p);u.setRealPlayer(g)}}),s.forEach(u=>{u.parentPlayer?u.syncPlayerEvents(u.parentPlayer):u.destroy()});for(let u=0;u<T.length;u++){let p=T[u],g=p[Q];if(Se(p,ei),g&&g.hasAnimation)continue;let v=[];if(a.size){let Y=a.get(p);Y&&Y.length&&v.push(...Y);let B=this.driver.query(p,ti,!0);for(let ne=0;ne<B.length;ne++){let S=a.get(B[ne]);S&&S.length&&v.push(...S)}}let D=v.filter(Y=>!Y.destroyed);D.length?Fo(this,p,D):this.processLeaveNode(p)}return T.length=0,ae.forEach(u=>{this.players.push(u),u.onDone(()=>{u.destroy();let p=this.players.indexOf(u);this.players.splice(p,1)}),u.play()}),ae}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,t,s,r){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Pe;a.forEach(c=>{c.queued||!l&&c.triggerName!=s||o.push(c)})}}return(t||s)&&(o=o.filter(a=>!(t&&t!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,i,t){let s=i.triggerName,r=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:s;for(let l of i.timelines){let c=l.element,d=c!==r,h=K(t,c,[]);this._getPreviousPlayers(c,d,o,a,i.toState).forEach(_=>{let m=_.getRealPlayer();m.beforeDestroy&&m.beforeDestroy(),_.destroy(),h.push(_)})}ge(r,i.fromStyles)}_buildAnimation(e,i,t,s,r,o){let a=i.triggerName,l=i.element,c=[],d=new Set,h=new Set,b=i.timelines.map(m=>{let f=m.element;d.add(f);let T=f[Q];if(T&&T.removedBeforeQueried)return new ve(m.duration,m.delay);let A=f!==l,I=Lo((t.get(f)||Co).map(F=>F.getRealPlayer())).filter(F=>{let J=F;return J.element?J.element===f:!1}),P=r.get(f),k=o.get(f),ye=zs(this._normalizer,m.keyframes,P,k),G=this._buildPlayer(m,ye,I);if(m.subTimeline&&s&&h.add(f),A){let F=new je(e,a,f);F.setRealPlayer(G),c.push(F)}return G});c.forEach(m=>{K(this.playersByQueriedElement,m.element,[]).push(m),m.onDone(()=>Oo(this.playersByQueriedElement,m.element,m))}),d.forEach(m=>W(m,Cs));let _=oe(b);return _.onDestroy(()=>{d.forEach(m=>Se(m,Cs)),X(l,i.toStyles)}),h.forEach(m=>{K(s,m,[]).push(_)}),_}_buildPlayer(e,i,t){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,t):new ve(e.duration,e.delay)}},je=class{constructor(e,i,t){this.namespaceId=e,this.triggerName=i,this.element=t,this._player=new ve,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,t)=>{i.forEach(s=>pi(e,t,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){K(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function Oo(n,e,i){let t=n.get(e);if(t){if(t.length){let s=t.indexOf(i);t.splice(s,1)}t.length==0&&n.delete(e)}return t}function Ro(n){return n??null}function lt(n){return n&&n.nodeType===1}function Po(n){return n=="start"||n=="done"}function xs(n,e){let i=n.style.display;return n.style.display=e??"none",i}function js(n,e,i,t,s){let r=[];i.forEach(l=>r.push(xs(l)));let o=[];t.forEach((l,c)=>{let d=new Map;l.forEach(h=>{let b=e.computeStyle(c,h,s);d.set(h,b),(!b||b.length==0)&&(c[Q]=No,o.push(c))}),n.set(c,d)});let a=0;return i.forEach(l=>xs(l,r[a++])),o}function Bs(n,e){let i=new Map;if(n.forEach(a=>i.set(a,[])),e.length==0)return i;let t=1,s=new Set(e),r=new Map;function o(a){if(!a)return t;let l=r.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:s.has(c)?l=t:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==t&&i.get(l).push(a)}),i}function W(n,e){n.classList?.add(e)}function Se(n,e){n.classList?.remove(e)}function Fo(n,e,i){oe(i).onDone(()=>n.processLeaveNode(e))}function Lo(n){let e=[];return Js(n,e),e}function Js(n,e){for(let i=0;i<n.length;i++){let t=n[i];t instanceof Pt?Js(t.players,e):e.push(t)}}function xo(n,e){let i=Object.keys(n),t=Object.keys(e);if(i.length!=t.length)return!1;for(let s=0;s<i.length;s++){let r=i[s];if(!e.hasOwnProperty(r)||n[r]!==e[r])return!1}return!0}function Us(n,e,i){let t=i.get(n);if(!t)return!1;let s=e.get(n);return s?t.forEach(r=>s.add(r)):e.set(n,t),i.delete(n),!0}var Ie=class{constructor(e,i,t){this._driver=i,this._normalizer=t,this._triggerCache={},this.onRemovalComplete=(s,r)=>{},this._transitionEngine=new mi(e.body,i,t),this._timelineEngine=new hi(e.body,i,t),this._transitionEngine.onRemovalComplete=(s,r)=>this.onRemovalComplete(s,r)}registerTrigger(e,i,t,s,r){let o=e+"-"+s,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Ys(this._driver,r,l,c);if(l.length)throw Fr(s,l);c.length&&void 0,a=wo(s,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,s,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,t,s){this._transitionEngine.insertNode(e,i,t,s)}onRemove(e,i,t){this._transitionEngine.removeNode(e,i,t)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,t,s){if(t.charAt(0)=="@"){let[r,o]=Ms(t),a=s;this._timelineEngine.command(r,i,o,a)}else this._transitionEngine.trigger(e,i,t,s)}listen(e,i,t,s,r){if(t.charAt(0)=="@"){let[o,a]=Ms(t);return this._timelineEngine.listen(o,i,a,r)}return this._transitionEngine.listen(e,i,t,s,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function jo(n,e){let i=null,t=null;return Array.isArray(e)&&e.length?(i=Jt(e[0]),e.length>1&&(t=Jt(e[e.length-1]))):e instanceof Map&&(i=Jt(e)),i||t?new Bo(n,i,t):null}var Bo=(()=>{let e=class e{constructor(t,s,r){this._element=t,this._startStyles=s,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&X(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(X(this._element,this._initialStyles),this._endStyles&&(X(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),X(this._element,this._initialStyles),this._state=3)}};e.initialStylesByElement=new WeakMap;let n=e;return n})();function Jt(n){let e=null;return n.forEach((i,t)=>{Uo(t)&&(e=e||new Map,e.set(t,i))}),e}function Uo(n){return n==="display"||n==="position"}var yt=class{constructor(e,i,t,s){this.element=e,this.keyframes=i,this.options=t,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(t=>{i.push(Object.fromEntries(t))}),i}_triggerWebAnimation(e,i,t){return e.animate(this._convertKeyframesToObject(i),t)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,s)=>{s!=="offset"&&e.set(s,this._finished?t:Qs(this.element,s))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(t=>t()),i.length=0}},bt=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}matchesElement(e,i){return!1}containsElement(e,i){return Ks(e,i)}getParentElement(e){return _i(e)}query(e,i,t){return Vs(e,i,t)}computeStyle(e,i,t){return window.getComputedStyle(e)[i]}animate(e,i,t,s,r,o=[]){let a=s==0?"both":"forwards",l={duration:t,delay:s,fill:a};r&&(l.easing=r);let c=new Map,d=o.filter(_=>_ instanceof yt);so(t,s)&&d.forEach(_=>{_.currentSnapshot.forEach((m,f)=>c.set(f,m))});let h=eo(i).map(_=>Ae(_));h=no(e,h,c);let b=jo(e,h);return new yt(e,h,l,b)}};var ct="@",en="@.disabled",vt=class{constructor(e,i,t,s){this.namespaceId=e,this.delegate=i,this.engine=t,this._onDestroy=s,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,t,s=!0){this.delegate.insertBefore(e,i,t),this.engine.onInsert(this.namespaceId,i,e,s)}removeChild(e,i,t){this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,t,s){this.delegate.setAttribute(e,i,t,s)}removeAttribute(e,i,t){this.delegate.removeAttribute(e,i,t)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,t,s){this.delegate.setStyle(e,i,t,s)}removeStyle(e,i,t){this.delegate.removeStyle(e,i,t)}setProperty(e,i,t){i.charAt(0)==ct&&i==en?this.disableAnimations(e,!!t):this.delegate.setProperty(e,i,t)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,t){return this.delegate.listen(e,i,t)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},fi=class extends vt{constructor(e,i,t,s,r){super(i,t,s,r),this.factory=e,this.namespaceId=i}setProperty(e,i,t){i.charAt(0)==ct?i.charAt(1)=="."&&i==en?(t=t===void 0?!0:!!t,this.disableAnimations(e,t)):this.engine.process(this.namespaceId,e,i.slice(1),t):this.delegate.setProperty(e,i,t)}listen(e,i,t){if(i.charAt(0)==ct){let s=zo(e),r=i.slice(1),o="";return r.charAt(0)!=ct&&([r,o]=Ko(r)),this.engine.listen(this.namespaceId,s,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,t,a)})}return this.delegate.listen(e,i,t)}};function zo(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ko(n){let e=n.indexOf("."),i=n.substring(0,e),t=n.slice(e+1);return[i,t]}var Et=class{constructor(e,i,t){this.delegate=e,this.engine=i,this._zone=t,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(s,r)=>{let o=r?.parentNode(s);o&&r.removeChild(o,s)}}createRenderer(e,i){let t="",s=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,d=c.get(s);if(!d){let h=()=>c.delete(s);d=new vt(t,s,this.engine,h),c.set(s,d)}return d}let r=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return i.data.animation.forEach(a),new fi(this,o,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,t){if(e>=0&&e<this._microtaskId){this._zone.run(()=>i(t));return}let s=this._animationCallbacksBuffer;s.length==0&&queueMicrotask(()=>{this._zone.run(()=>{s.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),s.push([i,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var $o=(()=>{let e=class e extends Ie{constructor(t,s,r,o){super(t,s,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(s){return new(s||e)(y(L),y(Be),y(_e),y(is))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})();function Wo(){return new mt}function qo(n,e,i){return new Et(n,e,i)}var sn=[{provide:_e,useFactory:Wo},{provide:Ie,useClass:$o},{provide:qi,useFactory:qo,deps:[rs,Ie,j]}],tn=[{provide:Be,useFactory:()=>new bt},{provide:ie,useValue:"BrowserAnimations"},...sn],Ho=[{provide:Be,useClass:yi},{provide:ie,useValue:"NoopAnimations"},...sn],kl=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?Ho:tn}}};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:tn,imports:[os]});let n=e;return n})();var Yo=["text"];function Zo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",6),n&2){let i=Xe();Qe("disabled",i.disabled)("state",i.selected?"checked":"unchecked")}}function Xo(n,e){if(n&1&&Ze(0,"mat-pseudo-checkbox",7),n&2){let i=Xe();Qe("disabled",i.disabled)}}function Jo(n,e){if(n&1&&(kt(0,"span",8),Zi(1),Ct()),n&2){let i=Xe();ke(1),Xi("(",i.group.label,")")}}var ea=[[["mat-icon"]],"*"],ta=["mat-icon","*"];var Jl=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),ec=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function ia(){return!0}var sa=new x("mat-sanity-checks",{providedIn:"root",factory:ia}),wt=(()=>{let e=class e{constructor(t,s,r){this._sanityChecks=s,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return hs()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(s){return new(s||e)(y(qt),y(sa,8),y(L))},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[Ht,Ht]});let n=e;return n})();function tc(n){return class extends n{get disabled(){return this._disabled}set disabled(e){this._disabled=jt(e)}constructor(...e){super(...e),this._disabled=!1}}}function ic(n,e){return class extends n{get color(){return this._color}set color(i){let t=i||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),t&&this._elementRef.nativeElement.classList.add(`mat-${t}`),this._color=t)}constructor(...i){super(...i),this.defaultColor=e,this.color=e}}}function sc(n){return class extends n{get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=jt(e)}constructor(...e){super(...e),this._disableRipple=!1}}}function nc(n,e=0){return class extends n{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(i){this._tabIndex=i!=null?us(i):this.defaultTabIndex}constructor(...i){super(...i),this._tabIndex=e,this.defaultTabIndex=e}}}function rc(n){return class extends n{updateErrorState(){let e=this.errorState,i=this._parentFormGroup||this._parentForm,t=this.errorStateMatcher||this._defaultErrorStateMatcher,s=this.ngControl?this.ngControl.control:null,r=t.isErrorState(s,i);r!==e&&(this.errorState=r,this.stateChanges.next())}constructor(...e){super(...e),this.errorState=!1}}}function oc(n){return class extends n{constructor(...e){super(...e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Ve(i=>{this._isInitialized?this._notifySubscriber(i):this._pendingSubscribers.push(i)})}_markInitialized(){this._isInitialized,this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(e){e.next(),e.complete()}}}var nn=new x("MAT_DATE_LOCALE",{providedIn:"root",factory:na});function na(){return U(ss)}var St=class{constructor(){this._localeChanges=new q,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,i){return this.getYear(e)-this.getYear(i)||this.getMonth(e)-this.getMonth(i)||this.getDate(e)-this.getDate(i)}sameDate(e,i){if(e&&i){let t=this.isValid(e),s=this.isValid(i);return t&&s?!this.compareDate(e,i):t==s}return e==i}clampDate(e,i,t){return i&&this.compareDate(e,i)<0?i:t&&this.compareDate(e,t)>0?t:e}},ra=new x("mat-date-formats"),oa=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Ei(n,e){let i=Array(n);for(let t=0;t<n;t++)i[t]=e(t);return i}var aa=(()=>{let e=class e extends St{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=U(nn,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let s=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Ei(12,r=>this._format(s,new Date(2017,r,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Ei(31,s=>this._format(t,new Date(2017,0,s+1)))}getDayOfWeekNames(t){let s=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Ei(7,r=>this._format(s,new Date(2017,0,r+1)))}getYearName(t){let s=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(s,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,s,r){let o=this._createDateWithOverflow(t,s,r);return o.getMonth()!=s,o}today(){return new Date}parse(t,s){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,s){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Oi(R({},s),{timeZone:"utc"}));return this._format(r,t)}addCalendarYears(t,s){return this.addCalendarMonths(t,s*12)}addCalendarMonths(t,s){let r=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+s,this.getDate(t));return this.getMonth(r)!=((this.getMonth(t)+s)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(t,s){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+s)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(oa.test(t)){let s=new Date(t);if(this.isValid(s))return s}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,s,r){let o=new Date;return o.setFullYear(t,s,r),o.setHours(0,0,0,0),o}_2digit(t){return("00"+t).slice(-2)}_format(t,s){let r=new Date;return r.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),r.setUTCHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t.format(r)}};e.\u0275fac=function(s){return new(s||e)(y(nn,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac});let n=e;return n})(),la={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ca=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:St,useClass:aa}]});let n=e;return n})(),ac=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({providers:[{provide:ra,useValue:la}],imports:[ca]});let n=e;return n})();var lc=(()=>{let e=class e{isErrorState(t,s){return!!(t&&t.invalid&&(t.touched||s&&s.submitted))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Si=class{constructor(e,i,t,s=!1){this._renderer=e,this.element=i,this.config=t,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}},rn=Te({passive:!0,capture:!0}),Ai=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let i=re(e);i&&this._events.get(e.type)?.forEach((t,s)=>{(s===i||s.contains(i))&&t.forEach(r=>r.handleEvent(e))})}}addHandler(e,i,t,s){let r=this._events.get(i);if(r){let o=r.get(t);o?o.add(s):r.set(t,new Set([s]))}else this._events.set(i,new Map([[t,new Set([s])]])),e.runOutsideAngular(()=>{document.addEventListener(i,this._delegateEventHandler,rn)})}removeHandler(e,i,t){let s=this._events.get(e);if(!s)return;let r=s.get(i);r&&(r.delete(t),r.size===0&&s.delete(i),s.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,rn)))}},on={enterDuration:225,exitDuration:150},da=800,an=Te({passive:!0,capture:!0}),ln=["mousedown","touchstart"],cn=["mouseup","mouseleave","touchend","touchcancel"],ze=class ze{constructor(e,i,t,s){this._target=e,this._ngZone=i,this._platform=s,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=ue(t))}fadeInRipple(e,i,t={}){let s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=R(R({},on),t.animation);t.centered&&(e=s.left+s.width/2,i=s.top+s.height/2);let o=t.radius||ha(e,i,s),a=e-s.left,l=i-s.top,c=r.enterDuration,d=document.createElement("div");d.classList.add("mat-ripple-element"),d.style.left=`${a-o}px`,d.style.top=`${l-o}px`,d.style.height=`${o*2}px`,d.style.width=`${o*2}px`,t.color!=null&&(d.style.backgroundColor=t.color),d.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(d);let h=window.getComputedStyle(d),b=h.transitionProperty,_=h.transitionDuration,m=b==="none"||_==="0s"||_==="0s, 0s"||s.width===0&&s.height===0,f=new Si(this,d,t,m);d.style.transform="scale3d(1, 1, 1)",f.state=0,t.persistent||(this._mostRecentTransientRipple=f);let T=null;return!m&&(c||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let A=()=>this._finishRippleTransition(f),I=()=>this._destroyRipple(f);d.addEventListener("transitionend",A),d.addEventListener("transitioncancel",I),T={onTransitionEnd:A,onTransitionCancel:I}}),this._activeRipples.set(f,T),(m||!c)&&this._finishRippleTransition(f),f}fadeOutRipple(e){if(e.state===2||e.state===3)return;let i=e.element,t=R(R({},on),e.config.animation);i.style.transitionDuration=`${t.exitDuration}ms`,i.style.opacity="0",e.state=2,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let i=ue(e);!this._platform.isBrowser||!i||i===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=i,ln.forEach(t=>{ze._eventManager.addHandler(this._ngZone,t,i,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{cn.forEach(i=>{this._triggerElement.addEventListener(i,this,an)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===0?this._startFadeOutTransition(e):e.state===2&&this._destroyRipple(e)}_startFadeOutTransition(e){let i=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=1,!t&&(!i||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let i=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=3,i!==null&&(e.element.removeEventListener("transitionend",i.onTransitionEnd),e.element.removeEventListener("transitioncancel",i.onTransitionCancel)),e.element.remove()}_onMousedown(e){let i=$t(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+da;!this._target.rippleDisabled&&!i&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Wt(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let i=e.changedTouches;if(i)for(let t=0;t<i.length;t++)this.fadeInRipple(i[t].clientX,i[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let i=e.state===1||e.config.terminateOnPointerUp&&e.state===0;!e.config.persistent&&i&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(ln.forEach(i=>ze._eventManager.removeHandler(i,e,this)),this._pointerUpEventsRegistered&&cn.forEach(i=>e.removeEventListener(i,this,an)))}};ze._eventManager=new Ai;var Ii=ze;function ha(n,e,i){let t=Math.max(Math.abs(n-i.left),Math.abs(n-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(t*t+s*s)}var mn=new x("mat-ripple-global-options"),fn=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,s,r,o,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new Ii(this,s,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:R(R(R({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,s=0,r){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,s,R(R({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,R(R({},this.rippleConfig),t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(j),M($),M(mn,8),M(ie,8))},e.\u0275dir=ce({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(s,r){s&2&&Ge("mat-ripple-unbounded",r.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]});let n=e;return n})(),ua=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt,wt]});let n=e;return n})(),ma=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(s){return new(s||e)(M(ie,8))},e.\u0275cmp=It({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(s,r){s&2&&Ge("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(s,r){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),fa=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[wt]});let n=e;return n})(),pa=new x("MAT_OPTION_PARENT_COMPONENT");var ga=new x("MatOptgroup");var _a=0,Di=class{constructor(e,i=!1){this.source=e,this.isUserInput=i}},cc=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,s,r,o){this._element=t,this._changeDetectorRef=s,this._parent=r,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${_a++}`,this.onSelectionChange=new be,this._stateChanges=new q}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,s){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(s)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!et(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Di(this,t))}};e.\u0275fac=function(s){return new(s||e)(M(H),M(Hi),M(pa,8),M(ga,8))},e.\u0275cmp=It({type:e,selectors:[["mat-option"]],viewQuery:function(s,r){if(s&1&&es(Yo,7),s&2){let o;Ji(o=ts())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(s,r){s&1&&Gi("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),s&2&&(Qi("id",r.id),Dt("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),Ge("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:["disabled","disabled",Ne]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],features:[Ce],ngContentSelectors:ta,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled"],["class","cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(s,r){s&1&&(Yi(ea),Mt(0,Zo,1,2,"mat-pseudo-checkbox",0),Nt(1),kt(2,"span",1,2),Nt(4,1),Ct(),Mt(5,Xo,1,1,"mat-pseudo-checkbox",3)(6,Jo,2,1,"span",4),Ze(7,"div",5)),s&2&&(Ye(0,r.multiple?0:-1),ke(5),Ye(5,!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),ke(1),Ye(6,r.group&&r.group._inert?6:-1),ke(1),Qe("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[fn,ma],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function dc(n,e,i){if(i.length){let t=e.toArray(),s=i.toArray(),r=0;for(let o=0;o<n+1;o++)t[o].group&&t[o].group===s[r]&&r++;return r}return 0}function hc(n,e,i,t){return n<i?n:n+e>i+t?Math.max(0,n-t+e):i}var uc=(()=>{let e=class e{};e.\u0275fac=function(s){return new(s||e)},e.\u0275mod=N({type:e}),e.\u0275inj=C({imports:[ua,wt,fa]});let n=e;return n})(),dn={capture:!0},hn=["focus","click","mouseenter","touchstart"],Ti="mat-ripple-loader-uninitialized",wi="mat-ripple-loader-class-name",un="mat-ripple-loader-centered",Tt="mat-ripple-loader-disabled",mc=(()=>{let e=class e{constructor(){this._document=U(L,{optional:!0}),this._animationMode=U(ie,{optional:!0}),this._globalRippleOptions=U(mn,{optional:!0}),this._platform=U($),this._ngZone=U(j),this._hosts=new Map,this._onInteraction=t=>{if(!(t.target instanceof HTMLElement))return;let r=t.target.closest(`[${Ti}]`);r&&this._createRipple(r)},this._ngZone.runOutsideAngular(()=>{for(let t of hn)this._document?.addEventListener(t,this._onInteraction,dn)})}ngOnDestroy(){let t=this._hosts.keys();for(let s of t)this.destroyRipple(s);for(let s of hn)this._document?.removeEventListener(s,this._onInteraction,dn)}configureRipple(t,s){t.setAttribute(Ti,""),(s.className||!t.hasAttribute(wi))&&t.setAttribute(wi,s.className||""),s.centered&&t.setAttribute(un,""),s.disabled&&t.setAttribute(Tt,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,s){let r=this._hosts.get(t);if(r){r.disabled=s;return}s?t.setAttribute(Tt,""):t.removeAttribute(Tt)}_createRipple(t){if(!this._document)return;let s=this._hosts.get(t);if(s)return s;t.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",t.getAttribute(wi)),t.append(r);let o=new fn(new H(r),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return o._isInitialized=!0,o.trigger=t,o.centered=t.hasAttribute(un),o.disabled=t.hasAttribute(Tt),this.attachRipple(t,o),o}attachRipple(t,s){t.removeAttribute(Ti),this._hosts.set(t,s)}destroyRipple(t){let s=this._hosts.get(t);s&&(s.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();export{jt as a,us as b,Bt as c,Da as d,ue as e,Ma as f,et as g,$ as h,wa as i,Te as j,Sa as k,cs as l,ds as m,re as n,hs as o,kl as p,ms as q,zn as r,Kn as s,il as t,ys as u,bs as v,Vn as w,er as x,sl as y,$t as z,Wt as A,nl as B,cr as C,rl as D,ol as E,_l as F,Ht as G,Jl as H,ec as I,wt as J,tc as K,ic as L,sc as M,nc as N,rc as O,oc as P,nn as Q,St as R,ra as S,ac as T,lc as U,mn as V,fn as W,ua as X,pa as Y,ga as Z,cc as _,dc as $,hc as aa,uc as ba,mc as ca};
@@ -1 +0,0 @@
1
- import{c as Q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import{C as U,J as I,M as H,N as $,W as Y,X as J,a as s,b as N}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{a as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import{$ as w,Aa as M,Ea as m,Fa as a,Gb as y,Ha as f,Hb as j,Ia as g,Ib as B,Jb as x,Ka as P,Ma as v,Na as u,Pa as _,Y as D,Ya as n,Za as l,_a as k,aa as p,da as z,ea as E,ec as L,fa as G,gb as h,jb as q,kb as F,na as T,nb as O,sb as S,ua as A}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";var ie=["input"],re=["*"],K=0,b=class{constructor(o,X){this.source=o,this.value=X}},oe={provide:V,useExisting:D(()=>ae),multi:!0},W=new p("MatRadioGroup"),te=new p("mat-radio-default-options",{providedIn:"root",factory:de});function de(){return{color:"accent"}}var ae=(()=>{let o=class o{get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=s(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=s(e),this._markRadiosForCheck()}constructor(e){this._changeDetector=e,this._value=null,this._name=`mat-radio-group-${K++}`,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new g}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(i=>{i.checked=this.value===i.value,i.checked&&(this._selected=i)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new b(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}};o.\u0275fac=function(i){return new(i||o)(a(f))},o.\u0275dir=G({type:o,selectors:[["mat-radio-group"]],contentQueries:function(i,r,d){if(i&1&&B(d,ne,5),i&2){let c;y(c=x())&&(r._radios=c)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[S([oe,{provide:W,useExisting:o}])]});let t=o;return t})(),C=class{constructor(o){this._elementRef=o}},ce=H($(C)),ne=(()=>{let o=class o extends ce{get checked(){return this._checked}set checked(e){let i=s(e);this._checked!==i&&(this._checked=i,i&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!i&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),i&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(s(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=s(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(e,i,r,d,c,Z,ee,R){super(i),this._changeDetector=r,this._focusMonitor=d,this._radioDispatcher=c,this._providerOverride=ee,this._uniqueId=`mat-radio-${++K}`,this.id=this._uniqueId,this.change=new g,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._noopAnimations=Z==="NoopAnimations",R&&(this.tabIndex=N(R,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new b(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}};o.\u0275fac=function(i){return new(i||o)(a(W,8),a(M),a(f),a(U),a(Q),a(A,8),a(te,8),T("tabindex"))},o.\u0275cmp=z({type:o,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&j(ie,5),i&2){let d;y(d=x())&&(r._inputElement=d.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:15,hostBindings:function(i,r){i&1&&h("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(v("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),_("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("_mat-animation-noopable",r._noopAnimations))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},exportAs:["matRadioButton"],features:[P],ngContentSelectors:re,decls:13,vars:17,consts:[[1,"mdc-form-field"],["formField",""],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio",1,"mdc-radio__native-control",3,"id","checked","disabled","required","change"],["input",""],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1&&(q(),n(0,"div",0,1)(2,"div",2)(3,"div",3),h("click",function(c){return r._onTouchTargetClick(c)}),l(),n(4,"input",4,5),h("change",function(c){return r._onInputInteraction(c)}),l(),n(6,"div",6),k(7,"div",7)(8,"div",8),l(),n(9,"div",9),k(10,"div",10),l()(),n(11,"label",11),F(12),l()()),i&2){let d=O(1);_("mdc-form-field--align-end",r.labelPosition=="before"),m(2),_("mdc-radio--disabled",r.disabled),m(2),u("id",r.inputId)("checked",r.checked)("disabled",r.disabled)("required",r.required),v("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby),m(5),u("matRippleTrigger",d)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),m(2),u("for",r.inputId)}},dependencies:[Y],styles:['.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio[hidden]{display:none}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring{border-color:CanvasText}}.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__focus-ring::after,.mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__focus-ring::after{border-color:CanvasText}}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{padding:calc((var(--mdc-radio-state-layer-size) - 20px) / 2)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-selected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{opacity:var(--mdc-radio-disabled-selected-icon-opacity)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{opacity:var(--mdc-radio-disabled-unselected-icon-opacity)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio.mdc-ripple-upgraded--background-focused .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio:not(.mdc-ripple-upgraded):focus .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-focus-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-selected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-hover-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-icon-color)}.mat-mdc-radio-button .mdc-radio:not(:disabled):active .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-pressed-icon-color)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{top:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);left:calc(-1 * (var(--mdc-radio-state-layer-size) - 20px) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control{top:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);right:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);left:calc((var(--mdc-radio-state-layer-size) - var(--mdc-radio-state-layer-size)) / 2);width:var(--mdc-radio-state-layer-size);height:var(--mdc-radio-state-layer-size)}.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color)}.mat-mdc-radio-button .mdc-radio:hover .mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element{background-color:var(--mat-radio-checked-ripple-color)}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color)}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple .mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unselected-focus-icon-color, black)}.mat-mdc-radio-button.cdk-focused .mat-mdc-focus-indicator::before{content:""}.mat-mdc-radio-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}[dir=rtl] .mat-mdc-radio-touch-target{left:0;right:50%;transform:translate(50%, -50%)}'],encapsulation:2,changeDetection:0});let t=o;return t})(),Te=(()=>{let o=class o{};o.\u0275fac=function(i){return new(i||o)},o.\u0275mod=E({type:o}),o.\u0275inj=w({imports:[I,L,J,I]});let t=o;return t})();export{ae as a,ne as b,Te as c};
@@ -1 +0,0 @@
1
- import{$ as M,Aa as F,Ca as w,Fa as a,Ha as de,Ia as V,Ka as d,Ma as J,Pa as Q,Rb as T,Tb as ee,Y as c,Z as G,aa as _,ea as E,fa as u,fb as ce,gb as m,ha as j,m as ae,ma as p,q as le,sb as h,w as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import{a as g,b as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var Ve=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F))},e.\u0275dir=u({type:e});let i=e;return i})(),P=(()=>{let e=class e extends Ve{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[d]});let i=e;return i})(),b=new _("NgValueAccessor"),qe={provide:b,useExisting:c(()=>ze),multi:!0},ze=(()=>{let e=class e extends P{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.checked)})("blur",function(){return s.onTouched()})},features:[h([qe]),d]});let i=e;return i})(),Ze={provide:b,useExisting:c(()=>De),multi:!0};function Xe(){let i=ee()?ee().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ye=new _("CompositionEventMode"),De=(()=>{let e=class e extends Ve{constructor(t,n,s){super(t,n),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Xe())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F),a(Ye,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[h([Ze]),d]});let i=e;return i})();function y(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function be(i){return i!=null&&typeof i.length=="number"}var A=new _("NgValidators"),ie=new _("NgAsyncValidators"),Ke=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,he=class{static min(e){return Je(e)}static max(e){return Qe(e)}static required(e){return Ae(e)}static requiredTrue(e){return et(e)}static email(e){return Me(e)}static minLength(e){return tt(e)}static maxLength(e){return it(e)}static pattern(e){return Ee(e)}static nullValidator(e){return U(e)}static compose(e){return Ne(e)}static composeAsync(e){return Pe(e)}};function Je(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r<i?{min:{min:i,actual:e.value}}:null}}function Qe(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function Ae(i){return y(i.value)?{required:!0}:null}function et(i){return i.value===!0?null:{required:!0}}function Me(i){return y(i.value)||Ke.test(i.value)?null:{email:!0}}function tt(i){return e=>y(e.value)||!be(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function it(i){return e=>be(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Ee(i){if(!i)return U;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(y(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function U(i){return null}function Fe(i){return i!=null}function we(i){return ce(i)?ae(i):i}function Ie(i){let e={};return i.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function Se(i,e){return e.map(r=>r(i))}function nt(i){return!i.validate}function Oe(i){return i.map(e=>nt(e)?e:r=>e.validate(r))}function Ne(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){return Ie(Se(r,e))}}function ne(i){return i!=null?Ne(Oe(i)):null}function Pe(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){let t=Se(r,e).map(we);return ue(t).pipe(le(Ie))}}function re(i){return i!=null?Pe(Oe(i)):null}function fe(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function xe(i){return i._rawValidators}function ke(i){return i._rawAsyncValidators}function te(i){return i?Array.isArray(i)?i:[i]:[]}function R(i,e){return Array.isArray(i)?i.includes(e):i===e}function pe(i,e){let r=te(e);return te(i).forEach(n=>{R(r,n)||r.push(n)}),r}function ge(i,e){return te(e).filter(r=>!R(i,r))}var H=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ne(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=re(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},v=class extends H{get formDirective(){return null}get path(){return null}},N=class extends H{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},L=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},rt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},oi=C(g({},rt),{"[class.ng-submitted]":"isSubmitted"}),ai=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(N,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[d]});let i=e;return i})(),li=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(v,10))},e.\u0275dir=u({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[d]});let i=e;return i})();var I="VALID",B="INVALID",D="PENDING",S="DISABLED";function Ge(i){return(X(i)?i.validators:i)||null}function st(i){return Array.isArray(i)?ne(i):i||null}function je(i,e){return(X(e)?e.asyncValidators:i)||null}function ot(i){return Array.isArray(i)?re(i):i||null}function X(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function at(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new G(1e3,"");if(!t[r])throw new G(1001,"")}function lt(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var $=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===I}get invalid(){return this.status===B}get pending(){return this.status==D}get disabled(){return this.status===S}get enabled(){return this.status!==S}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(pe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(pe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ge(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ge(e,this._rawAsyncValidators))}hasValidator(e){return R(this._rawValidators,e)}hasAsyncValidator(e){return R(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=D,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=S,this.errors=null,this._forEachChild(t=>{t.disable(C(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=I,this._forEachChild(t=>{t.enable(C(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===I||this.status===D)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?S:I}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator=!0;let r=we(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?S:this.errors?B:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(B)?B:I}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){X(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=st(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}},W=class extends ${constructor(e,r,t){super(Ge(r),je(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){lt(this,!0,e),Object.keys(e).forEach(t=>{at(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,s)=>{t=r(t,n,s)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var x=new _("CallSetDisabledState",{providedIn:"root",factory:()=>Y}),Y="always";function ut(i,e){return[...e.path,i]}function q(i,e,r=Y){se(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),ct(i,e),ft(i,e),ht(i,e),dt(i,e)}function me(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Z(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function z(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function dt(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function se(i,e){let r=xe(i);e.validator!==null?i.setValidators(fe(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=ke(i);e.asyncValidator!==null?i.setAsyncValidators(fe(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();z(e._rawValidators,n),z(e._rawAsyncValidators,n)}function Z(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=xe(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.validator);s.length!==n.length&&(r=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let n=ke(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.asyncValidator);s.length!==n.length&&(r=!0,i.setAsyncValidators(s))}}}let t=()=>{};return z(e._rawValidators,t),z(e._rawAsyncValidators,t),r}function ct(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Te(i,e)})}function ht(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Te(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Te(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ft(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function Be(i,e){i==null,se(i,e)}function pt(i,e){return Z(i,e)}function gt(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function mt(i){return Object.getPrototypeOf(i.constructor)===P}function Ue(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yt(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(s=>{s.constructor===De?r=s:mt(s)?t=s:n=s}),n||t||r||null}function vt(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var _t={provide:v,useExisting:c(()=>Ct)},O=(()=>Promise.resolve())(),Ct=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new V,this.form=new W({},ne(t),re(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){O.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),q(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){O.then(()=>{let n=this._findContainer(t.path),s=new W({});Be(s,t),n.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){O.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([_t]),d]});let i=e;return i})();function ye(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function ve(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Re=class extends ${constructor(e=null,r,t){super(Ge(r),je(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),X(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ve(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ye(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ye(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ve(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Vt=i=>i instanceof Re;var Dt={provide:N,useExisting:c(()=>bt)},_e=(()=>Promise.resolve())(),bt=(()=>{let e=class e extends N{constructor(t,n,s,o,l,f){super(),this._changeDetectorRef=l,this.callSetDisabledState=f,this.control=new Re,this._registered=!1,this.name="",this.update=new V,this._parent=t,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=yt(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),gt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){q(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){_e.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,s=n!==0&&T(n);_e.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ut(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(a(v,9),a(A,10),a(ie,10),a(b,10),a(de,8),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h([Dt]),d,j]});let i=e;return i})(),di=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),At={provide:b,useExisting:c(()=>Mt),multi:!0},Mt=(()=>{let e=class e extends P{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},features:[h([At]),d]});let i=e;return i})();var Et=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Ft=new _("NgModelWithFormControlWarning");var wt={provide:v,useExisting:c(()=>It)},It=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new V,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return q(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){me(t.control||null,t,!1),vt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,s=this.form.get(t.path);n!==s&&(me(n||null,t),Vt(s)&&(q(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);Be(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&pt(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){se(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([wt]),d,j]});let i=e;return i})();var St={provide:b,useExisting:c(()=>Le),multi:!0};function He(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Ot(i){return i.split(":")[0]}var Le=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),s=He(n,t);this.setProperty("value",s)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=Ot(t);return this._optionMap.has(n)?this._optionMap.get(n):t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([St]),d]});let i=e;return i})(),ci=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(He(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a(Le,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})(),Nt={provide:b,useExisting:c(()=>$e),multi:!0};function Ce(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Pt(i){return i.split(":")[0]}var $e=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let s=t.map(o=>this._getOptionId(o));n=(o,l)=>{o._setSelected(s.indexOf(l.toString())>-1)}}else n=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let s=[],o=n.selectedOptions;if(o!==void 0){let l=o;for(let f=0;f<l.length;f++){let k=l[f],K=this._getOptionValue(k.value);s.push(K)}}else{let l=n.options;for(let f=0;f<l.length;f++){let k=l[f];if(k.selected){let K=this._getOptionValue(k.value);s.push(K)}}}this.value=s,t(s)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=Pt(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Nt]),d]});let i=e;return i})(),hi=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a($e,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})();var oe=(()=>{let e=class e{constructor(){this._validator=U}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):U,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,features:[j]});let i=e;return i})();var xt={provide:A,useExisting:c(()=>kt),multi:!0};var kt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=T,this.createValidator=t=>Ae}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,s){n&2&&J("required",s._enabled?"":null)},inputs:{required:"required"},features:[h([xt]),d]});let i=e;return i})();var Gt={provide:A,useExisting:c(()=>jt),multi:!0},jt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=T,this.createValidator=t=>Me}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[h([Gt]),d]});let i=e;return i})();var Tt={provide:A,useExisting:c(()=>Bt),multi:!0},Bt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>Ee(t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,s){n&2&&J("pattern",s._enabled?s.pattern:null)},inputs:{pattern:"pattern"},features:[h([Tt]),d]});let i=e;return i})();var We=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Et]});let i=e;return i})();var fi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})(),pi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ft,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})();export{b as a,ze as b,De as c,A as d,he as e,v as f,N as g,ai as h,li as i,Ct as j,bt as k,di as l,Mt as m,It as n,Le as o,ci as p,hi as q,kt as r,jt as s,Bt as t,fi as u,pi as v};
@@ -1 +0,0 @@
1
- import{$ as K,A as b,E as F,Fb as X,Ha as q,Hc as Z,I as L,Ia as V,K as G,M as y,Q as M,S as j,Sa as Q,W as C,_ as f,aa as E,ba as c,ca as p,d,ea as N,fa as J,ha as Y,m as g,n as h,q as S,s as m,t as I,w as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import{a as l,b as v}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var A={REMOVE:"remove",SHOW:"show"},ee=(()=>{let t=class t{constructor(){this.strategiesSource=new d({}),this.strategies$=this.strategiesSource.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),B=new E("USE_CONFIGURATION_STORE"),$=(()=>{let t=class t{constructor(e=!1,i){this.isolate=e,this.configurationStore=i,this.strategiesSource=this.isolate?new d({}):this.configurationStore.strategiesSource,this.strategies$=this.strategiesSource.asObservable(),this.onAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onAuthorisedDefaultStrategy,this.onUnAuthorisedDefaultStrategy=this.isolate?void 0:this.configurationStore.onUnAuthorisedDefaultStrategy}setDefaultOnAuthorizedStrategy(e){this.isolate?this.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onAuthorisedDefaultStrategy=this.configurationStore.onAuthorisedDefaultStrategy)}setDefaultOnUnauthorizedStrategy(e){this.isolate?this.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e):(this.configurationStore.onUnAuthorisedDefaultStrategy=this.getDefinedStrategy(e),this.onUnAuthorisedDefaultStrategy=this.configurationStore.onUnAuthorisedDefaultStrategy)}addPermissionStrategy(e,i){this.strategiesSource.value[e]=i}getStrategy(e){return this.strategiesSource.value[e]}getAllStrategies(){return this.strategiesSource.value}getDefinedStrategy(e){if(this.strategiesSource.value[e]||this.isPredefinedStrategy(e))return e;throw new Error(`No ' ${e} ' strategy is found please define one`)}isPredefinedStrategy(e){return e===A.SHOW||e===A.REMOVE}};t.\u0275fac=function(i){return new(i||t)(c(B),c(ee))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})();function u(r){return typeof r=="function"}function k(r){if(Object.prototype.toString.call(r)!=="[object Object]")return!1;{let t=Object.getPrototypeOf(r);return t===null||t===Object.prototype}}function ie(r){return!!r&&typeof r=="string"}function T(r){return typeof r=="boolean"}function te(r){return Object.prototype.toString.call(r)==="[object Promise]"}function O(r){return Array.isArray(r)?r.length>0:!!r}function R(r){return ie(r)?[r]:r}var se=(()=>{let t=class t{constructor(){this.permissionsSource=new d({}),this.permissions$=this.permissionsSource.asObservable()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),W=new E("USE_PERMISSIONS_STORE"),x=(()=>{let t=class t{constructor(e=!1,i){this.isolate=e,this.permissionsStore=i,this.permissionsSource=this.isolate?new d({}):this.permissionsStore.permissionsSource,this.permissions$=this.permissionsSource.asObservable()}flushPermissions(){this.permissionsSource.next({})}hasPermission(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),this.hasArrayPermission(e))}loadPermissions(e,i){let s=e.reduce((o,n)=>this.reducePermission(o,n,i),{});this.permissionsSource.next(s)}addPermission(e,i){if(Array.isArray(e)){let s=e.reduce((o,n)=>this.reducePermission(o,n,i),this.permissionsSource.value);this.permissionsSource.next(s)}else{let s=this.reducePermission(this.permissionsSource.value,e,i);this.permissionsSource.next(s)}}removePermission(e){let i=l({},this.permissionsSource.value);delete i[e],this.permissionsSource.next(i)}getPermission(e){return this.permissionsSource.value[e]}getPermissions(){return this.permissionsSource.value}reducePermission(e,i,s){return s&&u(s)?v(l({},e),{[i]:{name:i,validationFunction:s}}):v(l({},e),{[i]:{name:i}})}hasArrayPermission(e){let i=e.map(s=>{if(this.hasPermissionValidationFunction(s)){let o=this.permissionsSource.value[s].validationFunction,n=l({},this.permissionsSource.value);return h(null).pipe(S(()=>o(s,n)),j(a=>T(a)?h(a):a),F(()=>h(!1)))}return h(!!this.permissionsSource.value[s])});return g(i).pipe(I(),y(s=>s!==!1,!1),S(s=>s!==!1)).toPromise().then(s=>s)}hasPermissionValidationFunction(e){return!!this.permissionsSource.value[e]&&!!this.permissionsSource.value[e].validationFunction&&u(this.permissionsSource.value[e].validationFunction)}};t.\u0275fac=function(i){return new(i||t)(c(W),c(se))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),U=class{constructor(){this.rolesSource=new d({}),this.roles$=this.rolesSource.asObservable()}},H=new E("USE_ROLES_STORE"),D=(()=>{let t=class t{constructor(e=!1,i,s){this.isolate=e,this.rolesStore=i,this.permissionsService=s,this.rolesSource=this.isolate?new d({}):this.rolesStore.rolesSource,this.roles$=this.rolesSource.asObservable()}addRole(e,i){let s=v(l({},this.rolesSource.value),{[e]:{name:e,validationFunction:i}});this.rolesSource.next(s)}addRoleWithPermissions(e,i){this.permissionsService.addPermission(i),this.addRole(e,i)}addRoles(e){Object.keys(e).forEach((i,s)=>{this.addRole(i,e[i])})}addRolesWithPermissions(e){Object.keys(e).forEach((i,s)=>{this.addRoleWithPermissions(i,e[i])})}flushRoles(){this.rolesSource.next({})}flushRolesAndPermissions(){this.flushRoles(),this.permissionsService.flushPermissions()}removeRole(e){let i=l({},this.rolesSource.value);delete i[e],this.rolesSource.next(i)}getRoles(){return this.rolesSource.value}getRole(e){return this.rolesSource.value[e]}hasOnlyRoles(e){return!e||Array.isArray(e)&&e.length===0?Promise.resolve(!0):(e=R(e),Promise.all([this.hasRoleKey(e),this.hasRolePermission(this.rolesSource.value,e)]).then(([s,o])=>s||o))}hasRoleKey(e){let i=e.map(s=>{if(!!this.rolesSource.value[s]&&!!this.rolesSource.value[s].validationFunction&&u(this.rolesSource.value[s].validationFunction)&&!te(this.rolesSource.value[s].validationFunction)){let n=this.rolesSource.value[s].validationFunction,a=l({},this.rolesSource.value);return h(null).pipe(S(()=>n(s,a)),j(P=>T(P)?h(P):P),F(()=>h(!1)))}return h(!1)});return g(i).pipe(I(),y(s=>s!==!1,!1),S(s=>s!==!1)).toPromise().then(s=>s)}hasRolePermission(e,i){return g(i).pipe(m(s=>e[s]&&Array.isArray(e[s].validationFunction)?g(e[s].validationFunction).pipe(m(o=>this.permissionsService.hasPermission(o)),G(o=>o===!0)):h(!1)),y(s=>s===!0,!1)).toPromise()}};t.\u0275fac=function(i){return new(i||t)(c(H),c(U),c(x))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})(),pe=(()=>{let t=class t{constructor(){this.permissionsAuthorized=new V,this.permissionsUnauthorized=new V,this.firstMergeUnusedRun=1,this.permissionsService=p(x),this.configurationService=p($),this.rolesService=p(D),this.viewContainer=p(Q),this.changeDetector=p(q),this.templateRef=p(X)}ngOnInit(){this.viewContainer.clear(),this.initPermissionSubscription=this.validateExceptOnlyPermissions()}ngOnChanges(e){let i=e.ngxPermissionsOnly,s=e.ngxPermissionsExcept;if(i||s){if(i&&i.firstChange||s&&s.firstChange)return;b(this.permissionsService.permissions$,this.rolesService.roles$).pipe(M(this.firstMergeUnusedRun),L(1)).subscribe(()=>{if(O(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(O(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}}ngOnDestroy(){this.initPermissionSubscription&&this.initPermissionSubscription.unsubscribe()}validateExceptOnlyPermissions(){return b(this.permissionsService.permissions$,this.rolesService.roles$).pipe(M(this.firstMergeUnusedRun)).subscribe(()=>{if(O(this.ngxPermissionsExcept)){this.validateExceptAndOnlyPermissions();return}if(O(this.ngxPermissionsOnly)){this.validateOnlyPermissions();return}this.handleAuthorisedPermission(this.getAuthorisedTemplates())})}validateExceptAndOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsExcept),this.rolesService.hasOnlyRoles(this.ngxPermissionsExcept)]).then(([e,i])=>{if(e||i){this.handleUnauthorisedPermission(this.ngxPermissionsExceptElse||this.ngxPermissionsElse);return}if(this.ngxPermissionsOnly)throw!1;this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)}).catch(()=>{this.ngxPermissionsOnly?this.validateOnlyPermissions():this.handleAuthorisedPermission(this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef)})}validateOnlyPermissions(){Promise.all([this.permissionsService.hasPermission(this.ngxPermissionsOnly),this.rolesService.hasOnlyRoles(this.ngxPermissionsOnly)]).then(([e,i])=>{e||i?this.handleAuthorisedPermission(this.ngxPermissionsOnlyThen||this.ngxPermissionsThen||this.templateRef):this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)}).catch(()=>{this.handleUnauthorisedPermission(this.ngxPermissionsOnlyElse||this.ngxPermissionsElse)})}handleUnauthorisedPermission(e){if(!(T(this.currentAuthorizedState)&&!this.currentAuthorizedState)){if(this.currentAuthorizedState=!1,this.permissionsUnauthorized.emit(),this.getUnAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getUnAuthorizedStrategyInput());return}this.configurationService.onUnAuthorisedDefaultStrategy&&!this.elseBlockDefined()?this.applyStrategy(this.configurationService.onUnAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}handleAuthorisedPermission(e){if(!(T(this.currentAuthorizedState)&&this.currentAuthorizedState)){if(this.currentAuthorizedState=!0,this.permissionsAuthorized.emit(),this.getAuthorizedStrategyInput()){this.applyStrategyAccordingToStrategyType(this.getAuthorizedStrategyInput());return}this.configurationService.onAuthorisedDefaultStrategy&&!this.thenBlockDefined()?this.applyStrategy(this.configurationService.onAuthorisedDefaultStrategy):this.showTemplateBlockInView(e)}}applyStrategyAccordingToStrategyType(e){if(ie(e)){this.applyStrategy(e);return}if(u(e)){this.showTemplateBlockInView(this.templateRef),e(this.templateRef);return}}showTemplateBlockInView(e){this.viewContainer.clear(),e&&(this.viewContainer.createEmbeddedView(e),this.changeDetector.markForCheck())}getAuthorisedTemplates(){return this.ngxPermissionsOnlyThen||this.ngxPermissionsExceptThen||this.ngxPermissionsThen||this.templateRef}elseBlockDefined(){return!!this.ngxPermissionsExceptElse||!!this.ngxPermissionsElse}thenBlockDefined(){return!!this.ngxPermissionsExceptThen||!!this.ngxPermissionsThen}getAuthorizedStrategyInput(){return this.ngxPermissionsOnlyAuthorisedStrategy||this.ngxPermissionsExceptAuthorisedStrategy||this.ngxPermissionsAuthorisedStrategy}getUnAuthorizedStrategyInput(){return this.ngxPermissionsOnlyUnauthorisedStrategy||this.ngxPermissionsExceptUnauthorisedStrategy||this.ngxPermissionsUnauthorisedStrategy}applyStrategy(e){if(e===A.SHOW){this.showTemplateBlockInView(this.templateRef);return}if(e===A.REMOVE){this.viewContainer.clear();return}let i=this.configurationService.getStrategy(e);this.showTemplateBlockInView(this.templateRef),i(this.templateRef)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=J({type:t,selectors:[["","ngxPermissionsOnly",""],["","ngxPermissionsExcept",""]],inputs:{ngxPermissionsOnly:"ngxPermissionsOnly",ngxPermissionsOnlyThen:"ngxPermissionsOnlyThen",ngxPermissionsOnlyElse:"ngxPermissionsOnlyElse",ngxPermissionsExcept:"ngxPermissionsExcept",ngxPermissionsExceptElse:"ngxPermissionsExceptElse",ngxPermissionsExceptThen:"ngxPermissionsExceptThen",ngxPermissionsThen:"ngxPermissionsThen",ngxPermissionsElse:"ngxPermissionsElse",ngxPermissionsOnlyAuthorisedStrategy:"ngxPermissionsOnlyAuthorisedStrategy",ngxPermissionsOnlyUnauthorisedStrategy:"ngxPermissionsOnlyUnauthorisedStrategy",ngxPermissionsExceptUnauthorisedStrategy:"ngxPermissionsExceptUnauthorisedStrategy",ngxPermissionsExceptAuthorisedStrategy:"ngxPermissionsExceptAuthorisedStrategy",ngxPermissionsUnauthorisedStrategy:"ngxPermissionsUnauthorisedStrategy",ngxPermissionsAuthorisedStrategy:"ngxPermissionsAuthorisedStrategy"},outputs:{permissionsAuthorized:"permissionsAuthorized",permissionsUnauthorized:"permissionsUnauthorized"},features:[Y]});let r=t;return r})(),re="default";var _=(()=>{let t=class t{constructor(e,i,s){this.permissionsService=e,this.rolesService=i,this.router=s}canActivate(e,i){return this.hasPermissions(e,i)}canActivateChild(e,i){return this.hasPermissions(e,i)}canLoad(e){return this.hasPermissions(e)}canMatch(e){return this.hasPermissions(e)}hasPermissions(e,i){let s=e&&e.data?e.data.permissions:{},o=this.transformPermission(s,e,i);return this.isParameterAvailable(o.except)?this.passingExceptPermissionsValidation(o,e,i):this.isParameterAvailable(o.only)?this.passingOnlyPermissionsValidation(o,e,i):!0}transformPermission(e,i,s){let o=u(e.only)?e.only(i,s):R(e.only),n=u(e.except)?e.except(i,s):R(e.except),a=e.redirectTo;return{only:o,except:n,redirectTo:a}}isParameterAvailable(e){return!!e&&e.length>0}passingExceptPermissionsValidation(e,i,s){if(e.redirectTo&&(u(e.redirectTo)||k(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo))){let o="";return g(e.except).pipe(m(n=>z([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(C(a=>{a.every(w=>w===!1)||(o=n)}))),y(n=>n.some(a=>a===!0),!1),m(n=>o?(this.handleRedirectOfFailedPermission(e,o,i,s),h(!1)):!n&&e.only?this.onlyRedirectCheck(e,i,s):h(!n))).toPromise()}return Promise.all([this.permissionsService.hasPermission(e.except),this.rolesService.hasOnlyRoles(e.except)]).then(([o,n])=>o||n?(e.redirectTo&&this.redirectToAnotherRoute(e.redirectTo,i,s),!1):e.only?this.checkOnlyPermissions(e,i,s):!0)}redirectToAnotherRoute(e,i,s,o){let n=u(e)?e(o,i,s):e;if(this.isRedirectionWithParameters(n)){n.navigationCommands=this.transformNavigationCommands(n.navigationCommands,i,s),n.navigationExtras=this.transformNavigationExtras(n.navigationExtras,i,s),this.router.navigate(n.navigationCommands,n.navigationExtras);return}Array.isArray(n)?this.router.navigate(n):this.router.navigate([n])}isRedirectionWithParameters(e){return k(e)&&(!!e.navigationCommands||!!e.navigationExtras)}transformNavigationCommands(e,i,s){return u(e)?e(i,s):e}transformNavigationExtras(e,i,s){return u(e)?e(i,s):e}onlyRedirectCheck(e,i,s){let o="";return g(e.only).pipe(m(n=>z([this.permissionsService.hasPermission(n),this.rolesService.hasOnlyRoles(n)]).pipe(C(a=>{a.every(w=>w===!1)&&(o=n)}))),y(n=>u(e.redirectTo)?n.some(a=>a===!0):n.every(a=>a===!1),!1),m(n=>u(e.redirectTo)?n?h(!0):(this.handleRedirectOfFailedPermission(e,o,i,s),h(!1)):(o&&this.handleRedirectOfFailedPermission(e,o,i,s),h(!n)))).toPromise()}handleRedirectOfFailedPermission(e,i,s,o){this.isFailedPermissionPropertyOfRedirectTo(e,i)?this.redirectToAnotherRoute(e.redirectTo[i],s,o,i):u(e.redirectTo)?this.redirectToAnotherRoute(e.redirectTo,s,o,i):this.redirectToAnotherRoute(e.redirectTo[re],s,o,i)}isFailedPermissionPropertyOfRedirectTo(e,i){return!!e.redirectTo&&e.redirectTo[i]}checkOnlyPermissions(e,i,s){let o=l({},e);return Promise.all([this.permissionsService.hasPermission(o.only),this.rolesService.hasOnlyRoles(o.only)]).then(([n,a])=>n||a?!0:(o.redirectTo&&this.redirectToAnotherRoute(o.redirectTo,i,s),!1))}passingOnlyPermissionsValidation(e,i,s){return u(e.redirectTo)||k(e.redirectTo)&&!this.isRedirectionWithParameters(e.redirectTo)?this.onlyRedirectCheck(e,i,s):this.checkOnlyPermissions(e,i,s)}};t.\u0275fac=function(i){return new(i||t)(c(x),c(D),c(Z))},t.\u0275prov=f({token:t,factory:t.\u0275fac});let r=t;return r})();var ye=(()=>{let t=class t{static forRoot(e={}){return{ngModule:t,providers:[se,U,ee,x,_,D,$,{provide:W,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:B,useValue:e.configurationIsolate}]}}static forChild(e={}){return{ngModule:t,providers:[{provide:W,useValue:e.permissionsIsolate},{provide:H,useValue:e.rolesIsolate},{provide:B,useValue:e.configurationIsolate},$,x,D,_]}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=N({type:t}),t.\u0275inj=K({});let r=t;return r})();export{x as a,pe as b,ye as c};
@@ -1 +0,0 @@
1
- import{c as de}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-75KTCVZF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2NSPG6VQ.js";import{a as re}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-3C4XDMT2.js";import{a as ae,c as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.js";import{b as B,e as y}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import{d as le}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-EV36IP6L.js";import{c as G,h as Q,i as $,j as W,k as J,l as K,o as Z,p as ee,q as te,r as ne,u as ie}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import{c as oe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as O,$a as T,Aa as A,Ea as l,Fa as c,Fc as S,Gb as j,Hb as R,Hc as _,Jb as F,Kb as Y,Kc as E,Na as p,Ta as C,Wb as q,Ya as n,Za as o,Zb as U,_ as z,_a as m,ab as N,cb as k,da as x,ea as P,ec as H,gb as g,hc as X,ia as u,ib as f,ja as h,nb as w,ob as a,pb as v,rb as D,wb as V,ya as L}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var me=(()=>{let i=class i{constructor(t,e,s){this.route=t,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(t=>{this.code=t.code})}addChannelLazada(){let t={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",t).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};i.\u0275fac=function(e){return new(e||i)(c(S),c(y),c(_))},i.\u0275cmp=x({type:i,selectors:[["app-lazada"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),m(5,"i",5),n(6,"div",6),a(7,"Success !"),o()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),o(),n(11,"div"),a(12,"DEALPOS to manage your Lazada"),o(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),o()(),n(17,"button",9),g("click",function(){return s.addChannelLazada()}),m(18,"i",10),a(19," Add to my Channel"),o()()()()()()),e&2&&(l(16),v(s.code))}});let r=i;return r})();var pe=(()=>{let i=class i{constructor(){}getBrowserName(){let t=window.navigator.userAgent.toLowerCase();switch(!0){case(t.indexOf("edge")>-1||t.indexOf("edg")>-1):return"edge";case t.indexOf("opr")>-1:return"opera";case t.indexOf("chrome")>-1:return"chrome";case t.indexOf("trident")>-1:return"ie";case t.indexOf("firefox")>-1:return"firefox";case t.indexOf("safari")>-1:return"safari";default:return"other"}}};i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})();var ve=["subdomainEl"];function Ce(r,i){if(r&1){let d=k();T(0),n(1,"div",18)(2,"div",19)(3,"form")(4,"div",20)(5,"h2",21),a(6,"Sign in"),o(),n(7,"div",22)(8,"div",23)(9,"div",24)(10,"span",25),m(11,"i",26),o(),n(12,"input",27,28),g("ngModelChange",function(e){u(d);let s=f();return h(s.subdomain=e)}),o()()(),n(14,"select",29),g("ngModelChange",function(e){u(d);let s=f();return h(s.domain=e)}),n(15,"option",30),a(16,".dealpos.co.id"),o(),n(17,"option",31),a(18,".dealpos.net"),o(),n(19,"option",32),a(20,".dealpos.com"),o(),n(21,"option",33),a(22,".dealpos.app"),o()()()(),n(23,"div",34)(24,"button",35),g("click",function(){u(d);let e=f();return h(e.onNextState())}),a(25," Next "),o()()()()(),N()}if(r&2){let d=f();l(12),p("ngModel",d.subdomain),l(2),p("ngModel",d.domain)}}function we(r,i){r&1&&(n(0,"p"),a(1," Username is required "),o())}function ye(r,i){if(r&1&&(n(0,"div",59),C(1,we,2,0,"p",60),o()),r&2){f();let d=w(13);l(1),p("ngIf",d.errors.required)}}var Se=(r,i)=>({"fa-eye":r,"fa-eye-slash":i});function Me(r,i){if(r&1){let d=k();n(0,"i",61),g("click",function(){u(d);let e=f(2);return h(e.hideShowPassword())}),o()}if(r&2){let d=f(2);p("ngClass",V(1,Se,d.passwordIcon=="eye-off",d.passwordIcon=="eye"))}}function Oe(r,i){r&1&&(n(0,"p"),a(1," Password is required "),o())}function Pe(r,i){if(r&1&&(n(0,"div",59),C(1,Oe,2,0,"p",60),o()),r&2){f();let d=w(19);l(1),p("ngIf",d.errors.required)}}function ke(r,i){if(r&1){let d=k();n(0,"div",18)(1,"div",19)(2,"div",36)(3,"h2",21),a(4,"Sign in"),o(),n(5,"div",37),a(6," to "),n(7,"h6",38),a(8),o(),n(9,"i",39),g("click",function(){u(d);let e=f();return h(e.onEditDomain())}),o()()(),n(10,"form",40)(11,"div",41)(12,"input",42,43),g("ngModelChange",function(e){u(d);let s=f();return h(s.username=e)}),o(),n(14,"label",44),a(15,"Username"),o(),C(16,ye,2,1,"div",45),o(),n(17,"div",46)(18,"input",47,48),g("ngModelChange",function(e){u(d);let s=f();return h(s.password=e)}),o(),n(20,"label",49),a(21,"Password"),o(),C(22,Me,1,4,"i",50)(23,Pe,2,1,"div",45),o(),n(24,"div",51)(25,"a",52),a(26,"Forgot Password?"),o()(),n(27,"div",53)(28,"button",54),g("click",function(){u(d);let e=f();return h(e.onLogin())}),a(29," Log in "),o()(),n(30,"div",55),m(31,"hr"),n(32,"span",56),a(33,"or"),o(),m(34,"hr"),o(),n(35,"div")(36,"button",57),g("click",function(e){u(d);let s=f();return h(s.onLoginByGoogle(e))}),m(37,"i",58),a(38," Sign In with Google "),o()()()()()}if(r&2){let d=w(13),t=w(19),e=f();l(8),D(" (",e.subdomain,"",e.domain,") "),l(4),p("ngModel",e.username),l(4),p("ngIf",d.invalid&&(d.dirty||d.touched)),l(2),p("type",e.passwordType)("ngModel",e.password),l(4),p("ngIf",e.password!=""&&e.browser!="edge"),l(1),p("ngIf",t.invalid&&(t.dirty||t.touched)),l(2),p("href","https://"+e.subdomain+e.domain+"/ForgotPassword",L)}}var ge=(()=>{let i=class i{constructor(t,e,s,b,be,xe){this._router=t,this.elementRef=e,this.toastr=s,this.checkBrowser=b,this.authService=be,this.ngxPermission=xe,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="eye-off"}ngOnInit(){this.initLogin(),this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="#dfeffc",this.browser=this.checkBrowser.getBrowserName()}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let t=JSON.parse(localStorage.getItem("Authorization"));if(t){this.username=t?.username,this.subdomain=t?.Host?.split(".")[0];let e=t?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(oe.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let t=this.subdomain.indexOf(".dealpos");t!=-1&&(this.subdomain=this.subdomain.substring(0,t))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let t={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(t).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(t){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(t,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(t){this.ngxPermission.hasPermission([re.dashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):t?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="eye-off"?"eye":"eye-off"}ngOnDestroy(){this.elementRef.nativeElement.ownerDocument.body.style.backgroundColor="white"}};i.\u0275fac=function(e){return new(e||i)(c(_),c(A),c(B),c(pe),c(de),c(ae))},i.\u0275cmp=x({type:i,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&R(ve,5),e&2){let b;j(b=F())&&(s.subdomainEl=b.first)}},decls:30,vars:8,consts:[[1,"container"],[1,"row","mt-md-0","align-self-center"],[1,"col-12","col-md-7","text-center"],[1,"big-display","robotoslab","d-none","d-sm-block"],["ngSrc","https://res.cloudinary.com/pos/image/upload/v1687829600/APP/New_Omnichannel.png","alt","integration-image",1,"img-fluid",3,"width","height"],[1,"col-12","col-md-5","order-first","order-md-last","mt-12"],[1,"big-display","text-center","my-5","py-5","robotoslab","d-block","d-sm-none"],[4,"ngIf","ngIfElse"],["USR_PASS",""],[1,"col-12","d-block","d-md-none","text-center"],[1,"pt-8","me-3"],["target","_blank","href","https://www.dealpos.com"],["ngSrc","https://res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png","alt","dealpos-logo",1,"img-fluid",3,"width","height"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",1,"pt-8","font-italic"],[1,"mx-5","pb-5","mb-5","d-none","d-md-block"],[1,"row","justify-content-between","align-items-center"],[1,"col-auto","d-inline-flex"],[1,"col-auto"],[1,"card"],[1,"card-body","p-8"],[1,"card-title"],[1,"fw-normal","font-xl","robotoslab"],[1,"d-flex","align-items-center","mt-6"],[1,"mt-7","w-75","rounded-end-0"],[1,"input-group","mb-3"],["id","basic-addon1",1,"input-group-text","border-end-0","rounded-start"],[1,"fa-solid","fa-cloud"],["type","text","required","","name","subdomain","id","inputHost","placeholder","Store Address",1,"form-control","text-start","subdomain-input","border-start-0",2,"padding-left","0px",3,"ngModel","ngModelChange"],["subdomainEl",""],["name","domainOption",1,"form-select","form-control","border-start-0","mt-4","rounded-end","rounded-start-0","domain-option",3,"ngModel","ngModelChange"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100","mt-10"],["name","next","data-cy","next","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"card-title","d-flex","align-items-center"],[1,"pt-2","ms-2"],[1,"fw-bold","me-2","robotoslab","d-inline-block","text-primary"],[1,"fa-solid","fa-edit","link-primary","fs-5","pointer",3,"click"],[1,"mt-10"],[1,"form-label-group"],["autofocus","","type","text","name","Username","id","inputUsername","placeholder","Username","required","",1,"form-control","text-start",3,"ngModel","ngModelChange"],["usernameCtrl","ngModel"],["for","inputUsername",1,"text-start"],["class","text-danger",4,"ngIf"],[1,"form-label-group","mb-5","mb-sm-1"],["name","Password","id","inputPassword","placeholder","Password","required","",1,"form-control","text-start",3,"type","ngModel","ngModelChange"],["passwordCtrl","ngModel"],["for","inputPassword",1,"text-start"],["class","passwordIcon fas fa-lg",3,"ngClass","click",4,"ngIf"],[1,"text-end","mt-3"],[3,"href"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-primary","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-primary","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[1,"text-danger"],[4,"ngIf"],[1,"passwordIcon","fas","fa-lg",3,"ngClass","click"]],template:function(e,s){if(e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),a(4," DealPOS Omnichannel "),o(),m(5,"img",4),o(),n(6,"div",5)(7,"h1",6),a(8," DealPOS Omnichannel "),o(),C(9,Ce,26,2,"ng-container",7)(10,ke,39,9,"ng-template",null,8,Y),o(),n(12,"div",9)(13,"p",10),a(14,"Powered by :"),o(),n(15,"a",11),m(16,"img",12),o(),m(17,"br"),n(18,"a",13),a(19,"Version 3.5.0"),o()()()(),n(20,"footer",14)(21,"div",15)(22,"div",16)(23,"p",10),a(24,"Powered by :"),o(),n(25,"a",11),m(26,"img",12),o()(),n(27,"div",17)(28,"a",13),a(29,"Version 3.5.0"),o()()()()),e&2){let b=w(11);l(5),p("width",350)("height",273),l(4),p("ngIf",s.loginState=="FORM_DOMAIN")("ngIfElse",b),l(7),p("width",130)("height",73),l(10),p("width",130)("height",73)}},dependencies:[q,U,K,ee,te,G,Z,Q,$,ne,J,W,X],styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;-moz-transform:translateX(-50%) translateY(-50%);-webkit-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}"]});let r=i;return r})();var fe=(()=>{let i=class i{constructor(t,e,s){this.route=t,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(t=>{this.shopID=t.shop_id,this.code=t.code})}addShopee(){let t={ShopID:Number(this.shopID),Code:this.code},e="/api/ChannelAdd/ShopeeV2";this.http.post(e,t).subscribe(s=>{this.service.navigate(["/menu/channel"])})}};i.\u0275fac=function(e){return new(e||i)(c(S),c(y),c(_))},i.\u0275cmp=x({type:i,selectors:[["shopee-authorized"]],decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),m(5,"i",5),n(6,"div",6),a(7,"Success !"),o()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),o(),n(11,"div"),a(12,"DEALPOS to manage your Shopee"),o(),n(13,"div"),a(14," Your shopID is "),n(15,"span",8),a(16),o()(),n(17,"button",9),g("click",function(){return s.addShopee()}),m(18,"i",10),a(19," Add to my Channel"),o()()()()()()),e&2&&(l(16),v(s.shopID))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;-moz-transform:translateX(-50%) translateY(-50%);-webkit-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let r=i;return r})();var ue=(()=>{let i=class i{constructor(t,e,s){this.route=t,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(t=>{this.code=t.code,this.state=t.state})}addChannelTiktok(){let t={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",t).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};i.\u0275fac=function(e){return new(e||i)(c(S),c(y),c(_))},i.\u0275cmp=x({type:i,selectors:[["app-tiktok"]],decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),m(5,"i",5),n(6,"div",6),a(7,"Success !"),o()(),n(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),o(),n(11,"div"),a(12,"DEALPOS to manage your Tiktok"),o(),n(13,"div"),a(14," Your Code is "),n(15,"span",8),a(16),o()(),n(17,"div"),a(18," Your State is "),n(19,"span",8),a(20),o()(),n(21,"button",9),g("click",function(){return s.addChannelTiktok()}),m(22,"i",10),a(23," Add to my Channel"),o()()()()()()),e&2&&(l(16),v(s.code),l(4),v(s.state))},styles:[".container[_ngcontent-%COMP%]{position:absolute;max-width:100%}.card[_ngcontent-%COMP%]{margin-bottom:30px;padding-bottom:5px;padding-top:5px}.passwordIcon[_ngcontent-%COMP%]{top:1.8rem;right:.8rem;position:absolute;margin:0 auto!important;cursor:pointer}.big-display[_ngcontent-%COMP%]{font-size:2rem;font-weight:300;line-height:1.2}@media (min-width: 768px){.container[_ngcontent-%COMP%]{max-width:70%;top:50%;left:50%;-moz-transform:translateX(-50%) translateY(-50%);-webkit-transform:translateX(-50%) translateY(-50%);transform:translate(-50%) translateY(-50%)}.big-display[_ngcontent-%COMP%]{font-size:3rem}}footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:90%;left:3rem}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{color:#666}.font-xl[_ngcontent-%COMP%]{font-size:x-large}.font125rem[_ngcontent-%COMP%]{font-size:1.25rem}.robotoslab[_ngcontent-%COMP%]{font-family:Roboto Slab}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-primary)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.domain-option[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df;width:10rem}.subdomain-input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-color:#c8d3df}.form-select[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important;box-shadow:none!important}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let r=i;return r})();var Ee=[{path:"",component:ge,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:fe,data:{title:"Success"}},{path:"tiktok",component:ue,data:{title:"Success"}},{path:"lazada",component:me,data:{title:"Success"}}],he=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=P({type:i}),i.\u0275inj=O({imports:[E.forChild(Ee),E]});let r=i;return r})();var st=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=P({type:i}),i.\u0275inj=O({imports:[H,ie,he,le,se]});let r=i;return r})();export{st as LoginModule};