. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 52.223.31.75 / Your IP : 172.31.6.220 [ Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE Domains : 4 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/sapere/_www/ |
Upload File : |
"use strict";(self.webpackChunkSapere=self.webpackChunkSapere||[]).push([[546],{1391:(Ut,at,p)=>{p.d(at,{HD:()=>pt,O7:()=>kt,T1:()=>Mt});var s=p(4438),M=p(177),N=p(5478),F=p(8617),b=p(4085),E=p(6860),f=p(1413),I=p(8359),lt=p(605),ht=p(536),Q=p(1985),K=p(7786),k=p(4412),B=p(6977),Y=p(6354),L=p(6697),dt=p(8141),ct=p(5558),H=p(9172),z=p(8203);function J(r){const e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let n=0;n<t.length;n++)t[n].removeAttribute("id");return"canvas"===i?et(r,e):("input"===i||"select"===i||"textarea"===i)&&tt(r,e),V("canvas",r,e,et),V("input, textarea, select",r,e,tt),e}function V(r,e,t,i){const n=e.querySelectorAll(r);if(n.length){const o=t.querySelectorAll(r);for(let a=0;a<n.length;a++)i(n[a],o[a])}}let q=0;function tt(r,e){"file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${q++}`)}function et(r,e){const t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch{}}function A(r){const e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function W(r,e,t){const{top:i,bottom:n,left:o,right:a}=r;return t>=i&&t<=n&&e>=o&&e<=a}function x(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function _t(r,e,t,i){const{top:n,right:o,bottom:a,left:l,width:h,height:d}=r,g=h*e,m=d*e;return i>n-m&&i<a+m&&t>l-g&&t<o+g}class it{constructor(e){this._document=e,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:A(t)})})}handleScroll(e){const t=(0,E.Fb)(e),i=this.positions.get(t);if(!i)return null;const n=i.scrollPosition;let o,a;if(t===this._document){const d=this.getViewportScrollPosition();o=d.top,a=d.left}else o=t.scrollTop,a=t.scrollLeft;const l=n.top-o,h=n.left-a;return this.positions.forEach((d,g)=>{d.clientRect&&t!==g&&t.contains(g)&&x(d.clientRect,l,h)}),n.top=o,n.left=a,{top:l,left:h}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function nt(r,e){const t=r.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(n=>i.appendChild(n)),i}function G(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){const n=e[i];n?r.setProperty(i,n,t?.has(i)?"important":""):r.removeProperty(i)}return r}function C(r,e){const t=e?"":"none";G(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function gt(r,e,t){G(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function c(r,e){return e&&"none"!=e?r+" "+e:r}function v(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=_(e.left,e.top)}function _(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function u(r){const e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function R(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}const j=new Set(["position"]);class Nt{get element(){return this._preview}constructor(e,t,i,n,o,a,l,h,d){this._document=e,this._rootElement=t,this._direction=i,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=a,this._pickupPositionOnPage=l,this._initialTransform=h,this._zIndex=d}attach(e){this._preview=this._createPreview(),e.appendChild(this._preview),mt(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(e){this._preview.style.transform=e}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(e){this._preview.classList.add(e)}getTransitionDuration(){return function P(r){const e=getComputedStyle(r),t=R(e,"transition-property"),i=t.find(l=>"transform"===l||"all"===l);if(!i)return 0;const n=t.indexOf(i),o=R(e,"transition-duration"),a=R(e,"transition-delay");return u(o[n])+u(a[n])}(this._preview)}addEventListener(e,t){this._preview.addEventListener(e,t)}removeEventListener(e,t){this._preview.removeEventListener(e,t)}_createPreview(){const e=this._previewTemplate,t=this._previewClass,i=e?e.template:null;let n;if(i&&e){const o=e.matchSize?this._initialDomRect:null,a=e.viewContainer.createEmbeddedView(i,e.context);a.detectChanges(),n=nt(a,this._document),this._previewEmbeddedView=a,e.matchSize?v(n,o):n.style.transform=_(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=J(this._rootElement),v(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return G(n.style,{"pointer-events":"none",margin:mt(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},j),C(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(o=>n.classList.add(o)):n.classList.add(t)),n}}function mt(r){return"showPopover"in r}const vt=(0,E.BQ)({passive:!0}),st=(0,E.BQ)({passive:!1}),Dt=(0,E.BQ)({passive:!1,capture:!0}),bt=new Set(["position"]);class Kt{get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(t=>C(t,e)))}constructor(e,t,i,n,o,a){this._config=t,this._document=i,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=a,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=(0,s.vPA)(!1),this._moveEvents=new f.B,this._pointerMoveSubscription=I.yU.EMPTY,this._pointerUpSubscription=I.yU.EMPTY,this._scrollSubscription=I.yU.EMPTY,this._resizeSubscription=I.yU.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this.scale=1,this._disabled=!1,this.beforeStarted=new f.B,this.started=new f.B,this.released=new f.B,this.ended=new f.B,this.entered=new f.B,this.exited=new f.B,this.dropped=new f.B,this.moved=this._moveEvents,this._pointerDown=l=>{if(this.beforeStarted.next(),this._handles.length){const h=this._getTargetHandle(l);h&&!this._disabledHandles.has(h)&&!this.disabled&&this._initializeDragSequence(h,l)}else this.disabled||this._initializeDragSequence(this._rootElement,l)},this._pointerMove=l=>{const h=this._getPointerPositionOnPage(l);if(!this._hasStartedDragging()){if(Math.abs(h.x-this._pickupPositionOnPage.x)+Math.abs(h.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const T=Date.now()>=this._dragStartTime+this._getDragStartDelay(l),O=this._dropContainer;if(!T)return void this._endDragSequence(l);(!O||!O.isDragging()&&!O.isReceiving())&&(l.cancelable&&l.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(l)))}return}l.cancelable&&l.preventDefault();const d=this._getConstrainedPointerPosition(h);if(this._hasMoved=!0,this._lastKnownPointerPosition=h,this._updatePointerDirectionDelta(d),this._dropContainer)this._updateActiveDropContainer(d,h);else{const g=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,m=this._activeTransform;m.x=d.x-g.x+this._passiveTransform.x,m.y=d.y-g.y+this._passiveTransform.y,this._applyRootElementTransform(m.x,m.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:d,event:l,distance:this._getDragDistance(d),delta:this._pointerDirectionDelta})})},this._pointerUp=l=>{this._endDragSequence(l)},this._nativeDragStart=l=>{if(this._handles.length){const h=this._getTargetHandle(l);h&&!this._disabledHandles.has(h)&&!this.disabled&&l.preventDefault()}else this.disabled||l.preventDefault()},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new it(i),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>(0,b.i8)(i)),this._handles.forEach(i=>C(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=(0,b.i8)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,st),t.addEventListener("touchstart",this._pointerDown,vt),t.addEventListener("dragstart",this._nativeDragStart,st)}),this._initialTransform=void 0,this._rootElement=t),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?(0,b.i8)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){this._removeRootElementListeners(this._rootElement),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(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),C(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),C(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._getShadowRoot()?.removeEventListener("selectstart",Pt,Dt)}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){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:e}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t,event:e})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){X(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._getShadowRoot(),i=this._dropContainer;if(t&&this._ngZone.runOutsideAngular(()=>{t.addEventListener("selectstart",Pt,Dt)}),i){const n=this._rootElement,o=n.parentNode,a=this._placeholder=this._createPlaceholderElement(),l=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(l,n),this._initialTransform=n.style.transform||"",this._preview=new Nt(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3),this._preview.attach(this._getPreviewInsertionPoint(o,t)),gt(n,!1,bt),this._document.body.appendChild(o.replaceChild(a,n)),this.started.next({source:this,event:e}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:e}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),n=X(t),o=!n&&0!==t.button,a=this._rootElement,l=(0,E.Fb)(t),h=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),d=n?(0,F.w6)(t):(0,F._G)(t);if(l&&l.draggable&&"mousedown"===t.type&&t.preventDefault(),i||o||h||d)return;if(this._handles.length){const y=a.style;this._rootElementTapHighlight=y.webkitTapHighlightColor||"",y.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(y=>this._updateOnScroll(y)),this._boundaryElement&&(this._boundaryRect=A(this._boundaryElement));const g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,e,t);const m=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:m.x,y:m.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){gt(this._rootElement,!0,bt),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 t=this._dropContainer,i=t.getItemIndex(this),n=this._getPointerPositionOnPage(e),o=this._getDragDistance(n),a=t._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:e}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:n,event:e}),t.drop(this,i,this._initialIndex,this._initialContainer,a,o,n,e),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,e,t,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(e,t):this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=this._preview.getTransitionDuration();return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const n=a=>{(!a||this._preview&&(0,E.Fb)(a)===this._preview.element&&"transform"===a.propertyName)&&(this._preview?.removeEventListener("transitionend",n),i(),clearTimeout(o))},o=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=nt(this._placeholderRef,this._document)):i=J(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t,i){const n=t===this._rootElement?null:t,o=n?n.getBoundingClientRect():e,a=X(i)?i.targetTouches[0]:i,l=this._getViewportScrollPosition();return{x:o.left-e.left+(a.pageX-o.left-l.left),y:o.top-e.top+(a.pageY-o.top-l.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=X(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,n=i.pageX-t.left,o=i.pageY-t.top;if(this._ownerSVGElement){const a=this._ownerSVGElement.getScreenCTM();if(a){const l=this._ownerSVGElement.createSVGPoint();return l.x=n,l.y=o,l.matrixTransform(a.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(e,this,this._initialDomRect,this._pickupPositionInElement):e;if("x"===this.lockAxis||"x"===t?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){const{x:o,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,l=this._boundaryRect,{width:h,height:d}=this._getPreviewRect(),g=l.top+a,m=l.bottom-(d-a);i=Et(i,l.left+o,l.right-(h-o)),n=Et(n,g,m)}return{x:i,y:n}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-o.x),l=Math.abs(i-o.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=t>o.x?1:-1,o.x=t),l>this._config.pointerDirectionChangeThreshold&&(n.y=i>o.y?1:-1,o.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,C(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,st),e.removeEventListener("touchstart",this._pointerDown,vt),e.removeEventListener("dragstart",this._nativeDragStart,st)}_applyRootElementTransform(e,t){const i=1/this.scale,n=_(e*i,t*i),o=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=o.transform&&"none"!=o.transform?o.transform:""),o.transform=c(n,this._initialTransform)}_applyPreviewTransform(e,t){const i=this._previewTemplate?.template?void 0:this._initialTransform,n=_(e,t);this._preview.setTransform(c(n,i))}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const o=n.left-i.left,a=i.right-n.right,l=n.top-i.top,h=i.bottom-n.bottom;n.width>i.width?(o>0&&(e+=o),a>0&&(e-=a)):e=0,n.height>i.height?(l>0&&(t+=l),h>0&&(t-=h)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:X(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=(0,E.Fb)(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&x(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.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=(0,E.KT)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const n=this._document;return t||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return(0,b.i8)(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_getTargetHandle(e){return this._handles.find(t=>e.target&&(e.target===t||t.contains(e.target)))}}function Et(r,e,t){return Math.max(e,Math.min(t,r))}function X(r){return"t"===r.type[0]}function Pt(r){r.preventDefault()}function pt(r,e,t){const i=Z(e,r.length-1),n=Z(t,r.length-1);if(i===n)return;const o=r[i],a=n<i?-1:1;for(let l=i;l!==n;l+=a)r[l]=r[l+a];r[n]=o}function Z(r,e){return Math.max(0,Math.min(e,r))}class wt{constructor(e){this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(e){this.withItems(e)}sort(e,t,i,n){const o=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,i,n);if(-1===a&&o.length>0)return null;const l="horizontal"===this.orientation,h=o.findIndex(S=>S.drag===e),d=o[a],m=d.clientRect,y=h>a?1:-1,T=this._getItemOffsetPx(o[h].clientRect,m,y),O=this._getSiblingOffsetPx(h,o,y),U=o.slice();return pt(o,h,a),o.forEach((S,te)=>{if(U[te]===S)return;const Bt=S.drag===e,ft=Bt?T:O,Lt=Bt?e.getPlaceholderElement():S.drag.getRootElement();S.offset+=ft;const At=Math.round(S.offset*(1/S.drag.scale));l?(Lt.style.transform=c(`translate3d(${At}px, 0, 0)`,S.initialTransform),x(S.clientRect,0,ft)):(Lt.style.transform=c(`translate3d(0, ${At}px, 0)`,S.initialTransform),x(S.clientRect,ft,0))}),this._previousSwap.overlaps=W(m,t,i),this._previousSwap.drag=d.drag,this._previousSwap.delta=l?n.x:n.y,{previousIndex:h,currentIndex:a}}enter(e,t,i,n){const o=null==n||n<0?this._getItemIndexFromPointerPosition(e,t,i):n,a=this._activeDraggables,l=a.indexOf(e),h=e.getPlaceholderElement();let d=a[o];if(d===e&&(d=a[o+1]),!d&&(null==o||-1===o||o<a.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(d=a[0]),l>-1&&a.splice(l,1),d&&!this._dragDropRegistry.isDragging(d)){const g=d.getRootElement();g.parentElement.insertBefore(h,g),a.splice(o,0,e)}else this._element.appendChild(h),a.push(e);h.style.transform="",this._cacheItemPositions()}withItems(e){this._activeDraggables=e.slice(),this._cacheItemPositions()}withSortPredicate(e){this._sortPredicate=e}reset(){this._activeDraggables?.forEach(e=>{const t=e.getRootElement();if(t){const i=this._itemPositions.find(n=>n.drag===e)?.initialTransform;t.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(e){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e)}updateOnScroll(e,t){this._itemPositions.forEach(({clientRect:i})=>{x(i,e,t)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(e){this._element=e}_cacheItemPositions(){const e="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:A(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_getItemOffsetPx(e,t,i){const n="horizontal"===this.orientation;let o=n?t.left-e.left:t.top-e.top;return-1===i&&(o+=n?t.width-e.width:t.height-e.height),o}_getSiblingOffsetPx(e,t,i){const n="horizontal"===this.orientation,o=t[e].clientRect,a=t[e+-1*i];let l=o[n?"width":"height"]*i;if(a){const h=n?"left":"top",d=n?"right":"bottom";-1===i?l-=a.clientRect[h]-o[d]:l+=o[h]-a.clientRect[d]}return l}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const a=i[i.length-1].clientRect;return n?e>=a.right:t>=a.bottom}{const a=i[0].clientRect;return n?e<=a.left:t<=a.top}}_getItemIndexFromPointerPosition(e,t,i,n){const o="horizontal"===this.orientation,a=this._itemPositions.findIndex(({drag:l,clientRect:h})=>l!==e&&((!n||l!==this._previousSwap.drag||!this._previousSwap.overlaps||(o?n.x:n.y)!==this._previousSwap.delta)&&(o?t>=Math.floor(h.left)&&t<Math.floor(h.right):i>=Math.floor(h.top)&&i<Math.floor(h.bottom))));return-1!==a&&this._sortPredicate(a,e)?a:-1}}class Ht{constructor(e,t){this._document=e,this._dragDropRegistry=t,this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1},this._relatedNodes=[]}start(e){const t=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<t.length;i++){const n=t[i];this._relatedNodes.push([n,n.nextSibling])}this.withItems(e)}sort(e,t,i,n){const o=this._getItemIndexFromPointerPosition(e,t,i),a=this._previousSwap;if(-1===o||this._activeItems[o]===e)return null;const l=this._activeItems[o];if(a.drag===l&&a.overlaps&&a.deltaX===n.x&&a.deltaY===n.y)return null;const h=this.getItemIndex(e),d=e.getPlaceholderElement(),g=l.getRootElement();o>h?g.after(d):g.before(d),pt(this._activeItems,h,o);const m=this._getRootNode().elementFromPoint(t,i);return a.deltaX=n.x,a.deltaY=n.y,a.drag=l,a.overlaps=g===m||g.contains(m),{previousIndex:h,currentIndex:o}}enter(e,t,i,n){let o=null==n||n<0?this._getItemIndexFromPointerPosition(e,t,i):n;-1===o&&(o=this._getClosestItemIndexToPointer(e,t,i));const a=this._activeItems[o],l=this._activeItems.indexOf(e);l>-1&&this._activeItems.splice(l,1),a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(o,0,e),a.getRootElement().before(e.getPlaceholderElement())):(this._activeItems.push(e),this._element.appendChild(e.getPlaceholderElement()))}withItems(e){this._activeItems=e.slice()}withSortPredicate(e){this._sortPredicate=e}reset(){const e=this._element,t=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){const[n,o]=this._relatedNodes[i];n.parentNode===e&&n.nextSibling!==o&&(null===o?e.appendChild(n):o.parentNode===e&&e.insertBefore(n,o))}this._relatedNodes=[],this._activeItems=[],t.drag=null,t.deltaX=t.deltaY=0,t.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(e){return this._activeItems.indexOf(e)}updateOnScroll(){this._activeItems.forEach(e=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()})}withElementContainer(e){e!==this._element&&(this._element=e,this._rootNode=void 0)}_getItemIndexFromPointerPosition(e,t,i){const n=this._getRootNode().elementFromPoint(Math.floor(t),Math.floor(i)),o=n?this._activeItems.findIndex(a=>{const l=a.getRootElement();return n===l||l.contains(n)}):-1;return-1!==o&&this._sortPredicate(o,e)?o:-1}_getRootNode(){return this._rootNode||(this._rootNode=(0,E.KT)(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(e,t,i){if(0===this._activeItems.length)return-1;if(1===this._activeItems.length)return 0;let n=1/0,o=-1;for(let a=0;a<this._activeItems.length;a++){const l=this._activeItems[a];if(l!==e){const{x:h,y:d}=l.getRootElement().getBoundingClientRect(),g=Math.hypot(t-h,i-d);g<n&&(n=g,o=a)}}return o}}var w=function(r){return r[r.NONE=0]="NONE",r[r.UP=1]="UP",r[r.DOWN=2]="DOWN",r}(w||{}),D=function(r){return r[r.NONE=0]="NONE",r[r.LEFT=1]="LEFT",r[r.RIGHT=2]="RIGHT",r}(D||{});class zt{constructor(e,t,i,n,o){this._dragDropRegistry=t,this._ngZone=n,this._viewportRuler=o,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new f.B,this.entered=new f.B,this.exited=new f.B,this.dropped=new f.B,this.sorted=new f.B,this.receivingStarted=new f.B,this.receivingStopped=new f.B,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=I.yU.EMPTY,this._verticalScrollDirection=w.NONE,this._horizontalScrollDirection=D.NONE,this._stopScrollTimers=new f.B,this._cachedShadowRoot=null,this._scrollableElements=[],this._direction="ltr",this._startScrollInterval=()=>{this._stopScrolling(),(0,lt.Y)(0,ht.X).pipe((0,B.Q)(this._stopScrollTimers)).subscribe(()=>{const l=this._scrollNode,h=this.autoScrollStep;this._verticalScrollDirection===w.UP?l.scrollBy(0,-h):this._verticalScrollDirection===w.DOWN&&l.scrollBy(0,h),this._horizontalScrollDirection===D.LEFT?l.scrollBy(-h,0):this._horizontalScrollDirection===D.RIGHT&&l.scrollBy(h,0)})};const a=this.element=(0,b.i8)(e);this._document=i,this.withOrientation("vertical").withElementContainer(a),t.registerDropContainer(this),this._parentPositions=new it(i)}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(e,t,i,n){this._draggingStarted(),null==n&&this.sortingDisabled&&(n=this._draggables.indexOf(e)),this._sortStrategy.enter(e,t,i,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,n,o,a,l,h={}){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:o,distance:a,dropPoint:l,event:h})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(n=>n.isDragging()).every(n=>-1===e.indexOf(n))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(e){return this._direction=e,this._sortStrategy instanceof wt&&(this._sortStrategy.direction=e),this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){if("mixed"===e)this._sortStrategy=new Ht(this._document,this._dragDropRegistry);else{const t=new wt(this._dragDropRegistry);t.direction=this._direction,t.orientation=e,this._sortStrategy=t}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((t,i)=>this.sortPredicate(t,i,this)),this}withScrollableParents(e){const t=this._container;return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}withElementContainer(e){if(e===this._container)return this;(0,b.i8)(this.element);const i=this._scrollableElements.indexOf(this._container),n=this._scrollableElements.indexOf(e);return i>-1&&this._scrollableElements.splice(i,1),n>-1&&this._scrollableElements.splice(n,1),this._sortStrategy&&this._sortStrategy.withElementContainer(e),this._cachedShadowRoot=null,this._scrollableElements.unshift(e),this._container=e,this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?this._sortStrategy.getItemIndex(e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,n){if(this.sortingDisabled||!this._domRect||!_t(this._domRect,.05,t,i))return;const o=this._sortStrategy.sort(e,t,i,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:e})}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,n=w.NONE,o=D.NONE;if(this._parentPositions.positions.forEach((a,l)=>{l===this._document||!a.clientRect||i||_t(a.clientRect,.05,e,t)&&([n,o]=function Vt(r,e,t,i,n){const o=Ct(e,n),a=Rt(e,i);let l=w.NONE,h=D.NONE;if(o){const d=r.scrollTop;o===w.UP?d>0&&(l=w.UP):r.scrollHeight-d>r.clientHeight&&(l=w.DOWN)}if(a){const d=r.scrollLeft;"rtl"===t?a===D.RIGHT?d<0&&(h=D.RIGHT):r.scrollWidth+d>r.clientWidth&&(h=D.LEFT):a===D.LEFT?d>0&&(h=D.LEFT):r.scrollWidth-d>r.clientWidth&&(h=D.RIGHT)}return[l,h]}(l,a.clientRect,this._direction,e,t),(n||o)&&(i=l))}),!n&&!o){const{width:a,height:l}=this._viewportRuler.getViewportSize(),h={width:a,height:l,top:0,right:a,bottom:l,left:0};n=Ct(h,t),o=Rt(h,e),i=window}i&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=i,(n||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.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 e=this._container.style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(t=>t._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(e,t){return null!=this._domRect&&W(this._domRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(n=>n._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._domRect||!W(this._domRect,t,i)||!this.enterPredicate(e,this))return!1;const n=this._getShadowRoot().elementFromPoint(t,i);return!!n&&(n===this._container||this._container.contains(n))}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:e,receiver:this,items:t}))}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:e,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&this._sortStrategy.updateOnScroll(t.top,t.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=(0,E.KT)(this._container);this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._sortStrategy.getActiveItemsSnapshot().filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function Ct(r,e){const{top:t,bottom:i,height:n}=r,o=.05*n;return e>=t-o&&e<=t+o?w.UP:e>=i-o&&e<=i+o?w.DOWN:w.NONE}function Rt(r,e){const{left:t,right:i,width:n}=r,o=.05*n;return e>=t-o&&e<=t+o?D.LEFT:e>=i-o&&e<=i+o?D.RIGHT:D.NONE}const ot=(0,E.BQ)({passive:!1,capture:!0}),rt=new Set;let Wt=(()=>{class r{static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=s.VBU({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],standalone:!0,features:[s.aNF],decls:0,vars:0,template:function(i,n){},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}"],encapsulation:2,changeDetection:0})}}return r})(),Gt=(()=>{class r{constructor(t,i){this._ngZone=t,this._appRef=(0,s.WQX)(s.o8S),this._environmentInjector=(0,s.WQX)(s.uvJ),this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=(0,s.vPA)([]),this._globalListeners=new Map,this._draggingPredicate=n=>n.isDragging(),this.pointerMove=new f.B,this.pointerUp=new f.B,this.scroll=new f.B,this._preventDefaultWhileDragging=n=>{this._activeDragInstances().length>0&&n.preventDefault()},this._persistentTouchmoveListener=n=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&n.preventDefault(),this.pointerMove.next(n))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,ot)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,ot)}startDragging(t,i){if(!(this._activeDragInstances().indexOf(t)>-1)&&(this._loadResets(),this._activeDragInstances.update(n=>[...n,t]),1===this._activeDragInstances().length)){const n=i.type.startsWith("touch");this._globalListeners.set(n?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:ot}),n||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:ot}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,a)=>{this._document.addEventListener(a,o.handler,o.options)})})}}stopDragging(t){this._activeDragInstances.update(i=>{const n=i.indexOf(t);return n>-1?(i.splice(n,1),[...i]):i}),0===this._activeDragInstances().length&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances().indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new Q.c(n=>this._ngZone.runOutsideAngular(()=>{const a=l=>{this._activeDragInstances().length&&n.next(l)};return t.addEventListener("scroll",a,!0),()=>{t.removeEventListener("scroll",a,!0)}}))),(0,K.h)(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}_loadResets(){if(!rt.has(this._appRef)){rt.add(this._appRef);const t=(0,s.a0P)(Wt,{environmentInjector:this._environmentInjector});this._appRef.onDestroy(()=>{rt.delete(this._appRef),0===rt.size&&t.destroy()})}}static{this.\u0275fac=function(i){return new(i||r)(s.KVO(s.SKi),s.KVO(M.qQ))}}static{this.\u0275prov=s.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();const jt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let It=(()=>{class r{constructor(t,i,n,o){this._document=t,this._ngZone=i,this._viewportRuler=n,this._dragDropRegistry=o}createDrag(t,i=jt){return new Kt(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new zt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static{this.\u0275fac=function(i){return new(i||r)(s.KVO(M.qQ),s.KVO(s.SKi),s.KVO(N.Xj),s.KVO(Gt))}}static{this.\u0275prov=s.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();const $=new s.nKC("CDK_DRAG_PARENT"),xt=new s.nKC("CdkDragHandle"),Tt=new s.nKC("CDK_DRAG_CONFIG"),Ot=new s.nKC("CdkDropList");let Mt=(()=>{class r{static{this._dragInstances=[]}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=t,this._dragRef.disabled=this._disabled}constructor(t,i,n,o,a,l,h,d,g,m,y){this.element=t,this.dropContainer=i,this._ngZone=o,this._viewContainerRef=a,this._dir=h,this._changeDetectorRef=g,this._selfHandle=m,this._parentDrag=y,this._destroyed=new f.B,this._handles=new k.t([]),this.scale=1,this.started=new s.bkB,this.released=new s.bkB,this.ended=new s.bkB,this.entered=new s.bkB,this.exited=new s.bkB,this.dropped=new s.bkB,this.moved=new Q.c(T=>{const O=this._dragRef.moved.pipe((0,Y.T)(U=>({source:this,pointerPosition:U.pointerPosition,event:U.event,delta:U.delta,distance:U.distance}))).subscribe(T);return()=>{O.unsubscribe()}}),this._injector=(0,s.WQX)(s.zZn),this._dragRef=d.createDrag(t,{dragStartThreshold:l&&null!=l.dragStartThreshold?l.dragStartThreshold:5,pointerDirectionChangeThreshold:l&&null!=l.pointerDirectionChangeThreshold?l.pointerDirectionChangeThreshold:5,zIndex:l?.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),l&&this._assignDefaults(l),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this),i._dropListRef.beforeStarted.pipe((0,B.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(t){this._dragRef.setFreeDragPosition(t)}ngAfterViewInit(){(0,s.mal)(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(t){const i=t.rootElementSelector,n=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(t){const i=this._handles.getValue();i.push(t),this._handles.next(i)}_removeHandle(t){const i=this._handles.getValue(),n=i.indexOf(t);n>-1&&(i.splice(n,1),this._handles.next(i))}_setPreviewTemplate(t){this._previewTemplate=t}_resetPreviewTemplate(t){t===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(t){this._placeholderTemplate=t}_resetPlaceholderTemplate(t){t===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){const t=this.element.nativeElement;let i=t;this.rootElementSelector&&(i=void 0!==t.closest?t.closest(this.rootElementSelector):t.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||t)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):(0,b.i8)(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const i=this._dir,n=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.scale=this.scale,t.dragStartDelay="object"==typeof n&&n?n:(0,b.OE)(n),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe((0,L.s)(1)).subscribe(()=>{if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let i=this.element.nativeElement.parentElement;for(;i;){if(i.classList.contains("cdk-drag")){t.withParent(r._dragInstances.find(n=>n.element.nativeElement===i)?._dragRef||null);break}i=i.parentElement}})}_handleEvents(t){t.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(t){const{lockAxis:i,dragStartDelay:n,constrainPosition:o,previewClass:a,boundaryElement:l,draggingDisabled:h,rootElementSelector:d,previewContainer:g}=t;this.disabled=h??!1,this.dragStartDelay=n||0,i&&(this.lockAxis=i),o&&(this.constrainPosition=o),a&&(this.previewClass=a),l&&(this.boundaryElement=l),d&&(this.rootElementSelector=d),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.pipe((0,dt.M)(t=>{const i=t.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),(0,ct.n)(t=>(0,K.h)(...t.map(i=>i._stateChanges.pipe((0,H.Z)(i))))),(0,B.Q)(this._destroyed)).subscribe(t=>{const i=this._dragRef,n=t.element.nativeElement;t.disabled?i.disableHandle(n):i.enableHandle(n)})}static{this.\u0275fac=function(i){return new(i||r)(s.rXU(s.aKT),s.rXU(Ot,12),s.rXU(M.qQ),s.rXU(s.SKi),s.rXU(s.c1b),s.rXU(Tt,8),s.rXU(z.dS,8),s.rXU(It),s.rXU(s.gRc),s.rXU(xt,10),s.rXU($,12))}}static{this.\u0275dir=s.FsC({type:r,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,n){2&i&&s.AVh("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._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",s.L39],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",s.Udg]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],standalone:!0,features:[s.Jv_([{provide:$,useExisting:r}]),s.GFd,s.OA$]})}}return r})();const ut=new s.nKC("CdkDropListGroup");let Qt=0,kt=(()=>{class r{static{this._dropLists=[]}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=t}constructor(t,i,n,o,a,l,h){this.element=t,this._changeDetectorRef=n,this._scrollDispatcher=o,this._dir=a,this._group=l,this._destroyed=new f.B,this.connectedTo=[],this.id="cdk-drop-list-"+Qt++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new s.bkB,this.entered=new s.bkB,this.exited=new s.bkB,this.sorted=new s.bkB,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,h&&this._assignDefaults(h),this._dropListRef.enterPredicate=(d,g)=>this.enterPredicate(d.data,g.data),this._dropListRef.sortPredicate=(d,g,m)=>this.sortPredicate(d,g.data,m.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),l&&l._items.add(this)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe((0,H.Z)(this._dir.value),(0,B.Q)(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{const i=(0,b.FG)(this.connectedTo).map(n=>"string"==typeof n?r._dropLists.find(a=>a.id===n):n);if(this._group&&this._group._items.forEach(n=>{-1===i.indexOf(n)&&i.push(n)}),!this._scrollableParentsResolved){const n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){const n=this.element.nativeElement.querySelector(this.elementContainerSelector);t.withElementContainer(n)}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=this.sortingDisabled,t.autoScrollDisabled=this.autoScrollDisabled,t.autoScrollStep=(0,b.OE)(this.autoScrollStep,2),t.connectedTo(i.filter(n=>n&&n!==this).map(n=>n._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),(0,K.h)(t.receivingStarted,t.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(t){const{lockAxis:i,draggingDisabled:n,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:l}=t;this.disabled=n??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=l||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}static{this.\u0275fac=function(i){return new(i||r)(s.rXU(s.aKT),s.rXU(It),s.rXU(s.gRc),s.rXU(N.R),s.rXU(z.dS,8),s.rXU(ut,12),s.rXU(Tt,8))}}static{this.\u0275dir=s.FsC({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,n){2&i&&(s.BMQ("id",n.id),s.AVh("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._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",s.L39],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",s.L39],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",s.L39],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],standalone:!0,features:[s.Jv_([{provide:ut,useValue:void 0},{provide:Ot,useExisting:r}]),s.GFd]})}}return r})()},992:(Ut,at,p)=>{p.d(at,{xn:()=>C});var s=p(4438),M=p(177),N=p(9417),F=p(3726),b=p(6977),E=p(1594),f=p(6354),I=p(4412),lt=p(5964),ht=p(5558),Q=p(4668),K=p(1413);const k=()=>{const c=typeof window<"u"?window:void 0;return c&&c.tinymce?c.tinymce:null};let B=(()=>{class c{onBeforePaste=new s.bkB;onBlur=new s.bkB;onClick=new s.bkB;onCompositionEnd=new s.bkB;onCompositionStart=new s.bkB;onCompositionUpdate=new s.bkB;onContextMenu=new s.bkB;onCopy=new s.bkB;onCut=new s.bkB;onDblclick=new s.bkB;onDrag=new s.bkB;onDragDrop=new s.bkB;onDragEnd=new s.bkB;onDragGesture=new s.bkB;onDragOver=new s.bkB;onDrop=new s.bkB;onFocus=new s.bkB;onFocusIn=new s.bkB;onFocusOut=new s.bkB;onKeyDown=new s.bkB;onKeyPress=new s.bkB;onKeyUp=new s.bkB;onMouseDown=new s.bkB;onMouseEnter=new s.bkB;onMouseLeave=new s.bkB;onMouseMove=new s.bkB;onMouseOut=new s.bkB;onMouseOver=new s.bkB;onMouseUp=new s.bkB;onPaste=new s.bkB;onSelectionChange=new s.bkB;onActivate=new s.bkB;onAddUndo=new s.bkB;onBeforeAddUndo=new s.bkB;onBeforeExecCommand=new s.bkB;onBeforeGetContent=new s.bkB;onBeforeRenderUI=new s.bkB;onBeforeSetContent=new s.bkB;onChange=new s.bkB;onClearUndos=new s.bkB;onDeactivate=new s.bkB;onDirty=new s.bkB;onExecCommand=new s.bkB;onGetContent=new s.bkB;onHide=new s.bkB;onInit=new s.bkB;onInput=new s.bkB;onInitNgModel=new s.bkB;onLoadContent=new s.bkB;onNodeChange=new s.bkB;onPostProcess=new s.bkB;onPostRender=new s.bkB;onPreInit=new s.bkB;onPreProcess=new s.bkB;onProgressState=new s.bkB;onRedo=new s.bkB;onRemove=new s.bkB;onReset=new s.bkB;onResizeEditor=new s.bkB;onSaveContent=new s.bkB;onSetAttrib=new s.bkB;onObjectResizeStart=new s.bkB;onObjectResized=new s.bkB;onObjectSelected=new s.bkB;onSetContent=new s.bkB;onShow=new s.bkB;onSubmit=new s.bkB;onUndo=new s.bkB;onVisualAid=new s.bkB;static \u0275fac=function(u){return new(u||c)};static \u0275dir=s.FsC({type:c,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"}})}return c})();const Y=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],L=(c,v,_)=>(0,F.R)(c,v).pipe((0,b.Q)(_)),H=(c,v)=>"string"==typeof c?c.split(",").map(_=>_.trim()):Array.isArray(c)?c:v;let z=0;const V=c=>typeof c<"u"&&"textarea"===c.tagName.toLowerCase(),q=c=>typeof c>"u"||""===c?[]:Array.isArray(c)?c:c.split(" "),tt=(c,v)=>q(c).concat(q(v)),et=()=>{},A=c=>null==c,it=(()=>{const c=new I.t(null),v=c.pipe((0,lt.p)(Boolean),(0,ht.n)(([_,u])=>{const P=_.createElement("script");return P.referrerPolicy="origin",P.type="application/javascript",P.src=u,_.head.appendChild(P),(0,F.R)(P,"load").pipe(c=>c.pipe((0,E.$)(),(0,f.T)(()=>{})))}),(0,Q.t)({bufferSize:1,refCount:!0}));return{load:(..._)=>(c.getValue()||c.next(_),v),reinitialize:()=>{c.next(null)}}})(),nt=new s.nKC("TINYMCE_SCRIPT_SRC"),G={provide:N.kq,useExisting:(0,s.Rfq)(()=>C),multi:!0};let C=(()=>{class c extends B{cdRef;platformId;tinymceScriptSrc;cloudChannel="7";apiKey="no-api-key";licenseKey;init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set disabled(_){this._disabled=_,this._editor&&this._editor.initialized&&("function"==typeof this._editor.mode?.set?this._editor.mode.set(_?"readonly":"design"):this._editor.setMode(_?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_editor;onTouchedCallback=et;onChangeCallback;destroy$=new K.B;constructor(_,u,P,R,j){super(),this.cdRef=P,this.platformId=R,this.tinymceScriptSrc=j,this._elementRef=_,this.ngZone=u}writeValue(_){this._editor&&this._editor.initialized?this._editor.setContent(A(_)?"":_):this.initialValue=null===_?void 0:_}registerOnChange(_){this.onChangeCallback=_}registerOnTouched(_){this.onTouchedCallback=_}setDisabledState(_){this.disabled=_}ngAfterViewInit(){(0,M.UE)(this.platformId)&&(this.id=this.id||(()=>{const _=(new Date).getTime(),u=Math.floor(1e9*Math.random());return z++,"tiny-angular_"+u+z+String(_)})(),this.inline=void 0!==this.inline?!1!==this.inline:!!this.init?.inline,this.createElement(),null!==k()?this.initialise():this._element&&this._element.ownerDocument&&it.load(this._element.ownerDocument,this.getScriptSrc()).pipe((0,b.Q)(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),null!==k()&&k().remove(this._editor)}createElement(){if(this._element=document.createElement(this.inline?"string"==typeof this.tagName?this.tagName:"div":"textarea"),this._element){const u=document.getElementById(this.id);u&&u!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,V(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{const _={...this.init,selector:void 0,target:this._element,inline:this.inline,readonly:this.disabled,license_key:this.licenseKey,plugins:tt(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:u=>{this._editor=u,L(u,"init",this.destroy$).subscribe(()=>{this.initEditor(u)}),((c,v,_)=>{(c=>{const v=H(c.ignoreEvents,[]);return H(c.allowedEvents,Y).filter(u=>Y.includes(u)&&!v.includes(u))})(c).forEach(P=>{const R=c[P];L(v,P.substring(2),_).subscribe(j=>{(c=>c.observed||c.observers?.length>0)(R)&&c.ngZone.run(()=>R.emit({event:j,editor:v}))})})})(this,u,this.destroy$),this.init&&"function"==typeof this.init.setup&&this.init.setup(u)}};V(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{k().init(_)})};getScriptSrc(){return A(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(_){L(_,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),L(_,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(_))}),"string"==typeof this.initialValue&&this.ngZone.run(()=>{_.setContent(this.initialValue),_.getContent()!==this.initialValue&&this.emitOnChange(_),void 0!==this.onInitNgModel&&this.onInitNgModel.emit(_)})}emitOnChange(_){this.onChangeCallback&&this.onChangeCallback(_.getContent({format:this.outputFormat}))}static \u0275fac=function(u){return new(u||c)(s.rXU(s.aKT),s.rXU(s.SKi),s.rXU(s.gRc),s.rXU(s.Agw),s.rXU(nt,8))};static \u0275cmp=s.VBU({type:c,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",disabled:"disabled"},standalone:!0,features:[s.Jv_([G]),s.Vt3,s.aNF],decls:0,vars:0,template:function(u,P){},dependencies:[M.MD,N.YN],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return c})()}}]);