1"use strict";(self.webpackChunkcava=self.webpackChunkcava||[]).push([[2372],{2372:(_e,V,f)=>{f.d(V,{c:()=>Ci});var l=f(4557),B=f(9223),R=f(4394),t=f(4572),F=f(2122),y=f(8447),x=f(5710),k=f(6061),D=f(1698),b=f(9921);function T(a=0,i,e=k.b){let n=-1;return null!=i&&((0,b.m)(i)?e=i:n=i),new D.c(r=>{let c=function S(a){return a instanceof Date&&!isNaN(a)}(a)?+a-e.now():a;c<0&&(c=0);let d=0;return e.schedule(function(){r.closed||(r.next(d++),0<=n?this.schedule(void 0,n):r.complete())},c)})}var E=f(9150),te=f(7509),ie=f(1217);let ne;function oe(a){if(function Ue(){if(null==ne){const a=typeof document<"u"?document.head:null;ne=!(!a||!a.createShadowRoot&&!a.attachShadow)}return ne}()){const i=a.getRootNode?a.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function W(a){return a.composedPath?a.composedPath()[0]:a.target}function ge(a,i=0){return function We(a){return!isNaN(parseFloat(a))&&!isNaN(Number(a))}(a)?Number(a):2===arguments.length?i:0}function $(a){return a instanceof l.aKT?a.nativeElement:a}function G(a,i,e,n,r){const c=parseInt(l.xvI.major),d=parseInt(l.xvI.minor);return c>19||19===c&&d>0||0===c&&0===d?a.listen(i,e,n,r):(i.addEventListener(e,n,r),()=>{i.removeEventListener(e,n,r)})}var H=f(5424),He=f(7947),Ye=f(7610),Qe=f(2040),Ze=f(2867),fe=f(593);const Y=new WeakMap;let Ke=(()=>{class a{_appRef;_injector=(0,l.WQX)(l.zZn);_environmentInjector=(0,l.WQX)(l.uvJ);load(e){const n=this._appRef=this._appRef||this._injector.get(l.o8S);let r=Y.get(n);r||(r={loaders:new Set,refs:[]},Y.set(n,r),n.onDestroy(()=>{Y.get(n)?.refs.forEach(c=>c.destroy()),Y.delete(n)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push((0,l.a0P)(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Je=f(3016),qe=f(9899);let se,et=1;const Q={};function me(a){return a in Q&&(delete Q[a],!0)}const ve={setImmediate(a){const i=et++;return Q[i]=!0,se||(se=Promise.resolve()),se.then(()=>me(i)&&a()),i},clearImmediate(a){me(a)}},{setImmediate:tt,clearImmediate:Ot}=ve,Z={setImmediate(...a){const{delegate:i}=Z;return(i?.setImmediate||tt)(...a)},clearImmediate(a){const{delegate:i}=Z;return(i?.clearImmediate||Ot)(a)},delegate:void 0};var nt=f(8050);new class ot extends nt.q{flush(i){this._active=!0;const e=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let r;i=i||n.shift();do{if(r=i.execute(i.state,i.delay))break}while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,r){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw r}}}(class it extends qe.R{constructor(i,e){super(i,e),this.scheduler=i,this.work=e}requestAsyncId(i,e,n=0){return null!==n&&n>0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Z.setImmediate(i.flush.bind(i,void 0))))}recycleAsyncId(i,e,n=0){var r;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);const{actions:c}=i;null!=e&&(null===(r=c[c.length-1])||void 0===r?void 0:r.id)!==e&&(Z.clearImmediate(e),i._scheduled===e&&(i._scheduled=void 0))}});var rt=f(5351),at=f(7225),be=f(2483);function ye(a,i=k.E){return function we(a){return(0,rt.N)((i,e)=>{let n=!1,r=null,c=null,d=!1;const u=()=>{if(c?.unsubscribe(),c=null,n){n=!1;const m=r;r=null,e.next(m)}d&&e.complete()},g=()=>{c=null,d&&e.complete()};i.subscribe((0,be._)(e,m=>{n=!0,r=m,c||(0,at.Tg)(a(m)).subscribe(c=(0,be._)(e,u,g))},()=>{d=!0,(!n||!c||c.closed)&&e.complete()}))})}(()=>T(a,i))}var lt=f(1483),$t=f(4340);let re;try{re=typeof Intl<"u"&&Intl.v8BreakIterator}catch{re=!1}let xe=(()=>{class a{_platformId=(0,l.WQX)(l.Agw);isBrowser=this._platformId?(0,$t.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!re)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),pt=(()=>{class a{_ngZone=(0,l.WQX)(l.SKi);_platform=(0,l.WQX)(xe);_renderer=(0,l.WQX)(l._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new y.B;_scrolledCount=0;
1scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new D.c(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const r=e>0?this._scrolled.pipe(ye(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,Je.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){const r=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe((0,lt.p)(c=>!c||r.indexOf(c)>-1))}getAncestorScrollContainers(e){const n=[];return this.scrollContainers.forEach((r,c)=>{this._scrollableContainsElement(c,e)&&n.push(c)}),n}_scrollableContainsElement(e,n){let r=$(n),c=e.getElementRef().nativeElement;do{if(r==c)return!0}while(r=r.parentElement);return!1}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})(),ut=(()=>{class a{_platform=(0,l.WQX)(xe);_listeners;_viewportSize;_change=new y.B;_document=(0,l.WQX)(F.q,{optional:!0});constructor(){const e=(0,l.WQX)(l.SKi),n=(0,l.WQX)(l._9s).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){const r=c=>this._change.next(c);this._listeners=[n.listen("window","resize",r),n.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:n,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+n,height:r,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,n=this._getWindow(),r=e.documentElement,c=r.getBoundingClientRect();return{top:-c.top||e.body.scrollTop||n.scrollY||r.scrollTop||0,left:-c.left||e.body.scrollLeft||n.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(ye(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();var Ce=f(3996);const ae={};let _t=(()=>{class a{_appId=(0,l.WQX)(l.sZ2);getId(e){return"ng"!==this._appId&&(e+=this._appId),ae.hasOwnProperty(e)||(ae[e]=0),`${e}${ae[e]++}`}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();function De(a){const i=a.cloneNode(!0),e=i.querySelectorAll("[id]"),n=a.nodeName.toLowerCase();i.removeAttribute("id");for(let r=0;r<e.length;r++)e[r].removeAttribute("id");return"canvas"===n?Re(a,i):("input"===n||"select"===n||"textarea"===n)&&Te(a,i),Se("canvas",a,i,Re),Se("input, textarea, select",a,i,Te),i}function Se(a,i,e,n){const r=i.querySelectorAll(a);if(r.length){const c=e.querySelectorAll(a);for(let d=0;d<r.length;d++)n(r[d],c[d])}}let ft=0;function Te(a,i){"file"!==i.type&&(i.value=a.value),"radio"===i.type&&i.name&&(i.name=`mat-clone-${i.name}-${ft++}`)}function Re(a,i){const e=i.getContext("2d");if(e)try{e.drawImage(a,0,0)}catch{}}function le(a){const i=a.getBoundingClientRect();return{top:i.top,right:i.right,bottom:i.bottom,left:i.left,width:i.width,height:i.height,x:i.x,y:i.y}}function ce(a,i,e){const{top:n,bottom:r,left:c,right:d}=a;return e>=n&&e<=r&&i>=c&&i<=d}function A(a,i,e){a.top+=i,a.bottom=a.top+a.height,a.left+=e,a.right=a.left+a.width}
1function Ie(a,i,e,n){const{top:r,right:c,bottom:d,left:u,width:g,height:m}=a,C=g*i,L=m*i;return n>r-L&&n<d+L&&e>u-C&&e<c+C}class Fe{_document;positions=new Map;constructor(i){this._document=i}clear(){this.positions.clear()}cache(i){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),i.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:le(e)})})}handleScroll(i){const e=W(i),n=this.positions.get(e);if(!n)return null;const r=n.scrollPosition;let c,d;if(e===this._document){const m=this.getViewportScrollPosition();c=m.top,d=m.left}else c=e.scrollTop,d=e.scrollLeft;const u=r.top-c,g=r.left-d;return this.positions.forEach((m,C)=>{m.clientRect&&e!==C&&e.contains(C)&&A(m.clientRect,u,g)}),r.top=c,r.left=d,{top:u,left:g}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function Ee(a,i){const e=a.rootNodes;if(1===e.length&&e[0].nodeType===i.ELEMENT_NODE)return e[0];const n=i.createElement("div");return e.forEach(r=>n.appendChild(r)),n}function de(a,i,e){for(let n in i)if(i.hasOwnProperty(n)){const r=i[n];r?a.setProperty(n,r,e?.has(n)?"important":""):a.removeProperty(n)}return a}function N(a,i){const e=i?"":"none";de(a.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function ke(a,i,e){de(a.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function K(a,i){return i&&"none"!=i?a+" "+i:a}function Pe(a,i){a.style.width=`${i.width}px`,a.style.height=`${i.height}px`,a.style.transform=J(i.left,i.top)}function J(a,i){return`translate3d(${Math.round(a)}px, ${Math.round(i)}px, 0)`}function Me(a){const i=a.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(a)*i}function pe(a,i){return a.getPropertyValue(i).split(",").map(n=>n.trim())}const vt=new Set(["position"]);class bt{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(i,e,n,r,c,d,u,g,m,C){this._document=i,this._rootElement=e,this._direction=n,this._initialDomRect=r,this._previewTemplate=c,this._previewClass=d,this._pickupPositionOnPage=u,this._initialTransform=g,this._zIndex=m,this._renderer=C}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),Le(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(i){this._preview.style.transform=i}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(i){this._preview.classList.add(i)}getTransitionDuration(){return function mt(a){const i=getComputedStyle(a),e=pe(i,"transition-property"),n=e.find(u=>"transform"===u||"all"===u);if(!n)return 0;const r=e.indexOf(n),c=pe(i,"transition-duration"),d=pe(i,"transition-delay");return Me(c[r])+Me(d[r])}(this._preview)}addEventListener(i,e){return this._renderer.listen(this._preview,i,e)}_createPreview(){const i=this._previewTemplate,e=this._previewClass,n=i?i.template:null;let r;if(n&&i){const c=i.matchSize?this._initialDomRect:null,d=i.viewContainer.createEmbeddedView(n,i.context);d.detectChanges(),r=Ee(d,this._document),this._previewEmbeddedView=d,i.matchSize?Pe(r,c):r.style.transform=J(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=De(this._rootElement),Pe(r,this._initialDomRect),this._initialTransform&&(r.style.transform=this._initialTransform);return de(r.style,{"pointer-events":"none",margin:Le(r)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},vt),N(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("popover","manual"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(c=>r.classList.add(c)):r.classList.add(e)),r}}function Le(a){return"showPopover"in a}const wt={passive:!0},Oe={passive:!1},yt={passive:!1,capture:!0},Be=new Set(["position"]);
1class Ct{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=(0,l.vPA)(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new y.B;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=x.yU.EMPTY;_pointerUpSubscription=x.yU.EMPTY;_scrollSubscription=x.yU.EMPTY;_resizeSubscription=x.yU.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(i){i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(e=>N(e,i)))}_disabled=!1;beforeStarted=new y.B;started=new y.B;released=new y.B;ended=new y.B;entered=new y.B;exited=new y.B;dropped=new y.B;moved=this._moveEvents;data;constrainPosition;constructor(i,e,n,r,c,d,u){this._config=e,this._document=n,this._ngZone=r,this._viewportRuler=c,this._dragDropRegistry=d,this._renderer=u,this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new Fe(n),d.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>$(n)),this._handles.forEach(n=>N(n,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){const e=$(i);return e!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[G(this._renderer,e,"mousedown",this._pointerDown,Oe),G(this._renderer,e,"touchstart",this._pointerDown,wt),G(this._renderer,e,"dragstart",this._nativeDragStart,Oe)]),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?$(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),N(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),N(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){const i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){const i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}
1_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=i=>{if(this.beforeStarted.next(),this._handles.length){const e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,i)}else this.disabled||this._initializeDragSequence(this._rootElement,i)};_pointerMove=i=>{const e=this._getPointerPositionOnPage(i);if(!this._hasStartedDragging()){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const u=Date.now()>=this._dragStartTime+this._getDragStartDelay(i),g=this._dropContainer;if(!u)return void this._endDragSequence(i);(!g||!g.isDragging()&&!g.isReceiving())&&(i.cancelable&&i.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(i)))}return}i.cancelable&&i.preventDefault();const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const r=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,c=this._activeTransform;c.x=n.x-r.x+this._passiveTransform.x,c.y=n.y-r.y+this._passiveTransform.y,this._applyRootElementTransform(c.x,c.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:i,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})};_pointerUp=i=>{this._endDragSequence(i)};_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging()))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){U(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._getShadowRoot(),n=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=G(this._renderer,e,"selectstart",Dt,yt)}),n){const r=this._rootElement,c=r.parentNode,d=this._placeholder=this._createPlaceholderElement(),u=this._anchor=this._anchor||this._document.createComment("");c.insertBefore(u,r),this._initialTransform=r.style.transform||"",this._preview=new bt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(c,e)),ke(r,!1,Be),this._document.body.appendChild(c.replaceChild(d,r)),this.started.next({source:this,event:i}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();const n=this.isDragging(),r=U(e),c=!r&&0!==e.button,d=this._rootElement,u=W(e),g=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),m=r?function Xe(a){const i=a.touches&&a.touches[0]||a.changedTouches&&a.changedTouches[0];return!(!i||-1!==i.identifier||null!=i.radiusX&&1!==i.radiusX||null!=i.radiusY&&1!==i.radiusY)}(e):function je(a){return 0===a.buttons||0===a.detail}(e);if(u&&u.draggable&&"mousedown"===e.type&&e.preventDefault(),n||c||g||m)return;if(this._handles.length){const z=d.style;this._rootElementTapHighlight=z.webkitTapHighlightColor||"",z.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(z=>this._updateOnScroll(z)),this._boundaryElement&&(this._boundaryRect=le(this._boundaryElement));const C=this._previewTemplate;this._pickupPositionInElement=C&&C.template&&!C.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);const L=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:L.x,y:L.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){ke(this._rootElement,!0,Be),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),r=this._getPointerPositionOnPage(i),c=this._getDragDistance(r),d=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:c,dropPoint:r,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:d,distance:c,dropPoint:r,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,d,c,r,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:r}){let c=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!c&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(c=this._initialContainer),c&&c!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=c,this._dropContainer.enter(this,i,e,c===this._initialContainer&&c.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:c,currentIndex:c.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,r),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const i=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);const e=this._preview.getTransitionDuration();return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{const r=u=>{(!u||this._preview&&W(u)===this._preview.element&&"transform"===u.propertyName)&&(d(),n(),clearTimeout(c))},c=setTimeout(r,1.5*e),d=this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const i=this._placeholderTemplate,e=i?i.template:null;let n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=Ee(this._placeholderRef,this._document)):n=De(this._rootElement),n.style.pointerEvents="none",n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(i,e,n){const r=e===this._rootElement?null:e,c=r?r.getBoundingClientRect():i,d=U(n)?n.targetTouches[0]:n,u=this._getViewportScrollPosition();return{x:c.left-i.left+(d.pageX-c.left-u.left),y:c.top-i.top+(d.pageY-c.top-u.top)}}_getPointerPositionOnPage(i){const e=this._getViewportScrollPosition(),n=U(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,r=n.pageX-e.left,c=n.pageY-e.top;if(this._ownerSVGElement){const d=this._ownerSVGElement.getScreenCTM();if(d){const u=this._ownerSVGElement.createSVGPoint();return u.x=r,u.y=c,u.matrixTransform(d.inverse())}}return{x:r,y:c}}_getConstrainedPointerPosition(i){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:r}=this.constrainPosition?this.constrainPosition(i,this,this._initialDomRect,this._pickupPositionInElement):i;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===e)&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:c,y:d}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,u=this._boundaryRect,{width:g,height:m}=this._getPreviewRect(),C=u.top+d,L=u.bottom-(m-d);n=$e(n,u.left+c,u.right-(g-c)),r=$e(r,C,L)}return{x:n,y:r}}_updatePointerDirectionDelta(i){const{x:e,y:n}=i,r=this._pointerDirectionDelta,c=this._pointerPositionAtLastDirectionChange,d=Math.abs(e-c.x),u=
1Math.abs(n-c.y);return d>this._config.pointerDirectionChangeThreshold&&(r.x=e>c.x?1:-1,c.x=e),u>this._config.pointerDirectionChangeThreshold&&(r.y=n>c.y?1:-1,c.y=n),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,N(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){const n=1/this.scale,r=J(i*n,e*n),c=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=c.transform&&"none"!=c.transform?c.transform:""),c.transform=K(r,this._initialTransform)}_applyPreviewTransform(i,e){const n=this._previewTemplate?.template?void 0:this._initialTransform,r=J(i,e);this._preview.setTransform(K(r,n))}_getDragDistance(i){const e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(0===i&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===n.width&&0===n.height)return;const c=r.left-n.left,d=n.right-r.right,u=r.top-n.top,g=n.bottom-r.bottom;r.width>n.width?(c>0&&(i+=c),d>0&&(i-=d)):i=0,r.height>n.height?(u>0&&(e+=u),g>0&&(e-=g)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){const e=this.dragStartDelay;return"number"==typeof e?e:U(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){const e=this._parentPositions.handleScroll(i);if(e){const n=W(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&A(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=oe(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){const n=this._previewContainer||"global";if("parent"===n)return i;if("global"===n){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return $(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=i=>{if(this._handles.length){const e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&i.preventDefault()}else this.disabled||i.preventDefault()};_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}}function $e(a,i,e){return Math.max(i,Math.min(e,a))}function U(a){return"t"===a.type[0]}function Dt(a){a.preventDefault()}function he(a,i,e){const n=j(i,a.length-1),r=j(e,a.length-1);if(n===r)return;const c=a[n],d=r<n?-1:1;for(let u=n;u!==r;u+=d)a[u]=a[u+d];a[r]=c}function j(a,i){return Math.max(0,Math.min(i,a))}class Ve{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(i){this._dragDropRegistry=i}_previousSwap={drag:null,delta:0,overlaps:!1};start(i){this.withItems(i)}sort(i,e,n,r){const c=this._itemPositions,d=this._getItemIndexFromPointerPosition(i,e,n,r);if(-1===d&&c.length>0)return null;const u="horizontal"===this.orientation,g=c.findIndex(O=>O.drag===i),m=c[d],L=m.clientRect,z=g>d?1:-1,kt=this._getItemOffsetPx(c[g].clientRect,L,z),Di=this._getSiblingOffsetPx(g,c,z),Si=c.slice();
1return he(c,g,d),c.forEach((O,Ti)=>{if(Si[Ti]===O)return;const ai=O.drag===i,Pt=ai?kt:Di,li=ai?i.getPlaceholderElement():O.drag.getRootElement();O.offset+=Pt;const ci=Math.round(O.offset*(1/O.drag.scale));u?(li.style.transform=K(`translate3d(${ci}px, 0, 0)`,O.initialTransform),A(O.clientRect,0,Pt)):(li.style.transform=K(`translate3d(0, ${ci}px, 0)`,O.initialTransform),A(O.clientRect,Pt,0))}),this._previousSwap.overlaps=ce(L,e,n),this._previousSwap.drag=m.drag,this._previousSwap.delta=u?r.x:r.y,{previousIndex:g,currentIndex:d}}enter(i,e,n,r){const c=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r,d=this._activeDraggables,u=d.indexOf(i),g=i.getPlaceholderElement();let m=d[c];if(m===i&&(m=d[c+1]),!m&&(null==c||-1===c||c<d.length-1)&&this._shouldEnterAsFirstChild(e,n)&&(m=d[0]),u>-1&&d.splice(u,1),m&&!this._dragDropRegistry.isDragging(m)){const C=m.getRootElement();C.parentElement.insertBefore(g,C),d.splice(c,0,i)}else this._element.appendChild(g),d.push(i);g.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables?.forEach(i=>{const e=i.getRootElement();if(e){const n=this._itemPositions.find(r=>r.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(n=>n.drag===i)}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{A(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(i){this._element=i}_cacheItemPositions(){const i="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:le(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getItemOffsetPx(i,e,n){const r="horizontal"===this.orientation;let c=r?e.left-i.left:e.top-i.top;return-1===n&&(c+=r?e.width-i.width:e.height-i.height),c}_getSiblingOffsetPx(i,e,n){const r="horizontal"===this.orientation,c=e[i].clientRect,d=e[i+-1*n];let u=c[r?"width":"height"]*n;if(d){const g=r?"left":"top",m=r?"right":"bottom";-1===n?u-=d.clientRect[g]-c[m]:u+=c[g]-d.clientRect[m]}return u}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,r="horizontal"===this.orientation;if(n[0].drag!==this._activeDraggables[0]){const d=n[n.length-1].clientRect;return r?i>=d.right:e>=d.bottom}{const d=n[0].clientRect;return r?i<=d.left:e<=d.top}}_getItemIndexFromPointerPosition(i,e,n,r){const c="horizontal"===this.orientation,d=this._itemPositions.findIndex(({drag:u,clientRect:g})=>u!==i&&((!r||u!==this._previousSwap.drag||!this._previousSwap.overlaps||(c?r.x:r.y)!==this._previousSwap.delta)&&(c?e>=Math.floor(g.left)&&e<Math.floor(g.right):n>=Math.floor(g.top)&&n<Math.floor(g.bottom))));return-1!==d&&this._sortPredicate(d,i)?d:-1}}class St{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(i,e){this._document=i,this._dragDropRegistry=e}start(i){const e=this._element.childNodes;this._relatedNodes=[];for(let n=0;n<e.length;n++){const r=e[n];this._relatedNodes.push([r,r.nextSibling])}this.withItems(i)}sort(i,e,n,r){const c=this._getItemIndexFromPointerPosition(i,e,n),d=this._previousSwap;if(-1===c||this._activeItems[c]===i)return null;const u=this._activeItems[c];if(d.drag===u&&d.overlaps&&d.deltaX===r.x&&d.deltaY===r.y)return null;const g=this.getItemIndex(i),m=i.getPlaceholderElement(),C=u.getRootElement();c>g?C.after(m):C.before(m),he(this._activeItems,g,c);const L=this._getRootNode().elementFromPoint(e,n);return d.deltaX=r.x,d.deltaY=r.y,d.drag=u,d.overlaps=C===L||C.contains(L),{previousIndex:g,currentIndex:c}}enter(i,e,n,r){let c=null==r||r<0?this._getItemIndexFromPointerPosition(i,e,n):r;-1===c&&(c=this._getClosestItemIndexToPointer(i,e,n));const d=this._activeItems[c],u=this._activeItems.indexOf(i);u>-1&&this._activeItems.splice(u,1),d&&!this._dragDropRegistry.isDragging(d)?(this._activeItems.splice(c,0,i),d.getRootElement().before(i.getPlaceholderElement())):(this._activeItems.push(i),this._element.appendChild(i.getPlaceholderElement()))}withItems(i){this._activeItems=i.slice()}withSortPredicate(i){this._sortPredicate=i}reset(){const i=this._element,e=this._previousSwap;for(let n=this._relatedNodes.length-1;n>-1;n--){const[r,c]=this._relatedNodes[n];r.parentNode===i&&r.nextSibling!==c&&(null===c?i.appendChild(r):c.parentNode===i&&i.insertBefore(r,c))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(i){return this._activeItems.indexOf(i)}
1updateOnScroll(){this._activeItems.forEach(i=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(i){i!==this._element&&(this._element=i,this._rootNode=void 0)}_getItemIndexFromPointerPosition(i,e,n){const r=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(n)),c=r?this._activeItems.findIndex(d=>{const u=d.getRootElement();return r===u||u.contains(r)}):-1;return-1!==c&&this._sortPredicate(c,i)?c:-1}_getRootNode(){return this._rootNode||(this._rootNode=oe(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(i,e,n){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let r=1/0,c=-1;for(let d=0;d<this._activeItems.length;d++){const u=this._activeItems[d];if(u!==i){const{x:g,y:m}=u.getRootElement().getBoundingClientRect(),C=Math.hypot(e-g,n-m);C<r&&(r=C,c=d)}}return c}}var M=function(a){return a[a.NONE=0]="NONE",a[a.UP=1]="UP",a[a.DOWN=2]="DOWN",a}(M||{}),I=function(a){return a[a.NONE=0]="NONE",a[a.LEFT=1]="LEFT",a[a.RIGHT=2]="RIGHT",a}(I||{});class Tt{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis;autoScrollDisabled=!1;autoScrollStep=2;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new y.B;entered=new y.B;exited=new y.B;dropped=new y.B;sorted=new y.B;receivingStarted=new y.B;receivingStopped=new y.B;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=x.yU.EMPTY;_verticalScrollDirection=M.NONE;_horizontalScrollDirection=I.NONE;_scrollNode;_stopScrollTimers=new y.B;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(i,e,n,r,c){this._dragDropRegistry=e,this._ngZone=r,this._viewportRuler=c;const d=this.element=$(i);this._document=n,this.withOrientation("vertical").withElementContainer(d),e.registerDropContainer(this),this._parentPositions=new Fe(n)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,n,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,r,c,d,u,g={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:r,isPointerOverContainer:c,distance:d,dropPoint:u,event:g})}withItems(i){const e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===i.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._direction=i,this._sortStrategy instanceof Ve&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if("mixed"===i)this._sortStrategy=new St(this._document,this._dragDropRegistry);else{const e=new Ve(this._dragDropRegistry);e.direction=this._direction,e.orientation=i,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,n)=>this.sortPredicate(e,n,this)),this}withScrollableParents(i){const e=this._container;return this._scrollableElements=-1===i.indexOf(e)?[e,...i]:i.slice(),this}withElementContainer(i){if(i===this._container)return this;$(this.element);const n=this._scrollableElements.indexOf(this._container),r=this._scrollableElements.indexOf(i);return n>-1&&this._scrollableElements.splice(n,1),r>-1&&this._scrollableElements.splice(r,1),this._sortStrategy&&this._sortStrategy.withElementContainer(i),this._cachedShadowRoot=null,this._scrollableElements.unshift(i),this._container=i,this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,r){if(this.sortingDisabled||!this._domRect||!Ie(this._domRect,.05,e,n))return;const c=this._sortStrategy.sort(i,e,n,r);c&&this.sorted.next({previousIndex:c.previousIndex,currentIndex:c.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,r=M.NONE,c=I.NONE;if(this._parentPositions.positions.forEach((d,u)=>{u===this._document||!d.clientRect||n||Ie(d.clientRect,.05,i,e)&&([r,c]=function Rt(a,i,e,n,r){const c=Ne(i,r),d=Ae(i,n);let u=M.NONE,g=I.NONE;if(c){const m=a.scrollTop;c===M.UP?m>0&&(u=M.UP):a.scrollHeight-m>a.clientHeight&&(u=M.DOWN)}if(d){const m=a.scrollLeft;"rtl"===e?d===I.RIGHT?m<0&&(g=I.RIGHT):a.scrollWidth+m>a.clientWidth&&(g=I.LEFT):d===I.LEFT?m>0&&(g=I.LEFT):a.scrollWidth-m>a.clientWidth&&(g=I.RIGHT)}return[u,g]}(u,d.clientRect,this._direction,i,e),(r||c)&&(n=u))}),!r&&!c){const{width:d,height:u}=this._viewportRuler.getViewportSize(),g={width:d,height:u,top:0,right:d,bottom:u,left:0};r=Ne(g,e),c=Ae(g,i),n=window}
1n&&(r!==this._verticalScrollDirection||c!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=c,this._scrollNode=n,(r||c)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const i=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;const i=this._container.style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),function P(a=0,i=k.E){return a<0&&(a=0),T(a,a,i)}(0,E.X).pipe((0,H.Q)(this._stopScrollTimers)).subscribe(()=>{const i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===M.UP?i.scrollBy(0,-e):this._verticalScrollDirection===M.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===I.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===I.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return null!=this._domRect&&ce(this._domRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(r=>r._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._domRect||!ce(this._domRect,e,n)||!this.enterPredicate(i,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,n);return!!r&&(r===this._container||this._container.contains(r))}_startReceiving(i,e){const n=this._activeSiblings;!n.has(i)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const i=oe(this._container);this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}}function Ne(a,i){const{top:e,bottom:n,height:r}=a,c=.05*r;return i>=e-c&&i<=e+c?M.UP:i>=n-c&&i<=n+c?M.DOWN:M.NONE}function Ae(a,i){const{left:e,right:n,width:r}=a,c=.05*r;return i>=e-c&&i<=e+c?I.LEFT:i>=n-c&&i<=n+c?I.RIGHT:I.NONE}const X={capture:!0},q={passive:!1,capture:!0};let It=(()=>{class a{static \u0275fac=function(n){return new(n||a)};static \u0275cmp=l.VBU({type:a,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(n,r){},styles:["@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}\n"],encapsulation:2,changeDetection:0})}return a})(),ee=(()=>{class a{_ngZone=(0,l.WQX)(l.SKi);_document=(0,l.WQX)(F.q);_styleLoader=(0,l.WQX)(Ke);_renderer=(0,l.WQX)(l._9s).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=(0,l.vPA)([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new y.B;pointerUp=new y.B;scroll=new y.B;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=G(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,q)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._cleanupDocumentTouchmove?.()}startDragging(e,n){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(It),this._activeDragInstances.update(r=>[...r,e]),1===this._activeDragInstances().length)){const r=n.type.startsWith("touch"),c=u=>this.pointerUp.next(u),d=[["scroll",u=>this.scroll.next(u),X],["selectstart",this._preventDefaultWhileDragging,q]];r?d.push(["touchend",c,X],["touchcancel",c,X]):d.push(["mouseup",c,X]),r||d.push(["mousemove",u=>this.pointerMove.next(u),q]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=d.map(([u,g,m])=>G(this._renderer,this._document,u,g,m))})}}stopDragging(e){this._activeDragInstances.update(n=>{const r=n.indexOf(e);return r>-1?(n.splice(r,1),[...n]):n}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){const n=[this.scroll];return e&&e!==this._document&&n.push(new D.c(r=>this._ngZone.runOutsideAngular(()=>{const c=G(this._renderer,e,"scroll",d=>{this._activeDragInstances().length&&r.next(d)},X);return()=>{c()}}))),(0,te.h)(...n)}
1registerDirectiveNode(e,n){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,n)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const Ft={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let o=(()=>{class a{_document=(0,l.WQX)(F.q);_ngZone=(0,l.WQX)(l.SKi);_viewportRuler=(0,l.WQX)(ut);_dragDropRegistry=(0,l.WQX)(ee);_renderer=(0,l.WQX)(l._9s).createRenderer(null,null);constructor(){}createDrag(e,n=Ft){return new Ct(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Tt(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||a)};static \u0275prov=l.jDH({token:a,factory:a.\u0275fac,providedIn:"root"})}return a})();const _=new l.nKC("CDK_DRAG_PARENT"),p=new l.nKC("CdkDragHandle"),v=new l.nKC("CDK_DRAG_CONFIG"),w=new l.nKC("CdkDropList");let ue=(()=>{class a{element=(0,l.WQX)(l.aKT);dropContainer=(0,l.WQX)(w,{optional:!0,skipSelf:!0});_ngZone=(0,l.WQX)(l.SKi);_viewContainerRef=(0,l.WQX)(l.c1b);_dir=(0,l.WQX)(Ce.D,{optional:!0});_changeDetectorRef=(0,l.WQX)(l.gRc);_selfHandle=(0,l.WQX)(p,{optional:!0,self:!0});_parentDrag=(0,l.WQX)(_,{optional:!0,skipSelf:!0});_dragDropRegistry=(0,l.WQX)(ee);_destroyed=new y.B;_handles=new ie.t([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!(!this.dropContainer||!this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new l.bkB;released=new l.bkB;ended=new l.bkB;entered=new l.bkB;exited=new l.bkB;dropped=new l.bkB;moved=new D.c(e=>{const n=this._dragRef.moved.pipe((0,He.T)(r=>({source:this,pointerPosition:r.pointerPosition,event:r.event,delta:r.delta,distance:r.distance}))).subscribe(e);return()=>{n.unsubscribe()}});_injector=(0,l.WQX)(l.zZn);constructor(){const e=this.dropContainer,n=(0,l.WQX)(v,{optional:!0}),r=(0,l.WQX)(o);this._dragRef=r.createDrag(this.element,{dragStartThreshold:n&&null!=n.dragStartThreshold?n.dragStartThreshold:5,pointerDirectionChangeThreshold:n&&null!=n.pointerDirectionChangeThreshold?n.pointerDirectionChangeThreshold:5,zIndex:n?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),n&&this._assignDefaults(n),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this),e._dropListRef.beforeStarted.pipe((0,H.Q)(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){(0,l.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){const n=e.rootElementSelector,r=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,r&&!r.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){const n=this._handles.getValue();n.push(e),this._handles.next(n)}_removeHandle(e){const n=this._handles.getValue(),r=n.indexOf(e);r>-1&&(n.splice(r,1),this._handles.next(n))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const e=this.element.nativeElement;let n=e;this.rootElementSelector&&(n=void 0!==e.closest?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){const e=this.boundaryElement;return e?"string"==typeof e?this.element.nativeElement.closest(e):$(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const n=this._dir,r=this.dragStartDelay,c=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,d=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay="object"==typeof r&&r?r:ge(r),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(c).withPreviewTemplate(d).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe((0,Ye.s)(1)).subscribe(()=>{if(this._parentDrag)return void e.withParent(this._parentDrag._dragRef);let n=this.element.nativeElement.parentElement;for(;n;){const r=this._dragDropRegistry.getDragDirectiveForNode(n);if(r){e.withParent(r._dragRef);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>
1{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){const{lockAxis:n,dragStartDelay:r,constrainPosition:c,previewClass:d,boundaryElement:u,draggingDisabled:g,rootElementSelector:m,previewContainer:C}=e;this.disabled=g??!1,this.dragStartDelay=r||0,n&&(this.lockAxis=n),c&&(this.constrainPosition=c),d&&(this.previewClass=d),u&&(this.boundaryElement=u),m&&(this.rootElementSelector=m),C&&(this.previewContainer=C)}_setupHandlesListener(){this._handles.pipe((0,Qe.M)(e=>{const n=e.map(r=>r.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),(0,Ze.n)(e=>(0,te.h)(...e.map(n=>n._stateChanges.pipe((0,fe.Z)(n))))),(0,H.Q)(this._destroyed)).subscribe(e=>{const n=this._dragRef,r=e.element.nativeElement;e.disabled?n.disableHandle(r):n.enableHandle(r)})}static \u0275fac=function(n){return new(n||a)};static \u0275dir=l.FsC({type:a,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,r){2&n&&l.AVh("cdk-drag-disabled",r.disabled)("cdk-drag-dragging",r._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",l.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",l.Udg]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[l.Jv_([{provide:_,useExisting:a}]),l.OA$]})}return a})();const Et=new l.nKC("CdkDropListGroup");let ni=(()=>{class a{_items=new Set;disabled=!1;ngOnDestroy(){this._items.clear()}static \u0275fac=function(n){return new(n||a)};static \u0275dir=l.FsC({type:a,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:[2,"cdkDropListGroupDisabled","disabled",l.L39]},exportAs:["cdkDropListGroup"],features:[l.Jv_([{provide:Et,useExisting:a}])]})}return a})(),oi=(()=>{class a{element=(0,l.WQX)(l.aKT);_changeDetectorRef=(0,l.WQX)(l.gRc);_scrollDispatcher=(0,l.WQX)(pt);_dir=(0,l.WQX)(Ce.D,{optional:!0});_group=(0,l.WQX)(Et,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new y.B;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=(0,l.WQX)(_t).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;dropped=new l.bkB;entered=new l.bkB;exited=new l.bkB;sorted=new l.bkB;_unsortedItems=new Set;constructor(){const e=(0,l.WQX)(o),n=(0,l.WQX)(v,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,n&&this._assignDefaults(n),this._dropListRef.enterPredicate=(r,c)=>this.enterPredicate(r.data,c.data),this._dropListRef.sortPredicate=(r,c,d)=>this.sortPredicate(r,c.data,d.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),a._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){const n=this._latestSortedRefs.indexOf(e._dragRef);n>-1&&(this._latestSortedRefs.splice(n,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const e=a._dropLists.indexOf(this);e>-1&&a._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe((0,fe.Z)(this._dir.value),(0,H.Q)(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{const n=function gt(a){return Array.isArray(a)?a:[a]}(this.connectedTo).map(r=>"string"==typeof r?a._dropLists.find(d=>d.id===r):r);
1if(this._group&&this._group._items.forEach(r=>{-1===n.indexOf(r)&&n.push(r)}),!this._scrollableParentsResolved){const r=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(c=>c.getElementRef().nativeElement);this._dropListRef.withScrollableParents(r),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){const r=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(r)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=ge(this.autoScrollStep,2),e.connectedTo(n.filter(r=>r&&r!==this).map(r=>r._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),(0,te.h)(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){const{lockAxis:n,draggingDisabled:r,sortingDisabled:c,listAutoScrollDisabled:d,listOrientation:u}=e;this.disabled=r??!1,this.sortingDisabled=c??!1,this.autoScrollDisabled=d??!1,this.orientation=u||"vertical",n&&(this.lockAxis=n)}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(n){return new(n||a)};static \u0275dir=l.FsC({type:a,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(n,r){2&n&&(l.BMQ("id",r.id),l.AVh("cdk-drop-list-disabled",r.disabled)("cdk-drop-list-dragging",r._dropListRef.isDragging())("cdk-drop-list-receiving",r._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",l.L39],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",l.L39],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",l.L39],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[l.Jv_([{provide:Et,useValue:void 0},{provide:w,useExisting:a}])]})}return a})();const hi=new l.nKC("CdkDragPlaceholder");let si=(()=>{class a{templateRef=(0,l.WQX)(l.C4Q);_drag=(0,l.WQX)(_,{optional:!0});data;constructor(){this._drag?._setPlaceholderTemplate(this)}ngOnDestroy(){this._drag?._resetPlaceholderTemplate(this)}static \u0275fac=function(n){return new(n||a)};static \u0275dir=l.FsC({type:a,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"},features:[l.Jv_([{provide:hi,useExisting:a}])]})}return a})();var ui=f(9202),_i=f(3266);const gi=(a,i)=>[a,i],ri=a=>({limit:a}),fi=a=>({"prod-main-image":a});function mi(a,i){1&a&&(l.j41(0,"p",5),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&a&&(l.R7$(),l.SpI("* ",l.bMT(2,1,"product.drag_drop_photos"),""))}function vi(a,i){if(1&a&&(l.j41(0,"div",2)(1,"p",4),l.EFF(2),l.nI1(3,"translate"),l.k0s(),l.DNE(4,mi,3,3,"p",5),l.k0s()),2&a){const e=l.XpG();
1l.R7$(2),l.SpI("* ",l.i5U(3,2,"product.limit_photos",l.eq3(5,ri,e.limitImages)),"."),l.R7$(2),l.vxM(e.allFiles.length>1?4:-1)}}function bi(a,i){1&a&&(l.j41(0,"div",13),l.EFF(1),l.nI1(2,"translate"),l.k0s()),2&a&&(l.R7$(),l.JRh(l.bMT(2,1,"product.main_photo")))}function wi(a,i){1&a&&l.nrm(0,"div",15)}function yi(a,i){if(1&a){const e=l.RV6();l.j41(0,"div",9),l.bIt("cdkDragReleased",function(){l.eBV(e);const r=l.XpG(2);return l.Njj(r.dragEnded())}),l.j41(1,"div",10),l.nrm(2,"img",11),l.j41(3,"fa-icon",12),l.bIt("click",function(){const r=l.eBV(e).$implicit,c=l.XpG(2);return l.Njj(c.deleteFromFiles(r.name))}),l.k0s(),l.DNE(4,bi,3,3,"div",13),l.k0s(),l.DNE(5,wi,1,0,"div",14),l.k0s()}if(2&a){const e=i.$implicit,n=i.$index,r=l.XpG(2);l.Y8G("ngClass",l.eq3(5,fi,0===n)),l.R7$(2),l.Y8G("src",e.link?e.link:e.objectUrl,l.B4B)("title",e.name),l.R7$(),l.Y8G("icon",r.faCircleXmark),l.R7$(),l.vxM(0===n?4:-1)}}function xi(a,i){if(1&a){const e=l.RV6();l.j41(0,"div",3)(1,"div",6)(2,"div",7),l.bIt("cdkDropListDropped",function(r){l.eBV(e);const c=l.XpG();return l.Njj(c.dropItem(r))}),l.Z7z(3,yi,6,7,"div",8,l.fX1),l.k0s()()()}if(2&a){const e=l.XpG();l.R7$(2),l.Y8G("cdkDropListData",e.allFiles),l.R7$(),l.Dyx(e.allFiles)}}let Ci=(()=>{class a{constructor(){this.oldFiles=[],this.multiple=!1,this.forProduct=!1,this.acceptFiles="image/*",this.useTempFiles=!1,this.uploadedFiles=new l.bkB,this.removeOldFile=new l.bkB,this.removeFile=new l.bkB,this.reorderFiles=new l.bkB,this.limitImages=10,this.mediaFilesTemp=[],this.allFiles=[],this.faCircleXmark=_i.bnw}ngOnInit(){this.multiple||(this.limitImages=1)}ngOnChanges(e){if(e.oldFiles){const n=this.allFiles.filter(r=>!r.link);this.allFiles=this.oldFiles.map(r=>({name:r.keyName,identifier:null,link:r.link,objectUrl:null})),this.allFiles.push(...n)}}deleteFromFiles(e){const n=e&&"object"==typeof e?e.name||e.file&&e.file.name:e,r=this.allFiles.findIndex(d=>d.name===n);if(-1===r)return;const c=this.allFiles[r];if(c.link){const d=this.oldFiles.findIndex(u=>u.keyName===n);d>-1&&(this.oldFiles.splice(d,1),this.oldFiles=[...this.oldFiles],this.removeOldFile.emit(this.oldFiles))}else{const d=this.mediaFiles.findIndex(g=>g.name===n||g===c.objectUrl);d>-1&&(this.mediaFiles.splice(d,1),this.mediaFiles=[...this.mediaFiles]);const u=this.mediaFilesTemp.findIndex(g=>g.name===n);u>-1&&this.mediaFilesTemp.splice(u,1),this.forProduct&&this.removeFile.emit(n)}this.allFiles.splice(r,1),this.forProduct||this.emitFiles(this.mediaFiles)}onFileChange(e){const n=e.files.length;let r=0;if(this.forProduct)for(const c of e.files){const d=new FileReader;d.onload=u=>{if(this.mediaFiles.length+this.oldFiles.length>=this.limitImages)return;const g=u.target.result;this.mediaFiles.push(g),this.allFiles.push({name:c.name,objectUrl:g,identifier:null,link:null,file:c}),this.mediaFilesTemp.push({name:c.name,url:g}),r++,r===n&&(this.mediaFiles=[...this.mediaFiles],this.emitFiles(this.allFiles))},d.readAsDataURL(c)}else this.emitFiles(e.files)}emitFiles(e){this.uploadedFiles.emit(e)}clearFiles(){this.mediaFiles=[],this.oldFiles=[],this.allFiles=[]}dropItem(e){he(e.container.data,e.previousIndex,e.currentIndex)}dragEnded(){setTimeout(()=>{this.reorderFiles.emit(this.allFiles)})}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=l.VBU({type:a,selectors:[["app-add-files"]],inputs:{mediaFiles:"mediaFiles",oldFiles:"oldFiles",multiple:"multiple",forProduct:"forProduct",acceptFiles:"acceptFiles",useTempFiles:"useTempFiles"},outputs:{uploadedFiles:"uploadedFiles",removeOldFile:"removeOldFile",removeFile:"removeFile",reorderFiles:"reorderFiles"},features:[l.OA$],decls:6,vars:20,consts:[[1,"cv-uploadFile",3,"ngClass"],["showCancelButton","false","showUploadButton","false","maxFileSize","4000000","invalidFileLimitMessageDetail","","chooseIcon","",3,"onRemove","onSelect","files","multiple","fileLimit","invalidFileLimitMessageSummary","chooseLabel","disabled","accept"],[1,"alert","alert-info","my-4"],[1,"chosen-files-container","mt-2"],[1,"d-block","mb-2"],[1,"d-block"],["cdkDropListGroup","",1,"users-container"],["cdkDropList","","cdkDropListOrientation","mixed",1,"chosen-images-list","d-flex",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","","cdkDragPreviewContainer","parent",1,"chosen-image-box","cv-box-shadow",3,"ngClass"],["cdkDrag","","cdkDragPreviewContainer","parent",1,"chosen-image-box","cv-box-shadow",3,"cdkDragReleased","
1ngClass"],[1,"position-relative"],["alt","",3,"src","title"],[1,"position-absolute",3,"click","icon"],[1,"prod-main-image-title"],["class","cdk-drop-placeholder",4,"cdkDragPlaceholder"],[1,"cdk-drop-placeholder"]],template:function(n,r){1&n&&(l.j41(0,"div",0)(1,"p-fileupload",1),l.nI1(2,"translate"),l.nI1(3,"translate"),l.bIt("onRemove",function(d){return r.deleteFromFiles(d)})("onSelect",function(d){return r.onFileChange(d)}),l.k0s(),l.DNE(4,vi,5,7,"div",2)(5,xi,5,1,"div",3),l.k0s()),2&n&&(l.Y8G("ngClass",l.l_i(15,gi,r.multiple?"cv-grid":"cv-flex",r.forProduct?"files-for-product":"")),l.R7$(),l.FS9("invalidFileLimitMessageSummary",l.i5U(2,10,"product.limit_photos",l.eq3(18,ri,r.limitImages))),l.FS9("chooseLabel",l.bMT(3,13,"global.form.add_image")),l.Y8G("files",r.mediaFiles)("multiple",r.multiple)("fileLimit",r.limitImages-r.oldFiles.length)("disabled",r.oldFiles.length+r.mediaFiles.length>=r.limitImages)("accept",r.acceptFiles),l.R7$(3),l.vxM(r.forProduct?4:-1),l.R7$(),l.vxM(null!=r.allFiles&&r.allFiles.length&&r.forProduct?5:-1))},dependencies:[t.YU,R.eB,R.ef,B.h,B.D9,ue,oi,ni,si,ui.aY],styles:[".cv-uploadFile.cv-flex .chosen-files-container{display:flex;justify-content:center;align-items:center}@media screen and (min-width: 600px){.cv-uploadFile.cv-grid .p-fileupload{display:grid;grid-template-columns:130px auto;align-items:start}}.cv-uploadFile.cv-flex .p-fileupload{display:flex;justify-content:center;align-items:center}.cv-uploadFile .p-fileupload{border:none}.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button{border:none;margin:0;height:94px;padding-top:68px;background:url(/assets/img/add-image-icon.svg) no-repeat center top;color:#f56b2a;font-size:12px;font-family:Poppins-Regular;padding-left:0;padding-right:0}.cv-uploadFile .p-fileupload .p-fileupload-file-list{flex-direction:row;flex-wrap:wrap;border:none!important}@media screen and (max-width: 599px){.cv-uploadFile .p-fileupload .p-fileupload-file-list{padding:0;margin-top:15px}}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file{position:relative;padding-bottom:0}@media screen and (max-width: 599px){.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file{padding:0}}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file img{width:100px;border-radius:7px;height:100px;margin:4px}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-info{display:none}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-actions{position:absolute;top:0;right:0}@media screen and (max-width: 599px){.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-actions{top:-6px;right:-14px}}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-actions button{border-radius:50%;background-color:red;border:none;width:24px;height:24px;font-size:12px;text-align:center;color:#fff;position:absolute;right:10px;top:10px}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-actions button span{display:flex;justify-content:center;align-items:center}.cv-uploadFile .p-fileupload .p-fileupload-file-list .p-fileupload-file .p-fileupload-file-actions button span:before{font-size:9px}.cv-uploadFile .cv-images-upload img{width:100px;border-radius:7px;height:100px;margin:4px}.cv-uploadFile .cv-images-upload i{border-radius:50%;background-color:red;border:none;width:18px;height:18px;top:0;right:0;display:flex;align-items:center;font-size:12px;justify-content:center;text-align:center;color:#fff;cursor:pointer}.cv-uploadFile .chosen-files-container{border-radius:8px;display:flex;flex-direction:row;flex-wrap:wrap;border:none!important}@media screen and (max-width: 599px){.cv-uploadFile .chosen-files-container{padding:0;margin-top:15px}}.cv-uploadFile .chosen-files-container .chosen-images-list{gap:15px;flex-wrap:wrap}.cv-uploadFile .chosen-files-container .chosen-image-box{cursor:grabbing;padding-bottom:0}@media screen and (max-width: 599px){.cv-uploadFile .chosen-files-container .chosen-image-box{padding:0}}.cv-uploadFile .chosen-files-container .chosen-image-box img{width:100px;border-radius:7px;height:100px;margin:4px}.cv-uploadFile .chosen-files-container .chosen-image-box fa-icon{font-size:20px;color:red;right:0;top:-14px;cursor:pointer}.cv-uploadFile .chosen-files-container .chosen-image-box.prod-main-image{border:1px solid #F56B2A}.cv-uploadFile .chosen-files-container .chosen-image-box.prod-main-image .prod-main-image-title{position:absolute;bottom:0;width:100%;background-color:#f68835e8;text-align:center;color:#fff;font-size:12px;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.cv-uploadFile .p-fileupload{border:none;display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap;margin-top:15px}.cv-uploadFile .p-fileupload .p-fileupload-header{text-align:center;max-width:130px;height:100px;background-color:transparent;display:inline-block;border:none;padding:4px;margin-top:16px;border-radius:9.45px;box-shadow:2px 3px 3px #2120201a;-webkit-box-shadow:2px 3px 3px rgba(33,32,32,.1019607843);-moz-box-shadow:2px 3px 3px rgba(33,32,32,.1019607843)}.cv-uploadFile .p-fileupload .p-fileupload-header:focus-visible{outline:none}.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button{border:none;margin:0;height:94px;padding-top:68px;background:url(/assets/img/add-image-icon.svg) no-repeat center top;color:#f56b2a;font-size:12px;font-family:Poppins-Regular;padding-left:0;padding-right:0}.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button:focus-visible,.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button.ui-state-focus{outline:none;box-shadow:none}.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button .ui-button-text{padding:4px}.cv-uploadFile .p-fileupload .p-fileupload-header .p-fileupload-choose-button plusicon{display:none}.cv-uploadFile .p-fileupload .p-fileupload-content{display:inline-block;border:none;padding:0;background-color:transparent}.cv-uploadFile .p-fileupload .p-fileupload-content p-progressbar{display:none}@media screen and (min-width: 600px){.cv-uploadFile .p-fileupload{flex-wrap:wrap}}.cv-uploadFile.files-for-product .p-fileupload .p-fileupload-content{display:none}.cv-uploadFile .cv-add-image-container h6{font-size:14px}.cv-uploadFile .cv-add-image-container .add-image p{color:#f56b2a;font-size:12px}.cdk-drop-placeholder{width:100px;height:100px;background-color:#e5e5e5;border-radius:6px;border:1px dashed}.cdk-drag-preview .fas.fa-times{display:none!important}.cdk-drop-list-dragging{cursor:grabbing}\n"],encapsulation:2})}}return a})()},7509:(_e,V,f)=>{f.d(V,{h:()=>y});var l=f(1890),B=f(7225),R=f(6564),t=f(4327),F=f(1787);function y(...x){const k=(0,t.lI)(x),D=(0,t.R0)(x,1/0),b=x;return b.length?1===b.length?(0,B.Tg)(b[0]):(0,l.U)(D)((0,F.H)(b,k)):R.w}},9150:(_e,V,f)=>{f.d(V,{X:()=>x});var l=f(9899),B=f(5710);
1const R={schedule(D){let b=requestAnimationFrame,S=cancelAnimationFrame;const{delegate:T}=R;T&&(b=T.requestAnimationFrame,S=T.cancelAnimationFrame);const P=b(E=>{S=void 0,D(E)});return new B.yU(()=>S?.(P))},requestAnimationFrame(...D){const{delegate:b}=R;return(b?.requestAnimationFrame||requestAnimationFrame)(...D)},cancelAnimationFrame(...D){const{delegate:b}=R;return(b?.cancelAnimationFrame||cancelAnimationFrame)(...D)},delegate:void 0};var F=f(8050);const x=new class y extends F.q{flush(b){let S;this._active=!0,b?S=b.id:(S=this._scheduled,this._scheduled=void 0);const{actions:T}=this;let P;b=b||T.shift();do{if(P=b.execute(b.state,b.delay))break}while((b=T[0])&&b.id===S&&T.shift());if(this._active=!1,P){for(;(b=T[0])&&b.id===S&&T.shift();)b.unsubscribe();throw P}}}(class t extends l.R{constructor(b,S){super(b,S),this.scheduler=b,this.work=S}requestAsyncId(b,S,T=0){return null!==T&&T>0?super.requestAsyncId(b,S,T):(b.actions.push(this),b._scheduled||(b._scheduled=R.requestAnimationFrame(()=>b.flush(void 0))))}recycleAsyncId(b,S,T=0){var P;if(null!=T?T>0:this.delay>0)return super.recycleAsyncId(b,S,T);const{actions:E}=b;null!=S&&S===b._scheduled&&(null===(P=E[E.length-1])||void 0===P?void 0:P.id)!==S&&(R.cancelAnimationFrame(S),b._scheduled=void 0)}})},4394:(_e,V,f)=>{f.d(V,{ef:()=>ee,eB:()=>Ft});var l=f(4572),B=f(4340),R=f(1510),t=f(4557),F=f(7447),y=f(187),x=f(3828),k=f(1920),D=f(7280),b=f(883),S=f(7727);let T=(()=>{class o extends S.h_{pathId;ngOnInit(){this.pathId="url(#"+(0,y.bu)()+")"}static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275cmp=t.VBU({type:o,selectors:[["UploadIcon"]],features:[t.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(p,h){1&p&&(t.qSk(),t.j41(0,"svg",0)(1,"g"),t.nrm(2,"path",1),t.k0s(),t.j41(3,"defs")(4,"clipPath",2),t.nrm(5,"rect",3),t.k0s()()()),2&p&&(t.HbH(h.getClassNames()),t.BMQ("aria-label",h.ariaLabel)("aria-hidden",h.ariaHidden)("role",h.role),t.R7$(),t.BMQ("clip-path",h.pathId),t.R7$(3),t.Y8G("id",h.pathId))},encapsulation:2})}return o}
1)();var P=f(239),E=f(1466),te=f(1646),ie=f(9869);const ne=["container"],Ue=["icon"],oe=["closeicon"],Mt=["*"],W=(o,_)=>({showTransitionParams:o,hideTransitionParams:_}),je=o=>({value:"visible()",params:o}),Xe=o=>({closeCallback:o});function ge(o,_){1&o&&t.eu8(0)}function We(o,_){if(1&o&&t.DNE(0,ge,1,0,"ng-container",7),2&o){const s=t.XpG(2);t.Y8G("ngTemplateOutlet",s.iconTemplate||s.iconTemplate)}}function $(o,_){if(1&o&&t.nrm(0,"i",3),2&o){const s=t.XpG(2);t.Y8G("ngClass",s.icon)}}function G(o,_){if(1&o&&t.nrm(0,"span",9),2&o){const s=t.XpG(3);t.Y8G("ngClass",s.cx("text"))("innerHTML",s.text,t.npT)}}function H(o,_){if(1&o&&(t.j41(0,"div"),t.DNE(1,G,1,2,"span",8),t.k0s()),2&o){const s=t.XpG(2);t.R7$(),t.Y8G("ngIf",!s.escape)}}function He(o,_){if(1&o&&(t.j41(0,"span",5),t.EFF(1),t.k0s()),2&o){const s=t.XpG(3);t.Y8G("ngClass",s.cx("text")),t.R7$(),t.JRh(s.text)}}function Ye(o,_){if(1&o&&t.DNE(0,He,2,2,"span",10),2&o){const s=t.XpG(2);t.Y8G("ngIf",s.escape&&s.text)}}function Qe(o,_){1&o&&t.eu8(0)}function Ze(o,_){if(1&o&&t.DNE(0,Qe,1,0,"ng-container",11),2&o){const s=t.XpG(2);t.Y8G("ngTemplateOutlet",s.containerTemplate||s.containerTemplate)("ngTemplateOutletContext",t.eq3(2,Xe,s.close.bind(s)))}}function fe(o,_){if(1&o&&(t.j41(0,"span",5),t.SdG(1),t.k0s()),2&o){const s=t.XpG(2);t.Y8G("ngClass",s.cx("text"))}}function Y(o,_){if(1&o&&t.nrm(0,"i",13),2&o){const s=t.XpG(3);t.Y8G("ngClass",s.closeIcon)}}function Ke(o,_){1&o&&t.eu8(0)}function Je(o,_){if(1&o&&t.DNE(0,Ke,1,0,"ng-container",7),2&o){const s=t.XpG(3);t.Y8G("ngTemplateOutlet",s.closeIconTemplate||s._closeIconTemplate)}}function qe(o,_){1&o&&t.nrm(0,"TimesIcon",14)}function et(o,_){if(1&o){const s=t.RV6();t.j41(0,"button",12),t.bIt("click",function(h){t.eBV(s);const v=t.XpG(2);return t.Njj(v.close(h))}),t.DNE(1,Y,1,1,"i",13)(2,Je,1,1,"ng-container")(3,qe,1,0,"TimesIcon",14),t.k0s()}if(2&o){const s=t.XpG(2);t.BMQ("aria-label",s.closeAriaLabel),t.R7$(),t.vxM(s.closeIcon?1:-1),t.R7$(),t.vxM(s.closeIconTemplate||s._closeIconTemplate?2:-1),t.R7$(),t.vxM(s.closeIconTemplate||s._closeIconTemplate||s.closeIcon?-1:3)}}function se(o,_){if(1&o&&(t.j41(0,"div",1)(1,"div",2),t.DNE(2,We,1,1,"ng-container")(3,$,1,1,"i",3)(4,H,2,1,"div",4)(5,Ye,1,1,"ng-template",null,0,t.C5r)(7,Ze,1,4,"ng-container")(8,fe,2,1,"span",5)(9,et,4,4,"button",6),t.k0s()()),2&o){const s=t.sdS(6),p=t.XpG();t.Y8G("ngClass",p.containerClass)("@messageAnimation",t.eq3(13,je,t.l_i(10,W,p.showTransitionOptions,p.hideTransitionOptions))),t.BMQ("aria-live","polite")("role","alert"),t.R7$(2),t.vxM(p.iconTemplate||p._iconTemplate?2:-1),t.R7$(),t.vxM(p.icon?3:-1),t.R7$(),t.Y8G("ngIf",!p.escape)("ngIfElse",s),t.R7$(3),t.vxM(p.containerTemplate||p._containerTemplate?7:8),t.R7$(2),t.vxM(p.closable?9:-1)}}const Q=({dt:o})=>`\n.p-message {\n border-radius: ${o("message.border.radius")};\n outline-width: ${o("message.border.width")};\n outline-style: solid;\n}\n\n.p-message-content {\n display: flex;\n align-items: center;\n padding: ${o("message.content.padding")};\n gap: ${o("message.content.gap")};\n height: 100%;\n}\n\n.p-message-icon {\n flex-shrink: 0;\n}\n\n.p-message-close-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n margin-inline-start: auto;\n overflow: hidden;\n position: relative;\n width: ${o("message.close.button.width")};\n height: ${o("message.close.button.height")};\n border-radius: ${o("message.close.button.border.radius")};\n background: transparent;\n transition: background ${o("message.transition.duration")}, color ${o("message.transition.duration")}, outline-color ${o("message.transition.duration")}, box-shadow ${o("message.transition.duration")}, opacity 0.3s;\n outline-color: transparent;\n color: inherit;\n padding: 0;\n border: none;\n cursor: pointer;\n user-select: none;\n}\n\n.p-message-close-icon {\n font-size: ${o("message.close.icon.size")};\n width: ${o("message.close.icon.size")};\n height: ${o("message.close.icon.size")};\n}\n\n.p-message-close-button:focus-visible {\n outline-width: ${o("message.close.button.focus.ring.width")};\n outline-style: ${o("message.close.button.focus.ring.style")};\n outline-offset: ${o("message.close.button.focus.ring.offset")};\n}\n\n.p-message-info {\n background: ${o("message.info.background")};\n outline-color: ${o("message.info.border.color")};\n color: ${o("message.info.color")};\n box-shadow: ${o("message.info.shadow")};\n}\n\n.p-message-info .p-message-close-button:focus-visible {\n outline-color: ${o("message.info.close.button.focus.ring.color")};\n box-shadow: ${o("message.info.close.button.focus.ring.shadow")};\n}\n\n.p-message-info .p-message-close-button:hover {\n background: ${o("message.info.close.button.hover.background")};\n}\n\n.p-message-info.p-message-outlined {\n color: ${o("message.info.outlined.color")};\n outline-color: ${o("message.info.outlined.border.color")};\n}\n\n.p-message-info.p-message-simple {\n color: ${o("message.info.simple.color")};\n}\n\n.p-message-success {\n background: ${o("message.success.background")};\n outline-color: ${o("message.success.border.color")};\n color: ${o("message.success.color")};\n box-shadow: ${o("message.success.shadow")};\n}\n\n.p-message-success .p-message-close-button:focus-visible {\n outline-color: ${o("message.success.close.button.focus.ring.color")};\n box-shadow: ${o("message.success.close.button.focus.ring.shadow")};\n}\n\n.p-message-success .p-message-close-button:hover {\n background: ${o("message.success.close.button.hover.background")};\n}\n\n.p-message-success.p-message-outlined {\n color: ${o("message.success.outlined.color")};\n outline-color: ${o("message.success.outlined.border.color")};\n}\n\n.p-message-success.p-message-simple {\n color: ${o("message.success.simple.color")};\n}\n\n.p-message-warn {\n background: ${o("message.warn.background")};\n outline-color: ${o("message.warn.border.color")};\n color: ${o("message.warn.color")};\n box-shadow: ${o("message.warn.shadow")};\n}\n\n.p-message-warn .p-message-close-button:focus-visible {\n outline-color: ${o("message.warn.close.button.focus.ring.color")};\n box-shadow: ${o("message.warn.close.button.focus.ring.shadow")};\n}\n\n.p-message-warn .p-message-close-button:hover {\n background: ${o("message.warn.close.button.hover.background")};\n}\n\n.p-message-warn.p-message-outlined {\n color: ${o("message.warn.outlined.color")};\n outline-color: ${o("message.warn.outlined.border.color")};\n}\n\n.p-message-warn.p-message-simple {\n color: ${o("message.warn.simple.color")};\n}\n\n.p-message-error {\n background: ${o("message.error.background")};\n outline-color: ${o("message.error.border.color")};\n color: ${o("message.error.color")};\n box-shadow: ${o("message.error.shadow")};\n}\n\n.p-message-error .p-message-close-button:focus-visible {\n outline-color: ${o("message.error.close.button.focus.ring.color")};\n box-shadow: ${o("message.error.close.button.focus.ring.shadow")};\n}\n\n.p-message-error .p-message-close-button:hover {\n background: ${o("message.error.close.button.hover.background")};\n}\n\n.p-message-error.p-message-outlined {\n color: ${o("message.error.outlined.color")};\n outline-color: ${o("message.error.outlined.border.color")};\n}\n\n.p-message-error.p-message-simple {\n color: ${o("message.error.simple.color")};\n}\n\n.p-message-secondary {\n background: ${o("message.secondary.background")};\n outline-color: ${o("message.secondary.border.color")};
1\n color: ${o("message.secondary.color")};\n box-shadow: ${o("message.secondary.shadow")};\n}\n\n.p-message-secondary .p-message-close-button:focus-visible {\n outline-color: ${o("message.secondary.close.button.focus.ring.color")};\n box-shadow: ${o("message.secondary.close.button.focus.ring.shadow")};\n}\n\n.p-message-secondary .p-message-close-button:hover {\n background: ${o("message.secondary.close.button.hover.background")};\n}\n\n.p-message-secondary.p-message-outlined {\n color: ${o("message.secondary.outlined.color")};\n outline-color: ${o("message.secondary.outlined.border.color")};\n}\n\n.p-message-secondary.p-message-simple {\n color: ${o("message.secondary.simple.color")};\n}\n\n.p-message-contrast {\n background: ${o("message.contrast.background")};\n outline-color: ${o("message.contrast.border.color")};\n color: ${o("message.contrast.color")};\n box-shadow: ${o("message.contrast.shadow")};\n}\n\n.p-message-contrast .p-message-close-button:focus-visible {\n outline-color: ${o("message.contrast.close.button.focus.ring.color")};\n box-shadow: ${o("message.contrast.close.button.focus.ring.shadow")};\n}\n\n.p-message-contrast .p-message-close-button:hover {\n background: ${o("message.contrast.close.button.hover.background")};\n}\n\n.p-message-contrast.p-message-outlined {\n color: ${o("message.contrast.outlined.color")};\n outline-color: ${o("message.contrast.outlined.border.color")};\n}\n\n.p-message-contrast.p-message-simple {\n color: ${o("message.contrast.simple.color")};\n}\n\n.p-message-text {\n display: inline-flex;\n align-items: center;\n font-size: ${o("message.text.font.size")};\n font-weight: ${o("message.text.font.weight")};\n}\n\n.p-message-icon {\n font-size: ${o("message.icon.size")};\n width: ${o("message.icon.size")};\n height: ${o("message.icon.size")};\n}\n\n.p-message-enter-from {\n opacity: 0;\n}\n\n.p-message-enter-active {\n transition: opacity 0.3s;\n}\n\n.p-message.p-message-leave-from {\n max-height: 1000px;\n}\n\n.p-message.p-message-leave-to {\n max-height: 0;\n opacity: 0;\n margin: 0;\n}\n\n.p-message-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin 0.3s;\n}\n\n.p-message-leave-active .p-message-close-button {\n opacity: 0;\n}\n\n.p-message-sm .p-message-content {\n padding: ${o("message.content.sm.padding")};\n}\n\n.p-message-sm .p-message-text {\n font-size: ${o("message.text.sm.font.size")};\n}\n\n.p-message-sm .p-message-icon {\n font-size: ${o("message.icon.sm.size")};\n width: ${o("message.icon.sm.size")};\n height: ${o("message.icon.sm.size")};\n}\n\n.p-message-sm .p-message-close-icon {\n font-size: ${o("message.close.icon.sm.size")};\n width: ${o("message.close.icon.sm.size")};\n height: ${o("message.close.icon.sm.size")};\n}\n\n.p-message-lg .p-message-content {\n padding: ${o("message.content.lg.padding")};\n}\n\n.p-message-lg .p-message-text {\n font-size: ${o("message.text.lg.font.size")};\n}\n\n.p-message-lg .p-message-icon {\n font-size: ${o("message.icon.lg.size")};\n width: ${o("message.icon.lg.size")};\n height: ${o("message.icon.lg.size")};\n}\n\n.p-message-lg .p-message-close-icon {\n font-size: ${o("message.close.icon.lg.size")};\n width: ${o("message.close.icon.lg.size")};\n height: ${o("message.close.icon.lg.size")};\n}\n\n.p-message-outlined {\n background: transparent;\n outline-width: ${o("message.outlined.border.width")};\n}\n\n.p-message-simple {\n background: transparent;\n outline-color: transparent;\n box-shadow: none;\n}\n\n.p-message-simple .p-message-content {\n padding: ${o("message.simple.content.padding")};\n}\n\n.p-message-outlined .p-message-close-button:hover,\n.p-message-simple .p-message-close-button:hover {\n background: transparent;\n}`,me={root:({props:o})=>["p-message p-component p-message-"+o.severity,{"p-message-simple":"simple"===o.variant}],content:"p-message-content",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close-button",closeIcon:"p-message-close-icon"};let ve=(()=>{class o extends ie.j{name="message";theme=Q;classes=me;static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o}
1)(),tt=(()=>{class o extends k.${severity="info";text;escape=!0;style;styleClass;closable=!1;icon;closeIcon;life;showTransitionOptions="300ms ease-out";hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)";size;variant;onClose=new t.bkB;get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get containerClass(){return`p-message-${this.severity} ${"outlined"===this.variant?"p-message-outlined":"simple"===this.variant?"p-message-simple":""} ${"small"===this.size?"p-message-sm":"large"===this.size?"p-message-lg":""}`.trim()+(this.styleClass?" "+this.styleClass:"")}visible=(0,t.vPA)(!0);_componentStyle=(0,t.WQX)(ve);containerTemplate;iconTemplate;closeIconTemplate;templates;_containerTemplate;_iconTemplate;_closeIconTemplate;ngOnInit(){super.ngOnInit(),this.life&&setTimeout(()=>{this.visible.set(!1)},this.life)}ngAfterContentInit(){this.templates?.forEach(s=>{switch(s.getType()){case"container":this._containerTemplate=s.template;break;case"icon":this._iconTemplate=s.template;break;case"closeicon":this._closeIconTemplate=s.template}})}close(s){this.visible.set(!1),this.onClose.emit({originalEvent:s})}static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275cmp=t.VBU({type:o,selectors:[["p-message"]],contentQueries:function(p,h,v){if(1&p&&(t.wni(v,ne,4),t.wni(v,Ue,4),t.wni(v,oe,4),t.wni(v,x.Ei,4)),2&p){let w;t.mGM(w=t.lsd())&&(h.containerTemplate=w.first),t.mGM(w=t.lsd())&&(h.iconTemplate=w.first),t.mGM(w=t.lsd())&&(h.closeIconTemplate=w.first),t.mGM(w=t.lsd())&&(h.templates=w)}},inputs:{severity:"severity",text:"text",escape:[2,"escape","escape",t.L39],style:"style",styleClass:"styleClass",closable:[2,"closable","closable",t.L39],icon:"icon",closeIcon:"closeIcon",life:"life",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",size:"size",variant:"variant"},outputs:{onClose:"onClose"},features:[t.Jv_([ve]),t.Vt3],ngContentSelectors:Mt,decls:1,vars:1,consts:[["escapeOut",""],[1,"p-message","p-component",3,"ngClass"],[1,"p-message-content"],[1,"p-message-icon",3,"ngClass"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["pRipple","","type","button",1,"p-message-close-button"],[4,"ngTemplateOutlet"],[3,"ngClass","innerHTML",4,"ngIf"],[3,"ngClass","innerHTML"],[3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pRipple","","type","button",1,"p-message-close-button",3,"click"],[1,"p-message-close-icon",3,"ngClass"],["styleClass","p-message-close-icon"]],template:function(p,h){1&p&&(t.NAR(),t.DNE(0,se,10,15,"div",1)),2&p&&t.vxM(h.visible()?0:-1)},dependencies:[l.MD,l.YU,l.bT,l.T3,P.A,te.n0,x.Gg],encapsulation:2,data:{animation:[(0,E.hZ)("messageAnimation",[(0,E.kY)(":enter",[(0,E.iF)({opacity:0,transform:"translateY(-25%)"}),(0,E.i0)("{{showTransitionParams}}")]),(0,E.kY)(":leave",[(0,E.i0)("{{hideTransitionParams}}",(0,E.iF)({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0})}return o})();const Z=["content"],it=(o,_)=>({"p-progressbar p-component":!0,"p-progressbar-determinate":o,"p-progressbar-indeterminate":_}),nt=o=>({$implicit:o});function ot(o,_){if(1&o&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&o){const s=t.XpG(2);t.xc7("display",null!=s.value&&0!==s.value?"flex":"none"),t.BMQ("data-pc-section","label"),t.R7$(),t.Lme("",s.value,"",s.unit,"")}}function st(o,_){1&o&&t.eu8(0)}function Bt(o,_){if(1&o&&(t.j41(0,"div",3)(1,"div",4),t.DNE(2,ot,2,5,"div",5)(3,st,1,0,"ng-container",6),t.k0s()()),2&o){const s=t.XpG();t.HbH(s.valueStyleClass),t.xc7("width",s.value+"%")("background",s.color),t.Y8G("ngClass","p-progressbar-value p-progressbar-value-animate"),t.BMQ("data-pc-section","value"),t.R7$(2),t.Y8G("ngIf",s.showValue&&!s.contentTemplate&&!s._contentTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",s.contentTemplate||s._contentTemplate)("ngTemplateOutletContext",t.eq3(11,nt,s.value))}}function rt(o,_){if(1&o&&(t.j41(0,"div",7),t.nrm(1,"div",8),t.k0s()),2&o){const s=t.XpG();t.HbH(s.valueStyleClass),t.Y8G("ngClass","p-progressbar-indeterminate-container"),t.BMQ("data-pc-section","container"),t.R7$(),t.xc7("background",s.color),t.BMQ("data-pc-section","value")}}const at=({dt:o})=>`\n.p-progressbar {\n position: relative;\n overflow: hidden;\n height: ${o("progressbar.height")};\n background: ${o("progressbar.background")};
1\n border-radius: ${o("progressbar.border.radius")};\n}\n\n.p-progressbar-value {\n margin: 0;\n background: ${o("progressbar.value.background")};\n}\n\n.p-progressbar-label {\n color: ${o("progressbar.label.color")};\n font-size: ${o("progressbar.label.font.size")};\n font-weight: ${o("progressbar.label.font.weight")};\n}\n\n.p-progressbar-determinate .p-progressbar-value {\n height: 100%;\n width: 0%;\n position: absolute;\n display: none;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n transition: width 1s ease-in-out;\n}\n\n.p-progressbar-determinate .p-progressbar-label {\n display: inline-flex;\n}\n\n.p-progressbar-indeterminate .p-progressbar-value::before {\n content: "";\n position: absolute;\n background: inherit;\n top: 0;\n inset-inline-start: 0;\n bottom: 0;\n will-change: inset-inline-start, inset-inline-end;\n animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n}\n\n.p-progressbar-indeterminate .p-progressbar-value::after {\n content: "";\n position: absolute;\n background: inherit;\n top: 0;\n inset-inline-start: 0;\n bottom: 0;\n will-change: inset-inline-start, inset-inline-end;\n animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;\n animation-delay: 1.15s;\n}\n\n@-webkit-keyframes p-progressbar-indeterminate-anim {\n 0% {\n inset-inline-start: -35%;\n inset-inline-end: 100%;\n }\n 60% {\n inset-inline-start: 100%;\n inset-inline-end: -90%;\n }\n 100% {\n inset-inline-start: 100%;\n inset-inline-end: -90%;\n }\n}\n@keyframes p-progressbar-indeterminate-anim {\n 0% {\n inset-inline-start: -35%;\n inset-inline-end: 100%;\n }\n 60% {\n inset-inline-start: 100%;\n inset-inline-end: -90%;\n }\n 100% {\n inset-inline-start: 100%;\n inset-inline-end: -90%;\n }\n}\n@-webkit-keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n inset-inline-start: -200%;\n inset-inline-end: 100%;\n }\n 60% {\n inset-inline-start: 107%;\n inset-inline-end: -8%;\n }\n 100% {\n inset-inline-start: 107%;\n inset-inline-end: -8%;\n }\n}\n@keyframes p-progressbar-indeterminate-anim-short {\n 0% {\n inset-inline-start: -200%;\n inset-inline-end: 100%;\n }\n 60% {\n inset-inline-start: 107%;\n inset-inline-end: -8%;\n }\n 100% {\n inset-inline-start: 107%;\n inset-inline-end: -8%;\n }\n}\n`,be={root:({instance:o})=>["p-progressbar p-component",{"p-progressbar-determinate":o.determinate,"p-progressbar-indeterminate":o.indeterminate}],value:"p-progressbar-value",label:"p-progressbar-label"};let we=(()=>{class o extends ie.j{name="progressbar";theme=at;classes=be;static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),lt=(()=>{class o extends k.${value;showValue=!0;styleClass;valueStyleClass;style;unit="%";mode="determinate";color;contentTemplate;_componentStyle=(0,t.WQX)(we);templates;_contentTemplate;ngAfterContentInit(){this.templates?.forEach(s=>{s.getType(),this._contentTemplate=s.template})}static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275cmp=t.VBU({type:o,selectors:[["p-progressBar"],["p-progressbar"],["p-progress-bar"]],contentQueries:function(p,h,v){if(1&p&&(t.wni(v,Z,4),t.wni(v,x.Ei,4)),2&p){let w;t.mGM(w=t.lsd())&&(h.contentTemplate=w.first),t.mGM(w=t.lsd())&&(h.templates=w)}},inputs:{value:[2,"value","value",t.Udg],showValue:[2,"showValue","showValue",t.L39],styleClass:"styleClass",valueStyleClass:"valueStyleClass",style:"style",unit:"unit",mode:"mode",color:"color"},features:[t.Jv_([we]),t.Vt3],decls:3,vars:15,consts:[["role","progressbar",3,"ngStyle","ngClass"],["style","display:flex",3,"ngClass","class","width","background",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[2,"display","flex",3,"ngClass"],[1,"p-progressbar-label"],[3,"display",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(p,h){1&p&&(t.j41(0,"div",0),t.DNE(1,Bt,4,13,"div",1)(2,rt,2,7,"div",2),t.k0s()),2&p&&(t.HbH(h.styleClass),t.Y8G("ngStyle",h.style)("ngClass",t.l_i(12,it,"determinate"===h.mode,"indeterminate"===h.mode)),t.BMQ("aria-valuemin",0)("aria-valuenow",h.value)("aria-valuemax",100)("data-pc-name","progressbar")("data-pc-section","root")("aria-label",h.value+h.unit),t.R7$(),t.Y8G("ngIf","determinate"===h.mode),t.R7$(),t.Y8G("ngIf","indeterminate"===h.mode))},dependencies:[l.MD,l.YU,l.bT,l.T3,l.B3,x.Gg],encapsulation:2,changeDetection:0})}return o}
1)();const re=["file"],xe=["header"],ct=["content"],Vt=["toolbar"],Gt=["chooseicon"],zt=["filelabel"],Nt=["uploadicon"],At=["cancelicon"],dt=["empty"],pt=["advancedfileinput"],Ut=["basicfileinput"],ht=(o,_,s,p,h)=>({$implicit:o,uploadedFiles:_,chooseCallback:s,clearCallback:p,uploadCallback:h}),ut=(o,_,s,p,h,v,w,ue)=>({$implicit:o,uploadedFiles:_,chooseCallback:s,clearCallback:p,removeUploadedFileCallback:h,removeFileCallback:v,progress:w,messages:ue}),jt=o=>({$implicit:o});function Xt(o,_){if(1&o&&t.nrm(0,"span"),2&o){const s=t.XpG(3);t.HbH(s.chooseIcon),t.BMQ("aria-label",!0)("data-pc-section","chooseicon")}}function Wt(o,_){1&o&&t.nrm(0,"PlusIcon"),2&o&&t.BMQ("aria-label",!0)("data-pc-section","chooseicon")}function Ht(o,_){}function Yt(o,_){1&o&&t.DNE(0,Ht,0,0,"ng-template")}function Qt(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,Yt,1,0,null,11),t.k0s()),2&o){const s=t.XpG(4);t.BMQ("aria-label",!0)("data-pc-section","chooseicon"),t.R7$(),t.Y8G("ngTemplateOutlet",s.chooseIconTemplate||s._chooseIconTemplate)}}function Zt(o,_){if(1&o&&(t.qex(0),t.DNE(1,Wt,1,2,"PlusIcon",9)(2,Qt,2,3,"span",9),t.bVm()),2&o){const s=t.XpG(3);t.R7$(),t.Y8G("ngIf",!s.chooseIconTemplate&&!s._chooseIconTemplate),t.R7$(),t.Y8G("ngIf",s.chooseIconTemplate||s._chooseIconTemplate)}}function Kt(o,_){if(1&o&&t.nrm(0,"span",21),2&o){const s=t.XpG(4);t.Y8G("ngClass",s.uploadIcon),t.BMQ("aria-hidden",!0)}}function Jt(o,_){1&o&&t.nrm(0,"UploadIcon")}function qt(o,_){}function ei(o,_){1&o&&t.DNE(0,qt,0,0,"ng-template")}function Ce(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,ei,1,0,null,11),t.k0s()),2&o){const s=t.XpG(5);t.BMQ("aria-hidden",!0),t.R7$(),t.Y8G("ngTemplateOutlet",s.uploadIconTemplate||s._uploadIconTemplate)}}function ae(o,_){if(1&o&&(t.qex(0),t.DNE(1,Jt,1,0,"UploadIcon",9)(2,Ce,2,2,"span",9),t.bVm()),2&o){const s=t.XpG(4);t.R7$(),t.Y8G("ngIf",!s.uploadIconTemplate&&!s._uploadIconTemplate),t.R7$(),t.Y8G("ngIf",s.uploadIconTemplate||s._uploadIconTemplate)}}function _t(o,_){if(1&o){const s=t.RV6();t.j41(0,"p-button",19),t.bIt("onClick",function(){t.eBV(s);const h=t.XpG(3);return t.Njj(h.upload())}),t.DNE(1,Kt,1,2,"span",20)(2,ae,3,2,"ng-container",9),t.k0s()}if(2&o){const s=t.XpG(3);t.Y8G("label",s.uploadButtonLabel)("disabled",!s.hasFiles()||s.isFileLimitExceeded())("styleClass","p-fileupload-upload-button "+s.uploadStyleClass)("buttonProps",s.uploadButtonProps),t.R7$(),t.Y8G("ngIf",s.uploadIcon),t.R7$(),t.Y8G("ngIf",!s.uploadIcon)}}function gt(o,_){if(1&o&&t.nrm(0,"span",21),2&o){const s=t.XpG(4);t.Y8G("ngClass",s.cancelIcon)}}function De(o,_){1&o&&t.nrm(0,"TimesIcon"),2&o&&t.BMQ("aria-hidden",!0)}function Se(o,_){}function ft(o,_){1&o&&t.DNE(0,Se,0,0,"ng-template")}function Te(o,_){if(1&o&&(t.j41(0,"span"),t.DNE(1,ft,1,0,null,11),t.k0s()),2&o){const s=t.XpG(5);t.BMQ("aria-hidden",!0),t.R7$(),t.Y8G("ngTemplateOutlet",s.cancelIconTemplate||s._cancelIconTemplate)}}function Re(o,_){if(1&o&&(t.qex(0),t.DNE(1,De,1,1,"TimesIcon",9)(2,Te,2,2,"span",9),t.bVm()),2&o){const s=t.XpG(4);t.R7$(),t.Y8G("ngIf",!s.cancelIconTemplate&&!s._cancelIconTemplate),t.R7$(),t.Y8G("ngIf",s.cancelIconTemplate||s._cancelIconTemplate)}}function le(o,_){if(1&o){const s=t.RV6();t.j41(0,"p-button",19),t.bIt("onClick",function(){t.eBV(s);const h=t.XpG(3);return t.Njj(h.clear())}),t.DNE(1,gt,1,1,"span",20)(2,Re,3,2,"ng-container",9),t.k0s()}if(2&o){const s=t.XpG(3);t.Y8G("label",s.cancelButtonLabel)("disabled",!s.hasFiles()||s.uploading)("styleClass","p-fileupload-cancel-button "+s.cancelStyleClass)("buttonProps",s.cancelButtonProps),t.R7$(),t.Y8G("ngIf",s.cancelIcon),t.R7$(),t.Y8G("ngIf",!s.cancelIcon)}}function ce(o,_){if(1&o){const s=t.RV6();t.qex(0),t.j41(1,"p-button",16),t.bIt("focus",function(){t.eBV(s);const h=t.XpG(2);return t.Njj(h.onFocus())})("blur",function(){t.eBV(s);const h=t.XpG(2);return t.Njj(h.onBlur())})("onClick",function(){t.eBV(s);const h=t.XpG(2);return t.Njj(h.choose())})("keydown.enter",function(){t.eBV(s);const h=t.XpG(2);return t.Njj(h.choose())}),t.j41(2,"input",7,0),t.bIt("change",function(h){t.eBV(s);const v=t.XpG(2);return t.Njj(v.onFileSelect(h))}),t.k0s(),t.DNE(4,Xt,1,4,"span",17)(5,Zt,3,2,"ng-container",9),t.k0s(),t.DNE(6,_t,3,6,"p-button",18)(7,le,3,6,"p-button",18),t.bVm()}if(2&o){const s=t.XpG(2);t.R7$(),t.Y8G("styleClass","p-fileupload-choose-button "+s.chooseStyleClass)("disabled",s.disabled||s.isChooseDisabled())("label",s.cho
1oseButtonLabel)("buttonProps",s.chooseButtonProps),t.BMQ("data-pc-section","choosebutton"),t.R7$(),t.Y8G("multiple",s.multiple)("accept",s.accept)("disabled",s.disabled||s.isChooseDisabled()),t.BMQ("aria-label",s.browseFilesLabel)("title","")("data-pc-section","input"),t.R7$(2),t.Y8G("ngIf",s.chooseIcon),t.R7$(),t.Y8G("ngIf",!s.chooseIcon),t.R7$(),t.Y8G("ngIf",!s.auto&&s.showUploadButton),t.R7$(),t.Y8G("ngIf",!s.auto&&s.showCancelButton)}}function A(o,_){1&o&&t.eu8(0)}function Ie(o,_){1&o&&t.eu8(0)}function Fe(o,_){if(1&o&&t.nrm(0,"p-progressbar",22),2&o){const s=t.XpG(2);t.Y8G("value",s.progress)("showValue",!1)}}function Ee(o,_){if(1&o&&t.nrm(0,"p-message",14),2&o){const s=_.$implicit;t.Y8G("severity",s.severity)("text",s.text)}}function de(o,_){if(1&o){const s=t.RV6();t.j41(0,"img",33),t.bIt("error",function(h){t.eBV(s);const v=t.XpG(5);return t.Njj(v.imageError(h))}),t.k0s()}if(2&o){const s=t.XpG().$implicit,p=t.XpG(4);t.Y8G("src",s.objectURL,t.B4B)("width",p.previewWidth)}}function N(o,_){1&o&&t.nrm(0,"TimesIcon")}function ke(o,_){}function K(o,_){1&o&&t.DNE(0,ke,0,0,"ng-template")}function Pe(o,_){if(1&o&&t.DNE(0,N,1,0,"TimesIcon",9)(1,K,1,0,null,11),2&o){const s=t.XpG(5);t.Y8G("ngIf",!s.cancelIconTemplate&&!s._cancelIconTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",s.cancelIconTemplate||s._cancelIconTemplate)}}function J(o,_){if(1&o){const s=t.RV6();t.j41(0,"div",24),t.DNE(1,de,1,2,"img",27),t.j41(2,"div",28)(3,"div",29),t.EFF(4),t.k0s(),t.j41(5,"span",30),t.EFF(6),t.k0s()(),t.j41(7,"div",31)(8,"p-button",32),t.bIt("onClick",function(h){const v=t.eBV(s).index,w=t.XpG(4);return t.Njj(w.remove(h,v))}),t.DNE(9,Pe,2,2,"ng-template",null,2,t.C5r),t.k0s()()()}if(2&o){const s=_.$implicit,p=t.XpG(4);t.R7$(),t.Y8G("ngIf",p.isImage(s)),t.R7$(3),t.JRh(s.name),t.R7$(2),t.JRh(p.formatSize(s.size)),t.R7$(2),t.Y8G("disabled",p.uploading)("styleClass","p-fileupload-file-remove-button "+p.removeStyleClass)}}function Me(o,_){if(1&o&&t.DNE(0,J,11,5,"div",26),2&o){const s=t.XpG(3);t.Y8G("ngForOf",s.files)}}function mt(o,_){}function pe(o,_){if(1&o&&t.DNE(0,mt,0,0,"ng-template",25),2&o){const s=t.XpG(3);t.Y8G("ngForOf",s.files)("ngForTemplate",s.fileTemplate||s._fileTemplate)}}function vt(o,_){if(1&o&&(t.j41(0,"div",23),t.DNE(1,Me,1,1,"div",24)(2,pe,1,2,null,25),t.k0s()),2&o){const s=t.XpG(2);t.R7$(),t.vxM(s.fileTemplate||s._fileTemplate?-1:1),t.R7$(),t.vxM(s.fileTemplate||s._fileTemplate?2:-1)}}function bt(o,_){1&o&&t.eu8(0)}function Le(o,_){1&o&&t.eu8(0)}function wt(o,_){if(1&o&&t.DNE(0,Le,1,0,"ng-container",11),2&o){const s=t.XpG(2);t.Y8G("ngTemplateOutlet",s.emptyTemplate||s._emptyTemplate)}}function Oe(o,_){if(1&o){const s=t.RV6();t.j41(0,"div",6)(1,"input",7,0),t.bIt("change",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onFileSelect(h))}),t.k0s(),t.j41(3,"div",8),t.DNE(4,ce,8,15,"ng-container",9)(5,A,1,0,"ng-container",10)(6,Ie,1,0,"ng-container",11),t.k0s(),t.j41(7,"div",12,1),t.bIt("dragenter",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onDragEnter(h))})("dragleave",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onDragLeave(h))})("drop",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onDrop(h))}),t.DNE(9,Fe,1,2,"p-progressbar",13),t.Z7z(10,Ee,1,2,"p-message",14,t.fX1),t.DNE(12,vt,3,2,"div",15)(13,bt,1,0,"ng-container",10)(14,wt,1,1,"ng-container"),t.k0s()()}if(2&o){const s=t.XpG();t.HbH(s.styleClass),t.Y8G("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",s.style),t.BMQ("data-pc-name","fileupload")("data-pc-section","root"),t.R7$(),t.xc7("display","none"),t.Y8G("multiple",s.multiple)("accept",s.accept)("disabled",s.disabled||s.isChooseDisabled()),t.BMQ("aria-label",s.browseFilesLabel)("title","")("data-pc-section","input"),t.R7$(3),t.Y8G("ngIf",!s.headerTemplate&&!s._headerTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",s.headerTemplate||s._headerTemplate)("ngTemplateOutletContext",t.s1E(24,ht,s.files,s.uploadedFiles,s.choose.bind(s),s.clear.bind(s),s.upload.bind(s))),t.R7$(),t.Y8G("ngTemplateOutlet",s.toolbarTemplate||s._toolbarTemplate),t.R7$(),t.BMQ("data-pc-section","content"),t.R7$(2),t.Y8G("ngIf",s.hasFiles()),t.R7$(),t.Dyx(s.msgs),t.R7$(2),t.Y8G("ngIf",s.hasFiles()),t.R7$(),t.Y8G("ngTemplateOutlet",s.contentTemplate||s._contentTemplate)("ngTemplateOutletContext",t.lV(30,ut,s.files,s.uploadedFiles,s.choose.bind(s),s.clear.bind(s),s.removeUploadedFile.bind(s),s.remove.bind(s),s.progress,s.msgs)),t.R7$(),t.vxM(!s.emptyTemplate&&!s._emptyTemplate||s.hasFiles()||s.hasUploadedFiles()?-1:14)}}function yt(o,_){if(1&o&&t.nrm(0,"p-message",14),2&o){const s=_.$implicit;t.Y8G("severity",s.severity)("text",s.text)}}function xt(o,_){if(1&o&&t.nrm(0,"span",37),2&o){const s=t.XpG(4);t.Y8G("ngClass",s.uploadIcon)}}
1function Be(o,_){1&o&&t.nrm(0,"UploadIcon",40),2&o&&t.Y8G("styleClass","p-button-icon p-button-icon-left")}function Ct(o,_){}function $e(o,_){1&o&&t.DNE(0,Ct,0,0,"ng-template")}function U(o,_){if(1&o&&(t.j41(0,"span",41),t.DNE(1,$e,1,0,null,11),t.k0s()),2&o){const s=t.XpG(5);t.R7$(),t.Y8G("ngTemplateOutlet",s._uploadIconTemplate||s.uploadIconTemplate)}}function Dt(o,_){if(1&o&&(t.qex(0),t.DNE(1,Be,1,1,"UploadIcon",38)(2,U,2,1,"span",39),t.bVm()),2&o){const s=t.XpG(4);t.R7$(),t.Y8G("ngIf",!s.uploadIconTemplate&&!s._uploadIconTemplate),t.R7$(),t.Y8G("ngIf",s._uploadIconTemplate||s.uploadIconTemplate)}}function he(o,_){if(1&o&&t.DNE(0,xt,1,1,"span",36)(1,Dt,3,2,"ng-container",9),2&o){const s=t.XpG(3);t.Y8G("ngIf",s.uploadIcon),t.R7$(),t.Y8G("ngIf",!s.uploadIcon)}}function ti(o,_){if(1&o&&t.nrm(0,"span",43),2&o){const s=t.XpG(4);t.Y8G("ngClass",s.chooseIcon)}}function ii(o,_){1&o&&t.nrm(0,"PlusIcon"),2&o&&t.BMQ("data-pc-section","uploadicon")}function j(o,_){}function Ve(o,_){1&o&&t.DNE(0,j,0,0,"ng-template")}function St(o,_){if(1&o&&(t.qex(0),t.DNE(1,ii,1,1,"PlusIcon",9)(2,Ve,1,0,null,11),t.bVm()),2&o){const s=t.XpG(4);t.R7$(),t.Y8G("ngIf",!s.chooseIconTemplate&&!s._chooseIconTemplate),t.R7$(),t.Y8G("ngTemplateOutlet",s.chooseIconTemplate||s._chooseIconTemplate)}}function Ge(o,_){if(1&o&&t.DNE(0,ti,1,1,"span",42)(1,St,3,2,"ng-container",9),2&o){const s=t.XpG(3);t.Y8G("ngIf",s.chooseIcon),t.R7$(),t.Y8G("ngIf",!s.chooseIcon)}}function ze(o,_){if(1&o&&t.DNE(0,he,2,2)(1,Ge,2,2),2&o){const s=t.XpG(2);t.vxM(s.hasFiles()&&!s.auto?0:1)}}function M(o,_){if(1&o&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&o){const s=t.XpG(3);t.HbH(s.cx("filelabel")),t.R7$(),t.SpI(" ",s.basicFileChosenLabel()," ")}}function I(o,_){1&o&&t.eu8(0)}function Tt(o,_){if(1&o&&t.DNE(0,I,1,0,"ng-container",10),2&o){const s=t.XpG(3);t.Y8G("ngTemplateOutlet",s.fileLabelTemplate||s._fileLabelTemplate)("ngTemplateOutletContext",t.eq3(2,jt,s.files))}}function Ne(o,_){if(1&o&&t.DNE(0,M,2,3,"span",44)(1,Tt,1,4,"ng-container"),2&o){const s=t.XpG(2);t.vxM(s.fileLabelTemplate||s._fileLabelTemplate?1:0)}}function Ae(o,_){if(1&o){const s=t.RV6();t.j41(0,"div",21),t.Z7z(1,yt,1,2,"p-message",14,t.fX1),t.j41(3,"p-button",34),t.bIt("onClick",function(){t.eBV(s);const h=t.XpG();return t.Njj(h.onBasicUploaderClick())})("keydown",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onBasicKeydown(h))}),t.DNE(4,ze,2,1,"ng-template",null,2,t.C5r),t.j41(6,"input",35,3),t.bIt("change",function(h){t.eBV(s);const v=t.XpG();return t.Njj(v.onFileSelect(h))})("focus",function(){t.eBV(s);const h=t.XpG();return t.Njj(h.onFocus())})("blur",function(){t.eBV(s);const h=t.XpG();return t.Njj(h.onBlur())}),t.k0s()(),t.DNE(8,Ne,2,1),t.k0s()}if(2&o){const s=t.XpG();t.HbH(s.styleClass),t.Y8G("ngClass","p-fileupload p-fileupload-basic p-component"),t.BMQ("data-pc-name","fileupload"),t.R7$(),t.Dyx(s.msgs),t.R7$(2),t.Aen(s.style),t.Y8G("styleClass","p-fileupload-choose-button "+s.chooseStyleClass)("disabled",s.disabled)("label",s.chooseButtonLabel)("buttonProps",s.chooseButtonProps),t.R7$(3),t.Y8G("accept",s.accept)("multiple",s.multiple)("disabled",s.disabled),t.BMQ("aria-label",s.browseFilesLabel)("data-pc-section","input"),t.R7$(2),t.vxM(s.auto?-1:8)}}const Rt=({dt:o})=>`\n.p-fileupload input[type="file"] {\n display: none;\n}\n\n.p-fileupload-advanced {\n border: 1px solid ${o("fileupload.border.color")};\n border-radius: ${o("fileupload.border.radius")};\n background: ${o("fileupload.background")};\n color: ${o("fileupload.color")};\n}\n\n.p-fileupload-header {\n display: flex;\n align-items: center;\n padding: ${o("fileupload.header.padding")};\n background: ${o("fileupload.header.background")};\n color: ${o("fileupload.header.color")};\n border-style: solid;\n border-width: ${o("fileupload.header.border.width")};\n border-color: ${o("fileupload.header.border.color")};\n border-radius: ${o("fileupload.header.border.radius")};\n gap: ${o("fileupload.header.gap")};\n}\n\n.p-fileupload-content {\n border: 1px solid transparent;\n display: flex;\n flex-direction: column;\n gap: ${o("fileupload.content.gap")};\n transition: border-color ${o("fileupload.transition.duration")};\n padding: ${o("fileupload.content.padding")};\n}\n\n.p-fileupload-content .p-progressbar {\n width: 100%;\n height: ${o("fileupload.progressbar.height")};\n}\n\n.p-fileupload-file-list {\n display: flex;\n flex-direction: column;\n gap: ${o("fileupload.filelist.gap")};\n}\n\n.p-fileupload-file {\n display: flex;\n flex-wrap: wrap;
1\n align-items: center;\n padding: ${o("fileupload.file.padding")};\n border-bottom: 1px solid ${o("fileupload.file.border.color")};\n gap: ${o("fileupload.file.gap")};\n}\n\n.p-fileupload-file:last-child {\n border-bottom: 0;\n}\n\n.p-fileupload-file-info {\n display: flex;\n flex-direction: column;\n gap: ${o("fileupload.file.info.gap")};\n}\n\n.p-fileupload-file-thumbnail {\n flex-shrink: 0;\n}\n\n.p-fileupload-file-actions {\n margin-left: auto;\n}\n\n.p-fileupload-highlight {\n border: 1px dashed ${o("fileupload.content.highlight.border.color")};\n}\n\n.p-fileupload-advanced .p-message {\n margin-top: 0;\n}\n\n.p-fileupload-basic {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: ${o("fileupload.basic.gap")};\n}\n`,X={root:({instance:o})=>`p-fileupload p-fileupload-${o.mode} p-component`,header:"p-fileupload-header",pcChooseButton:"p-fileupload-choose-button",pcUploadButton:"p-fileupload-upload-button",pcCancelButton:"p-fileupload-cancel-button",content:"p-fileupload-content",fileList:"p-fileupload-file-list",file:"p-fileupload-file",fileThumbnail:"p-fileupload-file-thumbnail",fileInfo:"p-fileupload-file-info",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",pcFileBadge:"p-fileupload-file-badge",fileActions:"p-fileupload-file-actions",pcFileRemoveButton:"p-fileupload-file-remove-button"};let q=(()=>{class o extends ie.j{name="fileupload";theme=Rt;classes=X;static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275prov=t.jDH({token:o,factory:o.\u0275fac})}return o})(),ee=(()=>{class o extends k.${name;url;method="post";multiple;accept;disabled;auto;withCredentials;maxFileSize;invalidFileSizeMessageSummary="{0}: Invalid file size, ";invalidFileSizeMessageDetail="maximum upload size is {0}.";invalidFileTypeMessageSummary="{0}: Invalid file type, ";invalidFileTypeMessageDetail="allowed file types: {0}.";invalidFileLimitMessageDetail="limit is {0} at most.";invalidFileLimitMessageSummary="Maximum number of files exceeded, ";style;styleClass;previewWidth=50;chooseLabel;uploadLabel;cancelLabel;chooseIcon;uploadIcon;cancelIcon;showUploadButton=!0;showCancelButton=!0;mode="advanced";headers;customUpload;fileLimit;uploadStyleClass;cancelStyleClass;removeStyleClass;chooseStyleClass;chooseButtonProps;uploadButtonProps={severity:"secondary"};cancelButtonProps={severity:"secondary"};onBeforeUpload=new t.bkB;onSend=new t.bkB;onUpload=new t.bkB;onError=new t.bkB;onClear=new t.bkB;onRemove=new t.bkB;onSelect=new t.bkB;onProgress=new t.bkB;uploadHandler=new t.bkB;onImageError=new t.bkB;onRemoveUploadedFile=new t.bkB;fileTemplate;headerTemplate;contentTemplate;toolbarTemplate;chooseIconTemplate;fileLabelTemplate;uploadIconTemplate;cancelIconTemplate;emptyTemplate;advancedFileInput;basicFileInput;content;set files(s){this._files=[];for(let p=0;p<s.length;p++){let h=s[p];this.validate(h)&&(this.isImage(h)&&(h.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(s[p]))),this._files.push(s[p]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}_files=[];progress=0;dragHighlight;msgs;uploadedFileCount=0;focus;uploading;duplicateIEEvent;translationSubscription;dragOverListener;uploadedFiles=[];sanitizer=(0,t.WQX)(F.up);zone=(0,t.WQX)(t.SKi);http=(0,t.WQX)(R.Qq);_componentStyle=(0,t.WQX)(q);ngOnInit(){super.ngOnInit(),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){super.ngAfterViewInit(),(0,B.UE)(this.platformId)&&"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&(this.dragOverListener=this.renderer.listen(this.content.nativeElement,"dragover",this.onDragOver.bind(this)))})}_headerTemplate;_contentTemplate;_toolbarTemplate;_chooseIconTemplate;_uploadIconTemplate;_cancelIconTemplate;_emptyTemplate;_fileTemplate;_fileLabelTemplate;templates;ngAfterContentInit(){this.templates?.forEach(s=>{switch(s.getType()){case"header":this._headerTemplate=s.template;break;case"file":default:this._fileTemplate=s.template;break;case"content":this._contentTemplate=s.template;break;case"toolbar":this._toolbarTemplate=s.template;break;case"chooseicon":this._chooseIconTemplate=s.template;break;case"uploadicon":this._uploadIconTemplate=s.template;break;case"cancelicon":this._cancelIconTemplate=s.template;break;case"empty":this._emptyTemplate=s.template;break;case"filelabel":this._fileLabelTemplate=s.template}})}basicFileChosenLabel(){return this.auto?this.chooseButtonLabel:this.hasFiles()?this.files&&1===this.files.length?this.files[0].name:this.config.getTranslation("fileChosenMessage")?.replace("{0}",this.files.length):this.config.getTranslation("noFileChosenMessage")||""}getTranslation(s){return this.config.getTranslation(s)}choose(){this.advancedFileInput?.nativeElement.click()}onFileSelect(s){if("drop"!==s.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let p=s.dataTransfer?s.dataTransfer.files:s.target.files;for(let h=0;h<p.length;h++){let v=p[h];this.isFileSelected(v)||this.validate(v)&&(this.isImage(v)&&(v.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(p[h]))),this.files.push(p[h]))}this.onSelect.emit({originalEvent:s,files:p,currentFiles:this.files}),this.checkFileLimit(p),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"
1!==s.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(s){for(let p of this.files)if(p.name+p.type+p.size===s.name+s.type+s.size)return!0;return!1}isIE11(){if((0,B.UE)(this.platformId))return!!this.document.defaultView.MSInputMethodContext&&!!this.document.documentMode}validate(s){if(this.msgs=this.msgs||[],this.accept&&!this.isFileTypeValid(s)){const p=`${this.invalidFileTypeMessageSummary.replace("{0}",s.name)} ${this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}`;return this.msgs.push({severity:"error",text:p}),!1}if(this.maxFileSize&&s.size>this.maxFileSize){const p=`${this.invalidFileSizeMessageSummary.replace("{0}",s.name)} ${this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}`;return this.msgs.push({severity:"error",text:p}),!1}return!0}isFileTypeValid(s){let p=this.accept?.split(",").map(h=>h.trim());for(let h of p)if(this.isWildcard(h)?this.getTypeClass(s.type)===this.getTypeClass(h):s.type==h||this.getFileExtension(s).toLowerCase()===h.toLowerCase())return!0;return!1}getTypeClass(s){return s.substring(0,s.indexOf("/"))}isWildcard(s){return-1!==s.indexOf("*")}getFileExtension(s){return"."+s.name.split(".").pop()}isImage(s){return/^image\//.test(s.type)}onImageLoad(s){window.URL.revokeObjectURL(s.src)}uploader(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let s=new FormData;this.onBeforeUpload.emit({formData:s});for(let p=0;p<this.files.length;p++)s.append(this.name,this.files[p],this.files[p].name);this.http.request(this.method,this.url,{body:s,headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(p=>{switch(p.type){case R.hv.Sent:this.onSend.emit({originalEvent:p,formData:s});break;case R.hv.Response:this.uploading=!1,this.progress=0,p.status>=200&&p.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:p,files:this.files})):this.onError.emit({files:this.files}),this.uploadedFiles.push(...this.files),this.clear();break;case R.hv.UploadProgress:p.loaded&&(this.progress=Math.round(100*p.loaded/p.total)),this.onProgress.emit({originalEvent:p,progress:this.progress})}this.cd.markForCheck()},p=>{this.uploading=!1,this.onError.emit({files:this.files,error:p})})}}clear(){this.files=[],this.uploadedFileCount=0,this.onClear.emit(),this.clearInputElement(),this.msgs=[],this.cd.markForCheck()}remove(s,p){this.clearInputElement(),this.onRemove.emit({originalEvent:s,file:this.files[p]}),this.files.splice(p,1),this.checkFileLimit(this.files)}removeUploadedFile(s){let p=this.uploadedFiles.splice(s,1)[0];this.uploadedFiles=[...this.uploadedFiles],this.onRemoveUploadedFile.emit({file:p,files:this.uploadedFiles})}isFileLimitExceeded(){const p=this.auto?this.files.length:this.files.length+this.uploadedFileCount;return this.fileLimit&&this.fileLimit<=p&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<p}isChooseDisabled(){return this.auto?this.fileLimit&&this.fileLimit<=this.files.length:this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(s){this.msgs??=[];const p=this.msgs.length>0&&this.fileLimit&&this.fileLimit<s.length;if(this.isFileLimitExceeded()||p){const h=`${this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString())} ${this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}`;this.msgs.push({severity:"error",text:h})}else this.msgs=this.msgs.filter(h=>!h.text.includes(this.invalidFileLimitMessageSummary))}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}hasUploadedFiles(){return this.uploadedFiles&&this.uploadedFiles.length>0}onDragEnter(s){this.disabled||(s.stopPropagation(),s.preventDefault())}onDragOver(s){this.disabled||((0,y.iQ)(this.content?.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,s.stopPropagation(),s.preventDefault())}onDragLeave(s){this.disabled||(0,y.vy)(this.content?.nativeElement,"p-fileupload-highlight")}onDrop(s){if(!this.disabled){(0,y.vy)(this.content?.nativeElement,"p-fileupload-highlight"),s.stopPropagation(),s.preventDefault();let p=s.dataTransfer?s.dataTransfer.files:s.target.files;(this.multiple||p&&1===p.length)&&this.onFileSelect(s)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(s){const v=this.getTranslation(x.Yj.FILE_SIZE_TYPES);if(0===s)return`0 ${v[0]}`;const w=Math.floor(Math.log(s)/Math.log(1024));return`${(s/Math.pow(1024,w)).toFixed(3)} ${v[w]}`}upload(){this.hasFiles()&&this.uploader()}onBasicUploaderClick(){this.basicFileInput?.nativeElement.click()}onBasicKeydown(s){switch(s.code){case"Space":case"Enter":this.onBasicUploaderClick(),s.preventDefault()}}imageError(s){this.onImageError.emit(s)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(x.Yj.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(x.Yj.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(x.Yj.CANCEL)}get browseFilesLabel(){return this.config.getTranslation(x.Yj.ARIA)[x.Yj.BROWSE_FILES]}
1get pendingLabel(){return this.config.getTranslation(x.Yj.PENDING)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.dragOverListener&&(this.dragOverListener(),this.dragOverListener=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=(()=>{let s;return function(h){return(s||(s=t.xGo(o)))(h||o)}})();static \u0275cmp=t.VBU({type:o,selectors:[["p-fileupload"],["p-fileUpload"]],contentQueries:function(p,h,v){if(1&p&&(t.wni(v,re,4),t.wni(v,xe,4),t.wni(v,ct,4),t.wni(v,Vt,4),t.wni(v,Gt,4),t.wni(v,zt,4),t.wni(v,Nt,4),t.wni(v,At,4),t.wni(v,dt,4),t.wni(v,x.Ei,4)),2&p){let w;t.mGM(w=t.lsd())&&(h.fileTemplate=w.first),t.mGM(w=t.lsd())&&(h.headerTemplate=w.first),t.mGM(w=t.lsd())&&(h.contentTemplate=w.first),t.mGM(w=t.lsd())&&(h.toolbarTemplate=w.first),t.mGM(w=t.lsd())&&(h.chooseIconTemplate=w.first),t.mGM(w=t.lsd())&&(h.fileLabelTemplate=w.first),t.mGM(w=t.lsd())&&(h.uploadIconTemplate=w.first),t.mGM(w=t.lsd())&&(h.cancelIconTemplate=w.first),t.mGM(w=t.lsd())&&(h.emptyTemplate=w.first),t.mGM(w=t.lsd())&&(h.templates=w)}},viewQuery:function(p,h){if(1&p&&(t.GBs(pt,5),t.GBs(Ut,5),t.GBs(ct,5)),2&p){let v;t.mGM(v=t.lsd())&&(h.advancedFileInput=v.first),t.mGM(v=t.lsd())&&(h.basicFileInput=v.first),t.mGM(v=t.lsd())&&(h.content=v.first)}},inputs:{name:"name",url:"url",method:"method",multiple:[2,"multiple","multiple",t.L39],accept:"accept",disabled:[2,"disabled","disabled",t.L39],auto:[2,"auto","auto",t.L39],withCredentials:[2,"withCredentials","withCredentials",t.L39],maxFileSize:[2,"maxFileSize","maxFileSize",t.Udg],invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:[2,"previewWidth","previewWidth",t.Udg],chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:[2,"showUploadButton","showUploadButton",t.L39],showCancelButton:[2,"showCancelButton","showCancelButton",t.L39],mode:"mode",headers:"headers",customUpload:[2,"customUpload","customUpload",t.L39],fileLimit:[2,"fileLimit","fileLimit",s=>(0,t.Udg)(s,null)],uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",chooseButtonProps:"chooseButtonProps",uploadButtonProps:"uploadButtonProps",cancelButtonProps:"cancelButtonProps",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError",onRemoveUploadedFile:"onRemoveUploadedFile"},features:[t.Jv_([q]),t.Vt3],decls:2,vars:2,consts:[["advancedfileinput",""],["content",""],["icon",""],["basicfileinput",""],[3,"ngClass","ngStyle","class",4,"ngIf"],[3,"ngClass","class",4,"ngIf"],[3,"ngClass","ngStyle"],["type","file",3,"change","multiple","accept","disabled"],[1,"p-fileupload-header"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],[3,"value","showValue",4,"ngIf"],[3,"severity","text"],["class","p-fileupload-file-list",4,"ngIf"],[3,"focus","blur","onClick","keydown.enter","styleClass","disabled","label","buttonProps"],[3,"class",4,"ngIf"],[3,"label","disabled","styleClass","buttonProps","onClick",4,"ngIf"],[3,"onClick","label","disabled","styleClass","buttonProps"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"value","showValue"],[1,"p-fileupload-file-list"],[1,"p-fileupload-file"],["ngFor","",3,"ngForOf","ngForTemplate"],["class","p-fileupload-file",4,"ngFor","ngForOf"],["class","p-fileupload-file-thumbnail",3,"src","width","error",4,"ngIf"],[1,"p-fileupload-file-info"],[1,"p-fileupload-file-name"],[1,"p-fileupload-file-size"],[1,"p-fileupload-file-actions"],["text","","rounded","","severity","danger",3,"onClick","disabled","styleClass"],[1,"p-fileupload-file-thumbnail",3,"error","src","width"],[3,"onClick","keydown","styleClass","disabled","label","buttonProps"],["type","file",3,"change","focus","blur","accept","multiple","disabled"],["class","p-button-icon p-button-icon-left",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left",3,"ngClass"],[3,"styleClass",4,"ngIf"],["class","p-button-icon p-button-icon-left",4,"ngIf"],[3,"styleClass"],[1,"p-button-icon","p-button-icon-left"],["class","p-button-icon p-button-icon-left pi",3,"ngClass",4,"ngIf"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],[3,"class"]],template:function(p,h){1&p&&t.DNE(0,Oe,15,39,"div",4)(1,Ae,9,16,"div",5),2&p&&(t.Y8G("ngIf","advanced"===h.mode),t.R7$(),t.Y8G("ngIf","basic"===h.mode))},dependencies:[l.MD,l.YU,l.Sq,l.bT,l.T3,l.B3,D.$n,lt,tt,b.c,T,P.A,x.Gg],encapsulation:2,changeDetection:0})}return o}
1)(),Ft=(()=>{class o{static \u0275fac=function(p){return new(p||o)};static \u0275mod=t.$C({type:o});static \u0275inj=t.G2t({imports:[ee,x.Gg,x.Gg]})}return o})()},883:(_e,V,f)=>{f.d(V,{c:()=>t});var l=f(4557),B=f(187),R=f(7727);let t=(()=>{class F extends R.h_{pathId;ngOnInit(){this.pathId="url(#"+(0,B.bu)()+")"}static \u0275fac=(()=>{let x;return function(D){return(x||(x=l.xGo(F)))(D||F)}})();static \u0275cmp=l.VBU({type:F,selectors:[["PlusIcon"]],features:[l.Vt3],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(k,D){1&k&&(l.qSk(),l.j41(0,"svg",0)(1,"g"),l.nrm(2,"path",1),l.k0s(),l.j41(3,"defs")(4,"clipPath",2),l.nrm(5,"rect",3),l.k0s()()()),2&k&&(l.HbH(D.getClassNames()),l.BMQ("aria-label",D.ariaLabel)("aria-hidden",D.ariaHidden)("role",D.role),l.R7$(),l.BMQ("clip-path",D.pathId),l.R7$(3),l.Y8G("id",D.pathId))},encapsulation:2})}return F})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.