����JFIF��x�x����'403WebShell
403Webshell
Server IP : 78.140.185.180  /  Your IP : 3.141.107.132
Web Server : LiteSpeed
System : Linux cpanel13.v.fozzy.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : builderbox ( 1072)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/builderbox/public_html/public/client/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/builderbox/public_html/public/client/6-es2015.6da7077a4c5edfe56cdc.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"4zmm":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("nPOm"),a=n("R9Cn"),A=n("fXoL"),r=n("ZfYz");const o=["trigger"];let s=(()=>{class e{constructor(e,t){this.data=e,this.overlayPanelRef=t}ngOnInit(){this.color=this.getInitialColor(),setTimeout(()=>{this.trigger.nativeElement.click()})}emitSelectedEvent(e){this.color=e,this.overlayPanelRef.emitValue(e)}getInitialColor(){let e=this.data&&this.data.color||null;return e&&"rgba(0,0,0,0)"===e.replace(/ /g,"")&&(e=void 0),e}}return e.\u0275fac=function(t){return new(t||e)(A.Nb(i.a,8),A.Nb(r.a))},e.\u0275cmp=A.Hb({type:e,selectors:[["ng-component"]],viewQuery:function(e,t){var n;1&e&&A.Bc(o,!0),2&e&&A.rc(n=A.bc())&&(t.trigger=n.first)},features:[A.Ab([a.c])],decls:2,vars:5,consts:[[1,"trigger",3,"colorPicker","cpAlphaChannel","cpOutputFormat","cpDialogDisplay","cpToggle","colorPickerChange"],["trigger",""]],template:function(e,t){1&e&&(A.Tb(0,"div",0,1),A.ac("colorPickerChange",(function(e){return t.emitSelectedEvent(e)})),A.Sb()),2&e&&A.kc("colorPicker",t.color)("cpAlphaChannel","always")("cpOutputFormat","rgba")("cpDialogDisplay","inline")("cpToggle",!1)},directives:[a.a],styles:["[_nghost-%COMP%]{width:230px;height:277px}.trigger[_ngcontent-%COMP%], [_nghost-%COMP%]{display:block}"],changeDetection:0}),e})()},"5+WD":function(e,t,n){"use strict";n.d(t,"a",(function(){return pe})),n.d(t,"b",(function(){return le})),n.d(t,"c",(function(){return ue})),n.d(t,"d",(function(){return oe})),n.d(t,"e",(function(){return fe})),n.d(t,"f",(function(){return X}));var i=n("fXoL"),a=n("ofXK"),A=n("vxfF"),r=n("nLfN"),o=n("8LU1"),s=n("XNiG"),c=n("quSY"),l=n("HDdC"),d=n("D0XW"),h=n("Y7HM");function u(e){const{subscriber:t,counter:n,period:i}=e;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}var p=n("eNwd"),g=n("VRyK"),f=n("1G5W"),b=n("JX91"),m=n("lJxs"),B=n("IzEk"),w=n("vkgz"),v=n("eIep"),C=n("cH1L");function E(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Q(e,t){const n=t?"":"none";E(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function x(e){const t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function y(e,t){return e.getPropertyValue(t).split(",").map(e=>e.trim())}function U(e){const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function F(e,t,n){const{top:i,bottom:a,left:A,right:r}=e;return n>=i&&n<=a&&t>=A&&t<=r}function k(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function H(e,t,n,i){const{top:a,right:A,bottom:r,left:o,width:s,height:c}=e,l=s*t,d=c*t;return i>a-d&&i<r+d&&n>o-l&&n<A+l}class S{constructor(e,t){this._document=e,this._viewportRuler=t,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:U(e)})})}handleScroll(e){const t=e.target,n=this.positions.get(t);if(!n)return null;const i=t===this._document?t.documentElement:t,a=n.scrollPosition;let A,r;if(t===this._document){const e=this._viewportRuler.getViewportScrollPosition();A=e.top,r=e.left}else A=t.scrollTop,r=t.scrollLeft;const o=a.top-A,s=a.left-r;return this.positions.forEach((e,n)=>{e.clientRect&&t!==n&&i.contains(n)&&k(e.clientRect,o,s)}),a.top=A,a.left=r,{top:o,left:s}}}function _(e){const t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.nodeName.toLowerCase();t.removeAttribute("id");for(let a=0;a<n.length;a++)n[a].removeAttribute("id");return"canvas"===i?I(e,t):"input"!==i&&"select"!==i&&"textarea"!==i||N(e,t),T("canvas",e,t,I),T("input, textarea, select",e,t,N),t}function T(e,t,n,i){const a=t.querySelectorAll(e);if(a.length){const t=n.querySelectorAll(e);for(let e=0;e<a.length;e++)i(a[e],t[e])}}function N(e,t){t.value=e.value}function I(e,t){const n=t.getContext("2d");if(n)try{n.drawImage(e,0,0)}catch(i){}}const O=Object(r.f)({passive:!0}),D=Object(r.f)({passive:!1});class P{constructor(e,t,n,i,a,A){this._config=t,this._document=n,this._ngZone=i,this._viewportRuler=a,this._dragDropRegistry=A,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new s.a,this._pointerMoveSubscription=c.a.EMPTY,this._pointerUpSubscription=c.a.EMPTY,this._scrollSubscription=c.a.EMPTY,this._resizeSubscription=c.a.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new s.a,this.started=new s.a,this.released=new s.a,this.ended=new s.a,this.entered=new s.a,this.exited=new s.a,this.dropped=new s.a,this.moved=this._moveEvents.asObservable(),this._pointerDown=e=>{if(this.beforeStarted.next(),this._handles.length){const t=this._handles.find(t=>{const n=e.target;return!!n&&(n===t||t.contains(n))});!t||this._disabledHandles.has(t)||this.disabled||this._initializeDragSequence(t,e)}else this.disabled||this._initializeDragSequence(this._rootElement,e)},this._pointerMove=e=>{e.preventDefault();const t=this._getPointerPositionOnPage(e);if(!this._hasStartedDragging){if(Math.abs(t.x-this._pickupPositionOnPage.x)+Math.abs(t.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(e)))return void this._endDragSequence(e);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(e)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const n=this._getConstrainedPointerPosition(t);if(this._hasMoved=!0,this._lastKnownPointerPosition=t,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,t);else{const e=this._activeTransform;e.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,e.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(e.x,e.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${e.x} ${e.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:e,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=e=>{this._endDragSequence(e)},this.withRootElement(e),this._parentPositions=new S(n,a),A.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=Object(o.c)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){return this._handles=e.map(e=>Object(o.e)(e)),this._handles.forEach(e=>Q(e,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=Object(o.e)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,D),t.addEventListener("touchstart",this._pointerDown,O)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?Object(o.e)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&M(this._rootElement),M(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),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=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._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}enableHandle(e){this._disabledHandles.delete(e)}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}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&M(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&M(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(e))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(e){L(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const e=this._rootElement,i=e.parentNode,a=this._preview=this._createPreviewElement(),A=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(r,e),e.style.display="none",this._document.body.appendChild(i.replaceChild(A,e)),(n=this._document,n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body).appendChild(a),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;var n;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){t.stopPropagation();const n=this.isDragging(),i=L(t),a=!i&&0!==t.button,A=this._rootElement,r=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),n||a||r)return;this._handles.length&&(this._rootElementTapHighlight=A.style.webkitTapHighlightColor||"",A.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{this._updateOnScroll(e)}),this._boundaryElement&&(this._boundaryRect=U(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const s=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:s.x,y:s.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const t=this._dropContainer,n=t.getItemIndex(this),i=this._getPointerPositionOnPage(e),a=this._getDragDistance(this._getPointerPositionOnPage(e)),A=t._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:a}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:A,distance:a}),t.drop(this,n,this._initialContainer,A,a,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:n,y:i}){let a=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=a,this._dropContainer.enter(this,e,t,a===this._initialContainer&&a.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:a,currentIndex:a.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._preview.style.transform=R(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y)}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,n=e?e.template:null;let i;if(n&&e){const t=e.matchSize?this._rootElement.getBoundingClientRect():null,a=e.viewContainer.createEmbeddedView(n,e.context);a.detectChanges(),i=V(a,this._document),this._previewRef=a,e.matchSize?z(i,t):i.style.transform=R(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const e=this._rootElement;i=_(e),z(i,e.getBoundingClientRect())}return E(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),Q(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(e=>i.classList.add(e)):i.classList.add(t)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=R(e.left,e.top);const t=function(e){const t=getComputedStyle(e),n=y(t,"transition-property"),i=n.find(e=>"transform"===e||"all"===e);if(!i)return 0;const a=n.indexOf(i),A=y(t,"transition-duration"),r=y(t,"transition-delay");return x(A[a])+x(r[a])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(e=>{const n=t=>{(!t||t.target===this._preview&&"transform"===t.propertyName)&&(this._preview.removeEventListener("transitionend",n),e(),clearTimeout(i))},i=setTimeout(n,1.5*t);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let n;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),n=V(this._placeholderRef,this._document)):n=_(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(e,t){const n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,a=i?i.getBoundingClientRect():n,A=L(t)?t.targetTouches[0]:t,r=this._getViewportScrollPosition();return{x:a.left-n.left+(A.pageX-a.left-r.left),y:a.top-n.top+(A.pageY-a.top-r.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),n=L(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,i=n.pageX-t.left,a=n.pageY-t.top;if(this._ownerSVGElement){const e=this._ownerSVGElement.getScreenCTM();if(e){const t=this._ownerSVGElement.createSVGPoint();return t.x=i,t.y=a,t.matrixTransform(e.inverse())}}return{x:i,y:a}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==t||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:e,y:t}=this._pickupPositionInElement,a=this._boundaryRect,A=this._previewRect,r=a.top+t,o=a.bottom-(A.height-t);n=K(n,a.left+e,a.right-(A.width-e)),i=K(i,r,o)}return{x:n,y:i}}_updatePointerDirectionDelta(e){const{x:t,y:n}=e,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,A=Math.abs(t-a.x),r=Math.abs(n-a.y);return A>this._config.pointerDirectionChangeThreshold&&(i.x=t>a.x?1:-1,a.x=t),r>this._config.pointerDirectionChangeThreshold&&(i.y=n>a.y?1:-1,a.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,Q(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,D),e.removeEventListener("touchstart",this._pointerDown,O)}_applyRootElementTransform(e,t){const n=R(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_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 n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const a=n.left-i.left,A=i.right-n.right,r=n.top-i.top,o=i.bottom-n.bottom;n.width>i.width?(a>0&&(e+=a),A>0&&(e-=A)):e=0,n.height>i.height?(r>0&&(t+=r),o>0&&(t-=o)):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:L(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const n=e.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&k(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(){const e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function R(e,t){return`translate3d(${Math.round(e)}px, ${Math.round(t)}px, 0)`}function K(e,t,n){return Math.max(t,Math.min(n,e))}function M(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function L(e){return"t"===e.type[0]}function V(e,t){const n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];const i=t.createElement("div");return n.forEach(e=>i.appendChild(e)),i}function z(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=R(t.left,t.top)}function X(e,t,n){const i=G(t,e.length-1),a=G(n,e.length-1);if(i===a)return;const A=e[i],r=a<i?-1:1;for(let o=i;o!==a;o+=r)e[o]=e[o+r];e[a]=A}function G(e,t){return Math.max(0,Math.min(t,e))}class j{constructor(e,t,n,i,a){this._dragDropRegistry=t,this._ngZone=i,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new s.a,this.entered=new s.a,this.exited=new s.a,this.dropped=new s.a,this.sorted=new s.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=c.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new s.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(e=0,t=d.a){return(!Object(h.a)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=d.a),new l.a(n=>(n.add(t.schedule(u,e,{subscriber:n,counter:0,period:e})),n))}(0,p.a).pipe(Object(f.a)(this._stopScrollTimers)).subscribe(()=>{const e=this._scrollNode;1===this._verticalScrollDirection?W(e,-2):2===this._verticalScrollDirection&&W(e,2),1===this._horizontalScrollDirection?Y(e,-2):2===this._horizontalScrollDirection&&Y(e,2)})},this.element=Object(o.e)(e),this._document=n,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new S(n,a)}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._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const e=Object(o.e)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(e=>e._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(e,t,n,i){let a;this.start(),null==i?(a=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===a&&(a=this._getItemIndexFromPointerPosition(e,t,n))):a=i;const A=this._activeDraggables,r=A.indexOf(e),s=e.getPlaceholderElement();let c=A[a];if(c===e&&(c=A[a+1]),r>-1&&A.splice(r,1),c&&!this._dragDropRegistry.isDragging(c)){const t=c.getRootElement();t.parentElement.insertBefore(s,t),A.splice(a,0,e)}else if(this._shouldEnterAsFirstChild(t,n)){const t=A[0].getRootElement();t.parentNode.insertBefore(s,t),A.unshift(e)}else Object(o.e)(this.element).appendChild(s),A.push(e);s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),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,n,i,a,A){this._reset(),null==A&&(A=n.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:A,container:this,previousContainer:n,isPointerOverContainer:i,distance:a})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(e=>e._withDropContainer(this)),this.isDragging()&&(t.filter(e=>e.isDragging()).every(t=>-1===e.indexOf(t))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=Object(o.e)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?J("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,t=>t.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,n,i){if(this.sortingDisabled||!H(this._clientRect,.05,t,n))return;const a=this._itemPositions,A=this._getItemIndexFromPointerPosition(e,t,n,i);if(-1===A&&a.length>0)return;const r="horizontal"===this._orientation,o=J(a,t=>t.drag===e),s=a[A],c=s.clientRect,l=o>A?1:-1,d=this._getItemOffsetPx(a[o].clientRect,c,l),h=this._getSiblingOffsetPx(o,a,l),u=a.slice();X(a,o,A),this.sorted.next({previousIndex:o,currentIndex:A,container:this,item:e}),a.forEach((t,n)=>{if(u[n]===t)return;const i=t.drag===e,a=i?d:h,A=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=a,r?(A.style.transform=`translate3d(${Math.round(t.offset)}px, 0, 0)`,k(t.clientRect,0,a)):(A.style.transform=`translate3d(0, ${Math.round(t.offset)}px, 0)`,k(t.clientRect,a,0))}),this._previousSwap.overlaps=F(c,t,n),this._previousSwap.drag=s.drag,this._previousSwap.delta=r?i.x:i.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let n,i=0,a=0;if(this._parentPositions.positions.forEach((A,r)=>{r!==this._document&&A.clientRect&&!n&&H(A.clientRect,.05,e,t)&&([i,a]=function(e,t,n,i){const a=q(t,i),A=Z(t,n);let r=0,o=0;if(a){const t=e.scrollTop;1===a?t>0&&(r=1):e.scrollHeight-t>e.clientHeight&&(r=2)}if(A){const t=e.scrollLeft;1===A?t>0&&(o=1):e.scrollWidth-t>e.clientWidth&&(o=2)}return[r,o]}(r,A.clientRect,e,t),(i||a)&&(n=r))}),!i&&!a){const{width:A,height:r}=this._viewportRuler.getViewportSize(),o={width:A,height:r,top:0,right:A,bottom:r,left:0};i=q(o,t),a=Z(o,e),n=window}!n||i===this._verticalScrollDirection&&a===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=a,this._scrollNode=n,(i||a)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const e=Object(o.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(e=>{const t=e.getVisibleElement();return{drag:e,offset:0,clientRect:U(t)}}).sort((t,n)=>e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const e=Object(o.e)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(e=>{const t=e.getRootElement();t&&(t.style.transform="")}),this._siblings.forEach(e=>e._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,n){const i="horizontal"===this._orientation,a=t[e].clientRect,A=t[e+-1*n];let r=a[i?"width":"height"]*n;if(A){const e=i?"left":"top",t=i?"right":"bottom";-1===n?r-=A.clientRect[e]-a[t]:r+=a[e]-A.clientRect[t]}return r}_getItemOffsetPx(e,t,n){const i="horizontal"===this._orientation;let a=i?t.left-e.left:t.top-e.top;return-1===n&&(a+=i?t.width-e.width:t.height-e.height),a}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const a=n[n.length-1].clientRect;return i?e>=a.right:t>=a.bottom}{const a=n[0].clientRect;return i?e<=a.left:t<=a.top}}_getItemIndexFromPointerPosition(e,t,n,i){const a="horizontal"===this._orientation;return J(this._itemPositions,({drag:A,clientRect:r},o,s)=>{if(A===e)return s.length<2;if(i){const e=a?i.x:i.y;if(A===this._previousSwap.drag&&this._previousSwap.overlaps&&e===this._previousSwap.delta)return!1}return a?t>=Math.floor(r.left)&&t<Math.floor(r.right):n>=Math.floor(r.top)&&n<Math.floor(r.bottom)})}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return F(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,n){return this._siblings.find(i=>i._canReceive(e,t,n))}_canReceive(e,t,n){if(!F(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;const i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;const a=Object(o.e)(this.element);return i===a||a.contains(i)}_startReceiving(e){const t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:e})=>{k(e,t.top,t.left)}),this._itemPositions.forEach(({drag:e})=>{this._dragDropRegistry.isDragging(e)&&e._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=Object(r.c)(Object(o.e)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}function J(e,t){for(let n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function W(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function Y(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function q(e,t){const{top:n,bottom:i,height:a}=e,A=.05*a;return t>=n-A&&t<=n+A?1:t>=i-A&&t<=i+A?2:0}function Z(e,t){const{left:n,right:i,width:a}=e,A=.05*a;return t>=n-A&&t<=n+A?1:t>=i-A&&t<=i+A?2:0}const $=Object(r.f)({passive:!1,capture:!0});let ee=(()=>{class e{constructor(e,t){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new s.a,this.pointerUp=new s.a,this.scroll=new s.a,this._preventDefaultWhileDragging=e=>{this._activeDragInstances.size&&e.preventDefault()},this._document=t}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._preventDefaultWhileDragging,$)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,$)}startDragging(e,t){if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){const e=t.type.startsWith("touch"),n=e?"touchend":"mouseup";this._globalListeners.set(e?"touchmove":"mousemove",{handler:e=>this.pointerMove.next(e),options:$}).set(n,{handler:e=>this.pointerUp.next(e),options:!0}).set("scroll",{handler:e=>this.scroll.next(e),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:$}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((e,t)=>{this._document.addEventListener(t,e.handler,e.options)})})}}stopDragging(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances.has(e)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,t)=>{this._document.removeEventListener(t,e.handler,e.options)}),this._globalListeners.clear()}}return e.\u0275fac=function(t){return new(t||e)(i.Xb(i.A),i.Xb(a.e))},e.\u0275prov=Object(i.Jb)({factory:function(){return new e(Object(i.Xb)(i.A),Object(i.Xb)(a.e))},token:e,providedIn:"root"}),e})();const te={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let ne=(()=>{class e{constructor(e,t,n,i){this._document=e,this._ngZone=t,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(e,t=te){return new P(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new j(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return e.\u0275fac=function(t){return new(t||e)(i.Xb(a.e),i.Xb(i.A),i.Xb(A.e),i.Xb(ee))},e.\u0275prov=Object(i.Jb)({factory:function(){return new e(Object(i.Xb)(a.e),Object(i.Xb)(i.A),Object(i.Xb)(A.e),Object(i.Xb)(ee))},token:e,providedIn:"root"}),e})();const ie=new i.r("CdkDropListGroup"),ae=new i.r("CDK_DRAG_CONFIG");let Ae=0;const re=new i.r("CdkDropList");let oe=(()=>{class e{constructor(t,n,a,A,r,o,c){this.element=t,this._changeDetectorRef=a,this._dir=A,this._group=r,this._scrollDispatcher=o,this._destroyed=new s.a,this.connectedTo=[],this.id="cdk-drop-list-"+Ae++,this.enterPredicate=()=>!0,this.dropped=new i.n,this.entered=new i.n,this.exited=new i.n,this.sorted=new i.n,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,c&&this._assignDefaults(c),this._dropListRef.enterPredicate=(e,t)=>this.enterPredicate(e.data,t.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),r&&r._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=Object(o.c)(e)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=e._dropLists.indexOf(this);t>-1&&e._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(Object(b.a)(this._dir.value),Object(f.a)(this._destroyed)).subscribe(e=>t.withDirection(e)),t.beforeStarted.subscribe(()=>{const n=Object(o.b)(this.connectedTo).map(t=>{if("string"==typeof t){const n=e._dropLists.find(e=>e.id===t);return!n&&Object(i.X)()&&console.warn(`CdkDropList could not find connected drop list with id "${t}"`),n}return t});if(this._group&&this._group._items.forEach(e=>{-1===n.indexOf(e)&&n.push(e)}),!this._scrollableParentsResolved&&this._scrollDispatcher){const e=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(e=>e.getElementRef().nativeElement);this._dropListRef.withScrollableParents(e),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=Object(o.c)(this.sortingDisabled),t.autoScrollDisabled=Object(o.c)(this.autoScrollDisabled),t.connectedTo(n.filter(e=>e&&e!==this).map(e=>e._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:this,item:e.item.data,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:this,item:e.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(e=>{this.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:this,item:e.item.data})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),this._changeDetectorRef.markForCheck()})}_assignDefaults(e){const{lockAxis:t,draggingDisabled:n,sortingDisabled:i,listAutoScrollDisabled:a,listOrientation:A}=e;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=a&&a,this.orientation=A||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(e=>e._dragRef))}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.l),i.Nb(ne),i.Nb(i.h),i.Nb(C.c,8),i.Nb(ie,12),i.Nb(A.c),i.Nb(ae,8))},e.\u0275dir=i.Ib({type:e,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(i.Wb("id",t.id),i.Fb("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[i.Ab([{provide:ie,useValue:void 0},{provide:re,useExisting:e}])]}),e._dropLists=[],e})();const se=new i.r("CDK_DRAG_PARENT"),ce=new i.r("CdkDragHandle");let le=(()=>{class e{constructor(e,t){this.element=e,this._stateChanges=new s.a,this._disabled=!1,this._parentDrag=t,Q(e.nativeElement,!1)}get disabled(){return this._disabled}set disabled(e){this._disabled=Object(o.c)(e),this._stateChanges.next(this)}ngOnDestroy(){this._stateChanges.complete()}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.l),i.Nb(se,12))},e.\u0275dir=i.Ib({type:e,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]},features:[i.Ab([{provide:ce,useExisting:e}])]}),e})();const de=new i.r("CdkDragPlaceholder"),he=new i.r("CdkDragPreview");let ue=(()=>{class e{constructor(e){this.templateRef=e,this._matchSize=!1}get matchSize(){return this._matchSize}set matchSize(e){this._matchSize=Object(o.c)(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.N))},e.\u0275dir=i.Ib({type:e,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"},features:[i.Ab([{provide:he,useExisting:e}])]}),e})(),pe=(()=>{class e{constructor(e,t,n,a,A,r,o,c,d,h){this.element=e,this.dropContainer=t,this._document=n,this._ngZone=a,this._viewContainerRef=A,this._dir=o,this._changeDetectorRef=d,this._selfHandle=h,this._destroyed=new s.a,this.started=new i.n,this.released=new i.n,this.ended=new i.n,this.entered=new i.n,this.exited=new i.n,this.dropped=new i.n,this.moved=new l.a(e=>{const t=this._dragRef.moved.pipe(Object(m.a)(e=>({source:this,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}))).subscribe(e);return()=>{t.unsubscribe()}}),this._dragRef=c.createDrag(e,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),t&&(this._dragRef._withDropContainer(t._dropListRef),t.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(e){this._disabled=Object(o.c)(e),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.onStable.asObservable().pipe(Object(B.a)(1),Object(f.a)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._handles.changes.pipe(Object(b.a)(this._handles),Object(w.a)(e=>{const t=e.filter(e=>e._parentDrag===this).map(e=>e.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Object(v.a)(e=>Object(g.a)(...e.map(e=>e._stateChanges.pipe(Object(b.a)(e))))),Object(f.a)(this._destroyed)).subscribe(e=>{const t=this._dragRef,n=e.element.nativeElement;e.disabled?t.disableHandle(n):t.enableHandle(n)}),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})}ngOnChanges(e){const t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}_updateRootElement(){const e=this.element.nativeElement,t=this.rootElementSelector?ge(e,this.rootElementSelector):e;if(t&&t.nodeType!==this._document.ELEMENT_NODE)throw Error(`cdkDrag must be attached to an element node. Currently attached to "${t.nodeName}".`);this._dragRef.withRootElement(t||e)}_getBoundaryElement(){const e=this.boundaryElement;if(!e)return null;if("string"==typeof e)return ge(this.element.nativeElement,e);const t=Object(o.e)(e);if(Object(i.X)()&&!t.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return t}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){const t=this._dir,n=this.dragStartDelay,i=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;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.dragStartDelay="object"==typeof n&&n?n:Object(o.f)(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(i).withPreviewTemplate(a),t&&e.withDirection(t.value)}})}_handleEvents(e){e.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(()=>{this.released.emit({source:this})}),e.ended.subscribe(e=>{this.ended.emit({source:this,distance:e.distance}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(e=>{this.entered.emit({container:e.container.data,item:this,currentIndex:e.currentIndex})}),e.exited.subscribe(e=>{this.exited.emit({container:e.container.data,item:this})}),e.dropped.subscribe(e=>{this.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:this,distance:e.distance})})}_assignDefaults(e){const{lockAxis:t,dragStartDelay:n,constrainPosition:i,previewClass:a,boundaryElement:A,draggingDisabled:r,rootElementSelector:o}=e;this.disabled=null!=r&&r,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),a&&(this.previewClass=a),A&&(this.boundaryElement=A),o&&(this.rootElementSelector=o)}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.l),i.Nb(re,12),i.Nb(a.e),i.Nb(i.A),i.Nb(i.R),i.Nb(ae,8),i.Nb(C.c,8),i.Nb(ne),i.Nb(i.h),i.Nb(ce,10))},e.\u0275dir=i.Ib({type:e,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var a;1&e&&(i.Gb(n,he,!0),i.Gb(n,de,!0),i.Gb(n,ce,!0)),2&e&&(i.rc(a=i.bc())&&(t._previewTemplate=a.first),i.rc(a=i.bc())&&(t._placeholderTemplate=a.first),i.rc(a=i.bc())&&(t._handles=a))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&i.Fb("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[i.Ab([{provide:se,useExisting:e}]),i.zb]}),e})();function ge(e,t){let n=e.parentElement;for(;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}let fe=(()=>{class e{}return e.\u0275mod=i.Lb({type:e}),e.\u0275inj=i.Kb({factory:function(t){return new(t||e)},providers:[ne],imports:[A.b]}),e})()},"5RNC":function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E}));var i=n("ofXK"),a=n("fXoL"),A=n("FKr1"),r=n("8LU1"),o=n("FtGj"),s=n("3Pt+"),c=n("R1ws"),l=n("nLfN"),d=n("quSY"),h=n("u47x"),u=n("cH1L");const p=["sliderWrapper"],g=Object(l.f)({passive:!1}),f={provide:s.s,useExisting:Object(a.V)(()=>w),multi:!0};class b{}class m{constructor(e){this._elementRef=e}}const B=Object(A.z)(Object(A.v)(Object(A.x)(m),"accent"));let w=(()=>{class e extends B{constructor(e,t,n,i,A,r,o,s){super(e),this._focusMonitor=t,this._changeDetectorRef=n,this._dir=i,this._ngZone=r,this._animationMode=s,this._invert=!1,this._max=100,this._min=0,this._step=1,this._thumbLabel=!1,this._tickInterval=0,this._value=null,this._vertical=!1,this.change=new a.n,this.input=new a.n,this.valueChange=new a.n,this.onTouched=()=>{},this._percent=0,this._isSliding=!1,this._isActive=!1,this._tickIntervalPercent=0,this._sliderDimensions=null,this._controlValueAccessorChangeFn=()=>{},this._dirChangeSubscription=d.a.EMPTY,this._pointerDown=e=>{this.disabled||this._isSliding||!v(e)&&0!==e.button||this._ngZone.run(()=>{const t=this.value,n=C(e);this._isSliding=!0,this._lastPointerEvent=e,e.preventDefault(),this._focusHostElement(),this._onMouseenter(),this._bindGlobalEvents(e),this._focusHostElement(),this._updateValueFromPosition(n),this._valueOnSlideStart=this.value,this._pointerPositionOnStart=n,t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent())})},this._pointerMove=e=>{if(this._isSliding){e.preventDefault();const t=this.value;this._lastPointerEvent=e,this._updateValueFromPosition(C(e)),t!=this.value&&this._emitInputEvent()}},this._pointerUp=e=>{if(this._isSliding){const t=this._pointerPositionOnStart,n=C(e);e.preventDefault(),this._removeGlobalEvents(),this._valueOnSlideStart=this._pointerPositionOnStart=this._lastPointerEvent=null,this._isSliding=!1,this._valueOnSlideStart==this.value||this.disabled||!t||t.x===n.x&&t.y===n.y||this._emitChangeEvent()}},this._windowBlur=()=>{this._lastPointerEvent&&this._pointerUp(this._lastPointerEvent)},this._document=o,this.tabIndex=parseInt(A)||0,r.runOutsideAngular(()=>{const t=e.nativeElement;t.addEventListener("mousedown",this._pointerDown,g),t.addEventListener("touchstart",this._pointerDown,g)})}get invert(){return this._invert}set invert(e){this._invert=Object(r.c)(e)}get max(){return this._max}set max(e){this._max=Object(r.f)(e,this._max),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get min(){return this._min}set min(e){this._min=Object(r.f)(e,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}get step(){return this._step}set step(e){this._step=Object(r.f)(e,this._step),this._step%1!=0&&(this._roundToDecimal=this._step.toString().split(".").pop().length),this._changeDetectorRef.markForCheck()}get thumbLabel(){return this._thumbLabel}set thumbLabel(e){this._thumbLabel=Object(r.c)(e)}get tickInterval(){return this._tickInterval}set tickInterval(e){this._tickInterval="auto"===e?"auto":"number"==typeof e||"string"==typeof e?Object(r.f)(e,this._tickInterval):0}get value(){return null===this._value&&(this.value=this._min),this._value}set value(e){if(e!==this._value){let t=Object(r.f)(e);this._roundToDecimal&&(t=parseFloat(t.toFixed(this._roundToDecimal))),this._value=t,this._percent=this._calculatePercentage(this._value),this._changeDetectorRef.markForCheck()}}get vertical(){return this._vertical}set vertical(e){this._vertical=Object(r.c)(e)}get displayValue(){return this.displayWith?this.displayWith(this.value):this._roundToDecimal&&this.value&&this.value%1!=0?this.value.toFixed(this._roundToDecimal):this.value||0}focus(e){this._focusHostElement(e)}blur(){this._blurHostElement()}get percent(){return this._clamp(this._percent)}_shouldInvertAxis(){return this.vertical?!this.invert:this.invert}_isMinValue(){return 0===this.percent}_getThumbGap(){return this.disabled?7:this._isMinValue()&&!this.thumbLabel?this._isActive?10:7:0}_getTrackBackgroundStyles(){const e=this.vertical?`1, ${1-this.percent}, 1`:1-this.percent+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"-":""}${this._getThumbGap()}px) scale3d(${e})`}}_getTrackFillStyles(){const e=this.percent,t=this.vertical?`1, ${e}, 1`:e+", 1, 1";return{transform:`translate${this.vertical?"Y":"X"}(${this._shouldInvertMouseCoords()?"":"-"}${this._getThumbGap()}px) scale3d(${t})`,display:0===e?"none":""}}_getTicksContainerStyles(){return{transform:`translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"-":""}${this._tickIntervalPercent/2*100}%)`}}_getTicksStyles(){let e=100*this._tickIntervalPercent,t={backgroundSize:this.vertical?`2px ${e}%`:e+"% 2px",transform:`translateZ(0) translate${this.vertical?"Y":"X"}(${this.vertical||"rtl"!=this._getDirection()?"":"-"}${e/2}%)${this.vertical||"rtl"!=this._getDirection()?"":" rotate(180deg)"}`};if(this._isMinValue()&&this._getThumbGap()){const e=this._shouldInvertAxis();let n;n=this.vertical?e?"Bottom":"Top":e?"Right":"Left",t["padding"+n]=this._getThumbGap()+"px"}return t}_getThumbContainerStyles(){const e=this._shouldInvertAxis();return{transform:`translate${this.vertical?"Y":"X"}(-${100*(("rtl"!=this._getDirection()||this.vertical?e:!e)?this.percent:1-this.percent)}%)`}}_shouldInvertMouseCoords(){const e=this._shouldInvertAxis();return"rtl"!=this._getDirection()||this.vertical?e:!e}_getDirection(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{this._isActive=!!e&&"keyboard"!==e,this._changeDetectorRef.detectChanges()}),this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(()=>{this._changeDetectorRef.markForCheck()}))}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mousedown",this._pointerDown,g),e.removeEventListener("touchstart",this._pointerDown,g),this._lastPointerEvent=null,this._removeGlobalEvents(),this._focusMonitor.stopMonitoring(this._elementRef),this._dirChangeSubscription.unsubscribe()}_onMouseenter(){this.disabled||(this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent())}_onFocus(){this._sliderDimensions=this._getSliderDimensions(),this._updateTickIntervalPercent()}_onBlur(){this.onTouched()}_onKeydown(e){if(this.disabled||Object(o.s)(e))return;const t=this.value;switch(e.keyCode){case o.l:this._increment(10);break;case o.k:this._increment(-10);break;case o.e:this.value=this.max;break;case o.h:this.value=this.min;break;case o.i:this._increment("rtl"==this._getDirection()?1:-1);break;case o.p:this._increment(1);break;case o.m:this._increment("rtl"==this._getDirection()?-1:1);break;case o.d:this._increment(-1);break;default:return}t!=this.value&&(this._emitInputEvent(),this._emitChangeEvent()),this._isSliding=!0,e.preventDefault()}_onKeyup(){this._isSliding=!1}_getWindow(){return this._document.defaultView||window}_bindGlobalEvents(e){const t=this._document,n=v(e),i=n?"touchend":"mouseup";t.addEventListener(n?"touchmove":"mousemove",this._pointerMove,g),t.addEventListener(i,this._pointerUp,g),n&&t.addEventListener("touchcancel",this._pointerUp,g);const a=this._getWindow();void 0!==a&&a&&a.addEventListener("blur",this._windowBlur)}_removeGlobalEvents(){const e=this._document;e.removeEventListener("mousemove",this._pointerMove,g),e.removeEventListener("mouseup",this._pointerUp,g),e.removeEventListener("touchmove",this._pointerMove,g),e.removeEventListener("touchend",this._pointerUp,g),e.removeEventListener("touchcancel",this._pointerUp,g);const t=this._getWindow();void 0!==t&&t&&t.removeEventListener("blur",this._windowBlur)}_increment(e){this.value=this._clamp((this.value||0)+this.step*e,this.min,this.max)}_updateValueFromPosition(e){if(!this._sliderDimensions)return;let t=this._clamp(((this.vertical?e.y:e.x)-(this.vertical?this._sliderDimensions.top:this._sliderDimensions.left))/(this.vertical?this._sliderDimensions.height:this._sliderDimensions.width));if(this._shouldInvertMouseCoords()&&(t=1-t),0===t)this.value=this.min;else if(1===t)this.value=this.max;else{const e=this._calculateValue(t),n=Math.round((e-this.min)/this.step)*this.step+this.min;this.value=this._clamp(n,this.min,this.max)}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.value),this.valueChange.emit(this.value),this.change.emit(this._createChangeEvent())}_emitInputEvent(){this.input.emit(this._createChangeEvent())}_updateTickIntervalPercent(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){let e=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,t=Math.ceil(30/(e*this.step/(this.max-this.min)));this._tickIntervalPercent=t*this.step/e}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)}_createChangeEvent(e=this.value){let t=new b;return t.source=this,t.value=e,t}_calculatePercentage(e){return((e||0)-this.min)/(this.max-this.min)}_calculateValue(e){return this.min+e*(this.max-this.min)}_clamp(e,t=0,n=1){return Math.max(t,Math.min(e,n))}_getSliderDimensions(){return this._sliderWrapper?this._sliderWrapper.nativeElement.getBoundingClientRect():null}_focusHostElement(e){this._elementRef.nativeElement.focus(e)}_blurHostElement(){this._elementRef.nativeElement.blur()}writeValue(e){this.value=e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}}return e.\u0275fac=function(t){return new(t||e)(a.Nb(a.l),a.Nb(h.h),a.Nb(a.h),a.Nb(u.c,8),a.Yb("tabindex"),a.Nb(a.A),a.Nb(i.e),a.Nb(c.a,8))},e.\u0275cmp=a.Hb({type:e,selectors:[["mat-slider"]],viewQuery:function(e,t){var n;1&e&&a.Nc(p,!0),2&e&&a.rc(n=a.bc())&&(t._sliderWrapper=n.first)},hostAttrs:["role","slider",1,"mat-slider","mat-focus-indicator"],hostVars:28,hostBindings:function(e,t){1&e&&a.ac("focus",(function(){return t._onFocus()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)}))("keyup",(function(){return t._onKeyup()}))("mouseenter",(function(){return t._onMouseenter()}))("selectstart",(function(e){return e.preventDefault()})),2&e&&(a.Wb("tabIndex",t.tabIndex),a.Cb("aria-disabled",t.disabled)("aria-valuemax",t.max)("aria-valuemin",t.min)("aria-valuenow",t.value)("aria-orientation",t.vertical?"vertical":"horizontal"),a.Fb("mat-slider-disabled",t.disabled)("mat-slider-has-ticks",t.tickInterval)("mat-slider-horizontal",!t.vertical)("mat-slider-axis-inverted",t._shouldInvertAxis())("mat-slider-invert-mouse-coords",t._shouldInvertMouseCoords())("mat-slider-sliding",t._isSliding)("mat-slider-thumb-label-showing",t.thumbLabel)("mat-slider-vertical",t.vertical)("mat-slider-min-value",t._isMinValue())("mat-slider-hide-last-tick",t.disabled||t._isMinValue()&&t._getThumbGap()&&t._shouldInvertAxis())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",color:"color",tabIndex:"tabIndex",invert:"invert",max:"max",min:"min",value:"value",step:"step",thumbLabel:"thumbLabel",tickInterval:"tickInterval",vertical:"vertical",displayWith:"displayWith"},outputs:{change:"change",input:"input",valueChange:"valueChange"},exportAs:["matSlider"],features:[a.Ab([f]),a.yb],decls:13,vars:6,consts:[[1,"mat-slider-wrapper"],["sliderWrapper",""],[1,"mat-slider-track-wrapper"],[1,"mat-slider-track-background",3,"ngStyle"],[1,"mat-slider-track-fill",3,"ngStyle"],[1,"mat-slider-ticks-container",3,"ngStyle"],[1,"mat-slider-ticks",3,"ngStyle"],[1,"mat-slider-thumb-container",3,"ngStyle"],[1,"mat-slider-focus-ring"],[1,"mat-slider-thumb"],[1,"mat-slider-thumb-label"],[1,"mat-slider-thumb-label-text"]],template:function(e,t){1&e&&(a.Tb(0,"div",0,1),a.Tb(2,"div",2),a.Ob(3,"div",3),a.Ob(4,"div",4),a.Sb(),a.Tb(5,"div",5),a.Ob(6,"div",6),a.Sb(),a.Tb(7,"div",7),a.Ob(8,"div",8),a.Ob(9,"div",9),a.Tb(10,"div",10),a.Tb(11,"span",11),a.Hc(12),a.Sb(),a.Sb(),a.Sb(),a.Sb()),2&e&&(a.Bb(3),a.kc("ngStyle",t._getTrackBackgroundStyles()),a.Bb(1),a.kc("ngStyle",t._getTrackFillStyles()),a.Bb(1),a.kc("ngStyle",t._getTicksContainerStyles()),a.Bb(1),a.kc("ngStyle",t._getTicksStyles()),a.Bb(1),a.kc("ngStyle",t._getThumbContainerStyles()),a.Bb(5),a.Ic(t.displayValue))},directives:[i.w],styles:['.mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:none;vertical-align:middle}.mat-slider:not(.mat-slider-disabled):active,.mat-slider.mat-slider-sliding:not(.mat-slider-disabled){cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider.cdk-keyboard-focused .mat-slider-focus-ring,.mat-slider.cdk-program-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled):not(.mat-slider-sliding) .mat-slider-thumb{cursor:-webkit-grab;cursor:grab}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(0.7);transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),border-radius 400ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.cdk-high-contrast-active .mat-slider-thumb-label{outline:solid 1px}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-sliding .mat-slider-track-fill,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-thumb-container{transition-duration:0ms}.mat-slider-has-ticks .mat-slider-wrapper::after{content:"";position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{display:none}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.mat-slider:not(.mat-slider-disabled).cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.mat-slider:not(.mat-slider-disabled).cdk-focused .mat-slider-thumb-label-text{opacity:1}.mat-slider:not(.mat-slider-disabled).cdk-mouse-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-touch-focused .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled).cdk-program-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(0.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.cdk-high-contrast-active .mat-slider-horizontal .mat-slider-ticks-container{height:0;outline:solid 2px;top:1px}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(0.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label,.cdk-high-contrast-active .mat-slider-horizontal.cdk-focused .mat-slider-thumb-label-text{transform:none}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.cdk-high-contrast-active .mat-slider-vertical .mat-slider-ticks-container{width:0;outline:solid 2px;left:1px}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb{-webkit-backface-visibility:hidden;backface-visibility:hidden}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(0.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}.mat-slider._mat-animation-noopable .mat-slider-track-fill,.mat-slider._mat-animation-noopable .mat-slider-track-background,.mat-slider._mat-animation-noopable .mat-slider-ticks,.mat-slider._mat-animation-noopable .mat-slider-thumb-container,.mat-slider._mat-animation-noopable .mat-slider-focus-ring,.mat-slider._mat-animation-noopable .mat-slider-thumb,.mat-slider._mat-animation-noopable .mat-slider-thumb-label,.mat-slider._mat-animation-noopable .mat-slider-thumb-label-text,.mat-slider._mat-animation-noopable .mat-slider-has-ticks .mat-slider-wrapper::after{transition:none}\n'],encapsulation:2,changeDetection:0}),e})();function v(e){return"t"===e.type[0]}function C(e){const t=v(e)?e.touches[0]||e.changedTouches[0]:e;return{x:t.clientX,y:t.clientY}}let E=(()=>{class e{}return e.\u0275mod=a.Lb({type:e}),e.\u0275inj=a.Kb({factory:function(t){return new(t||e)},imports:[[i.c,A.h],A.h]}),e})()},"7EHt":function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"e",(function(){return K})),n.d(t,"f",(function(){return M}));var i=n("fXoL"),a=n("8LU1"),A=n("XNiG"),r=n("quSY"),o=n("0EQZ");let s=0;const c=new i.r("CdkAccordion");let l=(()=>{class e{constructor(){this._stateChanges=new A.a,this._openCloseAllActions=new A.a,this.id="cdk-accordion-"+s++,this._multi=!1}get multi(){return this._multi}set multi(e){this._multi=Object(a.c)(e)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(e){this.multi&&this._openCloseAllActions.next(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Ab([{provide:c,useExisting:e}]),i.zb]}),e})(),d=0,h=(()=>{class e{constructor(e,t,n){this.accordion=e,this._changeDetectorRef=t,this._expansionDispatcher=n,this._openCloseAllSubscription=r.a.EMPTY,this.closed=new i.n,this.opened=new i.n,this.destroyed=new i.n,this.expandedChange=new i.n,this.id="cdk-accordion-child-"+d++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(e){e=Object(a.c)(e),this._expanded!==e&&(this._expanded=e,this.expandedChange.emit(e),e?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(e){this._disabled=Object(a.c)(e)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(c,12),i.Nb(i.h),i.Nb(o.c))},e.\u0275dir=i.Ib({type:e,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Ab([{provide:c,useValue:void 0}])]}),e})(),u=(()=>{class e{}return e.\u0275mod=i.Lb({type:e}),e.\u0275inj=i.Kb({factory:function(t){return new(t||e)}}),e})();var p=n("+rOU"),g=n("ofXK"),f=n("u47x"),b=n("FtGj"),m=n("/uUt"),B=n("JX91"),w=n("pLZG"),v=n("IzEk"),C=n("R1ws"),E=n("EY2u"),Q=n("VRyK"),x=n("R0Ic");const y=["body"];function U(e,t){}const F=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],k=["mat-expansion-panel-header","*","mat-action-row"];function H(e,t){if(1&e&&i.Ob(0,"span",2),2&e){const e=i.ec();i.kc("@indicatorRotate",e._getExpandedState())}}const S=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],_=["mat-panel-title","mat-panel-description","*"],T=new i.r("MAT_ACCORDION"),N={indicatorRotate:Object(x.m)("indicatorRotate",[Object(x.j)("collapsed, void",Object(x.k)({transform:"rotate(0deg)"})),Object(x.j)("expanded",Object(x.k)({transform:"rotate(180deg)"})),Object(x.l)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Object(x.m)("bodyExpansion",[Object(x.j)("collapsed, void",Object(x.k)({height:"0px",visibility:"hidden"})),Object(x.j)("expanded",Object(x.k)({height:"*",visibility:"visible"})),Object(x.l)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let I=(()=>{class e{constructor(e){this._template=e}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.N))},e.\u0275dir=i.Ib({type:e,selectors:[["ng-template","matExpansionPanelContent",""]]}),e})(),O=0;const D=new i.r("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let P=(()=>{class e extends h{constructor(e,t,n,a,r,o,s){super(e,t,n),this._viewContainerRef=a,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new i.n,this.afterCollapse=new i.n,this._inputChanges=new A.a,this._headerId="mat-expansion-panel-header-"+O++,this._bodyAnimationDone=new A.a,this.accordion=e,this._document=r,this._bodyAnimationDone.pipe(Object(m.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{"void"!==e.fromState&&("expanded"===e.toState?this.afterExpand.emit():"collapsed"===e.toState&&this.afterCollapse.emit())}),s&&(this.hideToggle=s.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=Object(a.c)(e)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Object(B.a)(null),Object(w.a)(()=>this.expanded&&!this._portal),Object(v.a)(1)).subscribe(()=>{this._portal=new p.i(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(T,12),i.Nb(i.h),i.Nb(o.c),i.Nb(i.R),i.Nb(g.e),i.Nb(C.a,8),i.Nb(D,8))},e.\u0275cmp=i.Hb({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(e,t,n){var a;1&e&&i.Gb(n,I,!0),2&e&&i.rc(a=i.bc())&&(t._lazyContent=a.first)},viewQuery:function(e,t){var n;1&e&&i.Nc(y,!0),2&e&&i.rc(n=i.bc())&&(t._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(e,t){2&e&&i.Fb("mat-expanded",t.expanded)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-expansion-panel-spacing",t._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Ab([{provide:T,useValue:void 0}]),i.yb,i.zb],ngContentSelectors:k,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(e,t){1&e&&(i.jc(F),i.ic(0),i.Tb(1,"div",0,1),i.ac("@bodyExpansion.done",(function(e){return t._bodyAnimationDone.next(e)})),i.Tb(3,"div",2),i.ic(4,1),i.Fc(5,U,0,0,"ng-template",3),i.Sb(),i.ic(6,2),i.Sb()),2&e&&(i.Bb(1),i.kc("@bodyExpansion",t._getExpandedState())("id",t.id),i.Cb("aria-labelledby",t._headerId),i.Bb(4),i.kc("cdkPortalOutlet",t._portal))},directives:[p.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[N.bodyExpansion]},changeDetection:0}),e})(),R=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),e})(),K=(()=>{class e{constructor(e,t,n,i,a,A){this.panel=e,this._element=t,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=A,this._parentChangeSubscription=r.a.EMPTY;const o=e.accordion?e.accordion._stateChanges.pipe(Object(w.a)(e=>!(!e.hideToggle&&!e.togglePosition))):E.a;this._parentChangeSubscription=Object(Q.a)(e.opened,e.closed,o,e._inputChanges.pipe(Object(w.a)(e=>!!(e.hideToggle||e.disabled||e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Object(w.a)(()=>e._containsFocus())).subscribe(()=>n.focusVia(t,"program")),a&&(this.expandedHeight=a.expandedHeight,this.collapsedHeight=a.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case b.n:case b.f:Object(b.s)(e)||(e.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e))}}focus(e="program",t){this._focusMonitor.focusVia(this._element,e,t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(P,1),i.Nb(i.l),i.Nb(f.h),i.Nb(i.h),i.Nb(D,8),i.Nb(C.a,8))},e.\u0275cmp=i.Hb({type:e,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(e,t){1&e&&i.ac("click",(function(){return t._toggle()}))("keydown",(function(e){return t._keydown(e)})),2&e&&(i.Cb("id",t.panel._headerId)("tabindex",t.disabled?-1:0)("aria-controls",t._getPanelId())("aria-expanded",t._isExpanded())("aria-disabled",t.panel.disabled),i.Cc("height",t._getHeaderHeight()),i.Fb("mat-expanded",t._isExpanded())("mat-expansion-toggle-indicator-after","after"===t._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===t._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:_,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(e,t){1&e&&(i.jc(S),i.Tb(0,"span",0),i.ic(1),i.ic(2,1),i.ic(3,2),i.Sb(),i.Fc(4,H,1,1,"span",1)),2&e&&(i.Bb(4),i.kc("ngIf",t._showToggle()))},directives:[g.t],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[N.indicatorRotate]},changeDetection:0}),e})(),M=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),e})(),L=(()=>{class e extends l{constructor(){super(...arguments),this._ownHeaders=new i.E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(e){this._hideToggle=Object(a.c)(e)}ngAfterContentInit(){this._headers.changes.pipe(Object(B.a)(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(e=>e.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new f.g(this._ownHeaders).withWrap()}_handleHeaderKeydown(e){const{keyCode:t}=e,n=this._keyManager;t===b.h?Object(b.s)(e)||(n.setFirstItemActive(),e.preventDefault()):t===b.e?Object(b.s)(e)||(n.setLastItemActive(),e.preventDefault()):this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}}return e.\u0275fac=function(t){return V(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["mat-accordion"]],contentQueries:function(e,t,n){var a;1&e&&i.Gb(n,K,!0),2&e&&i.rc(a=i.bc())&&(t._headers=a)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(e,t){2&e&&i.Fb("mat-accordion-multi",t.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[i.Ab([{provide:T,useExisting:e}]),i.yb]}),e})();const V=i.Vb(L);let z=(()=>{class e{}return e.\u0275mod=i.Lb({type:e}),e.\u0275inj=i.Kb({factory:function(t){return new(t||e)},imports:[[g.c,u,p.h]]}),e})()},"9PQV":function(e,t,n){"use strict";n.r(t),n.d(t,"HtmlBuilderModule",(function(){return Ci}));var i=n("ofXK"),a=n("tyNb"),A=n("wOnQ"),r=n("2Vo4"),o=n("w1tV"),s=n("vkgz"),c=n("eIep"),l=n("Kj3r"),d=n("XFMS"),h=n("gHDK"),u=n("fXoL"),p=n("kmQS"),g=n("XNiG"),f=n("jtHE"),b=n("Cfvw"),m=n("yLCO"),B=n("oJgS");class w{constructor(e,t){this.name=e,this.params=t;const n=class{static generic(e){return{undo:e.undo,redo:e.redo}}static domChanges(e){return{undo:()=>{if(!e.node||!e.node.parentElement)return;for(;e.node.hasChildNodes();)e.node.removeChild(e.node.firstChild);const t=e.oldNode.cloneNode(!0);for(;t.hasChildNodes();)e.node.appendChild(t.firstChild);e.node.style.cssText=e.oldNode.style.cssText,e.node.className=e.oldNode.className},redo:()=>{if(!e.node||!e.node.parentElement)return;for(;e.node.hasChildNodes();)e.node.removeChild(e.node.firstChild);const t=e.newNode.cloneNode(!0);for(;t.hasChildNodes();)e.node.appendChild(t.firstChild);e.node.style.cssText=e.newNode.style.cssText,e.node.className=e.newNode.className}}}}[e](t);this.undo=n.undo.bind(this),this.redo=n.redo.bind(this)}undo(){}redo(){}}let v=(()=>{class e{constructor(){this.commands=[],this.pointer=-1,this.executedCommand=new u.n}canUndo(){return-1!==this.pointer}canRedo(){return this.pointer<this.commands.length-1}undo(){const e=this.commands[this.pointer];e&&(e.undo(),this.pointer-=1,this.executedCommand.emit("undo"))}redo(){const e=this.commands[this.pointer+1];e&&(e.redo(),this.pointer+=1,this.executedCommand.emit("redo"))}add(e,t){this.commands.length>100&&this.commands.splice(this.commands.length-1,1);const n=new w(e,t);return this.commands.push(n),this.pointer=this.commands.length-1,n}wrapDomChanges(e,t,n={}){if(!e)return;const i=n.before||e.cloneNode(!0);t&&t();const a=n.after||e.cloneNode(!0);this.add("domChanges",{oldNode:i,newNode:a,node:e})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class C{constructor(){this.isImage=!1}}var E=n("a6L5"),Q=n("ahrr");let x=(()=>{class e{constructor(e,t){this.elements=e,this.localStorage=t}repositionBox(e,t){if(!this.localStorage.get("settings."+e+"BoxEnabled",!0))return;if(!t||t.nodeType!==Node.ELEMENT_NODE||this.nodeIsHtmlOrBody(t))return this.hideBox(e);const n=t.getBoundingClientRect();n.width&&n.height?(this.getBox(e).style.top=n.top+"px",this.getBox(e).style.left=n.left+"px",this.getBox(e).style.height=n.height+"px",this.getBox(e).style.width=n.width+"px",this.showBox(e)):this.hideBox(e),n.width<85?this.getBox(e).classList.add("compact-mode"):this.getBox(e).classList.remove("compact-mode"),parseInt(this.getBox(e).style.top)<20?this.getBox(e).classList.add("toolbar-bottom"):this.getBox(e).classList.remove("toolbar-bottom")}hideBox(e){const t=this.getBox(e);t&&t.classList.add("hidden")}hideBoxes(){this.hideBox("selected"),this.hideBox("hover")}showBox(e){this.getBox(e).classList.remove("hidden")}set(e,t,n){this.hoverBox=e,this.selectedBox=t,this.previewRect=n.nativeElement.getBoundingClientRect()}getBox(e){return"hover"===e?this.hoverBox:this.selectedBox}nodeIsHtmlOrBody(e){return!!e&&("BODY"===e.nodeName||"HTML"===e.nodeName)}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(E.a),u.Xb(Q.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),y=(()=>{class e extends C{constructor(e,t){super(),this.elements=e,this.contextBoxes=t,this.changed=new r.a(null),this.isIcon=!1,this.isLink=!1,this.isLayout=!1}selectParent(){this.selectNode(this.node.parentElement)}canSelectParent(){if(!this.node)return!1;const e=this.node.parentElement;return e&&"body"!==e.nodeName.toLowerCase()}selectFirstChild(){this.selectNode(this.node.firstChild)}canSelectChild(){return!!this.node&&this.node.firstChild}getStyle(e){return this.node?window.getComputedStyle(this.node)[e]:null}canModify(e){return this.elements.canModify(e,this.element)}selectNode(e){if(!e||e.nodeType!==Node.ELEMENT_NODE||this.node===e)return;"html"===e.nodeName.toLowerCase()&&(e=e.querySelector("body")),"path"===e.nodeName.toLowerCase()&&(e=e.closest("svg")),e&&this.node!==e&&(this.node=e),this.element=this.elements.match(this.node,"select",!0),this.parent=this.node.parentElement,this.contextBoxes.repositionBox("selected",this.node),this.locked="string"==typeof this.node.className&&this.node.className.indexOf("locked")>-1,this.isImage="img"===this.node.nodeName.toLowerCase(),this.isIcon=this.elements.isIcon(this.node),this.isLink=this.elements.isLink(this.node),this.isLayout=this.elements.isLayout(this.node);let t=this.node;for(this.path=[];t&&t.nodeType===Node.ELEMENT_NODE&&"body"!==t.nodeName.toLowerCase();)this.path.unshift({node:t,name:this.elements.getDisplayName(this.elements.match(t),t)}),t=t.parentElement;this.changed.next(this)}isHtmlOrBody(){return"BODY"===this.node.nodeName||"HTML"===this.node.nodeName}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(E.a),u.Xb(x))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),U=(()=>{class e{constructor(e,t,n,i){this.undoManager=e,this.selected=t,this.elements=n,this.contextBoxes=i,this.contentChanged=new g.a}applyStyle(e,t,n,i=!0){i?this.undoManager.wrapDomChanges(e,()=>{e.style[t]=n,this.contextBoxes.repositionBox("selected",e),this.contentChanged.next("builderDocument")}):(e.style[t]=n,this.contextBoxes.repositionBox("selected",e),this.contentChanged.next("builderDocument"))}cloneNode(e){const t=e.cloneNode(!0);return this.undoManager.wrapDomChanges(e.parentElement,()=>{e.parentElement.insertBefore(t,e.nextElementSibling),this.contentChanged.next("nodeAdded")}),t}removeNode(e){if(e)return this.undoManager.wrapDomChanges(e.parentElement,()=>{this.selected.node===e&&this.selected.selectParent(),e.parentElement.removeChild(e),this.contentChanged.next("nodeRemoved")}),this.contextBoxes.hideBoxes(),e}copyNode(e){e&&"BODY"!=e.nodeName&&(this.copiedNode=e.cloneNode(!0))}pasteNode(e,t){t||(t=this.copiedNode),e&&t&&(this.undoManager.wrapDomChanges(e.parentElement,()=>{"BODY"==e.nodeName?e.appendChild(t):e.parentElement.insertBefore(t,e.nextSibling),this.contextBoxes.hideBox("selected")}),this.contentChanged.next("nodeAdded"))}cutNode(e){e&&"BODY"!=e.nodeName&&(this.copyNode(e),this.removeNode(e))}duplicateNode(e){const t=e.cloneNode(!0);this.pasteNode(this.selected.node,t)}setChangedSubject(e){this.contentChanged=e}moveSelected(e){if(this.selected.node){if("down"===e){const e=this.selected.node.nextElementSibling;if(e)this.elements.canInsert(e,this.selected.element)?e.insertBefore(this.selected.node,e.firstChild):e.parentElement.insertBefore(this.selected.node,e.nextElementSibling);else{const e=this.selected.node.parentElement.parentElement;this.elements.canInsert(e,this.selected.element)&&e.parentElement.insertBefore(this.selected.node,e.nextElementSibling)}}else if("up"===e){const e=this.selected.node.previousElementSibling;if(e)this.elements.canInsert(e,this.selected.element)?e.appendChild(this.selected.node):e.parentElement.insertBefore(this.selected.node,e);else{const e=this.selected.node.parentElement.parentElement;this.elements.canInsert(e,this.selected.element)&&e.insertBefore(this.selected.node,this.selected.node.parentElement)}}this.contextBoxes.repositionBox("selected",this.selected.node)}}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(v),u.Xb(y),u.Xb(E.a),u.Xb(x))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var F=n("pLZG"),k=n("IzEk"),H=n("3E0/");let S=(()=>{class e{constructor(){this.loading$=new r.a(!0),this.loadedAtLeastOnce$=new f.a(1),this.loading$.pipe(Object(F.a)(e=>!e),Object(k.a)(1),Object(H.a)(500)).subscribe(()=>this.loadedAtLeastOnce$.next(!0))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_=(()=>{class e{constructor(e,t,n,i){this.actions=e,this.settings=t,this.contextBoxes=n,this.mainLoader=i,this.contentChanged=new g.a,this.loaded$=new f.a(1),this.actions.setChangedSubject(this.contentChanged)}getInnerHtml(){return this.document.documentElement.innerHTML}getOuterHtml(){var e;return Object(h.a)(this.document.documentElement.outerHTML,null===(e=this.template)||void 0===e?void 0:e.config)}get(){return this.document}getBody(){return this.document.body}focus(){const e=this.getBody();e&&e.focus()}getScrollTop(){return this.document.documentElement?this.document.documentElement.scrollTop||this.getBody().scrollTop:0}scrollIntoView(e){e&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}elementFromPoint(e,t){return this.document.elementFromPoint(e,t)}reloadCustomElementsCss(){const e=this.find("#custom-elements-css"),t=e.getAttribute("href").split("?")[0]+"?="+Object(B.a)(8);e.setAttribute("href",t)}createElement(e){return this.document.createElement(e)}on(e,t,n){this.document.addEventListener(e,t,n)}find(e){return this.document.querySelector(e)}findAll(e){return this.document.querySelectorAll(e)}execCommand(e,t){return this.document.execCommand(e,null,t)}queryCommandState(e){return this.document.queryCommandState(e)}update(e){var t;this.mainLoader.loading$.next(!0),e=Object.assign({},{template:this.template,source:"builderDocument"},e),this.template=e.template||this.template;const n=Object.assign(Object.assign({includeBootstrap:!0},null===(t=this.template)||void 0===t?void 0:t.config),{theme:e.theme});this.contextBoxes.hideBoxes(),this.document.body.scrollTop=0,this.document.documentElement.innerHTML=Object(h.a)(e.html,n),this.addIframeCss(),this.contentChanged.next(e.source);const i=Array.from(this.document.head.querySelectorAll("link")).filter(e=>e.href.endsWith(".css")&&!e.sheet).map(e=>new Promise(t=>e.addEventListener("load",t))),a=Object(b.a)(Promise.all(i)).pipe(Object(o.a)());return a.subscribe(()=>{this.document.defaultView.dispatchEvent(new Event("load")),this.mainLoader.loading$.next(!1)}),a}getMetaTagValue(e){const t=this.document.querySelector(`meta[name=${e}]`);return t&&t.getAttribute("content")}setMetaTagValue(e,t){let n=this.document.querySelector(`meta[name=${e}]`);n||(n=this.document.createElement("meta"),this.document.head.appendChild(n)),n.setAttribute("name",e),n.setAttribute("content",t)}getTitleValue(){const e=this.document.querySelector("title");return e&&e.innerText}setTitleValue(e){let t=this.document.querySelector("title");t||(t=this.document.createElement("title"),this.document.head.appendChild(t)),t.innerText=e}setTemplate(e){this.template=e}addIframeCss(){const e=this.settings.getAssetUrl()+"css/iframe.css",t=m.a.createLink(e,"preview-css");this.document.head.appendChild(t)}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(U),u.Xb(p.a),u.Xb(x),u.Xb(S))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var T=n("AUIZ"),N=n("agwZ"),I=n("SW18"),O=n("i2dy");let D=(()=>{class e{constructor(e,t,n,i,a,A,o){this.settings=e,this.builderDocument=t,this.projectUrl=n,this.projects=i,this.templates=a,this.toast=A,this.localStorage=o,this.pages$=new r.a([]),this.activePage$=new r.a(null),this.saving=!1,this.bindToBuilderDocumentChangeEvent()}get(){return this.project}save(e={thumbnail:!0}){this.saving=!0,e.thumbnail&&this.createThumbnail(),e.params||(e.params={}),this.activePage$.value.html=this.builderDocument.getOuterHtml();const t=Object.assign({},e.params,{name:this.project.model.name,css:this.project.css,js:this.project.js,theme:this.project.model.theme,template:this.project.model.template,pages:this.pages$.value.map(e=>({name:e.name,html:e.html}))}),n=this.projects.update(this.project.model.id,t).pipe(Object(o.a)());return n.subscribe(e=>{this.project=e.project,this.saving=!1},()=>{this.saving=!1,this.toast.open("Could not save project")}),n}setActivePage(e){const t=this.pages$.value.find(t=>t.name.toLowerCase()===e.toLowerCase());return t&&this.activePage$.next(t),this}addPage(e){return this.pages$.next([e,...this.pages$.value]),this.activePage$.next(e),this.updateBuilderDocument()}updatePage(e,t){const n=[...this.pages$.value],i=n.findIndex(t=>t.name===e);return n[i]=t,this.pages$.next(n),this}removePage(e){const t=[...this.pages$.value],n=t.findIndex(t=>e.name===t.name);t.splice(n,1),this.pages$.next(t),this.activePage$.next(t[t.length-1]),this.updateBuilderDocument()}setProject(e){this.project=e,this.pages$.next(e.pages),this.setActivePage("index"),this.activeTemplate=e.template,this.builderDocument.setTemplate(this.activeTemplate)}applyTemplate(e){return this.project.model.template=e,this.templates.get(e).pipe(Object(s.a)(e=>{this.activeTemplate=e.template;const t=e.template.pages.map(e=>({name:e.name,html:Object(h.a)(e.html,this.activeTemplate.config)}));this.pages$.next(t),this.setActivePage("index"),this.updateBuilderDocument()}),Object(c.a)(()=>this.save({thumbnail:!0}).pipe(Object(s.a)(()=>{this.builderDocument.document.body.scrollTop=0,this.builderDocument.document.location.reload()}))))}applyTheme(e){this.project.model.theme=(null==e?void 0:e.name)||null;const t=this.save({thumbnail:!1}).pipe(Object(c.a)(()=>this.updateBuilderDocument()),Object(o.a)());return t.subscribe(()=>this.toast.open("Theme applied")),t}getBaseUrl(e=!1){return this.project?this.projectUrl.getBaseUrl(this.project.model,e):""}getSiteUrl(){return this.projectUrl.getSiteUrl(this.project.model)}getImageUrl(e){if(Object(d.a)(e.url))return e.url;{const t=this.getBaseUrl(!0)+"images";return e.url.replace("storage/"+t,"images")}}updateBuilderDocument(){return this.builderDocument.update({html:this.activePage$.value.html,template:this.activeTemplate,source:"activeProject",theme:!!this.project.model.theme})}bindToBuilderDocumentChangeEvent(){this.builderDocument.contentChanged.pipe(Object(l.a)(1e3)).subscribe(e=>{"activeProject"!==e&&(this.activePage$.value.html=this.builderDocument.getOuterHtml(),this.localStorage.get("settings.autoSave")&&this.save({thumbnail:!1}))})}createThumbnail(){const e=document.createElement("base");e.href=this.getBaseUrl(),this.builderDocument.document.head.querySelector("base")||this.builderDocument.get().head.prepend(e),A(this.builderDocument.get().documentElement,{svgRendering:!0,height:1e3}).then(t=>{e.remove(),this.projects.generateThumbnail(this.project.model.id,t.toDataURL("image/png")).subscribe(()=>{},()=>{})})}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(p.a),u.Xb(_),u.Xb(T.a),u.Xb(N.a),u.Xb(I.a),u.Xb(O.b),u.Xb(Q.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const P=["chrome","clouds","crimson_editor","tomorrow_night","dawn","dreamweaver","eclipse","github","solarized_light","textmate","tomorrow","xcode","kuroir","katzen_milch","ambiance","chaos","clouds_midnight","cobalt","idle_fingers","kr_theme","merbivore","merbivore_soft","mono_industrial","monokai","pastel_on_dark","solarized_light","terminal","tomorrow_night_blue","tomorrow_night_bright","tomorrow_night_80s","twilight","vibrant_ink"];var R=n("ZfYz"),K=n("5o4b"),M=n("5+WD"),L=n("3Pt+"),V=n("bTqV"),z=n("NFeN");const X=["editor"];function G(e,t){if(1&e&&(u.Tb(0,"option",12),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("ngValue",e),u.Bb(1),u.Ic(e)}}let j=(()=>{class e{constructor(e,t,n,i,a){this.lazyLoader=e,this.activeProject=t,this.selectedElement=n,this.builderDocument=i,this.overlayRef=a,this.loading=!1,this.suppressChangeEvents=!1,this.theme="chrome",this.themes=P,this.activeEditor="html",this.contentsChange=new g.a,this.loaded=new g.a,this.subscriptions=[]}ngOnInit(){this.initEditor().then(()=>{this.updateEditorContents(this.activeEditor);const e=this.selectedElement.changed.subscribe(()=>{this.selectedElement.node&&this.selectNodeSource(this.selectedElement.node)});this.bindToBuilderDocumentChangeEvent(),this.bindToEditorChangeEvent(),this.subscriptions.push(e),setTimeout(()=>{this.loaded.next(this),this.loaded.complete()})})}ngOnDestroy(){this.editor&&this.editor.destroy(),this.subscriptions.forEach(e=>{e&&e.unsubscribe()})}afterLoaded(){return this.loaded.asObservable()}selectNodeSource(e){this.editor.find(html_beautify(e.outerHTML))}useTheme(e){this.editor.setTheme("ace/theme/"+e)}switchType(e){this.activeEditor=e,this.changeEditorMode(e),this.updateEditorContents(e)}updateEditorContents(e){if("html"===e){const e=this.builderDocument.getOuterHtml().replace(/\n\s*\n/g,"\n");this.setEditorValue(html_beautify(e))}else"css"===e?this.setEditorValue(this.activeProject.get().css):"js"===e&&this.setEditorValue(this.activeProject.get().js)}bindToEditorChangeEvent(){const e=this.contentsChange.pipe(Object(l.a)(800)).subscribe(()=>{let e=!1;"html"===this.activeEditor?this.builderDocument.update({html:this.editor.getValue(),source:"codeEditor"}):"css"===this.activeEditor?(this.activeProject.get().css=this.editor.getValue(),e=!0):"js"===this.activeEditor&&(this.activeProject.get().js=this.editor.getValue(),e=!0),e&&this.activeProject.save({thumbnail:!1}).subscribe(()=>{this.builderDocument.update({html:this.builderDocument.getInnerHtml(),source:"codeEditor"})})});this.subscriptions.push(e)}bindToBuilderDocumentChangeEvent(){const e=this.builderDocument.contentChanged.pipe(Object(l.a)(500)).subscribe(e=>{"codeEditor"!==e&&this.updateEditorContents(this.activeEditor)});this.subscriptions.push(e)}setEditorValue(e){this.suppressChangeEvents=!0,this.editor&&this.editor.getValue()!==e&&this.editor.setValue(e,-1),this.suppressChangeEvents=!1}activeTypeIs(e){return this.activeEditor===e}closeEditor(){this.overlayRef.close()}initEditor(e="html"){return this.loading=!0,Promise.all([this.lazyLoader.loadAsset("js/ace/ace.js",{type:"js"}),this.lazyLoader.loadAsset("js/beautify-html.js",{type:"js"})]).then(()=>{this.editor=ace.edit(this.editorEl.nativeElement),this.changeEditorMode(e),this.useTheme("chrome"),this.editor.$blockScrolling=1/0,this.loading=!1,this.editor.on("change",()=>{this.suppressChangeEvents||this.contentsChange.next()})})}changeEditorMode(e){e="js"===e?"javascript":e,this.editor&&this.editor.getSession().setMode("ace/mode/"+e)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(K.a),u.Nb(D),u.Nb(y),u.Nb(_),u.Nb(R.a,8))},e.\u0275cmp=u.Hb({type:e,selectors:[["code-editor"]],viewQuery:function(e,t){var n;1&e&&u.Bc(X,!0),2&e&&u.rc(n=u.bc())&&(t.editorEl=n.first)},decls:17,vars:8,consts:[["cdkDrag","","cdkDragHandle","","cdkDragRootElement",".cdk-overlay-pane","cdkDragBoundary","body",1,"toolbar"],[1,"input-container","theme-select-container"],["name","editor-theme","id","editor-theme",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"type-buttons"],["type","button","mat-button","",3,"click"],[1,"action-buttons"],["type","button","mat-icon-button","",3,"click"],["svgIcon","close"],[1,"editor-container"],[1,"editor"],["editor",""],[3,"ngValue"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Tb(2,"select",2),u.ac("ngModelChange",(function(e){return t.theme=e}))("ngModelChange",(function(){return t.useTheme(t.theme)})),u.Fc(3,G,2,2,"option",3),u.Sb(),u.Sb(),u.Tb(4,"div",4),u.Tb(5,"button",5),u.ac("click",(function(){return t.switchType("html")})),u.Hc(6,"HTML"),u.Sb(),u.Tb(7,"button",5),u.ac("click",(function(){return t.switchType("css")})),u.Hc(8,"CSS"),u.Sb(),u.Tb(9,"button",5),u.ac("click",(function(){return t.switchType("js")})),u.Hc(10,"JS"),u.Sb(),u.Sb(),u.Tb(11,"div",6),u.Tb(12,"button",7),u.ac("click",(function(){return t.closeEditor()})),u.Ob(13,"mat-icon",8),u.Sb(),u.Sb(),u.Sb(),u.Tb(14,"div",9),u.Ob(15,"div",10,11),u.Sb()),2&e&&(u.Bb(2),u.kc("ngModel",t.theme),u.Bb(1),u.kc("ngForOf",t.themes),u.Bb(2),u.Fb("active",t.activeTypeIs("html")),u.Bb(2),u.Fb("active",t.activeTypeIs("css")),u.Bb(2),u.Fb("active",t.activeTypeIs("js")))},directives:[M.a,M.b,L.G,L.u,L.x,i.s,V.b,z.a,L.z,L.J],styles:["code-editor{display:block;min-height:540px;width:100%;height:100%;background-color:var(--be-background);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}@media screen and (min-width:850px){code-editor{min-width:800px}}code-editor .toolbar{display:flex;align-items:center;background-color:var(--be-background-alternative);cursor:move}code-editor .toolbar .theme-select-container{max-width:150px}code-editor .toolbar .type-buttons{margin-left:auto}code-editor .toolbar .action-buttons{margin-left:80px}code-editor .toolbar .active{color:var(--be-accent-default)}code-editor .editor-container{height:calc(100% - 40px)}code-editor .editor{height:100%;min-height:500px;border:1px solid var(--be-divider-default);font-size:1.4rem}"],encapsulation:2}),e})();var J=n("dz5c"),W=n("OnlV");let Y=(()=>{class e{constructor(e,t){this.overlayPanel=e,this.breakpoints=t}toggle(){this.overlayRef&&this.overlayRef.isOpen()?this.close():this.open()}open(){if(this.overlayRef&&this.overlayRef.isOpen())return this.overlayRef.componentRef.instance.afterLoaded();const e=document.querySelector("live-preview").getBoundingClientRect();return this.overlayRef=this.overlayPanel.open(j,{position:[{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetX:15,offsetY:15},{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:15,offsetY:15}],mobilePosition:"center",hasBackdrop:this.breakpoints.isMobile$.value,width:e.width-50,height:e.height-30,origin:this.origin}),this.overlayRef.componentRef.instance.afterLoaded()}close(){this.overlayRef&&(this.overlayRef.close(),this.overlayRef=null)}setOrigin(e){this.origin=e}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(J.a),u.Xb(W.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const q=[{name:"Impact",css:"Impact, Charcoal, sans-serif"},{name:"Comic Sans",css:'"Comic Sans MS", cursive, sans-serif'},{name:"Arial Black",css:'"Arial Black", Gadget, sans-serif'},{name:"Century Gothic",css:"Century Gothic, sans-serif"},{name:"Courier New",css:'"Courier New", Courier, monospace'},{name:"Lucida Sans",css:'"Lucida Sans Unicode", "Lucida Grande", sans-serif'},{name:"Times New Roman",css:'"Times New Roman", Times, serif'},{name:"Lucida Console",css:'"Lucida Console", Monaco, monospace'},{name:"Andele Mono",css:'"Andele Mono", monospace, sans-serif'},{name:"Verdana",css:"Verdana, Geneva, sans-serif"},{name:"Helvetica Neue",css:'"Helvetica Neue", Helvetica, Arial, sans-serif'}],Z=[100,200,300,400,500,600,700,800,900],$=["fa fa-ad","fa fa-address-book","fa fa-address-book","fa fa-address-card","fa fa-address-card","fa fa-adjust","fa fa-air-freshener","fa fa-align-center","fa fa-align-justify","fa fa-align-left","fa fa-align-right","fa fa-allergies","fa fa-ambulance","fa fa-american-sign-language-interpreting","fa fa-anchor","fa fa-angle-double-down","fa fa-angle-double-left","fa fa-angle-double-right","fa fa-angle-double-up","fa fa-angle-down","fa fa-angle-left","fa fa-angle-right","fa fa-angle-up","fa fa-angry","fa fa-angry","fa fa-ankh","fa fa-apple-alt","fa fa-archive","fa fa-archway","fa fa-arrow-alt-circle-down","fa fa-arrow-alt-circle-down","fa fa-arrow-alt-circle-left","fa fa-arrow-alt-circle-left","fa fa-arrow-alt-circle-right","fa fa-arrow-alt-circle-right","fa fa-arrow-alt-circle-up","fa fa-arrow-alt-circle-up","fa fa-arrow-circle-down","fa fa-arrow-circle-left","fa fa-arrow-circle-right","fa fa-arrow-circle-up","fa fa-arrow-down","fa fa-arrow-left","fa fa-arrow-right","fa fa-arrow-up","fa fa-arrows-alt","fa fa-arrows-alt-h","fa fa-arrows-alt-v","fa fa-assistive-listening-systems","fa fa-asterisk","fa fa-at","fa fa-atlas","fa fa-atom","fa fa-audio-description","fa fa-award","fa fa-baby","fa fa-baby-carriage","fa fa-backspace","fa fa-backward","fa fa-bacon","fa fa-bacteria","fa fa-bacterium","fa fa-bahai","fa fa-balance-scale","fa fa-balance-scale-left","fa fa-balance-scale-right","fa fa-ban","fa fa-band-aid","fa fa-barcode","fa fa-bars","fa fa-baseball-ball","fa fa-basketball-ball","fa fa-bath","fa fa-battery-empty","fa fa-battery-full","fa fa-battery-half","fa fa-battery-quarter","fa fa-battery-three-quarters","fa fa-bed","fa fa-beer","fa fa-bell","fa fa-bell","fa fa-bell-slash","fa fa-bell-slash","fa fa-bezier-curve","fa fa-bible","fa fa-bicycle","fa fa-biking","fa fa-binoculars","fa fa-biohazard","fa fa-birthday-cake","fa fa-blender","fa fa-blender-phone","fa fa-blind","fa fa-blog","fa fa-bold","fa fa-bolt","fa fa-bomb","fa fa-bone","fa fa-bong","fa fa-book","fa fa-book-dead","fa fa-book-medical","fa fa-book-open","fa fa-book-reader","fa fa-bookmark","fa fa-bookmark","fa fa-border-all","fa fa-border-none","fa fa-border-style","fa fa-bowling-ball","fa fa-box","fa fa-box-open","fa fa-box-tissue","fa fa-boxes","fa fa-braille","fa fa-brain","fa fa-bread-slice","fa fa-briefcase","fa fa-briefcase-medical","fa fa-broadcast-tower","fa fa-broom","fa fa-brush","fa fa-bug","fa fa-building","fa fa-building","fa fa-bullhorn","fa fa-bullseye","fa fa-burn","fa fa-bus","fa fa-bus-alt","fa fa-business-time","fa fa-calculator","fa fa-calendar","fa fa-calendar","fa fa-calendar-alt","fa fa-calendar-alt","fa fa-calendar-check","fa fa-calendar-check","fa fa-calendar-day","fa fa-calendar-minus","fa fa-calendar-minus","fa fa-calendar-plus","fa fa-calendar-plus","fa fa-calendar-times","fa fa-calendar-times","fa fa-calendar-week","fa fa-camera","fa fa-camera-retro","fa fa-campground","fa fa-candy-cane","fa fa-cannabis","fa fa-capsules","fa fa-car","fa fa-car-alt","fa fa-car-battery","fa fa-car-crash","fa fa-car-side","fa fa-caravan","fa fa-caret-down","fa fa-caret-left","fa fa-caret-right","fa fa-caret-square-down","fa fa-caret-square-down","fa fa-caret-square-left","fa fa-caret-square-left","fa fa-caret-square-right","fa fa-caret-square-right","fa fa-caret-square-up","fa fa-caret-square-up","fa fa-caret-up","fa fa-carrot","fa fa-cart-arrow-down","fa fa-cart-plus","fa fa-cash-register","fa fa-cat","fa fa-certificate","fa fa-chair","fa fa-chalkboard","fa fa-chalkboard-teacher","fa fa-charging-station","fa fa-chart-area","fa fa-chart-bar","fa fa-chart-bar","fa fa-chart-line","fa fa-chart-pie","fa fa-check","fa fa-check-circle","fa fa-check-circle","fa fa-check-double","fa fa-check-square","fa fa-check-square","fa fa-cheese","fa fa-chess","fa fa-chess-bishop","fa fa-chess-board","fa fa-chess-king","fa fa-chess-knight","fa fa-chess-pawn","fa fa-chess-queen","fa fa-chess-rook","fa fa-chevron-circle-down","fa fa-chevron-circle-left","fa fa-chevron-circle-right","fa fa-chevron-circle-up","fa fa-chevron-down","fa fa-chevron-left","fa fa-chevron-right","fa fa-chevron-up","fa fa-child","fa fa-church","fa fa-circle","fa fa-circle","fa fa-circle-notch","fa fa-city","fa fa-clinic-medical","fa fa-clipboard","fa fa-clipboard","fa fa-clipboard-check","fa fa-clipboard-list","fa fa-clock","fa fa-clock","fa fa-clone","fa fa-clone","fa fa-closed-captioning","fa fa-closed-captioning","fa fa-cloud","fa fa-cloud-download-alt","fa fa-cloud-meatball","fa fa-cloud-moon","fa fa-cloud-moon-rain","fa fa-cloud-rain","fa fa-cloud-showers-heavy","fa fa-cloud-sun","fa fa-cloud-sun-rain","fa fa-cloud-upload-alt","fa fa-cocktail","fa fa-code","fa fa-code-branch","fa fa-coffee","fa fa-cog","fa fa-cogs","fa fa-coins","fa fa-columns","fa fa-comment","fa fa-comment","fa fa-comment-alt","fa fa-comment-alt","fa fa-comment-dollar","fa fa-comment-dots","fa fa-comment-dots","fa fa-comment-medical","fa fa-comment-slash","fa fa-comments","fa fa-comments","fa fa-comments-dollar","fa fa-compact-disc","fa fa-compass","fa fa-compass","fa fa-compress","fa fa-compress-alt","fa fa-compress-arrows-alt","fa fa-concierge-bell","fa fa-cookie","fa fa-cookie-bite","fa fa-copy","fa fa-copy","fa fa-copyright","fa fa-copyright","fa fa-couch","fa fa-credit-card","fa fa-credit-card","fa fa-crop","fa fa-crop-alt","fa fa-cross","fa fa-crosshairs","fa fa-crow","fa fa-crown","fa fa-crutch","fa fa-cube","fa fa-cubes","fa fa-cut","fa fa-database","fa fa-deaf","fa fa-democrat","fa fa-desktop","fa fa-dharmachakra","fa fa-diagnoses","fa fa-dice","fa fa-dice-d20","fa fa-dice-d6","fa fa-dice-five","fa fa-dice-four","fa fa-dice-one","fa fa-dice-six","fa fa-dice-three","fa fa-dice-two","fa fa-digital-tachograph","fa fa-directions","fa fa-disease","fa fa-divide","fa fa-dizzy","fa fa-dizzy","fa fa-dna","fa fa-dog","fa fa-dollar-sign","fa fa-dolly","fa fa-dolly-flatbed","fa fa-donate","fa fa-door-closed","fa fa-door-open","fa fa-dot-circle","fa fa-dot-circle","fa fa-dove","fa fa-download","fa fa-drafting-compass","fa fa-dragon","fa fa-draw-polygon","fa fa-drum","fa fa-drum-steelpan","fa fa-drumstick-bite","fa fa-dumbbell","fa fa-dumpster","fa fa-dumpster-fire","fa fa-dungeon","fa fa-edit","fa fa-edit","fa fa-egg","fa fa-eject","fa fa-ellipsis-h","fa fa-ellipsis-v","fa fa-envelope","fa fa-envelope","fa fa-envelope-open","fa fa-envelope-open","fa fa-envelope-open-text","fa fa-envelope-square","fa fa-equals","fa fa-eraser","fa fa-ethernet","fa fa-euro-sign","fa fa-exchange-alt","fa fa-exclamation","fa fa-exclamation-circle","fa fa-exclamation-triangle","fa fa-expand","fa fa-expand-alt","fa fa-expand-arrows-alt","fa fa-external-link-alt","fa fa-external-link-square-alt","fa fa-eye","fa fa-eye","fa fa-eye-dropper","fa fa-eye-slash","fa fa-eye-slash","fa fa-fan","fa fa-fast-backward","fa fa-fast-forward","fa fa-faucet","fa fa-fax","fa fa-feather","fa fa-feather-alt","fa fa-female","fa fa-fighter-jet","fa fa-file","fa fa-file","fa fa-file-alt","fa fa-file-alt","fa fa-file-archive","fa fa-file-archive","fa fa-file-audio","fa fa-file-audio","fa fa-file-code","fa fa-file-code","fa fa-file-contract","fa fa-file-csv","fa fa-file-download","fa fa-file-excel","fa fa-file-excel","fa fa-file-export","fa fa-file-image","fa fa-file-image","fa fa-file-import","fa fa-file-invoice","fa fa-file-invoice-dollar","fa fa-file-medical","fa fa-file-medical-alt","fa fa-file-pdf","fa fa-file-pdf","fa fa-file-powerpoint","fa fa-file-powerpoint","fa fa-file-prescription","fa fa-file-signature","fa fa-file-upload","fa fa-file-video","fa fa-file-video","fa fa-file-word","fa fa-file-word","fa fa-fill","fa fa-fill-drip","fa fa-film","fa fa-filter","fa fa-fingerprint","fa fa-fire","fa fa-fire-alt","fa fa-fire-extinguisher","fa fa-first-aid","fa fa-fish","fa fa-fist-raised","fa fa-flag","fa fa-flag","fa fa-flag-checkered","fa fa-flag-usa","fa fa-flask","fa fa-flushed","fa fa-flushed","fa fa-folder","fa fa-folder","fa fa-folder-minus","fa fa-folder-open","fa fa-folder-open","fa fa-folder-plus","fa fa-font","fa fa-football-ball","fa fa-forward","fa fa-frog","fa fa-frown","fa fa-frown","fa fa-frown-open","fa fa-frown-open","fa fa-funnel-dollar","fa fa-futbol","fa fa-futbol","fa fa-gamepad","fa fa-gas-pump","fa fa-gavel","fa fa-gem","fa fa-gem","fa fa-genderless","fa fa-ghost","fa fa-gift","fa fa-gifts","fa fa-glass-cheers","fa fa-glass-martini","fa fa-glass-martini-alt","fa fa-glass-whiskey","fa fa-glasses","fa fa-globe","fa fa-globe-africa","fa fa-globe-americas","fa fa-globe-asia","fa fa-globe-europe","fa fa-golf-ball","fa fa-gopuram","fa fa-graduation-cap","fa fa-greater-than","fa fa-greater-than-equal","fa fa-grimace","fa fa-grimace","fa fa-grin","fa fa-grin","fa fa-grin-alt","fa fa-grin-alt","fa fa-grin-beam","fa fa-grin-beam","fa fa-grin-beam-sweat","fa fa-grin-beam-sweat","fa fa-grin-hearts","fa fa-grin-hearts","fa fa-grin-squint","fa fa-grin-squint","fa fa-grin-squint-tears","fa fa-grin-squint-tears","fa fa-grin-stars","fa fa-grin-stars","fa fa-grin-tears","fa fa-grin-tears","fa fa-grin-tongue","fa fa-grin-tongue","fa fa-grin-tongue-squint","fa fa-grin-tongue-squint","fa fa-grin-tongue-wink","fa fa-grin-tongue-wink","fa fa-grin-wink","fa fa-grin-wink","fa fa-grip-horizontal","fa fa-grip-lines","fa fa-grip-lines-vertical","fa fa-grip-vertical","fa fa-guitar","fa fa-h-square","fa fa-hamburger","fa fa-hammer","fa fa-hamsa","fa fa-hand-holding","fa fa-hand-holding-heart","fa fa-hand-holding-medical","fa fa-hand-holding-usd","fa fa-hand-holding-water","fa fa-hand-lizard","fa fa-hand-lizard","fa fa-hand-middle-finger","fa fa-hand-paper","fa fa-hand-paper","fa fa-hand-peace","fa fa-hand-peace","fa fa-hand-point-down","fa fa-hand-point-down","fa fa-hand-point-left","fa fa-hand-point-left","fa fa-hand-point-right","fa fa-hand-point-right","fa fa-hand-point-up","fa fa-hand-point-up","fa fa-hand-pointer","fa fa-hand-pointer","fa fa-hand-rock","fa fa-hand-rock","fa fa-hand-scissors","fa fa-hand-scissors","fa fa-hand-sparkles","fa fa-hand-spock","fa fa-hand-spock","fa fa-hands","fa fa-hands-helping","fa fa-hands-wash","fa fa-handshake","fa fa-handshake","fa fa-handshake-alt-slash","fa fa-handshake-slash","fa fa-hanukiah","fa fa-hard-hat","fa fa-hashtag","fa fa-hat-cowboy","fa fa-hat-cowboy-side","fa fa-hat-wizard","fa fa-hdd","fa fa-hdd","fa fa-head-side-cough","fa fa-head-side-cough-slash","fa fa-head-side-mask","fa fa-head-side-virus","fa fa-heading","fa fa-headphones","fa fa-headphones-alt","fa fa-headset","fa fa-heart","fa fa-heart","fa fa-heart-broken","fa fa-heartbeat","fa fa-helicopter","fa fa-highlighter","fa fa-hiking","fa fa-hippo","fa fa-history","fa fa-hockey-puck","fa fa-holly-berry","fa fa-home","fa fa-horse","fa fa-horse-head","fa fa-hospital","fa fa-hospital","fa fa-hospital-alt","fa fa-hospital-symbol","fa fa-hospital-user","fa fa-hot-tub","fa fa-hotdog","fa fa-hotel","fa fa-hourglass","fa fa-hourglass","fa fa-hourglass-end","fa fa-hourglass-half","fa fa-hourglass-start","fa fa-house-damage","fa fa-house-user","fa fa-hryvnia","fa fa-i-cursor","fa fa-ice-cream","fa fa-icicles","fa fa-icons","fa fa-id-badge","fa fa-id-badge","fa fa-id-card","fa fa-id-card","fa fa-id-card-alt","fa fa-igloo","fa fa-image","fa fa-image","fa fa-images","fa fa-images","fa fa-inbox","fa fa-indent","fa fa-industry","fa fa-infinity","fa fa-info","fa fa-info-circle","fa fa-italic","fa fa-jedi","fa fa-joint","fa fa-journal-whills","fa fa-kaaba","fa fa-key","fa fa-keyboard","fa fa-keyboard","fa fa-khanda","fa fa-kiss","fa fa-kiss","fa fa-kiss-beam","fa fa-kiss-beam","fa fa-kiss-wink-heart","fa fa-kiss-wink-heart","fa fa-kiwi-bird","fa fa-landmark","fa fa-language","fa fa-laptop","fa fa-laptop-code","fa fa-laptop-house","fa fa-laptop-medical","fa fa-laugh","fa fa-laugh","fa fa-laugh-beam","fa fa-laugh-beam","fa fa-laugh-squint","fa fa-laugh-squint","fa fa-laugh-wink","fa fa-laugh-wink","fa fa-layer-group","fa fa-leaf","fa fa-lemon","fa fa-lemon","fa fa-less-than","fa fa-less-than-equal","fa fa-level-down-alt","fa fa-level-up-alt","fa fa-life-ring","fa fa-life-ring","fa fa-lightbulb","fa fa-lightbulb","fa fa-link","fa fa-lira-sign","fa fa-list","fa fa-list-alt","fa fa-list-alt","fa fa-list-ol","fa fa-list-ul","fa fa-location-arrow","fa fa-lock","fa fa-lock-open","fa fa-long-arrow-alt-down","fa fa-long-arrow-alt-left","fa fa-long-arrow-alt-right","fa fa-long-arrow-alt-up","fa fa-low-vision","fa fa-luggage-cart","fa fa-lungs","fa fa-lungs-virus","fa fa-magic","fa fa-magnet","fa fa-mail-bulk","fa fa-male","fa fa-map","fa fa-map","fa fa-map-marked","fa fa-map-marked-alt","fa fa-map-marker","fa fa-map-marker-alt","fa fa-map-pin","fa fa-map-signs","fa fa-marker","fa fa-mars","fa fa-mars-double","fa fa-mars-stroke","fa fa-mars-stroke-h","fa fa-mars-stroke-v","fa fa-mask","fa fa-medal","fa fa-medkit","fa fa-meh","fa fa-meh","fa fa-meh-blank","fa fa-meh-blank","fa fa-meh-rolling-eyes","fa fa-meh-rolling-eyes","fa fa-memory","fa fa-menorah","fa fa-mercury","fa fa-meteor","fa fa-microchip","fa fa-microphone","fa fa-microphone-alt","fa fa-microphone-alt-slash","fa fa-microphone-slash","fa fa-microscope","fa fa-minus","fa fa-minus-circle","fa fa-minus-square","fa fa-minus-square","fa fa-mitten","fa fa-mobile","fa fa-mobile-alt","fa fa-money-bill","fa fa-money-bill-alt","fa fa-money-bill-alt","fa fa-money-bill-wave","fa fa-money-bill-wave-alt","fa fa-money-check","fa fa-money-check-alt","fa fa-monument","fa fa-moon","fa fa-moon","fa fa-mortar-pestle","fa fa-mosque","fa fa-motorcycle","fa fa-mountain","fa fa-mouse","fa fa-mouse-pointer","fa fa-mug-hot","fa fa-music","fa fa-network-wired","fa fa-neuter","fa fa-newspaper","fa fa-newspaper","fa fa-not-equal","fa fa-notes-medical","fa fa-object-group","fa fa-object-group","fa fa-object-ungroup","fa fa-object-ungroup","fa fa-oil-can","fa fa-om","fa fa-otter","fa fa-outdent","fa fa-pager","fa fa-paint-brush","fa fa-paint-roller","fa fa-palette","fa fa-pallet","fa fa-paper-plane","fa fa-paper-plane","fa fa-paperclip","fa fa-parachute-box","fa fa-paragraph","fa fa-parking","fa fa-passport","fa fa-pastafarianism","fa fa-paste","fa fa-pause","fa fa-pause-circle","fa fa-pause-circle","fa fa-paw","fa fa-peace","fa fa-pen","fa fa-pen-alt","fa fa-pen-fancy","fa fa-pen-nib","fa fa-pen-square","fa fa-pencil-alt","fa fa-pencil-ruler","fa fa-people-arrows","fa fa-people-carry","fa fa-pepper-hot","fa fa-percent","fa fa-percentage","fa fa-person-booth","fa fa-phone","fa fa-phone-alt","fa fa-phone-slash","fa fa-phone-square","fa fa-phone-square-alt","fa fa-phone-volume","fa fa-photo-video","fa fa-piggy-bank","fa fa-pills","fa fa-pizza-slice","fa fa-place-of-worship","fa fa-plane","fa fa-plane-arrival","fa fa-plane-departure","fa fa-plane-slash","fa fa-play","fa fa-play-circle","fa fa-play-circle","fa fa-plug","fa fa-plus","fa fa-plus-circle","fa fa-plus-square","fa fa-plus-square","fa fa-podcast","fa fa-poll","fa fa-poll-h","fa fa-poo","fa fa-poo-storm","fa fa-poop","fa fa-portrait","fa fa-pound-sign","fa fa-power-off","fa fa-pray","fa fa-praying-hands","fa fa-prescription","fa fa-prescription-bottle","fa fa-prescription-bottle-alt","fa fa-print","fa fa-procedures","fa fa-project-diagram","fa fa-pump-medical","fa fa-pump-soap","fa fa-puzzle-piece","fa fa-qrcode","fa fa-question","fa fa-question-circle","fa fa-question-circle","fa fa-quidditch","fa fa-quote-left","fa fa-quote-right","fa fa-quran","fa fa-radiation","fa fa-radiation-alt","fa fa-rainbow","fa fa-random","fa fa-receipt","fa fa-record-vinyl","fa fa-recycle","fa fa-redo","fa fa-redo-alt","fa fa-registered","fa fa-registered","fa fa-remove-format","fa fa-reply","fa fa-reply-all","fa fa-republican","fa fa-restroom","fa fa-retweet","fa fa-ribbon","fa fa-ring","fa fa-road","fa fa-robot","fa fa-rocket","fa fa-route","fa fa-rss","fa fa-rss-square","fa fa-ruble-sign","fa fa-ruler","fa fa-ruler-combined","fa fa-ruler-horizontal","fa fa-ruler-vertical","fa fa-running","fa fa-rupee-sign","fa fa-sad-cry","fa fa-sad-cry","fa fa-sad-tear","fa fa-sad-tear","fa fa-satellite","fa fa-satellite-dish","fa fa-save","fa fa-save","fa fa-school","fa fa-screwdriver","fa fa-scroll","fa fa-sd-card","fa fa-search","fa fa-search-dollar","fa fa-search-location","fa fa-search-minus","fa fa-search-plus","fa fa-seedling","fa fa-server","fa fa-shapes","fa fa-share","fa fa-share-alt","fa fa-share-alt-square","fa fa-share-square","fa fa-share-square","fa fa-shekel-sign","fa fa-shield-alt","fa fa-shield-virus","fa fa-ship","fa fa-shipping-fast","fa fa-shoe-prints","fa fa-shopping-bag","fa fa-shopping-basket","fa fa-shopping-cart","fa fa-shower","fa fa-shuttle-van","fa fa-sign","fa fa-sign-in-alt","fa fa-sign-language","fa fa-sign-out-alt","fa fa-signal","fa fa-signature","fa fa-sim-card","fa fa-sink","fa fa-sitemap","fa fa-skating","fa fa-skiing","fa fa-skiing-nordic","fa fa-skull","fa fa-skull-crossbones","fa fa-slash","fa fa-sleigh","fa fa-sliders-h","fa fa-smile","fa fa-smile","fa fa-smile-beam","fa fa-smile-beam","fa fa-smile-wink","fa fa-smile-wink","fa fa-smog","fa fa-smoking","fa fa-smoking-ban","fa fa-sms","fa fa-snowboarding","fa fa-snowflake","fa fa-snowflake","fa fa-snowman","fa fa-snowplow","fa fa-soap","fa fa-socks","fa fa-solar-panel","fa fa-sort","fa fa-sort-alpha-down","fa fa-sort-alpha-down-alt","fa fa-sort-alpha-up","fa fa-sort-alpha-up-alt","fa fa-sort-amount-down","fa fa-sort-amount-down-alt","fa fa-sort-amount-up","fa fa-sort-amount-up-alt","fa fa-sort-down","fa fa-sort-numeric-down","fa fa-sort-numeric-down-alt","fa fa-sort-numeric-up","fa fa-sort-numeric-up-alt","fa fa-sort-up","fa fa-spa","fa fa-space-shuttle","fa fa-spell-check","fa fa-spider","fa fa-spinner","fa fa-splotch","fa fa-spray-can","fa fa-square","fa fa-square","fa fa-square-full","fa fa-square-root-alt","fa fa-stamp","fa fa-star","fa fa-star","fa fa-star-and-crescent","fa fa-star-half","fa fa-star-half","fa fa-star-half-alt","fa fa-star-of-david","fa fa-star-of-life","fa fa-step-backward","fa fa-step-forward","fa fa-stethoscope","fa fa-sticky-note","fa fa-sticky-note","fa fa-stop","fa fa-stop-circle","fa fa-stop-circle","fa fa-stopwatch","fa fa-stopwatch-20","fa fa-store","fa fa-store-alt","fa fa-store-alt-slash","fa fa-store-slash","fa fa-stream","fa fa-street-view","fa fa-strikethrough","fa fa-stroopwafel","fa fa-subscript","fa fa-subway","fa fa-suitcase","fa fa-suitcase-rolling","fa fa-sun","fa fa-sun","fa fa-superscript","fa fa-surprise","fa fa-surprise","fa fa-swatchbook","fa fa-swimmer","fa fa-swimming-pool","fa fa-synagogue","fa fa-sync","fa fa-sync-alt","fa fa-syringe","fa fa-table","fa fa-table-tennis","fa fa-tablet","fa fa-tablet-alt","fa fa-tablets","fa fa-tachometer-alt","fa fa-tag","fa fa-tags","fa fa-tape","fa fa-tasks","fa fa-taxi","fa fa-teeth","fa fa-teeth-open","fa fa-temperature-high","fa fa-temperature-low","fa fa-tenge","fa fa-terminal","fa fa-text-height","fa fa-text-width","fa fa-th","fa fa-th-large","fa fa-th-list","fa fa-theater-masks","fa fa-thermometer","fa fa-thermometer-empty","fa fa-thermometer-full","fa fa-thermometer-half","fa fa-thermometer-quarter","fa fa-thermometer-three-quarters","fa fa-thumbs-down","fa fa-thumbs-down","fa fa-thumbs-up","fa fa-thumbs-up","fa fa-thumbtack","fa fa-ticket-alt","fa fa-times","fa fa-times-circle","fa fa-times-circle","fa fa-tint","fa fa-tint-slash","fa fa-tired","fa fa-tired","fa fa-toggle-off","fa fa-toggle-on","fa fa-toilet","fa fa-toilet-paper","fa fa-toilet-paper-slash","fa fa-toolbox","fa fa-tools","fa fa-tooth","fa fa-torah","fa fa-torii-gate","fa fa-tractor","fa fa-trademark","fa fa-traffic-light","fa fa-trailer","fa fa-train","fa fa-tram","fa fa-transgender","fa fa-transgender-alt","fa fa-trash","fa fa-trash-alt","fa fa-trash-alt","fa fa-trash-restore","fa fa-trash-restore-alt","fa fa-tree","fa fa-trophy","fa fa-truck","fa fa-truck-loading","fa fa-truck-monster","fa fa-truck-moving","fa fa-truck-pickup","fa fa-tshirt","fa fa-tty","fa fa-tv","fa fa-umbrella","fa fa-umbrella-beach","fa fa-underline","fa fa-undo","fa fa-undo-alt","fa fa-universal-access","fa fa-university","fa fa-unlink","fa fa-unlock","fa fa-unlock-alt","fa fa-upload","fa fa-user","fa fa-user","fa fa-user-alt","fa fa-user-alt-slash","fa fa-user-astronaut","fa fa-user-check","fa fa-user-circle","fa fa-user-circle","fa fa-user-clock","fa fa-user-cog","fa fa-user-edit","fa fa-user-friends","fa fa-user-graduate","fa fa-user-injured","fa fa-user-lock","fa fa-user-md","fa fa-user-minus","fa fa-user-ninja","fa fa-user-nurse","fa fa-user-plus","fa fa-user-secret","fa fa-user-shield","fa fa-user-slash","fa fa-user-tag","fa fa-user-tie","fa fa-user-times","fa fa-users","fa fa-users-cog","fa fa-users-slash","fa fa-utensil-spoon","fa fa-utensils","fa fa-vector-square","fa fa-venus","fa fa-venus-double","fa fa-venus-mars","fa fa-vial","fa fa-vials","fa fa-video","fa fa-video-slash","fa fa-vihara","fa fa-virus","fa fa-virus-slash","fa fa-viruses","fa fa-voicemail","fa fa-volleyball-ball","fa fa-volume-down","fa fa-volume-mute","fa fa-volume-off","fa fa-volume-up","fa fa-vote-yea","fa fa-vr-cardboard","fa fa-walking","fa fa-wallet","fa fa-warehouse","fa fa-water","fa fa-wave-square","fa fa-weight","fa fa-weight-hanging","fa fa-wheelchair","fa fa-wifi","fa fa-wind","fa fa-window-close","fa fa-window-close","fa fa-window-maximize","fa fa-window-maximize","fa fa-window-minimize","fa fa-window-minimize","fa fa-window-restore","fa fa-window-restore","fa fa-wine-bottle","fa fa-wine-glass","fa fa-wine-glass-alt","fa fa-won-sign","fa fa-wrench","fa fa-x-ray","fa fa-yen-sign","fa fa-yin-yang"];var ee=n("nPOm"),te=n("EY2u"),ne=n("xgIS"),ie=n("Qu3c"),ae=n("Rd8u"),Ae=n("zW5C");function re(e,t){if(1&e&&(u.Tb(0,"option",24),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("ngValue",e),u.Bb(1),u.Ic(e)}}function oe(e,t){if(1&e&&(u.Tb(0,"option",24),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("ngValue",e.css),u.Bb(1),u.Ic(e.name)}}function se(e,t){if(1&e){const e=u.Ub();u.Tb(0,"form",25),u.ac("ngSubmit",(function(){return u.vc(e),u.ec().createLink()})),u.Tb(1,"div",2),u.Tb(2,"input",26),u.ac("ngModelChange",(function(t){return u.vc(e),u.ec().linkModel=t})),u.Sb(),u.Sb(),u.Tb(3,"button",27),u.Hc(4,"Add"),u.Sb(),u.Sb()}if(2&e){const e=u.ec();u.Bb(2),u.kc("ngModel",e.linkModel)}}function ce(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",30),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).insertIcon(n)})),u.Sb()}2&e&&u.kc("ngClass","fab "+t.$implicit)}function le(e,t){if(1&e&&(u.Tb(0,"div",28),u.Fc(1,ce,1,1,"button",29),u.Sb()),2&e){const e=u.ec();u.Bb(1),u.kc("ngForOf",e.styles.icons)}}let de=(()=>{class e{constructor(e,t,n,i,a,A,r){this.builderDocument=e,this.settings=t,this.undoManager=n,this.selectedElement=i,this.elements=a,this.overlayRef=A,this.data=r,this.styles={fonts:q,weights:Z,sizes:[1,2,3,4,5,6,7],icons:$}}ngOnInit(){this.editedNode=this.builderDocument.find("[contenteditable]"),this.beforeDomNode=this.editedNode.parentElement.cloneNode(!0),this.data.activePanel&&this.togglePanel(this.data.activePanel)}ngOnDestroy(){this.makeNodesNotEditable(),this.undoManager.wrapDomChanges(this.editedNode.parentElement,null,{before:this.beforeDomNode}),this.builderDocument.contentChanged.next("builder")}execCommand(e,t){this.builderDocument.execCommand(e,t)}commandIsActive(e){return this.builderDocument.queryCommandState(e)}createLink(){this.execCommand("createLink",this.linkModel),this.linkModel=null,this.togglePanel("link")}insertIcon(e){if(this.elements.isIcon(this.editedNode)){let t=this.editedNode.getAttribute("class");t=t.replace(/fa fa.+?($| )/,e+" ").replace(/icon-.+? /,e+" "),this.editedNode.setAttribute("class",t)}else this.execCommand("insertHtml",'<i class="'+e+'"></i>');"icons"===this.data.activePanel?this.overlayRef.close():this.togglePanel("icons")}togglePanel(e){this[e+"PanelIsOpen"]=!this[e+"PanelIsOpen"],"icons"===e&&this.loadFontAwesome(),setTimeout(()=>this.overlayRef.updatePosition())}makeNodesNotEditable(){const e=this.builderDocument.findAll("[contenteditable]");for(let t=e.length-1;t>=0;t--)e[t].removeAttribute("contenteditable"),e[t].blur()}loadFontAwesome(){if(document.head.querySelector("#font-awesome"))return te.a;const e=m.a.createLink("builder/font-awesome/font-awesome.min.css","font-awesome"),t=Object(ne.a)(e,"load");return document.head.appendChild(e),t}shouldEnableLinkBtn(){const e=this.selectedElement.node;return e&&"button"!==e.nodeName.toLowerCase()}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_),u.Nb(p.a),u.Nb(v),u.Nb(y),u.Nb(E.a),u.Nb(R.a,8),u.Nb(ee.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["inline-text-editor"]],decls:41,vars:50,consts:[[1,"toolbar"],[1,"controls-group","flex-group"],[1,"input-container"],["name","font-size","id","font-size",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],["name","font-family","id","font-family",3,"change"],[1,"controls-group"],["mat-icon-button","",1,"italic",3,"matTooltip","click"],["svgIcon","format-bold"],["svgIcon","format-italic"],["mat-icon-button","",1,"underline",3,"matTooltip","click"],["svgIcon","format-underlined"],["mat-icon-button","",1,"strike",3,"matTooltip","click"],["svgIcon","format-strikethrough"],["mat-icon-button","",3,"matTooltip","disabled","click"],["svgIcon","link"],[1,"controls-group","text-align"],["mat-icon-button","",3,"matTooltip","click"],["svgIcon","format-align-left"],["svgIcon","format-align-center"],["svgIcon","format-align-right"],["svgIcon","insert-emoticon"],["class","link-panel","ngNativeValidate","",3,"ngSubmit",4,"ngIf"],["class","icons-panel",4,"ngIf"],[3,"ngValue"],["ngNativeValidate","",1,"link-panel",3,"ngSubmit"],["type","url","name","inline-editor-link","required","","placeholder","Enter url...","trans-placeholder","",3,"ngModel","ngModelChange"],["type","submit","mat-raised-button","","color","accent","trans",""],[1,"icons-panel"],["mat-icon-button","",3,"ngClass","click",4,"ngFor","ngForOf"],["mat-icon-button","",3,"ngClass","click"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Tb(2,"div",2),u.Tb(3,"select",3),u.ac("change",(function(e){return t.execCommand("fontSize",e.target.value)})),u.Fc(4,re,2,2,"option",4),u.Sb(),u.Sb(),u.Tb(5,"div",2),u.Tb(6,"select",5),u.ac("change",(function(e){return t.execCommand("fontName",e.target.value)})),u.Fc(7,oe,2,2,"option",4),u.Sb(),u.Sb(),u.Sb(),u.Tb(8,"div",6),u.Tb(9,"button",7),u.ac("click",(function(){return t.execCommand("bold")})),u.fc(10,"trans"),u.Ob(11,"mat-icon",8),u.Sb(),u.Tb(12,"button",7),u.ac("click",(function(){return t.execCommand("italic")})),u.fc(13,"trans"),u.Ob(14,"mat-icon",9),u.Sb(),u.Tb(15,"button",10),u.ac("click",(function(){return t.execCommand("underline")})),u.fc(16,"trans"),u.Ob(17,"mat-icon",11),u.Sb(),u.Tb(18,"button",12),u.ac("click",(function(){return t.execCommand("strikethrough")})),u.fc(19,"trans"),u.Ob(20,"mat-icon",13),u.Sb(),u.Sb(),u.Tb(21,"div",6),u.Tb(22,"button",14),u.ac("click",(function(){return t.togglePanel("link")})),u.fc(23,"trans"),u.Ob(24,"mat-icon",15),u.Sb(),u.Sb(),u.Tb(25,"div",16),u.Tb(26,"button",17),u.ac("click",(function(){return t.execCommand("justifyLeft")})),u.fc(27,"trans"),u.Ob(28,"mat-icon",18),u.Sb(),u.Tb(29,"button",17),u.ac("click",(function(){return t.execCommand("justifyCenter")})),u.fc(30,"trans"),u.Ob(31,"mat-icon",19),u.Sb(),u.Tb(32,"button",17),u.ac("click",(function(){return t.execCommand("justifyRight")})),u.fc(33,"trans"),u.Ob(34,"mat-icon",20),u.Sb(),u.Sb(),u.Tb(35,"div",6),u.Tb(36,"button",17),u.ac("click",(function(){return t.togglePanel("icons")})),u.fc(37,"trans"),u.Ob(38,"mat-icon",21),u.Sb(),u.Sb(),u.Sb(),u.Fc(39,se,5,1,"form",22),u.Fc(40,le,2,1,"div",23)),2&e&&(u.Bb(4),u.kc("ngForOf",t.styles.sizes),u.Bb(3),u.kc("ngForOf",t.styles.fonts),u.Bb(2),u.Fb("active",t.commandIsActive("bold")),u.kc("matTooltip",u.gc(10,32,"Bold")),u.Bb(3),u.Fb("active",t.commandIsActive("italic")),u.kc("matTooltip",u.gc(13,34,"Italic")),u.Bb(3),u.Fb("active",t.commandIsActive("underline")),u.kc("matTooltip",u.gc(16,36,"Underline")),u.Bb(3),u.Fb("active",t.commandIsActive("strikethrough")),u.kc("matTooltip",u.gc(19,38,"Strikethrough")),u.Bb(4),u.Fb("active",t.linkPanelIsOpen),u.kc("matTooltip",u.gc(23,40,"Add Link"))("disabled",!t.shouldEnableLinkBtn()),u.Bb(4),u.Fb("active",t.commandIsActive("justifyLeft")),u.kc("matTooltip",u.gc(27,42,"Align left")),u.Bb(3),u.Fb("active",t.commandIsActive("justifyCenter")),u.kc("matTooltip",u.gc(30,44,"Align center")),u.Bb(3),u.Fb("active",t.commandIsActive("justifyRight")),u.kc("matTooltip",u.gc(33,46,"Align right")),u.Bb(4),u.Fb("active",t.iconsPanelIsOpen),u.kc("matTooltip",u.gc(37,48,"Add Icon")),u.Bb(3),u.kc("ngIf",t.linkPanelIsOpen),u.Bb(1),u.kc("ngIf",t.iconsPanelIsOpen))},directives:[i.s,V.b,ie.a,z.a,i.t,L.z,L.J,L.v,L.w,L.d,L.F,ae.a,L.u,L.x,i.q],pipes:[Ae.a],styles:["inline-text-editor{display:block;background-color:var(--be-background);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);width:648px;min-width:648px;max-width:90%;border-radius:4px;overflow:hidden}inline-text-editor .icons-panel,inline-text-editor .link-panel,inline-text-editor .toolbar{display:flex;align-items:center;padding:10px}inline-text-editor .link-panel{border-top:1px solid var(--be-divider-default)}inline-text-editor .link-panel button{margin-left:8px}inline-text-editor .icons-panel{border-top:1px solid var(--be-divider-default);flex-wrap:wrap;height:400px;width:100%;overflow:auto;position:relative}inline-text-editor .icons-panel .mat-icon-button{font-size:19px}inline-text-editor .icons-panel .mat-icon-button:hover{color:var(--be-accent-default)}inline-text-editor .controls-group{display:flex;align-items:center;margin-right:5px;padding-right:5px;border-right:1px solid rgba(0,0,0,.08)}inline-text-editor .controls-group:last-of-type{border-right:none;margin-right:0;padding-right:0}inline-text-editor .controls-group.flex-group{display:flex}inline-text-editor .controls-group .input-container{margin-right:5px}inline-text-editor .controls-group .active{color:var(--be-accent-default)}"],encapsulation:2}),e})(),he=(()=>{class e{constructor(e){this.overlayPanel=e}open(e,t={}){this.close(),this.overlayRef=this.overlayPanel.open(de,{data:t,origin:new u.l(e),hasBackdrop:!1,position:[{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetX:380,offsetY:-10},{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetX:380,offsetY:10}]}),e.setAttribute("contenteditable","true"),e.focus()}close(){this.overlayRef&&this.overlayRef.close()}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(J.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var ue=n("R0Ic"),pe=n("STbY"),ge=n("twBr");const fe=["contextMenu"];let be=(()=>{class e{constructor(e,t,n,i,a){this.undoManager=e,this.codeEditor=t,this.builderDocument=n,this.selected=i,this.currentUser=a}remove(){this.builderDocument.actions.removeNode(this.selected.node)}undo(){this.undoManager.undo()}redo(){this.undoManager.redo()}copy(){this.builderDocument.actions.copyNode(this.selected.node)}cut(){this.builderDocument.actions.cutNode(this.selected.node)}paste(){this.builderDocument.actions.pasteNode(this.selected.node)}canPaste(){return this.builderDocument.actions.copiedNode}duplicate(){this.builderDocument.actions.duplicateNode(this.selected.node)}selectParent(){this.selected.selectParent()}canSelectParent(){return this.selected.canSelectParent()}canSelectChild(){return this.selected.canSelectChild()}selectChild(){this.selected.selectFirstChild()}viewSourceCode(){this.codeEditor.open().subscribe(e=>{setTimeout(()=>e.selectNodeSource(this.selected.node))})}move(e){this.builderDocument.actions.moveSelected(e)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(v),u.Nb(Y),u.Nb(_),u.Nb(y),u.Nb(ge.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["live-preview-context-menu"]],viewQuery:function(e,t){var n;1&e&&(u.Bc(pe.c,!0),u.Bc(fe,!0)),2&e&&(u.rc(n=u.bc())&&(t.trigger=n.first),u.rc(n=u.bc())&&(t.contextMenu=n.first))},decls:68,vars:6,consts:[[1,"context-menu"],["contextMenu",""],[1,"context-menu-item",3,"disabled","click"],["svgIcon","arrow-upward",1,"mat-icon"],["trans",""],["svgIcon","arrow-downward",1,"mat-icon"],[1,"separator"],[1,"context-menu-item",3,"click"],["svgIcon","content-cut",1,"mat-icon"],[1,"alt-text"],["svgIcon","file-copy",1,"mat-icon"],["svgIcon","content-paste",1,"mat-icon"],["svgIcon","delete",1,"mat-icon"],["svgIcon","flip-to-back",1,"mat-icon"],["svgIcon","keyboard-arrow-up",1,"mat-icon"],["svgIcon","keyboard-arrow-down",1,"mat-icon"],["svgIcon","undo",1,"mat-icon"],["svgIcon","redo",1,"mat-icon"],["trans","",1,"indent"]],template:function(e,t){1&e&&(u.Tb(0,"div",0,1),u.Tb(2,"button",2),u.ac("click",(function(){return t.selectParent()})),u.Ob(3,"mat-icon",3),u.Tb(4,"span",4),u.Hc(5,"Select Parent"),u.Sb(),u.Sb(),u.Tb(6,"button",2),u.ac("click",(function(){return t.selectChild()})),u.Ob(7,"mat-icon",5),u.Tb(8,"span",4),u.Hc(9,"Select Child"),u.Sb(),u.Sb(),u.Ob(10,"div",6),u.Tb(11,"button",7),u.ac("click",(function(){return t.cut()})),u.Ob(12,"mat-icon",8),u.Tb(13,"span",4),u.Hc(14,"Cut"),u.Sb(),u.Tb(15,"span",9),u.Hc(16,"Ctrl+Shift+X"),u.Sb(),u.Sb(),u.Tb(17,"button",7),u.ac("click",(function(){return t.copy()})),u.Ob(18,"mat-icon",10),u.Tb(19,"span",4),u.Hc(20,"Copy"),u.Sb(),u.Tb(21,"span",9),u.Hc(22,"Ctrl+Shift+C"),u.Sb(),u.Sb(),u.Tb(23,"button",2),u.ac("click",(function(){return t.paste()})),u.Ob(24,"mat-icon",11),u.Tb(25,"span",4),u.Hc(26,"Paste"),u.Sb(),u.Tb(27,"span",9),u.Hc(28,"Ctrl+Shift+V"),u.Sb(),u.Sb(),u.Tb(29,"button",7),u.ac("click",(function(){return t.remove()})),u.Ob(30,"mat-icon",12),u.Tb(31,"span",4),u.Hc(32,"Delete"),u.Sb(),u.Tb(33,"span",9),u.Hc(34,"Del"),u.Sb(),u.Sb(),u.Tb(35,"button",7),u.ac("click",(function(){return t.duplicate()})),u.Ob(36,"mat-icon",13),u.Tb(37,"span",4),u.Hc(38,"Duplicate"),u.Sb(),u.Sb(),u.Tb(39,"button",7),u.ac("click",(function(){return t.move("up")})),u.Ob(40,"mat-icon",14),u.Tb(41,"span",4),u.Hc(42,"Move Up"),u.Sb(),u.Tb(43,"span",9),u.Hc(44,"Arrow Up"),u.Sb(),u.Sb(),u.Tb(45,"button",7),u.ac("click",(function(){return t.move("down")})),u.Ob(46,"mat-icon",15),u.Tb(47,"span",4),u.Hc(48,"Move Down"),u.Sb(),u.Tb(49,"span",9),u.Hc(50,"Arrow Down"),u.Sb(),u.Sb(),u.Ob(51,"div",6),u.Tb(52,"button",2),u.ac("click",(function(){return t.undo()})),u.Ob(53,"mat-icon",16),u.Tb(54,"span",4),u.Hc(55,"Undo"),u.Sb(),u.Tb(56,"span",9),u.Hc(57,"Ctrl+Z"),u.Sb(),u.Sb(),u.Tb(58,"button",2),u.ac("click",(function(){return t.redo()})),u.Ob(59,"mat-icon",17),u.Tb(60,"span",4),u.Hc(61,"Redo"),u.Sb(),u.Tb(62,"span",9),u.Hc(63,"Ctrl+Y"),u.Sb(),u.Sb(),u.Ob(64,"div",6),u.Tb(65,"button",2),u.ac("click",(function(){return t.viewSourceCode()})),u.Tb(66,"span",18),u.Hc(67,"View Source"),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(2),u.kc("disabled",!t.canSelectParent()),u.Bb(4),u.kc("disabled",!t.canSelectChild()),u.Bb(17),u.kc("disabled",!t.canPaste()),u.Bb(29),u.kc("disabled",!t.undoManager.canUndo()),u.Bb(6),u.kc("disabled",!t.undoManager.canRedo()),u.Bb(7),u.kc("disabled",!t.currentUser.hasPermission("editors.enable")))},directives:[z.a,ae.a],styles:["live-preview-context-menu{display:block}.context-menu-origin{position:fixed;width:1px;height:1px;visibility:hidden;pointer-events:none}"],encapsulation:2}),e})();var me=n("+41h"),Be=function(e){return e[e.ENTER=13]="ENTER",e[e.SPACE=32]="SPACE",e[e.ESCAPE=27]="ESCAPE",e[e.DELETE=46]="DELETE",e[e.ARROW_UP=38]="ARROW_UP",e[e.ARROW_RIGHT=39]="ARROW_RIGHT",e[e.ARROW_DOWN=40]="ARROW_DOWN",e[e.ARROW_LEFT=37]="ARROW_LEFT",e[e.S=83]="S",e[e.N=78]="N",e[e.A=65]="A",e[e.T=84]="T",e[e.B=66]="B",e[e.C=67]="C",e[e.O=79]="O",e[e.P=80]="P",e[e.R=82]="R",e[e.F=70]="F",e[e.Y=89]="Y",e[e.Z=90]="Z",e}({});let we=(()=>{class e{constructor(){this.bindings=[]}add(e,t){this.bindings.push({keybind:this.parseKeybindString(e),keybindString:e,callback:t})}addWithPreventDefault(e,t){this.bindings.push({keybind:this.parseKeybindString(e),keybindString:e,callback:t,preventDefault:!0})}listenOn(e){return Object(ne.a)(e,"keydown").subscribe(e=>{this.executeBindings(e)})}executeBindings(e){this.bindings.forEach(t=>{this.bindingMatches(t.keybind,e)&&(t.preventDefault&&e.preventDefault&&e.preventDefault(),t.callback(e))})}bindingMatches(e,t){return Be[e.key.toUpperCase()]===t.keyCode&&t.ctrlKey===e.ctrl&&t.shiftKey===e.shift}parseKeybindString(e){const t=e.trim().split("+"),n={ctrl:!1,shift:!1,key:""};return t.forEach(e=>{"ctrl"===(e=e.trim().toLowerCase())?n.ctrl=!0:"shift"===e?n.shift=!0:n.key=e}),n}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var ve=n("wZkO"),Ce=n("MutI");function Ee(e,t){1&e&&(u.Tb(0,"span",17),u.Hc(1,"Url"),u.Sb())}function Qe(e,t){1&e&&(u.Tb(0,"span",17),u.Hc(1,"Page"),u.Sb())}function xe(e,t){if(1&e){const e=u.Ub();u.Tb(0,"mat-list-item",18),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().hrefModel=n.name})),u.Hc(1),u.Sb()}if(2&e){const e=t.$implicit,n=u.ec();u.Fb("selected",n.hrefModel===e.name),u.Bb(1),u.Jc(" ",e.name," ")}}function ye(e,t){1&e&&(u.Tb(0,"span",17),u.Hc(1,"Anchor"),u.Sb())}function Ue(e,t){if(1&e){const e=u.Ub();u.Tb(0,"mat-list-item",18),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().hrefModel=n})),u.Hc(1),u.Sb()}if(2&e){const e=t.$implicit,n=u.ec();u.Fb("selected",n.hrefModel===e),u.Bb(1),u.Jc(" ",e," ")}}function Fe(e,t){1&e&&(u.Tb(0,"span",17),u.Hc(1,"Download"),u.Sb())}function ke(e,t){1&e&&(u.Tb(0,"span",17),u.Hc(1,"Email"),u.Sb())}let He=(()=>{class e{constructor(e,t,n,i){this.activeProject=e,this.builderDocument=t,this.data=n,this.overlayRef=i,this.anchors$=new r.a([])}ngOnInit(){this.anchors$.next(Array.from(this.builderDocument.document.querySelectorAll("*[id]")).map(e=>e.id))}setEmail(){this.data.node.href="mailto:"+this.hrefModel,this.closeAndEmitChanges()}setDownload(){this.data.node.href=this.hrefModel,this.data.node.setAttribute("download",this.downloadName),this.closeAndEmitChanges()}setPageLink(){this.data.node.href=this.hrefModel+".html",this.closeAndEmitChanges()}setAnchor(){this.data.node.href="#"+this.hrefModel,this.closeAndEmitChanges()}setUrl(){this.data.node.href=this.hrefModel,this.closeAndEmitChanges()}closeAndEmitChanges(){this.close(),this.builderDocument.contentChanged.next("builder")}close(){this.overlayRef.close()}resetModel(){this.hrefModel=null}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(D),u.Nb(_),u.Nb(ee.a,8),u.Nb(R.a,8))},e.\u0275cmp=u.Hb({type:e,selectors:[["link-editor"]],decls:57,vars:16,consts:[["color","accent",3,"dynamicHeight","selectedTabChange"],["mat-tab-label",""],["ngNativeValidate","",3,"ngSubmit"],[1,"input-container"],["type","url","name","url","placeholder","Enter website url...","trans-placeholder","","required","",3,"ngModel","ngModelChange"],[1,"buttons"],["type","button","mat-button","","trans","",3,"click"],["type","submit","mat-raised-button","","color","accent","trans","",3,"disabled"],["role","list"],["class","page-list-item","role","listitem",3,"selected","click",4,"ngFor","ngForOf"],["mat-raised-button","","color","accent","trans","",3,"disabled","click"],["ngNativeValidate","",1,"many-inputs",3,"ngSubmit"],["for","name","trans",""],["type","text","id","name","name","download","required","",3,"ngModel","ngModelChange"],["for","download","trans",""],["type","url","name","download","id","download","required","",3,"ngModel","ngModelChange"],["type","email","name","email","placeholder","Enter email address...","trans-placeholder","","required","",3,"ngModel","ngModelChange"],["trans",""],["role","listitem",1,"page-list-item",3,"click"]],template:function(e,t){1&e&&(u.Tb(0,"mat-tab-group",0),u.ac("selectedTabChange",(function(){return t.resetModel()})),u.Tb(1,"mat-tab"),u.Fc(2,Ee,2,0,"ng-template",1),u.Tb(3,"form",2),u.ac("ngSubmit",(function(){return t.setUrl()})),u.Tb(4,"div",3),u.Tb(5,"input",4),u.ac("ngModelChange",(function(e){return t.hrefModel=e})),u.Sb(),u.Sb(),u.Tb(6,"div",5),u.Tb(7,"button",6),u.ac("click",(function(){return t.close()})),u.Hc(8,"Cancel"),u.Sb(),u.Tb(9,"button",7),u.Hc(10,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Sb(),u.Tb(11,"mat-tab"),u.Fc(12,Qe,2,0,"ng-template",1),u.Tb(13,"mat-list",8),u.Fc(14,xe,2,3,"mat-list-item",9),u.fc(15,"async"),u.Sb(),u.Tb(16,"div",5),u.Tb(17,"button",6),u.ac("click",(function(){return t.close()})),u.Hc(18,"Cancel"),u.Sb(),u.Tb(19,"button",10),u.ac("click",(function(){return t.setPageLink()})),u.Hc(20,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Tb(21,"mat-tab"),u.Fc(22,ye,2,0,"ng-template",1),u.Tb(23,"mat-list",8),u.Fc(24,Ue,2,3,"mat-list-item",9),u.fc(25,"async"),u.Sb(),u.Tb(26,"div",5),u.Tb(27,"button",6),u.ac("click",(function(){return t.close()})),u.Hc(28,"Cancel"),u.Sb(),u.Tb(29,"button",10),u.ac("click",(function(){return t.setAnchor()})),u.Hc(30,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Tb(31,"mat-tab"),u.Fc(32,Fe,2,0,"ng-template",1),u.Tb(33,"form",11),u.ac("ngSubmit",(function(){return t.setDownload()})),u.Tb(34,"div",3),u.Tb(35,"label",12),u.Hc(36,"Name"),u.Sb(),u.Tb(37,"input",13),u.ac("ngModelChange",(function(e){return t.downloadName=e})),u.Sb(),u.Sb(),u.Tb(38,"div",3),u.Tb(39,"label",14),u.Hc(40,"Url"),u.Sb(),u.Tb(41,"input",15),u.ac("ngModelChange",(function(e){return t.hrefModel=e})),u.Sb(),u.Sb(),u.Tb(42,"div",5),u.Tb(43,"button",6),u.ac("click",(function(){return t.close()})),u.Hc(44,"Cancel"),u.Sb(),u.Tb(45,"button",7),u.Hc(46,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Sb(),u.Tb(47,"mat-tab"),u.Fc(48,ke,2,0,"ng-template",1),u.Tb(49,"form",2),u.ac("ngSubmit",(function(){return t.setEmail()})),u.Tb(50,"div",3),u.Tb(51,"input",16),u.ac("ngModelChange",(function(e){return t.hrefModel=e})),u.Sb(),u.Sb(),u.Tb(52,"div",5),u.Tb(53,"button",6),u.ac("click",(function(){return t.close()})),u.Hc(54,"Cancel"),u.Sb(),u.Tb(55,"button",7),u.Hc(56,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.kc("dynamicHeight",!0),u.Bb(5),u.kc("ngModel",t.hrefModel),u.Bb(4),u.kc("disabled",!t.hrefModel),u.Bb(5),u.kc("ngForOf",u.gc(15,12,t.activeProject.pages$)),u.Bb(5),u.kc("disabled",!t.hrefModel),u.Bb(5),u.kc("ngForOf",u.gc(25,14,t.anchors$)),u.Bb(5),u.kc("disabled",!t.hrefModel),u.Bb(8),u.kc("ngModel",t.downloadName),u.Bb(4),u.kc("ngModel",t.hrefModel),u.Bb(4),u.kc("disabled",!t.hrefModel),u.Bb(6),u.kc("ngModel",t.hrefModel),u.Bb(4),u.kc("disabled",!t.hrefModel))},directives:[ve.c,ve.a,ve.d,L.v,L.w,L.d,ae.a,L.F,L.u,L.x,V.b,Ce.a,i.s,Ce.b],pipes:[i.b],styles:["link-editor{display:block;background-color:var(--be-background);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);overflow:auto}link-editor .mat-tab-body-content{padding:15px}link-editor .buttons{display:flex;justify-content:flex-end;margin-top:15px}link-editor .page-list-item{cursor:pointer}link-editor .page-list-item:hover{background-color:var(--be-background-alternative)}link-editor .page-list-item.selected{background-color:var(--be-hover)}"],encapsulation:2}),e})(),Se=(()=>{class e{constructor(e,t){this.overlayPanel=e,this.breakpoints=t}open(e){const t=this.breakpoints.isMobile$.value?0:380;this.overlayRef=this.overlayPanel.open(He,{position:[{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:25,offsetX:t},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:25,offsetX:t},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:25,offsetX:t},{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-25,offsetX:t}],origin:new u.l(e),data:{node:e}})}close(){this.overlayRef&&this.overlayRef.close()}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(J.a),u.Xb(W.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),_e=(()=>{class e{constructor(e,t,n,i,a,A,r,o,s,c,l,d){this.zone=e,this.elements=t,this.undoManager=n,this.inlineTextEditor=i,this.parsedProject=a,this.contextMenu=A,this.keybinds=r,this.selected=o,this.contextBoxes=s,this.builderDocument=c,this.activeProject=l,this.linkEditor=d,this.dragging=!1,this.hover=new C,this.activeWidth="desktop"}init(){this.iframe.onload=()=>{this.builderDocument.document=this.iframe.contentDocument,this.builderDocument.addIframeCss(),this.builderDocument.loaded$.next(!0),this.builderDocument.loaded$.complete(),this.registerKeybinds(),this.bindToIframeEvents(),this.bindToUndoCommandExecuted()},this.iframe.src=`${this.activeProject.getBaseUrl()}?v=${Object(B.a)()}`}bindToUndoCommandExecuted(){this.undoManager.executedCommand.subscribe(()=>{this.repositionBox("selected"),this.hideBox("hover")})}bindToIframeEvents(){const e=new Hammer.Manager(this.builderDocument.get()),t=new Hammer.Tap({event:"double_tap",taps:2});e.add(t),this.listenForHover(),this.listenForClick(),this.listenForDoubleClick(e),this.listenForContextMenu(),this.keybinds.listenOn(this.builderDocument.get()),this.builderDocument.on("scroll",e=>{this.contextBoxes.hideBox("hover"),this.selected.node&&this.repositionBox("selected"),this.inlineTextEditor.close(),this.contextMenu.close()},!0)}registerKeybinds(){this.keybinds.add("ctrl+shift+x",()=>this.builderDocument.actions.cutNode(this.selected.node)),this.keybinds.add("ctrl+shift+c",()=>this.builderDocument.actions.copyNode(this.selected.node)),this.keybinds.add("ctrl+shift+v",()=>this.builderDocument.actions.pasteNode(this.selected.node)),this.keybinds.add("ctrl+z",()=>this.undoManager.undo()),this.keybinds.add("ctrl+y",()=>this.undoManager.redo()),this.keybinds.addWithPreventDefault("arrow_up",()=>this.builderDocument.actions.moveSelected("up")),this.keybinds.addWithPreventDefault("arrow_down",()=>this.builderDocument.actions.moveSelected("down")),this.keybinds.add("delete",()=>{m.a.nodeIsEditable(this.selected.node)||this.selected.isHtmlOrBody()||this.builderDocument.actions.removeNode(this.selected.node)})}listenForHover(){this.builderDocument.document.addEventListener("mousemove",e=>{this.zone.run(()=>{var t;if(this.dragging)return;let n=this.builderDocument.elementFromPoint(e.pageX,e.pageY-this.builderDocument.getScrollTop());n&&n!==(null===(t=this.hover)||void 0===t?void 0:t.node)&&("path"===n.nodeName.toLowerCase()&&(n=n.closest("svg")),this.hover.node=n,this.hover.element=this.elements.match(this.hover.node,"hover",!0),this.repositionBox("hover"))})})}listenForContextMenu(){this.builderDocument.on("contextmenu",e=>{this.zone.run(()=>{e.preventDefault(),this.selected.selectNode(e.target),this.contextMenu.open(be,e,{offsetX:380})})})}listenForClick(){this.builderDocument.document.addEventListener("click",e=>{this.zone.run(()=>{const t=e.target;if(this.handleLinkClick(e),this.handleFormSubmitButtonClick(e),this.builderDocument.focus(),this.selected.node===t)return!0;m.a.nodeIsEditable(t)||(this.contextMenu.close(),this.inlineTextEditor.close(),this.linkEditor.close(),this.selected.selectNode(t))})},!0)}listenForDoubleClick(e){e.on("double_tap",e=>{this.zone.run(()=>{const t=this.elements.match(e.target);m.a.nodeIsEditable(e.target)||(t.canModify||[]).indexOf("text")>-1&&t.showWysiwyg&&(this.hideBox("selected"),this.inlineTextEditor.open(e.target))})})}handleLinkClick(e){let t=e.target;if(!t.matches("a, a *"))return;"a"!==t.tagName.toLowerCase()&&(t=t.closest("a"));const n=t.href?t.href.replace(this.iframe.src,"").replace(this.activeProject.getBaseUrl(),""):"";if(!n.trim())return;if(0===n.indexOf("#"))return;if(n.indexOf("//")>-1)return;const i=n.replace(".html","");e.preventDefault(),e.stopPropagation(),this.activeProject.setActivePage(i).updateBuilderDocument()}handleFormSubmitButtonClick(e){e.target.matches("button[type=submit], button[type=submit] *")&&(e.preventDefault(),e.stopPropagation())}repositionBox(e){this.contextBoxes.repositionBox(e,this[e].node)}hideBox(e){this.contextBoxes.hideBox(e)}getElementDisplayName(e,t){return this.elements.getDisplayName(e,t)}setWidth(e){this.activeWidth=e}getIframe(){return this.iframe}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(u.A),u.Xb(E.a),u.Xb(v),u.Xb(he),u.Xb(D),u.Xb(me.a),u.Xb(we),u.Xb(y),u.Xb(x),u.Xb(_),u.Xb(D),u.Xb(Se))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Te=n("cp0P"),Ne=n("QGXG");let Ie=(()=>{class e{constructor(e,t,n,i,a){this.builderDocument=e,this.selected=t,this.undoManager=n,this.contextBoxes=i,this.elements=a,this.containers=[],this.selected.changed.subscribe(()=>{this.selectRowAndContainerUsing(this.selected.node)})}loadContainers(){this.containers=[],Array.from(this.builderDocument.findAll(".container, .container-fluid")).forEach(e=>{const t=Array.from(e.querySelectorAll(".row"));this.containers.push({node:e,rows:t,id:Object(B.a)()})}),this.selectedContainer&&this.selectContainer(this.selectedContainer.node)}createRow(e,t,n){const i=this.builderDocument.createElement("div");i.appendChild(this.createColumnNode(12)),i.classList.add("row"),"start"===n?t?t.parentElement.insertBefore(i,t):e.appendChild(i):t[n](i),this.selectRow(i),this.builderDocument.contentChanged.next("builder")}createContainer(e,t){const n=this.builderDocument.createElement("div");n.appendChild(this.createColumnNode(12)),n.classList.add("row");const i=this.builderDocument.createElement("div");if(i.classList.add("container"),i.appendChild(n),"start"===t){const e=this.builderDocument.getBody();e&&e.appendChild(i)}else e[t](i);this.builderDocument.contentChanged.next("builder"),this.selectContainer(i),this.selected.selectNode(this.selectedContainer.node)}selectContainer(e,t=!0){e&&(this.selectedContainer=e.nodeType?this.containers.find(t=>t.node===e):e,this.selectedContainer&&t&&this.selectRow(this.selectedContainer.rows[0]))}rowIsSelected(e){return this.selectedRow&&this.selectedRow.node===e}containerIsSelected(e){return this.selectedContainer&&this.selectedContainer.node===e}selectRow(e,t=!0){if(!e)return;t&&this.selected.selectNode(e);const n=this.getColumns(e),i=n.map(e=>e.span);this.builderDocument.scrollIntoView(e),this.selectedRow={node:e,columns:n,preset:i}}getColumns(e){return this.nodeListToArray(e.children).filter(e=>e.className.indexOf("col-")>-1).map(e=>({node:e,span:this.getSpan(e),id:Object(B.a)()}))}selectColumn(e){this.selected.selectNode(e),this.builderDocument.scrollIntoView(e)}applyPreset(e){const t=this.selectedRow.node.cloneNode(!0);this.selectedRow.columns.length>e.length&&this.selectedRow.columns.slice(e.length).forEach(e=>e.node.remove()),e.forEach((e,t)=>{this.selectedRow.columns[t]?this.resizeColumn(this.selectedRow.columns[t].node,e):this.selectedRow.columns[t-1]?this.addNewColumn(this.selectedRow.columns[t-1].node,e):this.selectedRow.node.appendChild(this.createColumnNode(e))}),this.undoManager.add("domChanges",{oldNode:t,newNode:this.selectedRow.node.cloneNode(!0),node:this.selectedRow.node}),this.selectRow(this.selectedRow.node),this.builderDocument.contentChanged.next("builder"),this.contextBoxes.repositionBox("selected",this.selected.node)}addNewColumn(e,t,n="after"){const i=this.getNodeIndex(this.selectedRow.columns,e),a=this.nodeListToArray(e.parentElement.childNodes),A=a.filter(e=>i<e),r=a.filter(e=>i>e);let o=!1;if(this.getTotalSpan(this.selectedRow.columns)+t<=12&&(e[n](this.createColumnNode(t)),o=!0),!o&&this.widerThen(1,A[0])?(this.resizeColumn(A[0],1,"-"),e[n](this.createColumnNode(t)),o=!0):!o&&this.widerThen(1,e)&&(this.resizeColumn(e,1,"-"),e.after(this.createColumnNode(t)),o=!0),!o)for(let s=0;s<A.length;s++)if(this.widerThen(1,A[s])){this.resizeColumn(A[s],1,"-"),e[n](this.createColumnNode(t)),o=!0;break}if(!o)for(let s=0;s<r.length;s++)if(this.widerThen(1,r[s])){this.resizeColumn(r[s],1,"-"),e[n](this.createColumnNode(t)),o=!0;break}this.selectedRow.columns=this.getColumns(this.selectedRow.node)}getTotalSpan(e){return e.map(e=>this.getSpan(e.node)).reduce((e,t)=>e+t)}createColumnNode(e){const t=this.builderDocument.createElement("div");return t.className="col-sm-"+e,t}widerThen(e,t){if(this.isColumn(t))return this.getSpan(t)>e}isColumn(e){if(e&&e.className)return e.className.indexOf("col-")>-1}getNodeIndex(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n}resizeColumn(e,t,n){t||(t=1),e.className=e.className.replace(/(col-[a-z]+-)([0-9]+)/,(function(e,i,a){return n?"+"===n?i+(parseInt(a)+t):i+(parseInt(a)-t):i+t}))}getSpan(e){const t=e.className.match(/col-[a-z]+-([0-9]+)/);return parseInt(t?t[1]:null)}nodeListToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t}selectRowAndContainerUsing(e){let t,n;e&&this.selected.isLayout&&(this.elements.isRow(this.selected.node)&&(t=e,n=t.closest(".container, .container-fluid")),this.elements.isColumn(this.selected.node)&&(t=e.closest(".row"),t&&(n=t.closest(".container, .container-fluid"))),this.elements.isContainer(this.selected.node)&&(n=e,t=n.querySelector(".row")),this.rowIsSelected(t)||this.selectRow(t,!1),this.containerIsSelected(n)||this.selectContainer(n,!1))}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(_),u.Xb(y),u.Xb(v),u.Xb(x),u.Xb(E.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Oe=(()=>{class e{constructor(e){this.overlayPanel=e}open(e,t){this.close();const n=this.overlayPanel.overlay.position().flexibleConnectedTo(t).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:35},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:35}]);return this.overlayRef=this.overlayPanel.open(e,{origin:t,positionStrategy:n,hasBackdrop:!0}),this.overlayRef}close(){this.overlayRef&&this.overlayRef.close()}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(J.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var De=n("sPnx");let Pe=(()=>{class e{constructor(e){this.http=e}getCustom(){return this.http.getWithCache("elements/custom")}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(De.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Re=(()=>{class e{constructor(){this.activePanel=null}toggle(e){this.activePanel=e,this.drawer.toggle()}close(){return this.activePanel=null,this.drawer.close()}setDrawer(e){this.drawer=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Ke=(()=>{class e{constructor(e){this.zone=e}getName(){return this.element&&this.element.name}reposition(e,t){this.component.renderer.setStyle(this.component.el.nativeElement,"top",e-20+"px"),this.component.renderer.setStyle(this.component.el.nativeElement,"left",t+21+"px")}show(e){this.zone.run(()=>this.element=e),this.component.renderer.removeClass(this.component.el.nativeElement,"hidden")}hide(){this.component.renderer.addClass(this.component.el.nativeElement,"hidden")}setComponent(e){this.component=e}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(u.A))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Me=(()=>{class e{constructor(e){this.selectedElement=e,this.activePanel="elements",this.panelChanged=new g.a,this.selectedElement.changed.subscribe(()=>{this.selectedElement.node&&this.openPanel(this.selectedElement.isLayout?"layout":"inspector")})}togglePanel(e){this.activePanel=e,this.panelChanged.next(e)}openPanel(e){this.activePanelIs(e)||(this.activePanel=e,this.panelChanged.next(e))}activePanelIs(e){return this.activePanel===e}reset(){this.activePanel="elements"}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(y))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Le=n("gdh/"),Ve=n("7EHt");class ze{constructor(e,t){this.builderDocument=e,this.previewContainer=t}scroll(e){const t=this.builderDocument.getScrollTop(),n=e+this.builderDocument.getScrollTop();this.previewHeight||(this.previewHeight=this.previewContainer.offsetHeight),n-t<=80?this.scrollFrameUp():n>t+this.previewHeight-80?this.scrollFrameDown():this.stopScrolling()}stopScrolling(){return clearInterval(this.scrollDownTimeout),clearInterval(this.scrollUpTimeout)}scrollFrameDown(){return clearInterval(this.scrollDownTimeout),this.scrollDownTimeout=setInterval(()=>this.setScrollTop(this.builderDocument.getScrollTop()+40),40)}scrollFrameUp(){return clearInterval(this.scrollUpTimeout),this.scrollUpTimeout=setInterval(()=>this.setScrollTop(this.builderDocument.getScrollTop()-40),40)}setScrollTop(e){e=Math.max(0,e),this.builderDocument.document.documentElement.scrollTop=e}}let Xe=(()=>{class e{ngAfterContentInit(){this.dragOverlay=document.querySelector(".drag-overlay");const e=document.querySelector("live-preview");this.scroller=new ze(this.builderDocument,e),this.zone.runOutsideAngular(()=>{this.initHammer(this.getDragHandles())})}initHammer(e){for(let t=e.length-1;t>=0;t--){const n=new Hammer.Manager(e[t]),i=new Hammer.Pan({direction:Hammer.DIRECTION_ALL,threshold:0});n.add([i]),n.on("panstart",e=>this.handleDragStart(e)),n.on("panmove",e=>this.handleDrag(e)),n.on("panend",e=>this.handleDragEnd(e))}}handleDragStart(e){this.builderDocument.getBody()&&(this.bodyBeforeDrag=this.builderDocument.getBody().cloneNode(!0),this.builderDocument.getBody().classList.add("dragging"),this.livePreview.dragging=!0,this.livePreview.contextBoxes.hideBoxes(),this.setDragElement(e),this.dragOverlay.style.display="block",this.dragHelper.show(this.dragEl.element),"column"!==this.dragEl.element.name&&(this.renderer.setAttribute(this.dragEl.node,"data-display",this.dragEl.node.style.display),this.createDropPlaceholder(),this.renderer.setStyle(this.dragEl.node,"display","none")))}handleDrag(e){const t=e.center.x,n=e.center.y;if(this.repositionDragMirror(n,t),t<=380)return;const i=this.builderDocument.elementFromPoint(t-380,n);this.scroller.scroll(n);const a="string"==typeof this.dragEl.node.className?this.dragEl.node.className:"";return a&&a.match("col-")?this.sortColumns&&this.sortColumns(i,e):this.repositionDropPlaceholder(i,t-380,n)}handleDragEnd(e){this.scroller.stopScrolling(),this.livePreview.dragging=!1,this.builderDocument.getBody().classList.remove("dragging"),this.dragHelper.hide(),this.renderer.setStyle(this.dragOverlay,"display","none"),this.dragEl&&"column"!==this.dragEl.element.name&&(this.dropPlaceholder&&this.dropPlaceholder.parentElement&&this.dropPlaceholder.parentElement.replaceChild(this.dragEl.node,this.dropPlaceholder),this.showDragEl(),this.dropPlaceholder.remove(),this.dropPlaceholder=null),(this.dragEl||this.builderDocument.getBody().contains(this.dragEl.node))&&(this.selectedElement.selectNode(this.dragEl.node),this.undoManager.wrapDomChanges(this.builderDocument.getBody(),null,{before:this.bodyBeforeDrag}),this.builderDocument.contentChanged.next("builder"))}showDragEl(){this.renderer.setStyle(this.dragEl.node,"display",this.dragEl.node.getAttribute("data-display")),this.renderer.removeAttribute(this.dragEl.node,"data-display")}repositionDropPlaceholder(e,t,n){if(e&&this.dropPlaceholder&&this.dragEl.node!==e&&!this.dragEl.node.contains(e)){for(let i=0,a=e.children.length;i<a;i++){const a=e.children[i];if(!a.classList.contains("drop-placeholder")&&m.a.coordinatesAboveNode(a,t,n)&&this.elements.canInsert(e,this.dragEl.element))return e.insertBefore(this.dropPlaceholder,a)}this.elements.canInsert(e,this.dragEl.element)&&(function(e,t){const n=e.getBoundingClientRect(),i=n.height;return Math.abs(n.top-t)<i/2}(e,n)?e.prepend(this.dropPlaceholder):e.append(this.dropPlaceholder))}}repositionDragMirror(e,t){this.dragHelper.reposition(e,t)}createDropPlaceholder(){this.dropPlaceholder=this.builderDocument.createElement("div"),this.dropPlaceholder.classList.add("drop-placeholder"),this.renderer.setStyle(this.dropPlaceholder,"display",this.dragEl.node.getAttribute("data-display")),this.renderer.setStyle(this.dropPlaceholder,"pointer-events","none"),this.renderer.setStyle(this.dropPlaceholder,"height","50px"),this.renderer.setStyle(this.dropPlaceholder,"background",'url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="6" height="6"><rect width="6" height="6" fill="transparent"/><path d="M0 6L6 0ZM7 5L5 7ZM-1 1L1 -1Z" stroke="rgba(0, 0, 0, 0.2)" stroke-width="2"/></svg>\')')}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=u.Ib({type:e}),e})();const Ge=["dragElement"];let je=(()=>{class e extends Xe{constructor(e,t,n,i,a,A,r,o,s,c){super(),this.livePreview=e,this.undoManager=t,this.elements=n,this.zone=i,this.selectedElement=a,this.builderDocument=A,this.activeProject=r,this.renderer=o,this.dragHelper=s,this.el=c}getDragHandles(){return this.el.nativeElement.querySelectorAll(".element-drag-handle")}setDragElement(e){const t=this.elements.findByName(e.target.closest(".element").dataset.name),n=document.createRange().createContextualFragment(t.html).firstChild;this.dragEl={node:n,element:t}}handleDragEnd(e){super.handleDragEnd(e),this.dragEl.element.css&&this.activeProject.save({thumbnail:!1,params:{custom_element_css:this.dragEl.element.css}}).subscribe(()=>{this.builderDocument.reloadCustomElementsCss()})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(v),u.Nb(E.a),u.Nb(u.A),u.Nb(y),u.Nb(_),u.Nb(D),u.Nb(u.G),u.Nb(Ke),u.Nb(u.l))},e.\u0275dir=u.Ib({type:e,selectors:[["","dragElements",""]],contentQueries:function(e,t,n){var i;1&e&&u.Gb(n,Ge,!1),2&e&&u.rc(i=u.bc())&&(t.dragElements=i)},features:[u.yb]}),e})();function Je(e,t){if(1&e&&(u.Tb(0,"div",7),u.Ob(1,"mat-icon",8),u.Tb(2,"div",9),u.Hc(3),u.Sb(),u.Sb()),2&e){const e=t.$implicit;u.Cb("data-name",e.name),u.Bb(1),u.kc("svgIcon",e.icon),u.Bb(2),u.Ic(e.name)}}function We(e,t){if(1&e&&(u.Tb(0,"mat-expansion-panel",3),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",4),u.Hc(3),u.Sb(),u.Sb(),u.Tb(4,"div",5),u.Fc(5,Je,4,3,"div",6),u.Sb(),u.Sb()),2&e){const e=t.$implicit,n=u.ec(2);u.Bb(3),u.Ic(e),u.Bb(2),u.kc("ngForOf",n.getElementsForCategory(e))}}function Ye(e,t){if(1&e&&(u.Rb(0),u.Tb(1,"section",1),u.Tb(2,"mat-accordion"),u.Fc(3,We,6,2,"mat-expansion-panel",2),u.Sb(),u.Sb(),u.Qb()),2&e){const e=u.ec();u.Bb(3),u.kc("ngForOf",e.categories)}}let qe=(()=>{class e{constructor(e){this.elements=e,this.categories=["components","layout","media","typography","buttons","forms"]}getElementsForCategory(e){return this.elements.getAll().filter(t=>t.category===e)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(E.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["elements-panel"]],viewQuery:function(e,t){var n;1&e&&u.Bc(Ve.a,!0),2&e&&u.rc(n=u.bc())&&(t.matAccordion=n.first)},decls:2,vars:3,consts:[[4,"ngIf"],["dragElements","",1,"categories"],["class","category mat-elevation-z",4,"ngFor","ngForOf"],[1,"category","mat-elevation-z"],["trans",""],[1,"elements-grid"],["class","element element-drag-handle",4,"ngFor","ngForOf"],[1,"element","element-drag-handle"],[3,"svgIcon"],["trans","",1,"name"]],template:function(e,t){1&e&&(u.Fc(0,Ye,4,1,"ng-container",0),u.fc(1,"async")),2&e&&u.kc("ngIf",u.gc(1,1,t.elements.loaded$))},directives:[i.t,je,Ve.a,i.s,Ve.c,Ve.e,Ve.f,ae.a,z.a],pipes:[i.b],styles:["elements-panel{display:block}elements-panel .mat-expansion-panel{border-radius:4px}elements-panel .mat-expansion-panel .mat-expansion-panel-body{margin:0}elements-panel .elements-grid .element{display:flex;align-items:center;width:100%;padding:15px;border-bottom:1px solid var(--be-divider-lighter);cursor:move}elements-panel .elements-grid .element:hover{background-color:var(--be-hover)}elements-panel .elements-grid .element .mat-icon{display:block;width:26px;height:26px;color:var(--be-secondary-text)}elements-panel .elements-grid .element .name{text-transform:uppercase;font-size:1.1rem;margin-left:8px}"],encapsulation:2,changeDetection:0}),e})();var Ze=n("Lm4C"),$e=n("QeDF"),et=n("h586"),tt=n("A5z7");function nt(e,t){if(1&e&&(u.Tb(0,"option",25),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("ngValue",e.value),u.Bb(1),u.Ic(e.name)}}function it(e,t){if(1&e){const e=u.Ub();u.Tb(0,"select",23),u.ac("ngModelChange",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().callElementOnChange(n,t)})),u.Fc(1,nt,2,2,"option",24),u.Sb()}if(2&e){const e=u.ec().$implicit,t=u.ec();u.kc("name",e)("id",e)("ngModel",t.customAttributes[e].value),u.Bb(1),u.kc("ngForOf",t.customAttributes[e].list)}}function at(e,t){if(1&e){const e=u.Ub();u.Tb(0,"input",23),u.ac("ngModelChange",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().callElementOnChange(n,t)})),u.Sb()}if(2&e){const e=u.ec().$implicit,t=u.ec();u.kc("name",e)("id",e)("ngModel",t.customAttributes[e].value)}}function At(e,t){if(1&e){const e=u.Ub();u.Tb(0,"textarea",23),u.ac("ngModelChange",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().callElementOnChange(n,t)})),u.Sb()}if(2&e){const e=u.ec().$implicit,t=u.ec();u.kc("name",e)("id",e)("ngModel",t.customAttributes[e].value)}}function rt(e,t){if(1&e&&(u.Rb(0),u.Tb(1,"div",8),u.Tb(2,"label",21),u.Hc(3),u.Sb(),u.Fc(4,it,2,4,"select",22),u.Fc(5,at,1,3,"input",22),u.Fc(6,At,1,3,"textarea",22),u.Sb(),u.Qb()),2&e){const e=t.$implicit,n=u.ec();u.Bb(2),u.kc("for",e),u.Bb(1),u.Ic(e),u.Bb(1),u.kc("ngIf",!!n.customAttributes[e].list),u.Bb(1),u.kc("ngIf",n.customAttributes[e].text),u.Bb(1),u.kc("ngIf",n.customAttributes[e].textarea)}}function ot(e,t){if(1&e){const e=u.Ub();u.Tb(0,"mat-chip",27),u.ac("removed",(function(){u.vc(e);const t=u.ec().$implicit;return u.ec().removeClass([t])})),u.Hc(1),u.Ob(2,"mat-icon",28),u.Sb()}if(2&e){const e=u.ec().$implicit;u.kc("removable",!0),u.Bb(1),u.Jc(" ",e," ")}}function st(e,t){if(1&e&&(u.Rb(0),u.Fc(1,ot,3,2,"mat-chip",26),u.Qb()),2&e){const e=t.$implicit,n=u.ec();u.Bb(1),u.kc("ngIf",!n.shouldClassBeHidden(e))}}let ct=(()=>{class e{constructor(e,t,n,i){this.livePreview=e,this.undoManager=t,this.selectedElement=n,this.renderer=i,this.customAttributes={},this.position="none",this.classes=[],this.hiddenOn=[],this.canHideOn={xs:"d-sm-block",sm:"d-md-block",md:"d-lg-block",lg:"d-xl-block"}}ngOnInit(){this.selectedElement.changed.subscribe(()=>{this.onElementSelected()})}onElementSelected(){if(this.customAttributes={},this.classes=[],this.hiddenOn=[],this.callElementOnAssign(this.selectedElement),this.selectedElement.node&&this.selectedElement.node.classList){for(let e=0;e<this.selectedElement.node.classList.length;e++){const t=this.selectedElement.node.classList[e],n=this.selectedElement.element.hiddenClasses;n&&n.indexOf(t)>-1||this.classes.push(t)}this.id=this.selectedElement.node.id,["pull-left","pull-right","center-block"].forEach(e=>{const t=this.selectedElement.node.className;this.position="string"==typeof t&&t.indexOf(e)>-1?e:"none"}),this.selectedElement.node.classList.contains("d-none")&&Object.entries(this.canHideOn).forEach(([e,t])=>{this.selectedElement.node.classList.value.includes(t)||this.hiddenOn.push(e)})}}changeElPosition(e){this.removeClass(["pull-left","pull-right","center-block"]),e&&"none"!==e&&this.addClass([e]),this.livePreview.repositionBox("selected")}changeElId(e){this.selectedElement.node.id=e}changeVisibility(e){const t=this.hiddenOn.indexOf(e);t>-1?this.hiddenOn.splice(t,1):this.hiddenOn.push(e),this.hiddenOn.length?this.selectedElement.node.classList.add("d-none"):this.selectedElement.node.classList.remove("d-none"),Object.entries(this.canHideOn).forEach(([e,t])=>{!this.hiddenOn.length||this.hiddenOn.includes(e)?this.selectedElement.node.classList.remove(t):this.selectedElement.node.classList.add(t)}),this.livePreview.repositionBox("selected")}removeClass(e,t=!0){e.forEach(e=>{const t=this.classes.indexOf(e);t>-1&&this.classes.splice(t,1),this.selectedElement.node.classList.remove(e)}),t&&this.undoManager.add("generic",{undo:()=>{this.addClass(e,!1)},redo:()=>{this.removeClass(e,!1)}}),this.livePreview.repositionBox("selected")}addClass(e,t=!0){(1!==e.length||e[0].length)&&(e.forEach(e=>{e&&e.length&&-1===this.classes.indexOf(e)&&this.classes.push(e),this.selectedElement.node.classList.add(e)}),t&&this.undoManager.add("generic",{undo:()=>{this.removeClass(e,!1)},redo:()=>{this.addClass(e,!1)}}),this.livePreview.repositionBox("selected"))}callElementOnChange(e,t){const n=this.customAttributes[e].value;this.customAttributes[e].value=t,this.makeUndoCommand(this.customAttributes[e].onChange,n,t),this.customAttributes[e].onChange?this.customAttributes[e].onChange(this.livePreview,t):this.defaultOnChange(this.customAttributes[e]),this.livePreview.repositionBox("selected")}shouldClassBeHidden(e){return e.indexOf("d-")>-1||e.indexOf("col-")>-1}makeUndoCommand(e,t,n){this.undoManager.add("generic",{undo:()=>{e(this.livePreview,t)},redo:()=>{e(this.livePreview,n)}})}callElementOnAssign(e){for(const t in e.element.attributes)this.customAttributes[t]=Object.assign({},e.element.attributes[t]),this.customAttributes[t].onAssign?this.customAttributes[t].onAssign(this.livePreview):this.defaultOnAssign(this.customAttributes[t])}getElAttributeKeys(e){return Object.keys(e)}defaultOnAssign(e){let t=null;for(let n=e.list.length-1;n>=0;n--)if(t=e.list[n],this.selectedElement.node.className.indexOf(e.list[n].value)>-1)return e.value=e.list[n];return e.value=t}defaultOnChange(e){for(let t=e.list.length-1;t>=0;t--)this.renderer.removeClass(this.selectedElement.node,e.list[t].value);this.renderer.addClass(this.selectedElement.node,e.value),setTimeout(()=>this.livePreview.repositionBox("selected"),300)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(v),u.Nb(y),u.Nb(u.G))},e.\u0275cmp=u.Hb({type:e,selectors:[["attributes-panel"]],decls:37,vars:27,consts:[[1,"visibility-controls"],["mat-icon-button","",3,"matTooltip","click"],["svgIcon","phone-android"],["svgIcon","tablet-android"],["svgIcon","laptop-chromebook"],["svgIcon","desktop-windows"],[1,"inputs"],[4,"ngFor","ngForOf"],[1,"input-container"],["for","position","trans",""],["name","position","id","position",3,"ngModel","ngModelChange"],["value","none","trans",""],["value","pull-left","trans",""],["value","pull-right","trans",""],["value","center-block","trans",""],["for","id","trans",""],["type","text","name","id","id","id",3,"ngModel","ngModelChange"],[1,"input-container",3,"selectable"],["chipList",""],["for","class","trans",""],["placeholder","+New Class...","trans-placeholder","","id","class",3,"matChipInputFor","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"for"],[3,"name","id","ngModel","ngModelChange",4,"ngIf"],[3,"name","id","ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[3,"removable","removed",4,"ngIf"],[3,"removable","removed"],["svgIcon","cancel","matChipRemove",""]],template:function(e,t){if(1&e&&(u.Tb(0,"div",0),u.Tb(1,"button",1),u.ac("click",(function(){return t.changeVisibility("xs")})),u.fc(2,"trans"),u.Ob(3,"mat-icon",2),u.Sb(),u.Tb(4,"button",1),u.ac("click",(function(){return t.changeVisibility("sm")})),u.fc(5,"trans"),u.Ob(6,"mat-icon",3),u.Sb(),u.Tb(7,"button",1),u.ac("click",(function(){return t.changeVisibility("md")})),u.fc(8,"trans"),u.Ob(9,"mat-icon",4),u.Sb(),u.Tb(10,"button",1),u.ac("click",(function(){return t.changeVisibility("lg")})),u.fc(11,"trans"),u.Ob(12,"mat-icon",5),u.Sb(),u.Sb(),u.Tb(13,"div",6),u.Fc(14,rt,7,5,"ng-container",7),u.Tb(15,"div",8),u.Tb(16,"label",9),u.Hc(17,"Position"),u.Sb(),u.Tb(18,"select",10),u.ac("ngModelChange",(function(e){return t.position=e}))("ngModelChange",(function(e){return t.changeElPosition(e)})),u.Tb(19,"option",11),u.Hc(20,"None"),u.Sb(),u.Tb(21,"option",12),u.Hc(22,"Left"),u.Sb(),u.Tb(23,"option",13),u.Hc(24,"Right"),u.Sb(),u.Tb(25,"option",14),u.Hc(26,"Center"),u.Sb(),u.Sb(),u.Sb(),u.Tb(27,"div",8),u.Tb(28,"label",15),u.Hc(29,"ID"),u.Sb(),u.Tb(30,"input",16),u.ac("ngModelChange",(function(e){return t.id=e}))("ngModelChange",(function(e){return t.changeElId(e)})),u.Sb(),u.Sb(),u.Tb(31,"mat-chip-list",17,18),u.Tb(33,"label",19),u.Hc(34,"Class"),u.Sb(),u.Tb(35,"input",20),u.ac("matChipInputTokenEnd",(function(e){return t.addClass([e.value]),e.input.value=""})),u.Sb(),u.Fc(36,st,2,1,"ng-container",7),u.Sb(),u.Sb()),2&e){const e=u.sc(32);u.Bb(1),u.Fb("active",t.hiddenOn.indexOf("xs")>-1),u.kc("matTooltip",u.gc(2,19,"Hide on mobile")),u.Bb(3),u.Fb("active",t.hiddenOn.indexOf("sm")>-1),u.kc("matTooltip",u.gc(5,21,"Hide on tablet")),u.Bb(3),u.Fb("active",t.hiddenOn.indexOf("md")>-1),u.kc("matTooltip",u.gc(8,23,"Hide on laptop")),u.Bb(3),u.Fb("active",t.hiddenOn.indexOf("lg")>-1),u.kc("matTooltip",u.gc(11,25,"Hide on desktop")),u.Bb(4),u.kc("ngForOf",t.getElAttributeKeys(t.customAttributes)),u.Bb(4),u.kc("ngModel",t.position),u.Bb(12),u.kc("ngModel",t.id),u.Bb(1),u.kc("selectable",!1),u.Bb(4),u.kc("matChipInputFor",e)("matChipInputAddOnBlur",!0),u.Bb(1),u.kc("ngForOf",t.classes)}},directives:[V.b,ie.a,z.a,i.s,ae.a,L.G,L.u,L.x,L.z,L.J,L.d,tt.c,tt.b,i.t,tt.a,tt.d],pipes:[Ae.a],styles:["attributes-panel{display:block}attributes-panel .visibility-controls{display:flex;align-items:center;justify-content:center;margin:0 0 20px}attributes-panel .visibility-controls button{background-color:var(--be-raised-button);border:1px solid var(--be-divider-default);border-radius:4px;margin:0 5px}attributes-panel .visibility-controls button.active{color:var(--be-accent-default)}attributes-panel .input-container,attributes-panel .mat-chip-list-wrapper{display:flex;align-items:center;color:var(--be-text)}attributes-panel .input-container label,attributes-panel .mat-chip-list-wrapper label{flex:0 0 80px;width:80px;font-weight:700;font-size:1.2rem;text-transform:capitalize;text-align:left}attributes-panel .input-container input,attributes-panel .input-container select,attributes-panel .mat-chip-list-wrapper input,attributes-panel .mat-chip-list-wrapper select{flex:1 1 auto;max-width:168px;font-size:1.3rem;height:38px;padding:8px}attributes-panel .mat-chip-list-wrapper{margin:0;width:100%}attributes-panel .mat-chip-list-wrapper input.mat-input-element{margin:0}attributes-panel .mat-chip-list-wrapper>.mat-chip{margin-top:7px!important;color:inherit;padding:4px 12px}attributes-panel .mat-chip-list-wrapper>.mat-chip:last-of-type{margin-bottom:5px}attributes-panel .mat-chip-list-wrapper>.mat-chip>.mat-chip-remove{color:inherit}"],encapsulation:2}),e})();const lt=["linear-gradient(to right, #959595 0%, #0D0D0D 46%, #010101 50%, #0A0A0A 53%, #4E4E4E 76%, #383838 87%, #1b1b1b 100%)","linear-gradient(to right, #FF0000 0%, #FFFF00 50%, #ff0000 100%)","linear-gradient(to right, #f6f8f9 0%, #E5EBEE 50%, #D7DEE3 51%, #f5f7f9 100%)","linear-gradient(to right, #008080 0%, #FFFFFF 25%, #05C1FF 50%, #FFFFFF 75%, #005757 100%)","linear-gradient(to right, #ff0000 0%, #000000 100%)","linear-gradient(to bottom, #93cede 0%,#75bdd1 41%, #49a5bf 100%)","linear-gradient(to right, #f8ffe8 0%, #E3F5AB 33%, #b7df2d 100%)","linear-gradient(to right, #b8e1fc 0%, #A9D2F3 10%, #90BAE4 25%, #90BCEA 37%, #90BFF0 50%, #6BA8E5 51%, #A2DAF5 83%, #bdf3fd 100%)","linear-gradient(to right, #f0b7a1 0%, #8C3310 50%, #752201 51%, #bf6e4e 100%)","linear-gradient(to right, #ff0000 0%, #FFFF00 25%, #05C1FF 50%, #FFFF00 75%, #ff0000 100%)","linear-gradient(to right, #ffb76b 0%, #FFA73D 50%, #FF7C00 51%, #ff7f04 100%)","linear-gradient(to right, #ffff00 0%, #05C1FF 50%, #ffff00 100%)","linear-gradient(to bottom, #febf01 0%,#febf01 100%)","linear-gradient(to bottom, #fcfff4 0%,#e9e9ce 100%)","linear-gradient(to bottom, #49c0f0 0%,#2cafe3 100%)","linear-gradient(to bottom, #cc0000 0%,#cc0000 100%)","linear-gradient(to bottom, #73880a 0%,#73880a 100%)","linear-gradient(to bottom, #627d4d 0%,#1f3b08 100%)","linear-gradient(to bottom, #b8c6df 0%,#6d88b7 100%)","linear-gradient(to bottom, #9dd53a 0%,#a1d54f 50%,#80c217 51%,#7cbc0a 100%)","linear-gradient(to bottom, #b8c6df 0%,#6d88b7 100%)","linear-gradient(to bottom, #ff3019 0%,#cf0404 100%)","linear-gradient(to bottom, #e570e7 0%,#c85ec7 47%,#a849a3 100%)","linear-gradient(to bottom, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%)"];function dt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",6),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().emitSelectedEvent(n)})),u.Sb()}2&e&&u.Cc("background",t.$implicit)}let ht=(()=>{class e{constructor(e){this.overlayRef=e,this.gradients=lt.slice()}emitSelectedEvent(e){this.overlayRef.emitValue(e)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(R.a,8))},e.\u0275cmp=u.Hb({type:e,selectors:[["gradient-background-panel"]],decls:7,vars:1,consts:[[1,"header"],["trans","",1,"name"],[1,"close-button","no-style",3,"click"],["svgIcon","close"],[1,"previews"],["class","preview no-style",3,"background","click",4,"ngFor","ngForOf"],[1,"preview","no-style",3,"click"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Hc(2,"Gradient Background"),u.Sb(),u.Tb(3,"button",2),u.ac("click",(function(){return t.overlayRef.close()})),u.Ob(4,"mat-icon",3),u.Sb(),u.Sb(),u.Tb(5,"div",4),u.Fc(6,dt,1,2,"button",5),u.Sb()),2&e&&(u.Bb(6),u.kc("ngForOf",t.gradients))},directives:[ae.a,z.a,i.s],styles:["gradient-background-panel{display:block;width:260px;height:400px;background-color:var(--be-background);box-shadow:-1px 0 2px rgba(0,0,0,.5);border-radius:2px}gradient-background-panel>.header{display:flex;align-items:center;padding:10px;color:inherit;font-weight:500;border-bottom:1px solid var(--be-divider-default)}gradient-background-panel>.header>.close-button{margin-left:auto}gradient-background-panel>.previews{display:flex;flex-wrap:wrap;justify-content:space-between;padding:10px}gradient-background-panel>.previews>.preview{flex:0 0 23%;width:23%;height:50px;margin-bottom:7px;border:1px solid var(--be-divider-default);transition:box-shadow .28s cubic-bezier(.4,0,.2,1)}gradient-background-panel>.previews>.preview:hover{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}"],encapsulation:2}),e})();var ut=n("QibW");function pt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",19),u.ac("click",(function(){u.vc(e);const n=t.index,i=u.ec();return i.emitSelectedEvent(i.getTextureUrl(n))})),u.Ob(1,"img",20),u.Sb()}if(2&e){const e=t.index,n=u.ec();u.Bb(1),u.kc("src",n.getTextureUrl(e),u.xc)}}let gt=(()=>{class e{constructor(e,t,n,i,a,A,r){this.livePreview=e,this.modal=t,this.settings=n,this.activeProject=i,this.builderActions=a,this.uploadQueue=A,this.overlayRef=r,this.textures=new Array(28),this.backgroundRepeat="no-repeat",this.backgroundPosition="top left"}emitSelectedEvent(e){this.overlayRef.emitValue(e)}ngOnInit(){this.backgroundRepeat=this.livePreview.selected.getStyle("backgroundRepeat"),this.backgroundPosition=this.livePreview.selected.getStyle("backgroundPosition")}getTextureUrl(e){return this.settings.getAssetUrl()+"images/textures/"+e+".png"}applyStyle(e,t){this[e]=t,this.builderActions.applyStyle(this.livePreview.selected.node,e,t)}uploadImage(){const e={uri:"uploads/images",httpParams:{diskPrefix:this.activeProject.getBaseUrl(!0)+"images"}};Object(Ze.a)({types:[$e.a.image]}).then(t=>{this.uploadQueue.start(t,e).subscribe(e=>{this.emitSelectedEvent(this.activeProject.getImageUrl(e.fileEntry))})})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(Ne.a),u.Nb(p.a),u.Nb(D),u.Nb(U),u.Nb(et.a),u.Nb(R.a,8))},e.\u0275cmp=u.Hb({type:e,selectors:[["image-background-panel"]],features:[u.Ab([et.a])],decls:39,vars:20,consts:[[1,"header"],["trans","",1,"name"],[1,"close-button","no-style",3,"click"],["svgIcon","close"],["type","button","mat-raised-button","","color","accent","trans","",1,"upload-button",3,"click"],["trans","",1,"separator"],[1,"textures"],["class","no-style texture",3,"click",4,"ngFor","ngForOf"],[1,"image-properties"],[1,"repeat","property-panel"],["trans","",1,"title"],[1,"controls",3,"ngModel","ngModelChange"],["value","no-repeat","trans",""],["value","repeat-x","trans",""],["value","repeat-y","trans",""],["value","repeat","trans",""],[1,"position","property-panel"],[1,"controls"],[1,"no-style","box",3,"click"],[1,"no-style","texture",3,"click"],[3,"src"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Hc(2,"Image Background"),u.Sb(),u.Tb(3,"button",2),u.ac("click",(function(){return t.overlayRef.close()})),u.Ob(4,"mat-icon",3),u.Sb(),u.Sb(),u.Tb(5,"button",4),u.ac("click",(function(){return t.uploadImage()})),u.Hc(6,"Upload Image"),u.Sb(),u.Tb(7,"div",5),u.Hc(8,"Textures"),u.Sb(),u.Tb(9,"div",6),u.Fc(10,pt,2,1,"button",7),u.Sb(),u.Tb(11,"div",5),u.Hc(12,"Image Properties"),u.Sb(),u.Tb(13,"div",8),u.Tb(14,"div",9),u.Tb(15,"div",10),u.Hc(16,"Repeat"),u.Sb(),u.Tb(17,"mat-radio-group",11),u.ac("ngModelChange",(function(e){return t.backgroundRepeat=e}))("ngModelChange",(function(){return t.applyStyle("backgroundRepeat",t.backgroundRepeat)})),u.Tb(18,"mat-radio-button",12),u.Hc(19,"None"),u.Sb(),u.Tb(20,"mat-radio-button",13),u.Hc(21,"Horizontal"),u.Sb(),u.Tb(22,"mat-radio-button",14),u.Hc(23,"Vertical"),u.Sb(),u.Tb(24,"mat-radio-button",15),u.Hc(25,"All"),u.Sb(),u.Sb(),u.Sb(),u.Tb(26,"div",16),u.Tb(27,"div",10),u.Hc(28,"Position"),u.Sb(),u.Tb(29,"div",17),u.Tb(30,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","top left")})),u.Sb(),u.Tb(31,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","top center")})),u.Sb(),u.Tb(32,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","top right")})),u.Sb(),u.Tb(33,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","center center")})),u.Sb(),u.Tb(34,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","center right")})),u.Sb(),u.Tb(35,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","center left")})),u.Sb(),u.Tb(36,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","bottom left")})),u.Sb(),u.Tb(37,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","bottom center")})),u.Sb(),u.Tb(38,"button",18),u.ac("click",(function(){return t.applyStyle("backgroundPosition","bottom right")})),u.Sb(),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(10),u.kc("ngForOf",t.textures),u.Bb(7),u.kc("ngModel",t.backgroundRepeat),u.Bb(13),u.Fb("active","top left"===t.backgroundPosition),u.Bb(1),u.Fb("active","top center"===t.backgroundPosition),u.Bb(1),u.Fb("active","top right"===t.backgroundPosition),u.Bb(1),u.Fb("active","center center"===t.backgroundPosition),u.Bb(1),u.Fb("active","center right"===t.backgroundPosition),u.Bb(1),u.Fb("active","center left"===t.backgroundPosition),u.Bb(1),u.Fb("active","bottom left"===t.backgroundPosition),u.Bb(1),u.Fb("active","bottom center"===t.backgroundPosition),u.Bb(1),u.Fb("active","bottom right"===t.backgroundPosition))},directives:[ae.a,z.a,V.b,i.s,ut.b,L.u,L.x,ut.a],styles:["image-background-panel{display:block;width:260px;height:565px;background-color:var(--be-background);box-shadow:-1px 0 2px rgba(0,0,0,.5);border-radius:2px;text-align:center}image-background-panel .header{display:flex;align-items:center;padding:10px;color:inherit;font-weight:500;border-bottom:1px solid var(--be-background)}image-background-panel .header .close-button{margin-left:auto}image-background-panel .upload-button{width:90%;margin:15px 0}image-background-panel .separator{padding:10px;color:inherit;background-color:var(--be-background-alternative);margin:10px 0;text-align:left;font-weight:500}image-background-panel .textures{display:flex;flex-wrap:wrap;max-height:190px;overflow:auto;position:relative}image-background-panel .textures .texture{width:50px;height:50px;margin:5px;border:1px solid var(--be-divider-default)}image-background-panel .textures .texture img{width:100%;height:100%}image-background-panel .image-properties{display:flex;color:var(--be-secondary-text);text-align:left;padding:5px 15px}image-background-panel .image-properties .property-panel{flex:0 1 50%}image-background-panel .image-properties .property-panel .title{margin-bottom:5px}image-background-panel .image-properties .mat-radio-button{display:block;margin-bottom:5px}image-background-panel .position .controls .box{display:inline-block;width:25px;height:25px;margin:2.5px;background-color:var(--be-background-alternative);border:1px solid var(--be-divider-default);border-radius:2px}image-background-panel .position .controls .box.active{background-color:var(--be-accent-default);border-color:var(--be-accent-default)}"],encapsulation:2}),e})();var ft=n("4zmm"),bt=n("WvtK");const mt=["gradientButton"],Bt=["backgroundButton"];let wt=(()=>{class e{constructor(e,t,n,i,a,A){this.selectedElement=e,this.panel=t,this.renderer=n,this.builderActions=i,this.overlayPanel=a,this.undoManager=A,this.styles={backgroundImage:"",backgroundColor:""}}ngOnInit(){this.selectedElement.changed.subscribe(()=>{this.styles.backgroundImage=this.selectedElement.getStyle("backgroundImage"),this.styles.backgroundColor=this.selectedElement.getStyle("backgroundColor"),this.setBackgroundButtonColor()})}openGradientPanel(){this.panel.open(ht,this.gradientButton).valueChanged().subscribe(e=>{this.setBackgroundButtonColor(),this.applyBackgroundStyle("backgroundImage",e)})}openColorpickerPanel(){this.overlayPanel.open(ft.a,{position:bt.a,origin:this.gradientButton,data:{color:this.styles.backgroundColor}}).valueChanged().subscribe(e=>{this.setBackgroundButtonColor(),this.applyBackgroundStyle("backgroundColor",e,!1)})}openBackgroundPanel(){this.panel.open(gt,this.gradientButton).valueChanged().subscribe(e=>{this.applyBackgroundStyle("backgroundImage","url("+e+")")})}setBackgroundButtonColor(){"rgba(0, 0, 0, 0)"!==this.styles.backgroundColor&&this.renderer.setStyle(this.backgroundButton.nativeElement,"backgroundColor",this.styles.backgroundColor)}applyBackgroundStyle(e,t,n=!0){this.styles[e]=t,this.builderActions.applyStyle(this.selectedElement.node,e,this.styles[e],n)}removeBackground(){this.styles.backgroundColor="",this.styles.backgroundImage="",this.undoManager.wrapDomChanges(this.selectedElement.node,()=>{this.builderActions.applyStyle(this.selectedElement.node,"backgroundImage","",!1),this.builderActions.applyStyle(this.selectedElement.node,"backgroundColor","",!1)})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(y),u.Nb(Oe),u.Nb(u.G),u.Nb(U),u.Nb(J.a),u.Nb(v))},e.\u0275cmp=u.Hb({type:e,selectors:[["background-panel"]],viewQuery:function(e,t){var n;1&e&&(u.Bc(mt,!0),u.Bc(Bt,!0)),2&e&&(u.rc(n=u.bc())&&(t.gradientButton=n.first),u.rc(n=u.bc())&&(t.backgroundButton=n.first))},decls:18,vars:0,consts:[[1,"buttons"],["type","button",1,"no-style",3,"click"],["backgroundButton",""],["svgIcon","format-color-fill"],["trans","",1,"name"],["type","button",1,"no-style","image-button",3,"click"],["svgIcon","image"],["gradientButton",""],["svgIcon","gradient"],[1,"remove-bg-container"],["mat-button","","color","warn","trans","",1,"remove-bg-btn",3,"click"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"button",1,2),u.ac("click",(function(){return t.openColorpickerPanel()})),u.Ob(3,"mat-icon",3),u.Tb(4,"span",4),u.Hc(5,"Color"),u.Sb(),u.Sb(),u.Tb(6,"button",5),u.ac("click",(function(){return t.openBackgroundPanel()})),u.Ob(7,"mat-icon",6),u.Tb(8,"span",4),u.Hc(9,"Image"),u.Sb(),u.Sb(),u.Tb(10,"button",1,7),u.ac("click",(function(){return t.openGradientPanel()})),u.Ob(12,"mat-icon",8),u.Tb(13,"span",4),u.Hc(14,"Gradient"),u.Sb(),u.Sb(),u.Sb(),u.Tb(15,"div",9),u.Tb(16,"button",10),u.ac("click",(function(){return t.removeBackground()})),u.Hc(17,"Remove Background"),u.Sb(),u.Sb())},directives:[z.a,ae.a,V.b],styles:["background-panel{display:block}background-panel .buttons{display:flex}background-panel .buttons button{flex:1 1 0;height:71px;background-color:var(--be-background);border-radius:4px;border:1px solid var(--be-divider-default);text-align:center}background-panel .buttons button:hover{background-color:var(--be-background-alternative)}background-panel .buttons button mat-icon{margin:0 auto;width:30px;height:30px}background-panel .buttons button .name{display:block;text-align:center;margin-top:5px;font-size:1.3rem}background-panel .image-button{margin:0 5px}background-panel .remove-bg-container{text-align:right;margin-top:15px}"],encapsulation:2}),e})();var vt=n("5RNC");const Ct=["colorButton"];function Et(e,t){if(1&e){const e=u.Ub();u.Rb(0),u.Tb(1,"div",14),u.Hc(2),u.Sb(),u.Tb(3,"div",15),u.Tb(4,"mat-slider",16),u.ac("input",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().applyStyle(n,t.value,!1)}))("ngModelChange",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().props[n]=t})),u.Sb(),u.Tb(5,"div",17),u.Tb(6,"input",18),u.ac("ngModelChange",(function(t){u.vc(e);const n=u.ec().$implicit;return u.ec().props[n]=t})),u.Sb(),u.Sb(),u.Sb(),u.Qb()}if(2&e){const e=u.ec().$implicit,t=u.ec();u.Bb(2),u.Ic(e),u.Bb(2),u.kc("max","angle"==e?360:20)("ngModel",t.props[e]),u.Bb(2),u.kc("ngModel",t.props[e])("max","angle"==e?360:20)}}function Qt(e,t){if(1&e&&(u.Tb(0,"div",12),u.Fc(1,Et,7,5,"ng-container",13),u.Sb()),2&e){const e=t.$implicit,n=u.ec();u.Bb(1),u.kc("ngIf","spread"!==e||"boxShadow"===n.props.type)}}let xt=(()=>{class e{constructor(e,t,n,i){this.selectedElement=e,this.renderer=t,this.overlay=n,this.builderActions=i,this.sliders=["angle","distance","blur","spread"],this.resetProps()}ngOnInit(){this.selectedElement.changed.subscribe(()=>{this.stringToProps(this.selectedElement.getStyle("boxShadow"===this.props.type?"boxShadow":"textShadow")),this.setColorButtonColor()})}applyStyle(e,t,n=!0){this.props[e]=t,this.builderActions.applyStyle(this.selectedElement.node,this.props.type,this.propsToString(this.props),n),this.clearShadow("boxShadow"===this.props.type?"textShadow":"boxShadow")}clearShadow(e){this.builderActions.applyStyle(this.selectedElement.node,e,"none",!1)}openColorpickerPanel(){this.overlay.open(ft.a,{origin:this.colorButton,position:bt.a,data:{color:this.props.color}}).valueChanged().subscribe(e=>{this.setColorButtonColor(),this.applyStyle("color",e)})}setColorButtonColor(){"rgba(0, 0, 0, 0)"!==this.props.color&&this.renderer.setStyle(this.colorButton.nativeElement,"backgroundColor",this.props.color)}propsToString(e){const t=Math.round(e.blur),n=Math.round(e.spread),i=parseInt(e.angle)*(Math.PI/180),a=Math.round(e.distance*Math.cos(i)),A=Math.round(e.distance*Math.sin(i));let r=(e.inset&&"boxShadow"===e.type?"inset ":"")+a+"px "+A+"px "+t+"px ";return"boxShadow"===e.type&&(r+=n+"px "),r+e.color}stringToProps(e){if(!e||"none"===e)return this.resetProps();const t=e.replace(/, /g,",").split(" ").map(e=>e.indexOf("px")>-1?+e.replace("px",""):e);4===t.length?(this.props.color=t[0],this.props.angle=t[1],this.props.distance=t[2],this.props.blur=t[3]):5!==t.length&&6!==t.length||(this.props.color=t[0],this.props.angle=t[1],this.props.distance=t[2],this.props.blur=t[3],this.props.spread=t[4])}resetProps(){this.props={type:"boxShadow",inset:!1,angle:0,distance:5,blur:10,color:"rgba(0, 0, 0, 0.5)",spread:0}}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(y),u.Nb(u.G),u.Nb(J.a),u.Nb(U))},e.\u0275cmp=u.Hb({type:e,selectors:[["shadows-panel"]],viewQuery:function(e,t){var n;1&e&&u.Bc(Ct,!0),2&e&&u.rc(n=u.bc())&&(t.colorButton=n.first)},decls:18,vars:5,consts:[[1,"sliders"],["class","slider-container",4,"ngFor","ngForOf"],[1,"types"],["trans","",1,"no-style","color-button",3,"click"],["colorButton",""],[1,"input-container","box-shadow"],["name","shadow-type","id","shadow-type",3,"ngModel","ngModelChange"],["value","boxShadow","trans",""],["value","textShadow","trans",""],[1,"input-container","text-shadow"],["name","shadow-inset","id","shadow-inset",3,"ngModel","ngModelChange"],["trans","",3,"ngValue"],[1,"slider-container"],[4,"ngIf"],[1,"title"],[1,"inner-container"],["color","accent","min","0","step","1",3,"max","ngModel","input","ngModelChange"],[1,"input-container"],["type","number","min","1",3,"ngModel","max","ngModelChange"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Fc(1,Qt,2,1,"div",1),u.Sb(),u.Tb(2,"div",2),u.Tb(3,"button",3,4),u.ac("click",(function(){return t.openColorpickerPanel()})),u.Hc(5,"Color"),u.Sb(),u.Tb(6,"div",5),u.Tb(7,"select",6),u.ac("ngModelChange",(function(e){return t.props.type=e}))("ngModelChange",(function(){return t.applyStyle("type",t.props.type)})),u.Tb(8,"option",7),u.Hc(9,"Box"),u.Sb(),u.Tb(10,"option",8),u.Hc(11,"Text"),u.Sb(),u.Sb(),u.Sb(),u.Tb(12,"div",9),u.Tb(13,"select",10),u.ac("ngModelChange",(function(e){return t.props.inset=e}))("ngModelChange",(function(){return t.applyStyle("inset",t.props.inset)})),u.Tb(14,"option",11),u.Hc(15,"Outter"),u.Sb(),u.Tb(16,"option",11),u.Hc(17,"Inner"),u.Sb(),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(1),u.kc("ngForOf",t.sliders),u.Bb(6),u.kc("ngModel",t.props.type),u.Bb(6),u.kc("ngModel",t.props.inset),u.Bb(1),u.kc("ngValue",!1),u.Bb(2),u.kc("ngValue",!0))},directives:[i.s,ae.a,L.G,L.u,L.x,L.z,L.J,i.t,vt.a,L.A,L.d],styles:["shadows-panel{display:block}shadows-panel .sliders .slider-container .title{color:var(--be-text);text-transform:capitalize}shadows-panel .sliders .slider-container .inner-container{display:flex;align-items:center}shadows-panel .sliders .slider-container .inner-container .mat-slider{flex:1 1 auto}shadows-panel .sliders .slider-container .inner-container .input-container{width:65px;height:25px;margin-left:10px;border-radius:3px;overflow:hidden}shadows-panel .sliders .slider-container .inner-container .input-container input{width:100%;height:100%;padding:6px;border:2px solid var(--be-divider-default)}shadows-panel .types{display:flex;margin-top:10px}shadows-panel .types .color-button{background-color:var(--be-background);border-radius:4px;height:38px;text-align:center;flex:1 1 0}shadows-panel .types select{height:38px;padding:5px}shadows-panel .types .box-shadow{flex:1 1 0;margin:0 5px}shadows-panel .types .text-shadow{flex:1 1 0}"],encapsulation:2}),e})(),yt=(()=>{class e{constructor(){this.active=!1}ngOnInit(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=u.Hb({type:e,selectors:[["side-control-border"]],inputs:{type:"type",active:"active"},decls:4,vars:32,consts:[[1,"side-control-border-inner","top-border"],[1,"side-control-border-inner","left-border"],[1,"side-control-border-inner","bottom-border"],[1,"side-control-border-inner","right-border"]],template:function(e,t){1&e&&(u.Ob(0,"span",0),u.Ob(1,"span",1),u.Ob(2,"span",2),u.Ob(3,"span",3)),2&e&&(u.Fb("active",t.active)("enable","top"===t.type||"all"===t.type)("enable-before","top-left"===t.type)("enable-after","top-right"===t.type),u.Bb(1),u.Fb("active",t.active)("enable","left"===t.type||"all"===t.type)("enable-before","top-left"===t.type)("enable-after","bottom-left"===t.type),u.Bb(1),u.Fb("active",t.active)("enable","bottom"===t.type||"all"===t.type)("enable-before","bottom-left"===t.type)("enable-after","bottom-right"===t.type),u.Bb(1),u.Fb("active",t.active)("enable","right"===t.type||"all"===t.type)("enable-before","top-right"===t.type)("enable-after","bottom-right"===t.type))},styles:['side-control-border{display:block;pointer-events:none}side-control-border .side-control-border-inner{position:absolute;top:0;left:0;width:100%;height:100%}side-control-border .side-control-border-inner.active:after,side-control-border .side-control-border-inner.active:before{background-color:var(--be-accent-default)}side-control-border .side-control-border-inner.enable-after:after,side-control-border .side-control-border-inner.enable-before:before,side-control-border .side-control-border-inner.enable:after,side-control-border .side-control-border-inner.enable:before{display:block}side-control-border .side-control-border-inner:after,side-control-border .side-control-border-inner:before{content:"";display:none;position:absolute;background-color:#d8d7d7}side-control-border .bottom-border:after,side-control-border .bottom-border:before,side-control-border .top-border:after,side-control-border .top-border:before{width:50%;height:2px}side-control-border .bottom-border:before,side-control-border .top-border:before{left:0}side-control-border .bottom-border:after,side-control-border .top-border:after{right:0}side-control-border .top-border:after,side-control-border .top-border:before{top:0}side-control-border .bottom-border:after,side-control-border .bottom-border:before{bottom:0}side-control-border .left-border:after,side-control-border .left-border:before,side-control-border .right-border:after,side-control-border .right-border:before{width:2px;height:50%}side-control-border .left-border:before,side-control-border .right-border:before{top:0}side-control-border .left-border:after,side-control-border .right-border:after{bottom:0}side-control-border .right-border:after,side-control-border .right-border:before{right:0}side-control-border .left-border:after,side-control-border .left-border:before{left:0}'],encapsulation:2,changeDetection:0}),e})();const Ut=["*"];let Ft=(()=>{class e{constructor(e,t){this.selected=e,this.builderActions=t,this.sliderValue=0,this.max=100,this.type="padding",this.availableSides=["top","right","bottom","left"],this.enabledSides=["top","right","bottom","left"],this.spacing={all:0,top:0,left:0,right:0,bottom:0},this.resetSpacing()}ngOnInit(){this.selected.changed.subscribe(()=>{this.setSelectedElementSpacingValues()})}toggleSide(e){"all"===e?this.enabledSides=this.enabledSides.length>0?[]:this.availableSides.slice():this.isSideEnabled(e)?this.enabledSides.splice(this.enabledSides.indexOf(e),1):this.enabledSides.push(e),this.applySpacing()}isSideEnabled(e){return"all"===e?4===this.enabledSides.length:this.enabledSides.indexOf(e)>-1}applySpacing(e){this.maybeResetAllSpacingValue(),this.resetDisabledSideValues();const t=this.generateSpacingCssValue();this.builderActions.applyStyle(this.selected.node,this.type,t),this.sliderValue=e?this.spacing[e]:0}maybeResetAllSpacingValue(){this.availableSides.forEach(e=>{this.spacing[e]!==this.spacing.all&&(this.spacing.all=0)})}applySpacingToAllSides(){this.enabledSides=this.availableSides.slice(),this.availableSides.forEach(e=>{this.spacing[e]=this.spacing.all}),this.applySpacing("all")}applySpacingForEnabledSides(e){this.resetSpacing(),this.enabledSides.forEach(t=>{this.spacing[t]=e,4===this.enabledSides.length&&(this.spacing.all=e)}),this.applySpacing()}setSelectedElementSpacingValues(){this.availableSides.forEach(e=>{this.spacing[e]=this.selected.getStyle(this.generateCssRuleName(e)).replace("px","")}),this.spacing.all=this.allSpacingValuesEqual()?this.spacing.top:0}generateCssRuleName(e){return e=this.ucFirst(e),"borderWidth"===this.type?"border"+e+"Width":"borderRadius"===this.type?this.generateBorderRadiusRuleName(e):this.type+e}generateBorderRadiusRuleName(e){switch(e=e.toLowerCase()){case"top":return"borderTopLeftRadius";case"left":return"borderTopRightRadius";case"bottom":return"borderBottomLeftRadius";case"right":return"borderBottomRightRadius"}}generateSpacingCssValue(){return"borderRadius"===this.type?`${this.spacing.top}px ${this.spacing.left}px ${this.spacing.bottom}px ${this.spacing.right}px`:`${this.spacing.top}px ${this.spacing.right}px ${this.spacing.bottom}px ${this.spacing.left}px`}resetDisabledSideValues(){this.availableSides.forEach(e=>{this.isSideEnabled(e)||(this.spacing[e]=0)})}allSpacingValuesEqual(){return 4===this.availableSides.filter(e=>this.spacing[e]===this.spacing.top).length}resetSpacing(){this.spacing={top:0,right:0,bottom:0,left:0,all:0}}ucFirst(e){return e.charAt(0).toUpperCase()+e.slice(1)}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(y),u.Nb(U))},e.\u0275cmp=u.Hb({type:e,selectors:[["spacing-panel"]],inputs:{max:"max",type:"type"},ngContentSelectors:Ut,decls:25,vars:18,consts:[[1,"side-controls"],[1,"no-style","side-control","all-control",3,"click"],["type","all",3,"active"],[1,"no-style","side-control","top-control",3,"click"],[3,"type","active"],[1,"no-style","side-control","right-control",3,"click"],[1,"no-style","side-control","bottom-control",3,"click"],[1,"no-style","side-control","left-control",3,"click"],["min","1","step","1","color","accent",3,"max","value","disabled","input"],[1,"side-inputs"],[1,"input-container","all-input"],["type","number","min","1","max","999",3,"ngModel","ngModelChange"],[1,"side-inputs-inner",3,"ngClass"],[1,"input-container","top-input"],[1,"input-container","left-input"],[1,"input-container","right-input"],[1,"input-container","bottom-input"]],template:function(e,t){1&e&&(u.jc(),u.Tb(0,"div",0),u.Tb(1,"button",1),u.ac("click",(function(){return t.toggleSide("all")})),u.Ob(2,"side-control-border",2),u.Sb(),u.Tb(3,"button",3),u.ac("click",(function(){return t.toggleSide("top")})),u.Ob(4,"side-control-border",4),u.Sb(),u.Tb(5,"button",5),u.ac("click",(function(){return t.toggleSide("right")})),u.Ob(6,"side-control-border",4),u.Sb(),u.Tb(7,"button",6),u.ac("click",(function(){return t.toggleSide("bottom")})),u.Ob(8,"side-control-border",4),u.Sb(),u.Tb(9,"button",7),u.ac("click",(function(){return t.toggleSide("left")})),u.Ob(10,"side-control-border",4),u.Sb(),u.Sb(),u.Tb(11,"mat-slider",8),u.ac("input",(function(e){return t.applySpacingForEnabledSides(e.value)})),u.Sb(),u.ic(12),u.Tb(13,"div",9),u.Tb(14,"div",10),u.Tb(15,"input",11),u.ac("ngModelChange",(function(e){return t.spacing.all=e}))("ngModelChange",(function(){return t.applySpacingToAllSides()})),u.Sb(),u.Sb(),u.Tb(16,"div",12),u.Tb(17,"div",13),u.Tb(18,"input",11),u.ac("ngModelChange",(function(e){return t.spacing.top=e}))("ngModelChange",(function(){return t.applySpacing("top")})),u.Sb(),u.Sb(),u.Tb(19,"div",14),u.Tb(20,"input",11),u.ac("ngModelChange",(function(e){return t.spacing.left=e}))("ngModelChange",(function(){return t.applySpacing("left")})),u.Sb(),u.Sb(),u.Tb(21,"div",15),u.Tb(22,"input",11),u.ac("ngModelChange",(function(e){return t.spacing.right=e}))("ngModelChange",(function(){return t.applySpacing("right")})),u.Sb(),u.Sb(),u.Tb(23,"div",16),u.Tb(24,"input",11),u.ac("ngModelChange",(function(e){return t.spacing.bottom=e}))("ngModelChange",(function(){return t.applySpacing("bottom")})),u.Sb(),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(2),u.kc("active",t.isSideEnabled("all")),u.Bb(2),u.kc("type","borderRadius"===t.type?"top-left":"top")("active",t.isSideEnabled("top")),u.Bb(2),u.kc("type","borderRadius"===t.type?"bottom-left":"right")("active",t.isSideEnabled("right")),u.Bb(2),u.kc("type","borderRadius"===t.type?"top-right":"bottom")("active",t.isSideEnabled("bottom")),u.Bb(2),u.kc("type","borderRadius"===t.type?"bottom-right":"left")("active",t.isSideEnabled("left")),u.Bb(1),u.kc("max",t.max)("value",t.sliderValue)("disabled",!t.enabledSides.length),u.Bb(4),u.kc("ngModel",t.spacing.all),u.Bb(1),u.kc("ngClass",t.type),u.Bb(2),u.kc("ngModel",t.spacing.top),u.Bb(2),u.kc("ngModel",t.spacing.left),u.Bb(2),u.kc("ngModel",t.spacing.right),u.Bb(2),u.kc("ngModel",t.spacing.bottom))},directives:[yt,vt.a,L.A,L.d,L.u,L.x,i.q],styles:["spacing-panel{display:block}spacing-panel .side-controls{display:flex;justify-content:flex-end;margin-top:5px}spacing-panel .side-controls .side-control{width:25px;height:25px;border:1px solid var(--be-divider-default);background-color:var(--be-raised-button);margin-right:5px;position:relative}spacing-panel .side-controls .side-control.all-control{border-color:var(--be-divider-default);margin-right:auto}spacing-panel .side-controls .side-control.all-control.active{border-color:var(--be-divider-lighter)}spacing-panel .side-controls .side-control.top-control{border-top-color:var(--be-divider-default)}spacing-panel .side-controls .side-control.top-control.active{border-top-color:var(--be-divider-lighter)}spacing-panel .side-controls .side-control.right-control{border-right-color:var(--be-divider-default)}spacing-panel .side-controls .side-control.right-control.active{border-right-color:var(--be-divider-lighter)}spacing-panel .side-controls .side-control.bottom-control{border-bottom-color:var(--be-divider-default)}spacing-panel .side-controls .side-control.bottom-control.active{border-bottom-color:var(--be-divider-lighter)}spacing-panel .side-controls .side-control.left-control{border-left-color:var(--be-divider-default)}spacing-panel .side-controls .side-control.left-control.active{border-left-color:var(--be-divider-lighter)}spacing-panel .side-inputs{display:flex;justify-content:space-between;width:100%;height:115px}spacing-panel .side-inputs input{border:2px solid var(--be-divider-default);background-color:var(--be-background);height:100%;text-align:center}spacing-panel .side-inputs>.all-input{flex:0 0 49%;width:49%}spacing-panel .side-inputs>.side-inputs-inner{display:flex;flex-wrap:wrap;justify-content:space-between;flex:0 0 49%;width:49%}spacing-panel .side-inputs>.side-inputs-inner.borderRadius>.input-container{width:48%;height:55px}spacing-panel .side-inputs>.side-inputs-inner.borderRadius>.left-input,spacing-panel .side-inputs>.side-inputs-inner.borderRadius>.right-input{margin:0 0 5px}spacing-panel .side-inputs>.side-inputs-inner>.input-container{height:36px}spacing-panel .side-inputs>.side-inputs-inner>.left-input,spacing-panel .side-inputs>.side-inputs-inner>.right-input{width:49%;margin:3px 0}spacing-panel .mat-slider{width:100%}"],encapsulation:2}),e})();var kt=n("/uUt");function Ht(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",13),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().applyFont(n.family)})),u.Hc(1),u.Sb()}if(2&e){const e=t.$implicit;u.Cc("font-family",e.family),u.Bb(1),u.Ic(e.family)}}let St=(()=>{class e{constructor(e,t,n,i,a){this.http=e,this.builderDocument=t,this.settings=n,this.selectedElement=i,this.overlayRef=a,this.loading=!1,this.originalFonts=[],this.filteredFonts=[],this.searchControl=new L.i,this.fontPage=0}ngOnInit(){this.getAll(),this.bindToSearchQuery()}close(){this.overlayRef.close()}nextPage(){this.filteredFonts.length>this.fontPage+1&&(this.fontPage++,this.loadIntoDom())}previousPage(){this.fontPage-1>0&&(this.fontPage--,this.loadIntoDom())}applyFont(e){this.loadIntoDom([e],this.builderDocument.document.head),this.builderDocument.actions.applyStyle(this.selectedElement.node,"fontFamily",e)}getAll(){const e=this.settings.get("builder.google_fonts_api_key");this.http.get("https://www.googleapis.com/webfonts/v1/webfonts?sort=popularity&key="+e).subscribe(e=>{this.originalFonts=this.createPaginator(e.items),this.filteredFonts=this.originalFonts.slice(),this.loadIntoDom()})}createPaginator(e){const t=[];for(;e.length>0;)t.push(e.splice(0,15));return t}bindToSearchQuery(){this.searchControl.valueChanges.pipe(Object(l.a)(100),Object(kt.a)()).subscribe(e=>{e||(this.filteredFonts=this.originalFonts);const t=[];this.originalFonts.forEach(n=>{n.forEach(n=>{n.family.toLowerCase().indexOf(e)>-1&&t.push(n)})}),this.filteredFonts=this.createPaginator(t)})}loadIntoDom(e=null,t=null){let n=t||document.head;if(this.loading=!0,e||(e=this.filteredFonts[this.fontPage].map(e=>e.family)),!t){const e=n.querySelector("#dynamic-fonts");e&&e.remove()}const i=n.querySelector("#dynamic-fonts");let a=e.join("|").replace(/ /g,"+");if(i)i.href+="|"+a;else{const e=document.createElement("link");e.rel="stylesheet",e.href="https://fonts.googleapis.com/css?family="+a,e.id="dynamic-fonts",n.appendChild(e)}this.loading=!1}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(De.a),u.Nb(_),u.Nb(p.a),u.Nb(y),u.Nb(R.a,8))},e.\u0275cmp=u.Hb({type:e,selectors:[["google-fonts-panel"]],decls:16,vars:8,consts:[[1,"header"],["trans","",1,"name"],[1,"close-button","no-style",3,"click"],["svgIcon","close"],[1,"input-container","search"],["type","search","placeholder","Search...","trans-placeholder","",3,"formControl"],[1,"fonts"],["class","no-style font",3,"fontFamily","click",4,"ngFor","ngForOf"],[1,"pagination"],[1,"no-style","previous-page",3,"matTooltip","click"],["svgIcon","keyboard-arrow-left"],[1,"no-style","next-page",3,"matTooltip","click"],["svgIcon","keyboard-arrow-right"],[1,"no-style","font",3,"click"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Hc(2,"Google Fonts"),u.Sb(),u.Tb(3,"button",2),u.ac("click",(function(){return t.close()})),u.Ob(4,"mat-icon",3),u.Sb(),u.Sb(),u.Tb(5,"div",4),u.Ob(6,"input",5),u.Sb(),u.Tb(7,"div",6),u.Fc(8,Ht,2,3,"button",7),u.Sb(),u.Tb(9,"div",8),u.Tb(10,"button",9),u.ac("click",(function(){return t.previousPage()})),u.fc(11,"trans"),u.Ob(12,"mat-icon",10),u.Sb(),u.Tb(13,"button",11),u.ac("click",(function(){return t.nextPage()})),u.fc(14,"trans"),u.Ob(15,"mat-icon",12),u.Sb(),u.Sb()),2&e&&(u.Bb(6),u.kc("formControl",t.searchControl),u.Bb(2),u.kc("ngForOf",t.filteredFonts[t.fontPage]),u.Bb(2),u.kc("matTooltip",u.gc(11,4,"Previous Page")),u.Bb(3),u.kc("matTooltip",u.gc(14,6,"Next Page")))},directives:[ae.a,z.a,L.d,L.u,L.j,i.s,ie.a],pipes:[Ae.a],styles:["google-fonts-panel{display:block;width:260px;min-height:600px;background-color:var(--be-background);box-shadow:-1px 0 2px rgba(0,0,0,.5);border-radius:2px;color:var(--be-text);overflow:auto}google-fonts-panel .header{display:flex;align-items:center;padding:10px;color:inherit;border-bottom:1px solid var(--be-divider-default)}google-fonts-panel .header .close-button{margin-left:auto}google-fonts-panel .search{padding:10px;width:auto}google-fonts-panel .search input{background-color:var(--be-background);border-color:var(--be-divider-default)}google-fonts-panel .fonts{text-align:center;padding:10px 0}google-fonts-panel .fonts .font{display:block;font-size:1.8rem;margin-bottom:10px;width:100%;text-align:center}google-fonts-panel .fonts .font:hover{text-decoration:underline}google-fonts-panel .pagination{padding:0 10px 10px;text-align:right;margin-top:auto}"],encapsulation:2}),e})();const _t=["googleFontsOrigin"];function Tt(e,t){if(1&e&&(u.Tb(0,"option",26),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("ngValue",e.css),u.Bb(1),u.Ic(e.name)}}function Nt(e,t){if(1&e&&(u.Tb(0,"option",27),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("value",e),u.Bb(1),u.Ic(e)}}let It=(()=>{class e{constructor(e,t,n,i){this.selectedElement=e,this.panel=t,this.builderActions=n,this.overlayPanel=i,this.styles={},this.baseFonts=[],this.fontWeights=Z.slice()}ngOnInit(){this.selectedElement.changed.subscribe(()=>{this.getSelectedElementTextStyles()})}applyTextStyle(e,t=!0){let n=""+this.styles[e];"fontSize"===e&&(n+="px"),this.builderActions.applyStyle(this.selectedElement.node,e,n,t)}toggleTextStyle(e,t){this.textStyleIs(e,t)?this.builderActions.applyStyle(this.selectedElement.node,e,"initial"):this.builderActions.applyStyle(this.selectedElement.node,e,t)}textStyleIs(e,t){return this.selectedElement.getStyle(e).indexOf(t)>-1}openColorpickerPanel(e){const t=this.styles.color;this.overlayPanel.open(ft.a,{position:bt.a,origin:new u.l(e),data:{color:t}}).valueChanged().subscribe(e=>{this.styles.color=e,this.applyTextStyle("color",!1)})}openGoogleFontsPanel(){this.panel.open(St,this.googleFontsOrigin)}getSelectedElementTextStyles(){this.styles={color:this.selectedElement.getStyle("color"),fontSize:this.selectedElement.getStyle("fontSize").replace("px",""),textAlign:this.selectedElement.getStyle("textAlign"),fontStyle:this.selectedElement.getStyle("fontStyle"),fontFamily:this.selectedElement.getStyle("fontFamily"),lineHeight:this.selectedElement.getStyle("lineHeight"),fontWeight:this.selectedElement.getStyle("fontWeight"),textDecoration:this.selectedElement.getStyle("textDecoration")},this.baseFonts=q.slice(),this.baseFonts.includes(this.styles.fontFamily)||this.baseFonts.push({name:this.styles.fontFamily.split(",")[0],css:this.styles.fontFamily})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(y),u.Nb(Oe),u.Nb(U),u.Nb(J.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["text-style-panel"]],viewQuery:function(e,t){var n;1&e&&u.Bc(_t,!0),2&e&&u.rc(n=u.bc())&&(t.googleFontsOrigin=n.first)},decls:40,vars:39,consts:[[1,"font-family-container"],["googleFontsOrigin",""],[1,"input-container"],["name","font-family","id","font-family",3,"ngModel","ngModelChange"],["value","","trans",""],[3,"ngValue",4,"ngFor","ngForOf"],["type","button",1,"no-style","google-fonts-button",3,"matTooltip","click"],["svgIcon","google-custom"],[1,"text-decorations"],[1,"buttons"],[1,"no-style","italic",3,"click"],[1,"no-style","underline",3,"click"],[1,"no-style","strike",3,"click"],[1,"no-style","overline",3,"click"],["id","font-weight","name","font-weight",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"font-styles"],[1,"input-container","font-size"],["name","font-size","type","number","min","1","max","999",3,"ngModel","matTooltip","ngModelChange"],[1,"text-align"],[1,"no-style",3,"matTooltip","click"],["svgIcon","format-align-left"],["svgIcon","format-align-center"],["svgIcon","format-align-right"],[1,"text-color",3,"matTooltip","click"],["origin",""],[3,"ngValue"],[3,"value"]],template:function(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",0,1),u.Tb(2,"div",2),u.Tb(3,"select",3),u.ac("ngModelChange",(function(e){return t.styles.fontFamily=e}))("ngModelChange",(function(){return t.applyTextStyle("fontFamily")})),u.Tb(4,"option",4),u.Hc(5,"Font"),u.Sb(),u.Fc(6,Tt,2,2,"option",5),u.Sb(),u.Sb(),u.Tb(7,"button",6),u.ac("click",(function(){return t.openGoogleFontsPanel()})),u.fc(8,"trans"),u.Ob(9,"mat-icon",7),u.Sb(),u.Sb(),u.Tb(10,"div",8),u.Tb(11,"div",9),u.Tb(12,"button",10),u.ac("click",(function(){return t.toggleTextStyle("fontStyle","italic")})),u.Hc(13,"I"),u.Sb(),u.Tb(14,"button",11),u.ac("click",(function(){return t.toggleTextStyle("textDecoration","underline")})),u.Hc(15,"U"),u.Sb(),u.Tb(16,"button",12),u.ac("click",(function(){return t.toggleTextStyle("textDecoration","line-through")})),u.Hc(17,"S"),u.Sb(),u.Tb(18,"button",13),u.ac("click",(function(){return t.toggleTextStyle("textDecoration","overline")})),u.Hc(19,"O"),u.Sb(),u.Sb(),u.Tb(20,"div",2),u.Tb(21,"select",14),u.ac("ngModelChange",(function(e){return t.styles.fontWeight=e}))("ngModelChange",(function(){return t.applyTextStyle("fontWeight")})),u.Fc(22,Nt,2,2,"option",15),u.Sb(),u.Sb(),u.Sb(),u.Tb(23,"div",16),u.Tb(24,"div",17),u.Tb(25,"input",18),u.ac("ngModelChange",(function(e){return t.styles.fontSize=e}))("ngModelChange",(function(){return t.applyTextStyle("fontSize")})),u.fc(26,"trans"),u.Sb(),u.Sb(),u.Tb(27,"div",19),u.Tb(28,"button",20),u.ac("click",(function(){return t.toggleTextStyle("textAlign","left")})),u.fc(29,"trans"),u.Ob(30,"mat-icon",21),u.Sb(),u.Tb(31,"button",20),u.ac("click",(function(){return t.toggleTextStyle("textAlign","center")})),u.fc(32,"trans"),u.Ob(33,"mat-icon",22),u.Sb(),u.Tb(34,"button",20),u.ac("click",(function(){return t.toggleTextStyle("textAlign","right")})),u.fc(35,"trans"),u.Ob(36,"mat-icon",23),u.Sb(),u.Sb(),u.Sb(),u.Tb(37,"div",24,25),u.ac("click",(function(){u.vc(e);const n=u.sc(38);return t.openColorpickerPanel(n)})),u.fc(39,"trans"),u.Sb()}2&e&&(u.Bb(3),u.kc("ngModel",t.styles.fontFamily),u.Bb(3),u.kc("ngForOf",t.baseFonts),u.Bb(1),u.kc("matTooltip",u.gc(8,27,"Google fonts")),u.Bb(5),u.Fb("active",t.textStyleIs("fontStyle","italic")),u.Bb(2),u.Fb("active",t.textStyleIs("textDecoration","underline")),u.Bb(2),u.Fb("active",t.textStyleIs("textDecoration","line-through")),u.Bb(2),u.Fb("active",t.textStyleIs("textDecoration","overline")),u.Bb(3),u.kc("ngModel",t.styles.fontWeight),u.Bb(1),u.kc("ngForOf",t.fontWeights),u.Bb(3),u.kc("ngModel",t.styles.fontSize)("matTooltip",u.gc(26,29,"font size")),u.Bb(3),u.Fb("active",t.textStyleIs("textAlign","left")),u.kc("matTooltip",u.gc(29,31,"align left")),u.Bb(3),u.Fb("active",t.textStyleIs("textAlign","center")),u.kc("matTooltip",u.gc(32,33,"align center")),u.Bb(3),u.Fb("active",t.textStyleIs("textAlign","right")),u.kc("matTooltip",u.gc(35,35,"align right")),u.Bb(3),u.Cc("background-color",t.styles.color),u.kc("matTooltip",u.gc(39,37,"Text color")))},directives:[L.G,L.u,L.x,L.z,L.J,ae.a,i.s,ie.a,z.a,L.A,L.d],pipes:[Ae.a],styles:["text-style-panel{display:block}text-style-panel .font-styles,text-style-panel .text-decorations{display:flex;justify-content:space-between;margin:8px 0}text-style-panel .font-styles .input-container,text-style-panel .text-decorations .input-container{width:80px}text-style-panel .font-styles .input-container input,text-style-panel .font-styles .input-container select,text-style-panel .text-decorations .input-container input,text-style-panel .text-decorations .input-container select{height:35px;padding:8px;margin:0}text-style-panel .font-styles button,text-style-panel .text-decorations button{flex:0 0 35px;width:35px;height:33px;font-weight:500;text-align:center;background-color:var(--be-raised-button);border:1px solid var(--be-divider-default);border-radius:4px;margin-right:4px}text-style-panel .font-styles button .mat-icon,text-style-panel .text-decorations button .mat-icon{margin:0 auto}text-style-panel .font-styles button.active,text-style-panel .text-decorations button.active{color:var(--be-accent-default)}text-style-panel .font-styles button.italic,text-style-panel .text-decorations button.italic{font-style:italic}text-style-panel .font-styles button.overline,text-style-panel .text-decorations button.overline{text-decoration:overline}text-style-panel .font-styles button.strike,text-style-panel .text-decorations button.strike{text-decoration:line-through}text-style-panel .font-styles button.underline,text-style-panel .text-decorations button.underline{text-decoration:underline}text-style-panel .text-decorations .buttons{display:flex;align-items:center}text-style-panel .font-family-container{height:38px;display:flex}text-style-panel .font-family-container select{height:100%;padding:8px}text-style-panel .font-family-container .google-fonts-button{margin-left:10px;flex:0 0 50px;width:50px;height:36px;background-color:var(--be-raised-button);border:1px solid var(--be-divider-default);border-radius:4px;text-align:center}text-style-panel .font-family-container .google-fonts-button .mat-icon{vertical-align:middle}text-style-panel .text-color{height:35px;background-color:var(--be-background-alternative);border:1px solid var(--be-divider-default);border-radius:4px;cursor:pointer}"],encapsulation:2}),e})();const Ot=["colorButton"];let Dt=(()=>{class e{constructor(e,t,n){this.selected=e,this.overlayPanel=t,this.builderActions=n,this.borderStyle="none",this.borderColor="#eee"}ngOnInit(){this.selected.changed.subscribe(()=>{this.setInitialBorderStyles()})}applyBorderColor(e){this.borderColor=e,this.builderActions.applyStyle(this.selected.node,"borderColor",e)}applyBorderStyle(){this.builderActions.applyStyle(this.selected.node,"borderStyle",this.borderStyle)}openColorpickerPanel(){this.overlayPanel.open(ft.a,{position:bt.a,origin:this.colorButton,data:{color:this.borderColor}}).valueChanged().subscribe(e=>{this.applyBorderColor(e)})}setInitialBorderStyles(){this.borderStyle=this.selected.getStyle("borderStyle"),this.borderColor=this.selected.getStyle("borderColor")}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(y),u.Nb(J.a),u.Nb(U))},e.\u0275cmp=u.Hb({type:e,selectors:[["border-style-controls"]],viewQuery:function(e,t){var n;1&e&&u.Bc(Ot,!0),2&e&&u.rc(n=u.bc())&&(t.colorButton=n.first)},decls:23,vars:6,consts:[["type","button",1,"no-style","border-color",3,"matTooltip","click"],["colorButton",""],[1,"input-container"],["name","border-style","id","border-style",3,"ngModel","ngModelChange"],["value","none","trans",""],["value","solid","trans",""],["value","dashed","trans",""],["value","dotted","trans",""],["value","double","trans",""],["value","groove","trans",""],["value","ridge","trans",""],["value","inset","trans",""],["value","outset","trans",""]],template:function(e,t){1&e&&(u.Tb(0,"button",0,1),u.ac("click",(function(){return t.openColorpickerPanel()})),u.fc(2,"trans"),u.Sb(),u.Tb(3,"div",2),u.Tb(4,"select",3),u.ac("ngModelChange",(function(e){return t.borderStyle=e}))("ngModelChange",(function(){return t.applyBorderStyle()})),u.Tb(5,"option",4),u.Hc(6,"None"),u.Sb(),u.Tb(7,"option",5),u.Hc(8,"Solid"),u.Sb(),u.Tb(9,"option",6),u.Hc(10,"Dashed"),u.Sb(),u.Tb(11,"option",7),u.Hc(12,"Dotted"),u.Sb(),u.Tb(13,"option",8),u.Hc(14,"Double"),u.Sb(),u.Tb(15,"option",9),u.Hc(16,"Groove"),u.Sb(),u.Tb(17,"option",10),u.Hc(18,"Ridge"),u.Sb(),u.Tb(19,"option",11),u.Hc(20,"Inset"),u.Sb(),u.Tb(21,"option",12),u.Hc(22,"Outset"),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Cc("border-color",t.borderColor),u.kc("matTooltip",u.gc(2,4,"Border Color")),u.Bb(4),u.kc("ngModel",t.borderStyle))},directives:[ie.a,L.G,L.u,L.x,L.z,L.J,ae.a],pipes:[Ae.a],styles:["border-style-controls{display:flex;height:35px;margin-bottom:10px}border-style-controls .border-color{display:block;height:32px;margin-right:5px;background-color:var(--be-raised-button);flex:1 1 auto;width:50%;border:3px solid var(--be-divider-default)}border-style-controls .input-container{flex:1 1 auto;width:50%}border-style-controls .input-container select{height:36px;padding:8px}"],encapsulation:2}),e})();var Pt=n("CH4Q");function Rt(e,t){1&e&&u.Ob(0,"mat-icon",9)}function Kt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"span",6),u.ac("mouseenter",(function(){return u.vc(e),u.ec(2).livePreview.repositionBox("hover")}))("mouseleave",(function(){return u.vc(e),u.ec(2).livePreview.hideBox("hover")})),u.Tb(1,"button",7),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).selected.selectNode(n.node)})),u.Hc(2),u.Sb(),u.Fc(3,Rt,1,0,"mat-icon",8),u.Sb()}if(2&e){const e=t.$implicit,n=t.last;u.Fb("last",n),u.Bb(2),u.Ic(e.name),u.Bb(1),u.kc("ngIf",!n)}}function Mt(e,t){if(1&e&&(u.Tb(0,"div",4),u.Fc(1,Kt,4,4,"span",5),u.Sb()),2&e){const e=u.ec();u.Bb(1),u.kc("ngForOf",e.path)}}function Lt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",10),u.ac("click",(function(){return u.vc(e),u.ec().openLayoutPanel()})),u.Hc(1,"Edit Layout"),u.Sb()}}function Vt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",10),u.ac("click",(function(){return u.vc(e),u.ec().openUploadImageModal()})),u.Hc(1,"Change Image"),u.Sb()}}function zt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",10),u.ac("click",(function(){return u.vc(e),u.ec().openLinkEditorModal()})),u.Hc(1,"Change Link"),u.Sb()}}function Xt(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",10),u.ac("click",(function(){return u.vc(e),u.ec().openChangeIconPanel()})),u.Hc(1,"Change Icon"),u.Sb()}}function Gt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Attributes"),u.Sb(),u.Sb(),u.Ob(4,"attributes-panel",13),u.Sb())}function jt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Background"),u.Sb(),u.Sb(),u.Ob(4,"background-panel",13),u.Sb())}function Jt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Shadows"),u.Sb(),u.Sb(),u.Ob(4,"shadows-panel",13),u.Sb())}function Wt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Padding"),u.Sb(),u.Sb(),u.Ob(4,"spacing-panel",14),u.Sb())}function Yt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Margin"),u.Sb(),u.Sb(),u.Ob(4,"spacing-panel",15),u.Sb())}function qt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Text Style"),u.Sb(),u.Sb(),u.Ob(4,"text-style-panel",13),u.Sb())}function Zt(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Border"),u.Sb(),u.Sb(),u.Tb(4,"spacing-panel",16),u.Ob(5,"border-style-controls"),u.Sb(),u.Sb())}function $t(e,t){1&e&&(u.Tb(0,"mat-expansion-panel",11),u.Tb(1,"mat-expansion-panel-header"),u.Tb(2,"mat-panel-title",12),u.Hc(3,"Border Roundness"),u.Sb(),u.Sb(),u.Ob(4,"spacing-panel",17),u.Sb())}function en(e,t){1&e&&(u.Tb(0,"no-results-message",18),u.Tb(1,"span",19),u.Hc(2,"Nothing is selected."),u.Sb(),u.Tb(3,"span",20),u.Hc(4,"Click on any element on the right to inspect and modify it."),u.Sb(),u.Sb())}let tn=(()=>{class e{constructor(e,t,n,i,a,A,r,o,s,c){this.livePreview=e,this.selected=t,this.layout=n,this.inspector=i,this.modal=a,this.activeProject=A,this.linkEditor=r,this.elements=o,this.uploadQueue=s,this.inlineTextEditor=c,this.path=[]}ngOnInit(){this.selected.changed.subscribe(()=>{this.selected.path&&(this.path=this.selected.path.slice())})}canModify(e){return this.livePreview.selected.canModify(e)}openLayoutPanel(){this.layout.selectRowAndContainerUsing(this.livePreview.selected.node),this.inspector.openPanel("layout")}openUploadImageModal(){const e={uri:"uploads/images",httpParams:{diskPrefix:this.activeProject.getBaseUrl(!0)+"images"}};Object(Ze.a)({types:[$e.a.image]}).then(t=>{this.uploadQueue.start(t,e).subscribe(e=>{this.livePreview.selected.node.src=this.activeProject.getImageUrl(e.fileEntry)})})}openLinkEditorModal(){this.linkEditor.open(this.livePreview.selected.node)}openChangeIconPanel(){this.inlineTextEditor.open(this.livePreview.selected.node,{activePanel:"icons"})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(y),u.Nb(Ie),u.Nb(Me),u.Nb(Ne.a),u.Nb(D),u.Nb(Se),u.Nb(E.a),u.Nb(et.a),u.Nb(he))},e.\u0275cmp=u.Hb({type:e,selectors:[["inspector-panel"]],features:[u.Ab([et.a])],decls:15,vars:14,consts:[["class","breadcrumbs",4,"ngIf"],["class","edit-layout-button","mat-raised-button","","color","accent","trans","",3,"click",4,"ngIf"],["class","category mat-elevation-z",4,"ngIf"],["svgImage","the-search.svg",4,"ngIf"],[1,"breadcrumbs"],["class","crumb-container",3,"last","mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"crumb-container",3,"mouseenter","mouseleave"],[1,"crumb","no-style",3,"click"],["svgIcon","keyboard-arrow-right",4,"ngIf"],["svgIcon","keyboard-arrow-right"],["mat-raised-button","","color","accent","trans","",1,"edit-layout-button",3,"click"],[1,"category","mat-elevation-z"],["trans",""],[1,"panel-body"],["type","padding",1,"panel-body"],["type","margin",1,"panel-body"],["type","borderWidth",1,"panel-body"],["type","borderRadius","max","30",1,"panel-body"],["svgImage","the-search.svg"],["primary-text","","trans",""],["secondary-text","","trans",""]],template:function(e,t){1&e&&(u.Fc(0,Mt,2,1,"div",0),u.Fc(1,Lt,2,0,"button",1),u.Fc(2,Vt,2,0,"button",1),u.Fc(3,zt,2,0,"button",1),u.Fc(4,Xt,2,0,"button",1),u.Tb(5,"mat-accordion"),u.Fc(6,Gt,5,0,"mat-expansion-panel",2),u.Fc(7,jt,5,0,"mat-expansion-panel",2),u.Fc(8,Jt,5,0,"mat-expansion-panel",2),u.Fc(9,Wt,5,0,"mat-expansion-panel",2),u.Fc(10,Yt,5,0,"mat-expansion-panel",2),u.Fc(11,qt,5,0,"mat-expansion-panel",2),u.Fc(12,Zt,6,0,"mat-expansion-panel",2),u.Fc(13,$t,5,0,"mat-expansion-panel",2),u.Sb(),u.Fc(14,en,5,0,"no-results-message",3)),2&e&&(u.kc("ngIf",t.path.length),u.Bb(1),u.kc("ngIf",t.livePreview.selected.isLayout),u.Bb(1),u.kc("ngIf",t.livePreview.selected.isImage),u.Bb(1),u.kc("ngIf",t.livePreview.selected.isLink),u.Bb(1),u.kc("ngIf",t.livePreview.selected.isIcon),u.Bb(2),u.kc("ngIf",t.canModify("attributes")),u.Bb(1),u.kc("ngIf",t.canModify("background")),u.Bb(1),u.kc("ngIf",t.canModify("shadows")),u.Bb(1),u.kc("ngIf",t.canModify("padding")),u.Bb(1),u.kc("ngIf",t.canModify("margin")),u.Bb(1),u.kc("ngIf",t.canModify("text")),u.Bb(1),u.kc("ngIf",t.canModify("box")),u.Bb(1),u.kc("ngIf",t.canModify("box")),u.Bb(1),u.kc("ngIf",!t.selected.node))},directives:[i.t,Ve.a,i.s,z.a,V.b,ae.a,Ve.c,Ve.e,Ve.f,ct,wt,xt,Ft,It,Dt,Pt.a],styles:["inspector-panel{display:block;overflow:auto}inspector-panel .breadcrumbs{background-color:var(--be-background-alternative);border:1px solid var(--be-divider-default);padding:10px;border-radius:3px;margin-bottom:30px}inspector-panel .breadcrumbs .crumb-container:hover:not(.last) .crumb{text-decoration:underline}inspector-panel .breadcrumbs .crumb-container.last .crumb{color:var(--be-accent-default);pointer-events:none}inspector-panel .breadcrumbs mat-icon{vertical-align:sub;width:15px;height:15px}inspector-panel .edit-layout-button{width:100%;margin-bottom:15px}inspector-panel .mat-expansion-panel .mat-expansion-panel-body{margin:15px}"],encapsulation:2}),e})();function nn(e,t){1&e&&(u.Tb(0,"div",13),u.Hc(1,"This preset is not valid."),u.Sb())}function an(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",10),u.Tb(1,"input",11),u.ac("ngModelChange",(function(t){return u.vc(e),u.ec().customSpan=t}))("ngModelChange",(function(){return u.vc(e),u.ec().selectPresetFromCustomSpan()})),u.Sb(),u.Fc(2,nn,2,0,"div",12),u.Sb()}if(2&e){const e=u.ec();u.Bb(1),u.kc("ngModel",e.customSpan),u.Bb(1),u.kc("ngIf",!e.customPresetIsValid)}}const An=function(){return[12]},rn=function(){return[6,6]},on=function(){return[4,8]},sn=function(){return[8,4]},cn=function(){return[4,4,4]},ln=function(){return[3,3,3,3]},dn=function(){return[2,2,2,2,2,2]};let hn=(()=>{class e{constructor(){this.selected=new u.n,this.customPanelOpen=!1,this.customPresetIsValid=!0}ngOnChanges(){this.customSpan=this.preset.join(" + ")}selectPreset(e){this.selected.emit(e)}selectPresetFromCustomSpan(){const e=this.customSpan.split("+").map(e=>parseInt(e.trim()));this.presetIsValid(e)?(this.selectPreset(e),this.customPresetIsValid=!0):this.customPresetIsValid=!1}toggleCustomPanel(){this.customPanelOpen=!this.customPanelOpen}presetIsActive(e){return this.preset.length===e.length&&this.preset.every((t,n)=>t===e[n])}presetIsValid(e){const t=e.filter(e=>e>0&&e<=12);return t.length&&12===t.reduce((e,t)=>e+t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=u.Hb({type:e,selectors:[["column-presets"]],inputs:{preset:"preset"},outputs:{selected:"selected"},features:[u.zb],decls:31,vars:22,consts:[[1,"preset",3,"click"],[1,"col","col-12"],[1,"col","col-6"],[1,"col","col-4"],[1,"col","col-8"],[1,"col","col-3"],[1,"col","col-2"],[1,"no-style","preset","custom-preset",3,"click"],["trans","",1,"col","col-12"],["class","custom-span-panel input-container",4,"ngIf"],[1,"custom-span-panel","input-container"],["type","text","placeholder","4 + 4 + 4",3,"ngModel","ngModelChange"],["class","error","trans","",4,"ngIf"],["trans","",1,"error"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.ac("click",(function(){return t.selectPreset([12])})),u.Ob(1,"span",1),u.Sb(),u.Tb(2,"div",0),u.ac("click",(function(){return t.selectPreset([6,6])})),u.Ob(3,"div",2),u.Ob(4,"div",2),u.Sb(),u.Tb(5,"div",0),u.ac("click",(function(){return t.selectPreset([4,8])})),u.Ob(6,"div",3),u.Ob(7,"div",4),u.Sb(),u.Tb(8,"div",0),u.ac("click",(function(){return t.selectPreset([8,4])})),u.Ob(9,"div",4),u.Ob(10,"div",3),u.Sb(),u.Tb(11,"div",0),u.ac("click",(function(){return t.selectPreset([4,4,4])})),u.Ob(12,"div",3),u.Ob(13,"div",3),u.Ob(14,"div",3),u.Sb(),u.Tb(15,"div",0),u.ac("click",(function(){return t.selectPreset([3,3,3,3])})),u.Ob(16,"div",5),u.Ob(17,"div",5),u.Ob(18,"div",5),u.Ob(19,"div",5),u.Sb(),u.Tb(20,"div",0),u.ac("click",(function(){return t.selectPreset([2,2,2,2,2,2])})),u.Ob(21,"div",6),u.Ob(22,"div",6),u.Ob(23,"div",6),u.Ob(24,"div",6),u.Ob(25,"div",6),u.Ob(26,"div",6),u.Sb(),u.Tb(27,"button",7),u.ac("click",(function(){return t.toggleCustomPanel()})),u.Tb(28,"span",8),u.Hc(29,"Custom"),u.Sb(),u.Sb(),u.Fc(30,an,3,2,"div",9)),2&e&&(u.Fb("active",t.presetIsActive(u.nc(15,An))),u.Bb(2),u.Fb("active",t.presetIsActive(u.nc(16,rn))),u.Bb(3),u.Fb("active",t.presetIsActive(u.nc(17,on))),u.Bb(3),u.Fb("active",t.presetIsActive(u.nc(18,sn))),u.Bb(3),u.Fb("active",t.presetIsActive(u.nc(19,cn))),u.Bb(4),u.Fb("active",t.presetIsActive(u.nc(20,ln))),u.Bb(5),u.Fb("active",t.presetIsActive(u.nc(21,dn))),u.Bb(10),u.kc("ngIf",t.customPanelOpen))},directives:[ae.a,i.t,L.d,L.u,L.x],styles:["column-presets{display:flex;flex-wrap:wrap;justify-content:space-between;margin:20px 0}column-presets .custom-preset .col{line-height:28px;padding:0 6px;font-weight:500;color:#fff}column-presets .preset{display:flex;height:28px;flex:0 0 calc(25% - 4px);margin-bottom:8px}column-presets .preset.active .col,column-presets .preset:hover .col{opacity:1}column-presets .preset .col{height:100%;margin-right:3px;border-radius:2px;background-color:var(--be-accent-default);opacity:.2;cursor:pointer}column-presets .preset .col-12{width:100%}column-presets .preset .col-8{width:66.6666666667%}column-presets .preset .col-6{width:50%}column-presets .preset .col-4{width:33.3333333333%}column-presets .preset .col-3{width:25%}column-presets .preset .col-2{width:16.6666666667%}column-presets .custom-span-panel{margin-top:5px}column-presets .custom-span-panel input{height:30px;margin:0}column-presets .custom-span-panel .error{margin-top:5px}"],encapsulation:2}),e})();function un(e,t){if(1&e&&(u.Tb(0,"div",19),u.Tb(1,"span",2),u.Hc(2,"Container"),u.Sb(),u.Ob(3,"span",8),u.Tb(4,"span"),u.Hc(5),u.Sb(),u.Sb()),2&e){const e=u.ec().index;u.Bb(3),u.kc("innerHtml","&nbsp",u.wc),u.Bb(2),u.Ic(e+1)}}function pn(e,t){if(1&e&&(u.Tb(0,"div",19),u.Tb(1,"span",2),u.Hc(2,"Row"),u.Sb(),u.Hc(3),u.Sb()),2&e){const e=u.ec().index;u.Bb(3),u.Jc(" ",e+1,"")}}function gn(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",20),u.Tb(1,"div",21),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).layoutPanel.selectRow(n)}))("mouseenter",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).repositionHoverBox(n)}))("mouseleave",(function(){return u.vc(e),u.ec(2).hideHoverBox()})),u.Fc(2,pn,4,1,"div",9),u.Tb(3,"div",22),u.Tb(4,"span",2),u.Hc(5,"Row"),u.Sb(),u.Hc(6),u.Sb(),u.Tb(7,"div",23),u.Tb(8,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).openInspectorPanel(n)})),u.fc(9,"trans"),u.Ob(10,"mat-icon",15),u.Sb(),u.Tb(11,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).cloneRow(n)})),u.fc(12,"trans"),u.Ob(13,"mat-icon",16),u.Sb(),u.Tb(14,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(2).removeItem(n)})),u.fc(15,"trans"),u.Ob(16,"mat-icon",17),u.Sb(),u.Sb(),u.Sb(),u.Tb(17,"button",1),u.ac("click",(function(){u.vc(e);const n=t.$implicit,i=u.ec().$implicit;return u.ec().layoutPanel.createRow(i.node,n,"after")})),u.Tb(18,"span",2),u.Hc(19,"+ ADD ROW"),u.Sb(),u.Sb(),u.Sb()}if(2&e){const e=t.$implicit,n=t.index,i=u.ec(2);u.Bb(1),u.Fb("selected",i.layoutPanel.rowIsSelected(e)),u.Bb(5),u.Jc(" ",n+1,""),u.Bb(2),u.kc("matTooltip",u.gc(9,6,"Modify")),u.Bb(3),u.kc("matTooltip",u.gc(12,8,"Clone")),u.Bb(3),u.kc("matTooltip",u.gc(15,10,"Delete"))}}function fn(e,t){if(1&e&&(u.Tb(0,"div",19),u.Hc(1),u.Sb()),2&e){const e=u.ec().$implicit;u.Bb(1),u.Ic(e.span)}}function bn(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",27),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec(3).layoutPanel.selectColumn(n.node)}))("mouseenter",(function(){u.vc(e);const n=t.$implicit;return u.ec(3).repositionHoverBox(n.node)}))("mouseleave",(function(){return u.vc(e),u.ec(3).hideHoverBox()})),u.Tb(1,"span"),u.Hc(2),u.Sb(),u.Fc(3,fn,2,1,"div",9),u.Sb()}if(2&e){const e=t.$implicit,n=u.ec(3);u.Cc("width",n.widthFromSpan(e.span)),u.Fb("selected",n.isSelected(e.node)),u.kc("id",e.id),u.Bb(2),u.Ic(e.span)}}function mn(e,t){if(1&e){const e=u.Ub();u.Rb(0),u.Tb(1,"column-presets",24),u.ac("selected",(function(t){return u.vc(e),u.ec(2).layoutPanel.applyPreset(t)})),u.Sb(),u.Tb(2,"div",25),u.ac("cdkDropListDropped",(function(t){return u.vc(e),u.ec(2).reorder(t,"column")})),u.Fc(3,bn,4,6,"div",26),u.Sb(),u.Qb()}if(2&e){const e=u.ec(2);u.Bb(1),u.kc("preset",e.layoutPanel.selectedRow.preset),u.Bb(2),u.kc("ngForOf",e.layoutPanel.selectedRow.columns)}}function Bn(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",4),u.Tb(1,"mat-expansion-panel",5),u.ac("opened",(function(){u.vc(e);const n=t.$implicit;return u.ec().onPanelOpen(n)})),u.Tb(2,"mat-expansion-panel-header",6),u.ac("mouseenter",(function(){u.vc(e);const n=t.$implicit;return u.ec().repositionHoverBox(n.node)}))("mouseleave",(function(){return u.vc(e),u.ec().hideHoverBox()})),u.Tb(3,"mat-panel-title",7),u.Tb(4,"span",2),u.Hc(5,"Container"),u.Sb(),u.Ob(6,"span",8),u.Tb(7,"span"),u.Hc(8),u.Sb(),u.Fc(9,un,6,2,"div",9),u.Sb(),u.Sb(),u.Tb(10,"div",10),u.Tb(11,"div",11),u.ac("cdkDropListDropped",(function(t){return u.vc(e),u.ec().reorder(t,"row")})),u.Tb(12,"button",1),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().layoutPanel.createRow(n.node,n.rows[0],"start")})),u.Tb(13,"span",2),u.Hc(14,"+ ADD ROW"),u.Sb(),u.Sb(),u.Fc(15,gn,20,12,"div",12),u.Sb(),u.Fc(16,mn,4,2,"ng-container",13),u.Sb(),u.Tb(17,"mat-action-row"),u.Tb(18,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().openInspectorPanel(n.node)})),u.fc(19,"trans"),u.Ob(20,"mat-icon",15),u.Sb(),u.Tb(21,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().cloneContainer(n)})),u.fc(22,"trans"),u.Ob(23,"mat-icon",16),u.Sb(),u.Tb(24,"button",14),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().removeItem(n.node)})),u.fc(25,"trans"),u.Ob(26,"mat-icon",17),u.Sb(),u.Sb(),u.Sb(),u.Tb(27,"button",18),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().layoutPanel.createContainer(n.node,"after")})),u.Tb(28,"span",2),u.Hc(29,"+ ADD CONTAINER"),u.Sb(),u.Sb(),u.Sb()}if(2&e){const e=t.$implicit,n=t.index,i=u.ec();u.kc("id",e.id),u.Bb(1),u.kc("expanded",i.containerIsSelected(e)),u.Bb(5),u.kc("innerHtml","&nbsp",u.wc),u.Bb(2),u.Ic(n+1),u.Bb(7),u.kc("ngForOf",e.rows),u.Bb(1),u.kc("ngIf",i.layoutPanel.selectedRow),u.Bb(2),u.kc("matTooltip",u.gc(19,9,"Modify")),u.Bb(3),u.kc("matTooltip",u.gc(22,11,"Clone")),u.Bb(3),u.kc("matTooltip",u.gc(25,13,"Delete"))}}let wn=(()=>{class e{constructor(e,t,n,i,a,A,r){this.builderDocument=e,this.selectedElement=t,this.contextBoxes=n,this.layoutPanel=i,this.inspector=a,this.livePreview=A,this.undoManager=r}ngOnInit(){this.builderDocument.contentChanged.subscribe(e=>{this.inspector.activePanelIs("layout")&&this.layoutPanel.loadContainers()}),this.inspector.panelChanged.subscribe(e=>{"layout"===e&&this.layoutPanel.loadContainers()})}openInspectorPanel(e){this.selectedElement.selectNode(e),this.inspector.togglePanel("inspector")}cloneContainer(e){const t=this.builderDocument.actions.cloneNode(e.node);this.layoutPanel.selectContainer(t)}cloneRow(e){const t=this.builderDocument.actions.cloneNode(e);this.layoutPanel.selectRow(t,!0)}removeItem(e){this.builderDocument.actions.removeNode(e)}repositionHoverBox(e){this.contextBoxes.repositionBox("hover",e)}hideHoverBox(){this.contextBoxes.hideBox("hover")}containerIsSelected(e){return!!this.layoutPanel.selectedContainer&&this.layoutPanel.selectedContainer.node===e.node}onPanelOpen(e){this.layoutPanel.selectedContainer=e,e.rows.length&&this.layoutPanel.selectRow(e.rows[0])}isSelected(e){return this.selectedElement.node===e}widthFromSpan(e){return 100*e/12+"%"}reorder(e,t){const n=this.getNodeList(t),i=n.slice();Object(M.f)(i,e.previousIndex,e.currentIndex),m.a.reorderDom(i,n),this.livePreview.repositionBox("selected"),this.builderDocument.contentChanged.next("builder"),this.createUndoCommand(n,i)}getNodeList(e){switch(e){case"container":return this.layoutPanel.containers.map(e=>e.node);case"row":return this.layoutPanel.selectedContainer.rows;case"column":return this.layoutPanel.selectedRow.columns.map(e=>e.node)}}createUndoCommand(e,t){this.undoManager.add("generic",{undo:()=>{m.a.reorderDom(e,t),this.livePreview.repositionBox("selected")},redo:()=>{m.a.reorderDom(t,e),this.livePreview.repositionBox("selected")}})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_),u.Nb(y),u.Nb(x),u.Nb(Ie),u.Nb(Me),u.Nb(_e),u.Nb(v))},e.\u0275cmp=u.Hb({type:e,selectors:[["layout-panel"]],decls:5,vars:1,consts:[["cdkDropList","",1,"containers",3,"cdkDropListDropped"],[1,"no-style","add-item-button",3,"click"],["trans",""],["class","container-drag-wrapper","cdkDrag","",3,"id",4,"ngFor","ngForOf"],["cdkDrag","",1,"container-drag-wrapper",3,"id"],[1,"container-panel","mat-elevation-z",3,"expanded","opened"],["cdkDragHandle","",1,"drag-handle",3,"mouseenter","mouseleave"],[1,"name"],[3,"innerHtml"],["class","layout-drag-preview",4,"cdkDragPreview"],[1,"container-config"],["cdkDropList","",1,"rows",3,"cdkDropListDropped"],["class","row-drag-wrapper","cdkDrag","",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"no-style",3,"matTooltip","click"],["svgIcon","edit"],["svgIcon","file-copy"],["svgIcon","delete"],[1,"no-style","add-item-button","hide-text",3,"click"],[1,"layout-drag-preview"],["cdkDrag","",1,"row-drag-wrapper"],["cdkDragHandle","",1,"row","drag-handle",3,"click","mouseenter","mouseleave"],[1,"row-name"],[1,"row-actions"],[3,"preset","selected"],["cdkDropList","","cdkDropListOrientation","horizontal",1,"current-columns",3,"cdkDropListDropped"],["class","column column-helper column-drag-wrapper drag-handle","cdkDrag","",3,"width","id","selected","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["cdkDrag","",1,"column","column-helper","column-drag-wrapper","drag-handle",3,"id","click","mouseenter","mouseleave"]],template:function(e,t){1&e&&(u.Tb(0,"mat-accordion",0),u.ac("cdkDropListDropped",(function(e){return t.reorder(e,"container")})),u.Tb(1,"button",1),u.ac("click",(function(){return t.layoutPanel.createContainer(null,"start")})),u.Tb(2,"span",2),u.Hc(3,"+ ADD CONTAINER"),u.Sb(),u.Sb(),u.Fc(4,Bn,30,15,"div",3),u.Sb()),2&e&&(u.Bb(4),u.kc("ngForOf",t.layoutPanel.containers))},directives:[Ve.a,M.d,ae.a,i.s,M.a,Ve.c,Ve.e,M.b,Ve.f,M.c,i.t,Ve.d,ie.a,z.a,hn],pipes:[Ae.a],styles:['.layout-drag-preview{background:var(--be-background);padding:10px;border-radius:4px;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}layout-panel{display:block}layout-panel .cdk-drag-placeholder{opacity:0}layout-panel .cdk-drag-animating,layout-panel .cdk-drop-list-dragging .cdk-drag:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}layout-panel .container-config{padding:10px}layout-panel .mat-action-row,layout-panel .row-actions{padding:0}layout-panel .mat-action-row button,layout-panel .row-actions button{margin-left:-1px;padding:10px;border-left:1px solid var(--be-divider-default);color:var(--be-secondary-text);cursor:pointer}layout-panel .add-item-button{display:block;position:relative;height:11px;width:100%;margin:5px 0;font-size:1rem;font-weight:500;text-align:center;background-color:var(--be-background-alternative)}layout-panel .add-item-button.hide-text>span{display:none}layout-panel .add-item-button:hover>span{display:inline-block;color:var(--be-text)}layout-panel .add-item-button>span{position:relative;z-index:1;color:var(--be-secondary-text);background-color:inherit}layout-panel .add-item-button:before{display:block;content:"";position:absolute;top:5px;left:0;width:100%;border:1px dashed var(--be-divider-default);z-index:0}layout-panel .rows .row{display:flex;align-items:center;background-color:var(--be-raised-button);border:1px solid var(--be-divider-default);margin-bottom:5px;cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}layout-panel .rows .row .row-name{padding:10px 0 10px 10px}layout-panel .rows .row .row-actions{margin-left:auto}layout-panel .rows .row .row-actions button .mat-icon{width:16px;height:16px}layout-panel .rows .row.selected{border-color:var(--be-accent-default)}layout-panel .rows .add-item-button{background-color:var(--be-background)}layout-panel .current-columns{display:flex;margin-top:10px}layout-panel .current-columns .column{background-color:var(--be-raised-button);border:1px solid var(--be-divider-default);margin:0 0 0 -1px;padding:10px 0;text-align:center;cursor:ew-resize;position:relative}layout-panel .current-columns .column.selected{border-color:var(--be-accent-default);z-index:1}layout-panel .current-columns .column:hover{background-color:var(--be-hover)}'],encapsulation:2}),e})();var vn=n("XPQg");function Cn(e,t){if(1&e&&(u.Tb(0,"option",21),u.Hc(1),u.Sb()),2&e){const e=t.$implicit;u.kc("value",e.name),u.Bb(1),u.Ic(e.name)}}let En=(()=>{class e{constructor(e,t,n,i,a){this.activeProject=e,this.projects=t,this.toast=n,this.builderDocument=i,this.fb=a,this.loading$=new r.a(!1),this.activePageControl=new L.i("index"),this.pageForm=this.fb.group({name:[""],title:[""],description:[""],keywords:[""]})}ngOnInit(){this.builderDocument.loaded$.subscribe(()=>{this.activePageControl.valueChanges.subscribe(e=>{e!==this.activeProject.activePage$.value.name&&(this.activeProject.setActivePage(e),this.activeProject.updateBuilderDocument())}),this.activeProject.activePage$.subscribe(e=>{e&&(this.activePageControl.setValue(e.name),this.hydrateUpdateModel())})})}createNewPage(){this.loading$.next(!0);let e="page-"+(this.activeProject.pages$.value.length+1);this.activeProject.pages$.value.find(t=>t.name===e)&&(e+="-copy"),this.activeProject.addPage({name:e,html:Object(h.a)(vn.a)}).subscribe(()=>{this.hydrateUpdateModel(),this.activeProject.save().subscribe(()=>{this.activePageControl.setValue(this.activeProject.activePage$.value.name),this.loading$.next(!1),this.toast.open("Page created")})})}canDeleteSelectedPage(){var e,t;return"index"!==(null===(t=null===(e=this.activeProject.activePage$.value)||void 0===e?void 0:e.name)||void 0===t?void 0:t.toLowerCase())&&this.activeProject.pages$.value.length>1}updateSelectedPage(){this.loading$.next(!0);const e=this.pageForm.getRawValue();this.builderDocument.setMetaTagValue("keywords",e.keywords),this.builderDocument.setTitleValue(e.title),this.builderDocument.setMetaTagValue("description",e.description),this.builderDocument.contentChanged.next("builder");const t=Object.assign(Object.assign({},e),{html:this.builderDocument.getOuterHtml()});this.activeProject.updatePage(this.activeProject.activePage$.value.name,t).save({thumbnail:!1}).subscribe(()=>{this.loading$.next(!1),this.toast.open("Page updated")})}deleteSelectedPage(){this.loading$.next(!0),this.activeProject.removePage(this.activeProject.activePage$.value),this.activeProject.save({thumbnail:!1}).subscribe(()=>{this.loading$.next(!1),this.toast.open("Page deleted")})}duplicateSelectedPage(){this.loading$.next(!0),this.activeProject.addPage({name:this.activeProject.activePage$.value.name+"-copy",html:this.builderDocument.getOuterHtml()}),this.activeProject.save({thumbnail:!1}).subscribe(()=>{this.loading$.next(!1),this.toast.open("Page duplicated")})}hydrateUpdateModel(){const e=this.activeProject.activePage$.value.name;this.pageForm.patchValue({name:e,title:this.builderDocument.getTitleValue(),description:this.builderDocument.getMetaTagValue("description"),keywords:this.builderDocument.getMetaTagValue("keywords")}),"index"===e?this.pageForm.get("name").disable():this.pageForm.get("name").enable()}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(D),u.Nb(N.a),u.Nb(O.b),u.Nb(_),u.Nb(L.h))},e.\u0275cmp=u.Hb({type:e,selectors:[["pages-panel"]],decls:44,vars:20,consts:[["mat-raised-button","","color","accent",1,"new-page-button",3,"disabled","click"],["svgIcon","add"],["trans",""],[1,"content-panel"],["trans","",1,"header"],[1,"input-container"],["name","active-page","id","active-page",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[1,"active-page-actions"],["mat-button","","color","warn","trans","",3,"disabled","matTooltip","click"],["mat-button","","color","accent","trans","",3,"disabled","matTooltip","click"],["ngNativeValidate","",1,"page-options","many-inputs","content-panel",3,"formGroup","ngSubmit"],["for","selected-page-name","trans",""],["type","text","name","selected-page-name","id","selected-page-name","formControlName","name","required",""],["for","selected-page-title","trans",""],["type","text","name","selected-page-title","id","selected-page-title","formControlName","title"],["for","selected-page-description","trans",""],["type","text","name","selected-page-description","id","selected-page-description","formControlName","description"],["for","selected-page-keywords","trans",""],["type","text","name","selected-page-keywords","id","selected-page-keywords","formControlName","keywords"],["type","submit","mat-raised-button","","color","accent","trans",""],[3,"value"]],template:function(e,t){1&e&&(u.Tb(0,"button",0),u.ac("click",(function(){return t.createNewPage()})),u.fc(1,"async"),u.Ob(2,"mat-icon",1),u.Tb(3,"span",2),u.Hc(4,"New Page"),u.Sb(),u.Sb(),u.Tb(5,"div",3),u.Tb(6,"div",4),u.Hc(7,"Active Page"),u.Sb(),u.Tb(8,"div",5),u.Tb(9,"select",6),u.Fc(10,Cn,2,2,"option",7),u.fc(11,"async"),u.Sb(),u.Sb(),u.Tb(12,"div",8),u.Tb(13,"button",9),u.ac("click",(function(){return t.deleteSelectedPage()})),u.fc(14,"async"),u.fc(15,"trans"),u.Hc(16,"Delete"),u.Sb(),u.Tb(17,"button",10),u.ac("click",(function(){return t.duplicateSelectedPage()})),u.fc(18,"async"),u.fc(19,"trans"),u.Hc(20,"Duplicate"),u.Sb(),u.Sb(),u.Sb(),u.Tb(21,"form",11),u.ac("ngSubmit",(function(){return t.updateSelectedPage()})),u.Tb(22,"div",4),u.Hc(23,"Page SEO Options"),u.Sb(),u.Tb(24,"div",5),u.Tb(25,"label",12),u.Hc(26,"Page Name"),u.Sb(),u.Ob(27,"input",13),u.Sb(),u.Tb(28,"div",5),u.Tb(29,"label",14),u.Hc(30,"Page Title"),u.Sb(),u.Ob(31,"input",15),u.Sb(),u.Tb(32,"div",5),u.Tb(33,"label",16),u.Hc(34,"Page Description"),u.Sb(),u.Ob(35,"textarea",17),u.Sb(),u.Tb(36,"div",5),u.Tb(37,"label",18),u.Hc(38,"Page Keywords"),u.Sb(),u.Ob(39,"input",19),u.Tb(40,"p",2),u.Hc(41,"Separate each one with a comma."),u.Sb(),u.Sb(),u.Tb(42,"button",20),u.Hc(43,"Update"),u.Sb(),u.Sb()),2&e&&(u.kc("disabled",u.gc(1,8,t.loading$)),u.Bb(9),u.kc("formControl",t.activePageControl),u.Bb(1),u.kc("ngForOf",u.gc(11,10,t.activeProject.pages$)),u.Bb(3),u.kc("disabled",!t.canDeleteSelectedPage()||u.gc(14,12,t.loading$))("matTooltip",u.gc(15,14,"Delete")),u.Bb(4),u.kc("disabled",u.gc(18,16,t.loading$))("matTooltip",u.gc(19,18,"Duplicate")),u.Bb(4),u.kc("formGroup",t.pageForm))},directives:[V.b,z.a,ae.a,L.G,L.u,L.j,i.s,ie.a,L.v,L.m,L.d,L.k,L.F,L.z,L.J],pipes:[i.b,Ae.a],styles:["pages-panel{display:block}pages-panel .active-page-actions{color:var(--be-secondary-text);text-align:right}pages-panel .new-page-button{width:100%;height:45px;margin-bottom:15px}"],encapsulation:2,changeDetection:0}),e})();var Qn=n("rDax"),xn=n("1jcm");function yn(e,t){if(1&e&&(u.Tb(0,"span"),u.Hc(1),u.Sb()),2&e){const e=u.ec();u.Bb(1),u.Ic(e.activeProject.activeTemplate.name)}}function Un(e,t){1&e&&(u.Tb(0,"span",12),u.Hc(1,"None"),u.Sb())}function Fn(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",2),u.Tb(1,"div",3),u.Hc(2,"Theme"),u.Sb(),u.Tb(3,"div",4),u.Tb(4,"div",5),u.ac("click",(function(){return u.vc(e),u.ec().openThemesPanel()})),u.Hc(5),u.Sb(),u.Tb(6,"button",8),u.ac("click",(function(){return u.vc(e),u.ec().openThemesPanel()})),u.Hc(7,"Change"),u.Sb(),u.Sb(),u.Sb()}if(2&e){const e=u.ec();var n;u.Bb(5),u.Ic((null==(n=e.activeProject.get())||null==n.model?null:n.model.theme)||"None")}}let kn=(()=>{class e{constructor(e,t,n,i,a){this.overlay=e,this.inspector=t,this.activeProject=n,this.inspectorDrawer=i,this.localStorage=a}ngOnInit(){this.hydrateModels()}openTemplatesPanel(){this.inspectorDrawer.toggle("templates")}openThemesPanel(){this.inspectorDrawer.toggle("themes")}updateSettings(){for(const e in this.settings)this.localStorage.set("settings."+e,this.settings[e])}hydrateModels(){this.settings={hoverBoxEnabled:this.localStorage.get("settings.hoverBoxEnabled",!0),selectedBoxEnabled:this.localStorage.get("settings.selectedBoxEnabled",!0),autoSave:this.localStorage.get("settings.autoSave",!1)}}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(Qn.a),u.Nb(Me),u.Nb(D),u.Nb(Re),u.Nb(Q.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["settings-panel"]],decls:31,vars:6,consts:[[1,"content-panel","many-inputs"],["trans","",1,"header"],[1,"input-container"],["trans","",1,"fake-label"],[1,"box"],[1,"fake-input",3,"click"],[4,"ngIf"],["trans","",4,"ngIf"],["mat-raised-button","","color","accent","trans","",3,"click"],["class","input-container",4,"ngIf"],[1,"setting-container"],["color","accent","trans","",3,"ngModel","ngModelChange"],["trans",""]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Hc(2,"Project Settings"),u.Sb(),u.Tb(3,"div",2),u.Tb(4,"div",3),u.Hc(5,"Template"),u.Sb(),u.Tb(6,"div",4),u.Tb(7,"div",5),u.ac("click",(function(){return t.openTemplatesPanel()})),u.Fc(8,yn,2,1,"span",6),u.Fc(9,Un,2,0,"span",7),u.Sb(),u.Tb(10,"button",8),u.ac("click",(function(){return t.openTemplatesPanel()})),u.Hc(11,"Change"),u.Sb(),u.Sb(),u.Sb(),u.Fc(12,Fn,8,1,"div",9),u.Sb(),u.Tb(13,"div",0),u.Tb(14,"div",1),u.Hc(15,"Builder Settings"),u.Sb(),u.Tb(16,"div",10),u.Tb(17,"mat-slide-toggle",11),u.ac("ngModelChange",(function(e){return t.settings.autoSave=e}))("ngModelChange",(function(){return t.updateSettings()})),u.Hc(18,"Auto Save"),u.Sb(),u.Tb(19,"p",12),u.Hc(20,"Toggle auto saving of project when changes are made in the builder."),u.Sb(),u.Sb(),u.Tb(21,"div",10),u.Tb(22,"mat-slide-toggle",11),u.ac("ngModelChange",(function(e){return t.settings.hoverBoxEnabled=e}))("ngModelChange",(function(){return t.updateSettings()})),u.Hc(23,"Hover Box"),u.Sb(),u.Tb(24,"p",12),u.Hc(25,"Toggle visibility of box that appears when hovering over elements in the builder."),u.Sb(),u.Sb(),u.Tb(26,"div",10),u.Tb(27,"mat-slide-toggle",11),u.ac("ngModelChange",(function(e){return t.settings.selectedBoxEnabled=e}))("ngModelChange",(function(){return t.updateSettings()})),u.Hc(28,"Selected Box"),u.Sb(),u.Tb(29,"p",12),u.Hc(30,"Toggle visibility of box that appears when clicking on element in the builder."),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(8),u.kc("ngIf",t.activeProject.activeTemplate),u.Bb(1),u.kc("ngIf",!t.activeProject.activeTemplate),u.Bb(3),u.kc("ngIf",!t.activeProject.activeTemplate),u.Bb(5),u.kc("ngModel",t.settings.autoSave),u.Bb(5),u.kc("ngModel",t.settings.hoverBoxEnabled),u.Bb(5),u.kc("ngModel",t.settings.selectedBoxEnabled))},directives:[ae.a,i.t,V.b,xn.a,L.u,L.x],styles:["settings-panel{display:block;width:100%;height:100%}settings-panel .input-container .fake-label{color:inherit;padding-bottom:5px}settings-panel .input-container .box{display:flex}settings-panel .input-container .box .fake-input{flex:1 1 auto;margin-right:5px;height:38px;background-color:var(--be-background);border:1px solid var(--be-divider-default);padding:0 10px;color:inherit;line-height:38px;cursor:pointer;text-transform:capitalize}settings-panel .input-container .box .mat-raised-button{flex-shrink:0}settings-panel .setting-container p{color:var(--be-secondary-text)}"],encapsulation:2}),e})();const Hn=["tabs"];function Sn(e,t){1&e&&u.Ob(0,"mat-icon",4)}function _n(e,t){1&e&&u.Ob(0,"mat-icon",7)}function Tn(e,t){1&e&&u.Ob(0,"mat-icon",8)}function Nn(e,t){1&e&&u.Ob(0,"mat-icon",9)}let In=(()=>{class e{constructor(e,t){this.livePreview=e,this.contextBoxes=t,this.visible=!1,this.selectedIndex=3}toggleVisibility(){this.visible=!this.visible}switchDevice(e){this.selectedIndex=e.index,this.livePreview.setWidth(this.getWidthFromIndex(e.index)),this.contextBoxes.hideBoxes()}getWidthFromIndex(e){switch(e){case 0:return"phone";case 1:return"tablet";case 2:return"laptop";case 3:return"desktop"}}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(x))},e.\u0275cmp=u.Hb({type:e,selectors:[["device-switcher"]],viewQuery:function(e,t){var n;1&e&&u.Bc(Hn,!0),2&e&&u.rc(n=u.bc())&&(t.tabs=n.first)},hostVars:1,hostBindings:function(e,t){2&e&&u.Ec("@toggleAnimation",t.visible)},decls:34,vars:2,consts:[["color","accent",3,"dynamicHeight","selectedIndex","selectedTabChange"],["tabs",""],["mat-tab-label",""],[1,"device-description"],["svgIcon","phone-android"],["trans","",1,"name"],[1,"size"],["svgIcon","tablet-android"],["svgIcon","laptop-chromebook"],["svgIcon","desktop-windows"]],template:function(e,t){1&e&&(u.Tb(0,"mat-tab-group",0,1),u.ac("selectedTabChange",(function(e){return t.switchDevice(e)})),u.Tb(2,"mat-tab"),u.Fc(3,Sn,1,0,"ng-template",2),u.Tb(4,"div",3),u.Ob(5,"mat-icon",4),u.Tb(6,"div",5),u.Hc(7,"Phone"),u.Sb(),u.Tb(8,"div",6),u.Hc(9,"768px and Smaller"),u.Sb(),u.Sb(),u.Sb(),u.Tb(10,"mat-tab"),u.Fc(11,_n,1,0,"ng-template",2),u.Tb(12,"div",3),u.Ob(13,"mat-icon",7),u.Tb(14,"div",5),u.Hc(15,"Tablet"),u.Sb(),u.Tb(16,"div",6),u.Hc(17,"768px - 992px"),u.Sb(),u.Sb(),u.Sb(),u.Tb(18,"mat-tab"),u.Fc(19,Tn,1,0,"ng-template",2),u.Tb(20,"div",3),u.Ob(21,"mat-icon",8),u.Tb(22,"div",5),u.Hc(23,"Laptop"),u.Sb(),u.Tb(24,"div",6),u.Hc(25,"992px - 1200px"),u.Sb(),u.Sb(),u.Sb(),u.Tb(26,"mat-tab"),u.Fc(27,Nn,1,0,"ng-template",2),u.Tb(28,"div",3),u.Ob(29,"mat-icon",9),u.Tb(30,"div",5),u.Hc(31,"Desktop"),u.Sb(),u.Tb(32,"div",6),u.Hc(33,"1200px and Larger"),u.Sb(),u.Sb(),u.Sb(),u.Sb()),2&e&&u.kc("dynamicHeight",!0)("selectedIndex",t.selectedIndex)},directives:[ve.c,ve.a,ve.d,z.a,ae.a],styles:["device-switcher{display:block;width:100%;overflow:hidden;position:absolute;left:0;bottom:50px;background-color:var(--be-background);box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}device-switcher .device-description{display:flex;flex-direction:column;justify-content:center;align-items:center;height:155px;background-color:var(--be-background-alternative)}device-switcher .device-description .mat-icon{width:45px;height:45px;margin-bottom:10px}device-switcher .mat-tab-label{min-width:25%}@media screen and (max-width:480px){device-switcher .mat-tab-label:first-child{pointer-events:none;color:var(--be-secondary-text)}}@media screen and (max-width:767px){device-switcher .mat-tab-label:nth-child(2){pointer-events:none;color:var(--be-secondary-text)}}@media screen and (max-width:991px){device-switcher .mat-tab-label:nth-child(3){pointer-events:none;color:var(--be-secondary-text)}}@media screen and (max-width:1199px){device-switcher .mat-tab-label:nth-child(4){pointer-events:none;color:var(--be-secondary-text)}}"],encapsulation:2,data:{animation:[Object(ue.m)("toggleAnimation",[Object(ue.j)("false",Object(ue.k)({height:"0px",visibility:"hidden"})),Object(ue.j)("true",Object(ue.k)({height:"*",visibility:"visible"})),Object(ue.l)("true <=> false",Object(ue.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])]}}),e})();var On=n("bv9b");const Dn=["deviceSwitcher"];function Pn(e,t){1&e&&u.Ob(0,"mat-progress-bar",28)}let Rn=(()=>{class e{constructor(e,t,n,i,a,A,r,o,s,c,l){this.inspector=e,this.undoManager=t,this.codeEditor=n,this.projects=i,this.activeProject=a,this.toast=A,this.el=r,this.settings=o,this.contextBoxes=s,this.modal=c,this.currentUser=l}ngOnInit(){this.codeEditor.setOrigin(this.el),this.inspector.elementRef=this.el,this.el.nativeElement.addEventListener("mouseenter",e=>{this.contextBoxes.hideBox("hover")})}toggleCodeEditor(){this.codeEditor.toggle()}saveProject(){this.activeProject.save().subscribe(()=>{this.toast.open("Project saved")})}openPublishProjectModal(){this.modal.open(Le.a,{project:this.activeProject.get().model})}openPreview(){const e=window.open("loading","_blank");this.activeProject.save().subscribe(()=>{let t=this.activeProject.getSiteUrl();const n=this.activeProject.activePage$.value;n&&n.name&&"index"!==n.name&&(t+="/"+n.name),e.location.replace(t)})}toggleDeviceSwitcher(){this.deviceSwitcher.toggleVisibility()}downloadProject(){this.activeProject.save({thumbnail:!1}).subscribe(()=>{!function(e,t){const n=document.createElement("a");n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}(this.settings.getBaseUrl(!0)+"secure/projects/"+this.activeProject.get().model.id+"/download")})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(Me),u.Nb(v),u.Nb(Y),u.Nb(N.a),u.Nb(D),u.Nb(O.b),u.Nb(u.l),u.Nb(p.a),u.Nb(x),u.Nb(Ne.a),u.Nb(ge.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["inspector"]],viewQuery:function(e,t){var n;1&e&&u.Bc(Dn,!0),2&e&&u.rc(n=u.bc())&&(t.deviceSwitcher=n.first)},decls:64,vars:46,consts:[[1,"inspector-nav","mat-elevation-z3"],["routerLink","/dashboard",1,"back-button",3,"matTooltip"],["svgIcon","keyboard-arrow-left"],[1,"panel-nav"],["mat-button","",1,"panel-nav-item",3,"click"],["svgIcon","web-design-custom"],["trans","",1,"name"],["svgIcon","puzzle-custom"],["svgIcon","brush-custom"],["svgIcon","documents-custom"],["svgIcon","settings-custom"],["mat-button","",1,"panel-nav-item",3,"disabled","click"],["svgIcon","source-code-custom"],[1,"panel-nav","undo-nav"],["svgIcon","undo"],["svgIcon","redo"],[1,"inspector-content"],[1,"panel-container"],["deviceSwitcher",""],[1,"actions"],["mode","indeterminate","color","accent",4,"ngIf"],["mat-button","",3,"disabled","matTooltip","click"],["svgIcon","visibility"],["svgIcon","file-download"],["svgIcon","publish"],["mat-button","",3,"matTooltip","click"],["svgIcon","phone-android"],["svgIcon","save"],["mode","indeterminate","color","accent"]],template:function(e,t){1&e&&(u.Tb(0,"nav",0),u.Tb(1,"a",1),u.fc(2,"trans"),u.Ob(3,"mat-icon",2),u.Sb(),u.Tb(4,"div",3),u.Tb(5,"button",4),u.ac("click",(function(){return t.inspector.togglePanel("layout")})),u.Ob(6,"mat-icon",5),u.Tb(7,"span",6),u.Hc(8,"Layout"),u.Sb(),u.Sb(),u.Tb(9,"button",4),u.ac("click",(function(){return t.inspector.togglePanel("elements")})),u.Ob(10,"mat-icon",7),u.Tb(11,"span",6),u.Hc(12,"Elements"),u.Sb(),u.Sb(),u.Tb(13,"button",4),u.ac("click",(function(){return t.inspector.togglePanel("inspector")})),u.Ob(14,"mat-icon",8),u.Tb(15,"span",6),u.Hc(16,"Inspector"),u.Sb(),u.Sb(),u.Tb(17,"button",4),u.ac("click",(function(){return t.inspector.togglePanel("pages")})),u.Ob(18,"mat-icon",9),u.Tb(19,"span",6),u.Hc(20,"Pages"),u.Sb(),u.Sb(),u.Tb(21,"button",4),u.ac("click",(function(){return t.inspector.togglePanel("settings")})),u.Ob(22,"mat-icon",10),u.Tb(23,"span",6),u.Hc(24,"Settings"),u.Sb(),u.Sb(),u.Tb(25,"button",11),u.ac("click",(function(){return t.toggleCodeEditor()})),u.Ob(26,"mat-icon",12),u.Tb(27,"span",6),u.Hc(28,"Code Edtr"),u.Sb(),u.Sb(),u.Sb(),u.Tb(29,"div",13),u.Tb(30,"button",11),u.ac("click",(function(){return t.undoManager.undo()})),u.Ob(31,"mat-icon",14),u.Tb(32,"span",6),u.Hc(33,"Undo"),u.Sb(),u.Sb(),u.Tb(34,"button",11),u.ac("click",(function(){return t.undoManager.redo()})),u.Ob(35,"mat-icon",15),u.Tb(36,"span",6),u.Hc(37,"Redo"),u.Sb(),u.Sb(),u.Sb(),u.Sb(),u.Tb(38,"div",16),u.Tb(39,"div",17),u.Ob(40,"elements-panel"),u.Ob(41,"inspector-panel"),u.Ob(42,"layout-panel"),u.Ob(43,"pages-panel"),u.Ob(44,"settings-panel"),u.Sb(),u.Ob(45,"device-switcher",null,18),u.Tb(47,"div",19),u.Fc(48,Pn,1,0,"mat-progress-bar",20),u.Tb(49,"button",21),u.ac("click",(function(){return t.openPreview()})),u.fc(50,"trans"),u.Ob(51,"mat-icon",22),u.Sb(),u.Tb(52,"button",21),u.ac("click",(function(){return t.downloadProject()})),u.fc(53,"trans"),u.Ob(54,"mat-icon",23),u.Sb(),u.Tb(55,"button",21),u.ac("click",(function(){return t.openPublishProjectModal()})),u.fc(56,"trans"),u.Ob(57,"mat-icon",24),u.Sb(),u.Tb(58,"button",25),u.ac("click",(function(){return t.toggleDeviceSwitcher()})),u.fc(59,"trans"),u.Ob(60,"mat-icon",26),u.Sb(),u.Tb(61,"button",21),u.ac("click",(function(){return t.saveProject()})),u.fc(62,"trans"),u.Ob(63,"mat-icon",27),u.Sb(),u.Sb(),u.Sb()),2&e&&(u.Bb(1),u.kc("matTooltip",u.gc(2,34,"Dashboard")),u.Bb(4),u.Fb("active",t.inspector.activePanelIs("layout")),u.Bb(4),u.Fb("active",t.inspector.activePanelIs("elements")),u.Bb(4),u.Fb("active",t.inspector.activePanelIs("inspector")),u.Bb(4),u.Fb("active",t.inspector.activePanelIs("pages")),u.Bb(4),u.Fb("active",t.inspector.activePanelIs("settings")),u.Bb(4),u.kc("disabled",!t.currentUser.hasPermission("editors.enable")),u.Bb(5),u.kc("disabled",!t.undoManager.canUndo()),u.Bb(4),u.kc("disabled",!t.undoManager.canRedo()),u.Bb(6),u.Fb("hidden",!t.inspector.activePanelIs("elements")),u.Bb(1),u.Fb("hidden",!t.inspector.activePanelIs("inspector")),u.Bb(1),u.Fb("hidden",!t.inspector.activePanelIs("layout")),u.Bb(1),u.Fb("hidden",!t.inspector.activePanelIs("pages")),u.Bb(1),u.Fb("hidden",!t.inspector.activePanelIs("settings")),u.Bb(4),u.kc("ngIf",t.activeProject.saving),u.Bb(1),u.kc("disabled",t.activeProject.saving)("matTooltip",u.gc(50,36,"Preview")),u.Bb(3),u.kc("disabled",!t.currentUser.hasPermission("projects.download"))("matTooltip",u.gc(53,38,"Download")),u.Bb(3),u.kc("disabled",!t.currentUser.hasPermission("projects.publish"))("matTooltip",u.gc(56,40,"Publish")),u.Bb(3),u.kc("matTooltip",u.gc(59,42,"Change device")),u.Bb(3),u.kc("disabled",t.activeProject.saving)("matTooltip",u.gc(62,44,"Save project")))},directives:[a.g,ie.a,z.a,V.b,ae.a,qe,tn,wn,En,kn,In,i.t,On.a],pipes:[Ae.a],styles:["inspector{display:flex;position:relative;z-index:3;box-shadow:1px 0 2px rgba(0,0,0,.5);overflow:hidden;width:380px;height:100%;flex-shrink:0}@media screen and (max-width:768px){inspector{width:100%;position:absolute;top:0;left:0}}inspector .mat-expansion-panel{margin-bottom:10px;border:1px solid var(--be-divider-default)}inspector .mat-expansion-panel.mat-expanded{background-color:var(--be-background)}inspector .mat-expansion-panel.mat-expanded .mat-expansion-panel-header{border-bottom:1px solid var(--be-divider-default);background-color:var(--be-raised-button);border-bottom-left-radius:0;border-bottom-right-radius:0}inspector .mat-expansion-panel .mat-expansion-panel-header{background-color:var(--be-background);overflow:hidden}inspector .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-panel-header-title{color:inherit;font-weight:500;text-transform:capitalize;font-size:1.4rem}inspector .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator{padding-bottom:5px}inspector .mat-expansion-panel .mat-expansion-panel-header .mat-expansion-indicator:after{color:inherit}inspector .mat-expansion-panel .mat-expansion-panel-body{margin:8px;padding:0;overflow:hidden}inspector .input-container input,inspector .input-container select,inspector .input-container textarea{display:block;width:100%;margin:0 0 5px;border-color:var(--be-divider-default);background-color:var(--be-background);color:inherit}inspector .inspector-nav{position:relative;z-index:2;width:70px;flex:0 0 70px;height:100%;background-color:var(--be-background);color:var(--be-secondary-text);text-align:center;padding:20px 0}inspector .inspector-nav .back-button{color:inherit}inspector .inspector-nav .panel-nav{margin-top:50px}inspector .inspector-nav .panel-nav .panel-nav-item{cursor:pointer;display:block;width:100%;text-align:center;margin-bottom:10px;padding:12px 0;min-width:0;line-height:normal}inspector .inspector-nav .panel-nav .panel-nav-item[disabled]{color:var(--be-hint-text);cursor:auto}inspector .inspector-nav .panel-nav .panel-nav-item.active{color:var(--be-accent-default)}inspector .inspector-nav .panel-nav .panel-nav-item:hover:not([disabled]):not(.active){background-color:var(--be-hover)}inspector .inspector-nav .panel-nav .panel-nav-item .mat-button-focus-overlay{background-color:transparent}inspector .inspector-nav .panel-nav .panel-nav-item mat-icon{display:inline-block;width:30px;height:30px}inspector .inspector-nav .panel-nav .panel-nav-item .name{display:block;font-size:1.1rem;font-weight:700;letter-spacing:.5px;margin-top:5px}@media screen and (max-height:600px){inspector .inspector-nav .panel-nav{margin-top:10px}inspector .inspector-nav .panel-nav .panel-nav-item{padding:8px 0}inspector .inspector-nav .panel-nav .mat-icon{width:20px;height:20px}}inspector .inspector-nav>.undo-nav{position:absolute;bottom:15px;width:100%}@media screen and (max-height:800px){inspector .inspector-nav>.undo-nav{display:none}}inspector .inspector-nav>.undo-nav .panel-nav-item{padding:5px 0}inspector .inspector-nav>.undo-nav .panel-nav-item .name{font-size:1rem}inspector .inspector-nav .back-button .mat-icon{color:inherit;width:50px;height:50px}inspector .inspector-content{flex:1 1 auto;height:100%;color:var(--be-secondary-text);position:relative;min-width:0}inspector .inspector-content .panel-container{position:relative;height:calc(100% - 50px);padding:15px;background-color:var(--be-background-alternative);overflow:auto}inspector .inspector-content .actions{display:flex;align-items:center;position:relative;border-top:1px solid var(--be-divider-default);background:var(--be-background);height:50px}inspector .inspector-content .actions .mat-progress-bar{position:absolute;top:-5px;left:0}inspector .inspector-content .actions .mat-button{line-height:50px;border-right:1px solid var(--be-divider-default);min-width:20%;border-radius:0}inspector .inspector-content .actions .mat-button svg{display:block}inspector .inspector-content .actions .mat-button:last-of-type{border-right:none}inspector .content-panel{background-color:var(--be-background);border-radius:4px;padding:15px;margin-bottom:15px;color:var(--be-text);box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}inspector .content-panel .header{margin-bottom:20px;font-size:1.5rem;font-weight:500}"],encapsulation:2}),e})();var Kn=n("XhcP");const Mn=["dragHandle"];let Ln=(()=>{class e extends Xe{constructor(e,t,n,i,a,A,r,o){super(),this.livePreview=e,this.renderer=t,this.undoManager=n,this.elements=i,this.zone=a,this.selectedElement=A,this.builderDocument=r,this.dragHelper=o}getDragHandles(){return document.querySelectorAll(".context-box-drag-handle")}setDragElement(e){this.dragEl=e.target.closest(".selected-box")?this.livePreview.selected:this.livePreview.hover}sortColumns(e,t){if(!e.parentElement)return;const n=e.parentElement.className;e!==this.dragEl.node&&e.parentElement===this.dragEl.node.parentElement&&n&&n.match("row")&&(t.direction===Hammer.DIRECTION_RIGHT?this.dragEl.node.before(e):t.direction===Hammer.DIRECTION_LEFT&&this.dragEl.node.after(e),this.livePreview.repositionBox("selected"))}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(u.G),u.Nb(v),u.Nb(E.a),u.Nb(u.A),u.Nb(y),u.Nb(_),u.Nb(Ke))},e.\u0275dir=u.Ib({type:e,selectors:[["","previewDragAndDrop",""]],contentQueries:function(e,t,n){var i;1&e&&u.Gb(n,Mn,!1),2&e&&u.rc(i=u.bc())&&(t.dragElements=i)},features:[u.yb]}),e})(),Vn=(()=>{class e{constructor(e,t,n,i){this.zone=e,this.el=t,this.contextBoxes=n,this.livePreview=i}ngAfterViewInit(){this.dragOverlay=document.querySelector(".drag-overlay");const e=this.livePreview.getIframe().contentDocument.body;this.previewWidth=e.clientWidth-20,this.previewHeight=e.scrollHeight-20,this.zone.runOutsideAngular(()=>{const e=new Hammer.Manager(this.el.nativeElement),t=new Hammer.Pan({direction:Hammer.DIRECTION_ALL,threshold:0});e.add([t]),e.on("panstart",e=>this.handleDragStart(e)),e.on("panmove",e=>this.handleDrag(e)),e.on("panend",e=>this.handleDragEnd(e))})}handleDragStart(e){this.node=this.livePreview[this.contextBoxType].node;const t=this.node.getBoundingClientRect();this.aspectRatio=t.width/t.height,this.dragOverlay.style.display="block",this.node.style.maxWidth="none",this.node.style.maxHeight="none"}handleDrag(e){const t=this.node.getBoundingClientRect(),n=e.center.x-380;if(this.previewWidth<=n)return;if(this.previewHeight<=e.center.y)return;const i=n-t.left;let a=i<10?10:i;const A=e.center.y-t.top;let r=A<10?10:A;this.livePreview[this.contextBoxType].isImage&&({finalWidth:a,finalHeight:r}=this.resizeAndPreserveAspectRatio(a,r)),a<10||r<10||(this.node.style.width=a+"px",this.node.style.height=r+"px",this.contextBoxes.repositionBox("selected",this.node))}handleDragEnd(e){this.dragOverlay.style.display="none"}resizeAndPreserveAspectRatio(e,t){let n=e,i=t;return t*this.aspectRatio>e?i=e/this.aspectRatio:n=t*this.aspectRatio,{finalWidth:n,finalHeight:i}}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(u.A),u.Nb(u.l),u.Nb(x),u.Nb(_e))},e.\u0275dir=u.Ib({type:e,selectors:[["","elementResizer",""]],inputs:{contextBoxType:"contextBoxType"}}),e})(),zn=(()=>{class e{constructor(e,t,n,i,a,A,r,o,s,c,l,d){this.livePreview=e,this.builderActions=t,this.selectedElement=n,this.inspector=i,this.modal=a,this.activeProject=A,this.contextBoxes=r,this.inlineTextEditor=o,this.el=s,this.elements=c,this.linkEditor=l,this.uploadQueue=d,this.type="hover"}get typeSelected(){return"selected"===this.type}deleteNode(){this.builderActions.removeNode(this.livePreview[this.type].node)}editNode(){const e=this.livePreview[this.type].node;this.elements.isLayout(e)?this.inspector.openPanel("layout"):this.elements.isImage(e)?this.openUploadImageModal():this.elements.isLink(e)?this.linkEditor.open(e):this.elements.isIcon(e)?this.inlineTextEditor.open(e,{activePanel:"icons"}):this.elements.canModifyText(this.elements.match(e))?(this.contextBoxes.hideBoxes(),this.inlineTextEditor.open(e)):(this.selectedElement.selectNode(e),this.inspector.togglePanel("inspector"))}openUploadImageModal(){const e={uri:"uploads/images",httpParams:{diskPrefix:this.activeProject.getBaseUrl(!0)+"images"}};Object(Ze.a)({types:[$e.a.image]}).then(t=>{this.uploadQueue.start(t,e).subscribe(e=>{this.livePreview[this.type].node.src=this.activeProject.getImageUrl(e.fileEntry)})})}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(U),u.Nb(y),u.Nb(Me),u.Nb(Ne.a),u.Nb(D),u.Nb(x),u.Nb(he),u.Nb(u.l),u.Nb(E.a),u.Nb(Se),u.Nb(et.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["context-box"]],hostVars:2,hostBindings:function(e,t){2&e&&u.Fb("type-selected",t.typeSelected)},inputs:{type:"type"},features:[u.Ab([et.a])],decls:9,vars:3,consts:[[1,"context-box-toolbar"],["title","Edit Element",1,"no-style","action-button","edit-button",3,"click"],["svgIcon","settings",1,"settings-icon"],["type","button","title","Drag Element",1,"no-style","action-button","drag-button","context-box-drag-handle"],["svgIcon","drag-indicator",1,"drag-icon"],["title","Move Delete",1,"no-style","action-button","delete-button",3,"click"],["svgIcon","close",1,"delete-icon"],["elementResizer","",1,"no-style","resize-button",3,"contextBoxType"]],template:function(e,t){1&e&&(u.Tb(0,"div"),u.Tb(1,"div",0),u.Tb(2,"button",1),u.ac("click",(function(){return t.editNode()})),u.Ob(3,"mat-icon",2),u.Sb(),u.Tb(4,"button",3),u.Ob(5,"mat-icon",4),u.Sb(),u.Tb(6,"button",5),u.ac("click",(function(){return t.deleteNode()})),u.Ob(7,"mat-icon",6),u.Sb(),u.Sb(),u.Ob(8,"button",7),u.Sb()),2&e&&(u.Fb("hidden","hover"!==t.type),u.Bb(8),u.kc("contextBoxType",t.type))},directives:[z.a,Vn],styles:['[_nghost-%COMP%]{position:absolute;top:0;left:0;color:#fff;pointer-events:none}[_nghost-%COMP%]:after{content:"";position:absolute;top:2px;left:2px;right:2px;bottom:2px;outline:2px solid var(--be-accent-lighter)}.type-selected[_nghost-%COMP%]:after{outline-width:1px}.toolbar-bottom[_nghost-%COMP%]   .context-box-toolbar[_ngcontent-%COMP%]{top:auto;bottom:-24px;transform:rotate(180deg) scaleX(-1)}.compact-mode[_nghost-%COMP%]   .context-box-toolbar[_ngcontent-%COMP%]{left:0;border-radius:5px 5px 5px 0;overflow:hidden}.compact-mode[_nghost-%COMP%]   .context-box-toolbar[_ngcontent-%COMP%]   .delete-button[_ngcontent-%COMP%]:after, .compact-mode[_nghost-%COMP%]   .context-box-toolbar[_ngcontent-%COMP%]   .edit-button[_ngcontent-%COMP%]:before{display:none}.context-box-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;top:-24px;left:calc(50% - 36px);height:25px;pointer-events:all;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:5px 5px 0 0;z-index:10}.action-button[_ngcontent-%COMP%]{width:24px;height:24px;background-color:var(--be-accent-lighter);color:#fff;transition:background-color .25s ease-in-out}.action-button[_ngcontent-%COMP%]:hover{background-color:var(--be-accent-default)}.action-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{display:block;width:18px;height:18px;margin:auto}.action-button[_ngcontent-%COMP%]   .drag-icon[_ngcontent-%COMP%]{transform:rotate(90deg);width:22px;height:22px}.action-button[_ngcontent-%COMP%]   .settings-icon[_ngcontent-%COMP%]{width:16px;height:16px}.drag-button[_ngcontent-%COMP%]{cursor:move}.edit-button[_ngcontent-%COMP%]{border-top-left-radius:5px;transition:border-right-color .25s ease-in-out}.edit-button[_ngcontent-%COMP%]:hover:before{border-right-color:var(--be-accent-default)}.edit-button[_ngcontent-%COMP%]:before{content:"";position:absolute;top:3px;border-right:12px solid var(--be-accent-lighter);border-top:22px solid transparent;right:calc(100% - 1px);height:22px}.delete-button[_ngcontent-%COMP%]{border-top-right-radius:5px;transition:border-left-color .25s ease-in-out}.delete-button[_ngcontent-%COMP%]:hover:after{border-left-color:var(--be-accent-default)}.delete-button[_ngcontent-%COMP%]:after{content:"";position:absolute;top:3px;border-left:12px solid var(--be-accent-lighter);border-top:22px solid transparent;left:calc(100% - 1px);height:24px 22px}.resize-button[_ngcontent-%COMP%]{position:absolute;width:10px;height:10px;bottom:-4px;right:-4px;pointer-events:all;z-index:10;cursor:nwse-resize}.resize-button[_ngcontent-%COMP%]:before{content:"";position:absolute;top:2px;right:2px;width:6px;height:6px;background-color:#fff;border:1px solid var(--be-accent-lighter)}'],changeDetection:0}),e})();const Xn=["iframe"],Gn=["hoverBox"],jn=["selectedBox"],Jn=["dragOverlay"];let Wn=(()=>{class e{constructor(e,t){this.livePreview=e,this.contextBoxes=t}ngOnInit(){this.contextBoxes.set(this.hoverBox.el.nativeElement,this.selectedBox.el.nativeElement,this.iframe),this.livePreview.iframe=this.iframe.nativeElement,this.wheelSub=Object(ne.a)(window,"wheel").pipe(Object(F.a)(()=>this.livePreview.dragging)).subscribe(e=>{this.livePreview.iframe.contentDocument.documentElement.scrollTop+=e.deltaY})}ngOnDestroy(){this.wheelSub.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(_e),u.Nb(x))},e.\u0275cmp=u.Hb({type:e,selectors:[["live-preview"]],viewQuery:function(e,t){var n;1&e&&(u.Bc(Xn,!0),u.Bc(Gn,!0),u.Bc(jn,!0),u.Bc(Jn,!0)),2&e&&(u.rc(n=u.bc())&&(t.iframe=n.first),u.rc(n=u.bc())&&(t.hoverBox=n.first),u.rc(n=u.bc())&&(t.selectedBox=n.first),u.rc(n=u.bc())&&(t.dragOverlay=n.first))},decls:10,vars:1,consts:[["previewDragAndDrop","",1,"width-container",3,"ngClass"],[1,"highlights"],["type","hover",1,"hidden"],["hoverBox",""],["type","selected",1,"hidden"],["selectedBox",""],["iframe",""],[1,"drag-overlay"],["dragOverlay",""]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Tb(1,"div",1),u.Ob(2,"context-box",2,3),u.Ob(4,"context-box",4,5),u.Sb(),u.Ob(6,"iframe",null,6),u.Ob(8,"div",7,8),u.Sb()),2&e&&u.kc("ngClass",t.livePreview.activeWidth)},directives:[Ln,i.q,zn],styles:["live-preview{display:block;height:100%;position:relative;overflow:hidden;background-image:linear-gradient(45deg,rgba(0,0,0,.05) 25%,transparent 0,transparent 75%,rgba(0,0,0,.05) 0,rgba(0,0,0,.05)),linear-gradient(45deg,rgba(0,0,0,.05) 25%,transparent 0,transparent 75%,rgba(0,0,0,.05) 0,rgba(0,0,0,.05));background-size:48px 48px;background-position:0 0,24px 24px}live-preview>.width-container{width:100%;height:100%;margin:0 auto;transition:width 225ms cubic-bezier(.4,0,.2,1)}live-preview>.width-container.phone{width:480px}live-preview>.width-container.phone,live-preview>.width-container.tablet{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}live-preview>.width-container.tablet{width:768px}live-preview>.width-container.laptop{width:992px;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}live-preview>.width-container.desktop{width:100%}live-preview iframe{display:block;width:100%;height:100%;border:none;background-color:var(--be-background)}live-preview .highlights{position:absolute}live-preview .drag-overlay{display:none;position:absolute;top:0;left:0;width:100%;height:100%}"],encapsulation:2}),e})(),Yn=(()=>{class e{constructor(e,t,n){this.renderer=e,this.el=t,this.dragHelper=n}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(u.G),u.Nb(u.l),u.Nb(Ke))},e.\u0275cmp=u.Hb({type:e,selectors:[["drag-visual-helper"]],decls:2,vars:1,consts:[[1,"name"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Hc(1),u.Sb()),2&e&&(u.Bb(1),u.Ic(t.dragHelper.getName()))},styles:["drag-visual-helper{display:block;position:fixed;bottom:-50px;left:-100px;pointer-events:none;background-color:var(--be-background);color:var(--be-text);max-height:40px;border-radius:2px;padding:10px;text-align:center;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);font-size:1.5rem;text-transform:capitalize;z-index:10}"],encapsulation:2}),e})();var qn=n("JxJJ");let Zn=(()=>{class e{constructor(){this.visible=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=u.Hb({type:e,selectors:[["main-loader"]],hostVars:1,hostBindings:function(e,t){2&e&&u.Ec("@visibility",t.visible)},inputs:{visible:"visible"},decls:11,vars:0,consts:[["color","accent","mode","indeterminate"],[1,"loader-box-container"],[1,"loader-box"],[1,"left"],["variant","rect"],[1,"right"],["variant","text"],["trans","",1,"loader-text"]],template:function(e,t){1&e&&(u.Ob(0,"mat-progress-bar",0),u.Tb(1,"div",1),u.Tb(2,"div",2),u.Tb(3,"div",3),u.Ob(4,"skeleton",4),u.Sb(),u.Tb(5,"div",5),u.Ob(6,"skeleton",6),u.Ob(7,"skeleton",6),u.Ob(8,"skeleton",6),u.Sb(),u.Sb(),u.Tb(9,"div",7),u.Hc(10,"Loading"),u.Sb(),u.Sb())},directives:[On.a,qn.a,ae.a],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;bottom:0;right:0;background-color:var(--be-background-alternative);z-index:999}.partial[_nghost-%COMP%], .partial   [_nghost-%COMP%]{left:380px;border-left:1px solid var(--be-divider-default)}.partial[_nghost-%COMP%]   .mat-progress-bar[_ngcontent-%COMP%], .partial   [_nghost-%COMP%]   .mat-progress-bar[_ngcontent-%COMP%]{display:none}.mat-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.loader-box[_ngcontent-%COMP%]{display:flex;width:150px;height:150px;background-color:var(--be-background);border-radius:4px;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);padding:36px}.left[_ngcontent-%COMP%], .right[_ngcontent-%COMP%]{height:100%}.left[_ngcontent-%COMP%]{width:14px;margin-right:14px}.right[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:space-between}.loader-text[_ngcontent-%COMP%]{font-size:1rem;text-transform:uppercase;letter-spacing:7px;text-align:center;margin-top:20px;color:var(--be-secondary-text);font-weight:500}"],data:{animation:[Object(ue.m)("visibility",[Object(ue.j)("true",Object(ue.k)({opacity:"1",display:"*"})),Object(ue.j)("false",Object(ue.k)({opacity:"0",display:"none"})),Object(ue.l)("true => false",Object(ue.e)("500ms cubic-bezier(.4,0,.2,1)"))])]},changeDetection:0}),e})();var $n=n("/RwR"),ei=n("nYR2");function ti(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",2),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().applyTemplate(n)})),u.fc(1,"async"),u.Ob(2,"img",3),u.Tb(3,"div",4),u.Hc(4),u.Sb(),u.Sb()}if(2&e){const e=t.$implicit,n=u.ec();u.Fb("disabled",u.gc(1,4,n.mainLoader.loading$)),u.Bb(2),u.kc("src",n.getThumbnailUrl(e),u.xc),u.Bb(2),u.Ic((null==e||null==e.config?null:e.config.name)||e.name)}}let ni=(()=>{class e{constructor(e,t,n,i,a,A,r){this.templatesApi=e,this.settings=t,this.activeProject=n,this.modal=i,this.toast=a,this.inspectorDrawer=A,this.mainLoader=r,this.templates=[]}ngOnInit(){this.templatesApi.all({perPage:25}).subscribe(e=>{this.templates=e.pagination.data})}applyTemplate(e){this.modal.open($n.a,{title:"Apply Template",body:"Are you sure you want to apply this template?",bodyBold:"This will erase all the current contents of your project.",ok:"Apply"}).afterClosed().subscribe(t=>{t&&(this.mainLoader.loading$.next(!0),this.inspectorDrawer.close(),this.activeProject.applyTemplate(e.name).pipe(Object(ei.a)(()=>this.mainLoader.loading$.next(!1))).subscribe(()=>{this.toast.open("Template applied")}))})}getThumbnailUrl(e){return this.settings.getBaseUrl(!0)+e.thumbnail}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(I.a),u.Nb(p.a),u.Nb(D),u.Nb(Ne.a),u.Nb(O.b),u.Nb(Re),u.Nb(S))},e.\u0275cmp=u.Hb({type:e,selectors:[["templates-panel"]],decls:2,vars:1,consts:[[1,"templates"],["class","template",3,"disabled","click",4,"ngFor","ngForOf"],[1,"template",3,"click"],[3,"src"],[1,"name"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Fc(1,ti,5,6,"div",1),u.Sb()),2&e&&(u.Bb(1),u.kc("ngForOf",t.templates))},directives:[i.s],pipes:[i.b],styles:["templates-panel{display:block;background-color:var(--be-background-alternative);height:100%;width:300px;box-sizing:inherit}templates-panel .templates{padding:15px}templates-panel .templates .template{margin-bottom:20px;cursor:pointer;background-color:var(--be-background);transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-radius:4px;overflow:hidden}templates-panel .templates .template.disabled{pointer-events:none;opacity:.7}templates-panel .templates .template:hover{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}templates-panel .templates .template .name{padding:10px 0;text-align:center}templates-panel .templates .template img{display:block;width:100%;height:auto}"],encapsulation:2}),e})(),ii=(()=>{class e{constructor(e){this.http=e}all(){return this.http.get("themes")}}return e.\u0275fac=function(t){return new(t||e)(u.Xb(De.a))},e.\u0275prov=u.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function ai(e,t){if(1&e){const e=u.Ub();u.Tb(0,"button",3),u.ac("click",(function(){return u.vc(e),u.ec().applyTheme()})),u.Hc(1,"Remove"),u.Sb()}}function Ai(e,t){if(1&e){const e=u.Ub();u.Tb(0,"div",4),u.ac("click",(function(){u.vc(e);const n=t.$implicit;return u.ec().applyTheme(n)})),u.fc(1,"async"),u.Ob(2,"img",5),u.Tb(3,"div",6),u.Hc(4),u.Sb(),u.Sb()}if(2&e){const e=t.$implicit,n=u.ec();u.Fb("disabled",u.gc(1,6,n.mainLoader.loading$))("active",n.themeIsActive(e)),u.Bb(2),u.kc("src",n.getThumbnailUrl(e),u.xc),u.Bb(2),u.Ic(e.name)}}let ri=(()=>{class e{constructor(e,t,n,i,a,A){this.themesApi=e,this.mainLoader=t,this.inspectorDrawer=n,this.activeProject=i,this.toast=a,this.settings=A,this.themes=[]}ngOnInit(){this.themesApi.all().subscribe(e=>{this.themes=e.themes})}applyTheme(e){this.mainLoader.loading$.next(!0),this.inspectorDrawer.close(),this.activeProject.applyTheme(e).subscribe(()=>{this.mainLoader.loading$.next(!1)})}getThumbnailUrl(e){return this.settings.getBaseUrl(!0)+"/"+e.thumbnail}themeIsActive(e){return e?this.activeProject.get().model.theme===e.name:this.activeProject.get().model.theme}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(ii),u.Nb(S),u.Nb(Re),u.Nb(D),u.Nb(O.b),u.Nb(p.a))},e.\u0275cmp=u.Hb({type:e,selectors:[["themes-panel"]],decls:3,vars:2,consts:[[1,"themes"],["class","remove-button","mat-raised-button","","color","warn","trans","",3,"click",4,"ngIf"],["class","theme",3,"disabled","active","click",4,"ngFor","ngForOf"],["mat-raised-button","","color","warn","trans","",1,"remove-button",3,"click"],[1,"theme",3,"click"],[3,"src"],[1,"name"]],template:function(e,t){1&e&&(u.Tb(0,"div",0),u.Fc(1,ai,2,0,"button",1),u.Fc(2,Ai,5,8,"div",2),u.Sb()),2&e&&(u.Bb(1),u.kc("ngIf",t.themeIsActive()),u.Bb(1),u.kc("ngForOf",t.themes))},directives:[i.t,i.s,V.b,ae.a],pipes:[i.b],styles:["themes-panel{display:block;background-color:var(--be-background-alternative);height:100%;width:300px;box-sizing:inherit}themes-panel .remove-button{width:100%;height:40px;margin-bottom:20px}themes-panel .themes{padding:15px}themes-panel .themes .theme{margin-bottom:20px;cursor:pointer;background-color:var(--be-background);border:2px solid transparent;transition:box-shadow .28s cubic-bezier(.4,0,.2,1);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);border-radius:4px;overflow:hidden}themes-panel .themes .theme.disabled{pointer-events:none;opacity:.7}themes-panel .themes .theme.active{border-color:var(--be-accent-default)}themes-panel .themes .theme:hover{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}themes-panel .themes .theme .name{padding:10px 0;text-align:center;text-transform:capitalize}themes-panel .themes .theme img{display:block;width:100%;height:auto}"],encapsulation:2}),e})();const oi=["inspectorDrawer"],si=["dragHelper"],ci=["loaderEl"];function li(e,t){1&e&&u.Ob(0,"templates-panel")}function di(e,t){1&e&&u.Ob(0,"themes-panel")}const hi=[{path:":id",component:(()=>{class e{constructor(e,t,n,i,a,A,r,o,s,c,l,d,h,u,p,g){this.elements=e,this.elementsApi=t,this.route=n,this.activeProject=i,this.inspectorDrawer=a,this.dragVisualHelper=A,this.codeEditor=r,this.inspector=o,this.inlineTextEditor=s,this.breakpoints=c,this.builderDocument=l,this.projectApi=d,this.livePreview=h,this.mainLoader=u,this.currentUser=p,this.router=g,this.inspectorHidden=!1}ngOnInit(){Object(Te.a)([this.projectApi.get(this.route.snapshot.params.id).pipe(Object(s.a)(e=>{this.activeProject.setProject(e.project),this.livePreview.init()})),this.elementsApi.getCustom().pipe(Object(s.a)(e=>this.elements.init(e))),this.builderDocument.loaded$]).subscribe(()=>{this.canOpenProjectInBuilder()||this.router.navigate(["/dashboard"]),this.mainLoader.loading$.next(!1),this.inspectorDrawer.setDrawer(this.drawer),this.dragVisualHelper.setComponent(this.dragHelper)}),this.inspectorHidden=this.breakpoints.isMobile$.value}canOpenProjectInBuilder(){return this.currentUser.hasPermission("projects.update")||!!this.activeProject.project.model.users.find(e=>e.id===this.currentUser.get("id"))}ngOnDestroy(){this.codeEditor.close(),this.inspector.reset(),this.inlineTextEditor.close()}getInspectorDrawerPanel(){return this.inspectorDrawer.activePanel}toggleInspector(){this.inspectorHidden=!this.inspectorHidden}}return e.\u0275fac=function(t){return new(t||e)(u.Nb(E.a),u.Nb(Pe),u.Nb(a.a),u.Nb(D),u.Nb(Re),u.Nb(Ke),u.Nb(Y),u.Nb(Me),u.Nb(he),u.Nb(W.a),u.Nb(_),u.Nb(N.a),u.Nb(_e),u.Nb(S),u.Nb(ge.a),u.Nb(a.d))},e.\u0275cmp=u.Hb({type:e,selectors:[["html-builder"]],viewQuery:function(e,t){var n;1&e&&(u.Bc(oi,!0),u.Bc(si,!0),u.Bc(ci,!0)),2&e&&(u.rc(n=u.bc())&&(t.drawer=n.first),u.rc(n=u.bc())&&(t.dragHelper=n.first),u.rc(n=u.bc())&&(t.loaderEl=n.first))},features:[u.Ab([D,_e,_,Ne.a,J.a,Se,Y,me.a,he,Ie,S,Oe,v])],decls:15,vars:10,consts:[["inspectorDrawer",""],[4,"ngIf"],[1,"drag-helper"],["dragHelper",""],["type","button","mat-mini-fab","","color","accent",1,"mobile-toggle-button",3,"click"],["svgIcon","menu"],[3,"visible"]],template:function(e,t){1&e&&(u.Ob(0,"inspector"),u.Tb(1,"mat-drawer-container"),u.Tb(2,"mat-drawer",null,0),u.Fc(4,li,1,0,"templates-panel",1),u.Fc(5,di,1,0,"themes-panel",1),u.Sb(),u.Tb(6,"mat-drawer-content"),u.Ob(7,"live-preview"),u.Sb(),u.Sb(),u.Ob(8,"drag-visual-helper",2,3),u.Tb(10,"button",4),u.ac("click",(function(){return t.toggleInspector()})),u.Ob(11,"mat-icon",5),u.Sb(),u.Tb(12,"main-loader",6),u.fc(13,"async"),u.fc(14,"async"),u.Sb()),2&e&&(u.kc("@bodyExpansion",!t.inspectorHidden),u.Bb(4),u.kc("ngIf","templates"===t.getInspectorDrawerPanel()),u.Bb(1),u.kc("ngIf","themes"===t.getInspectorDrawerPanel()),u.Bb(7),u.Fb("partial",u.gc(13,6,t.mainLoader.loadedAtLeastOnce$)),u.kc("visible",u.gc(14,8,t.mainLoader.loading$)))},directives:[Rn,Kn.b,Kn.a,i.t,Kn.c,Wn,Yn,V.b,z.a,Zn,ni,ri],pipes:[i.b],styles:["html-builder{display:flex;height:100vh;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html-builder mat-drawer-container{flex:1 1 auto;height:100%}@media screen and (max-width:768px){html-builder mat-drawer-container{position:absolute;top:0;left:0;width:100%}}html-builder loading-indicator.overlay{background-color:var(--be-background)}html-builder .mobile-toggle-button{display:none;position:absolute;top:7px;right:7px;z-index:3}@media screen and (max-width:768px){html-builder .mobile-toggle-button{display:block}}"],encapsulation:2,data:{animation:[Object(ue.m)("bodyExpansion",[Object(ue.j)("false",Object(ue.k)({height:"0px",visibility:"hidden"})),Object(ue.j)("true",Object(ue.k)({height:"*",visibility:"visible"})),Object(ue.l)("true <=> false",Object(ue.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])]}}),e})(),canActivate:[n("0QyJ").a]}];let ui=(()=>{class e{}return e.\u0275mod=u.Lb({type:e}),e.\u0275inj=u.Kb({factory:function(t){return new(t||e)},imports:[[a.h.forChild(hi)],a.h]}),e})();var pi=n("vvyD"),gi=n("PCNd"),fi=n("0IaG"),bi=n("+rOU"),mi=n("6rvT"),Bi=n("X3pI"),wi=n("Iysn"),vi=n("losq");let Ci=(()=>{class e{}return e.\u0275mod=u.Lb({type:e}),e.\u0275inj=u.Kb({factory:function(t){return new(t||e)},imports:[[i.c,gi.a,pi.a,ui,mi.a,Bi.a,wi.a,L.o,L.E,vi.a,Kn.g,Ve.b,vt.b,tt.e,bi.h,Qn.d,ve.g,ut.c,M.e,fi.g,V.c,z.b]]}),e})()},AOBC:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=[];i.push({name:"page header",nodes:"*",class:"page-header",html:'<div class="page-header"><h1>Example page header <small>Header subtext</small></h1></div>',types:["flow"],validChildren:["flow"],category:"typography",previewScale:"0.4",icon:"header-custom"}),i.push({name:"progress bar",nodes:"*",class:"progress",html:'<div class="progress">\n  <div class="progress-bar" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>\n</div>',types:["flow"],validChildren:["flow"],category:"components",icon:"show-chart"}),i.push({name:"list group",nodes:"*",class:"list-group",html:'<ul class="list-group">\n  <li class="list-group-item">Cras justo odio</li>\n  <li class="list-group-item">Dapibus ac facilisis in</li>\n  <li class="list-group-item">Morbi leo risus</li>\n  <li class="list-group-item">Porta ac consectetur ac</li>\n  <li class="list-group-item">Vestibulum at eros</li>\n</ul>',types:["flow"],validChildren:["flow"],category:"components",icon:"view-list"}),i.push({name:"card",nodes:"*",class:"card",html:'<div class="card" style="width: 18rem;">\n  <img src="https://via.placeholder.com/286x160?text=Placeholder%20Image" class="card-img-top" alt="">\n  <div class="card-body">\n    <h5 class="card-title">Card title</h5>\n    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card\'s content.</p>\n    <a href="#" class="btn btn-primary">Go somewhere</a>\n  </div>\n</div>',types:["flow"],validChildren:["flow"],category:"components",icon:"crop-portrait"}),i.push({name:"container",nodes:"*",class:"container",html:'<div class="container"></div>',types:["flow"],validChildren:["flow"],category:"layout",dragHelper:!0,icon:"crop-square",attributes:{type:{list:[{name:"Default",value:"container"},{name:"Wide",value:"container-fluid"}],value:"container",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}}}),i.push({name:"row",nodes:"*",frameworks:["bootstrap"],class:"row",html:'<section class="row"><div class="col-md-4"></div><div class="col-md-3"></div><div class="col-md-5"></div></section>',types:["flow"],validChildren:["flow"],category:"layout",dragHelper:!0,icon:"view-stream"}),i.push({name:"alert",nodes:"*",class:"well",html:'<div class="alert alert-primary" role="alert">\n  A simple primary alert\u2014check it out!\n</div>',types:["flow"],validChildren:["flow"],category:"layout",icon:"label"}),i.push({name:"label",nodes:"*",class:"label",html:'<span class="label label-success">Label</span>',types:["flow","phrasing"],validChildren:["phrasing"],category:"typography",hiddenClasses:["label"],icon:"label"}),i.push({name:"column",nodes:"*",class:"col-*",html:'<div class="col-sm-6"></div>',types:["flow"],validChildren:["flow"],canModify:["text","box","margin","padding","attributes"]}),i.push({name:"button group",nodes:"*",class:"btn-group",html:'<div class="btn-group" role="group" aria-label="Basic example">\n  <button type="button" class="btn btn-secondary">Left</button>\n  <button type="button" class="btn btn-secondary">Middle</button>\n  <button type="button" class="btn btn-secondary">Right</button>\n</div>',types:["flow"],validChildren:["button"],category:"buttons",icon:"view-column"}),i.push({name:"button toolbar",nodes:"*",class:"btn-toolbar",html:'<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">\n  <div class="btn-group mr-2" role="group" aria-label="First group">\n    <button type="button" class="btn btn-secondary">1</button>\n    <button type="button" class="btn btn-secondary">2</button>\n    <button type="button" class="btn btn-secondary">3</button>\n    <button type="button" class="btn btn-secondary">4</button>\n  </div>\n  <div class="btn-group mr-2" role="group" aria-label="Second group">\n    <button type="button" class="btn btn-secondary">5</button>\n    <button type="button" class="btn btn-secondary">6</button>\n    <button type="button" class="btn btn-secondary">7</button>\n  </div>\n  <div class="btn-group" role="group" aria-label="Third group">\n    <button type="button" class="btn btn-secondary">8</button>\n  </div>\n</div>',types:["flow"],validChildren:[".btn-group"],category:"buttons",icon:"view-module"}),i.push({name:"input field",nodes:["input=text","input=email","input=password"],frameworks:["bootstrap"],html:'<input type="text" class="form-control" placeholder="Text input">',types:["flow","phrasing","interactive","listed","labelable","submittable","resettable","reassociateable","form-associated"],validChildren:!1,previewScale:"0.5",showWysiwyg:!1,hiddenClasses:["form-control"],category:"forms",icon:"power-input",attributes:{placeholder:{text:!0,value:"Text input",onAssign:function(e){this.value=e.selected.node.getAttribute("placeholder")},onChange:function(e,t){e.selected.node.setAttribute("placeholder",t),e.repositionBox("selected")}},type:{list:[{name:"Text",value:"text"},{name:"Password",value:"password"},{name:"Date",value:"date"},{name:"Email",value:"email"},{name:"Datetime",value:"datetime"},{name:"Datetime Local",value:"datetime-local"},{name:"Month",value:"month"},{name:"Time",value:"time"},{name:"Week",value:"week"},{name:"Number",value:"number"},{name:"Url",value:"url"},{name:"Search",value:"search"},{name:"Tel",value:"tel"},{name:"Color",value:"color"}],value:"",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.getAttribute("type")==this.list[t].value)return this.value=this.list[t].value;return this.value=this.list[0].value},onChange:function(e,t){e.selected.node.setAttribute("type",t)}}}}),i.push({name:"text area",nodes:["textarea"],frameworks:["bootstrap"],html:'<textarea class="form-control" rows="3"></textarea>',types:["flow","phrasing","interactive","listed","labelable","submittable","resettable","reassociateable","form-associated"],validChildren:!1,previewScale:"0.5",showWysiwyg:!1,hiddenClasses:["form-control"],category:"forms",icon:"short-text",attributes:{rows:{text:!0,value:1,onAssign:function(e){this.value=e.selected.node.getAttribute("rows")},onChange:function(e,t){e.selected.node.setAttribute("rows",t),e.repositionBox("selected")}},placeholder:{text:!0,value:"Placeholder...",onAssign:function(e){this.value=e.selected.node.getAttribute("placeholder")},onChange:function(e,t){e.selected.node.setAttribute("placeholder",t),e.repositionBox("selected")}}}}),i.push({name:"checkbox",nodes:"*",frameworks:["bootstrap"],class:"form-check",html:'<div class="form-group form-check">\n    <input type="checkbox" class="form-check-input">\n    <label class="form-check-label" for="exampleCheck1">Check me out</label>\n  </div>',types:["flow","phrasing","interactive","listed","labelable","submittable","resettable","reassociateable","form-associated"],validChildren:!1,category:"forms",showWysiwyg:!1,icon:"check-box"}),i.push({name:"input group",nodes:"*",class:"input-group",html:'<div class="input-group">\n        <div class="input-group-prepend">\n          <div class="input-group-text">@</div>\n        </div>\n        <input type="text" class="form-control" placeholder="Username">\n      </div>',types:["flow"],validChildren:!1,attributes:{size:{list:[{name:"Medium",value:"default"},{name:"Large",value:"input-group-lg"},{name:"Small",value:"input-group-sm"}],value:"default",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}},showWysiwyg:!1,category:"forms",icon:"view-list",hiddenClasses:["input-group"]}),i.push({name:"form group",nodes:"*",frameworks:["bootstrap"],class:"form-group",html:'<div class="form-group"><label for="email" class="control-label">Email address</label><input type="email" class="form-control" id="email" placeholder="Enter email"></div>',types:["flow"],validChildren:!1,attributes:{state:{list:[{name:"None",value:"default"},{name:"Error",value:"has-error"},{name:"Success",value:"has-success"},{name:"Warning",value:"has-warning"}],value:"default",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}},showWysiwyg:!1,category:"forms",icon:"view-headline",hiddenClasses:["form-group"]}),i.push({name:"link",frameworks:["base","bootstrap"],nodes:["a"],html:'<a href="#">A simple hyperlink.</a>',types:["flow","phrasing","interactive"],validChildren:["flow"],category:"typography",icon:"link"}),i.push({name:"addon",nodes:"*",frameworks:["bootstrap"],class:"input-group-addon",html:!1,canDrag:!1,types:["flow"],validChildren:!1,canModify:["text","attributes"],attributes:{side:{list:[{name:"Left",value:"left"},{name:"Right",value:"right"}],value:!1,onAssign:function(e){let t,n=0;for(;null!=(t=e.selected.node.previousSibling);)n++;this.value=n?this.list[1].value:this.list[0].value},onChange:function(e,t){const n=e.selected.node.parentElement.childNodes;"right"===t?n[n.length-1].after(e.selected.node):n[0].before(e.selected.node)}},contents:{list:[{name:"Text",value:"text"},{name:"Checkbox",value:"checkbox"},{name:"Radio",value:"radio"},{name:"Button",value:"button"},{name:"Dropdown",value:"dropdown"}],onAssign:function(e){if(!e.selected.node)return;let t=e.selected.node.closest(".input-group-addon").childNodes;t[0].nodeType===Node.TEXT_NODE?this.value=this.list[0].value:"checkbox"==t[0].type?this.value=this.list[1].value:"radio"==t[0].type?this.value=this.list[2].value:"BUTTON"==t[0].nodeName?this.value=this.list[3].value:t.length>1&&(this.value=this.list[4].value)},onChange:function(e,t){"text"==t?(e.selected.node.classList.remove(),e.selected.node.classList.add("input-group-addon"),e.selected.node.innerHTML="",e.selected.node.innerText="@"):"checkbox"==t?(e.selected.node.classList.remove(),e.selected.node.classList.add("input-group-addon"),e.selected.node.innerHTML='<input type="checkbox">'):"radio"==t?(e.selected.node.classList.remove(),e.selected.node.classList.add("input-group-addon"),e.selected.node.innerHTML='<input type="radio">'):"button"==t?(e.selected.node.classList.remove(),e.selected.node.classList.add("input-group-btn"),e.selected.node.innerHTML='<button class="btn btn-default" type="button">Go!</button>'):"dropdown"==t&&(e.selected.node.classList.remove(),e.selected.node.classList.add("input-group-btn"),e.selected.node.innerHTML='<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Action <span class="caret"></span></button><ul class="dropdown-menu" role="menu"><li><a href="#">Action</a></li><li><a href="#">Another action</a></li><li><a href="#">Something else here</a></li><li class="divider"></li><li><a href="#">Separated link</a></li></ul>')}}},showWysiwyg:!1,hiddenClasses:["input-group-addon"]}),i.push({name:"select",nodes:["select"],frameworks:["bootstrap"],html:'<select class="form-control"><option>1</option><option>2</option><option>3</option><option>4</option><option>5</option></select>',types:["flow","phrasing","interactive","listed","labelable","submittable","resettable","reassociateable","form-associated"],validChildren:!1,attributes:{state:{value:"none",list:[{name:"None",value:"none"},{name:"Error",value:"has-error"},{name:"Success",value:"has-success"},{name:"Warning",value:"has-warning"}],onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}},previewScale:"0.5",showWysiwyg:!1,category:"forms",icon:"arrow-drop-down"}),i.push({name:"image",nodes:["img"],frameworks:["bootstrap"],html:'<img src="/builder/images/default.jpg" class="img-responsive">',types:["flow","phrasing","embedded","interactive","form-associated"],validChildren:!1,category:"media",icon:"image",canModify:["padding","margin","attributes","shadows","borders"],previewScale:"0.3",attributes:{shape:{list:[{name:"Default",value:"none"},{name:"Rounded",value:"img-rounded"},{name:"Thumbnail",value:"img-thumbnail"},{name:"Circle",value:"img-circle"}],value:"none",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}}}),i.push({name:"responsive video",nodes:"*",class:"embed-responsive",frameworks:["bootstrap"],html:'<div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="//www.youtube.com/embed/sENM2wA_FTg"></iframe></div>',types:["flow"],validChildren:!1,category:"media",icon:"video-library",canModify:["padding","margin","shadows","attributes"],attributes:{url:{text:!0,value:"//www.youtube.com/embed/wGp0GAd1d1s",onAssign(e){let t=e.selected.node;"iframe"!==t.nodeName.toLowerCase()&&(t=t.querySelector("iframe")),this.value=t.src},onChange(e,t){let n=e.selected.node;"iframe"!==n.nodeName.toLowerCase()&&(n=n.querySelector("iframe")),n.src=t}}},hiddenClasses:["embed-responsive","embed-responsive-16by9","preview-node","img-responsive"]}),i.push({name:"image grid",nodes:"*",class:"image-grid",frameworks:["bootstrap"],html:'<div class="row image-grid"><div class="col-xs-3"><a href="#" class="thumbnail"><img src="/builder/images/default.jpg"></a></div><div class="col-xs-3"><a href="#" class="thumbnail"><img src="/builder/images/default.jpg"></a></div><div class="col-xs-3"><a href="#" class="thumbnail"><img src="/builder/images/default.jpg"></a></div><div class="col-xs-3"><a href="#" class="thumbnail"><img src="/builder/images/default.jpg"></a></div></div>',types:["flow"],validChildren:!1,category:"media",icon:"grid-on",canModify:["padding","margin","shadows","attributes"],previewScale:"0.2"})},IvEk:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=[];i.push({name:"paragraph",frameworks:["base"],nodes:["p"],html:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitationullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit involuptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat nonproident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>",types:["flow"],validChildren:["phrasing"],category:"typography",icon:"short-text"}),i.push({name:"divider",frameworks:["base"],nodes:["hr"],html:"<hr>",types:["flow"],validChildren:!1,category:"layout",dragHelper:!0,icon:"remove"}),i.push({name:"marked text",frameworks:["base"],nodes:["mark"],html:"<mark>Marked Text</mark>",types:["flow","phrasing"],validChildren:["phrasing"],category:"typography",icon:"info"}),i.push({name:"definition list",frameworks:["base"],nodes:["dl"],html:'<dl class="dl-horizontal"><dt>Description lists</dt><dd>A description list is perfect for defining terms.</dd><dt>Euismod</dt><dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd><dd>Donec id elit non mi porta gravida at eget metus.</dd><dt>Malesuada porta</dt><dd>Etiam porta sem malesuada magna mollis euismod.</dd><dt>Felis euismod semper eget lacinia</dt><dd>Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</dd></dl>',types:["flow","sectioning root"],validChildren:["dt","dd"],category:"typography",previewScale:"0.4",scaleDragPreview:!1,icon:"view-list"}),i.push({name:"blockqoute",frameworks:["base"],nodes:["blockqoute"],html:'<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p><footer>Someone famous in <cite title="Source Title">Source Title</cite></footer></blockquote>',types:["flow","sectioning root"],validChildren:["flow"],category:"typography",previewScale:"0.5",scaleDragPreview:!1,icon:"format-quote"}),i.push({name:"list item",frameworks:["base"],nodes:["li"],html:"<li>A basic list item</li>",types:["li"],validChildren:["flow"]}),i.push({name:"unordered list",frameworks:["base"],nodes:["ul"],html:"<ul><li>List item #1</li><li>List item #2</li><li>List item #3</li><ul>",types:["flow"],validChildren:["li"],category:"typography",icon:"format-list-bulleted"}),i.push({name:"body",frameworks:["base"],nodes:["body"],html:!1,draggable:!1,showWysiwyg:!1,types:["flow"],validChildren:["flow"]}),i.push({name:"button",frameworks:["base"],nodes:["a","button"],html:'<a class="btn btn-success">Click Me</a>',types:["flow","phrasing","interactive","listed","labelable","submittable","reassociateable","form-associated"],validChildren:["phrasing"],category:"buttons",icon:"button-custom"}),i.push({name:"div container",nodes:["div"],html:"<div></div>",types:["flow"],validChildren:["flow"],category:"layout",dragHelper:!0,icon:"crop-landscape"}),i.push({name:"section",nodes:["section"],html:"<section></section>",types:["flow"],validChildren:["flow"]}),i.push({name:"footer",nodes:["footer"],html:"<footer></footer>",types:["flow"],validChildren:["flow"]}),i.push({name:"header",nodes:["header"],html:"<header>Header Text</header>",types:["flow"],validChildren:["flow"]}),i.push({name:"heading",nodes:["h1","h2","h3","h4","h5","h6"],frameworks:["base"],html:"<h2>Heading</h2>",types:["heading","flow"],validChildren:["phrasing"],category:"typography",icon:"format-size",attributes:{types:{list:[{name:"h1",value:"h1"},{name:"h2",value:"h2"},{name:"h3",value:"h3"},{name:"h4",value:"h4"},{name:"h5",value:"h5"},{name:"h6",value:"h6"}],value:"h1",onAssign:function(e){let t=e.selected.node.nodeName.toLowerCase();for(let n=this.list.length-1;n>=0;n--)if(t==this.list[n].value)return this.value=this.list[n].value},onChange:function(e,t){let n=document.createElement(t);n.innerHTML=e.selected.node.innerHTML,e.selected.node.parentElement.replaceChild(n,e.selected.node),e.selected.node=n,e.repositionBox("selected")}}}}),i.push({name:"icon",nodes:["i"],frameworks:["base","bootstrap"],html:!1,types:["flow","phrasing"],validChildren:!1,category:!1,canDrag:!0,canModify:["text","attributes"],attributes:{size:{list:[{name:"Default",value:"default"},{name:"Large",value:"fa-lg"},{name:"2x",value:"fa-2x"},{name:"3x",value:"fa-3x"},{name:"4x",value:"fa-4x"},{name:"5x",value:"fa-5x"}],value:"default",onAssign:function(e){for(let t=this.list.length-1;t>=0;t--)if(e.selected.node.className.indexOf(this.list[t].value)>-1)return this.value=this.list[t].value},onChange:function(e,t){for(let n=this.list.length-1;n>=0;n--)this.list[n].value&&e.selected.node.classList.remove(this.list[n].value);e.selected.node.classList.add(t)}}},dragHelper:!0}),i.push({name:"generic",nodes:["em","strong","u","s","small"],frameworks:["base"],html:!1,types:["flow","phrasing"],validChildren:!1,category:!1,canDrag:!1,canModify:["text","attributes"]}),i.push({name:"label",nodes:["label"],frameworks:["base"],html:!1,types:["flow","phrasing"],validChildren:!1,category:!1,canDrag:!1,canModify:["text","attributes"]}),i.push({name:"svg",frameworks:["base"],nodes:["svg"]})},JxJJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var i=n("fXoL"),a=n("L317");let A=(()=>{class e{constructor(e){this.theme=e,this.animation="wave",this.variant="text",this.dark=this.theme.isDarkMode()}get pulsate(){return"pulsate"===this.animation}get wave(){return"wave"===this.animation}get avatar(){return"avatar"===this.variant}get text(){return"text"===this.variant}get rect(){return"rect"===this.variant}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(a.a))},e.\u0275cmp=i.Hb({type:e,selectors:[["skeleton"]],hostAttrs:["aria-busy","true","aria-valuemin","0","aria-valuemax","100","aria-valuetext","Loading...","role","progressbar"],hostVars:12,hostBindings:function(e,t){2&e&&i.Fb("dark",t.dark)("pulsate",t.pulsate)("wave",t.wave)("avatar",t.avatar)("text",t.text)("rect",t.rect)},inputs:{animation:"animation",variant:"variant"},decls:0,vars:0,template:function(e,t){},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:inline-block;overflow:hidden;position:relative;background-color:var(--be-divider-lighter);background-repeat:no-repeat;border-radius:4px;width:100%;height:100%;will-change:transform}.wave[_nghost-%COMP%]{-webkit-animation:wave 2s ease-in-out infinite;animation:wave 2s ease-in-out infinite;background-size:200px 100%;background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}.wave.dark[_nghost-%COMP%]{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.pulsate[_nghost-%COMP%]{-webkit-animation:pulse 1.5s ease-in-out infinite;animation:pulse 1.5s ease-in-out infinite;-webkit-animation-delay:.5s;animation-delay:.5s}.avatar[_nghost-%COMP%]{width:40px;height:40px;margin-right:10px;border-radius:4px;flex-shrink:0}.circle[_nghost-%COMP%]{border-radius:50%}.text[_nghost-%COMP%]{height:1.4rem;vertical-align:middle}.text[_nghost-%COMP%]:before{content:"\xa0"}@-webkit-keyframes wave{0%{background-position:-200px 0}to{background-position:calc(200px + 100%) 0}}@keyframes wave{0%{background-position:-200px 0}to{background-position:calc(200px + 100%) 0}}@-webkit-keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0}),e})()},QibW:function(e,t,n){"use strict";n.d(t,"a",(function(){return Q})),n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return x}));var i=n("fXoL"),a=n("FKr1"),A=n("8LU1"),r=n("3Pt+"),o=n("R1ws"),s=n("u47x"),c=n("0EQZ");const l=["input"],d=function(){return{enterDuration:150}},h=["*"],u=new i.r("mat-radio-default-options",{providedIn:"root",factory:function(){return{color:"accent"}}});let p=0;const g={provide:r.s,useExisting:Object(i.V)(()=>B),multi:!0};class f{constructor(e,t){this.source=e,this.value=t}}const b=new i.r("MatRadioGroup");let m=(()=>{class e{constructor(e){this._changeDetector=e,this._value=null,this._name="mat-radio-group-"+p++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new i.n}get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition="before"===e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=Object(A.c)(e),this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=Object(A.c)(e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(e=>{e.checked=this.value===e.value,e.checked&&(this._selected=e)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new f(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.h))},e.\u0275dir=i.Ib({type:e,inputs:{name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"}}),e})(),B=(()=>{class e extends m{}return e.\u0275fac=function(t){return w(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["mat-radio-group"]],contentQueries:function(e,t,n){var a;1&e&&i.Gb(n,Q,!0),2&e&&i.rc(a=i.bc())&&(t._radios=a)},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[i.Ab([g,{provide:b,useExisting:e}]),i.yb]}),e})();const w=i.Vb(B);class v{constructor(e){this._elementRef=e}}const C=Object(a.w)(Object(a.z)(v));let E=(()=>{class e extends C{constructor(e,t,n,a,A,r,o){super(t),this._changeDetector=n,this._focusMonitor=a,this._radioDispatcher=A,this._animationMode=r,this._providerOverride=o,this._uniqueId="mat-radio-"+ ++p,this.id=this._uniqueId,this.change=new i.n,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=e,this._removeUniqueSelectionListener=A.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(e){const t=Object(A.c)(e);this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(e){this._setDisabled(Object(A.c)(e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){this._required=Object(A.c)(e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(e){this._color=e}get inputId(){return(this.id||this._uniqueId)+"-input"}focus(e){this._focusMonitor.focusVia(this._inputElement,"keyboard",e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new f(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(e){e.stopPropagation()}_onInputChange(e){e.stopPropagation();const t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(m),i.Nb(i.l),i.Nb(i.h),i.Nb(s.h),i.Nb(c.c),i.Nb(String),i.Nb(void 0))},e.\u0275dir=i.Ib({type:e,viewQuery:function(e,t){var n;1&e&&i.Nc(l,!0),2&e&&i.rc(n=i.bc())&&(t._inputElement=n.first)},inputs:{id:"id",checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change"},features:[i.yb]}),e})(),Q=(()=>{class e extends E{constructor(e,t,n,i,a,A,r){super(e,t,n,i,a,A,r)}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(b,8),i.Nb(i.l),i.Nb(i.h),i.Nb(s.h),i.Nb(c.c),i.Nb(o.a,8),i.Nb(u,8))},e.\u0275cmp=i.Hb({type:e,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(e,t){1&e&&i.ac("focus",(function(){return t._inputElement.nativeElement.focus()})),2&e&&(i.Cb("tabindex",-1)("id",t.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),i.Fb("mat-radio-checked",t.checked)("mat-radio-disabled",t.disabled)("_mat-animation-noopable","NoopAnimations"===t._animationMode)("mat-primary","primary"===t.color)("mat-accent","accent"===t.color)("mat-warn","warn"===t.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[i.yb],ngContentSelectors:h,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input","cdk-visually-hidden",3,"id","checked","disabled","tabIndex","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(e,t){if(1&e&&(i.jc(),i.Tb(0,"label",0,1),i.Tb(2,"div",2),i.Ob(3,"div",3),i.Ob(4,"div",4),i.Tb(5,"input",5,6),i.ac("change",(function(e){return t._onInputChange(e)}))("click",(function(e){return t._onInputClick(e)})),i.Sb(),i.Tb(7,"div",7),i.Ob(8,"div",8),i.Sb(),i.Sb(),i.Tb(9,"div",9),i.Tb(10,"span",10),i.Hc(11,"\xa0"),i.Sb(),i.ic(12),i.Sb(),i.Sb()),2&e){const e=i.sc(1);i.Cb("for",t.inputId),i.Bb(5),i.kc("id",t.inputId)("checked",t.checked)("disabled",t.disabled)("tabIndex",t.tabIndex)("required",t.required),i.Cb("name",t.name)("value",t.value)("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),i.Bb(2),i.kc("matRippleTrigger",e)("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",i.nc(18,d)),i.Bb(2),i.Fb("mat-radio-label-before","before"==t.labelPosition)}},directives:[a.q],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(0.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5)}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}.mat-radio-label-content{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{bottom:0;left:50%}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}\n"],encapsulation:2,changeDetection:0}),e})(),x=(()=>{class e{}return e.\u0275mod=i.Lb({type:e}),e.\u0275inj=i.Kb({factory:function(t){return new(t||e)},imports:[[a.r,a.h],a.h]}),e})()},R9Cn:function(e,t,n){"use strict";n.d(t,"a",(function(){return G})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return z}));var i=n("fXoL"),a=n("ofXK");const A=["dialogPopup"],r=["hueSlider"],o=["alphaSlider"];function s(e,t){if(1&e&&i.Ob(0,"div"),2&e){const e=i.ec();i.Eb("arrow arrow-",e.cpUsePosition,""),i.Cc("top",e.arrowTop,"px")}}function c(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",26),i.ac("newValue",(function(t){return i.vc(e),i.ec().onColorChange(t)}))("dragStart",(function(){return i.vc(e),i.ec().onDragStart("saturation-lightness")}))("dragEnd",(function(){return i.vc(e),i.ec().onDragEnd("saturation-lightness")})),i.Ob(1,"div",13),i.Sb()}if(2&e){const e=i.ec();i.Cc("background-color",e.hueSliderColor),i.kc("rgX",1)("rgY",1),i.Bb(1),i.Cc("top",null==e.slider?null:e.slider.v,"px")("left",null==e.slider?null:e.slider.s,"px")}}function l(e,t){if(1&e){const e=i.Ub();i.Tb(0,"button",27),i.ac("click",(function(t){i.vc(e);const n=i.ec();return n.onAddPresetColor(t,n.selectedColor)})),i.Hc(1),i.Sb()}if(2&e){const e=i.ec();i.Db(e.cpAddColorButtonClass),i.kc("disabled",e.cpPresetColors&&e.cpPresetColors.length>=e.cpMaxPresetColorsLength),i.Bb(1),i.Jc(" ",e.cpAddColorButtonText," ")}}function d(e,t){1&e&&i.Ob(0,"div",28)}function h(e,t){if(1&e){const e=i.Ub();i.Tb(0,"input",34),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec(2).onAlphaInput(t)})),i.Sb()}if(2&e){const e=i.ec(2);i.kc("rg",1)("value",null==e.cmykText?null:e.cmykText.a)}}function u(e,t){1&e&&(i.Tb(0,"div"),i.Hc(1,"A"),i.Sb())}function p(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",29),i.Tb(1,"div",30),i.Tb(2,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onCyanInput(t)})),i.Sb(),i.Tb(3,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onMagentaInput(t)})),i.Sb(),i.Tb(4,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onYellowInput(t)})),i.Sb(),i.Tb(5,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onBlackInput(t)})),i.Sb(),i.Fc(6,h,1,2,"input",32),i.Sb(),i.Tb(7,"div",30),i.Tb(8,"div"),i.Hc(9,"C"),i.Sb(),i.Tb(10,"div"),i.Hc(11,"M"),i.Sb(),i.Tb(12,"div"),i.Hc(13,"Y"),i.Sb(),i.Tb(14,"div"),i.Hc(15,"K"),i.Sb(),i.Fc(16,u,2,0,"div",33),i.Sb(),i.Sb()}if(2&e){const e=i.ec();i.Cc("display",3!==e.format?"none":"block"),i.Bb(2),i.kc("rg",100)("value",null==e.cmykText?null:e.cmykText.c),i.Bb(1),i.kc("rg",100)("value",null==e.cmykText?null:e.cmykText.m),i.Bb(1),i.kc("rg",100)("value",null==e.cmykText?null:e.cmykText.y),i.Bb(1),i.kc("rg",100)("value",null==e.cmykText?null:e.cmykText.k),i.Bb(1),i.kc("ngIf","disabled"!==e.cpAlphaChannel),i.Bb(10),i.kc("ngIf","disabled"!==e.cpAlphaChannel)}}function g(e,t){if(1&e){const e=i.Ub();i.Tb(0,"input",34),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec(2).onAlphaInput(t)})),i.Sb()}if(2&e){const e=i.ec(2);i.kc("rg",1)("value",null==e.hslaText?null:e.hslaText.a)}}function f(e,t){1&e&&(i.Tb(0,"div"),i.Hc(1,"A"),i.Sb())}function b(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",35),i.Tb(1,"div",30),i.Tb(2,"input",36),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onHueInput(t)})),i.Sb(),i.Tb(3,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onSaturationInput(t)})),i.Sb(),i.Tb(4,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onLightnessInput(t)})),i.Sb(),i.Fc(5,g,1,2,"input",32),i.Sb(),i.Tb(6,"div",30),i.Tb(7,"div"),i.Hc(8,"H"),i.Sb(),i.Tb(9,"div"),i.Hc(10,"S"),i.Sb(),i.Tb(11,"div"),i.Hc(12,"L"),i.Sb(),i.Fc(13,f,2,0,"div",33),i.Sb(),i.Sb()}if(2&e){const e=i.ec();i.Cc("display",2!==e.format?"none":"block"),i.Bb(2),i.kc("rg",360)("value",null==e.hslaText?null:e.hslaText.h),i.Bb(1),i.kc("rg",100)("value",null==e.hslaText?null:e.hslaText.s),i.Bb(1),i.kc("rg",100)("value",null==e.hslaText?null:e.hslaText.l),i.Bb(1),i.kc("ngIf","disabled"!==e.cpAlphaChannel),i.Bb(8),i.kc("ngIf","disabled"!==e.cpAlphaChannel)}}function m(e,t){if(1&e){const e=i.Ub();i.Tb(0,"input",34),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec(2).onAlphaInput(t)})),i.Sb()}if(2&e){const e=i.ec(2);i.kc("rg",1)("value",null==e.rgbaText?null:e.rgbaText.a)}}function B(e,t){1&e&&(i.Tb(0,"div"),i.Hc(1,"A"),i.Sb())}function w(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",37),i.Tb(1,"div",30),i.Tb(2,"input",38),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onRedInput(t)})),i.Sb(),i.Tb(3,"input",38),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onGreenInput(t)})),i.Sb(),i.Tb(4,"input",38),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onBlueInput(t)})),i.Sb(),i.Fc(5,m,1,2,"input",32),i.Sb(),i.Tb(6,"div",30),i.Tb(7,"div"),i.Hc(8,"R"),i.Sb(),i.Tb(9,"div"),i.Hc(10,"G"),i.Sb(),i.Tb(11,"div"),i.Hc(12,"B"),i.Sb(),i.Fc(13,B,2,0,"div",33),i.Sb(),i.Sb()}if(2&e){const e=i.ec();i.Cc("display",1!==e.format?"none":"block"),i.Bb(2),i.kc("rg",255)("value",null==e.rgbaText?null:e.rgbaText.r),i.Bb(1),i.kc("rg",255)("value",null==e.rgbaText?null:e.rgbaText.g),i.Bb(1),i.kc("rg",255)("value",null==e.rgbaText?null:e.rgbaText.b),i.Bb(1),i.kc("ngIf","disabled"!==e.cpAlphaChannel),i.Bb(8),i.kc("ngIf","disabled"!==e.cpAlphaChannel)}}function v(e,t){if(1&e){const e=i.Ub();i.Tb(0,"input",34),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec(2).onAlphaInput(t)})),i.Sb()}if(2&e){const e=i.ec(2);i.kc("rg",1)("value",e.hexAlpha)}}function C(e,t){1&e&&(i.Tb(0,"div"),i.Hc(1,"A"),i.Sb())}function E(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",39),i.Tb(1,"div",30),i.Tb(2,"input",40),i.ac("blur",(function(){return i.vc(e),i.ec().onHexInput(null)}))("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onHexInput(t)})),i.Sb(),i.Fc(3,v,1,2,"input",32),i.Sb(),i.Tb(4,"div",30),i.Tb(5,"div"),i.Hc(6,"Hex"),i.Sb(),i.Fc(7,C,2,0,"div",33),i.Sb(),i.Sb()}if(2&e){const e=i.ec();i.Cc("display",0!==e.format?"none":"block"),i.Fb("hex-alpha","forced"===e.cpAlphaChannel),i.Bb(2),i.kc("value",e.hexText),i.Bb(1),i.kc("ngIf","forced"===e.cpAlphaChannel),i.Bb(4),i.kc("ngIf","forced"===e.cpAlphaChannel)}}function Q(e,t){if(1&e){const e=i.Ub();i.Tb(0,"input",34),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec(2).onAlphaInput(t)})),i.Sb()}if(2&e){const e=i.ec(2);i.kc("rg",1)("value",null==e.hslaText?null:e.hslaText.a)}}function x(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",41),i.Tb(1,"div",30),i.Tb(2,"input",31),i.ac("keyup.enter",(function(t){return i.vc(e),i.ec().onAcceptColor(t)}))("newValue",(function(t){return i.vc(e),i.ec().onValueInput(t)})),i.Sb(),i.Fc(3,Q,1,2,"input",32),i.Sb(),i.Tb(4,"div",30),i.Tb(5,"div"),i.Hc(6,"V"),i.Sb(),i.Tb(7,"div"),i.Hc(8,"A"),i.Sb(),i.Sb(),i.Sb()}if(2&e){const e=i.ec();i.Bb(2),i.kc("rg",100)("value",null==e.hslaText?null:e.hslaText.l),i.Bb(1),i.kc("ngIf","disabled"!==e.cpAlphaChannel)}}function y(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",42),i.Tb(1,"span",43),i.ac("click",(function(){return i.vc(e),i.ec().onFormatToggle(-1)})),i.Sb(),i.Tb(2,"span",43),i.ac("click",(function(){return i.vc(e),i.ec().onFormatToggle(1)})),i.Sb(),i.Sb()}}function U(e,t){if(1&e){const e=i.Ub();i.Tb(0,"span",50),i.ac("click",(function(t){i.vc(e);const n=i.ec().$implicit;return i.ec(3).onRemovePresetColor(t,n)})),i.Sb()}if(2&e){const e=i.ec(4);i.Db(e.cpRemoveColorButtonClass)}}function F(e,t){if(1&e){const e=i.Ub();i.Tb(0,"div",48),i.ac("click",(function(){i.vc(e);const n=t.$implicit;return i.ec(3).setColorFromString(n)})),i.Fc(1,U,1,3,"span",49),i.Sb()}if(2&e){const e=t.$implicit,n=i.ec(3);i.Cc("background-color",e),i.Bb(1),i.kc("ngIf",n.cpAddColorButton)}}function k(e,t){if(1&e&&(i.Tb(0,"div"),i.Fc(1,F,2,3,"div",47),i.Sb()),2&e){const e=i.ec(2);i.Db(e.cpPresetColorsClass),i.Bb(1),i.kc("ngForOf",e.cpPresetColors)}}function H(e,t){if(1&e&&(i.Tb(0,"div"),i.Hc(1),i.Sb()),2&e){const e=i.ec(2);i.Db(e.cpPresetEmptyMessageClass),i.Bb(1),i.Ic(e.cpPresetEmptyMessage)}}function S(e,t){if(1&e&&(i.Tb(0,"div",44),i.Ob(1,"hr"),i.Tb(2,"div",45),i.Hc(3),i.Sb(),i.Fc(4,k,2,4,"div",46),i.Fc(5,H,2,4,"div",46),i.Sb()),2&e){const e=i.ec();i.Bb(3),i.Ic(e.cpPresetLabel),i.Bb(1),i.kc("ngIf",null==e.cpPresetColors?null:e.cpPresetColors.length),i.Bb(1),i.kc("ngIf",!(null!=e.cpPresetColors&&e.cpPresetColors.length)&&e.cpAddColorButton)}}function _(e,t){if(1&e){const e=i.Ub();i.Tb(0,"button",53),i.ac("click",(function(t){return i.vc(e),i.ec(2).onCancelColor(t)})),i.Hc(1),i.Sb()}if(2&e){const e=i.ec(2);i.Db(e.cpCancelButtonClass),i.Bb(1),i.Ic(e.cpCancelButtonText)}}function T(e,t){if(1&e){const e=i.Ub();i.Tb(0,"button",53),i.ac("click",(function(t){return i.vc(e),i.ec(2).onAcceptColor(t)})),i.Hc(1),i.Sb()}if(2&e){const e=i.ec(2);i.Db(e.cpOKButtonClass),i.Bb(1),i.Ic(e.cpOKButtonText)}}function N(e,t){if(1&e&&(i.Tb(0,"div",51),i.Fc(1,_,2,4,"button",52),i.Fc(2,T,2,4,"button",52),i.Sb()),2&e){const e=i.ec();i.Bb(1),i.kc("ngIf",e.cpCancelButton),i.Bb(1),i.kc("ngIf",e.cpOKButton)}}var I=function(e){return e[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",e}({});class O{constructor(e,t,n,i){this.r=e,this.g=t,this.b=n,this.a=i}}class D{constructor(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i}}class P{constructor(e,t,n,i){this.h=e,this.s=t,this.l=n,this.a=i}}class R{constructor(e,t,n,i,a=1){this.c=e,this.m=t,this.y=n,this.k=i,this.a=a}}let K=(()=>{class e{constructor(){this.newValue=new i.n}inputChange(e){const t=e.target.value;if(void 0===this.rg)this.newValue.emit(t);else{const e=parseFloat(t);this.newValue.emit({v:e,rg:this.rg})}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=i.Ib({type:e,selectors:[["","text",""]],hostBindings:function(e,t){1&e&&i.ac("input",(function(e){return t.inputChange(e)}))},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}),e})(),M=(()=>{class e{constructor(e){this.elRef=e,this.dragEnd=new i.n,this.dragStart=new i.n,this.newValue=new i.n,this.listenerMove=e=>this.move(e),this.listenerStop=()=>this.stop()}mouseDown(e){this.start(e)}touchStart(e){this.start(e)}move(e){e.preventDefault(),this.setCursor(e)}start(e){this.setCursor(e),e.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(e){const t=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageX?e.pageX:e.touches[0].pageX)-t.left-window.pageXOffset}getY(e){const t=this.elRef.nativeElement.getBoundingClientRect();return(void 0!==e.pageY?e.pageY:e.touches[0].pageY)-t.top-window.pageYOffset}setCursor(e){const t=this.elRef.nativeElement.offsetWidth,n=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(e),t)),a=Math.max(0,Math.min(this.getY(e),n));void 0!==this.rgX&&void 0!==this.rgY?this.newValue.emit({s:i/t,v:1-a/n,rgX:this.rgX,rgY:this.rgY}):void 0===this.rgX&&void 0!==this.rgY?this.newValue.emit({v:a/n,rgY:this.rgY}):void 0!==this.rgX&&void 0===this.rgY&&this.newValue.emit({v:i/t,rgX:this.rgX})}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.l))},e.\u0275dir=i.Ib({type:e,selectors:[["","slider",""]],hostBindings:function(e,t){1&e&&i.ac("mousedown",(function(e){return t.mouseDown(e)}))("touchstart",(function(e){return t.touchStart(e)}))},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}),e})();class L{constructor(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i}}class V{constructor(e,t,n,i){this.h=e,this.s=t,this.v=n,this.a=i}}let z=(()=>{class e{constructor(){this.active=null}setActive(e){this.active&&this.active!==e&&"inline"!==this.active.cpDialogDisplay&&this.active.closeDialog(),this.active=e}hsva2hsla(e){const t=e.h,n=e.s,i=e.v,a=e.a;if(0===i)return new P(t,0,0,a);if(0===n&&1===i)return new P(t,1,1,a);{const e=i*(2-n)/2;return new P(t,i*n/(1-Math.abs(2*e-1)),e,a)}}hsla2hsva(e){const t=Math.min(e.h,1),n=Math.min(e.s,1),i=Math.min(e.l,1),a=Math.min(e.a,1);if(0===i)return new D(t,0,0,a);{const e=i+n*(1-Math.abs(2*i-1))/2;return new D(t,2*(e-i)/e,e,a)}}hsvaToRgba(e){let t,n,i;const a=e.h,A=e.s,r=e.v,o=e.a,s=Math.floor(6*a),c=6*a-s,l=r*(1-A),d=r*(1-c*A),h=r*(1-(1-c)*A);switch(s%6){case 0:t=r,n=h,i=l;break;case 1:t=d,n=r,i=l;break;case 2:t=l,n=r,i=h;break;case 3:t=l,n=d,i=r;break;case 4:t=h,n=l,i=r;break;case 5:t=r,n=l,i=d;break;default:t=0,n=0,i=0}return new O(t,n,i,o)}cmykToRgb(e){return new O((1-e.c)*(1-e.k),(1-e.m)*(1-e.k),(1-e.y)*(1-e.k),e.a)}rgbaToCmyk(e){const t=1-Math.max(e.r,e.g,e.b);return 1===t?new R(0,0,0,1,e.a):new R((1-e.r-t)/(1-t),(1-e.g-t)/(1-t),(1-e.b-t)/(1-t),t,e.a)}rgbaToHsva(e){let t,n;const i=Math.min(e.r,1),a=Math.min(e.g,1),A=Math.min(e.b,1),r=Math.min(e.a,1),o=Math.max(i,a,A),s=Math.min(i,a,A),c=o,l=o-s;if(n=0===o?0:l/o,o===s)t=0;else{switch(o){case i:t=(a-A)/l+(a<A?6:0);break;case a:t=(A-i)/l+2;break;case A:t=(i-a)/l+4;break;default:t=0}t/=6}return new D(t,n,c,r)}rgbaToHex(e,t){let n="#"+(1<<24|e.r<<16|e.g<<8|e.b).toString(16).substr(1);return t&&(n+=(256|Math.round(255*e.a)).toString(16).substr(1)),n}normalizeCMYK(e){return new R(e.c/100,e.m/100,e.y/100,e.k/100,e.a)}denormalizeCMYK(e){return new R(Math.floor(100*e.c),Math.floor(100*e.m),Math.floor(100*e.y),Math.floor(100*e.k),e.a)}denormalizeRGBA(e){return new O(Math.round(255*e.r),Math.round(255*e.g),Math.round(255*e.b),e.a)}stringToHsva(e="",t=!1){let n=null;e=(e||"").toLowerCase();const i=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return new O(parseInt(e[2],10)/255,parseInt(e[3],10)/255,parseInt(e[4],10)/255,isNaN(parseFloat(e[5]))?1:parseFloat(e[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(e){return new P(parseInt(e[2],10)/360,parseInt(e[3],10)/100,parseInt(e[4],10)/100,isNaN(parseFloat(e[5]))?1:parseFloat(e[5]))}}];i.push(t?{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(e){return new O(parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255,parseInt(e[4]||"FF",16)/255)}}:{re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(e){return new O(parseInt(e[1],16)/255,parseInt(e[2],16)/255,parseInt(e[3],16)/255,1)}}),i.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(e){return new O(parseInt(e[1]+e[1],16)/255,parseInt(e[2]+e[2],16)/255,parseInt(e[3]+e[3],16)/255,1)}});for(const a in i)if(i.hasOwnProperty(a)){const t=i[a],A=t.re.exec(e),r=A&&t.parse(A);if(r)return r instanceof O?n=this.rgbaToHsva(r):r instanceof P&&(n=this.hsla2hsva(r)),n}return n}outputFormat(e,t,n){switch("auto"===t&&(t=e.a<1?"rgba":"hex"),t){case"hsla":const t=this.hsva2hsla(e),i=new P(Math.round(360*t.h),Math.round(100*t.s),Math.round(100*t.l),Math.round(100*t.a)/100);return e.a<1||"always"===n?"hsla("+i.h+","+i.s+"%,"+i.l+"%,"+i.a+")":"hsl("+i.h+","+i.s+"%,"+i.l+"%)";case"rgba":const a=this.denormalizeRGBA(this.hsvaToRgba(e));return e.a<1||"always"===n?"rgba("+a.r+","+a.g+","+a.b+","+Math.round(100*a.a)/100+")":"rgb("+a.r+","+a.g+","+a.b+")";default:const A="always"===n||"forced"===n;return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(e)),A)}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=i.Jb({token:e,factory:e.\u0275fac}),e})(),X=(()=>{class e{constructor(e,t,n){this.elRef=e,this.cdRef=t,this.service=n,this.isIE10=!1,this.dialogArrowSize=10,this.dialogArrowOffset=15,this.dialogInputFields=[I.HEX,I.RGBA,I.HSLA,I.CMYK],this.useRootViewContainer=!1}handleEsc(e){this.show&&"popup"===this.cpDialogDisplay&&this.onCancelColor(e)}handleEnter(e){this.show&&"popup"===this.cpDialogDisplay&&this.onAcceptColor(e)}ngOnInit(){this.slider=new L(0,0,0,0),this.sliderDimMax=new V(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.format=this.cpCmykEnabled?I.CMYK:"rgba"===this.cpOutputFormat?I.RGBA:"hsla"===this.cpOutputFormat?I.HSLA:I.HEX,this.listenerMouseDown=e=>{this.onMouseDown(e)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){230===this.cpWidth&&"inline"!==this.cpDialogDisplay||(this.sliderDimMax=new V(this.hueSlider.nativeElement.offsetWidth||140,this.cpWidth,130,this.alphaSlider.nativeElement.offsetWidth||140),this.updateColorPicker(!1),this.cdRef.detectChanges())}openDialog(e,t=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(e),this.setColorFromString(e,t),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(e,t,n,i,a,A,r,o,s,c,l,d,h,u,p,g,f,b,m,B,w,v,C,E,Q,x,y,U,F,k,H,S,_,T,N){this.setInitialColor(n),this.setColorMode(o),this.isIE10=10===function(){let e="";"undefined"!=typeof navigator&&(e=navigator.userAgent.toLowerCase());const t=e.indexOf("msie ");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}(),this.directiveInstance=e,this.directiveElementRef=t,this.cpDisableInput=d,this.cpCmykEnabled=s,this.cpAlphaChannel=c,this.cpOutputFormat=l,this.cpDialogDisplay=A,this.cpIgnoredElements=h,this.cpSaveClickOutside=u,this.cpCloseClickOutside=p,this.useRootViewContainer=g,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(a,10),this.cpPosition=f,this.cpPositionOffset=parseInt(b,10),this.cpOKButton=x,this.cpOKButtonText=U,this.cpOKButtonClass=y,this.cpCancelButton=F,this.cpCancelButtonText=H,this.cpCancelButtonClass=k,this.fallbackColor=r||"#fff",this.setPresetConfig(B,w),this.cpPresetColorsClass=v,this.cpMaxPresetColorsLength=C,this.cpPresetEmptyMessage=E,this.cpPresetEmptyMessageClass=Q,this.cpAddColorButton=S,this.cpAddColorButtonText=T,this.cpAddColorButtonClass=_,this.cpRemoveColorButtonClass=N,m||(this.dialogArrowOffset=0),"inline"===A&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),"hex"===l&&"always"!==c&&"forced"!==c&&(this.cpAlphaChannel="disabled")}setColorMode(e){switch(e.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(e){this.initialColor=e}setPresetConfig(e,t){this.cpPresetLabel=e,this.cpPresetColors=t}setColorFromString(e,t=!0,n=!0){let i;"always"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel?(i=this.service.stringToHsva(e,!0),i||this.hsva||(i=this.service.stringToHsva(e,!1))):i=this.service.stringToHsva(e,!1),i||this.hsva||(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,"hex"===this.cpOutputFormat&&"disabled"===this.cpAlphaChannel&&(this.hsva.a=1),this.updateColorPicker(t,n))}onResize(){"fixed"===this.position?this.setDialogPosition():"inline"!==this.cpDialogDisplay&&this.closeColorPicker()}onDragEnd(e){this.directiveInstance.sliderDragEnd({slider:e,color:this.outputColor})}onDragStart(e){this.directiveInstance.sliderDragStart({slider:e,color:this.outputColor})}onMouseDown(e){!this.show||this.isIE10||"popup"!==this.cpDialogDisplay||e.target===this.directiveElementRef.nativeElement||this.isDescendant(this.elRef.nativeElement,e.target)||this.isDescendant(this.directiveElementRef.nativeElement,e.target)||0!==this.cpIgnoredElements.filter(t=>t===e.target).length||(this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker())}onAcceptColor(e){e.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),"popup"===this.cpDialogDisplay&&this.closeColorPicker()}onCancelColor(e){this.hsva=null,e.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),"popup"===this.cpDialogDisplay&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onFormatToggle(e){const t=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),n=((this.dialogInputFields.indexOf(this.format)+e)%t+t)%t;this.format=this.dialogInputFields[n]}onColorChange(e){this.hsva.s=e.s/e.rgX,this.hsva.v=e.v/e.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(e){this.hsva.h=e.v/e.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(e){this.hsva.v=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(e){this.hsva.a=e.v/e.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(e){if(null===e)this.updateColorPicker();else{e&&"#"!==e[0]&&(e="#"+e);let t=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;"always"===this.cpAlphaChannel&&(t=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);const n=t.test(e);n&&(e.length<5&&(e="#"+e.substring(1).split("").map(e=>e+e).join("")),"forced"===this.cpAlphaChannel&&(e+=Math.round(255*this.hsva.a).toString(16)),this.setColorFromString(e,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:n,value:e,color:this.outputColor})}}onRedInput(e){const t=this.service.hsvaToRgba(this.hsva),n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(t.r=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:n,value:t.r,color:this.outputColor})}onBlueInput(e){const t=this.service.hsvaToRgba(this.hsva),n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(t.b=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:n,value:t.b,color:this.outputColor})}onGreenInput(e){const t=this.service.hsvaToRgba(this.hsva),n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(t.g=e.v/e.rg,this.hsva=this.service.rgbaToHsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:n,value:t.g,color:this.outputColor})}onHueInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.h=e.v/e.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:t,value:this.hsva.h,color:this.outputColor})}onValueInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.v=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:t,value:this.hsva.v,color:this.outputColor})}onAlphaInput(e){const t=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;t&&(this.hsva.a=e.v/e.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:t,value:this.hsva.a,color:this.outputColor})}onLightnessInput(e){const t=this.service.hsva2hsla(this.hsva),n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(t.l=e.v/e.rg,this.hsva=this.service.hsla2hsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:n,value:t.l,color:this.outputColor})}onSaturationInput(e){const t=this.service.hsva2hsla(this.hsva),n=!isNaN(e.v)&&e.v>=0&&e.v<=e.rg;n&&(t.s=e.v/e.rg,this.hsva=this.service.hsla2hsva(t),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:n,value:t.s,color:this.outputColor})}onCyanInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.c=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.m=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.y=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(e){!isNaN(e.v)&&e.v>=0&&e.v<=e.rg&&(this.cmyk.k=e.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(e,t){e.stopPropagation(),this.cpPresetColors.filter(e=>e===t).length||(this.cpPresetColors=this.cpPresetColors.concat(t),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(e,t){e.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(e=>e!==t),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||(document.addEventListener("mousedown",this.listenerMouseDown),document.addEventListener("touchstart",this.listenerMouseDown)),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(document.removeEventListener("mousedown",this.listenerMouseDown),document.removeEventListener("touchstart",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(e=!0,t=!0,n=!1){if(this.sliderDimMax){let i,a,A;2===this.cpColorMode&&(this.hsva.s=0);const r=this.outputColor;if(a=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(n?(A=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(A)):(A=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(A))),A=this.service.denormalizeRGBA(A),this.sliderH=this.hsva.h):A=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new D(this.sliderH||this.hsva.h,1,1,1))),t&&(this.hslaText=new P(Math.round(360*a.h),Math.round(100*a.s),Math.round(100*a.l),Math.round(100*a.a)/100),this.rgbaText=new O(A.r,A.g,A.b,Math.round(100*A.a)/100),this.cpCmykEnabled&&(this.cmykText=new R(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(100*this.cmyk.a)/100)),this.hexText=this.service.rgbaToHex(A,"always"===this.cpAlphaChannel),this.hexAlpha=this.rgbaText.a),"auto"===this.cpOutputFormat&&this.format!==I.RGBA&&this.format!==I.CMYK&&this.hsva.a<1&&(this.format=this.hsva.a<1?I.RGBA:I.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+A.r+","+A.g+","+A.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==I.CMYK)this.cmykColor="";else if("always"===this.cpAlphaChannel||"enabled"===this.cpAlphaChannel||"forced"===this.cpAlphaChannel){const e=Math.round(100*this.cmyk.a)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${e})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new L((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),e&&r!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if("inline"===this.cpDialogDisplay)this.position="relative";else{let e,t="static",n="",i=null,a=null,A=this.directiveElementRef.nativeElement.parentNode;const r=this.dialogElement.nativeElement.offsetHeight;for(;null!==A&&"HTML"!==A.tagName;){if(e=window.getComputedStyle(A),t=e.getPropertyValue("position"),n=e.getPropertyValue("transform"),"static"!==t&&null===i&&(i=A),n&&"none"!==n&&null===a&&(a=A),"fixed"===t){i=a;break}A=A.parentNode}const o=this.createDialogBox(this.directiveElementRef.nativeElement,"fixed"!==t);if(this.useRootViewContainer||"fixed"===t&&(!i||i instanceof HTMLUnknownElement))this.top=o.top,this.left=o.left;else{null===i&&(i=A);const e=this.createDialogBox(i,"fixed"!==t);this.top=o.top-e.top,this.left=o.left-e.left}"fixed"===t&&(this.position="fixed");let s=this.cpPosition;if("auto"===this.cpPosition){let e="right",t="bottom";const n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight,window.innerHeight||0);this.left+this.cpWidth>n&&(e="left"),this.top+r>i&&(t="top"),s=e+"-"+t}this.cpUsePosition=s,"top"===s?(this.arrowTop=r-1,this.top-=r+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*o.width-this.dialogArrowOffset):"bottom"===s?(this.top+=o.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*o.width-this.dialogArrowOffset):"top-left"===s||"left-top"===s?(this.top-=r-o.height+o.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset):"top-right"===s||"right-top"===s?(this.top-=r-o.height+o.height*this.cpPositionOffset/100,this.left+=o.width+this.dialogArrowSize-2-this.dialogArrowOffset):"left"===s||"bottom-left"===s||"left-bottom"===s?(this.top+=o.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2):(this.top+=o.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=o.width+this.dialogArrowSize-2)}}isDescendant(e,t){let n=t.parentNode;for(;null!==n;){if(n===e)return!0;n=n.parentNode}return!1}createDialogBox(e,t){return{top:e.getBoundingClientRect().top+(t?window.pageYOffset:0),left:e.getBoundingClientRect().left+(t?window.pageXOffset:0),width:e.offsetWidth,height:e.offsetHeight}}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.l),i.Nb(i.h),i.Nb(z))},e.\u0275cmp=i.Hb({type:e,selectors:[["color-picker"]],viewQuery:function(e,t){var n;1&e&&(i.Bc(A,!0),i.Bc(r,!0),i.Bc(o,!0)),2&e&&(i.rc(n=i.bc())&&(t.dialogElement=n.first),i.rc(n=i.bc())&&(t.hueSlider=n.first),i.rc(n=i.bc())&&(t.alphaSlider=n.first))},hostBindings:function(e,t){1&e&&i.ac("keyup.esc",(function(e){return t.handleEsc(e)}),!1,i.uc)("keyup.enter",(function(e){return t.handleEnter(e)}),!1,i.uc)},decls:28,vars:47,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"]],template:function(e,t){1&e&&(i.Tb(0,"div",0,1),i.ac("click",(function(e){return e.stopPropagation()})),i.Fc(2,s,1,5,"div",2),i.Fc(3,c,2,8,"div",3),i.Tb(4,"div",4),i.Tb(5,"div",5),i.Ob(6,"div",6),i.Ob(7,"div",7),i.Fc(8,l,2,5,"button",8),i.Sb(),i.Tb(9,"div",9),i.Fc(10,d,1,0,"div",10),i.Tb(11,"div",11,12),i.ac("newValue",(function(e){return t.onHueChange(e)}))("dragStart",(function(){return t.onDragStart("hue")}))("dragEnd",(function(){return t.onDragEnd("hue")})),i.Ob(13,"div",13),i.Sb(),i.Tb(14,"div",14,15),i.ac("newValue",(function(e){return t.onValueChange(e)}))("dragStart",(function(){return t.onDragStart("value")}))("dragEnd",(function(){return t.onDragEnd("value")})),i.Ob(16,"div",13),i.Sb(),i.Tb(17,"div",16,17),i.ac("newValue",(function(e){return t.onAlphaChange(e)}))("dragStart",(function(){return t.onDragStart("alpha")}))("dragEnd",(function(){return t.onDragEnd("alpha")})),i.Ob(19,"div",13),i.Sb(),i.Sb(),i.Sb(),i.Fc(20,p,17,12,"div",18),i.Fc(21,b,14,10,"div",19),i.Fc(22,w,14,10,"div",20),i.Fc(23,E,8,7,"div",21),i.Fc(24,x,9,3,"div",22),i.Fc(25,y,3,0,"div",23),i.Fc(26,S,6,3,"div",24),i.Fc(27,N,3,2,"div",25),i.Sb()),2&e&&(i.Cc("display",t.show?"block":"none")("visibility",t.hidden?"hidden":"visible")("top",t.top,"px")("left",t.left,"px")("position",t.position)("height",t.cpHeight,"px")("width",t.cpWidth,"px"),i.Fb("open",t.show),i.Bb(2),i.kc("ngIf","popup"==t.cpDialogDisplay),i.Bb(1),i.kc("ngIf",1===(t.cpColorMode||1)),i.Bb(4),i.Cc("background-color",t.selectedColor),i.Bb(1),i.kc("ngIf",t.cpAddColorButton),i.Bb(2),i.kc("ngIf","disabled"===t.cpAlphaChannel),i.Bb(1),i.Cc("display",1===(t.cpColorMode||1)?"block":"none"),i.kc("rgX",1),i.Bb(2),i.Cc("left",null==t.slider?null:t.slider.h,"px"),i.Bb(1),i.Cc("display",2===(t.cpColorMode||1)?"block":"none"),i.kc("rgX",1),i.Bb(2),i.Cc("right",null==t.slider?null:t.slider.v,"px"),i.Bb(1),i.Cc("display","disabled"===t.cpAlphaChannel?"none":"block")("background-color",t.alphaSliderColor),i.kc("rgX",1),i.Bb(2),i.Cc("left",null==t.slider?null:t.slider.a,"px"),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&1===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&1===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&1===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&1===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&2===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",!t.cpDisableInput&&1===(t.cpColorMode||1)),i.Bb(1),i.kc("ngIf",(null==t.cpPresetColors?null:t.cpPresetColors.length)||t.cpAddColorButton),i.Bb(1),i.kc("ngIf",t.cpOKButton||t.cpCancelButton))},directives:[a.t,M,K,a.s],styles:['.color-picker{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;background-color:#fff;border:1px solid #777;cursor:default;height:auto;position:absolute;user-select:none;width:230px;z-index:1000}.color-picker *{box-sizing:border-box;font-size:11px;margin:0}.color-picker input{color:#000;font-size:13px;height:26px;min-width:0;text-align:center;width:0}.color-picker input:-moz-submit-invalid,.color-picker input:-moz-ui-invalid,.color-picker input:invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.color-picker .arrow{border-style:solid;height:0;position:absolute;width:0;z-index:999999}.color-picker .arrow.arrow-top{border-color:#777 transparent transparent;border-width:10px 5px;left:8px}.color-picker .arrow.arrow-bottom{border-color:transparent transparent #777;border-width:10px 5px;left:8px;top:-20px}.color-picker .arrow.arrow-left-top,.color-picker .arrow.arrow-top-left{border-color:transparent transparent transparent #777;border-width:5px 10px;bottom:8px;right:-21px}.color-picker .arrow.arrow-right-top,.color-picker .arrow.arrow-top-right{border-color:transparent #777 transparent transparent;border-width:5px 10px;bottom:8px;left:-20px}.color-picker .arrow.arrow-bottom-left,.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom{border-color:transparent transparent transparent #777;border-width:5px 10px;right:-21px;top:8px}.color-picker .arrow.arrow-bottom-right,.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom{border-color:transparent #777 transparent transparent;border-width:5px 10px;left:-20px;top:8px}.color-picker .cursor{border:2px solid #222;border-radius:50%;cursor:default;height:16px;position:relative;width:16px}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{padding:16px 8px;position:relative}.color-picker .right{flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{color:#555;font-size:11px;overflow:hidden;padding:4px;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.color-picker .preset-area .preset-color{border:1px solid #a9a9a9;border-radius:25%;cursor:pointer;display:inline-block;height:18px;margin:4px 6px 8px;position:relative;width:18px}.color-picker .preset-area .preset-empty-message{font-style:italic;margin-bottom:8px;margin-top:4px;min-height:18px;text-align:center}.color-picker .hex-text{font-size:11px;padding:4px 8px;width:100%}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{clear:left;color:#555;flex:1 1 auto;float:left;text-align:center}.color-picker .hex-text .box input{border:1px solid #a9a9a9;flex:1 1 auto;padding:1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{font-size:11px;padding:4px 8px;width:100%}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{color:#555;flex:1 1 auto;margin-right:8px;text-align:center}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{border:1px solid #a9a9a9;flex:1;float:left;margin:0 8px 0 0;padding:1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC");direction:ltr}.color-picker .hue,.color-picker .value{background-size:100% 100%;border:none;cursor:pointer;height:16px;margin-bottom:16px;width:100%}.color-picker .value{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=");direction:rtl}.color-picker .alpha{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==");background-size:100% 100%;border:none;cursor:pointer;direction:ltr;height:16px;width:100%}.color-picker .type-policy{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==");background-position:50%;background-repeat:no-repeat;background-size:8px 16px;height:24px;position:absolute;right:12px;top:218px;width:16px}.color-picker .type-policy .type-policy-arrow{display:block;height:50%;width:100%}.color-picker .selected-color{border:1px solid #a9a9a9;border-radius:50%;height:40px;left:8px;position:absolute;top:16px;width:40px}.color-picker .selected-color-background{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC");border-radius:50%;height:40px;width:40px}.color-picker .saturation-lightness{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==");background-size:100% 100%;border:none;cursor:pointer;direction:ltr;height:130px;touch-action:manipulation;width:100%}.color-picker .cp-add-color-button-class{background:transparent;border:0;cursor:pointer;display:inline;margin:3px -3px;padding:0;position:absolute}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{color:#999;cursor:not-allowed}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{background:#fff;border-radius:50%;box-shadow:1px 1px 5px #333;cursor:pointer;display:block;height:10px;position:absolute;right:-5px;text-align:center;top:-5px;width:10px}.color-picker .cp-remove-color-button-class:before{bottom:3.5px;content:"x";display:inline-block;font-size:10px;position:relative}'],encapsulation:2}),e})(),G=(()=>{class e{constructor(e,t,n,a,A,r){this.injector=e,this.cfr=t,this.appRef=n,this.vcRef=a,this.elRef=A,this._service=r,this.dialogCreated=!1,this.ignoreChanges=!1,this.viewAttachedToAppRef=!1,this.cpWidth="230px",this.cpHeight="auto",this.cpToggle=!1,this.cpDisabled=!1,this.cpIgnoredElements=[],this.cpFallbackColor="",this.cpColorMode="color",this.cpCmykEnabled=!1,this.cpOutputFormat="auto",this.cpAlphaChannel="enabled",this.cpDisableInput=!1,this.cpDialogDisplay="popup",this.cpSaveClickOutside=!0,this.cpCloseClickOutside=!0,this.cpUseRootViewContainer=!1,this.cpPosition="auto",this.cpPositionOffset="0%",this.cpPositionRelativeToArrow=!1,this.cpOKButton=!1,this.cpOKButtonText="OK",this.cpOKButtonClass="cp-ok-button-class",this.cpCancelButton=!1,this.cpCancelButtonText="Cancel",this.cpCancelButtonClass="cp-cancel-button-class",this.cpPresetLabel="Preset colors",this.cpPresetColorsClass="cp-preset-colors-class",this.cpMaxPresetColorsLength=6,this.cpPresetEmptyMessage="No colors added",this.cpPresetEmptyMessageClass="preset-empty-message",this.cpAddColorButton=!1,this.cpAddColorButtonText="Add color",this.cpAddColorButtonClass="cp-add-color-button-class",this.cpRemoveColorButtonClass="cp-remove-color-button-class",this.cpInputChange=new i.n(!0),this.cpToggleChange=new i.n(!0),this.cpSliderChange=new i.n(!0),this.cpSliderDragEnd=new i.n(!0),this.cpSliderDragStart=new i.n(!0),this.colorPickerOpen=new i.n(!0),this.colorPickerClose=new i.n(!0),this.colorPickerCancel=new i.n(!0),this.colorPickerSelect=new i.n(!0),this.colorPickerChange=new i.n(!1),this.cpCmykColorChange=new i.n(!0),this.cpPresetColorsChange=new i.n(!0)}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(e){this.inputChange(e)}ngOnDestroy(){null!=this.cmpRef&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(e){e.cpToggle&&!this.cpDisabled&&(e.cpToggle.currentValue?this.openDialog():e.cpToggle.currentValue||this.closeDialog()),e.colorPicker&&(this.dialog&&!this.ignoreChanges&&("inline"===this.cpDialogDisplay&&this.dialog.setInitialColor(e.colorPicker.currentValue),this.dialog.setColorFromString(e.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(e.cpPresetLabel||e.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let e=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&"inline"!==this.cpDialogDisplay){const t=this.injector.get(this.appRef.componentTypes[0],i.s.NULL);t!==i.s.NULL?(e=t.vcRef||t.viewContainerRef||this.vcRef,e===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}const t=this.cfr.resolveComponentFactory(X);if(this.viewAttachedToAppRef)this.cmpRef=t.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{const n=i.F.fromResolvedProviders([],e.parentInjector);this.cmpRef=e.createComponent(t,0,n,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass),this.dialog=this.cmpRef.instance,this.vcRef!==e&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&"popup"===this.cpDialogDisplay&&this.dialog.closeDialog()}cmykChanged(e){this.cpCmykColorChange.emit(e)}stateChanged(e){this.cpToggleChange.emit(e),e?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(e,t=!0){this.ignoreChanges=t,this.colorPickerChange.emit(e)}colorSelected(e){this.colorPickerSelect.emit(e)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){const e=this.elRef.nativeElement,t=this.cpIgnoredElements.filter(t=>t===e);this.cpDisabled||t.length||("undefined"!=typeof document&&e===document.activeElement?this.openDialog():this.dialog&&this.dialog.show?this.closeDialog():this.openDialog())}inputChange(e){this.dialog?this.dialog.setColorFromString(e.target.value,!0):(this.colorPicker=e.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(e){this.cpInputChange.emit(e)}sliderChanged(e){this.cpSliderChange.emit(e)}sliderDragEnd(e){this.cpSliderDragEnd.emit(e)}sliderDragStart(e){this.cpSliderDragStart.emit(e)}presetColorsChanged(e){this.cpPresetColorsChange.emit(e)}}return e.\u0275fac=function(t){return new(t||e)(i.Nb(i.s),i.Nb(i.j),i.Nb(i.g),i.Nb(i.R),i.Nb(i.l),i.Nb(z))},e.\u0275dir=i.Ib({type:e,selectors:[["","colorPicker",""]],hostBindings:function(e,t){1&e&&i.ac("click",(function(){return t.handleClick()}))("focus",(function(){return t.handleFocus()}))("input",(function(e){return t.handleInput(e)}))},inputs:{cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpPresetLabel:"cpPresetLabel",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",colorPicker:"colorPicker",cpPresetColors:"cpPresetColors"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[i.zb]}),e})(),j=(()=>{class e{}return e.\u0275mod=i.Lb({type:e}),e.\u0275inj=i.Kb({factory:function(t){return new(t||e)},providers:[z],imports:[[a.c]]}),e})()},WvtK:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:5},{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:5}]},XhcP:function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return K})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return z})),n.d(t,"f",(function(){return M})),n.d(t,"g",(function(){return G}));var i=n("nLfN"),a=n("vxfF"),A=n("ofXK"),r=n("fXoL"),o=n("FKr1"),s=n("8LU1"),c=n("FtGj"),l=n("XNiG"),d=n("xgIS"),h=n("VRyK"),u=n("pLZG"),p=n("lJxs"),g=n("1G5W"),f=n("/uUt"),b=n("IzEk"),m=n("JX91"),B=n("Kj3r"),w=n("R0Ic"),v=n("R1ws"),C=n("u47x"),E=n("cH1L");const Q=["*"];function x(e,t){if(1&e){const e=r.Ub();r.Tb(0,"div",2),r.ac("click",(function(){return r.vc(e),r.ec()._onBackdropClicked()})),r.Sb()}if(2&e){const e=r.ec();r.Fb("mat-drawer-shown",e._isShowingBackdrop())}}function y(e,t){1&e&&(r.Tb(0,"mat-drawer-content"),r.ic(1,2),r.Sb())}const U=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],F=["mat-drawer","mat-drawer-content","*"];function k(e,t){if(1&e){const e=r.Ub();r.Tb(0,"div",2),r.ac("click",(function(){return r.vc(e),r.ec()._onBackdropClicked()})),r.Sb()}if(2&e){const e=r.ec();r.Fb("mat-drawer-shown",e._isShowingBackdrop())}}function H(e,t){1&e&&(r.Tb(0,"mat-sidenav-content",3),r.ic(1,2),r.Sb())}const S=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_=["mat-sidenav","mat-sidenav-content","*"],T=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",N={transformDrawer:Object(w.m)("transform",[Object(w.j)("open, open-instant",Object(w.k)({transform:"none",visibility:"visible"})),Object(w.j)("void",Object(w.k)({"box-shadow":"none",visibility:"hidden"})),Object(w.l)("void => open-instant",Object(w.e)("0ms")),Object(w.l)("void <=> open, open-instant => void",Object(w.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])};function I(e){throw Error(`A drawer was already declared for 'position="${e}"'`)}const O=new r.r("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),D=new r.r("MAT_DRAWER_CONTAINER");let P=(()=>{class e extends a.a{constructor(e,t,n,i,a){super(n,i,a),this._changeDetectorRef=e,this._container=t}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return e.\u0275fac=function(t){return new(t||e)(r.Nb(r.h),r.Nb(Object(r.V)(()=>K)),r.Nb(r.l),r.Nb(a.c),r.Nb(r.A))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(e,t){2&e&&r.Cc("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[r.yb],ngContentSelectors:Q,decls:1,vars:0,template:function(e,t){1&e&&(r.jc(),r.ic(0))},encapsulation:2,changeDetection:0}),e})(),R=(()=>{class e{constructor(e,t,n,i,a,A,o){this._elementRef=e,this._focusTrapFactory=t,this._focusMonitor=n,this._platform=i,this._ngZone=a,this._doc=A,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new l.a,this._animationEnd=new l.a,this._animationState="void",this.openedChange=new r.n(!0),this._openedStream=this.openedChange.pipe(Object(u.a)(e=>e),Object(p.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(u.a)(e=>!e),Object(p.a)(()=>{})),this._destroyed=new l.a,this.onPositionChanged=new r.n,this._modeChanged=new l.a,this.openedChange.subscribe(e=>{e?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(d.a)(this._elementRef.nativeElement,"keydown").pipe(Object(u.a)(e=>e.keyCode===c.g&&!this.disableClose&&!Object(c.s)(e)),Object(g.a)(this._destroyed)).subscribe(e=>this._ngZone.run(()=>{this.close(),e.stopPropagation(),e.preventDefault()}))}),this._animationEnd.pipe(Object(f.a)((e,t)=>e.fromState===t.fromState&&e.toState===t.toState)).subscribe(e=>{const{fromState:t,toState:n}=e;(0===n.indexOf("open")&&"void"===t||"void"===n&&0===t.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(e){(e="end"===e?"end":"start")!=this._position&&(this._position=e,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Object(s.c)(e)}get autoFocus(){const e=this._autoFocus;return null==e?"side"!==this.mode:e}set autoFocus(e){this._autoFocus=Object(s.c)(e)}get opened(){return this._opened}set opened(e){this.toggle(Object(s.c)(e))}get openedStart(){return this._animationStarted.pipe(Object(u.a)(e=>e.fromState!==e.toState&&0===e.toState.indexOf("open")),Object(p.a)(()=>{}))}get closedStart(){return this._animationStarted.pipe(Object(u.a)(e=>e.fromState!==e.toState&&"void"===e.toState),Object(p.a)(()=>{}))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(e=>{e||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var e;const t=null===(e=this._doc)||void 0===e?void 0:e.activeElement;return!!t&&this._elementRef.nativeElement.contains(t)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(e=!this.opened,t){return this._setOpen(e,!e&&this._isFocusWithinDrawer(),t)}_setOpen(e,t,n="program"){return this._opened=e,e?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",t&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(e=>{this.openedChange.pipe(Object(b.a)(1)).subscribe(t=>e(t?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(e){this._animationStarted.next(e)}_animationDoneListener(e){this._animationEnd.next(e)}}return e.\u0275fac=function(t){return new(t||e)(r.Nb(r.l),r.Nb(C.i),r.Nb(C.h),r.Nb(i.a),r.Nb(r.A),r.Nb(A.e,8),r.Nb(D,8))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(e,t){1&e&&r.Dc("@transform.start",(function(e){return t._animationStartListener(e)}))("@transform.done",(function(e){return t._animationDoneListener(e)})),2&e&&(r.Cb("align",null),r.Ec("@transform",t._animationState),r.Fb("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",onPositionChanged:"positionChanged",openedStart:"openedStart",closedStart:"closedStart"},exportAs:["matDrawer"],ngContentSelectors:Q,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(r.jc(),r.Tb(0,"div",0),r.ic(1),r.Sb())},encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),e})(),K=(()=>{class e{constructor(e,t,n,i,a,A=!1,o){this._dir=e,this._element=t,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=o,this._drawers=new r.E,this.backdropClick=new r.n,this._destroyed=new l.a,this._doCheckSubject=new l.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new l.a,e&&e.change.pipe(Object(g.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),a.change().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=A}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Object(s.c)(e)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(e){this._backdropOverride=null==e?null:Object(s.c)(e)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(m.a)(this._allDrawers),Object(g.a)(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(e=>!e._container||e._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(m.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(B.a)(10),Object(g.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();e+=n,t-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)t+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();t+=n,e-=n}e=e||null,t=t||null,e===this._contentMargins.left&&t===this._contentMargins.right||(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(Object(u.a)(e=>e.fromState!==e.toState),Object(g.a)(this._drawers.changes)).subscribe(e=>{"open-instant"!==e.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==e.mode&&e.openedChange.pipe(Object(g.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e&&e.onPositionChanged.pipe(Object(g.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.asObservable().pipe(Object(b.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(e){e&&e._modeChanged.pipe(Object(g.a)(Object(h.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){const t=this._element.nativeElement.classList,n="mat-drawer-container-has-open";e?t.add(n):t.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{"end"==e.position?(null!=this._end&&I("end"),this._end=e):(null!=this._start&&I("start"),this._start=e)}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._canHaveBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(e){return"side"!==e.mode||!!this._backdropOverride}_isDrawerOpen(e){return null!=e&&e.opened}}return e.\u0275fac=function(t){return new(t||e)(r.Nb(E.c,8),r.Nb(r.l),r.Nb(r.A),r.Nb(r.h),r.Nb(a.e),r.Nb(O),r.Nb(v.a,8))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-drawer-container"]],contentQueries:function(e,t,n){var i;1&e&&(r.Gb(n,P,!0),r.Gb(n,R,!0)),2&e&&(r.rc(i=r.bc())&&(t._content=i.first),r.rc(i=r.bc())&&(t._allDrawers=i))},viewQuery:function(e,t){var n;1&e&&r.Nc(P,!0),2&e&&r.rc(n=r.bc())&&(t._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(e,t){2&e&&r.Fb("mat-drawer-container-explicit-backdrop",t._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[r.Ab([{provide:D,useExisting:e}])],ngContentSelectors:F,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(e,t){1&e&&(r.jc(U),r.Fc(0,x,1,2,"div",0),r.ic(1),r.ic(2,1),r.Fc(3,y,2,0,"mat-drawer-content",1)),2&e&&(r.kc("ngIf",t.hasBackdrop),r.Bb(3),r.kc("ngIf",!t._content))},directives:[A.t,P],styles:[T],encapsulation:2,changeDetection:0}),e})(),M=(()=>{class e extends P{constructor(e,t,n,i,a){super(e,t,n,i,a)}}return e.\u0275fac=function(t){return new(t||e)(r.Nb(r.h),r.Nb(Object(r.V)(()=>z)),r.Nb(r.l),r.Nb(a.c),r.Nb(r.A))},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(e,t){2&e&&r.Cc("margin-left",t._container._contentMargins.left,"px")("margin-right",t._container._contentMargins.right,"px")},features:[r.yb],ngContentSelectors:Q,decls:1,vars:0,template:function(e,t){1&e&&(r.jc(),r.ic(0))},encapsulation:2,changeDetection:0}),e})(),L=(()=>{class e extends R{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=Object(s.c)(e)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=Object(s.f)(e)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=Object(s.f)(e)}}return e.\u0275fac=function(t){return V(t||e)},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(e,t){2&e&&(r.Cb("align",null),r.Cc("top",t.fixedInViewport?t.fixedTopGap:null,"px")("bottom",t.fixedInViewport?t.fixedBottomGap:null,"px"),r.Fb("mat-drawer-end","end"===t.position)("mat-drawer-over","over"===t.mode)("mat-drawer-push","push"===t.mode)("mat-drawer-side","side"===t.mode)("mat-drawer-opened",t.opened)("mat-sidenav-fixed",t.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[r.yb],ngContentSelectors:Q,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(e,t){1&e&&(r.jc(),r.Tb(0,"div",0),r.ic(1),r.Sb())},encapsulation:2,data:{animation:[N.transformDrawer]},changeDetection:0}),e})();const V=r.Vb(L);let z=(()=>{class e extends K{}return e.\u0275fac=function(t){return X(t||e)},e.\u0275cmp=r.Hb({type:e,selectors:[["mat-sidenav-container"]],contentQueries:function(e,t,n){var i;1&e&&(r.Gb(n,M,!0),r.Gb(n,L,!0)),2&e&&(r.rc(i=r.bc())&&(t._content=i.first),r.rc(i=r.bc())&&(t._allDrawers=i))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(e,t){2&e&&r.Fb("mat-drawer-container-explicit-backdrop",t._backdropOverride)},exportAs:["matSidenavContainer"],features:[r.Ab([{provide:D,useExisting:e}]),r.yb],ngContentSelectors:_,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(e,t){1&e&&(r.jc(S),r.Fc(0,k,1,2,"div",0),r.ic(1),r.ic(2,1),r.Fc(3,H,2,0,"mat-sidenav-content",1)),2&e&&(r.kc("ngIf",t.hasBackdrop),r.Bb(3),r.kc("ngIf",!t._content))},directives:[A.t,M,a.a],styles:[T],encapsulation:2,changeDetection:0}),e})();const X=r.Vb(z);let G=(()=>{class e{}return e.\u0275mod=r.Lb({type:e}),e.\u0275inj=r.Kb({factory:function(t){return new(t||e)},imports:[[A.c,o.h,i.b,a.b],a.b,o.h]}),e})()},a6L5:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Elements}));var _definitions_base__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("IvEk"),_definitions_bootstrap__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("AOBC"),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("jtHE"),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("fXoL"),_common_core_translations_translations_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("VaLf");let Elements=(()=>{class Elements{constructor(e){this.i18n=e,this.loaded$=new rxjs__WEBPACK_IMPORTED_MODULE_2__.a(1),this.elements=[],this.defaults={name:"Generic",canModify:["padding","margin","box","text","attributes","float","shadows","background"],canDrag:!0,showWysiwyg:!0,attributes:{},previewScale:1,scaleDragPreview:!0,resizable:!0,types:["flow"],validChildren:["flow"]},this.specialCases=[function(e,t,n,i){if("label"===e.nodeName.toLowerCase()&&i.indexOf("checkbox")>-1)return e.parentElement},function(e,t,n,i){if(n.indexOf("progress-bar")>-1)return e.parentElement},function(e,t,n,i){if(n.indexOf("container-fluid")>-1&&i.indexOf("navbar")>-1)return e.parentElement}]}getAll(){return this.elements}findByName(e){return this.elements.find(t=>t.name===e)}getDisplayName(e,t){if(e)return"div container"===e.name?t.id?t.id:t.classList[0]?t.classList[0]:e.name:e.name}canModifyText(e){return this.canModify("text",e)&&e.showWysiwyg}canModify(e,t){if(t)return t.canModify.indexOf(e.toLowerCase())>-1}isImage(e){return!!e&&"img"===e.nodeName.toLowerCase()}isLink(e){return!!e&&"a"===e.nodeName.toLowerCase()}isIcon(e){return!!e&&("i"===e.nodeName.toLowerCase()||e.classList.value.includes("icon-")||e.classList.contains("svg-inline--fa"))}isLayout(e){return!!e&&(this.isColumn(e)||this.isRow(e)||this.isContainer(e))}isContainer(e){return!(!e||!e.classList)&&e.classList.contains("container")}isRow(e){return!(!e||!e.classList)&&e.classList.contains("row")}isColumn(e){return!!e&&!(!e.className||"string"!=typeof e.className)&&e.className.indexOf("col-")>-1}checkForSpecialCases(e){if(!e)return!1;const t=e.parentElement,n=e.nodeName,i=t?t.nodeName:"";for(let a=0;a<this.specialCases.length;a++){const A=this.specialCases[a](e,t,n,i);if(A)return A}}canInsert(e,t){if("body"===e.nodeName.toLowerCase())return!0;if("html"===e.nodeName.toLowerCase())return!1;const n=this.match(e);if(n&&n.validChildren&&t.types)for(let i=n.validChildren.length-1;i>=0;i--)if(t.types.indexOf(n.validChildren[i])>-1)return!0;return!1}match(e,t=null,n=!0){if(!e||!e.nodeName)return!1;const i=this.checkForSpecialCases(e),a=e.nodeName.toLowerCase();if(i&&(e=i),e.className)for(let A=0;A<this.elements.length;A++){const t=this.elements[A],n="string"==typeof e.className?e.className.toLowerCase().split(/\s+/):[];for(let e=0;e<n.length;e++)if(t.class){if(n[e]===t.class)return t;if(t.class.indexOf("*")>-1&&n[e].match(new RegExp(t.class.replace("*",".*"))))return t}}for(let A=0;A<this.elements.length;A++){const t=this.elements[A];if(e.dataset&&e.dataset.name)return this.findByName(e.dataset.name);if(e.type){const n=a+"="+e.type;if(Array.isArray(t.nodes)&&t.nodes.find(e=>e===n))return t}if(t.nodes.indexOf(a)>-1&&("button"!==t.name.toLowerCase()||"a"!==a||e.classList.contains("btn")))return t}if(n)return this.match(e.parentElement,t,!0);{const t=e.className&&e.className.split(/\s+/)[0],n=Object.assign({},this.defaults);return n.name=t?t.replace("-"," "):e.nodeName.toLowerCase(),n}}addElement(e){const t=Object.assign({},this.defaults,e);t.name=this.i18n.t(t.name),this.elements.find(e=>e.name===t.name)||this.elements.push(t)}init(e){_definitions_base__WEBPACK_IMPORTED_MODULE_0__.a.concat(_definitions_bootstrap__WEBPACK_IMPORTED_MODULE_1__.a).forEach(e=>this.addElement(e)),this.addCustomElements(e),this.loaded$.next(!0),this.loaded$.complete()}addCustomElements(customElements){let customCss="";customElements.forEach(element=>{const config=eval(element.config);config.html=element.html,config.css=element.css,this.addElement(config),customCss+="\n"+config.css})}}return Elements.\u0275fac=function(e){return new(e||Elements)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.Xb(_common_core_translations_translations_service__WEBPACK_IMPORTED_MODULE_4__.a))},Elements.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Jb({token:Elements,factory:Elements.\u0275fac,providedIn:"root"}),Elements})()},h586:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var i=n("XNiG"),a=n("2Vo4"),A=n("jtHE"),r=n("oJgS");class o{constructor(e,t){this.canceled$=new i.a,this.processing$=new a.a(!1),this.uploadedResponse$=new A.a(1),this.progress$=new a.a({percentage:0}),this.error$=new a.a(null),this.customData={},this.uploadedFile=e,this.id=t||Object(r.a)()}get completed(){return!this.processing$.value&&100===this.progress$.value.percentage}get inProgress(){return!this.error$.value&&!this.completed}cancel(){this.canceled$.next(!0),this.finalize()}complete(){this.setProgress({percentage:100,eta:null}),this.finalize()}finalize(){this.uploadedResponse$.complete(),this.canceled$.complete(),this.progress$.complete()}finishProcessing(){this.processing$.next(!1),this.processing$.complete()}addError(e){this.error$.next(e)}setProgress(e){this.progress$.next(Object.assign(Object.assign({},this.progress$.value),e))}}var s=n("Cfvw"),c=n("z6cu"),l=n("EY2u"),d=n("5+tZ"),h=n("JIr8"),u=n("1G5W"),p=n("lJxs"),g=n("pLZG"),f=n("JfjL"),b=n("VfAk"),m=n("fXoL"),B=n("oVOl"),w=n("sJvS"),v=n("tU2R"),C=n("1MND");class E extends C.a{constructor(e,t){super(),this.params=e,this.i18n=t,this.errorMessage=this.i18n.t("Only these file types are allowed: :extensions",{extensions:this.params.extensions.join(", ")})}fails(e){return!this.params.extensions.some(t=>t.toLowerCase()===e.extension.toLowerCase())}}class Q extends C.a{constructor(e,t){super(),this.params=e,this.i18n=t,this.errorMessage=this.i18n.t("These file types are not allowed: :extensions",{extensions:this.params.extensions.join(", ")})}fails(e){return this.params.extensions.some(t=>t===e.extension)}}var x=n("PCqb");let y=(()=>{class e extends w.a{constructor(){super(...arguments),this.DEFAULT_MAX_FILE_SIZE_MB=8,this.showToast=!0}initValidations(){this.validations.push(new v.a({maxSize:this.getMaxFileSize()},this.i18n));const e=this.getAllowedExtensions(),t=this.getBlockedExtensions();e&&e.length&&this.validations.push(new E({extensions:e},this.i18n)),t&&t.length&&this.validations.push(new Q({extensions:t},this.i18n))}getMaxFileSize(){return this.settings.get("uploads.max_size",Object(x.a)(this.DEFAULT_MAX_FILE_SIZE_MB,"MB"))}getAllowedExtensions(){return this.settings.getJson("uploads.allowed_extensions")}getBlockedExtensions(){return this.settings.getJson("uploads.blocked_extensions")}}return e.\u0275fac=function(t){return U(t||e)},e.\u0275prov=m.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const U=m.Vb(y);var F=n("i2dy"),k=n("twBr"),H=n("kmQS");let S=(()=>{class e{constructor(e,t,n,r,o){this.api=e,this.defaultValidator=t,this.toast=n,this.currentUser=r,this.settings=o,this.uploads$=new a.a([]),this.totalProgress$=new A.a(1),this.uploadsAdded$=new i.a,this.count$=new a.a({pending:0,completed:0})}isEmpty(){return!this.uploads$.value.length}getAllCompleted(){return this.uploads$.value.filter(e=>e.completed).map(e=>e.fileEntry)}updateTotalProgress(){const e=this.uploads$.value.map(e=>e.progress$.value.percentage||0);this.totalProgress$.next(e.reduce((e,t)=>e+t,0)/e.length)}totalProgress(){return this.totalProgress$.asObservable()}start(e,t={}){const n=t.validator||this.defaultValidator;let i=[];if(Array.isArray(e))i=this.transformUploads(e,n),this.uploads$.next(this.uploads$.value.concat(i)),this.uploadsAdded$.next(i);else{const t=this.uploads$.value.map(t=>{if(e[t.id]){const a=this.transformUploads([e[t.id]],n,t.id)[0];return i.push(a),a}return t});this.uploads$.next(t)}return this.updateCount(),Object(s.a)(i.filter(e=>!e.error$.value)).pipe(Object(d.a)(e=>this.api.upload(e.uploadedFile,t).pipe(Object(h.a)(i=>(this.handleUploadFailure(i,e,n),t.bubbleError?Object(c.a)(i):l.a)),Object(u.a)(e.canceled$),Object(p.a)(n=>(this.handleUploadEvent(n,e,t.willProcessFiles),n.name===f.a.COMPLETED&&(n.body.queueItemId=e.id),n))),1),Object(g.a)(e=>e.name===f.a.COMPLETED),Object(p.a)(e=>e.body))}updateProgress(e,t){const n=this.find(e);n&&(n.setProgress({eta:t.eta,speed:t.speed,percentage:t.progress,totalBytes:t.totalBytes,completedBytes:t.completedBytes}),this.updateTotalProgress())}completeUpload(e,t){const n=this.find(e);n&&(n.uploadedResponse$.next(t),n.fileEntry=t.fileEntry,n.complete(),this.updateTotalProgress())}errorUpload(e,t){this.find(e).addError(t)}reset(){this.uploads$.value.forEach(e=>e.cancel()),this.uploads$.next([])}remove(e){const t=this.uploads$.value.findIndex(t=>t.id===e),n=this.uploads$.value[t];n.completed?n.finalize():n.cancel(),this.uploads$.value.splice(t,1),this.uploads$.next(this.uploads$.value)}find(e){return this.uploads$.value.find(t=>t.id===e)}transformUploads(e,t,n){return e.map(e=>{const i=new o(e,n);if(t){const n=t.validate(e);n.failed&&i.addError(n.errorMessage)}return i})}handleUploadEvent(e,t,n=!1){e.name===f.a.PROGRESS?(100===e.progress&&(e=Object.assign(Object.assign({},e),{progress:99}),n&&t.processing$.next(!0)),this.updateProgress(t.id,e)):e.name===f.a.COMPLETED&&(this.completeUpload(t.id,e.body),this.updateCount())}handleUploadFailure(e,t,n){var i;let a=null===(i=null==e?void 0:e.errors)||void 0===i?void 0:i.file,A=null;a||(a=b.a.DefaultUpload,A=this.currentUser.isAdmin()&&!this.settings.get("site.hide_docs_buttons")),this.errorUpload(t.id,a),this.updateCount(),this.updateTotalProgress(),n.showToast&&this.toast.open(a,{action:A?"Learn More":null}).onAction().subscribe(()=>{window.open(b.b)})}updateCount(){const e=this.uploads$.value.filter(e=>e.inProgress).length;this.count$.next({pending:e,completed:this.uploads$.value.length-e})}}return e.\u0275fac=function(t){return new(t||e)(m.Xb(B.a),m.Xb(y),m.Xb(F.b),m.Xb(k.a),m.Xb(H.a))},e.\u0275prov=m.Jb({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},losq:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var i=n("ofXK"),a=n("fXoL");let A=(()=>{class e{}return e.\u0275mod=a.Lb({type:e}),e.\u0275inj=a.Kb({factory:function(t){return new(t||e)},imports:[[i.c]]}),e})()},wOnQ:function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};function t(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function i(e,t,n,i){return new(n||(n=Promise))((function(a,A){function r(e){try{s(i.next(e))}catch(t){A(t)}}function o(e){try{s(i.throw(e))}catch(t){A(t)}}function s(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(r,o)}s((i=i.apply(e,t||[])).next())}))}function a(e,t){var n,i,a,A,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return A={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function o(A){return function(o){return function(A){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=2&A[0]?i.return:A[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,A[1])).done)return a;switch(i=0,a&&(A=[2&A[0],a.value]),A[0]){case 0:case 1:a=A;break;case 4:return r.label++,{value:A[1],done:!1};case 5:r.label++,i=A[1],A=[0];continue;case 7:A=r.ops.pop(),r.trys.pop();continue;default:if(!((a=(a=r.trys).length>0&&a[a.length-1])||6!==A[0]&&2!==A[0])){r=0;continue}if(3===A[0]&&(!a||A[1]>a[0]&&A[1]<a[3])){r.label=A[1];break}if(6===A[0]&&r.label<a[1]){r.label=a[1],a=A;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(A);break}a[2]&&r.ops.pop(),r.trys.pop();continue}A=t.call(e,r)}catch(o){A=[6,o],i=0}finally{n=a=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,o])}}}for(var A=function(){function e(e,t,n,i){this.left=e,this.top=t,this.width=n,this.height=i}return e.prototype.add=function(t,n,i,a){return new e(this.left+t,this.top+n,this.width+i,this.height+a)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),r=function(e){return A.fromClientRect(e.getBoundingClientRect())},o=function(e){for(var t=[],n=0,i=e.length;n<i;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){var A=e.charCodeAt(n++);56320==(64512&A)?t.push(((1023&a)<<10)+(1023&A)+65536):(t.push(a),n--)}else t.push(a)}return t},s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var i=[],a=-1,A="";++a<n;){var r=e[a];r<=65535?i.push(r):i.push(55296+((r-=65536)>>10),r%1024+56320),(a+1===n||i.length>16384)&&(A+=String.fromCharCode.apply(String,i),i.length=0)}return A},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"==typeof Uint8Array?[]:new Uint8Array(256),d=0;d<c.length;d++)l[c.charCodeAt(d)]=d;var h,u,p,g,f,b,m,B,w=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},v=function(){function e(e,t,n,i,a,A){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=A}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return this.data[t=((t=this.index[e>>5])<<2)+(31&e)];if(e<=65535)return this.data[t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e)];if(e<this.highStart)return t=this.index[t=2080+(e>>11)],this.data[t=((t=this.index[t+=e>>5&63])<<2)+(31&e)];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),C=10,E=13,Q=15,x=17,y=18,U=19,F=20,k=21,H=22,S=24,_=25,T=26,N=27,I=28,O=30,D=32,P=33,R=34,K=35,M=37,L=38,V=39,z=40,X=42,G=(g=function(e){var t,n,i,a,A,r=.75*e.length,o=e.length,s=0;"="===e[e.length-1]&&(r--,"="===e[e.length-2]&&r--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(r):new Array(r),d=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<o;t+=4)n=l[e.charCodeAt(t)],i=l[e.charCodeAt(t+1)],a=l[e.charCodeAt(t+2)],A=l[e.charCodeAt(t+3)],d[s++]=n<<2|i>>4,d[s++]=(15&i)<<4|a>>2,d[s++]=(3&a)<<6|63&A;return c}("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),f=Array.isArray(g)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=4)n.push(e[i+3]<<24|e[i+2]<<16|e[i+1]<<8|e[i]);return n}(g):new Uint32Array(g),m=w(b=Array.isArray(g)?function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n.push(e[i+1]<<8|e[i]);return n}(g):new Uint16Array(g),12,f[4]/2),B=2===f[5]?w(b,(24+f[4])/2):(u=f,p=Math.ceil((24+f[4])/4),u.slice?u.slice(p,void 0):new Uint32Array(Array.prototype.slice.call(u,p,void 0))),new v(f[0],f[1],f[2],f[3],m,B)),j=[O,36],J=[1,2,3,5],W=[C,8],Y=[N,T],q=J.concat(W),Z=[L,V,z,R,K],$=[Q,E],ee=function(e,t,n,i){var a=i[n];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var A=n;A<=i.length;){if((s=i[++A])===t)return!0;if(s!==C)break}if(a===C)for(A=n;A>0;){var r=i[--A];if(Array.isArray(e)?-1!==e.indexOf(r):e===r)for(var o=n;o<=i.length;){var s;if((s=i[++o])===t)return!0;if(s!==C)break}if(r!==C)break}return!1},te=function(e,t){for(var n=e;n>=0;){var i=t[n];if(i!==C)return i;n--}return 0},ne=function(e,t,n,i,a){if(0===n[i])return"\xd7";var A=i-1;if(Array.isArray(a)&&!0===a[A])return"\xd7";var r=A-1,o=A+1,s=t[A],c=r>=0?t[r]:0,l=t[o];if(2===s&&3===l)return"\xd7";if(-1!==J.indexOf(s))return"!";if(-1!==J.indexOf(l))return"\xd7";if(-1!==W.indexOf(l))return"\xd7";if(8===te(A,t))return"\xf7";if(11===G.get(e[A])&&(l===M||l===D||l===P))return"\xd7";if(7===s||7===l)return"\xd7";if(9===s)return"\xd7";if(-1===[C,E,Q].indexOf(s)&&9===l)return"\xd7";if(-1!==[x,y,U,S,I].indexOf(l))return"\xd7";if(te(A,t)===H)return"\xd7";if(ee(23,H,A,t))return"\xd7";if(ee([x,y],k,A,t))return"\xd7";if(ee(12,12,A,t))return"\xd7";if(s===C)return"\xf7";if(23===s||23===l)return"\xd7";if(16===l||16===s)return"\xf7";if(-1!==[E,Q,k].indexOf(l)||14===s)return"\xd7";if(36===c&&-1!==$.indexOf(s))return"\xd7";if(s===I&&36===l)return"\xd7";if(l===F&&-1!==j.concat(F,U,_,M,D,P).indexOf(s))return"\xd7";if(-1!==j.indexOf(l)&&s===_||-1!==j.indexOf(s)&&l===_)return"\xd7";if(s===N&&-1!==[M,D,P].indexOf(l)||-1!==[M,D,P].indexOf(s)&&l===T)return"\xd7";if(-1!==j.indexOf(s)&&-1!==Y.indexOf(l)||-1!==Y.indexOf(s)&&-1!==j.indexOf(l))return"\xd7";if(-1!==[N,T].indexOf(s)&&(l===_||-1!==[H,Q].indexOf(l)&&t[o+1]===_)||-1!==[H,Q].indexOf(s)&&l===_||s===_&&-1!==[_,I,S].indexOf(l))return"\xd7";if(-1!==[_,I,S,x,y].indexOf(l))for(var d=A;d>=0;){if((h=t[d])===_)return"\xd7";if(-1===[I,S].indexOf(h))break;d--}if(-1!==[N,T].indexOf(l))for(d=-1!==[x,y].indexOf(s)?r:A;d>=0;){var h;if((h=t[d])===_)return"\xd7";if(-1===[I,S].indexOf(h))break;d--}if(L===s&&-1!==[L,V,R,K].indexOf(l)||-1!==[V,R].indexOf(s)&&-1!==[V,z].indexOf(l)||-1!==[z,K].indexOf(s)&&l===z)return"\xd7";if(-1!==Z.indexOf(s)&&-1!==[F,T].indexOf(l)||-1!==Z.indexOf(l)&&s===N)return"\xd7";if(-1!==j.indexOf(s)&&-1!==j.indexOf(l))return"\xd7";if(s===S&&-1!==j.indexOf(l))return"\xd7";if(-1!==j.concat(_).indexOf(s)&&l===H||-1!==j.concat(_).indexOf(l)&&s===y)return"\xd7";if(41===s&&41===l){for(var u=n[A],p=1;u>0&&41===t[--u];)p++;if(p%2!=0)return"\xd7"}return s===D&&l===P?"\xd7":"\xf7"},ie=function(){function e(e,t,n,i){this.codePoints=e,this.required="!"===t,this.start=n,this.end=i}return e.prototype.slice=function(){return s.apply(void 0,this.codePoints.slice(this.start,this.end))},e}();!function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}(h||(h={}));var ae=function(e){return e>=48&&e<=57},Ae=function(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102},re=function(e){return 10===e||9===e||32===e},oe=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},se=function(e){return oe(e)||ae(e)||45===e},ce=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},le=function(e,t){return 92===e&&10!==t},de=function(e,t,n){return 45===e?oe(t)||le(t,n):!!oe(e)||!(92!==e||!le(e,t))},he=function(e,t,n){return 43===e||45===e?!!ae(t)||46===t&&ae(n):ae(46===e?t:e)},ue=function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var i=[];ae(e[t]);)i.push(e[t++]);var a=i.length?parseInt(s.apply(void 0,i),10):0;46===e[t]&&t++;for(var A=[];ae(e[t]);)A.push(e[t++]);var r=A.length,o=r?parseInt(s.apply(void 0,A),10):0;69!==e[t]&&101!==e[t]||t++;var c=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(c=-1),t++);for(var l=[];ae(e[t]);)l.push(e[t++]);var d=l.length?parseInt(s.apply(void 0,l),10):0;return n*(a+o*Math.pow(10,-r))*Math.pow(10,c*d)},pe={type:h.LEFT_PARENTHESIS_TOKEN},ge={type:h.RIGHT_PARENTHESIS_TOKEN},fe={type:h.COMMA_TOKEN},be={type:h.SUFFIX_MATCH_TOKEN},me={type:h.PREFIX_MATCH_TOKEN},Be={type:h.COLUMN_TOKEN},we={type:h.DASH_MATCH_TOKEN},ve={type:h.INCLUDE_MATCH_TOKEN},Ce={type:h.LEFT_CURLY_BRACKET_TOKEN},Ee={type:h.RIGHT_CURLY_BRACKET_TOKEN},Qe={type:h.SUBSTRING_MATCH_TOKEN},xe={type:h.BAD_URL_TOKEN},ye={type:h.BAD_STRING_TOKEN},Ue={type:h.CDO_TOKEN},Fe={type:h.CDC_TOKEN},ke={type:h.COLON_TOKEN},He={type:h.SEMICOLON_TOKEN},Se={type:h.LEFT_SQUARE_BRACKET_TOKEN},_e={type:h.RIGHT_SQUARE_BRACKET_TOKEN},Te={type:h.WHITESPACE_TOKEN},Ne={type:h.EOF_TOKEN},Ie=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(o(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Ne;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(se(t)||le(n,i)){var a=de(t,n,i)?2:1,A=this.consumeName();return{type:h.HASH_TOKEN,value:A,flags:a}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),be;break;case 39:return this.consumeStringToken(39);case 40:return pe;case 41:return ge;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Qe;break;case 43:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return fe;case 45:var r=e,o=this.peekCodePoint(0),c=this.peekCodePoint(1);if(he(r,o,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(de(r,o,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===o&&62===c)return this.consumeCodePoint(),this.consumeCodePoint(),Fe;break;case 46:if(he(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(-1===l)return this.consumeToken()}break;case 58:return ke;case 59:return He;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),Ue;break;case 64:var d=this.peekCodePoint(0),u=this.peekCodePoint(1),p=this.peekCodePoint(2);if(de(d,u,p))return A=this.consumeName(),{type:h.AT_KEYWORD_TOKEN,value:A};break;case 91:return Se;case 92:if(le(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return _e;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),me;break;case 123:return Ce;case 125:return Ee;case 117:case 85:var g=this.peekCodePoint(0),f=this.peekCodePoint(1);return 43!==g||!Ae(f)&&63!==f||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),we;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),Be;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ve;break;case-1:return Ne}return re(e)?(this.consumeWhiteSpace(),Te):ae(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):oe(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:h.DELIM_TOKEN,value:s(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Ae(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(s.apply(void 0,e.map((function(e){return 63===e?48:e}))),16),a=parseInt(s.apply(void 0,e.map((function(e){return 63===e?70:e}))),16);return{type:h.UNICODE_RANGE_TOKEN,start:i,end:a}}var A=parseInt(s.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&Ae(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var r=[];Ae(t)&&r.length<6;)r.push(t),t=this.consumeCodePoint();return a=parseInt(s.apply(void 0,r),16),{type:h.UNICODE_RANGE_TOKEN,start:A,end:a}}return{type:h.UNICODE_RANGE_TOKEN,start:A,end:A}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.FUNCTION_TOKEN,value:e}):{type:h.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:h.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===h.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),xe)}for(;;){var i=this.consumeCodePoint();if(-1===i||41===i)return{type:h.URL_TOKEN,value:s.apply(void 0,e)};if(re(i))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:s.apply(void 0,e)}):(this.consumeBadUrlRemnants(),xe);if(34===i||39===i||40===i||ce(i))return this.consumeBadUrlRemnants(),xe;if(92===i){if(!le(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),xe;e.push(this.consumeEscapedCodePoint())}else e.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;re(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;le(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=s.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var i=this._value[n];if(-1===i||void 0===i||i===e)return t+=this.consumeStringSlice(n),{type:h.STRING_TOKEN,value:t};if(10===i)return this._value.splice(0,n),ye;if(92===i){var a=this._value[n+1];-1!==a&&void 0!==a&&(10===a?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):le(i,a)&&(t+=this.consumeStringSlice(n),t+=s(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(46===n&&ae(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((69===n||101===n)&&((43===i||45===i)&&ae(a)||ae(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;ae(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ue(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),A=this.peekCodePoint(2);if(de(i,a,A)){var r=this.consumeName();return{type:h.DIMENSION_TOKEN,number:t,flags:n,unit:r}}return 37===i?(this.consumeCodePoint(),{type:h.PERCENTAGE_TOKEN,number:t,flags:n}):{type:h.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Ae(e)){for(var t=s(e);Ae(this.peekCodePoint(0))&&t.length<6;)t+=s(this.consumeCodePoint());re(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(se(t))e+=s(t);else{if(!le(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=s(this.consumeEscapedCodePoint())}}},e}(),Oe=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Ie;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===h.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===h.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===h.WHITESPACE_TOKEN);if(e.type===h.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===h.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case h.LEFT_CURLY_BRACKET_TOKEN:case h.LEFT_SQUARE_BRACKET_TOKEN:case h.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case h.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===h.EOF_TOKEN||Xe(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:h.FUNCTION};;){var n=this.consumeToken();if(n.type===h.EOF_TOKEN||n.type===h.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Ne:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),De=function(e){return e.type===h.DIMENSION_TOKEN},Pe=function(e){return e.type===h.NUMBER_TOKEN},Re=function(e){return e.type===h.IDENT_TOKEN},Ke=function(e){return e.type===h.STRING_TOKEN},Me=function(e,t){return Re(e)&&e.value===t},Le=function(e){return e.type!==h.WHITESPACE_TOKEN},Ve=function(e){return e.type!==h.WHITESPACE_TOKEN&&e.type!==h.COMMA_TOKEN},ze=function(e){var t=[],n=[];return e.forEach((function(e){if(e.type===h.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==h.WHITESPACE_TOKEN&&n.push(e)})),n.length&&t.push(n),t},Xe=function(e,t){return t===h.LEFT_CURLY_BRACKET_TOKEN&&e.type===h.RIGHT_CURLY_BRACKET_TOKEN||t===h.LEFT_SQUARE_BRACKET_TOKEN&&e.type===h.RIGHT_SQUARE_BRACKET_TOKEN||t===h.LEFT_PARENTHESIS_TOKEN&&e.type===h.RIGHT_PARENTHESIS_TOKEN},Ge=function(e){return e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN},je=function(e){return e.type===h.PERCENTAGE_TOKEN||Ge(e)},Je=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},We={type:h.NUMBER_TOKEN,number:0,flags:4},Ye={type:h.PERCENTAGE_TOKEN,number:50,flags:4},qe={type:h.PERCENTAGE_TOKEN,number:100,flags:4},Ze=function(e,t,n){var i=e[0],a=e[1];return[$e(i,t),$e(void 0!==a?a:i,n)]},$e=function(e,t){if(e.type===h.PERCENTAGE_TOKEN)return e.number/100*t;if(De(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},et=function(e){if(e.type===h.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},tt=function(e){return e.type===h.DIMENSION_TOKEN&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},nt=function(e){switch(e.filter(Re).map((function(e){return e.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[We,We];case"to top":case"bottom":return it(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[We,qe];case"to right":case"left":return it(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[qe,qe];case"to bottom":case"top":return it(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[qe,We];case"to left":case"right":return it(270)}return 0},it=function(e){return Math.PI*e/180},at=function(e){if(e.type===h.FUNCTION){var t=pt[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===h.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return ot(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(4===e.value.length){n=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);var A=e.value.substring(3,4);return ot(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(A+A,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),ot(parseInt(n,16),parseInt(i,16),parseInt(a,16),1);if(8===e.value.length)return n=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),A=e.value.substring(6,8),ot(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(A,16)/255)}if(e.type===h.IDENT_TOKEN){var r=gt[e.value.toUpperCase()];if(void 0!==r)return r}return gt.TRANSPARENT},At=function(e){return 0==(255&e)},rt=function(e){var t=255&e,n=255&e>>8,i=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+i+","+n+","+t/255+")":"rgb("+a+","+i+","+n+")"},ot=function(e,t,n,i){return(e<<24|t<<16|n<<8|Math.round(255*i)<<0)>>>0},st=function(e,t){if(e.type===h.NUMBER_TOKEN)return e.number;if(e.type===h.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},ct=function(e){var t=e.filter(Ve);if(3===t.length){var n=t.map(st);return ot(n[0],n[1],n[2],1)}if(4===t.length){var i=t.map(st);return ot(i[0],i[1],i[2],i[3])}return 0};function lt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var dt,ht,ut=function(e){var t=e.filter(Ve),n=t[0],i=t[1],a=t[2],A=t[3],r=(n.type===h.NUMBER_TOKEN?it(n.number):et(n))/(2*Math.PI),o=je(i)?i.number/100:0,s=je(a)?a.number/100:0,c=void 0!==A&&je(A)?$e(A,1):1;if(0===o)return ot(255*s,255*s,255*s,1);var l=s<=.5?s*(o+1):s+o-s*o,d=2*s-l,u=lt(d,l,r+1/3),p=lt(d,l,r),g=lt(d,l,r-1/3);return ot(255*u,255*p,255*g,c)},pt={hsl:ut,hsla:ut,rgb:ct,rgba:ct},gt={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(dt||(dt={})),function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(ht||(ht={}));var ft,bt,mt,Bt={name:"background-clip",initialValue:"border-box",prefix:!1,type:dt.LIST,parse:function(e){return e.map((function(e){if(Re(e))switch(e.value){case"padding-box":return ht.PADDING_BOX;case"content-box":return ht.CONTENT_BOX}return ht.BORDER_BOX}))}},wt={name:"background-color",initialValue:"transparent",prefix:!1,type:dt.TYPE_VALUE,format:"color"},vt=function(e){var t=at(e[0]),n=e[1];return n&&je(n)?{color:t,stop:n}:{color:t,stop:null}},Ct=function(e,t){var n=e[0],i=e[e.length-1];null===n.stop&&(n.stop=We),null===i.stop&&(i.stop=qe);for(var a=[],A=0,r=0;r<e.length;r++){var o=e[r].stop;if(null!==o){var s=$e(o,t);a.push(s>A?s:A),A=s}else a.push(null)}var c=null;for(r=0;r<a.length;r++){var l=a[r];if(null===l)null===c&&(c=r);else if(null!==c){for(var d=r-c,h=(l-a[c-1])/(d+1),u=1;u<=d;u++)a[c+u-1]=h*u;c=null}}return e.map((function(e,n){return{color:e.color,stop:Math.max(Math.min(1,a[n]/t),0)}}))},Et=function(e,t){return Math.sqrt(e*e+t*t)},Qt=function(e,t,n,i,a){return[[0,0],[0,t],[e,0],[e,t]].reduce((function(e,t){var A=Et(n-t[0],i-t[1]);return(a?A<e.optimumDistance:A>e.optimumDistance)?{optimumCorner:t,optimumDistance:A}:e}),{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},xt=function(e){var t=it(180),n=[];return ze(e).forEach((function(e,i){if(0===i){var a=e[0];if(a.type===h.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(t=nt(e));if(tt(a))return void(t=(et(a)+it(270))%it(360))}var A=vt(e);n.push(A)})),{angle:t,stops:n,type:ft.LINEAR_GRADIENT}},yt=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ut=function(e,t,n,i,a){var A="http://www.w3.org/2000/svg",r=document.createElementNS(A,"svg"),o=document.createElementNS(A,"foreignObject");return r.setAttributeNS(null,"width",e.toString()),r.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",n.toString()),o.setAttributeNS(null,"y",i.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),r.appendChild(o),o.appendChild(a),r},Ft=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){return t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},kt={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var i=t.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(n),123===a)return!0}}return!1}(document);return Object.defineProperty(kt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),i=n.getContext("2d");if(!i)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{i.drawImage(t,0,0),n.toDataURL()}catch(a){return!1}return!0}(document);return Object.defineProperty(kt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var i=new Image,a=t.toDataURL();i.src=a;var A=Ut(100,100,0,0,i);return n.fillStyle="red",n.fillRect(0,0,100,100),Ft(A).then((function(t){n.drawImage(t,0,0);var i=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var A=e.createElement("div");return A.style.backgroundImage="url("+a+")",A.style.height="100px",yt(i)?Ft(Ut(100,100,0,0,A)):Promise.reject(!1)})).then((function(e){return n.drawImage(e,0,0),yt(n.getImageData(0,0,100,100).data)})).catch((function(){return!1}))}(document):Promise.resolve(!1);return Object.defineProperty(kt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(kt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(kt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(kt,"SUPPORT_CORS_XHR",{value:e}),e}},Ht=function(){function e(e){var t=e.enabled;this.id=e.id,this.enabled=t,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if(void 0===n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),St=function(){function e(){}return e.create=function(t,n){return e._caches[t]=new _t(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if(void 0!==n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),_t=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Rt(e)||Ot(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,A,r=this;return a(this,(function(a){switch(a.label){case 0:return t=St.isSameOrigin(e),n=!Dt(e)&&!0===this._options.useCORS&&kt.SUPPORT_CORS_IMAGES&&!t,i=!Dt(e)&&!t&&"string"==typeof this._options.proxy&&kt.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Dt(e)||i||n?(A=e,i?[4,this.proxy(A)]:[3,2]):[2];case 1:A=a.sent(),a.label=2;case 2:return Ht.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise((function(e,t){var i=new Image;i.onload=function(){return e(i)},i.onerror=t,(Pt(A)||n)&&(i.crossOrigin="anonymous"),i.src=A,!0===i.complete&&setTimeout((function(){return e(i)}),500),r._options.imageTimeout>0&&setTimeout((function(){return t("Timed out ("+r._options.imageTimeout+"ms) loading image")}),r._options.imageTimeout)}))];case 3:return[2,a.sent()]}}))}))},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise((function(a,A){var r=kt.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;if(o.onload=function(){if(200===o.status)if("text"===r)a(o.response);else{var e=new FileReader;e.addEventListener("load",(function(){return a(e.result)}),!1),e.addEventListener("error",(function(e){return A(e)}),!1),e.readAsDataURL(o.response)}else A("Failed to proxy resource "+i+" with status code "+o.status)},o.onerror=A,o.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+r),"text"!==r&&o instanceof XMLHttpRequest&&(o.responseType=r),t._options.imageTimeout){var s=t._options.imageTimeout;o.timeout=s,o.ontimeout=function(){return A("Timed out ("+s+"ms) proxying "+i)}}o.send()}))},e}(),Tt=/^data:image\/svg\+xml/i,Nt=/^data:image\/.*;base64,/i,It=/^data:image\/.*/i,Ot=function(e){return kt.SUPPORT_SVG_DRAWING||!Kt(e)},Dt=function(e){return It.test(e)},Pt=function(e){return Nt.test(e)},Rt=function(e){return"blob"===e.substr(0,4)},Kt=function(e){return"svg"===e.substr(-3).toLowerCase()||Tt.test(e)},Mt=function(e){var t=bt.CIRCLE,n=mt.FARTHEST_CORNER,i=[],a=[];return ze(e).forEach((function(e,A){var r=!0;if(0===A?r=e.reduce((function(e,t){if(Re(t))switch(t.value){case"center":return a.push(Ye),!1;case"top":case"left":return a.push(We),!1;case"right":case"bottom":return a.push(qe),!1}else if(je(t)||Ge(t))return a.push(t),!1;return e}),r):1===A&&(r=e.reduce((function(e,i){if(Re(i))switch(i.value){case"circle":return t=bt.CIRCLE,!1;case"ellipse":return t=bt.ELLIPSE,!1;case"contain":case"closest-side":return n=mt.CLOSEST_SIDE,!1;case"farthest-side":return n=mt.FARTHEST_SIDE,!1;case"closest-corner":return n=mt.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return n=mt.FARTHEST_CORNER,!1}else if(Ge(i)||je(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return e}),r)),r){var o=vt(e);i.push(o)}})),{size:n,shape:t,stops:i,position:a,type:ft.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ft||(ft={})),function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(bt||(bt={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(mt||(mt={}));var Lt,Vt=function(e){if(e.type===h.URL_TOKEN){var t={url:e.value,type:ft.URL};return St.getInstance().addImage(e.value),t}if(e.type===h.FUNCTION){var n=zt[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")},zt={"linear-gradient":function(e){var t=it(180),n=[];return ze(e).forEach((function(e,i){if(0===i){var a=e[0];if(a.type===h.IDENT_TOKEN&&"to"===a.value)return void(t=nt(e));if(tt(a))return void(t=et(a))}var A=vt(e);n.push(A)})),{angle:t,stops:n,type:ft.LINEAR_GRADIENT}},"-moz-linear-gradient":xt,"-ms-linear-gradient":xt,"-o-linear-gradient":xt,"-webkit-linear-gradient":xt,"radial-gradient":function(e){var t=bt.CIRCLE,n=mt.FARTHEST_CORNER,i=[],a=[];return ze(e).forEach((function(e,A){var r=!0;if(0===A){var o=!1;r=e.reduce((function(e,i){if(o)if(Re(i))switch(i.value){case"center":return a.push(Ye),e;case"top":case"left":return a.push(We),e;case"right":case"bottom":return a.push(qe),e}else(je(i)||Ge(i))&&a.push(i);else if(Re(i))switch(i.value){case"circle":return t=bt.CIRCLE,!1;case"ellipse":return t=bt.ELLIPSE,!1;case"at":return o=!0,!1;case"closest-side":return n=mt.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return n=mt.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return n=mt.CLOSEST_CORNER,!1;case"farthest-corner":return n=mt.FARTHEST_CORNER,!1}else if(Ge(i)||je(i))return Array.isArray(n)||(n=[]),n.push(i),!1;return e}),r)}if(r){var s=vt(e);i.push(s)}})),{size:n,shape:t,stops:i,position:a,type:ft.RADIAL_GRADIENT}},"-moz-radial-gradient":Mt,"-ms-radial-gradient":Mt,"-o-radial-gradient":Mt,"-webkit-radial-gradient":Mt,"-webkit-gradient":function(e){var t=it(180),n=[],i=ft.LINEAR_GRADIENT,a=bt.CIRCLE,A=mt.FARTHEST_CORNER;return ze(e).forEach((function(e,t){var a=e[0];if(0===t){if(Re(a)&&"linear"===a.value)return void(i=ft.LINEAR_GRADIENT);if(Re(a)&&"radial"===a.value)return void(i=ft.RADIAL_GRADIENT)}if(a.type===h.FUNCTION)if("from"===a.name){var A=at(a.values[0]);n.push({stop:We,color:A})}else if("to"===a.name)A=at(a.values[0]),n.push({stop:qe,color:A});else if("color-stop"===a.name){var r=a.values.filter(Ve);if(2===r.length){A=at(r[1]);var o=r[0];Pe(o)&&n.push({stop:{type:h.PERCENTAGE_TOKEN,number:100*o.number,flags:o.flags},color:A})}}})),i===ft.LINEAR_GRADIENT?{angle:(t+it(180))%it(360),stops:n,type:i}:{size:A,shape:a,stops:n,position:[],type:i}}},Xt={name:"background-image",initialValue:"none",type:dt.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e.filter((function(e){return Ve(e)&&function(e){return e.type!==h.FUNCTION||zt[e.name]}(e)})).map(Vt)}},Gt={name:"background-origin",initialValue:"border-box",prefix:!1,type:dt.LIST,parse:function(e){return e.map((function(e){if(Re(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},jt={name:"background-position",initialValue:"0% 0%",type:dt.LIST,prefix:!1,parse:function(e){return ze(e).map((function(e){return e.filter(je)})).map(Je)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(Lt||(Lt={}));var Jt,Wt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:dt.LIST,parse:function(e){return ze(e).map((function(e){return e.filter(Re).map((function(e){return e.value})).join(" ")})).map(Yt)}},Yt=function(e){switch(e){case"no-repeat":return Lt.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Lt.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Lt.REPEAT_Y;case"repeat":default:return Lt.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(Jt||(Jt={}));var qt,Zt={name:"background-size",initialValue:"0",prefix:!1,type:dt.LIST,parse:function(e){return ze(e).map((function(e){return e.filter($t)}))}},$t=function(e){return Re(e)||je(e)},en=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:dt.TYPE_VALUE,format:"color"}},tn=en("top"),nn=en("right"),an=en("bottom"),An=en("left"),rn=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:dt.LIST,parse:function(e){return Je(e.filter(je))}}},on=rn("top-left"),sn=rn("top-right"),cn=rn("bottom-right"),ln=rn("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(qt||(qt={}));var dn,hn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"none":return qt.NONE}return qt.SOLID}}},un=hn("top"),pn=hn("right"),gn=hn("bottom"),fn=hn("left"),bn=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:dt.VALUE,prefix:!1,parse:function(e){return De(e)?e.number:0}}},mn=bn("top"),Bn=bn("right"),wn=bn("bottom"),vn=bn("left"),Cn={name:"color",initialValue:"transparent",prefix:!1,type:dt.TYPE_VALUE,format:"color"},En={name:"display",initialValue:"inline-block",prefix:!1,type:dt.LIST,parse:function(e){return e.filter(Re).reduce((function(e,t){return e|Qn(t.value)}),0)}},Qn=function(e){switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(dn||(dn={}));var xn,yn={name:"float",initialValue:"none",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"left":return dn.LEFT;case"right":return dn.RIGHT;case"inline-start":return dn.INLINE_START;case"inline-end":return dn.INLINE_END}return dn.NONE}},Un={name:"letter-spacing",initialValue:"0",prefix:!1,type:dt.VALUE,parse:function(e){return e.type===h.IDENT_TOKEN&&"normal"===e.value?0:e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN?e.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(xn||(xn={}));var Fn,kn={name:"line-break",initialValue:"normal",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"strict":return xn.STRICT;case"normal":default:return xn.NORMAL}}},Hn={name:"line-height",initialValue:"normal",prefix:!1,type:dt.TOKEN_VALUE},Sn={name:"list-style-image",initialValue:"none",type:dt.VALUE,prefix:!1,parse:function(e){return e.type===h.IDENT_TOKEN&&"none"===e.value?null:Vt(e)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(Fn||(Fn={}));var _n,Tn={name:"list-style-position",initialValue:"outside",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"inside":return Fn.INSIDE;case"outside":default:return Fn.OUTSIDE}}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(_n||(_n={}));var Nn,In={name:"list-style-type",initialValue:"none",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"disc":return _n.DISC;case"circle":return _n.CIRCLE;case"square":return _n.SQUARE;case"decimal":return _n.DECIMAL;case"cjk-decimal":return _n.CJK_DECIMAL;case"decimal-leading-zero":return _n.DECIMAL_LEADING_ZERO;case"lower-roman":return _n.LOWER_ROMAN;case"upper-roman":return _n.UPPER_ROMAN;case"lower-greek":return _n.LOWER_GREEK;case"lower-alpha":return _n.LOWER_ALPHA;case"upper-alpha":return _n.UPPER_ALPHA;case"arabic-indic":return _n.ARABIC_INDIC;case"armenian":return _n.ARMENIAN;case"bengali":return _n.BENGALI;case"cambodian":return _n.CAMBODIAN;case"cjk-earthly-branch":return _n.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return _n.CJK_HEAVENLY_STEM;case"cjk-ideographic":return _n.CJK_IDEOGRAPHIC;case"devanagari":return _n.DEVANAGARI;case"ethiopic-numeric":return _n.ETHIOPIC_NUMERIC;case"georgian":return _n.GEORGIAN;case"gujarati":return _n.GUJARATI;case"gurmukhi":return _n.GURMUKHI;case"hebrew":return _n.HEBREW;case"hiragana":return _n.HIRAGANA;case"hiragana-iroha":return _n.HIRAGANA_IROHA;case"japanese-formal":return _n.JAPANESE_FORMAL;case"japanese-informal":return _n.JAPANESE_INFORMAL;case"kannada":return _n.KANNADA;case"katakana":return _n.KATAKANA;case"katakana-iroha":return _n.KATAKANA_IROHA;case"khmer":return _n.KHMER;case"korean-hangul-formal":return _n.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return _n.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return _n.KOREAN_HANJA_INFORMAL;case"lao":return _n.LAO;case"lower-armenian":return _n.LOWER_ARMENIAN;case"malayalam":return _n.MALAYALAM;case"mongolian":return _n.MONGOLIAN;case"myanmar":return _n.MYANMAR;case"oriya":return _n.ORIYA;case"persian":return _n.PERSIAN;case"simp-chinese-formal":return _n.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return _n.SIMP_CHINESE_INFORMAL;case"tamil":return _n.TAMIL;case"telugu":return _n.TELUGU;case"thai":return _n.THAI;case"tibetan":return _n.TIBETAN;case"trad-chinese-formal":return _n.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return _n.TRAD_CHINESE_INFORMAL;case"upper-armenian":return _n.UPPER_ARMENIAN;case"disclosure-open":return _n.DISCLOSURE_OPEN;case"disclosure-closed":return _n.DISCLOSURE_CLOSED;case"none":default:return _n.NONE}}},On=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:dt.TOKEN_VALUE}},Dn=On("top"),Pn=On("right"),Rn=On("bottom"),Kn=On("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(Nn||(Nn={}));var Mn,Ln={name:"overflow",initialValue:"visible",prefix:!1,type:dt.LIST,parse:function(e){return e.filter(Re).map((function(e){switch(e.value){case"hidden":return Nn.HIDDEN;case"scroll":return Nn.SCROLL;case"auto":return Nn.AUTO;case"visible":default:return Nn.VISIBLE}}))}};!function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(Mn||(Mn={}));var Vn,zn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return Mn.BREAK_WORD;case"normal":default:return Mn.NORMAL}}},Xn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:dt.TYPE_VALUE,format:"length-percentage"}},Gn=Xn("top"),jn=Xn("right"),Jn=Xn("bottom"),Wn=Xn("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(Vn||(Vn={}));var Yn,qn={name:"text-align",initialValue:"left",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"right":return Vn.RIGHT;case"center":case"justify":return Vn.CENTER;case"left":default:return Vn.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(Yn||(Yn={}));var Zn,$n={name:"position",initialValue:"static",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"relative":return Yn.RELATIVE;case"absolute":return Yn.ABSOLUTE;case"fixed":return Yn.FIXED;case"sticky":return Yn.STICKY}return Yn.STATIC}},ei={name:"text-shadow",initialValue:"none",type:dt.LIST,prefix:!1,parse:function(e){return 1===e.length&&Me(e[0],"none")?[]:ze(e).map((function(e){for(var t={color:gt.TRANSPARENT,offsetX:We,offsetY:We,blur:We},n=0,i=0;i<e.length;i++){var a=e[i];Ge(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:t.blur=a,n++):t.color=at(a)}return t}))}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(Zn||(Zn={}));var ti,ni={name:"text-transform",initialValue:"none",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return Zn.UPPERCASE;case"lowercase":return Zn.LOWERCASE;case"capitalize":return Zn.CAPITALIZE}return Zn.NONE}},ii={name:"transform",initialValue:"none",prefix:!0,type:dt.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===h.FUNCTION){var t=ai[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},ai={matrix:function(e){var t=e.filter((function(e){return e.type===h.NUMBER_TOKEN})).map((function(e){return e.number}));return 6===t.length?t:null},matrix3d:function(e){var t=e.filter((function(e){return e.type===h.NUMBER_TOKEN})).map((function(e){return e.number}));return 16===t.length?[t[0],t[1],t[4],t[5],t[12],t[13]]:null}},Ai={type:h.PERCENTAGE_TOKEN,number:50,flags:4},ri=[Ai,Ai],oi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:dt.LIST,parse:function(e){var t=e.filter(je);return 2!==t.length?ri:[t[0],t[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(ti||(ti={}));var si,ci={name:"visible",initialValue:"none",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return ti.HIDDEN;case"collapse":return ti.COLLAPSE;case"visible":default:return ti.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(si||(si={}));var li,di={name:"word-break",initialValue:"normal",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return si.BREAK_ALL;case"keep-all":return si.KEEP_ALL;case"normal":default:return si.NORMAL}}},hi={name:"z-index",initialValue:"auto",prefix:!1,type:dt.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN)return{auto:!0,order:0};if(Pe(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ui={name:"opacity",initialValue:"1",type:dt.VALUE,prefix:!1,parse:function(e){return Pe(e)?e.number:1}},pi={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:dt.TYPE_VALUE,format:"color"},gi={name:"text-decoration-line",initialValue:"none",prefix:!1,type:dt.LIST,parse:function(e){return e.filter(Re).map((function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(e){return 0!==e}))}},fi={name:"font-family",initialValue:"",prefix:!1,type:dt.LIST,parse:function(e){var t=[],n=[];return e.forEach((function(e){switch(e.type){case h.IDENT_TOKEN:case h.STRING_TOKEN:t.push(e.value);break;case h.NUMBER_TOKEN:t.push(e.number.toString());break;case h.COMMA_TOKEN:n.push(t.join(" ")),t.length=0}})),t.length&&n.push(t.join(" ")),n.map((function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"}))}},bi={name:"font-size",initialValue:"0",prefix:!1,type:dt.TYPE_VALUE,format:"length"},mi={name:"font-weight",initialValue:"normal",type:dt.VALUE,prefix:!1,parse:function(e){if(Pe(e))return e.number;if(Re(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},Bi={name:"font-variant",initialValue:"none",type:dt.LIST,prefix:!1,parse:function(e){return e.filter(Re).map((function(e){return e.value}))}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(li||(li={}));var wi,vi={name:"font-style",initialValue:"normal",prefix:!1,type:dt.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return li.OBLIQUE;case"italic":return li.ITALIC;case"normal":default:return li.NORMAL}}},Ci=function(e,t){return 0!=(e&t)},Ei={name:"content",initialValue:"none",type:dt.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e}},Qi={name:"counter-increment",initialValue:"none",prefix:!0,type:dt.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],i=e.filter(Le),a=0;a<i.length;a++){var A=i[a],r=i[a+1];if(A.type===h.IDENT_TOKEN){var o=r&&Pe(r)?r.number:1;n.push({counter:A.value,increment:o})}}return n}},xi={name:"counter-reset",initialValue:"none",prefix:!0,type:dt.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(Le),i=0;i<n.length;i++){var a=n[i],A=n[i+1];if(Re(a)&&"none"!==a.value){var r=A&&Pe(A)?A.number:0;t.push({counter:a.value,reset:r})}}return t}},yi={name:"quotes",initialValue:"none",prefix:!0,type:dt.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;var n=[],i=e.filter(Ke);if(i.length%2!=0)return null;for(var a=0;a<i.length;a+=2)n.push({open:i[a].value,close:i[a+1].value});return n}},Ui=function(e,t,n){if(!e)return"";var i=e[Math.min(t,e.length-1)];return i?n?i.open:i.close:""},Fi={name:"box-shadow",initialValue:"none",type:dt.LIST,prefix:!1,parse:function(e){return 1===e.length&&Me(e[0],"none")?[]:ze(e).map((function(e){for(var t={color:255,offsetX:We,offsetY:We,blur:We,spread:We,inset:!1},n=0,i=0;i<e.length;i++){var a=e[i];Me(a,"inset")?t.inset=!0:Ge(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:2===n?t.blur=a:t.spread=a,n++):t.color=at(a)}return t}))}},ki=function(){function e(e){this.backgroundClip=_i(Bt,e.backgroundClip),this.backgroundColor=_i(wt,e.backgroundColor),this.backgroundImage=_i(Xt,e.backgroundImage),this.backgroundOrigin=_i(Gt,e.backgroundOrigin),this.backgroundPosition=_i(jt,e.backgroundPosition),this.backgroundRepeat=_i(Wt,e.backgroundRepeat),this.backgroundSize=_i(Zt,e.backgroundSize),this.borderTopColor=_i(tn,e.borderTopColor),this.borderRightColor=_i(nn,e.borderRightColor),this.borderBottomColor=_i(an,e.borderBottomColor),this.borderLeftColor=_i(An,e.borderLeftColor),this.borderTopLeftRadius=_i(on,e.borderTopLeftRadius),this.borderTopRightRadius=_i(sn,e.borderTopRightRadius),this.borderBottomRightRadius=_i(cn,e.borderBottomRightRadius),this.borderBottomLeftRadius=_i(ln,e.borderBottomLeftRadius),this.borderTopStyle=_i(un,e.borderTopStyle),this.borderRightStyle=_i(pn,e.borderRightStyle),this.borderBottomStyle=_i(gn,e.borderBottomStyle),this.borderLeftStyle=_i(fn,e.borderLeftStyle),this.borderTopWidth=_i(mn,e.borderTopWidth),this.borderRightWidth=_i(Bn,e.borderRightWidth),this.borderBottomWidth=_i(wn,e.borderBottomWidth),this.borderLeftWidth=_i(vn,e.borderLeftWidth),this.boxShadow=_i(Fi,e.boxShadow),this.color=_i(Cn,e.color),this.display=_i(En,e.display),this.float=_i(yn,e.cssFloat),this.fontFamily=_i(fi,e.fontFamily),this.fontSize=_i(bi,e.fontSize),this.fontStyle=_i(vi,e.fontStyle),this.fontVariant=_i(Bi,e.fontVariant),this.fontWeight=_i(mi,e.fontWeight),this.letterSpacing=_i(Un,e.letterSpacing),this.lineBreak=_i(kn,e.lineBreak),this.lineHeight=_i(Hn,e.lineHeight),this.listStyleImage=_i(Sn,e.listStyleImage),this.listStylePosition=_i(Tn,e.listStylePosition),this.listStyleType=_i(In,e.listStyleType),this.marginTop=_i(Dn,e.marginTop),this.marginRight=_i(Pn,e.marginRight),this.marginBottom=_i(Rn,e.marginBottom),this.marginLeft=_i(Kn,e.marginLeft),this.opacity=_i(ui,e.opacity);var t=_i(Ln,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=_i(zn,e.overflowWrap),this.paddingTop=_i(Gn,e.paddingTop),this.paddingRight=_i(jn,e.paddingRight),this.paddingBottom=_i(Jn,e.paddingBottom),this.paddingLeft=_i(Wn,e.paddingLeft),this.position=_i($n,e.position),this.textAlign=_i(qn,e.textAlign),this.textDecorationColor=_i(pi,e.textDecorationColor||e.color),this.textDecorationLine=_i(gi,e.textDecorationLine),this.textShadow=_i(ei,e.textShadow),this.textTransform=_i(ni,e.textTransform),this.transform=_i(ii,e.transform),this.transformOrigin=_i(oi,e.transformOrigin),this.visibility=_i(ci,e.visibility),this.wordBreak=_i(di,e.wordBreak),this.zIndex=_i(hi,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===ti.VISIBLE},e.prototype.isTransparent=function(){return At(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==Yn.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==dn.NONE},e.prototype.isInlineLevel=function(){return Ci(this.display,4)||Ci(this.display,33554432)||Ci(this.display,268435456)||Ci(this.display,536870912)||Ci(this.display,67108864)||Ci(this.display,134217728)},e}(),Hi=function(e){this.content=_i(Ei,e.content),this.quotes=_i(yi,e.quotes)},Si=function(e){this.counterIncrement=_i(Qi,e.counterIncrement),this.counterReset=_i(xi,e.counterReset)},_i=function(e,t){var n=new Ie,i=null!=t?t.toString():e.initialValue;n.write(i);var a=new Oe(n.read());switch(e.type){case dt.IDENT_VALUE:var A=a.parseComponentValue();return e.parse(Re(A)?A.value:e.initialValue);case dt.VALUE:return e.parse(a.parseComponentValue());case dt.LIST:return e.parse(a.parseComponentValues());case dt.TOKEN_VALUE:return a.parseComponentValue();case dt.TYPE_VALUE:switch(e.format){case"angle":return et(a.parseComponentValue());case"color":return at(a.parseComponentValue());case"image":return Vt(a.parseComponentValue());case"length":var r=a.parseComponentValue();return Ge(r)?r:We;case"length-percentage":var o=a.parseComponentValue();return je(o)?o:We}}throw new Error("Attempting to parse unsupported css format type "+e.format)},Ti=function(e){this.styles=new ki(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&Aa(e)&&(e.style.transform="none"),this.bounds=r(e),this.flags=0},Ni=function(e,t){this.text=e,this.bounds=t},Ii=function(e,t){this.text=Oi(e.data,t.textTransform),this.textBounds=function(e,t,n){var i=function(e,t){return 0!==t.letterSpacing?o(e).map((function(e){return s(e)})):function(e,t){for(var n,i=function(e,t){var n=o(e),i=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],i=[],a=[];return e.forEach((function(e,A){var r=G.get(e);if(r>50?(a.push(!0),r-=50):a.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return i.push(A),n.push(16);if(4===r||11===r){if(0===A)return i.push(A),n.push(O);var o=n[A-1];return-1===q.indexOf(o)?(i.push(i[A-1]),n.push(o)):(i.push(A),n.push(O))}return i.push(A),31===r?n.push("strict"===t?k:M):r===X||29===r?n.push(O):43===r?n.push(e>=131072&&e<=196605||e>=196608&&e<=262141?M:O):void n.push(r)})),[i,n,a]}(e,t.lineBreak),i=n[0],a=n[1],A=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(a=a.map((function(e){return-1!==[_,O,X].indexOf(e)?M:e}))),[i,a,"keep-all"===t.wordBreak?A.map((function(t,n){return t&&e[n]>=19968&&e[n]<=40959})):void 0]}(n,t),a=i[0],A=i[1],r=i[2],s=n.length,c=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var e="\xd7";l<s&&"\xd7"===(e=ne(n,A,a,++l,r)););if("\xd7"!==e||l===s){var t=new ie(n,e,c,l);return c=l,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===Mn.BREAK_WORD?"break-word":t.wordBreak}),a=[];!(n=i.next()).done;)n.value&&a.push(n.value.slice());return a}(e,t)}(e,t),a=[],c=0;return i.forEach((function(e){if(t.textDecorationLine.length||e.trim().length>0)if(kt.SUPPORT_RANGE_BOUNDS)a.push(new Ni(e,function(e,t,n){var i=e.ownerDocument;if(!i)throw new Error("Node has no owner document");var a=i.createRange();return a.setStart(e,t),a.setEnd(e,t+n),A.fromClientRect(a.getBoundingClientRect())}(n,c,e.length)));else{var i=n.splitText(e.length);a.push(new Ni(e,function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(n,e);var a=r(n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return new A(0,0,0,0)}(n))),n=i}else kt.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));c+=e.length})),a}(this.text,t,e)},Oi=function(e,t){switch(t){case Zn.LOWERCASE:return e.toLowerCase();case Zn.CAPITALIZE:return e.replace(Di,Pi);case Zn.UPPERCASE:return e.toUpperCase();default:return e}},Di=/(^|\s|:|-|\(|\))([a-z])/g,Pi=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Ri=function(e){function n(t){var n=e.call(this,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,St.getInstance().addImage(n.src),n}return t(n,e),n}(Ti),Ki=function(e){function n(t){var n=e.call(this,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return t(n,e),n}(Ti),Mi=function(e){function n(t){var n=e.call(this,t)||this,i=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,St.getInstance().addImage(n.svg),n}return t(n,e),n}(Ti),Li=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(Ti),Vi=function(e){function n(t){var n=e.call(this,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return t(n,e),n}(Ti),zi=[{type:h.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Xi=[{type:h.PERCENTAGE_TOKEN,flags:0,number:50}],Gi=function(e){function n(t){var n,i,a,r=e.call(this,t)||this;switch(r.type=t.type.toLowerCase(),r.checked=t.checked,r.value=0===(i="password"===(n=t).type?new Array(n.value.length+1).join("\u2022"):n.value).length?n.placeholder||"":i,"checkbox"!==r.type&&"radio"!==r.type||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=qt.SOLID,r.styles.backgroundClip=[ht.BORDER_BOX],r.styles.backgroundOrigin=[0],r.bounds=(a=r.bounds).width>a.height?new A(a.left+(a.width-a.height)/2,a.top,a.height,a.height):a.width<a.height?new A(a.left,a.top+(a.height-a.width)/2,a.width,a.width):a),r.type){case"checkbox":r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=zi;break;case"radio":r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Xi}return r}return t(n,e),n}(Ti),ji=function(e){function n(t){var n=e.call(this,t)||this,i=t.options[t.selectedIndex||0];return n.value=i&&i.text||"",n}return t(n,e),n}(Ti),Ji=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(Ti),Wi=function(e){return at(Oe.create(e).parseComponentValue())},Yi=function(e){function n(t){var n=e.call(this,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=ea(t.contentWindow.document.documentElement);var i=t.contentWindow.document.documentElement?Wi(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):gt.TRANSPARENT,a=t.contentWindow.document.body?Wi(getComputedStyle(t.contentWindow.document.body).backgroundColor):gt.TRANSPARENT;n.backgroundColor=At(i)?At(a)?n.styles.backgroundColor:a:i}}catch(A){}return n}return t(n,e),n}(Ti),qi=["OL","UL","MENU"],Zi=function(e,t,n){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,ia(i)&&i.data.trim().length>0)t.textNodes.push(new Ii(i,t.styles));else if(aa(i)){var A=$i(i);A.styles.isVisible()&&(ta(i,A,n)?A.flags|=4:na(A.styles)&&(A.flags|=2),-1!==qi.indexOf(i.tagName)&&(A.flags|=8),t.elements.push(A),ba(i)||la(i)||ma(i)||Zi(i,A,n))}},$i=function(e){return ua(e)?new Ri(e):ha(e)?new Ki(e):la(e)?new Mi(e):oa(e)?new Li(e):sa(e)?new Vi(e):ca(e)?new Gi(e):ma(e)?new ji(e):ba(e)?new Ji(e):pa(e)?new Yi(e):new Ti(e)},ea=function(e){var t=$i(e);return t.flags|=4,Zi(e,t,t),t},ta=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||da(e)&&n.styles.isTransparent()},na=function(e){return e.isPositioned()||e.isFloating()},ia=function(e){return e.nodeType===Node.TEXT_NODE},aa=function(e){return e.nodeType===Node.ELEMENT_NODE},Aa=function(e){return aa(e)&&void 0!==e.style&&!ra(e)},ra=function(e){return"object"==typeof e.className},oa=function(e){return"LI"===e.tagName},sa=function(e){return"OL"===e.tagName},ca=function(e){return"INPUT"===e.tagName},la=function(e){return"svg"===e.tagName},da=function(e){return"BODY"===e.tagName},ha=function(e){return"CANVAS"===e.tagName},ua=function(e){return"IMG"===e.tagName},pa=function(e){return"IFRAME"===e.tagName},ga=function(e){return"STYLE"===e.tagName},fa=function(e){return"SCRIPT"===e.tagName},ba=function(e){return"TEXTAREA"===e.tagName},ma=function(e){return"SELECT"===e.tagName},Ba=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach((function(e){return t.counters[e].pop()}))},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,i=e.counterReset,a=!0;null!==n&&n.forEach((function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(a=!1,n[Math.max(0,n.length-1)]+=e.increment)}));var A=[];return a&&i.forEach((function(e){var n=t.counters[e.counter];A.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)})),A},e}(),wa={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},va={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Ca={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},Ea={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},Qa=function(e,t,n,i,a,A){return e<t||e>n?ka(e,a,A.length>0):i.integers.reduce((function(t,n,a){for(;e>=n;)e-=n,t+=i.values[a];return t}),"")+A},xa=function(e,t,n,i){var a="";do{n||e--,a=i(e)+a,e/=t}while(e*t>=t);return a},ya=function(e,t,n,i,a){var A=n-t+1;return(e<0?"-":"")+(xa(Math.abs(e),A,i,(function(e){return s(Math.floor(e%A)+t)}))+a)},Ua=function(e,t,n){void 0===n&&(n=". ");var i=t.length;return xa(Math.abs(e),i,!1,(function(e){return t[Math.floor(e%i)]}))+n},Fa=function(e,t,n,i,a,A){if(e<-9999||e>9999)return ka(e,_n.CJK_DECIMAL,a.length>0);var r=Math.abs(e),o=a;if(0===r)return t[0]+o;for(var s=0;r>0&&s<=4;s++){var c=r%10;0===c&&Ci(A,1)&&""!==o?o=t[c]+o:c>1||1===c&&0===s||1===c&&1===s&&Ci(A,2)||1===c&&1===s&&Ci(A,4)&&e>100||1===c&&s>1&&Ci(A,8)?o=t[c]+(s>0?n[s-1]:"")+o:1===c&&s>0&&(o=n[s-1]+o),r=Math.floor(r/10)}return(e<0?i:"")+o},ka=function(e,t,n){var i=n?". ":"",a=n?"\u3001":"",A=n?", ":"",r=n?" ":"";switch(t){case _n.DISC:return"\u2022"+r;case _n.CIRCLE:return"\u25e6"+r;case _n.SQUARE:return"\u25fe"+r;case _n.DECIMAL_LEADING_ZERO:var o=ya(e,48,57,!0,i);return o.length<4?"0"+o:o;case _n.CJK_DECIMAL:return Ua(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",a);case _n.LOWER_ROMAN:return Qa(e,1,3999,wa,_n.DECIMAL,i).toLowerCase();case _n.UPPER_ROMAN:return Qa(e,1,3999,wa,_n.DECIMAL,i);case _n.LOWER_GREEK:return ya(e,945,969,!1,i);case _n.LOWER_ALPHA:return ya(e,97,122,!1,i);case _n.UPPER_ALPHA:return ya(e,65,90,!1,i);case _n.ARABIC_INDIC:return ya(e,1632,1641,!0,i);case _n.ARMENIAN:case _n.UPPER_ARMENIAN:return Qa(e,1,9999,va,_n.DECIMAL,i);case _n.LOWER_ARMENIAN:return Qa(e,1,9999,va,_n.DECIMAL,i).toLowerCase();case _n.BENGALI:return ya(e,2534,2543,!0,i);case _n.CAMBODIAN:case _n.KHMER:return ya(e,6112,6121,!0,i);case _n.CJK_EARTHLY_BRANCH:return Ua(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",a);case _n.CJK_HEAVENLY_STEM:return Ua(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",a);case _n.CJK_IDEOGRAPHIC:case _n.TRAD_CHINESE_INFORMAL:return Fa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",a,14);case _n.TRAD_CHINESE_FORMAL:return Fa(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",a,15);case _n.SIMP_CHINESE_INFORMAL:return Fa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",a,14);case _n.SIMP_CHINESE_FORMAL:return Fa(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",a,15);case _n.JAPANESE_INFORMAL:return Fa(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,0);case _n.JAPANESE_FORMAL:return Fa(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,7);case _n.KOREAN_HANGUL_FORMAL:return Fa(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc","\ub9c8\uc774\ub108\uc2a4",A,7);case _n.KOREAN_HANJA_INFORMAL:return Fa(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\ub9c8\uc774\ub108\uc2a4",A,0);case _n.KOREAN_HANJA_FORMAL:return Fa(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343","\ub9c8\uc774\ub108\uc2a4",A,7);case _n.DEVANAGARI:return ya(e,2406,2415,!0,i);case _n.GEORGIAN:return Qa(e,1,19999,Ea,_n.DECIMAL,i);case _n.GUJARATI:return ya(e,2790,2799,!0,i);case _n.GURMUKHI:return ya(e,2662,2671,!0,i);case _n.HEBREW:return Qa(e,1,10999,Ca,_n.DECIMAL,i);case _n.HIRAGANA:return Ua(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case _n.HIRAGANA_IROHA:return Ua(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case _n.KANNADA:return ya(e,3302,3311,!0,i);case _n.KATAKANA:return Ua(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",a);case _n.KATAKANA_IROHA:return Ua(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",a);case _n.LAO:return ya(e,3792,3801,!0,i);case _n.MONGOLIAN:return ya(e,6160,6169,!0,i);case _n.MYANMAR:return ya(e,4160,4169,!0,i);case _n.ORIYA:return ya(e,2918,2927,!0,i);case _n.PERSIAN:return ya(e,1776,1785,!0,i);case _n.TAMIL:return ya(e,3046,3055,!0,i);case _n.TELUGU:return ya(e,3174,3183,!0,i);case _n.THAI:return ya(e,3664,3673,!0,i);case _n.TIBETAN:return ya(e,3872,3881,!0,i);case _n.DECIMAL:default:return ya(e,48,57,!0,i)}},Ha=function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new Ba,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,A=_a(e,t);if(!A.contentWindow)return Promise.reject("Unable to find iframe window");var r=e.defaultView.pageXOffset,o=e.defaultView.pageYOffset,s=A.contentWindow,c=s.document,l=Ta(A).then((function(){return i(n,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Da),s&&(s.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||s.scrollY===t.top&&s.scrollX===t.left||(c.documentElement.style.top=-t.top+"px",c.documentElement.style.left=-t.left+"px",c.documentElement.style.position="absolute")),e=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"==typeof e?[2,Promise.resolve().then((function(){return e(c)})).then((function(){return A}))]:[2,A]}}))}))}));return c.open(),c.write(Ia(document.doctype)+"<html></html>"),Oa(this.referenceElement.ownerDocument,r,o),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},e.prototype.createElementClone=function(e){if(ha(e))return this.createCanvasClone(e);if(ga(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ua(t)&&"lazy"===t.loading&&(t.loading="eager"),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce((function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e}),""),i=e.cloneNode(!1);return i.textContent=n,i}}catch(a){if(Ht.getInstance(this.options.id).error("Unable to access cssRules property",a),"SecurityError"!==a.name)throw a}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(A){Ht.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var i=e.getContext("2d"),a=n.getContext("2d");return a&&(i?a.putImageData(i.getImageData(0,0,e.width,e.height),0,0):a.drawImage(e,0,0)),n}catch(A){}return n},e.prototype.cloneNode=function(e){if(ia(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&aa(e)&&(Aa(e)||ra(e))){var n=this.createElementClone(e),i=t.getComputedStyle(e),a=t.getComputedStyle(e,":before"),A=t.getComputedStyle(e,":after");this.referenceElement===e&&Aa(n)&&(this.clonedReferenceElement=n),da(n)&&Ka(n);for(var r=this.counters.parse(new Si(i)),o=this.resolvePseudoContent(e,n,a,wi.BEFORE),s=e.firstChild;s;s=s.nextSibling)aa(s)&&(fa(s)||s.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(s))||this.options.copyStyles&&aa(s)&&ga(s)||n.appendChild(this.cloneNode(s));o&&n.insertBefore(o,n.firstChild);var c=this.resolvePseudoContent(e,n,A,wi.AFTER);return c&&n.appendChild(c),this.counters.pop(r),i&&(this.options.copyStyles||ra(e))&&!pa(e)&&Na(i,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(ba(e)||ma(e))&&(ba(n)||ma(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,i){var a=this;if(n){var A=n.content,r=t.ownerDocument;if(r&&A&&"none"!==A&&"-moz-alt-content"!==A&&"none"!==n.display){this.counters.parse(new Si(n));var o=new Hi(n),s=r.createElement("html2canvaspseudoelement");Na(n,s),o.content.forEach((function(t){if(t.type===h.STRING_TOKEN)s.appendChild(r.createTextNode(t.value));else if(t.type===h.URL_TOKEN){var n=r.createElement("img");n.src=t.value,n.style.opacity="1",s.appendChild(n)}else if(t.type===h.FUNCTION){if("attr"===t.name){var i=t.values.filter(Re);i.length&&s.appendChild(r.createTextNode(e.getAttribute(i[0].value)||""))}else if("counter"===t.name){var A=t.values.filter(Ve),c=A[1];if((u=A[0])&&Re(u)){var l=a.counters.getCounterValue(u.value),d=c&&Re(c)?In.parse(c.value):_n.DECIMAL;s.appendChild(r.createTextNode(ka(l,d,!1)))}}else if("counters"===t.name){var u,p=t.values.filter(Ve),g=p[1];if(c=p[2],(u=p[0])&&Re(u)){var f=a.counters.getCounterValues(u.value),b=c&&Re(c)?In.parse(c.value):_n.DECIMAL,m=g&&g.type===h.STRING_TOKEN?g.value:"",B=f.map((function(e){return ka(e,b,!1)})).join(m);s.appendChild(r.createTextNode(B))}}}else if(t.type===h.IDENT_TOKEN)switch(t.value){case"open-quote":s.appendChild(r.createTextNode(Ui(o.quotes,a.quoteDepth++,!0)));break;case"close-quote":s.appendChild(r.createTextNode(Ui(o.quotes,--a.quoteDepth,!1)));break;default:s.appendChild(r.createTextNode(t.value))}})),s.className=Pa+" "+Ra;var c=i===wi.BEFORE?" "+Pa:" "+Ra;return ra(t)?t.className.baseValue+=c:t.className+=c,s}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(wi||(wi={}));var Sa,_a=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},Ta=function(e){return new Promise((function(t,n){var i=e.contentWindow;if(!i)return n("No window assigned for iframe");var a=i.document;i.onload=e.onload=a.onreadystatechange=function(){i.onload=e.onload=a.onreadystatechange=null;var n=setInterval((function(){a.body.childNodes.length>0&&"complete"===a.readyState&&(clearInterval(n),t(e))}),50)}}))},Na=function(e,t){for(var n=e.length-1;n>=0;n--){var i=e.item(n);"content"!==i&&t.style.setProperty(i,e.getPropertyValue(i))}return t},Ia=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Oa=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Da=function(e){var t=e[0],n=e[2];t.scrollLeft=e[1],t.scrollTop=n},Pa="___html2canvas___pseudoelement_before",Ra="___html2canvas___pseudoelement_after",Ka=function(e){Ma(e,"."+Pa+':before{\n    content: "" !important;\n    display: none !important;\n}\n         .'+Ra+':after{\n    content: "" !important;\n    display: none !important;\n}')},Ma=function(e,t){var n=e.ownerDocument;if(n){var i=n.createElement("style");i.textContent=t,e.appendChild(i)}};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(Sa||(Sa={}));var La,Va=function(e,t){return e.length===t.length&&e.some((function(e,n){return e===t[n]}))},za=function(){function e(e,t){this.type=Sa.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),Xa=function(e,t,n){return new za(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Ga=function(){function e(e,t,n,i){this.type=Sa.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,n){var i=Xa(this.start,this.startControl,t),a=Xa(this.startControl,this.endControl,t),A=Xa(this.endControl,this.end,t),r=Xa(i,a,t),o=Xa(a,A,t),s=Xa(r,o,t);return n?new e(this.start,i,r,s):new e(s,o,A,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),ja=function(e){return e.type===Sa.BEZIER_CURVE},Ja=function(e){var t=e.styles,n=e.bounds,i=Ze(t.borderTopLeftRadius,n.width,n.height),a=i[0],A=i[1],r=Ze(t.borderTopRightRadius,n.width,n.height),o=r[0],s=r[1],c=Ze(t.borderBottomRightRadius,n.width,n.height),l=c[0],d=c[1],h=Ze(t.borderBottomLeftRadius,n.width,n.height),u=h[0],p=h[1],g=[];g.push((a+o)/n.width),g.push((u+l)/n.width),g.push((A+p)/n.height),g.push((s+d)/n.height);var f=Math.max.apply(Math,g);f>1&&(a/=f,A/=f,o/=f,s/=f,l/=f,d/=f,u/=f,p/=f);var b=n.width-o,m=n.height-d,B=n.width-l,w=n.height-p,v=t.borderTopWidth,C=t.borderRightWidth,E=t.borderBottomWidth,Q=t.borderLeftWidth,x=$e(t.paddingTop,e.bounds.width),y=$e(t.paddingRight,e.bounds.width),U=$e(t.paddingBottom,e.bounds.width),F=$e(t.paddingLeft,e.bounds.width);this.topLeftBorderBox=a>0||A>0?Wa(n.left,n.top,a,A,La.TOP_LEFT):new za(n.left,n.top),this.topRightBorderBox=o>0||s>0?Wa(n.left+b,n.top,o,s,La.TOP_RIGHT):new za(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||d>0?Wa(n.left+B,n.top+m,l,d,La.BOTTOM_RIGHT):new za(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=u>0||p>0?Wa(n.left,n.top+w,u,p,La.BOTTOM_LEFT):new za(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||A>0?Wa(n.left+Q,n.top+v,Math.max(0,a-Q),Math.max(0,A-v),La.TOP_LEFT):new za(n.left+Q,n.top+v),this.topRightPaddingBox=o>0||s>0?Wa(n.left+Math.min(b,n.width+Q),n.top+v,b>n.width+Q?0:o-Q,s-v,La.TOP_RIGHT):new za(n.left+n.width-C,n.top+v),this.bottomRightPaddingBox=l>0||d>0?Wa(n.left+Math.min(B,n.width-Q),n.top+Math.min(m,n.height+v),Math.max(0,l-C),d-E,La.BOTTOM_RIGHT):new za(n.left+n.width-C,n.top+n.height-E),this.bottomLeftPaddingBox=u>0||p>0?Wa(n.left+Q,n.top+w,Math.max(0,u-Q),p-E,La.BOTTOM_LEFT):new za(n.left+Q,n.top+n.height-E),this.topLeftContentBox=a>0||A>0?Wa(n.left+Q+F,n.top+v+x,Math.max(0,a-(Q+F)),Math.max(0,A-(v+x)),La.TOP_LEFT):new za(n.left+Q+F,n.top+v+x),this.topRightContentBox=o>0||s>0?Wa(n.left+Math.min(b,n.width+Q+F),n.top+v+x,b>n.width+Q+F?0:o-Q+F,s-(v+x),La.TOP_RIGHT):new za(n.left+n.width-(C+y),n.top+v+x),this.bottomRightContentBox=l>0||d>0?Wa(n.left+Math.min(B,n.width-(Q+F)),n.top+Math.min(m,n.height+v+x),Math.max(0,l-(C+y)),d-(E+U),La.BOTTOM_RIGHT):new za(n.left+n.width-(C+y),n.top+n.height-(E+U)),this.bottomLeftContentBox=u>0||p>0?Wa(n.left+Q+F,n.top+w,Math.max(0,u-(Q+F)),p-(E+U),La.BOTTOM_LEFT):new za(n.left+Q+F,n.top+n.height-(E+U))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(La||(La={}));var Wa=function(e,t,n,i,a){var A=(Math.sqrt(2)-1)/3*4,r=n*A,o=i*A,s=e+n,c=t+i;switch(a){case La.TOP_LEFT:return new Ga(new za(e,c),new za(e,c-o),new za(s-r,t),new za(s,t));case La.TOP_RIGHT:return new Ga(new za(e,t),new za(e+r,t),new za(s,c-o),new za(s,c));case La.BOTTOM_RIGHT:return new Ga(new za(s,t),new za(s,t+o),new za(e+r,c),new za(e,c));case La.BOTTOM_LEFT:default:return new Ga(new za(s,c),new za(s-r,c),new za(e,t+o),new za(e,t))}},Ya=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},qa=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Za=function(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6},$a=function(e,t){this.type=1,this.target=t,this.path=e},eA=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},tA=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new Ja(e),null!==e.styles.transform&&this.effects.push(new Za(e.bounds.left+e.styles.transformOrigin[0].number,e.bounds.top+e.styles.transformOrigin[1].number,e.styles.transform)),e.styles.overflowX!==Nn.VISIBLE){var n=Ya(this.curves),i=qa(this.curves);Va(n,i)?this.effects.push(new $a(n,6)):(this.effects.push(new $a(n,2)),this.effects.push(new $a(i,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==Nn.VISIBLE){var t=Ya(this.curves),n=qa(this.curves);Va(t,n)||e.push(new $a(n,6))}return e},e}(),nA=function(e,t,n,i){e.container.elements.forEach((function(a){var A=Ci(a.flags,4),r=Ci(a.flags,2),o=new tA(a,e.getParentEffects());Ci(a.styles.display,2048)&&i.push(o);var s=Ci(a.flags,8)?[]:i;if(A||r){var c=A||a.styles.isPositioned()?n:t,l=new eA(o);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var h=0;c.negativeZIndex.some((function(e,t){return d>e.element.container.styles.zIndex.order?(h=t,!1):h>0})),c.negativeZIndex.splice(h,0,l)}else if(d>0){var u=0;c.positiveZIndex.some((function(e,t){return d>=e.element.container.styles.zIndex.order?(u=t+1,!1):u>0})),c.positiveZIndex.splice(u,0,l)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else a.styles.isFloating()?c.nonPositionedFloats.push(l):c.nonPositionedInlineLevel.push(l);nA(o,l,A?l:n,s)}else a.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),nA(o,t,n,s);Ci(a.flags,8)&&iA(a,s)}))},iA=function(e,t){for(var n=e instanceof Vi?e.start:1,i=e instanceof Vi&&e.reversed,a=0;a<t.length;a++){var A=t[a];A.container instanceof Li&&"number"==typeof A.container.value&&0!==A.container.value&&(n=A.container.value),A.listValue=ka(n,A.container.styles.listStyleType,!0),n+=i?-1:1}},aA=function(e,t,n,i){var a=[];return ja(e)?a.push(e.subdivide(.5,!1)):a.push(e),ja(n)?a.push(n.subdivide(.5,!0)):a.push(n),ja(i)?a.push(i.subdivide(.5,!0).reverse()):a.push(i),ja(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},AA=function(e){var t=e.styles;return e.bounds.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},rA=function(e){var t=e.styles,n=e.bounds,i=$e(t.paddingLeft,n.width),a=$e(t.paddingRight,n.width),A=$e(t.paddingTop,n.width),r=$e(t.paddingBottom,n.width);return n.add(i+t.borderLeftWidth,A+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+i+a),-(t.borderTopWidth+t.borderBottomWidth+A+r))},oA=function(e,t,n){var i=function(e,t){return 0===e?t.bounds:2===e?rA(t):AA(t)}(dA(e.styles.backgroundOrigin,t),e),a=function(e,t){return e===ht.BORDER_BOX?t.bounds:e===ht.CONTENT_BOX?rA(t):AA(t)}(dA(e.styles.backgroundClip,t),e),A=lA(dA(e.styles.backgroundSize,t),n,i),r=A[0],o=A[1],s=Ze(dA(e.styles.backgroundPosition,t),i.width-r,i.height-o);return[hA(dA(e.styles.backgroundRepeat,t),s,A,i,a),Math.round(i.left+s[0]),Math.round(i.top+s[1]),r,o]},sA=function(e){return Re(e)&&e.value===Jt.AUTO},cA=function(e){return"number"==typeof e},lA=function(e,t,n){var i=t[0],a=t[1],A=t[2],r=e[0],o=e[1];if(je(r)&&o&&je(o))return[$e(r,n.width),$e(o,n.height)];var s=cA(A);if(Re(r)&&(r.value===Jt.CONTAIN||r.value===Jt.COVER))return cA(A)?n.width/n.height<A!=(r.value===Jt.COVER)?[n.width,n.width/A]:[n.height*A,n.height]:[n.width,n.height];var c=cA(i),l=cA(a),d=c||l;if(sA(r)&&(!o||sA(o)))return c&&l?[i,a]:s||d?d&&s?[c?i:a*A,l?a:i/A]:[c?i:n.width,l?a:n.height]:[n.width,n.height];if(s){var h=0,u=0;return je(r)?h=$e(r,n.width):je(o)&&(u=$e(o,n.height)),sA(r)?h=u*A:o&&!sA(o)||(u=h/A),[h,u]}var p=null,g=null;if(je(r)?p=$e(r,n.width):o&&je(o)&&(g=$e(o,n.height)),null===p||o&&!sA(o)||(g=c&&l?p/i*a:n.height),null!==g&&sA(r)&&(p=c&&l?g/a*i:n.width),null!==p&&null!==g)return[p,g];throw new Error("Unable to calculate background-size for element")},dA=function(e,t){var n=e[t];return void 0===n?e[0]:n},hA=function(e,t,n,i,a){var A=t[0],r=t[1],o=n[0],s=n[1];switch(e){case Lt.REPEAT_X:return[new za(Math.round(i.left),Math.round(i.top+r)),new za(Math.round(i.left+i.width),Math.round(i.top+r)),new za(Math.round(i.left+i.width),Math.round(s+i.top+r)),new za(Math.round(i.left),Math.round(s+i.top+r))];case Lt.REPEAT_Y:return[new za(Math.round(i.left+A),Math.round(i.top)),new za(Math.round(i.left+A+o),Math.round(i.top)),new za(Math.round(i.left+A+o),Math.round(i.height+i.top)),new za(Math.round(i.left+A),Math.round(i.height+i.top))];case Lt.NO_REPEAT:return[new za(Math.round(i.left+A),Math.round(i.top+r)),new za(Math.round(i.left+A+o),Math.round(i.top+r)),new za(Math.round(i.left+A+o),Math.round(i.top+r+s)),new za(Math.round(i.left+A),Math.round(i.top+r+s))];default:return[new za(Math.round(a.left),Math.round(a.top)),new za(Math.round(a.left+a.width),Math.round(a.top)),new za(Math.round(a.left+a.width),Math.round(a.height+a.top)),new za(Math.round(a.left),Math.round(a.height+a.top))]}},uA=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),A=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",A.appendChild(n),i.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(a),n.appendChild(i);var r=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",i.style.verticalAlign="super";var o=i.offsetTop-n.offsetTop+2;return A.removeChild(n),{baseline:r,middle:o}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),pA=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new uA(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Ht.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter((function(e){return Ci(e.target,t)})).forEach((function(e){return n.applyEffect(e)}))},e.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(n){switch(n.label){case 0:return(t=e.element.container.styles).isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},e.prototype.renderNode=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}}))}))},e.prototype.renderTextWithLetterSpacing=function(e,t){var n=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):o(e.text).map((function(e){return s(e)})).reduce((function(t,i){return n.ctx.fillText(i,t,e.bounds.top+e.bounds.height),t+n.ctx.measureText(i).width}),e.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter((function(e){return"normal"===e||"small-caps"===e})).join(""),n=e.fontFamily.join(", "),i=De(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,i,n].join(" "),n,i]},e.prototype.renderTextNode=function(e,t){return i(this,void 0,void 0,(function(){var n,i,A,r=this;return a(this,(function(a){return n=this.createFontStyle(t),i=n[1],A=n[2],this.ctx.font=n[0],e.textBounds.forEach((function(e){r.ctx.fillStyle=rt(t.color),r.renderTextWithLetterSpacing(e,t.letterSpacing);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach((function(t){r.ctx.shadowColor=rt(t.color),r.ctx.shadowOffsetX=t.offsetX.number*r.options.scale,r.ctx.shadowOffsetY=t.offsetY.number*r.options.scale,r.ctx.shadowBlur=t.blur.number,r.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)})),r.ctx.shadowColor="",r.ctx.shadowOffsetX=0,r.ctx.shadowOffsetY=0,r.ctx.shadowBlur=0),t.textDecorationLine.length&&(r.ctx.fillStyle=rt(t.textDecorationColor||t.color),t.textDecorationLine.forEach((function(t){switch(t){case 1:var n=r.fontMetrics.getMetrics(i,A).baseline;r.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+n),e.bounds.width,1);break;case 2:r.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var a=r.fontMetrics.getMetrics(i,A).middle;r.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+a),e.bounds.width,1)}})))})),[2]}))}))},e.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=rA(e),a=qa(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return i(this,void 0,void 0,(function(){var n,i,r,o,s,c,l,d,u,p,g,f,b;return a(this,(function(a){switch(a.label){case 0:this.applyEffects(t.effects,4),i=t.curves,r=(n=t.container).styles,o=0,s=n.textNodes,a.label=1;case 1:return o<s.length?[4,this.renderTextNode(s[o],r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return o++,[3,1];case 4:if(!(n instanceof Ri))return[3,8];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return g=a.sent(),this.renderReplacedElement(n,i,g),[3,8];case 7:return a.sent(),Ht.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Ki&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof Mi))return[3,12];a.label=9;case 9:return a.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return g=a.sent(),this.renderReplacedElement(n,i,g),[3,12];case 11:return a.sent(),Ht.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Yi&&n.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:c=a.sent(),n.width&&n.height&&this.ctx.drawImage(c,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),a.label=14;case 14:if(n instanceof Gi&&(l=Math.min(n.bounds.width,n.bounds.height),"checkbox"===n.type?n.checked&&(this.ctx.save(),this.path([new za(n.bounds.left+.39363*l,n.bounds.top+.79*l),new za(n.bounds.left+.16*l,n.bounds.top+.5549*l),new za(n.bounds.left+.27347*l,n.bounds.top+.44071*l),new za(n.bounds.left+.39694*l,n.bounds.top+.5649*l),new za(n.bounds.left+.72983*l,n.bounds.top+.23*l),new za(n.bounds.left+.84*l,n.bounds.top+.34085*l),new za(n.bounds.left+.39363*l,n.bounds.top+.79*l)]),this.ctx.fillStyle=rt(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===n.type&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+l/2,n.bounds.top+l/2,l/4,0,2*Math.PI,!0),this.ctx.fillStyle=rt(707406591),this.ctx.fill(),this.ctx.restore())),gA(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(r)[0],this.ctx.fillStyle=rt(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign=bA(n.styles.textAlign),b=rA(n),d=0,n.styles.textAlign){case Vn.CENTER:d+=b.width/2;break;case Vn.RIGHT:d+=b.width}u=b.add(d,0,0,-b.height/2+1),this.ctx.save(),this.path([new za(b.left,b.top),new za(b.left+b.width,b.top),new za(b.left+b.width,b.top+b.height),new za(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ni(n.value,u),r.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Ci(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((p=n.styles.listStyleImage).type!==ft.URL)return[3,18];g=void 0,f=p.url,a.label=15;case 15:return a.trys.push([15,17,,18]),[4,this.options.cache.match(f)];case 16:return g=a.sent(),this.ctx.drawImage(g,n.bounds.left-(g.width+10),n.bounds.top),[3,18];case 17:return a.sent(),Ht.getInstance(this.options.id).error("Error loading list-style-image "+f),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==_n.NONE&&(this.ctx.font=this.createFontStyle(r)[0],this.ctx.fillStyle=rt(r.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new A(n.bounds.left,n.bounds.top+$e(n.styles.paddingTop,n.bounds.width),n.bounds.width,function(e,t){return Re(e)&&"normal"===e.value?1.2*t:e.type===h.NUMBER_TOKEN?t*e.number:je(e)?$e(e,t):t}(r.lineHeight,r.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ni(t.listValue,b),r.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),a.label=20;case 20:return[2]}}))}))},e.prototype.renderStackContent=function(e){return i(this,void 0,void 0,(function(){var t,n,i,A,r,o,s,c,l,d,h,u,p,g;return a(this,(function(a){switch(a.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:a.sent(),t=0,n=e.negativeZIndex,a.label=2;case 2:return t<n.length?[4,this.renderStack(n[t])]:[3,5];case 3:a.sent(),a.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:a.sent(),i=0,A=e.nonInlineLevel,a.label=7;case 7:return i<A.length?[4,this.renderNode(A[i])]:[3,10];case 8:a.sent(),a.label=9;case 9:return i++,[3,7];case 10:r=0,o=e.nonPositionedFloats,a.label=11;case 11:return r<o.length?[4,this.renderStack(o[r])]:[3,14];case 12:a.sent(),a.label=13;case 13:return r++,[3,11];case 14:s=0,c=e.nonPositionedInlineLevel,a.label=15;case 15:return s<c.length?[4,this.renderStack(c[s])]:[3,18];case 16:a.sent(),a.label=17;case 17:return s++,[3,15];case 18:l=0,d=e.inlineLevel,a.label=19;case 19:return l<d.length?[4,this.renderNode(d[l])]:[3,22];case 20:a.sent(),a.label=21;case 21:return l++,[3,19];case 22:h=0,u=e.zeroOrAutoZIndexOrTransformedOrOpacity,a.label=23;case 23:return h<u.length?[4,this.renderStack(u[h])]:[3,26];case 24:a.sent(),a.label=25;case 25:return h++,[3,23];case 26:p=0,g=e.positiveZIndex,a.label=27;case 27:return p<g.length?[4,this.renderStack(g[p])]:[3,30];case 28:a.sent(),a.label=29;case 29:return p++,[3,27];case 30:return[2]}}))}))},e.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach((function(e,n){var i=ja(e)?e.start:e;0===n?t.ctx.moveTo(i.x,i.y):t.ctx.lineTo(i.x,i.y),ja(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)}))},e.prototype.renderRepeat=function(e,t,n,i){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},e.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var i=this.canvas.ownerDocument.createElement("canvas");return i.width=t,i.height=n,i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},e.prototype.renderBackgroundImage=function(e){return i(this,void 0,void 0,(function(){var t,n,i,A,r;return a(this,(function(o){switch(o.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var A,r,o,s,c,l,d,h,u,p,g,f,b,m,B,w,v,C,E,Q,x,y,U,F,k,H,S,_,T,N,I;return a(this,(function(a){switch(a.label){case 0:if(n.type!==ft.URL)return[3,5];A=void 0,r=n.url,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,i.options.cache.match(r)];case 2:return A=a.sent(),[3,4];case 3:return a.sent(),Ht.getInstance(i.options.id).error("Error loading background-image "+r),[3,4];case 4:return A&&(o=oA(e,t,[A.width,A.height,A.width/A.height]),w=o[0],y=o[1],U=o[2],m=i.ctx.createPattern(i.resizeImage(A,E=o[3],Q=o[4]),"repeat"),i.renderRepeat(w,m,y,U)),[3,6];case 5:n.type===ft.LINEAR_GRADIENT?(s=oA(e,t,[null,null,null]),w=s[0],y=s[1],U=s[2],c=function(e,t,n){var i="number"==typeof e?e:function(e,t,n){var i=t/2,a=n/2,A=$e(e[0],t)-i,r=a-$e(e[1],n);return(Math.atan2(r,A)+2*Math.PI)%(2*Math.PI)}(e,t,n),a=Math.abs(t*Math.sin(i))+Math.abs(n*Math.cos(i)),A=t/2,r=n/2,o=a/2,s=Math.sin(i-Math.PI/2)*o,c=Math.cos(i-Math.PI/2)*o;return[a,A-c,A+c,r-s,r+s]}(n.angle,E=s[3],Q=s[4]),l=c[0],d=c[1],h=c[2],u=c[3],p=c[4],(g=document.createElement("canvas")).width=E,g.height=Q,f=g.getContext("2d"),b=f.createLinearGradient(d,u,h,p),Ct(n.stops,l).forEach((function(e){return b.addColorStop(e.stop,rt(e.color))})),f.fillStyle=b,f.fillRect(0,0,E,Q),E>0&&Q>0&&(m=i.ctx.createPattern(g,"repeat"),i.renderRepeat(w,m,y,U))):n.type===ft.RADIAL_GRADIENT&&(B=oA(e,t,[null,null,null]),w=B[0],v=B[1],C=B[2],Q=B[4],y=$e((x=0===n.position.length?[Ye]:n.position)[0],E=B[3]),U=$e(x[x.length-1],Q),F=function(e,t,n,i,a){var A=0,r=0;switch(e.size){case mt.CLOSEST_SIDE:e.shape===bt.CIRCLE?A=r=Math.min(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-a)):e.shape===bt.ELLIPSE&&(A=Math.min(Math.abs(t),Math.abs(t-i)),r=Math.min(Math.abs(n),Math.abs(n-a)));break;case mt.CLOSEST_CORNER:if(e.shape===bt.CIRCLE)A=r=Math.min(Et(t,n),Et(t,n-a),Et(t-i,n),Et(t-i,n-a));else if(e.shape===bt.ELLIPSE){var o=Math.min(Math.abs(n),Math.abs(n-a))/Math.min(Math.abs(t),Math.abs(t-i)),s=Qt(i,a,t,n,!0);r=o*(A=Et(s[0]-t,(s[1]-n)/o))}break;case mt.FARTHEST_SIDE:e.shape===bt.CIRCLE?A=r=Math.max(Math.abs(t),Math.abs(t-i),Math.abs(n),Math.abs(n-a)):e.shape===bt.ELLIPSE&&(A=Math.max(Math.abs(t),Math.abs(t-i)),r=Math.max(Math.abs(n),Math.abs(n-a)));break;case mt.FARTHEST_CORNER:if(e.shape===bt.CIRCLE)A=r=Math.max(Et(t,n),Et(t,n-a),Et(t-i,n),Et(t-i,n-a));else if(e.shape===bt.ELLIPSE){o=Math.max(Math.abs(n),Math.abs(n-a))/Math.max(Math.abs(t),Math.abs(t-i));var c=Qt(i,a,t,n,!1);r=o*(A=Et(c[0]-t,(c[1]-n)/o))}}return Array.isArray(e.size)&&(A=$e(e.size[0],i),r=2===e.size.length?$e(e.size[1],a):A),[A,r]}(n,y,U,E,Q),H=F[1],(k=F[0])>0&&k>0&&(S=i.ctx.createRadialGradient(v+y,C+U,0,v+y,C+U,k),Ct(n.stops,2*k).forEach((function(e){return S.addColorStop(e.stop,rt(e.color))})),i.path(w),i.ctx.fillStyle=S,k!==H?(_=e.bounds.left+.5*e.bounds.width,T=e.bounds.top+.5*e.bounds.height,I=1/(N=H/k),i.ctx.save(),i.ctx.translate(_,T),i.ctx.transform(1,0,0,N,0,0),i.ctx.translate(-_,-T),i.ctx.fillRect(v,I*(C-T)+T,E,Q*I),i.ctx.restore()):i.ctx.fill())),a.label=6;case 6:return t--,[2]}}))},i=this,A=0,r=e.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return A<r.length?[5,n(r[A])]:[3,4];case 2:o.sent(),o.label=3;case 3:return A++,[3,1];case 4:return[2]}}))}))},e.prototype.renderBorder=function(e,t,n){return i(this,void 0,void 0,(function(){return a(this,(function(i){return this.path(function(e,t){switch(t){case 0:return aA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return aA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return aA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return aA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}}(n,t)),this.ctx.fillStyle=rt(e),this.ctx.fill(),[2]}))}))},e.prototype.renderNodeBackgroundAndBorders=function(e){return i(this,void 0,void 0,(function(){var t,n,i,A,r,o,s,c,l=this;return a(this,(function(a){switch(a.label){case 0:return this.applyEffects(e.effects,2),n=!At((t=e.container.styles).backgroundColor)||t.backgroundImage.length,i=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],A=fA(dA(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),At(t.backgroundColor)||(this.ctx.fillStyle=rt(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:a.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach((function(t){l.ctx.save();var n,i,a,A,r=Ya(e.curves),o=t.inset?0:1e4,s=(n=(t.inset?1:-1)*t.spread.number-o,i=(t.inset?1:-1)*t.spread.number,a=t.spread.number*(t.inset?-2:2),A=t.spread.number*(t.inset?-2:2),r.map((function(e,t){switch(t){case 0:return e.add(n,i);case 1:return e.add(n+a,i);case 2:return e.add(n+a,i+A);case 3:return e.add(n,i+A)}return e})));t.inset?(l.path(r),l.ctx.clip(),l.mask(s)):(l.mask(r),l.ctx.clip(),l.path(s)),l.ctx.shadowOffsetX=t.offsetX.number+o,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=rt(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?rt(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()})),a.label=2;case 2:r=0,o=0,s=i,a.label=3;case 3:return o<s.length?(c=s[o]).style===qt.NONE||At(c.color)?[3,5]:[4,this.renderBorder(c.color,r,e.curves)]:[3,7];case 4:a.sent(),a.label=5;case 5:r++,a.label=6;case 6:return o++,[3,3];case 7:return[2]}}))}))},e.prototype.render=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=rt(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),n=new tA(e,[]),i=new eA(n),nA(n,i,i,a=[]),iA(n.container,a),[4,this.renderStack(i)];case 1:return t.sent(),this.applyEffects([],2),[2,this.canvas]}var n,i,a}))}))},e}(),gA=function(e){return e instanceof Ji||e instanceof ji||e instanceof Gi&&"radio"!==e.type&&"checkbox"!==e.type},fA=function(e,t){switch(e){case ht.BORDER_BOX:return Ya(t);case ht.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case ht.PADDING_BOX:default:return qa(t)}},bA=function(e){switch(e){case Vn.CENTER:return"center";case Vn.RIGHT:return"right";case Vn.LEFT:default:return"left"}},mA=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Ht.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return i(this,void 0,void 0,(function(){var t,n;return a(this,(function(i){switch(i.label){case 0:return t=Ut(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,e),[4,BA(t)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=rt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},e}(),BA=function(e){return new Promise((function(t,n){var i=new Image;i.onload=function(){t(i)},i.onerror=n,i.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))}))},wA=function(e){return at(Oe.create(e).parseComponentValue())};return"undefined"!=typeof window&&St.setContext(window),function(e,t){return void 0===t&&(t={}),function(e,t){return i(void 0,void 0,void 0,(function(){var i,o,s,c,l,d,h,u,p,g,f,b,m,B,w,v,C,E,Q,x,y,U,F;return a(this,(function(a){switch(a.label){case 0:if(!(i=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=i.defaultView))throw new Error("Document is not attached to a Window");return s=(Math.round(1e3*Math.random())+Date.now()).toString(16),c=da(e)||"HTML"===e.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var i=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),a=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new A(0,0,i,a)}(i):r(e),l=c.width,d=c.height,h=c.left,u=c.top,p=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},t),g={backgroundColor:"#ffffff",cache:t.cache?t.cache:St.create(s,p),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:o.devicePixelRatio||1,windowWidth:o.innerWidth,windowHeight:o.innerHeight,scrollX:o.pageXOffset,scrollY:o.pageYOffset,x:h,y:u,width:Math.ceil(l),height:Math.ceil(d),id:s},f=n({},g,p,t),b=new A(f.scrollX,f.scrollY,f.windowWidth,f.windowHeight),Ht.create({id:s,enabled:f.logging}),Ht.getInstance(s).debug("Starting document clone"),m=new Ha(e,{id:s,onclone:f.onclone,ignoreElements:f.ignoreElements,inlineImages:f.foreignObjectRendering,copyStyles:f.foreignObjectRendering}),(B=m.clonedReferenceElement)?[4,m.toIFrame(i,b)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=a.sent(),v=i.documentElement?wA(getComputedStyle(i.documentElement).backgroundColor):gt.TRANSPARENT,C=i.body?wA(getComputedStyle(i.body).backgroundColor):gt.TRANSPARENT,Q="string"==typeof(E=t.backgroundColor)?wA(E):null===E?gt.TRANSPARENT:4294967295,x=e===i.documentElement?At(v)?At(C)?Q:C:v:Q,y={id:s,cache:f.cache,canvas:f.canvas,backgroundColor:x,scale:f.scale,x:f.x,y:f.y,scrollX:f.scrollX,scrollY:f.scrollY,width:f.width,height:f.height,windowWidth:f.windowWidth,windowHeight:f.windowHeight},f.foreignObjectRendering?(Ht.getInstance(s).debug("Document cloned, using foreign object rendering"),[4,new mA(y).render(B)]):[3,3];case 2:return U=a.sent(),[3,5];case 3:return Ht.getInstance(s).debug("Document cloned, using computed rendering"),St.attachInstance(f.cache),Ht.getInstance(s).debug("Starting DOM parsing"),F=ea(B),St.detachInstance(),x===F.styles.backgroundColor&&(F.styles.backgroundColor=gt.TRANSPARENT),Ht.getInstance(s).debug("Starting renderer"),[4,new pA(y).render(F)];case 4:U=a.sent(),a.label=5;case 5:return!0===f.removeContainer&&(Ha.destroy(w)||Ht.getInstance(s).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ht.getInstance(s).debug("Finished rendering"),Ht.destroy(s),St.destroy(s),[2,U]}}))}))}(e,t)}}()}}]);
//# sourceMappingURL=6-es2015.6da7077a4c5edfe56cdc.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit