t[n-i],p=r.length,d=t[e],f=t[e+1],m=t[e+=i],g=t[e+1],y=0,_=Math.sqrt(Math.pow(m-d,2)+Math.pow(g-f,2)),v="",b=0,w=0;w0?-Math.PI:Math.PI),void 0!==u){var I=T-u;if(I+=I>Math.PI?-2*Math.PI:I<-Math.PI?2*Math.PI:0,Math.abs(I)>a)return null}var O=S/_,R=_x(d,m,O),k=_x(f,g,O);u==T?(h&&(l[0]=R,l[1]=k,l[2]=x/2),l[4]=v):(b=x,l=[R,k,x/2,T,v=C],h?c.unshift(l):c.push(l),u=T),s+=x}return c}var GI={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},UI=[GI.FILL],HI=[GI.STROKE],qI=[GI.BEGIN_PATH],WI=[GI.CLOSE_PATH],YI=GI,KI=[VI.POLYGON,VI.CIRCLE,VI.LINE_STRING,VI.IMAGE,VI.TEXT,VI.DEFAULT],XI={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},ZI=Vx(),QI=WE(),JI=function(t){function e(e,n,i,r,o,s){t.call(this),this.declutterTree=s,this.tolerance=e,this.maxExtent=n,this.overlaps=o,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.replayTextBackground_=function(t,e,n,i,r,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},e.prototype.replayImage_=function(t,e,n,i,r,o,s,a,l,u,c,h,p,d,f,m,g,y){var _,v,b,w,C=g||y,x=f+u>i.width?i.width-u:f,E=a+c>i.height?i.height-c:a,S=m[3]+x*p+m[1],T=m[0]+E*p+m[2],I=(e-=r*=p)-m[3],O=(n-=o*=p)-m[0];(C||0!==h)&&(_=[I,O],v=[I+S,O],b=[I+S,O+T],w=[I,O+T]);var R=null;if(0!==h){var k=e+r,P=n+o;R=tS(QI,k,P,1,1,h,-k,-P),Bx(ZI),qx(ZI,QE(QI,_)),qx(ZI,QE(QI,v)),qx(ZI,QE(QI,b)),qx(ZI,QE(QI,w))}else zx(I,O,I+S,O+T,ZI);var A=t.canvas,L=y?y[2]*p/2:0,D=ZI[0]-L<=A.width&&ZI[2]+L>=0&&ZI[1]-L<=A.height&&ZI[3]+L>=0;if(d&&(e=Math.round(e),n=Math.round(n)),s){if(!D&&1==s[4])return;Hx(s,ZI);var F=D?[t,R?R.slice(0):null,l,i,u,c,x,E,e,n,p]:null;F&&C&&F.push(g,y,_,v,b,w),s.push(F)}else D&&(C&&this.replayTextBackground_(t,_,v,b,w,g,y),pI(t,R,l,i,u,c,x,E,e,n,p))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,n,i,r,o){var s=this.coordinates.length,a=this.getBufferedMaxExtent();o&&(e+=i);var l,u,c,h=[t[e],t[e+1]],p=[NaN,NaN],d=!0;for(l=e+i;l5){var n=t[4];if(1==n||n==t.length-5){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(i)){this.declutterTree.insert(i);for(var r=5,o=t.length;r11&&this.replayTextBackground_(s[0],s[13],s[14],s[15],s[16],s[11],s[12]),pI.apply(void 0,s))}}t.length=5,Bx(t)}}},e.prototype.replay_=function(t,e,n,i,r,o,s){var a;this.pixelCoordinates_&&ZC(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=uE(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),ZE(this.renderedTransform_,e));for(var l,u,c,h,p,d,f,m,g,y,_,v,b=!Iw(n),w=0,C=i.length,x=0,E=0,S=0,T=null,I=null,O=this.coordinateCache_,R=this.viewRotation_,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:R},P=this.instructions!=i||this.overlaps?0:200;wP&&(this.fill_(t),E=0),S>P&&(t.stroke(),S=0),E||S||(t.beginPath(),h=p=NaN),++w;break;case YI.CIRCLE:var L=a[x=A[1]],D=a[x+1],F=a[x+2]-L,M=a[x+3]-D,N=Math.sqrt(F*F+M*M);t.moveTo(L+N,D),t.arc(L,D,N,0,2*Math.PI,!0),++w;break;case YI.CLOSE_PATH:t.closePath(),++w;break;case YI.CUSTOM:x=A[1],l=A[2];var j=A[4],V=6==A.length?A[5]:void 0;k.geometry=A[3],k.feature=y,w in O||(O[w]=[]);var z=O[w];V?V(a,x,l,2,z):(z[0]=a[x],z[1]=a[x+1],z.length=2),j(z,k),++w;break;case YI.DRAW_IMAGE:x=A[1],l=A[2],g=A[3],u=A[4],c=A[5],m=o?null:A[6];var B=A[7],G=A[8],U=A[9],H=A[10],q=A[12],W=A[13],Y=A[14],K=void 0,X=void 0,Z=void 0;for(A.length>16?(K=A[15],X=A[16],Z=A[17]):(K=eI,X=Z=!1),A[11]&&(q+=R);xthis.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0},e.prototype.createFill=function(t,e){var n=t.fillStyle,i=[YI.SET_FILL_STYLE,n];return"string"!=typeof n&&i.push(!0),i},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[YI.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,n){var i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t,n)),t.currentFillStyle=i)},e.prototype.updateStrokeStyle=function(t,e){var n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!ZC(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var n=[YI.END_GEOMETRY,e];this.instructions.push(n),this.hitDetectionInstructions.push(n)},e.prototype.getBufferedMaxExtent=function(){return this.bufferedMaxExtent_||(this.bufferedMaxExtent_=Lx(this.maxExtent),this.maxLineWidth>0&&Ax(this.bufferedMaxExtent_,this.resolution*(this.maxLineWidth+1)/2,this.bufferedMaxExtent_)),this.bufferedMaxExtent_},e}(yI),$I=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawCoordinates_=function(t,e,n,i){return this.appendFlatCoordinates(t,e,n,i,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([YI.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([YI.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(n,0,n.length,i);this.instructions.push([YI.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([YI.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var n=t.getAnchor(),i=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),s=t.getOrigin();this.anchorX_=n[0],this.anchorY_=n[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=i[0]},e}(JI),tO=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,n,i){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,n,i,!1,!1),s=[YI.MOVE_TO_LINE_TO,r,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),n},e.prototype.drawLineString=function(t,e){var n=this.state;if(void 0!==n.strokeStyle&&void 0!==n.lineWidth){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([YI.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],qI);var i=t.getFlatCoordinates(),r=t.getStride();this.drawFlatCoordinates_(i,0,i.length,r),this.hitDetectionInstructions.push(HI),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var n=this.state;if(void 0!==n.strokeStyle&&void 0!==n.lineWidth){this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([YI.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,n.lineDash,n.lineDashOffset],qI);for(var i=t.getEnds(),r=t.getFlatCoordinates(),o=t.getStride(),s=0,a=0,l=i.length;at&&(y>g&&(g=y,f=_,m=o),y=0,_=o-r)),s=a,c=p,h=d),l=v,u=b}return(y+=a)>g?[_,o]:[f,m]}var iO={Circle:eO,Default:JI,Image:$I,LineString:tO,Polygon:eO,Text:function(t){function e(e,n,i,r,o,s){t.call(this,e,n,i,r,o,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},nI.prune()}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.drawText=function(t,e){var n=this.textState_;if(""!==this.text_&&n&&(this.textFillState_||this.textStrokeState_)){var i,r,o=this.coordinates.length,s=t.getType(),a=null,l=2,u=2;if("line"===n.placement){if(!oE(this.getBufferedMaxExtent(),t.getExtent()))return;var c;if(a=t.getFlatCoordinates(),u=t.getStride(),s==aE.LINE_STRING)c=[a.length];else if(s==aE.MULTI_LINE_STRING)c=t.getEnds();else if(s==aE.POLYGON)c=t.getEnds().slice(0,1);else if(s==aE.MULTI_POLYGON){var h=t.getEndss();for(c=[],i=0,r=h.length;i=v)&&a.push(b[i],b[i+1]);if(0==(l=a.length))return}l=this.appendFlatCoordinates(a,0,l,u,!1,!1),(n.backgroundFill||n.backgroundStroke)&&(this.setFillStrokeStyle(n.backgroundFill,n.backgroundStroke),n.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),n.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(_,o,l),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,n,i){var r,o=i+e+t+n+this.pixelRatio;if(!nI.containsKey(o)){var s=i?this.strokeStates[i]||this.textStrokeState_:null,a=n?this.fillStates[n]||this.textFillState_:null,l=this.textStates[e]||this.textState_,u=l.scale*this.pixelRatio,c=XI[l.textAlign||"center"],h=i&&s.lineWidth?s.lineWidth:0,p=t.split("\n"),d=p.length,f=[],m=function(t,e,n){for(var i=e.length,r=0,o=0;o=o;)sO(n,t+r,t+o),sO(n,t+o,t+r),sO(n,t-o,t+r),sO(n,t-r,t+o),sO(n,t-r,t-o),sO(n,t-o,t-r),sO(n,t+o,t-r),sO(n,t+r,t-o),2*((s+=1+2*++o)-r)+1>0&&(s+=1-2*(r-=1));return oO[t]=n,n}(i);function f(t){for(var e=c.getImageData(0,0,l,l).data,n=0;n0){var r=void 0;return(!h||p!=VI.IMAGE&&p!=VI.TEXT||-1!==h.indexOf(t))&&(r=o(t)),r||void c.clearRect(0,0,l,l)}}this.declutterTree_&&(h=this.declutterTree_.all().map(function(t){return t.value}));var m,g,y,_,v,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(WC),m=b.length-1;m>=0;--m){var w=b[m].toString();for(y=this.replaysByZIndex_[w],g=KI.length-1;g>=0;--g)if(void 0!==(_=y[p=KI[g]]))if(!s||p!=VI.IMAGE&&p!=VI.TEXT){if(v=_.replayHitDetection(c,u,n,r,f,a))return v}else{var C=s[w];C?C.push(_,u.slice(0)):s[w]=[_,u.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,n=e[0],i=e[1],r=e[2],o=e[3],s=[n,i,n,o,r,o,r,i];return uE(s,0,8,2,t,s),s},e.prototype.getReplay=function(t,e){var n=void 0!==t?t.toString():"0",i=this.replaysByZIndex_[n];void 0===i&&(this.replaysByZIndex_[n]=i={});var r=i[e];return void 0===r&&(r=new(0,iO[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),i[e]=r),r},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Iw(this.replaysByZIndex_)},e.prototype.replay=function(t,e,n,i,r,o,s){var a=Object.keys(this.replaysByZIndex_).map(Number);a.sort(WC),t.save(),this.clip(t,e);var l,u,c,h,p,d,f=o||KI;for(l=0,u=a.length;l=r)for(i=r;iu[2];)h=this.getTransform(e,k*++P),f.replay(m,h,l,o,T),R-=k}if(cI(m,l,I/2,O/2),b&&this.dispatchRenderEvent(m,e,h),m!=t){if(v){var A=t.globalAlpha;t.globalAlpha=n.opacity,t.drawImage(m.canvas,-y,-_),t.globalAlpha=A}else t.drawImage(m.canvas,-y,-_);m.translate(-y,-_)}v||(m.globalAlpha=E)}d&&t.restore()},e.prototype.composeFrame=function(t,e,n){var i=this.getTransform(t,0);this.preCompose(n,t,i),this.compose(n,t,e),this.postCompose(n,t,e,i)},e.prototype.forEachFeatureAtCoordinate=function(t,e,n,i,r){if(this.replayGroup_){var o=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),l={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,s,n,{},function(t){var e=bw(t);if(!(e in l))return l[e]=!0,i.call(r,t,a)},null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var n=this.getLayer(),i=n.getSource(),r=t.viewHints[0],o=t.viewHints[1],s=n.getUpdateWhileAnimating(),a=n.getUpdateWhileInteracting();if(!this.dirty_&&!s&&r||!a&&o)return!0;var l=t.extent,u=t.viewState,c=u.projection,h=u.resolution,p=t.pixelRatio,d=n.getRevision(),f=n.getRenderBuffer(),m=n.getRenderOrder();void 0===m&&(m=cO);var g=Ax(l,f*h),y=u.projection.getExtent();if(i.getWrapX()&&u.projection.canWrapX()&&!Mx(y,t.extent)){var _=rE(y),v=Math.max(rE(g)/2,_);g[0]=y[0]-v,g[2]=y[2]+v}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==d&&this.renderedRenderOrder_==m&&Mx(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new aO(pO(h,p),g,h,p,i.getOverlaps(),this.declutterTree_,n.getRenderBuffer());i.loadFeatures(g,h,c);var w=(function(t){var e,i=t.getStyleFunction()||n.getStyleFunction();if(i&&(e=i(t,h)),e){var r=this.renderFeature(t,h,p,e,b);this.dirty_=this.dirty_||r}}).bind(this);if(m){var C=[];i.forEachFeatureInExtent(g,function(t){C.push(t)}),C.sort(m);for(var x=0,E=C.length;x=0;--b){var w=g[b];if(w.getState()!=sx.ABORT)for(var C=w.tileCoord,x=y.getTileCoordExtent(C,this.tmpExtent)[0]-w.extent[0],E=void 0,S=0,T=w.tileKeys.length;S=this.transition_?1:Sx(i/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(Hw);function xO(){var t=BS(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var EO=function(t){function e(e,n,i,r,o,s){t.call(this,e,n,s),this.crossOrigin_=r,this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.disposeInternal=function(){this.state==sx.LOADING&&(this.unlistenImage_(),this.image_=xO()),this.interimTile&&this.interimTile.dispose(),this.state=sx.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=sx.ERROR,this.unlistenImage_(),this.image_=xO(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;this.state=t.naturalWidth&&t.naturalHeight?sx.LOADED:sx.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==sx.ERROR&&(this.state=sx.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==sx.IDLE&&(this.state=sx.LOADING,this.changed(),this.imageListenerKeys_=[Lw(this.image_,qw.ERROR,this.handleImageError_,this),Lw(this.image_,qw.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(Fw),this.imageListenerKeys_=null},e}(CO);function SO(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function TO(t,e,n){return t+"/"+e+"/"+n}function IO(t){return TO(t[0],t[1],t[2])}var OO=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),n=e.tileCoord[0].toString();if(n in t&&t[n].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(IO(e.tileCoord)),e.dispose())},this)}},e}(QT);function RO(t,e,n,i){var r=HE(n,e,t),o=NE(e,i,n),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var a=t.getMetersPerUnit();void 0!==a&&(o/=a);var l=t.getExtent();if(!l||Fx(l,r)){var u=NE(t,o,r)/o;isFinite(u)&&u>0&&(o/=u)}return o}function kO(t,e,n,i){var r=n-t,o=i-e,s=Math.sqrt(r*r+o*o);return[Math.round(n+r/s),Math.round(i+o/s)]}function PO(t,e,n,i,r,o,s,a,l,u,c){var h=BS(Math.round(n*t),Math.round(n*e));if(0===l.length)return h.canvas;h.scale(n,n);var p=[1/0,1/0,-1/0,-1/0];l.forEach(function(t,e,n){Hx(p,t.extent)});var d=rE(p),f=tE(p),m=BS(Math.round(n*d/i),Math.round(n*f/i)),g=n/i;l.forEach(function(t,e,n){var i=t.extent[0]-p[0],r=-(t.extent[3]-p[3]),o=rE(t.extent),s=tE(t.extent);m.drawImage(t.image,u,u,t.image.width-2*u,t.image.height-2*u,i*g,r*g,o*g,s*g)});var y=nE(s);return a.getTriangles().forEach(function(t,e,r){var s=t.source,a=t.target,l=s[0][0],u=s[0][1],c=s[1][0],d=s[1][1],f=s[2][0],g=s[2][1],_=(a[0][0]-y[0])/o,v=-(a[0][1]-y[1])/o,b=(a[1][0]-y[0])/o,w=-(a[1][1]-y[1])/o,C=(a[2][0]-y[0])/o,x=-(a[2][1]-y[1])/o,E=l,S=u;l=0,u=0;var T=function(t){for(var e=t.length,n=0;nr&&(r=s,i=o)}if(0===r)return null;var a=t[i];t[i]=t[n],t[n]=a;for(var l=n+1;l=0;p--){h[p]=t[p][e]/t[p][p];for(var d=p-1;d>=0;d--)t[d][e]-=t[d][p]*h[p]}return h}([[c-=E,d-=S,0,0,b-_],[f-=E,g-=S,0,0,C-_],[0,0,c,d,w-v],[0,0,f,g,x-v]]);if(T){h.save(),h.beginPath();var I=(_+b+C)/3,O=(v+w+x)/3,R=kO(I,O,_,v),k=kO(I,O,b,w),P=kO(I,O,C,x);h.moveTo(k[0],k[1]),h.lineTo(R[0],R[1]),h.lineTo(P[0],P[1]),h.clip(),h.transform(T[0],T[2],T[1],T[3],_,v),h.translate(p[0]-E,p[3]-S),h.scale(i/n,-i/n),h.drawImage(m.canvas,0,0),h.restore()}}),c&&(h.save(),h.strokeStyle="black",h.lineWidth=1,a.getTriangles().forEach(function(t,e,n){var i=t.target,r=(i[0][0]-y[0])/o,s=-(i[0][1]-y[1])/o,a=(i[1][0]-y[0])/o,l=-(i[1][1]-y[1])/o,u=(i[2][0]-y[0])/o,c=-(i[2][1]-y[1])/o;h.beginPath(),h.moveTo(a,l),h.lineTo(r,s),h.lineTo(u,c),h.closePath(),h.stroke()}),h.restore()),h.canvas}var AO=function(t,e,n,i,r){this.sourceProj_=t,this.targetProj_=e;var o={},s=UE(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=s(t)),o[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&rE(i)==rE(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?rE(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?rE(this.targetProj_.getExtent()):null;var a=nE(n),l=iE(n),u=Zx(n),c=Xx(n),h=this.transformInv_(a),p=this.transformInv_(l),d=this.transformInv_(u),f=this.transformInv_(c);if(this.addQuad_(a,l,u,c,h,p,d,f,10),this.wrapsXInSource_){var m=1/0;this.triangles_.forEach(function(t,e,n){m=Math.min(m,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach((function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-m>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-m>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-m>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-m>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var n=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-n.5&&c<1,d=!1;if(l>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(d=rE(Px([t,e,n,i]))/this.targetWorldWidth_>.25||d),!p&&this.sourceProj_.isGlobal()&&c&&(d=c>.25||d)),d||!this.maxSourceExtent_||oE(u,this.maxSourceExtent_)){if(!(d||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1]))){if(!(l>0))return;d=!0}if(l>0){if(!d){var f,m=this.transformInv_([(t[0]+n[0])/2,(t[1]+n[1])/2]);f=p?(yx(r[0],h)+yx(s[0],h))/2-yx(m[0],h):(r[0]+s[0])/2-m[0];var g=(r[1]+s[1])/2-m[1];d=f*f+g*g>this.errorThresholdSquared_}if(d){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){var y=[(e[0]+n[0])/2,(e[1]+n[1])/2],_=this.transformInv_(y),v=[(i[0]+t[0])/2,(i[1]+t[1])/2],b=this.transformInv_(v);this.addQuad_(t,e,y,v,r,o,_,b,l-1),this.addQuad_(v,y,n,i,b,_,s,a,l-1)}else{var w=[(t[0]+e[0])/2,(t[1]+e[1])/2],C=this.transformInv_(w),x=[(n[0]+i[0])/2,(n[1]+i[1])/2],E=this.transformInv_(x);this.addQuad_(t,w,x,i,r,C,E,a,l-1),this.addQuad_(w,e,n,x,C,o,s,E,l-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,n,i,r,s,a),this.addTriangle_(t,e,n,r,o,s)}},AO.prototype.calculateSourceExtent=function(){var t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(e,n,i){var r=e.source;qx(t,r[0]),qx(t,r[1]),qx(t,r[2])}),t},AO.prototype.getTriangles=function(){return this.triangles_};var LO=AO,DO=function(t){function e(e,n,i,r,o,s,a,l,u,c,h){t.call(this,o,sx.IDLE),this.renderEdges_=void 0!==h&&h,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=n,this.targetTileGrid_=r,this.wrappedTileCoord_=s||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var p=r.getTileCoordExtent(this.wrappedTileCoord_),d=this.targetTileGrid_.getExtent(),f=this.sourceTileGrid_.getExtent(),m=d?eE(p,d):p;if(0!==Kx(m)){var g=e.getExtent();g&&(f=f?eE(f,g):g);var y=r.getResolution(this.wrappedTileCoord_[0]),_=RO(e,i,Qx(m),y);if(!isFinite(_)||_<=0)this.state=sx.EMPTY;else if(this.triangulation_=new LO(e,i,m,f,_*(void 0!==c?c:HT)),0!==this.triangulation_.getTriangles().length){this.sourceZ_=n.getZForResolution(_);var v=this.triangulation_.calculateSourceExtent();if(f&&(e.canWrapX()?(v[1]=px(v[1],f[1],f[3]),v[3]=px(v[3],f[1],f[3])):v=eE(v,f)),Kx(v)){for(var b=n.getTileRangeForExtentAndZ(v,this.sourceZ_),w=b.minX;w<=b.maxX;w++)for(var C=b.minY;C<=b.maxY;C++){var x=u(this.sourceZ_,w,C,a);x&&this.sourceTiles_.push(x)}0===this.sourceTiles_.length&&(this.state=sx.EMPTY)}else this.state=sx.EMPTY}else this.state=sx.EMPTY}else this.state=sx.EMPTY}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.disposeInternal=function(){this.state==sx.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach((function(e,n,i){e&&e.getState()==sx.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}).bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=sx.ERROR;else{var e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=PO(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=sx.LOADED}this.changed()},e.prototype.load=function(){if(this.state==sx.IDLE){this.state=sx.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((function(e,n,i){var r=e.getState();if(r==sx.IDLE||r==sx.LOADING){t++;var o=Aw(e,qw.CHANGE,function(n){var i=e.getState();i!=sx.LOADED&&i!=sx.ERROR&&i!=sx.EMPTY||(Fw(o),0==--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}).bind(this)),this.sourceTiles_.forEach(function(t,e,n){t.getState()==sx.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(Fw),this.sourcesListenerKeys_=null},e}(CO);function FO(t,e){var n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){return s?t.replace(n,s[0].toString()).replace(i,s[1].toString()).replace(r,function(){return(-s[2]-1).toString()}).replace(o,function(){var t=e.getFullTileRange(s[0]);return ax(t,55),(t.getHeight()+s[2]).toString()}):void 0}}function MO(t,e,n){}function NO(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}var jO=function(t){function e(e){t.call(this),this.projection_=ME(e.projection),this.attributions_=NO(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:WS.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return _w()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=NO(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(Zw),VO=[0,0,0],zO=function(t){var e,n,i;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,ax((n=function(t,e){return e-t}||WC,(e=this.resolutions_).every(function(t,i){if(0===i)return!0;var r=n(e[i-1],t);return!(r>0||0===r)})),17),!t.origins)for(var r=0,o=this.resolutions_.length-1;r=this.minZoom;){if(o=2===this.zoomFactor_?PI(s=Math.floor(s/2),s,a=Math.floor(a/2),a,i):this.getTileRangeForExtentAndZ(l,u,i),e.call(n,u,o))return!0;--u}return!1},zO.prototype.getExtent=function(){return this.extent_},zO.prototype.getMaxZoom=function(){return this.maxZoom},zO.prototype.getMinZoom=function(){return this.minZoom},zO.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},zO.prototype.getResolution=function(t){return this.resolutions_[t]},zO.prototype.getResolutions=function(){return this.resolutions_},zO.prototype.getTileCoordChildTileRange=function(t,e,n){if(t[0]n||n>e.getMaxZoom())return!1;var o,s=e.getExtent();return!(o=s?e.getTileRangeForExtentAndZ(s,n):e.getFullTileRange(n))||o.containsXY(i,r)}(t,i)?t:null},e.prototype.refresh=function(){this.tileCache.clear(),this.changed()},e.prototype.useTile=function(t,e,n,i){},e}(jO),WO=function(t){function e(e,n){t.call(this,e),this.tile=n}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(Uw);function YO(t,e){t.getImage().src=e}var KO='© OpenStreetMap contributors.',XO=function(t){function e(e){var n=e||{};t.call(this,{attributions:void 0!==n.attributions?n.attributions:[KO],cacheSize:n.cacheSize,crossOrigin:void 0!==n.crossOrigin?n.crossOrigin:"anonymous",opaque:void 0===n.opaque||n.opaque,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,url:void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:n.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(function(t){function e(e){var n,i,r,o=e||{},s=void 0!==o.projection?o.projection:"EPSG:3857",a=void 0!==o.tileGrid?o.tileGrid:(r={extent:i=(n={extent:HO(s),maxZoom:o.maxZoom,minZoom:o.minZoom,tileSize:o.tileSize}||{}).extent||ME("EPSG:3857").getExtent(),minZoom:n.minZoom,tileSize:n.tileSize,resolutions:UO(i,n.maxZoom,n.tileSize)},new BO(r));t.call(this,{attributions:o.attributions,cacheSize:o.cacheSize,crossOrigin:o.crossOrigin,opaque:o.opaque,projection:s,reprojectionErrorThreshold:o.reprojectionErrorThreshold,tileGrid:a,tileLoadFunction:o.tileLoadFunction,tilePixelRatio:o.tilePixelRatio,tileUrlFunction:o.tileUrlFunction,url:o.url,urls:o.urls,wrapX:void 0===o.wrapX||o.wrapX,transition:o.transition,attributionsCollapsible:o.attributionsCollapsible})}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:YO,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:EO,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var n=this.getTileCacheForProjection(t);for(var i in this.tileCache.expireCache(this.tileCache==n?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[i];r.expireCache(r==n?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!BE(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!BE(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!BE(e,t)){var n=bw(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=GO(t)),this.tileGridForProjection[n]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||BE(e,t))return this.tileCache;var n=bw(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new OO(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]},e.prototype.createTile_=function(t,e,n,i,r,o){var s=[t,e,n],a=this.getTileCoordForTileUrlFunction(s,r),l=a?this.tileUrlFunction(a,i,r):void 0,u=new this.tileClass(s,void 0!==l?sx.IDLE:sx.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,Aw(u,qw.CHANGE,this.handleTileChange,this),u},e.prototype.getTile=function(t,e,n,i,r){var o=this.getProjection();if(o&&r&&!BE(o,r)){var s,a=this.getTileCacheForProjection(r),l=[t,e,n],u=IO(l);a.containsKey(u)&&(s=a.get(u));var c=this.getKey();if(s&&s.key==c)return s;var h=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),d=this.getTileCoordForTileUrlFunction(l,r),f=new DO(o,h,r,p,l,d,this.getTilePixelRatio(i),this.getGutter(),(function(t,e,n,i){return this.getTileInternal(t,e,n,i,o)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return f.key=c,s?(f.interimTile=s,f.refreshInterimChain(),a.replace(u,f)):a.set(u,f),f}return this.getTileInternal(t,e,n,i,o||r)},e.prototype.getTileInternal=function(t,e,n,i,r){var o=null,s=TO(t,e,n),a=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=a){var l=o;(o=this.createTile_(t,e,n,i,r,a)).interimTile=l.getState()==sx.IDLE?l.interimTile:l,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,n,i,r,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var n=ME(t);if(n){var i=bw(n);i in this.tileGridForProjection||(this.tileGridForProjection[i]=e)}},e}(function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):MO,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,n=t.target,i=bw(n),r=n.getState();r==sx.LOADING?(this.tileLoadingKeys_[i]=!0,e="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],e=r==sx.ERROR?"tileloaderror":r==sx.LOADED||r==sx.ABORT?"tileloadend":void 0),null!=e&&this.dispatchEvent(new WO(e,n))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=this.urls=function(t){var e=[],n=/\{([a-z])-([a-z])\}/.exec(t);if(n){var i,r=n[1].charCodeAt(0),o=n[2].charCodeAt(0);for(i=r;i<=o;++i)e.push(t.replace(n[0],String.fromCharCode(i)));return e}if(n=n=/\{(\d+)-(\d+)\}/.exec(t)){for(var s=parseInt(n[2],10),a=parseInt(n[1],10);a<=s;a++)e.push(t.replace(n[0],a.toString()));return e}return e.push(t),e}(t);this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){for(var n=t.length,i=new Array(n),r=0;rs)return 1;if(s>o)return-1}return 0}(this.params_.VERSION||"1.3.0")>=0},e}(function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=YC(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,n,i){var r=this.getProjection();if(r&&i&&!BE(r,i)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&BE(this.reprojectedImage_.getProjection(),i)&&this.reprojectedImage_.getResolution()==e&&Ux(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new hR(r,i,t,e,n,(function(t,e,n){return this.getImageInternal(t,e,n,r)}).bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(i=r),this.getImageInternal(t,e,n,i)},e.prototype.getImageInternal=function(t,e,n,i){return _w()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case WT.LOADING:this.loading=!0,this.dispatchEvent(new pR("imageloadstart",e));break;case WT.LOADED:this.loading=!1,this.dispatchEvent(new pR("imageloadend",e));break;case WT.ERROR:this.loading=!1,this.dispatchEvent(new pR("imageloaderror",e))}},e}(jO)),gR={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"};function yR(t,e){return[[-1/0,-1/0,1/0,1/0]]}var _R=function(t){this.rbush_=MI()(t,void 0),this.items_={}};_R.prototype.insert=function(t,e){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[bw(e)]=n},_R.prototype.load=function(t,e){for(var n=new Array(e.length),i=0,r=e.length;i=200&&s.status<300){var n,r=e.getType();r==gR.JSON||r==gR.TEXT?n=s.responseText:r==gR.XML?(n=s.responseXML)||(n=(new DOMParser).parseFromString(s.responseText,"application/xml")):r==gR.ARRAY_BUFFER&&(n=s.response),n?(function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)}).call(this,e.readFeatures(n,{featureProjection:o}),e.readProjection(n),e.getLastExtent()):i.call(this)}else i.call(this)}).bind(this),s.onerror=(function(){i.call(this)}).bind(this),s.send()}}(this.url_,this.format_,0,zw)),this.strategy_=void 0!==n.strategy?n.strategy:yR;var i,r,o=void 0===n.useSpatialIndex||n.useSpatialIndex;this.featuresRtree_=o?new vR:null,this.loadedExtentsRtree_=new vR,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(n.features)?r=n.features:n.features&&(r=(i=n.features).getArray()),o||void 0!==i||(i=new Jw(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==i&&this.bindFeaturesCollection_(i)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=bw(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var n=t.getGeometry();if(n){var i=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new bR("addfeature",t))}},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[Aw(e,qw.CHANGE,this.handleFeatureChange_,this),Aw(e,"propertychange",this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var n=!0,i=e.getId();return void 0!==i?i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e:(ax(!(t in this.undefIdIndex_),30),this.undefIdIndex_[t]=e),n},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],n=[],i=[],r=0,o=t.length;r>1)],e))<0?s=i+1:(a=i,l=!r);return l?s:~s}(p,g);if(y<0){var _=(g-p[-y-2])/(p[-y-1]-p[-y-2]),v=e+(-y-2)*i;s=_x(t[v],t[v+i],_),a=_x(t[v+1],t[v+i+1],_)}else s=t[e+y*i],a=t[e+y*i+1]}return o?(o[0]=s,o[1]=a,o):[s,a]}function kR(t,e,n,i,r,o){if(n==e)return null;var s;if(r>1;r180)&&(n[0]=yx(i+180,360)-180),n),o=t.getPointFromLonLat(r),s=new CR({geometry:o});t.vectSource.addFeature(s);var a=e.pixel,l=o.getCoordinates(),u=new YR;u.longitude=l[0],u.latitude=l[1];var c=t.getDialogConfig(a,"Salva posizione",u,!0),h=t.dialogService.openDialog(WR,c).componentInstance.pointEvent.subscribe(function(){t.getBePoints(),h.unsubscribe()})})},t.prototype.getBePoints=function(){var t=this;this.removeAllMarkers(),this.beVectSource.clear(),this.mapService.getUserLocations().subscribe(function(e){if(e instanceof Array)for(var n=0,i=e;n=0;n--){var i=e[n];if(i.svgElement){var r=this._extractSvgIconFromSet(i.svgElement,t);if(r)return r}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return this._fetchUrl(t.url).pipe(Y(function(t){return e._createSvgElementForSingleIcon(t)}))},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return t.svgElement?ta(t.svgElement):this._fetchUrl(t.url).pipe(Y(function(n){return t.svgElement||(t.svgElement=e._svgElementFromString(n)),t.svgElement}))},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;var i=n.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i));var r=this._svgElementFromString(" ");return r.appendChild(i),this._setSvgAttributes(r)},t.prototype._svgElementFromString=function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString(" "),n=0;n3&&Jf(e,"mat-multi-line",!0)})},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._isRippleDisabled=function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)},e.prototype._getHostElement=function(){return this._element.nativeElement},e}(Tk),kk=function(){return function(){}}(),Pk=Qi({encapsulation:2,styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:0;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}@media (-ms-high-contrast:active){.mat-option{margin:0 1px}.mat-option.mat-active{border:solid 1px currentColor;margin:0}}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}@media (-ms-high-contrast:active){.mat-option .mat-option-ripple{opacity:.5}}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],data:{}});function Ak(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-pseudo-checkbox",[["class","mat-option-pseudo-checkbox mat-pseudo-checkbox"]],[[2,"mat-pseudo-checkbox-indeterminate",null],[2,"mat-pseudo-checkbox-checked",null],[2,"mat-pseudo-checkbox-disabled",null],[2,"_mat-animation-noopable",null]],null,null,Fk,Dk)),fo(1,49152,null,0,um,[[2,r_]],{state:[0,"state"],disabled:[1,"disabled"]},null)],function(t,e){var n=e.component;t(e,1,0,n.selected?"checked":"",n.disabled)},function(t,e){t(e,0,0,"indeterminate"===to(e,1).state,"checked"===to(e,1).state,to(e,1).disabled,"NoopAnimations"===to(e,1)._animationMode)})}function Lk(t){return Go(2,[(t()(),Er(16777216,null,null,1,null,Ak)),fo(1,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(2,0,null,null,1,"span",[["class","mat-option-text"]],null,null,null,null,null)),Fo(null,0),(t()(),Sr(4,0,null,null,1,"div",[["class","mat-option-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(5,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,1,0,n.multiple),t(e,5,0,n.disabled||n.disableRipple,n._getHostElement())},function(t,e){t(e,4,0,to(e,5).unbounded)})}var Dk=Qi({encapsulation:2,styles:[".mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}"],data:{}});function Fk(t){return Go(2,[],null,null)}var Mk=Qi({encapsulation:2,styles:[".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:0}mat-action-list button{background:0 0;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:0}@media (-ms-high-contrast:active){.mat-selection-list:focus{outline-style:dotted}.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover,mat-action-list .mat-list-item:focus,mat-action-list .mat-list-item:hover{outline:dotted 1px}}@media (hover:none){.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover{background:0 0}}"],data:{}});function Nk(t){return Go(2,[Fo(null,0)],null,null)}var jk=Qi({encapsulation:2,styles:[],data:{}});function Vk(t){return Go(2,[(t()(),Sr(0,0,null,null,6,"div",[["class","mat-list-item-content"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-list-item-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(2,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null),Fo(null,0),(t()(),Sr(4,0,null,null,1,"div",[["class","mat-list-text"]],null,null,null,null,null)),Fo(null,1),Fo(null,2)],function(t,e){var n=e.component;t(e,2,0,n._isRippleDisabled(),n._getHostElement())},function(t,e){t(e,1,0,to(e,2).unbounded)})}var zk=function(){function t(t,e,n){this.formBuilder=t,this.legendaService=e,this.modalService=n,this.submitted=new ke,this.close=new ke}return t.prototype.ngOnInit=function(){this.populateForm(),this.formBuilder.group(this.legendaForm)},t.prototype.ngOnChanges=function(t){this.populateForm()},t.prototype.onSubmit=function(){var t=this;if(this.legendaForm.invalid)this.modalService.openMessageAlert(bb,new eb("Uno o pi\xf9 campi obbligatorio non sono stati riempiti","red-snackbar"));else{var e=this.bindFormToLegenda();null!=e.id?this.legendaService.updateLegenda(e).subscribe(function(e){t.submitted.emit(),t.modalService.openMessageAlert(bb,new eb("Operazione eseguita con successo","green-snackbar"))}):this.legendaService.saveLegenda(this.bindFormToLegenda()).subscribe(function(e){null!=e&&(t.submitted.emit("submitted"),t.modalService.openMessageAlert(bb,new eb("Operazione eseguita con successo","green-snackbar")))})}},t.prototype.bindFormToLegenda=function(){var t=this.legendaForm.get("codice").value,e=this.legendaForm.get("descrizione").value,n=this.legendaForm.get("colore").value,i=this.legendaForm.get("id").value,r=new UR;return r.codice=t,r.descrizione=e,r.colore=n,r.id=i,r},t.prototype.populateForm=function(){this.legendaForm=this.formBuilder.group({codice:[null!=this.legenda&&null!=this.legenda.codice?this.legenda.codice:"",Dp.required],descrizione:[null!=this.legenda&&null!=this.legenda.descrizione?this.legenda.descrizione:"",Dp.required],colore:[null!=this.legenda&&null!=this.legenda.colore?this.legenda.colore:"",Dp.required],id:[null!=this.legenda&&null!=this.legenda.id?this.legenda.id:null]})},t.prototype.chiudi=function(){this.close.emit()},t}(),Bk=Qi({encapsulation:0,styles:[[".form-container[_ngcontent-%COMP%]{text-align:center;vertical-align:bottom}.color-input[_ngcontent-%COMP%]{width:20px}"]],data:{}});function Gk(t){return Go(0,[(t()(),Sr(0,0,null,null,81,"div",[["class","form-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"p",[["class","template-name"]],null,null,null,null,null)),(t()(),Vo(2,null,["",""])),(t()(),Sr(3,0,null,null,70,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,5).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,5).onReset()&&i),i},null,null)),fo(4,16384,null,0,Pd,[],null,null),fo(5,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(7,16384,null,0,dd,[[4,kp]],null,null),(t()(),Sr(8,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(9,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(10,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(18,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","codice"],["matInput",""],["placeholder","Codice"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,19)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,19).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,19)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,19)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,26)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,26)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,26)._onInput()&&i),i},null,null)),fo(19,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(20,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(23,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(25,16384,null,0,pd,[[4,Wp]],null,null),fo(26,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(28,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(29,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(30,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(38,0,null,1,9,"textarea",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","descrizione"],["matInput",""],["placeholder","Descrizione"],["required",""]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,39)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,39).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,39)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,39)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,46)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,46)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,46)._onInput()&&i),i},null,null)),fo(39,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(40,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(43,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(45,16384,null,0,pd,[[4,Wp]],null,null),fo(46,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(48,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(49,0,null,null,18,"mat-form-field",[["class","mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(50,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(58,0,null,1,9,"input",[["class","color-input mat-input-element mat-form-field-autofill-control"],["formControlName","colore"],["matInput",""],["placeholder","Colore"],["required",""],["type","color"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,59)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,59).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,59)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,59)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,66)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,66)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,66)._onInput()&&i),i},null,null)),fo(59,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(60,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(63,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(65,16384,null,0,pd,[[4,Wp]],null,null),fo(66,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[15,4]],Em,null,[R_]),(t()(),Sr(68,0,null,null,5,"input",[["formControlName","id"],["type","hidden"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,69)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,69).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,69)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,69)._compositionEnd(n.target.value)&&i),i},null,null)),fo(69,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(71,671744,null,0,Od,[[3,kp],[8,null],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(73,16384,null,0,pd,[[4,Wp]],null,null),(t()(),Sr(74,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(75,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.onSubmit()&&i),i},M_,F_)),fo(76,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Salva"])),(t()(),Sr(78,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(79,0,null,null,2,"button",[["class"," white-text"],["color","accent"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.chiudi()&&i),i},M_,F_)),fo(80,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Chiudi"]))],function(t,e){t(e,5,0,e.component.legendaForm),t(e,10,0,"auto"),t(e,20,0,""),t(e,23,0,"codice"),t(e,26,0,"Codice","","text"),t(e,30,0,"auto"),t(e,40,0,""),t(e,43,0,"descrizione"),t(e,46,0,"Descrizione",""),t(e,50,0,"auto"),t(e,60,0,""),t(e,63,0,"colore"),t(e,66,0,"Colore","","color"),t(e,71,0,"id"),t(e,76,0,"primary"),t(e,80,0,"accent")},function(t,e){t(e,2,0,e.component.templateName),t(e,3,0,to(e,7).ngClassUntouched,to(e,7).ngClassTouched,to(e,7).ngClassPristine,to(e,7).ngClassDirty,to(e,7).ngClassValid,to(e,7).ngClassInvalid,to(e,7).ngClassPending),t(e,9,1,["standard"==to(e,10).appearance,"fill"==to(e,10).appearance,"outline"==to(e,10).appearance,"legacy"==to(e,10).appearance,to(e,10)._control.errorState,to(e,10)._canLabelFloat,to(e,10)._shouldLabelFloat(),to(e,10)._hasFloatingLabel(),to(e,10)._hideControlPlaceholder(),to(e,10)._control.disabled,to(e,10)._control.autofilled,to(e,10)._control.focused,"accent"==to(e,10).color,"warn"==to(e,10).color,to(e,10)._shouldForward("untouched"),to(e,10)._shouldForward("touched"),to(e,10)._shouldForward("pristine"),to(e,10)._shouldForward("dirty"),to(e,10)._shouldForward("valid"),to(e,10)._shouldForward("invalid"),to(e,10)._shouldForward("pending"),!to(e,10)._animationsEnabled]),t(e,18,1,[to(e,20).required?"":null,to(e,25).ngClassUntouched,to(e,25).ngClassTouched,to(e,25).ngClassPristine,to(e,25).ngClassDirty,to(e,25).ngClassValid,to(e,25).ngClassInvalid,to(e,25).ngClassPending,to(e,26)._isServer,to(e,26).id,to(e,26).placeholder,to(e,26).disabled,to(e,26).required,to(e,26).readonly&&!to(e,26)._isNativeSelect||null,to(e,26)._ariaDescribedby||null,to(e,26).errorState,to(e,26).required.toString()]),t(e,29,1,["standard"==to(e,30).appearance,"fill"==to(e,30).appearance,"outline"==to(e,30).appearance,"legacy"==to(e,30).appearance,to(e,30)._control.errorState,to(e,30)._canLabelFloat,to(e,30)._shouldLabelFloat(),to(e,30)._hasFloatingLabel(),to(e,30)._hideControlPlaceholder(),to(e,30)._control.disabled,to(e,30)._control.autofilled,to(e,30)._control.focused,"accent"==to(e,30).color,"warn"==to(e,30).color,to(e,30)._shouldForward("untouched"),to(e,30)._shouldForward("touched"),to(e,30)._shouldForward("pristine"),to(e,30)._shouldForward("dirty"),to(e,30)._shouldForward("valid"),to(e,30)._shouldForward("invalid"),to(e,30)._shouldForward("pending"),!to(e,30)._animationsEnabled]),t(e,38,1,[to(e,40).required?"":null,to(e,45).ngClassUntouched,to(e,45).ngClassTouched,to(e,45).ngClassPristine,to(e,45).ngClassDirty,to(e,45).ngClassValid,to(e,45).ngClassInvalid,to(e,45).ngClassPending,to(e,46)._isServer,to(e,46).id,to(e,46).placeholder,to(e,46).disabled,to(e,46).required,to(e,46).readonly&&!to(e,46)._isNativeSelect||null,to(e,46)._ariaDescribedby||null,to(e,46).errorState,to(e,46).required.toString()]),t(e,49,1,["standard"==to(e,50).appearance,"fill"==to(e,50).appearance,"outline"==to(e,50).appearance,"legacy"==to(e,50).appearance,to(e,50)._control.errorState,to(e,50)._canLabelFloat,to(e,50)._shouldLabelFloat(),to(e,50)._hasFloatingLabel(),to(e,50)._hideControlPlaceholder(),to(e,50)._control.disabled,to(e,50)._control.autofilled,to(e,50)._control.focused,"accent"==to(e,50).color,"warn"==to(e,50).color,to(e,50)._shouldForward("untouched"),to(e,50)._shouldForward("touched"),to(e,50)._shouldForward("pristine"),to(e,50)._shouldForward("dirty"),to(e,50)._shouldForward("valid"),to(e,50)._shouldForward("invalid"),to(e,50)._shouldForward("pending"),!to(e,50)._animationsEnabled]),t(e,58,1,[to(e,60).required?"":null,to(e,65).ngClassUntouched,to(e,65).ngClassTouched,to(e,65).ngClassPristine,to(e,65).ngClassDirty,to(e,65).ngClassValid,to(e,65).ngClassInvalid,to(e,65).ngClassPending,to(e,66)._isServer,to(e,66).id,to(e,66).placeholder,to(e,66).disabled,to(e,66).required,to(e,66).readonly&&!to(e,66)._isNativeSelect||null,to(e,66)._ariaDescribedby||null,to(e,66).errorState,to(e,66).required.toString()]),t(e,68,0,to(e,73).ngClassUntouched,to(e,73).ngClassTouched,to(e,73).ngClassPristine,to(e,73).ngClassDirty,to(e,73).ngClassValid,to(e,73).ngClassInvalid,to(e,73).ngClassPending),t(e,75,0,to(e,76).disabled||null,"NoopAnimations"===to(e,76)._animationMode),t(e,79,0,to(e,80).disabled||null,"NoopAnimations"===to(e,80)._animationMode)})}var Uk=function(){function t(t){this.http=t,this.endpoint=Qs.endpoint+"/user/",this.httpOptions={headers:new xb({"Content-Type":"application/json"})}}return t.prototype.getUserRoles=function(){return this.http.get(this.endpoint+"roles")},t.prototype.getUsersPagined=function(t,e){return this.http.get(this.endpoint+"all?page="+t+"&resultPerPage="+e)},t.prototype.getCountUsers=function(){return this.http.get(this.endpoint+"count")},t.prototype.getSelf=function(){return this.http.get(this.endpoint+"self")},t.prototype.deleteSelf=function(){return this.http.delete(this.endpoint+"self")},t.prototype.delete=function(t){return this.http.delete(this.endpoint+t)},t.ngInjectableDef=mt({factory:function(){return new t(ee(Nb))},token:t,providedIn:"root"}),t}(),Hk=function(){function t(t,e,n,i){this.legendaService=t,this.modalService=e,this.userService=n,this.authService=i,this.hide=!0}return t.prototype.ngOnInit=function(){this.authService.isLoggedIn&&(this.getLegende(),this.isAdmin())},t.prototype.getColor=function(t){return t.colore},t.prototype.hideLegendaForm=function(t,e,n){this.hide=t,null!=n&&(this.legendaUp=n),!0===t&&this.getLegende(),null!==e&&!0===e?(this.legendaUp=null,this.childTemplateName="Nuovo campo legenda"):null!==e&&!1===e&&(this.childTemplateName="Modifica campo legenda")},t.prototype.onDelete=function(t){var e=this;confirm("L'elemento pu\xf2 essere cancellato solo se non esistono punti associati ad esso. Confermi l'operazione?")&&this.legendaService.deleteLegenda(t).subscribe(function(t){!0===t.esito&&(e.getLegende(),e.modalService.openMessageAlert(bb,new eb(t.descrizione,"green-snackbar")))})},t.prototype.getLegende=function(){var t=this;this.legendaService.getLegende().subscribe(function(e){t.legende=e})},t.prototype.isAdmin=function(){var t=this;this.userService.getUserRoles().subscribe(function(e){for(var n=0,i=e;n=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var t=this.getNumberOfPages()-1;return this.pageIndex visible",animation:{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:0,transform:"scale(0)",offset:0},offset:null},{type:6,styles:{opacity:.5,transform:"scale(0.99)",offset:.5},offset:null},{type:6,styles:{opacity:1,transform:"scale(1)",offset:1},offset:null}]},timings:"200ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms cubic-bezier(0, 0, 0.2, 1)"},options:null}],options:{}}]}});function rP(t){return Go(2,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(t,e,n){var i=!0,r=t.component;return"@state.start"===e&&(i=!1!==r._animationStart()&&i),"@state.done"===e&&(i=!1!==r._animationDone(n)&&i),i},null,null)),fo(1,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(e=131072,n=xl,i=[ai],go(-1,e|=16,null,0,n,n,i)),(t()(),Vo(3,null,["",""]))],function(t,e){t(e,1,0,"mat-tooltip",e.component.tooltipClass)},function(t,e){var n,i=e.component;t(e,0,0,null==(n=function(t,e,n,i){if(re.isWrapped(i)){i=re.unwrap(i);var r=t.def.nodes[0].bindingIndex+0,o=re.unwrap(t.oldValues[r]);t.oldValues[r]=new re(o)}return i}(e,0,0,to(e,2).transform(i._isHandset)))?null:n.matches,i._visibility),t(e,3,0,i.message)});var e,n,i}function oP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(t,e,n){var i=!0;return"body:click"===e&&(i=!1!==to(t,1)._handleBodyInteraction()&&i),i},rP,iP)),fo(1,180224,null,0,xk,[ai,lb],null,null)],null,function(t,e){t(e,0,0,"visible"===to(e,1)._visibility?1:null)})}var sP=Ur("mat-tooltip-component",xk,oP,{},{},[]),aP=0,lP=0,uP=new yt("mat-select-scroll-strategy");function cP(t){return function(){return t.scrollStrategies.reposition()}}var hP=function(){return function(t,e){this.source=t,this.value=e}}(),pP=function(t){function e(e,n,i,r,o,s,a,l,u,c,h,p,d){var f=t.call(this,o,r,a,l,c)||this;return f._viewportRuler=e,f._changeDetectorRef=n,f._ngZone=i,f._dir=s,f._parentFormField=u,f.ngControl=c,f._liveAnnouncer=d,f._panelOpen=!1,f._required=!1,f._scrollTop=0,f._multiple=!1,f._compareWith=function(t,e){return t===e},f._uid="mat-select-"+aP++,f._destroy=new F,f._triggerFontSize=0,f._onChange=function(){},f._onTouched=function(){},f._optionIds="",f._transformOrigin="top",f._panelDoneAnimatingStream=new F,f._offsetY=0,f._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],f._disableOptionCentering=!1,f._focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=W_(function(){return f.options?rt.apply(void 0,f.options.map(function(t){return t.onSelectionChange})):f._ngZone.onStable.asObservable().pipe(Ra(1),La(function(){return f.optionSelectionChanges}))}),f.openedChange=new ke,f._openedStream=f.openedChange.pipe(aa(function(t){return t}),Y(function(){})),f._closedStream=f.openedChange.pipe(aa(function(t){return!t}),Y(function(){})),f.selectionChange=new ke,f.valueChange=new ke,f.ngControl&&(f.ngControl.valueAccessor=f),f._scrollStrategyFactory=p,f._scrollStrategy=f._scrollStrategyFactory(),f.tabIndex=parseInt(h)||0,f.id=f.id,f}return r(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Hd(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new rv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Q_(),wm(this._destroy)).subscribe(function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(wm(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(af(null),wm(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=this._keyManager;if((13===e||32===e)&&!uf(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t),this._liveAnnouncer&&r!==this.selected&&this._liveAnnouncer.announce(this.selected.viewValue)}},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,i=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?i.setFirstItemActive():i.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!i.activeItem||uf(t))if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var r=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(r?t.select():t.deselect())})}else{var o=i.activeItemIndex;i.onKeydown(t),this._multiple&&n&&t.shiftKey&&i.activeItem&&i.activeItemIndex!==o&&i.activeItem._selectViaInteraction()}else t.preventDefault(),i.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Ra(1)).subscribe(function(){t._setPseudoCheckboxPaddingSize(),t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},e.prototype._setPseudoCheckboxPaddingSize=function(){if(!lP&&this.multiple){var t=this.panel.nativeElement.querySelector(".mat-pseudo-checkbox");t&&(lP=24+t.offsetWidth)}},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(function(t){return e._selectValue(t)}),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n&&this._keyManager.setActiveItem(n)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find(function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return De()&&console.warn(i),!1}});return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new Ef(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(wm(this._destroy)).subscribe(function(){t.focus(),t.close()}),this._keyManager.change.pipe(wm(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},e.prototype._resetOptions=function(){var t=this,e=rt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(wm(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),rt.apply(void 0,this.options.map(function(t){return t._stateChanges})).pipe(wm(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()}),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)}),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new hP(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,i=this._keyManager.activeItemIndex||0,r=ym(i,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(i+r)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,i){return void 0===e?t===n?i:void 0:e},void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=ym(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?lP+16:32;if(this.multiple)t=lP;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var s=0-(e.left+t-(i?r:0)),a=e.right+t-n.width+(i?0:r);s>0?t+=s+8:a>0&&(t-=a+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,s=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-s))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),s=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;s>r?this._adjustPanelUp(s,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e}(Gf(Uf(zf(Hf(function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()))))),dP=function(){return function(){}}(),fP=Qi({encapsulation:2,styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform .4s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}@media (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],data:{animation:[{type:7,name:"transformPanelWrap",definitions:[{type:1,expr:"* => void",animation:{type:11,selector:"@transformPanel",animation:[{type:9,options:null}],options:{optional:!0}},options:null}],options:{}},{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{transform:"scaleY(0.8)",minWidth:"100%",opacity:0},offset:null},options:void 0},{type:0,name:"showing",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:0,name:"showing-multiple",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:4,styles:null,timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}}]}});function mP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"span",[["class","mat-select-placeholder"]],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.placeholder||"\xa0")})}function gP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.triggerValue||"\xa0")})}function yP(t){return Go(0,[Fo(null,0),(t()(),Er(0,null,null,0))],null,null)}function _P(t){return Go(0,[(t()(),Sr(0,0,null,null,5,"span",[["class","mat-select-value-text"]],null,null,null,null,null)),fo(1,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Er(16777216,null,null,1,null,gP)),fo(3,16384,null,0,_l,[si,Pe,gl],null,null),(t()(),Er(16777216,null,null,1,null,yP)),fo(5,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){t(e,1,0,!!e.component.customTrigger),t(e,5,0,!0)},null)}function vP(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-select-panel-wrap"]],[[24,"@transformPanelWrap",0]],null,null,null,null)),(t()(),Sr(1,0,[[2,0],["panel",1]],null,2,"div",[],[[24,"@transformPanel",0],[4,"transformOrigin",null],[4,"font-size","px"]],[[null,"@transformPanel.done"],[null,"keydown"]],function(t,e,n){var i=!0,r=t.component;return"@transformPanel.done"===e&&(i=!1!==r._panelDoneAnimatingStream.next(n.toState)&&i),"keydown"===e&&(i=!1!==r._handleKeydown(n)&&i),i},null,null)),fo(2,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Fo(null,1)],function(t,e){var n,i,r=e.component;t(e,2,0,("mat-select-panel ",n=r._getPanelTheme(),"mat-select-panel "+(null!=(i=n)?i.toString():"")),r.panelClass)},function(t,e){var n=e.component;t(e,0,0,void 0),t(e,1,0,n.multiple?"showing-multiple":"showing",n._transformOrigin,n._triggerFontSize)})}function bP(t){return Go(2,[ko(402653184,1,{trigger:0}),ko(671088640,2,{panel:0}),ko(402653184,3,{overlayDir:0}),(t()(),Sr(3,0,[[1,0],["trigger",1]],null,9,"div",[["aria-hidden","true"],["cdk-overlay-origin",""],["class","mat-select-trigger"]],null,[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.toggle()&&i),i},null,null)),fo(4,16384,[["origin",4]],0,Dv,[Ee],null,null),(t()(),Sr(5,0,null,null,5,"div",[["class","mat-select-value"]],null,null,null,null,null)),fo(6,16384,null,0,gl,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),Er(16777216,null,null,1,null,mP)),fo(8,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Er(16777216,null,null,1,null,_P)),fo(10,278528,null,0,yl,[si,Pe,gl],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),Sr(11,0,null,null,1,"div",[["class","mat-select-arrow-wrapper"]],null,null,null,null,null)),(t()(),Sr(12,0,null,null,0,"div",[["class","mat-select-arrow"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,function(t,e,n){var i=!0,r=t.component;return"backdropClick"===e&&(i=!1!==r.close()&&i),"attach"===e&&(i=!1!==r._onAttached()&&i),"detach"===e&&(i=!1!==r.close()&&i),i},vP)),fo(14,671744,[[3,4]],0,Fv,[Pv,Pe,si,Lv,[2,Mm]],{origin:[0,"origin"],positions:[1,"positions"],offsetY:[2,"offsetY"],minWidth:[3,"minWidth"],backdropClass:[4,"backdropClass"],scrollStrategy:[5,"scrollStrategy"],open:[6,"open"],hasBackdrop:[7,"hasBackdrop"],lockPosition:[8,"lockPosition"]},{backdropClick:"backdropClick",attach:"attach",detach:"detach"})],function(t,e){var n=e.component;t(e,6,0,n.empty),t(e,8,0,!0),t(e,10,0,!1),t(e,14,0,to(e,4),n._positions,n._offsetY,null==n._triggerRect?null:n._triggerRect.width,"cdk-overlay-transparent-backdrop",n._scrollStrategy,n.panelOpen,"","")},null)}var wP=Qi({encapsulation:2,styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}"],data:{}});function CP(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==to(t,1)._selectViaInteraction()&&i),"keydown"===e&&(i=!1!==to(t,1)._handleKeydown(n)&&i),i},Lk,Pk)),fo(1,8568832,[[8,4]],0,gm,[Ee,ai,[2,mm],[2,pm]],{value:[0,"value"]},null),(t()(),Vo(2,0,["",""]))],function(t,e){t(e,1,0,e.context.$implicit)},function(t,e){t(e,0,0,to(e,1)._getTabIndex(),to(e,1).selected,to(e,1).multiple,to(e,1).active,to(e,1).id,to(e,1)._getAriaSelected(),to(e,1).disabled.toString(),to(e,1).disabled),t(e,2,0,e.context.$implicit)})}function xP(t){return Go(0,[(t()(),Sr(0,0,null,null,17,"mat-form-field",[["class","mat-paginator-page-size-select mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(1,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{color:[0,"color"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(9,0,null,1,8,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==to(t,11)._handleKeydown(n)&&i),"focus"===e&&(i=!1!==to(t,11)._onFocus()&&i),"blur"===e&&(i=!1!==to(t,11)._onBlur()&&i),"selectionChange"===e&&(i=!1!==r._changePageSize(n.value)&&i),i},bP,fP)),mo(6144,null,mm,null,[pP]),fo(11,2080768,null,3,pP,[lv,ai,Fn,Wf,Ee,[2,Mm],[2,Cd],[2,Ed],[2,Rm],[8,null],[8,null],uP,Af],{disabled:[0,"disabled"],value:[1,"value"],ariaLabel:[2,"ariaLabel"]},{selectionChange:"selectionChange"}),ko(603979776,8,{options:1}),ko(603979776,9,{optionGroups:1}),ko(335544320,10,{customTrigger:0}),mo(2048,[[1,4]],Em,null,[pP]),(t()(),Er(16777216,null,1,1,null,CP)),fo(17,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,1,0,n.color),t(e,11,0,n.disabled,n.pageSize,n._intl.itemsPerPageLabel),t(e,17,0,n._displayedPageSizeOptions)},function(t,e){t(e,0,1,["standard"==to(e,1).appearance,"fill"==to(e,1).appearance,"outline"==to(e,1).appearance,"legacy"==to(e,1).appearance,to(e,1)._control.errorState,to(e,1)._canLabelFloat,to(e,1)._shouldLabelFloat(),to(e,1)._hasFloatingLabel(),to(e,1)._hideControlPlaceholder(),to(e,1)._control.disabled,to(e,1)._control.autofilled,to(e,1)._control.focused,"accent"==to(e,1).color,"warn"==to(e,1).color,to(e,1)._shouldForward("untouched"),to(e,1)._shouldForward("touched"),to(e,1)._shouldForward("pristine"),to(e,1)._shouldForward("dirty"),to(e,1)._shouldForward("valid"),to(e,1)._shouldForward("invalid"),to(e,1)._shouldForward("pending"),!to(e,1)._animationsEnabled]),t(e,9,1,[to(e,11).id,to(e,11).tabIndex,to(e,11)._getAriaLabel(),to(e,11)._getAriaLabelledby(),to(e,11).required.toString(),to(e,11).disabled.toString(),to(e,11).errorState,to(e,11).panelOpen?to(e,11)._optionIds:null,to(e,11).multiple,to(e,11)._ariaDescribedby||null,to(e,11)._getAriaActiveDescendant(),to(e,11).disabled,to(e,11).errorState,to(e,11).required,to(e,11).empty])})}function EP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"div",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.pageSize)})}function SP(t){return Go(0,[(t()(),Sr(0,0,null,null,6,"div",[["class","mat-paginator-page-size"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-paginator-page-size-label"]],null,null,null,null,null)),(t()(),Vo(2,null,["",""])),(t()(),Er(16777216,null,null,1,null,xP)),fo(4,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Er(16777216,null,null,1,null,EP)),fo(6,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,n._displayedPageSizeOptions.length>1),t(e,6,0,n._displayedPageSizeOptions.length<=1)},function(t,e){t(e,2,0,e.component._intl.itemsPerPageLabel)})}function TP(t){return Go(0,[(t()(),Sr(0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-first"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.firstPage()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,0,":svg:path",[["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"]],null,null,null,null,null)),(t()(),Er(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,n._previousButtonsDisabled()),t(e,2,0,"above",n._previousButtonsDisabled(),n._intl.firstPageLabel)},function(t,e){t(e,0,0,e.component._intl.firstPageLabel,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode)})}function IP(t){return Go(0,[(t()(),Sr(0,16777216,null,null,4,"button",[["class","mat-paginator-navigation-last"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.lastPage()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(3,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,0,":svg:path",[["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],null,null,null,null,null)),(t()(),Er(0,null,null,0))],function(t,e){var n=e.component;t(e,1,0,n._nextButtonsDisabled()),t(e,2,0,"above",n._nextButtonsDisabled(),n._intl.lastPageLabel)},function(t,e){t(e,0,0,e.component._intl.lastPageLabel,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode)})}function OP(t){return Go(2,[(t()(),Sr(0,0,null,null,20,"div",[["class","mat-paginator-outer-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,19,"div",[["class","mat-paginator-container"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,SP)),fo(3,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(4,0,null,null,16,"div",[["class","mat-paginator-range-actions"]],null,null,null,null,null)),(t()(),Sr(5,0,null,null,1,"div",[["class","mat-paginator-range-label"]],null,null,null,null,null)),(t()(),Vo(6,null,["",""])),(t()(),Er(16777216,null,null,1,null,TP)),fo(8,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(9,16777216,null,null,4,"button",[["class","mat-paginator-navigation-previous"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,11).show()&&i),"keydown"===e&&(i=!1!==to(t,11)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,11)._handleTouchend()&&i),"click"===e&&(i=!1!==r.previousPage()&&i),i},M_,F_)),fo(10,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(11,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(12,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(13,0,null,null,0,":svg:path",[["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"]],null,null,null,null,null)),(t()(),Sr(14,16777216,null,null,4,"button",[["class","mat-paginator-navigation-next"],["mat-icon-button",""],["type","button"]],[[1,"aria-label",0],[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,16).show()&&i),"keydown"===e&&(i=!1!==to(t,16)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,16)._handleTouchend()&&i),"click"===e&&(i=!1!==r.nextPage()&&i),i},M_,F_)),fo(15,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{disabled:[0,"disabled"]},null),fo(16,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{position:[0,"position"],disabled:[1,"disabled"],message:[2,"message"]},null),(t()(),Sr(17,0,null,0,1,":svg:svg",[["class","mat-paginator-icon"],["focusable","false"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Sr(18,0,null,null,0,":svg:path",[["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,IP)),fo(20,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0,!n.hidePageSize),t(e,8,0,n.showFirstLastButtons),t(e,10,0,n._previousButtonsDisabled()),t(e,11,0,"above",n._previousButtonsDisabled(),n._intl.previousPageLabel),t(e,15,0,n._nextButtonsDisabled()),t(e,16,0,"above",n._nextButtonsDisabled(),n._intl.nextPageLabel),t(e,20,0,n.showFirstLastButtons)},function(t,e){var n=e.component;t(e,6,0,n._intl.getRangeLabel(n.pageIndex,n.pageSize,n.length)),t(e,9,0,n._intl.previousPageLabel,to(e,10).disabled||null,"NoopAnimations"===to(e,10)._animationMode),t(e,14,0,n._intl.nextPageLabel,to(e,15).disabled||null,"NoopAnimations"===to(e,15)._animationMode)})}var RP=function(){function t(t,e){this.userService=t,this.modalService=e}return t.prototype.ngOnInit=function(){this.getUsersAndCount()},t.prototype.getUsersPagined=function(t){var e=this;this.userService.getUsersPagined(t.pageIndex,t.pageSize).subscribe(function(t){return e.users=t})},t.prototype.onDelete=function(t){var e=this;confirm("Si sta procedendo all'eliminazione dell'utente. Confermi l'operazione?")&&this.userService.delete(t).subscribe(function(t){!0===t.esito&&(e.getUsersAndCount(e.currentPage,e.currentPageSize),e.modalService.openMessageAlert(bb,new eb(t.descrizione,"green-snackbar")))})},t.prototype.getUsersAndCount=function(t,e){var n=this;this.userService.getUsersPagined(null!=t?t:0,null!=e?e:5).subscribe(function(t){return n.users=t}),this.userService.getCountUsers().subscribe(function(t){return n.usersNumber=t})},t}(),kP=Qi({encapsulation:0,styles:[[""]],data:{}});function PP(t){return Go(0,[(t()(),Sr(0,0,null,null,11,"mat-list-item",[["class","list-element mat-list-item"]],[[2,"mat-list-item-avatar",null],[2,"mat-list-item-with-avatar",null]],null,null,Vk,jk)),fo(1,1228800,null,3,Rk,[Ee,[2,Ik],[2,Ok],ai],null,null),ko(603979776,1,{_lines:1}),ko(335544320,2,{_avatar:0}),ko(335544320,3,{_icon:0}),(t()(),Sr(5,0,null,2,1,"p",[],null,null,null,null,null)),(t()(),Vo(6,null,["",""])),(t()(),Sr(7,0,null,2,0,"span",[["class","inline-spacing"]],null,null,null,null,null)),(t()(),Sr(8,16777216,null,2,3,"mat-icon",[["class","mat-icon notranslate"],["matTooltip","Cancella l'elemento"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,10).show()&&i),"keydown"===e&&(i=!1!==to(t,10)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,10)._handleTouchend()&&i),"click"===e&&(i=!1!==r.onDelete(t.context.$implicit.id)&&i),i},gk,mk)),fo(9,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),fo(10,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Vo(-1,0,[" delete "]))],function(t,e){t(e,9,0),t(e,10,0,"Cancella l'elemento")},function(t,e){t(e,0,0,to(e,1)._avatar||to(e,1)._icon,to(e,1)._avatar||to(e,1)._icon),t(e,6,0,e.context.$implicit.username),t(e,8,0,to(e,9).inline,"primary"!==to(e,9).color&&"accent"!==to(e,9).color&&"warn"!==to(e,9).color)})}function AP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"p",[["class","template-name"]],null,null,null,null,null)),(t()(),Vo(-1,null,["Utenti registrati"])),(t()(),Sr(2,0,null,null,2,"mat-paginator",[["class","mat-paginator"]],null,[[null,"page"]],function(t,e,n){var i=!0;return"page"===e&&(i=!1!==t.component.getUsersPagined(n)&&i),i},OP,wP)),fo(3,245760,null,0,eP,[$k,ai],{length:[0,"length"],pageSize:[1,"pageSize"],pageSizeOptions:[2,"pageSizeOptions"]},{page:"page"}),jo(32,4,new Array(2)),(t()(),Sr(5,0,null,null,4,"mat-list",[["class","mat-list mat-list-base"]],null,null,null,Nk,Mk)),fo(6,704512,null,0,Ok,[Ee],null,null),(t()(),Sr(7,0,null,0,0,"br",[],null,null,null,null,null)),(t()(),Er(16777216,null,0,1,null,PP)),fo(9,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component,i=n.usersNumber,r=t(e,4,0,5,10);t(e,3,0,i,5,r),t(e,9,0,n.users)},null)}var LP=function(){function t(){}return t.prototype.openSidenav=function(){this.sidenav.open()},t.prototype.closeSidenav=function(){this.sidenav.close()},t.prototype.toggleSidenav=function(){this.sidenav.toggle()},t.prototype.getMatSidenav=function(){return this.sidenav},t.prototype.setMatSidenav=function(t){this.sidenav=t},t.ngInjectableDef=mt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),DP=function(){function t(t,e,n,i){this.userService=t,this.sidenavService=e,this.modalService=n,this.authService=i}return t.prototype.ngOnInit=function(){this.authService.isLoggedIn&&(this.getSelf(),this.isAdmin())},t.prototype.deleteSelf=function(){var t=this;confirm("Confermi di voler procedere all'autocancellazione del tuo account? L'operazione \xe8 irreversibile")&&(this.formReady=!1,this.sidenavService.closeSidenav(),this.userService.deleteSelf().subscribe(function(e){!0===e.esito?(t.modalService.openMessageAlert(bb,new eb(e.descrizione,"green-snackbar")),t.authService.logout()):(t.formReady=!0,t.modalService.openMessageAlert(bb,new eb(e.descrizione,"red-snackbar")))}))},t.prototype.isAdmin=function(){var t=this;this.userService.getUserRoles().subscribe(function(e){for(var n=0,i=e;n enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function YP(t){return Go(0,[(t()(),Er(0,null,null,0))],null,null)}function KP(t){return Go(0,[ko(402653184,1,{_portalOutlet:0}),(t()(),Er(16777216,null,null,1,null,YP)),fo(2,212992,[[1,4]],0,U_,[de,si],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function XP(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],function(t,e,n){var i=!0;return"component:@dialogContainer.start"===e&&(i=!1!==to(t,1)._onAnimationStart(n)&&i),"component:@dialogContainer.done"===e&&(i=!1!==to(t,1)._onAnimationDone(n)&&i),i},KP,WP)),fo(1,49152,null,0,zv,[Ee,kf,ai,[2,Sl],jv],null,null)],null,function(t,e){t(e,0,0,to(e,1)._id,to(e,1)._config.role,to(e,1)._config.ariaLabel?null:to(e,1)._ariaLabelledBy,to(e,1)._config.ariaLabel,to(e,1)._config.ariaDescribedBy||null,to(e,1)._state)})}var ZP=Ur("mat-dialog-container",zv,XP,{},{},[]),QP=Qi({encapsulation:2,styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"void, hidden",styles:{type:6,styles:{transform:"scale(0.8)",opacity:0},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)",opacity:1},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => hidden",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function JP(t){return Go(0,[(t()(),Er(0,null,null,0))],null,null)}function $P(t){return Go(0,[ko(402653184,1,{_portalOutlet:0}),(t()(),Er(16777216,null,null,1,null,JP)),fo(2,212992,[[1,4]],0,U_,[de,si],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}function tA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"snack-bar-container",[["class","mat-snack-bar-container"]],[[1,"role",0],[40,"@state",0]],[["component","@state.done"]],function(t,e,n){var i=!0;return"component:@state.done"===e&&(i=!1!==to(t,1).onAnimationEnd(n)&&i),i},$P,QP)),fo(1,180224,null,0,mb,[Fn,Ee,ai,db],null,null)],null,function(t,e){t(e,0,0,to(e,1)._role,to(e,1)._animationState)})}var eA=Ur("snack-bar-container",mb,tA,{},{},[]),nA=Qi({encapsulation:2,styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;height:100%;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],data:{}});function iA(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-simple-snackbar-action"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"button",[["mat-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.action()&&i),i},M_,F_)),fo(2,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],null,null),(t()(),Vo(3,0,["",""]))],null,function(t,e){var n=e.component;t(e,1,0,to(e,2).disabled||null,"NoopAnimations"===to(e,2)._animationMode),t(e,3,0,n.data.action)})}function rA(t){return Go(2,[(t()(),Sr(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Vo(1,null,["",""])),(t()(),Er(16777216,null,null,1,null,iA)),fo(3,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,3,0,e.component.hasAction)},function(t,e){t(e,1,0,e.component.data.message)})}function oA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"simple-snack-bar",[["class","mat-simple-snackbar"]],null,null,null,rA,nA)),fo(1,49152,null,0,fb,[hb,pb],null,null)],null,null)}var sA=Ur("simple-snack-bar",fb,oA,{},{},[]),aA=Qi({encapsulation:0,styles:[[".modal-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;text-align:center;align-content:center;align-items:center;width:450px;height:450px}.modal-field[_ngcontent-%COMP%]{width:100%}"]],data:{}});function lA(t){return Go(0,[(t()(),Sr(0,0,null,null,118,"div",[["class","modal-form"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"h2",[["class","template-name mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),fo(2,81920,null,0,Zv,[[2,Gv],Ee,Kv],null,null),(t()(),Vo(-1,null,["Registrazione"])),(t()(),Sr(4,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,hw,cw)),fo(5,49152,null,0,lw,[],null,null),(t()(),Sr(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(7,0,null,null,105,"mat-dialog-content",[["class","modal-form mat-dialog-content"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,8).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,8).onReset()&&i),i},null,null)),fo(8,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(10,16384,null,0,dd,[[4,kp]],null,null),fo(11,16384,null,0,Qv,[],null,null),(t()(),Sr(12,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(13,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(14,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(22,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","username"],["matInput",""],["placeholder","Username"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,23)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,23).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,23)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,23)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,30)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,30)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,30)._onInput()&&i),i},null,null)),fo(23,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(24,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(27,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(29,16384,null,0,pd,[[4,Wp]],null,null),fo(30,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(32,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(33,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(34,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(42,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","password"],["matInput",""],["placeholder","Password"],["required",""],["type","password"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,43)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,43).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,43)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,43)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,50)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,50)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,50)._onInput()&&i),i},null,null)),fo(43,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(44,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(47,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(49,16384,null,0,pd,[[4,Wp]],null,null),fo(50,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(52,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(53,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(54,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(62,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","ripetiPassword"],["matInput",""],["placeholder","Ripeti password"],["required",""],["type","password"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,63)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,63).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,63)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,63)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,70)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,70)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,70)._onInput()&&i),i},null,null)),fo(63,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(64,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(67,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(69,16384,null,0,pd,[[4,Wp]],null,null),fo(70,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[15,4]],Em,null,[R_]),(t()(),Sr(72,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(73,0,null,null,18,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(74,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,22,{_control:0}),ko(335544320,23,{_placeholderChild:0}),ko(335544320,24,{_labelChild:0}),ko(603979776,25,{_errorChildren:1}),ko(603979776,26,{_hintChildren:1}),ko(603979776,27,{_prefixChildren:1}),ko(603979776,28,{_suffixChildren:1}),(t()(),Sr(82,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","email"],["matInput",""],["placeholder","Email"],["required",""],["type","email"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,83)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,83).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,83)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,83)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,90)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,90)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,90)._onInput()&&i),i},null,null)),fo(83,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(84,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(87,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(89,16384,null,0,pd,[[4,Wp]],null,null),fo(90,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[22,4]],Em,null,[R_]),(t()(),Sr(92,0,null,null,20,"div",[],null,null,null,null,null)),(t()(),Sr(93,0,null,null,19,"mat-form-field",[["class","modal-field mat-form-field"],["floatLabel","auto"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(94,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],{floatLabel:[0,"floatLabel"]},null),ko(335544320,29,{_control:0}),ko(335544320,30,{_placeholderChild:0}),ko(335544320,31,{_labelChild:0}),ko(603979776,32,{_errorChildren:1}),ko(603979776,33,{_hintChildren:1}),ko(603979776,34,{_prefixChildren:1}),ko(603979776,35,{_suffixChildren:1}),(t()(),Sr(102,0,null,1,10,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","anni"],["matInput",""],["placeholder","Anni"],["required",""],["type","number"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,103)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,103).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,103)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,103)._compositionEnd(n.target.value)&&i),"change"===e&&(i=!1!==to(t,104).onChange(n.target.value)&&i),"input"===e&&(i=!1!==to(t,104).onChange(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,104).onTouched()&&i),"blur"===e&&(i=!1!==to(t,111)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,111)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,111)._onInput()&&i),i},null,null)),fo(103,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(104,16384,null,0,Hp,[Oe,Ee],null,null),fo(105,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t,e){return[t,e]},[Bp,Hp]),fo(108,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(110,16384,null,0,pd,[[4,Wp]],null,null),fo(111,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[29,4]],Em,null,[R_]),(t()(),Sr(113,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),Sr(114,0,null,null,4,"mat-dialog-actions",[["class","mat-dialog-actions"],["style","align-items: center; align-content: center"]],null,null,null,null,null)),fo(115,16384,null,0,Jv,[],null,null),(t()(),Sr(116,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.submit()&&i),i},M_,F_)),fo(117,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Registrati!"]))],function(t,e){var n=e.component;t(e,2,0),t(e,8,0,n.regForm),t(e,14,0,"auto"),t(e,24,0,""),t(e,27,0,"username"),t(e,30,0,"Username","","text"),t(e,34,0,"auto"),t(e,44,0,""),t(e,47,0,"password"),t(e,50,0,"Password","","password"),t(e,54,0,"auto"),t(e,64,0,""),t(e,67,0,"ripetiPassword"),t(e,70,0,"Ripeti password","","password"),t(e,74,0,"auto"),t(e,84,0,""),t(e,87,0,"email"),t(e,90,0,"Email","","email"),t(e,94,0,"auto"),t(e,105,0,""),t(e,108,0,"anni"),t(e,111,0,"Anni","","number"),t(e,117,0,"primary")},function(t,e){t(e,1,0,to(e,2).id),t(e,4,0,to(e,5).vertical?"vertical":"horizontal",to(e,5).vertical,!to(e,5).vertical,to(e,5).inset),t(e,7,0,to(e,10).ngClassUntouched,to(e,10).ngClassTouched,to(e,10).ngClassPristine,to(e,10).ngClassDirty,to(e,10).ngClassValid,to(e,10).ngClassInvalid,to(e,10).ngClassPending),t(e,13,1,["standard"==to(e,14).appearance,"fill"==to(e,14).appearance,"outline"==to(e,14).appearance,"legacy"==to(e,14).appearance,to(e,14)._control.errorState,to(e,14)._canLabelFloat,to(e,14)._shouldLabelFloat(),to(e,14)._hasFloatingLabel(),to(e,14)._hideControlPlaceholder(),to(e,14)._control.disabled,to(e,14)._control.autofilled,to(e,14)._control.focused,"accent"==to(e,14).color,"warn"==to(e,14).color,to(e,14)._shouldForward("untouched"),to(e,14)._shouldForward("touched"),to(e,14)._shouldForward("pristine"),to(e,14)._shouldForward("dirty"),to(e,14)._shouldForward("valid"),to(e,14)._shouldForward("invalid"),to(e,14)._shouldForward("pending"),!to(e,14)._animationsEnabled]),t(e,22,1,[to(e,24).required?"":null,to(e,29).ngClassUntouched,to(e,29).ngClassTouched,to(e,29).ngClassPristine,to(e,29).ngClassDirty,to(e,29).ngClassValid,to(e,29).ngClassInvalid,to(e,29).ngClassPending,to(e,30)._isServer,to(e,30).id,to(e,30).placeholder,to(e,30).disabled,to(e,30).required,to(e,30).readonly&&!to(e,30)._isNativeSelect||null,to(e,30)._ariaDescribedby||null,to(e,30).errorState,to(e,30).required.toString()]),t(e,33,1,["standard"==to(e,34).appearance,"fill"==to(e,34).appearance,"outline"==to(e,34).appearance,"legacy"==to(e,34).appearance,to(e,34)._control.errorState,to(e,34)._canLabelFloat,to(e,34)._shouldLabelFloat(),to(e,34)._hasFloatingLabel(),to(e,34)._hideControlPlaceholder(),to(e,34)._control.disabled,to(e,34)._control.autofilled,to(e,34)._control.focused,"accent"==to(e,34).color,"warn"==to(e,34).color,to(e,34)._shouldForward("untouched"),to(e,34)._shouldForward("touched"),to(e,34)._shouldForward("pristine"),to(e,34)._shouldForward("dirty"),to(e,34)._shouldForward("valid"),to(e,34)._shouldForward("invalid"),to(e,34)._shouldForward("pending"),!to(e,34)._animationsEnabled]),t(e,42,1,[to(e,44).required?"":null,to(e,49).ngClassUntouched,to(e,49).ngClassTouched,to(e,49).ngClassPristine,to(e,49).ngClassDirty,to(e,49).ngClassValid,to(e,49).ngClassInvalid,to(e,49).ngClassPending,to(e,50)._isServer,to(e,50).id,to(e,50).placeholder,to(e,50).disabled,to(e,50).required,to(e,50).readonly&&!to(e,50)._isNativeSelect||null,to(e,50)._ariaDescribedby||null,to(e,50).errorState,to(e,50).required.toString()]),t(e,53,1,["standard"==to(e,54).appearance,"fill"==to(e,54).appearance,"outline"==to(e,54).appearance,"legacy"==to(e,54).appearance,to(e,54)._control.errorState,to(e,54)._canLabelFloat,to(e,54)._shouldLabelFloat(),to(e,54)._hasFloatingLabel(),to(e,54)._hideControlPlaceholder(),to(e,54)._control.disabled,to(e,54)._control.autofilled,to(e,54)._control.focused,"accent"==to(e,54).color,"warn"==to(e,54).color,to(e,54)._shouldForward("untouched"),to(e,54)._shouldForward("touched"),to(e,54)._shouldForward("pristine"),to(e,54)._shouldForward("dirty"),to(e,54)._shouldForward("valid"),to(e,54)._shouldForward("invalid"),to(e,54)._shouldForward("pending"),!to(e,54)._animationsEnabled]),t(e,62,1,[to(e,64).required?"":null,to(e,69).ngClassUntouched,to(e,69).ngClassTouched,to(e,69).ngClassPristine,to(e,69).ngClassDirty,to(e,69).ngClassValid,to(e,69).ngClassInvalid,to(e,69).ngClassPending,to(e,70)._isServer,to(e,70).id,to(e,70).placeholder,to(e,70).disabled,to(e,70).required,to(e,70).readonly&&!to(e,70)._isNativeSelect||null,to(e,70)._ariaDescribedby||null,to(e,70).errorState,to(e,70).required.toString()]),t(e,73,1,["standard"==to(e,74).appearance,"fill"==to(e,74).appearance,"outline"==to(e,74).appearance,"legacy"==to(e,74).appearance,to(e,74)._control.errorState,to(e,74)._canLabelFloat,to(e,74)._shouldLabelFloat(),to(e,74)._hasFloatingLabel(),to(e,74)._hideControlPlaceholder(),to(e,74)._control.disabled,to(e,74)._control.autofilled,to(e,74)._control.focused,"accent"==to(e,74).color,"warn"==to(e,74).color,to(e,74)._shouldForward("untouched"),to(e,74)._shouldForward("touched"),to(e,74)._shouldForward("pristine"),to(e,74)._shouldForward("dirty"),to(e,74)._shouldForward("valid"),to(e,74)._shouldForward("invalid"),to(e,74)._shouldForward("pending"),!to(e,74)._animationsEnabled]),t(e,82,1,[to(e,84).required?"":null,to(e,89).ngClassUntouched,to(e,89).ngClassTouched,to(e,89).ngClassPristine,to(e,89).ngClassDirty,to(e,89).ngClassValid,to(e,89).ngClassInvalid,to(e,89).ngClassPending,to(e,90)._isServer,to(e,90).id,to(e,90).placeholder,to(e,90).disabled,to(e,90).required,to(e,90).readonly&&!to(e,90)._isNativeSelect||null,to(e,90)._ariaDescribedby||null,to(e,90).errorState,to(e,90).required.toString()]),t(e,93,1,["standard"==to(e,94).appearance,"fill"==to(e,94).appearance,"outline"==to(e,94).appearance,"legacy"==to(e,94).appearance,to(e,94)._control.errorState,to(e,94)._canLabelFloat,to(e,94)._shouldLabelFloat(),to(e,94)._hasFloatingLabel(),to(e,94)._hideControlPlaceholder(),to(e,94)._control.disabled,to(e,94)._control.autofilled,to(e,94)._control.focused,"accent"==to(e,94).color,"warn"==to(e,94).color,to(e,94)._shouldForward("untouched"),to(e,94)._shouldForward("touched"),to(e,94)._shouldForward("pristine"),to(e,94)._shouldForward("dirty"),to(e,94)._shouldForward("valid"),to(e,94)._shouldForward("invalid"),to(e,94)._shouldForward("pending"),!to(e,94)._animationsEnabled]),t(e,102,1,[to(e,105).required?"":null,to(e,110).ngClassUntouched,to(e,110).ngClassTouched,to(e,110).ngClassPristine,to(e,110).ngClassDirty,to(e,110).ngClassValid,to(e,110).ngClassInvalid,to(e,110).ngClassPending,to(e,111)._isServer,to(e,111).id,to(e,111).placeholder,to(e,111).disabled,to(e,111).required,to(e,111).readonly&&!to(e,111)._isNativeSelect||null,to(e,111)._ariaDescribedby||null,to(e,111).errorState,to(e,111).required.toString()]),t(e,116,0,to(e,117).disabled||null,"NoopAnimations"===to(e,117)._animationMode)})}function uA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-registration",[],null,null,null,lA,aA)),fo(1,114688,null,0,tw,[kd,Gv,$b,vb],null,null)],function(t,e){t(e,1,0)},null)}var cA=Ur("app-registration",tw,uA,{},{},[]),hA=Qi({encapsulation:0,styles:[[".message-alert[_ngcontent-%COMP%]{width:200px;height:100px}"]],data:{}});function pA(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Vo(2,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.message.testo)})}function dA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-message",[],null,null,null,pA,hA)),fo(1,114688,null,0,bb,[pb],null,null)],function(t,e){t(e,1,0)},null)}var fA=Ur("app-message",bb,dA,{},{},[]),mA=Qi({encapsulation:0,styles:[[".point-form[_ngcontent-%COMP%]{width:100%;height:100%}.modal-name[_ngcontent-%COMP%]{font-family:'Gill Sans','Gill Sans MT',Calibri,'Trebuchet MS',sans-serif;font-size:1.5rem;letter-spacing:1px;color:#8b0000}.point-form-container[_ngcontent-%COMP%]{text-align:center;display:flex;justify-content:flex-start;flex-direction:column;width:400px;height:400px}.span-button[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]],data:{}});function gA(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==to(t,1)._selectViaInteraction()&&i),"keydown"===e&&(i=!1!==to(t,1)._handleKeydown(n)&&i),i},Lk,Pk)),fo(1,8568832,[[22,4]],0,gm,[Ee,ai,[2,mm],[2,pm]],{value:[0,"value"]},null),(t()(),Vo(2,0,[" "," "]))],function(t,e){t(e,1,0,e.context.$implicit.id)},function(t,e){t(e,0,0,to(e,1)._getTabIndex(),to(e,1).selected,to(e,1).multiple,to(e,1).active,to(e,1).id,to(e,1)._getAriaSelected(),to(e,1).disabled.toString(),to(e,1).disabled),t(e,2,0,e.context.$implicit.codice)})}function yA(t){return Go(0,[(t()(),Sr(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.salvaPosizione()&&i),i},M_,F_)),fo(2,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Salva"])),(t()(),Sr(4,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(5,0,null,null,2,"button",[["class"," white-text"],["color","accent"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.closeModal()&&i),i},M_,F_)),fo(6,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Chiudi"]))],function(t,e){t(e,2,0,"primary"),t(e,6,0,"accent")},function(t,e){t(e,1,0,to(e,2).disabled||null,"NoopAnimations"===to(e,2)._animationMode),t(e,5,0,to(e,6).disabled||null,"NoopAnimations"===to(e,6)._animationMode)})}function _A(t){return Go(0,[(t()(),Sr(0,0,null,null,2,"button",[["class"," white-text"],["color","primary"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.aggiornaPosizione()&&i),i},M_,F_)),fo(1,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Aggiorna"])),(t()(),Sr(3,0,null,null,0,"div",[["class","divider"]],null,null,null,null,null)),(t()(),Sr(4,0,null,null,2,"button",[["class"," white-text"],["color","warn"],["mat-raised-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component.cancellaPosizione()&&i),i},M_,F_)),fo(5,180224,null,0,L_,[Ee,Qd,Ff,[2,r_]],{color:[0,"color"]},null),(t()(),Vo(-1,0,["Cancella"]))],function(t,e){t(e,1,0,"primary"),t(e,5,0,"warn")},function(t,e){t(e,0,0,to(e,1).disabled||null,"NoopAnimations"===to(e,1)._animationMode),t(e,4,0,to(e,5).disabled||null,"NoopAnimations"===to(e,5)._animationMode)})}function vA(t){return Go(0,[(t()(),Sr(0,0,null,null,80,"div",[["class","point-form-container"]],null,null,null,null,null)),(t()(),Sr(1,0,null,null,2,"h2",[["class","modal-name mat-dialog-title"],["mat-dialog-title",""]],[[8,"id",0]],null,null,null,null)),fo(2,81920,null,0,Zv,[[2,Gv],Ee,Kv],null,null),(t()(),Vo(3,null,["",""])),(t()(),Sr(4,0,null,null,1,"mat-divider",[["class","mat-divider"],["role","separator"]],[[1,"aria-orientation",0],[2,"mat-divider-vertical",null],[2,"mat-divider-horizontal",null],[2,"mat-divider-inset",null]],null,null,hw,cw)),fo(5,49152,null,0,lw,[],null,null),(t()(),Sr(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(7,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Sr(8,0,null,null,72,"form",[["class","form mat-dialog-content"],["mat-dialog-content",""],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var i=!0;return"submit"===e&&(i=!1!==to(t,10).onSubmit(n)&&i),"reset"===e&&(i=!1!==to(t,10).onReset()&&i),i},null,null)),fo(9,16384,null,0,Pd,[],null,null),fo(10,540672,null,0,Ed,[[8,null],[8,null]],{form:[0,"form"]},null),mo(2048,null,kp,null,[Ed]),fo(12,16384,null,0,dd,[[4,kp]],null,null),fo(13,16384,null,0,Qv,[],null,null),(t()(),Sr(14,0,null,null,19,"div",[],null,null,null,null,null)),(t()(),Sr(15,0,null,null,18,"mat-form-field",[["class","mat-field mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(16,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,1,{_control:0}),ko(335544320,2,{_placeholderChild:0}),ko(335544320,3,{_labelChild:0}),ko(603979776,4,{_errorChildren:1}),ko(603979776,5,{_hintChildren:1}),ko(603979776,6,{_prefixChildren:1}),ko(603979776,7,{_suffixChildren:1}),(t()(),Sr(24,0,null,1,9,"input",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","nome"],["matInput",""],["placeholder","Nome"],["required",""],["type","text"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,25)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,25).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,25)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,25)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,32)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,32)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,32)._onInput()&&i),i},null,null)),fo(25,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),fo(26,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(29,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(31,16384,null,0,pd,[[4,Wp]],null,null),fo(32,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"],required:[1,"required"],type:[2,"type"]},null),mo(2048,[[1,4]],Em,null,[R_]),(t()(),Sr(34,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),Sr(35,0,null,null,16,"mat-form-field",[["class","input-fullwidth mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(36,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,8,{_control:0}),ko(335544320,9,{_placeholderChild:0}),ko(335544320,10,{_labelChild:0}),ko(603979776,11,{_errorChildren:1}),ko(603979776,12,{_hintChildren:1}),ko(603979776,13,{_prefixChildren:1}),ko(603979776,14,{_suffixChildren:1}),(t()(),Sr(44,0,null,1,7,"textarea",[["class","mat-input-element mat-form-field-autofill-control"],["formControlName","descrizione"],["matInput",""],["placeholder","Descrizione"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[1,"readonly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"focus"]],function(t,e,n){var i=!0;return"input"===e&&(i=!1!==to(t,45)._handleInput(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,45).onTouched()&&i),"compositionstart"===e&&(i=!1!==to(t,45)._compositionStart()&&i),"compositionend"===e&&(i=!1!==to(t,45)._compositionEnd(n.target.value)&&i),"blur"===e&&(i=!1!==to(t,50)._focusChanged(!1)&&i),"focus"===e&&(i=!1!==to(t,50)._focusChanged(!0)&&i),"input"===e&&(i=!1!==to(t,50)._onInput()&&i),i},null,null)),fo(45,16384,null,0,Bp,[Oe,Ee,[2,zp]],null,null),mo(1024,null,jp,function(t){return[t]},[Bp]),fo(47,671744,null,0,Od,[[3,kp],[8,null],[8,null],[6,jp],[2,xd]],{name:[0,"name"]},null),mo(2048,null,Wp,null,[Od]),fo(49,16384,null,0,pd,[[4,Wp]],null,null),fo(50,999424,null,0,R_,[Ee,Qd,[6,Wp],[2,Cd],[2,Ed],Wf,[8,null],S_,Fn],{placeholder:[0,"placeholder"]},null),mo(2048,[[8,4]],Em,null,[R_]),(t()(),Sr(52,0,null,null,23,"div",[],null,null,null,null,null)),(t()(),Sr(53,0,null,null,22,"mat-form-field",[["class","mat-field mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-has-label",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[2,"_mat-animation-noopable",null]],null,null,__,s_)),fo(54,7520256,null,7,Rm,[Ee,ai,[2,vm],[2,Mm],[2,Om],Qd,Fn,[2,r_]],null,null),ko(335544320,15,{_control:0}),ko(335544320,16,{_placeholderChild:0}),ko(335544320,17,{_labelChild:0}),ko(603979776,18,{_errorChildren:1}),ko(603979776,19,{_hintChildren:1}),ko(603979776,20,{_prefixChildren:1}),ko(603979776,21,{_suffixChildren:1}),(t()(),Sr(62,0,null,1,13,"mat-select",[["class","mat-select"],["formControlName","idLegenda"],["placeholder","Selezione legenda"],["required",""],["role","listbox"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null],[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null],[2,"mat-select-empty",null]],[[null,"ngModelChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==to(t,69)._handleKeydown(n)&&i),"focus"===e&&(i=!1!==to(t,69)._onFocus()&&i),"blur"===e&&(i=!1!==to(t,69)._onBlur()&&i),"ngModelChange"===e&&(i=!1!==(r.selectedLegenda=n)&&i),i},bP,fP)),mo(6144,null,mm,null,[pP]),fo(64,16384,null,0,Rd,[],{required:[0,"required"]},null),mo(1024,null,Ap,function(t){return[t]},[Rd]),fo(66,671744,null,0,Od,[[3,kp],[6,Ap],[8,null],[8,null],[2,xd]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),mo(2048,null,Wp,null,[Od]),fo(68,16384,null,0,pd,[[4,Wp]],null,null),fo(69,2080768,null,3,pP,[lv,ai,Fn,Wf,Ee,[2,Mm],[2,Cd],[2,Ed],[2,Rm],[6,Wp],[8,null],uP,Af],{placeholder:[0,"placeholder"],required:[1,"required"]},null),ko(603979776,22,{options:1}),ko(603979776,23,{optionGroups:1}),ko(335544320,24,{customTrigger:0}),mo(2048,[[15,4]],Em,null,[pP]),(t()(),Er(16777216,null,1,1,null,gA)),fo(75,278528,null,0,cl,[si,Pe,Ei],{ngForOf:[0,"ngForOf"]},null),(t()(),Sr(76,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Sr(77,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Er(16777216,null,null,1,null,yA)),fo(79,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Er(0,[["isUpdate",2]],null,0,null,_A))],function(t,e){var n=e.component;t(e,2,0),t(e,10,0,n.formPoint),t(e,26,0,""),t(e,29,0,"nome"),t(e,32,0,"Nome","","text"),t(e,47,0,"descrizione"),t(e,50,0,"Descrizione"),t(e,64,0,""),t(e,66,0,"idLegenda",n.selectedLegenda),t(e,69,0,"Selezione legenda",""),t(e,75,0,n.legende),t(e,79,0,1==n.isNew,to(e,80))},function(t,e){var n=e.component;t(e,1,0,to(e,2).id),t(e,3,0,n.modalName),t(e,4,0,to(e,5).vertical?"vertical":"horizontal",to(e,5).vertical,!to(e,5).vertical,to(e,5).inset),t(e,8,0,to(e,12).ngClassUntouched,to(e,12).ngClassTouched,to(e,12).ngClassPristine,to(e,12).ngClassDirty,to(e,12).ngClassValid,to(e,12).ngClassInvalid,to(e,12).ngClassPending),t(e,15,1,["standard"==to(e,16).appearance,"fill"==to(e,16).appearance,"outline"==to(e,16).appearance,"legacy"==to(e,16).appearance,to(e,16)._control.errorState,to(e,16)._canLabelFloat,to(e,16)._shouldLabelFloat(),to(e,16)._hasFloatingLabel(),to(e,16)._hideControlPlaceholder(),to(e,16)._control.disabled,to(e,16)._control.autofilled,to(e,16)._control.focused,"accent"==to(e,16).color,"warn"==to(e,16).color,to(e,16)._shouldForward("untouched"),to(e,16)._shouldForward("touched"),to(e,16)._shouldForward("pristine"),to(e,16)._shouldForward("dirty"),to(e,16)._shouldForward("valid"),to(e,16)._shouldForward("invalid"),to(e,16)._shouldForward("pending"),!to(e,16)._animationsEnabled]),t(e,24,1,[to(e,26).required?"":null,to(e,31).ngClassUntouched,to(e,31).ngClassTouched,to(e,31).ngClassPristine,to(e,31).ngClassDirty,to(e,31).ngClassValid,to(e,31).ngClassInvalid,to(e,31).ngClassPending,to(e,32)._isServer,to(e,32).id,to(e,32).placeholder,to(e,32).disabled,to(e,32).required,to(e,32).readonly&&!to(e,32)._isNativeSelect||null,to(e,32)._ariaDescribedby||null,to(e,32).errorState,to(e,32).required.toString()]),t(e,35,1,["standard"==to(e,36).appearance,"fill"==to(e,36).appearance,"outline"==to(e,36).appearance,"legacy"==to(e,36).appearance,to(e,36)._control.errorState,to(e,36)._canLabelFloat,to(e,36)._shouldLabelFloat(),to(e,36)._hasFloatingLabel(),to(e,36)._hideControlPlaceholder(),to(e,36)._control.disabled,to(e,36)._control.autofilled,to(e,36)._control.focused,"accent"==to(e,36).color,"warn"==to(e,36).color,to(e,36)._shouldForward("untouched"),to(e,36)._shouldForward("touched"),to(e,36)._shouldForward("pristine"),to(e,36)._shouldForward("dirty"),to(e,36)._shouldForward("valid"),to(e,36)._shouldForward("invalid"),to(e,36)._shouldForward("pending"),!to(e,36)._animationsEnabled]),t(e,44,1,[to(e,49).ngClassUntouched,to(e,49).ngClassTouched,to(e,49).ngClassPristine,to(e,49).ngClassDirty,to(e,49).ngClassValid,to(e,49).ngClassInvalid,to(e,49).ngClassPending,to(e,50)._isServer,to(e,50).id,to(e,50).placeholder,to(e,50).disabled,to(e,50).required,to(e,50).readonly&&!to(e,50)._isNativeSelect||null,to(e,50)._ariaDescribedby||null,to(e,50).errorState,to(e,50).required.toString()]),t(e,53,1,["standard"==to(e,54).appearance,"fill"==to(e,54).appearance,"outline"==to(e,54).appearance,"legacy"==to(e,54).appearance,to(e,54)._control.errorState,to(e,54)._canLabelFloat,to(e,54)._shouldLabelFloat(),to(e,54)._hasFloatingLabel(),to(e,54)._hideControlPlaceholder(),to(e,54)._control.disabled,to(e,54)._control.autofilled,to(e,54)._control.focused,"accent"==to(e,54).color,"warn"==to(e,54).color,to(e,54)._shouldForward("untouched"),to(e,54)._shouldForward("touched"),to(e,54)._shouldForward("pristine"),to(e,54)._shouldForward("dirty"),to(e,54)._shouldForward("valid"),to(e,54)._shouldForward("invalid"),to(e,54)._shouldForward("pending"),!to(e,54)._animationsEnabled]),t(e,62,1,[to(e,64).required?"":null,to(e,68).ngClassUntouched,to(e,68).ngClassTouched,to(e,68).ngClassPristine,to(e,68).ngClassDirty,to(e,68).ngClassValid,to(e,68).ngClassInvalid,to(e,68).ngClassPending,to(e,69).id,to(e,69).tabIndex,to(e,69)._getAriaLabel(),to(e,69)._getAriaLabelledby(),to(e,69).required.toString(),to(e,69).disabled.toString(),to(e,69).errorState,to(e,69).panelOpen?to(e,69)._optionIds:null,to(e,69).multiple,to(e,69)._ariaDescribedby||null,to(e,69)._getAriaActiveDescendant(),to(e,69).disabled,to(e,69).errorState,to(e,69).required,to(e,69).empty])})}function bA(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-addpoint",[],null,null,null,vA,mA)),fo(1,114688,null,0,WR,[kd,qR,Gv,vb,HR,Uv],null,null)],function(t,e){t(e,1,0)},null)}var wA=Ur("app-addpoint",WR,bA,{},{pointEvent:"pointEvent"},[]);function CA(t){throw Error("A drawer was already declared for 'position=\""+t+"\"'")}var xA=new yt("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),EA=function(t){function e(e,n,i,r,o){var s=t.call(this,i,r,o)||this;return s._changeDetectorRef=e,s._container=n,s}return r(e,t),e.prototype.ngAfterContentInit=function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})},e}(sv),SA=function(){function t(t,e,n,i,r,o){var s=this;this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=i,this._ngZone=r,this._doc=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._autoFocus=!0,this._animationStarted=new F,this._animationEnd=new F,this._animationState="void",this.openedChange=new ke(!0),this._destroyed=new F,this.onPositionChanged=new ke,this._modeChanged=new F,this._opened=!1,this.openedChange.subscribe(function(t){t?(s._doc&&(s._elementFocusedBeforeDrawerWasOpened=s._doc.activeElement),s._isFocusTrapEnabled&&s._focusTrap&&s._trapFocus()):s._restoreFocus()}),this._ngZone.runOutsideAngular(function(){bm(s._elementRef.nativeElement,"keydown").pipe(aa(function(t){return t.keyCode===lf&&!s.disableClose}),wm(s._destroyed)).subscribe(function(t){return s._ngZone.run(function(){s.close(),t.stopPropagation()})})}),this._animationEnd.pipe(Q_(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&s.openedChange.emit(s._opened)})}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(t){this._mode=t,this._modeChanged.next()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoFocus",{get:function(){return this._autoFocus},set:function(t){this._autoFocus=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_openedStream",{get:function(){return this.openedChange.pipe(aa(function(t){return t}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"openedStart",{get:function(){return this._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_closedStream",{get:function(){return this.openedChange.pipe(aa(function(t){return!t}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"closedStart",{get:function(){return this._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState&&"void"===t.toState}),Y(function(){}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),t.prototype._trapFocus=function(){var t=this;this.autoFocus&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})},t.prototype._restoreFocus=function(){if(this.autoFocus){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeDrawerWasOpened instanceof HTMLElement?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur()),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null}},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this._isFocusTrapEnabled},t.prototype.ngAfterContentChecked=function(){this._platform.isBrowser&&(this._enableAnimations=!0)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()},Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(Hd(t))},enumerable:!0,configurable:!0}),t.prototype.open=function(t){return this.toggle(!0,t)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t,e){var n=this;return void 0===t&&(t=!this.opened),void 0===e&&(e="program"),this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=e):(this._animationState="void",this._restoreFocus()),this._focusTrap&&(this._focusTrap.enabled=this._isFocusTrapEnabled),new Promise(function(t){n.openedChange.pipe(Ra(1)).subscribe(function(e){return t(e?"open":"close")})})},Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0},enumerable:!0,configurable:!0}),t}(),TA=function(){function t(t,e,n,i,r,o,s){void 0===r&&(r=!1);var a=this;this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=i,this._animationMode=o,this.backdropClick=new ke,this._destroyed=new F,this._doCheckSubject=new F,this._contentMargins={left:null,right:null},this._contentMarginChanges=new F,t&&t.change.pipe(wm(this._destroyed)).subscribe(function(){a._validateDrawers(),a._updateContentMargins()}),s&&s.change().pipe(wm(this._destroyed)).subscribe(function(){return a._updateContentMargins()}),this._autosize=r}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autosize",{get:function(){return this._autosize},set:function(t){this._autosize=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollable",{get:function(){return this._userContent||this._content},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._drawers.changes.pipe(af(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t._updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._doCheckSubject.pipe(ff(10),wm(this._destroyed)).subscribe(function(){return t._updateContentMargins()})},t.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._destroyed.next(),this._destroyed.complete()},t.prototype.open=function(){this._drawers.forEach(function(t){return t.open()})},t.prototype.close=function(){this._drawers.forEach(function(t){return t.close()})},t.prototype.ngDoCheck=function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})},t.prototype._watchDrawerToggle=function(t){var e=this;t._animationStarted.pipe(aa(function(t){return t.fromState!==t.toState}),wm(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e._updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(wm(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})},t.prototype._watchDrawerPosition=function(t){var e=this;t&&t.onPositionChanged.pipe(wm(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.asObservable().pipe(Ra(1)).subscribe(function(){e._validateDrawers()})})},t.prototype._watchDrawerMode=function(t){var e=this;t&&t._modeChanged.pipe(wm(rt(this._drawers.changes,this._destroyed))).subscribe(function(){e._updateContentMargins(),e._changeDetectorRef.markForCheck()})},t.prototype._setContainerClass=function(t){t?this._element.nativeElement.classList.add("mat-drawer-opened"):this._element.nativeElement.classList.remove("mat-drawer-opened")},t.prototype._validateDrawers=function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?(null!=t._end&&CA("end"),t._end=e):(null!=t._start&&CA("start"),t._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)},t.prototype._isPushed=function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalDrawer()},t.prototype._closeModalDrawer=function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t.close()})},t.prototype._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)},t.prototype._canHaveBackdrop=function(t){return"side"!==t.mode||!!this._backdropOverride},t.prototype._isDrawerOpen=function(t){return null!=t&&t.opened},t.prototype._updateContentMargins=function(){var t=this,e=0,n=0;if(this._left&&this._left.opened&&("side"==this._left.mode?e+=this._left._width:"push"==this._left.mode&&(e+=i=this._left._width,n-=i)),this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._width;else if("push"==this._right.mode){var i;n+=i=this._right._width,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))},t}(),IA=function(t){function e(e,n,i,r,o){return t.call(this,e,n,i,r,o)||this}return r(e,t),e}(EA),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._fixedInViewport=!1,e._fixedTopGap=0,e._fixedBottomGap=0,e}return r(e,t),Object.defineProperty(e.prototype,"fixedInViewport",{get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedTopGap",{get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=qd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedBottomGap",{get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=qd(t)},enumerable:!0,configurable:!0}),e}(SA),RA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(TA),kA=function(){return function(){}}(),PA=Qi({encapsulation:2,styles:[],data:{}});function AA(t){return Go(2,[Fo(null,0)],null,null)}var LA=Qi({encapsulation:2,styles:[],data:{animation:[{type:7,name:"transform",definitions:[{type:0,name:"open, open-instant",styles:{type:6,styles:{transform:"none",visibility:"visible"},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{"box-shadow":"none",visibility:"hidden"},offset:null},options:void 0},{type:1,expr:"void => open-instant",animation:{type:4,styles:null,timings:"0ms"},options:null},{type:1,expr:"void <=> open, open-instant => void",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function DA(t){return Go(2,[(t()(),Sr(0,0,null,null,1,"div",[["class","mat-drawer-inner-container"]],null,null,null,null,null)),Fo(null,0)],null,null)}var FA=Qi({encapsulation:2,styles:[".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-opened{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:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:background-color,visibility}@media (-ms-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:.4s;transition-timing-function:cubic-bezier(.25,.8,.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)}@media (-ms-high-contrast:active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media (-ms-high-contrast:active){.mat-drawer.mat-drawer-end,[dir=rtl] .mat-drawer{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}"],data:{}});function MA(t){return Go(0,[(t()(),Sr(0,0,null,null,0,"div",[["class","mat-drawer-backdrop"]],[[2,"mat-drawer-shown",null]],[[null,"click"]],function(t,e,n){var i=!0;return"click"===e&&(i=!1!==t.component._onBackdropClicked()&&i),i},null,null))],null,function(t,e){t(e,0,0,e.component._isShowingBackdrop())})}function NA(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"mat-sidenav-content",[["cdkScrollable",""],["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,AA,PA)),fo(1,212992,null,0,sv,[Ee,ov,Fn,[2,Mm]],null,null),fo(2,1294336,null,0,IA,[ai,RA,Ee,ov,Fn],null,null),Fo(0,2)],function(t,e){t(e,1,0),t(e,2,0)},function(t,e){t(e,0,0,to(e,2)._container._contentMargins.left,to(e,2)._container._contentMargins.right)})}function jA(t){return Go(2,[ko(402653184,1,{_userContent:0}),(t()(),Er(16777216,null,null,1,null,MA)),fo(2,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),Fo(null,0),Fo(null,1),(t()(),Er(16777216,null,null,1,null,NA)),fo(6,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,2,0,n.hasBackdrop),t(e,6,0,!n._content)},null)}var VA=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._platform=n,r._document=i,r}return r(e,t),e.prototype.ngAfterViewInit=function(){var t=this;De()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return!(!t.textContent||!t.textContent.trim())})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(Bf(function(){return function(t){this._elementRef=t}}())),zA=function(){return function(){}}(),BA=Qi({encapsulation:2,styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function GA(t){return Go(2,[Fo(null,0),Fo(null,1)],null,null)}function UA(t,e){void 0===e&&(e=df);var n,i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new HA(i,e))}}var HA=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new qA(t,this.delay,this.scheduler))},t}(),qA=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new WA(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(iv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(iv.createComplete()),this.unsubscribe()},e}(x),WA=function(){return function(t,e){this.time=t,this.notification=e}}(),YA=new yt("MAT_MENU_PANEL"),KA=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=i,o._parentMenu=r,o.role="menuitem",o._hovered=new F,o._highlighted=!1,o._triggersSubmenu=!1,i&&i.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(o),o._document=n,o}return r(e,t),e.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t):this._getHostElement().focus()},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Hd(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach(function(t){e._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(function(t){e._classList[t]=!0}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new Sf(this._items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.closed.emit("tab")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._itemChanges.pipe(af(this._items),La(function(t){return rt.apply(void 0,t.map(function(t){return t._hovered}))}))},t.prototype._handleKeydown=function(t){var e=t.keyCode;switch(e){case lf:this.closed.emit("keydown");break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||this._keyManager.setFocusOrigin("keyboard"),this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(Ra(1)).subscribe(function(){return e._keyManager.setFocusOrigin(t).setFirstItemActive()}):this._keyManager.setFocusOrigin(t).setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(4+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.addItem=function(t){-1===this._items.indexOf(t)&&(this._items.push(t),this._itemChanges.next(this._items))},t.prototype.removeItem=function(t){var e=this._items.indexOf(t);this._items.indexOf(t)>-1&&(this._items.splice(e,1),this._itemChanges.next(this._items))},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t}(),QA=new yt("mat-menu-scroll-strategy");function JA(t){return function(){return t.scrollStrategies.reposition()}}var $A=ef({passive:!0}),tL=function(){function t(t,e,n,i,r,o,s,a){var l=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=o,this._dir=s,this._focusMonitor=a,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=g.EMPTY,this._hoverSubscription=g.EMPTY,this._menuCloseSubscription=g.EMPTY,this._handleTouchStart=function(){return l._openedBy="touch"},this._openedBy=null,this.menuOpened=new ke,this.onMenuOpen=this.menuOpened,this.menuClosed=new ke,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,$A),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe(function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)})))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,$A),this._cleanUpSubscriptions(),this._closingActionsSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof ZA&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t):this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof ZA?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(aa(function(t){return"void"===t.toState}),Ra(1),wm(e.lazyContent._attached)).subscribe(function(){return e.lazyContent.detach()},void 0,function(){t._resetMenu()}):this._resetMenu()):(this._resetMenu(),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus(),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new yv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],i=e[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=r[0],s=r[1],a=[o,s],l=a[0],u=a[1],c=[n,i],h=c[0],p=c[1],d=0;this.triggersSubmenu()?(p=n="before"===this.menu.xPosition?"start":"end",i=h="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===s?"bottom":"top"),t.withPositions([{originX:n,originY:l,overlayX:h,overlayY:o,offsetY:d},{originX:i,originY:l,overlayX:p,overlayY:o,offsetY:d},{originX:n,originY:u,overlayX:h,overlayY:s,offsetY:-d},{originX:i,originY:u,overlayX:p,overlayY:s,offsetY:-d}])},t.prototype._cleanUpSubscriptions=function(){this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return rt(e,this._parentMenu?this._parentMenu.closed:ta(),this._parentMenu?this._parentMenu._hovered().pipe(aa(function(e){return e!==t._menuItemInstance}),aa(function(){return t._menuOpen})):ta(),n)},t.prototype._handleMousedown=function(t){Mf(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(aa(function(e){return e===t._menuItemInstance&&!e.disabled}),UA(0,Z_)).subscribe(function(){t._openedBy="mouse",t.menu instanceof ZA&&t.menu._isAnimating?t.menu._animationDone.pipe(Ra(1),UA(0,Z_),wm(t._parentMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new z_(this.menu.templateRef,this._viewContainerRef)),this._portal},t}(),eL=function(){return function(){}}(),nL=Qi({encapsulation:2,styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0}.mat-menu-panel.ng-animating{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}@media (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],data:{animation:[{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null},options:void 0},{type:1,expr:"void => enter",animation:{type:3,steps:[{type:11,selector:".mat-menu-content",animation:{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"100ms linear"},options:null},{type:4,styles:{type:6,styles:{transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"}],options:null},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function iL(t){return Go(0,[(t()(),Sr(0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.start"],[null,"@transformMenu.done"]],function(t,e,n){var i=!0,r=t.component;return"keydown"===e&&(i=!1!==r._handleKeydown(n)&&i),"click"===e&&(i=!1!==r.closed.emit("click")&&i),"@transformMenu.start"===e&&(i=!1!==r._onAnimationStart(n)&&i),"@transformMenu.done"===e&&(i=!1!==r._onAnimationDone(n)&&i),i},null,null)),fo(1,278528,null,0,ll,[Ei,Si,Ee,Oe],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Sr(2,0,null,null,1,"div",[["class","mat-menu-content"]],null,null,null,null,null)),Fo(null,0)],function(t,e){t(e,1,0,"mat-menu-panel",e.component._classList)},function(t,e){t(e,0,0,e.component._panelAnimationState)})}function rL(t){return Go(2,[ko(402653184,1,{templateRef:0}),(t()(),Er(0,[[1,2]],null,0,null,iL))],null,null)}var oL=Qi({encapsulation:2,styles:[],data:{}});function sL(t){return Go(2,[Fo(null,0),(t()(),Sr(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fo(2,212992,null,0,am,[Ee,Fn,Qd,[2,sm],[2,r_]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(t,e){t(e,1,0,to(e,2).unbounded)})}var aL=function(){function t(t,e,n,i){this.userService=t,this.sidenavService=e,this.router=n,this.authService=i,this.isLoggedIn=!1}return t.prototype.ngOnInit=function(){},t.prototype.showSideContent=function(t){this.sidenavService.openSidenav(),this.router.navigate([{outlets:{side:[t]}}])},t.prototype.checkLogin=function(){return this.authService.isLoggedIn},t.prototype.logout=function(){this.authService.logout()},t}(),lL=Qi({encapsulation:0,styles:[[".toolbar[_ngcontent-%COMP%]{color:primary}.sidenav[_ngcontent-%COMP%]{width:100%;height:100%}mat-icon[_ngcontent-%COMP%]{font-size:25px;color:#f8f8ff}"]],data:{}});function uL(t){return Go(0,[(t()(),Sr(0,16777216,null,null,3,"mat-icon",[["class","mat-icon notranslate"],["matTooltip","Menu"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],[[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),i},gk,mk)),fo(1,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Vo(-1,0,["menu"])),(t()(),Er(0,null,null,0))],function(t,e){t(e,1,0),t(e,2,0,"Menu")},function(t,e){t(e,0,0,to(e,1).inline,"primary"!==to(e,1).color&&"accent"!==to(e,1).color&&"warn"!==to(e,1).color)})}function cL(t){return Go(0,[(t()(),Sr(0,0,null,null,5,"span",[],null,null,null,null,null)),(t()(),Sr(1,16777216,null,null,4,"a",[["matTooltip","Logout"]],null,[[null,"click"],[null,"longpress"],[null,"keydown"],[null,"touchend"]],function(t,e,n){var i=!0,r=t.component;return"longpress"===e&&(i=!1!==to(t,2).show()&&i),"keydown"===e&&(i=!1!==to(t,2)._handleKeydown(n)&&i),"touchend"===e&&(i=!1!==to(t,2)._handleTouchend()&&i),"click"===e&&(i=!1!==r.logout()&&i),i},null,null)),fo(2,147456,null,0,Ck,[Pv,Ee,ov,si,Fn,Qd,Cf,Ff,vk,[2,Mm],[2,wk],[2,Cu]],{message:[0,"message"]},null),(t()(),Sr(3,0,null,null,2,"mat-icon",[["class","mat-icon notranslate"],["role","img"]],[[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,gk,mk)),fo(4,9158656,null,0,dk,[Ee,ok,[8,null],[2,uk]],null,null),(t()(),Vo(-1,0,["exit_to_app"]))],function(t,e){t(e,2,0,"Logout"),t(e,4,0)},function(t,e){t(e,3,0,to(e,4).inline,"primary"!==to(e,4).color&&"accent"!==to(e,4).color&&"warn"!==to(e,4).color)})}function hL(t){return Go(0,[(t()(),Sr(0,0,null,null,27,"mat-toolbar",[["class","mat-toolbar"],["color","primary"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,GA,BA)),fo(1,4243456,null,1,VA,[Ee,Qd,Sl],{color:[0,"color"]},null),ko(603979776,1,{_toolbarRows:1}),(t()(),Sr(3,0,null,0,21,"span",[],null,null,null,null,null)),(t()(),Sr(4,16777216,null,null,3,"a",[["aria-haspopup","true"]],[[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(t,e,n){var i=!0;return"mousedown"===e&&(i=!1!==to(t,5)._handleMousedown(n)&&i),"keydown"===e&&(i=!1!==to(t,5)._handleKeydown(n)&&i),"click"===e&&(i=!1!==to(t,5)._handleClick(n)&&i),i},null,null)),fo(5,1196032,null,0,tL,[Pv,Ee,si,QA,[2,ZA],[8,null],[2,Mm],Ff],{menu:[0,"menu"]},null),(t()(),Er(16777216,null,null,1,null,uL)),fo(7,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null),(t()(),Sr(8,0,null,null,16,"mat-menu",[],null,null,null,rL,nL)),fo(9,1294336,[["menu",4]],2,ZA,[Ee,Fn,XA],null,null),ko(603979776,2,{items:1}),ko(335544320,3,{lazyContent:0}),mo(2048,null,YA,null,[ZA]),(t()(),Sr(13,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,14)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,14)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("user")&&i),i},sL,oL)),fo(14,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(15,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Utente"])),(t()(),Sr(17,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,18)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,18)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("legenda")&&i),i},sL,oL)),fo(18,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(19,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Legenda"])),(t()(),Sr(21,0,null,0,3,"button",[["class","mat-menu-item"],["mat-menu-item",""]],[[1,"role",0],[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var i=!0,r=t.component;return"click"===e&&(i=!1!==to(t,22)._checkDisabled(n)&&i),"mouseenter"===e&&(i=!1!==to(t,22)._handleMouseEnter()&&i),"click"===e&&(i=!1!==r.showSideContent("istruzioni")&&i),i},sL,oL)),fo(22,180224,[[2,4]],0,KA,[Ee,Sl,Ff,[2,YA]],null,null),(t()(),Sr(23,0,null,0,1,"span",[],null,null,null,null,null)),(t()(),Vo(-1,null,["Istruzioni"])),(t()(),Sr(25,0,null,0,0,"span",[["class","fill-space"]],null,null,null,null,null)),(t()(),Er(16777216,null,0,1,null,cL)),fo(27,16384,null,0,pl,[si,Pe],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,"primary"),t(e,5,0,to(e,9)),t(e,7,0,!0===n.checkLogin()),t(e,9,0),t(e,27,0,!0===n.checkLogin())},function(t,e){t(e,0,0,to(e,1)._toolbarRows.length>0,0===to(e,1)._toolbarRows.length),t(e,4,0,to(e,5).menuOpen||null),t(e,13,0,to(e,14).role,to(e,14)._highlighted,to(e,14)._triggersSubmenu,to(e,14)._getTabIndex(),to(e,14).disabled.toString(),to(e,14).disabled||null),t(e,17,0,to(e,18).role,to(e,18)._highlighted,to(e,18)._triggersSubmenu,to(e,18)._getTabIndex(),to(e,18).disabled.toString(),to(e,18).disabled||null),t(e,21,0,to(e,22).role,to(e,22)._highlighted,to(e,22)._triggersSubmenu,to(e,22)._getTabIndex(),to(e,22).disabled.toString(),to(e,22).disabled||null)})}var pL=function(){function t(t,e){this.router=t,this.sidenavService=e,this.utenteComponentRef="utente",this.legendaComponentRef="legenda",this.altroComponentRef="altro",this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1}}return t.prototype.ngOnInit=function(){this.sidenavService.setMatSidenav(this.sidenav)},t}(),dL=Qi({encapsulation:0,styles:[[".container[_ngcontent-%COMP%], .main-content[_ngcontent-%COMP%]{width:100%;height:100%}.side-content[_ngcontent-%COMP%]{width:35%!important;text-align:center}"]],data:{}});function fL(t){return Go(0,[ko(402653184,1,{sidenav:0}),(t()(),Sr(1,0,null,null,13,"mat-sidenav-container",[["class","mat-drawer-container mat-sidenav-container"],["fullscreen",""]],[[2,"mat-drawer-container-explicit-backdrop",null]],null,null,jA,FA)),fo(2,1490944,null,2,RA,[[2,Mm],Ee,Fn,ai,xA,[2,r_],[2,lv]],null,null),ko(603979776,2,{_drawers:1}),ko(335544320,3,{_content:0}),(t()(),Sr(5,0,null,0,3,"mat-sidenav",[["class","side-content mat-drawer mat-sidenav"],["mode","over"],["tabIndex","-1"]],[[40,"@transform",0],[1,"align",0],[2,"mat-drawer-end",null],[2,"mat-drawer-over",null],[2,"mat-drawer-push",null],[2,"mat-drawer-side",null],[2,"mat-sidenav-fixed",null],[4,"top","px"],[4,"bottom","px"]],[["component","@transform.start"],["component","@transform.done"]],function(t,e,n){var i=!0;return"component:@transform.start"===e&&(i=!1!==to(t,6)._animationStarted.next(n)&&i),"component:@transform.done"===e&&(i=!1!==to(t,6)._animationEnd.next(n)&&i),i},DA,LA)),fo(6,3325952,[[2,4],[1,4],["sidenav",4]],0,OA,[Ee,kf,Ff,Qd,Fn,[2,Sl]],{mode:[0,"mode"]},null),(t()(),Sr(7,16777216,null,0,1,"router-outlet",[["name","side"]],null,null,null,null,null)),fo(8,212992,null,0,ep,[tp,si,de,[8,"side"],ai],null,null),(t()(),Sr(9,0,null,1,5,"mat-sidenav-content",[["class","mat-drawer-content mat-sidenav-content"]],[[4,"margin-left","px"],[4,"margin-right","px"]],null,null,AA,PA)),fo(10,1294336,[[3,4]],0,IA,[ai,RA,Ee,ov,Fn],null,null),(t()(),Sr(11,0,null,0,1,"app-toolbar",[],null,null,null,hL,lL)),fo(12,114688,null,0,aL,[Uk,LP,Jh,$b],null,null),(t()(),Sr(13,16777216,null,0,1,"router-outlet",[],null,null,null,null,null)),fo(14,212992,null,0,ep,[tp,si,de,[8,null],ai],null,null)],function(t,e){t(e,2,0),t(e,6,0,"over"),t(e,8,0),t(e,10,0),t(e,12,0),t(e,14,0)},function(t,e){t(e,1,0,to(e,2)._backdropOverride),t(e,5,0,to(e,6)._animationState,null,"end"===to(e,6).position,"over"===to(e,6).mode,"push"===to(e,6).mode,"side"===to(e,6).mode,to(e,6).fixedInViewport,to(e,6).fixedInViewport?to(e,6).fixedTopGap:null,to(e,6).fixedInViewport?to(e,6).fixedBottomGap:null),t(e,9,0,to(e,10)._container._contentMargins.left,to(e,10)._container._contentMargins.right)})}var mL=Qi({encapsulation:0,styles:[[""]],data:{}});function gL(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-home",[],null,null,null,fL,dL)),fo(1,114688,null,0,pL,[Jh,LP],null,null)],function(t,e){t(e,1,0)},null)}function yL(t){return Go(0,[(t()(),Sr(0,0,null,null,1,"app-root",[],null,[["window","beforeunload"]],function(t,e,n){var i=!0;return"window:beforeunload"===e&&(i=!1!==to(t,1).beforeUnloadHander(n)&&i),i},gL,mL)),fo(1,49152,null,0,$s,[],null,null)],null,null)}var _L=Ur("app-root",$s,yL,{},{},[]),vL=function(){function t(t){this.modalService=t}return t.prototype.intercept=function(t,e){var n=localStorage.getItem(nw.tokenName);if(null!=n){var i=(new xb).append(nw.tokenName,n);console.log(i);var r=t.clone({headers:i});return this.handleRequest(r,e)}return this.handleRequest(t,e)},t.prototype.setHeaders=function(t,e){return t.clone({headers:e}),t},t.prototype.handleRequest=function(t,e){var n=this;return e.handle(t).pipe(Ta(function(t){var e;if(t.error instanceof ErrorEvent)e=t.error.message;else{var i=t;null!==(e=null!==i.error&&void 0!==i.error.message?i.error.message:403===i.status||401===i.status?"Credenziali di accesso non valide":"Errore durante l'operazione. Ritentare o contattare l'assistenza")&&""!==e.trim()&&n.modalService.openMessageAlert(bb,new eb(e,"red-snackbar")),i.url.endsWith("login")&&null!==localStorage.getItem(nw.tokenName)&&localStorage.removeItem(nw.tokenName)}throw e}))},t.ngInjectableDef=mt({factory:function(){return new t(ee(vb))},token:t,providedIn:"root"}),t}(),bL=function(){function t(t){this.authService=t}return t.prototype.canActivate=function(t,e){return this.authService.checkLogin()},t.prototype.canLoad=function(t,e){return this.authService.checkLogin()},t.ngInjectableDef=mt({factory:function(){return new t(ee($b))},token:t,providedIn:"root"}),t}(),wL=function(){return function(){}}(),CL=function(){return function(){}}(),xL=function(){return function(){}}(),EL=function(){return function(){}}(),SL=function(){return function(){}}(),TL=function(){return function(){}}(),IL=function(){return function(){}}(),OL=function(){return function(){}}(),RL=function(){return function(){}}(),kL=function(){return function(){}}(),PL=function(){return function(){}}(),AL=function(){return function(){}}(),LL=function(){return function(){}}(),DL=function(){return function(){}}(),FL=Xs(Js,[$s],function(t){return function(t){for(var e={},n=[],i=!1,r=0;r",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==Z.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return O.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),t.__load_patch=function(a,i){if(Z.hasOwnProperty(a)){if(o)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var s="Zone:"+a;n(s),Z[a]=i(e,t,z),r(s,s)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{O=O.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{O=O.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state!==m||e.type!==D&&e.type!==S){var r=e.state!=b;r&&e._transitionTo(b,_),e.runCount++;var o=P;P=e,O={parent:O,zone:this};try{e.type==S&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==m&&e.state!==w&&(e.type==D||e.data&&e.data.isPeriodic?r&&e._transitionTo(_,b):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(m,b,m))),O=O.parent,P=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(k,m);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(w,k,m),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(_,k),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new l(E,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new l(S,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new l(D,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(T,_,b);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,T),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(m,T),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),l=function(){function t(n,r,o,a,i,s){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=i,this.cancelFn=s,this.callback=o;var c=this;this.invoke=n===D&&a&&a.useG?t.invokeTask:function(){return t.invokeTask.call(e,c,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),C++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==C&&g(),C--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(m,k)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==m&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),u=I("setTimeout"),f=I("Promise"),p=I("then"),h=[],d=!1;function v(t){if(0===C&&0===h.length)if(a||e[f]&&(a=e[f].resolve(0)),a){var n=a[p];n||(n=a.then),n.call(a,g)}else e[u](g,0);t&&h.push(t)}function g(){if(!d){for(d=!0;h.length;){var e=h;h=[];for(var t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Zone.__load_patch("ZoneAwarePromise",function(t,n,r){var o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,i=r.symbol,s=[],c=i("Promise"),l=i("then"),u="__creationTrace__";r.onUnhandledError=function(e){if(r.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},r.microtaskDrainDone=function(){for(;s.length;)for(var e=function(){var e=s.shift();try{e.zone.runGuarded(function(){throw e})}catch(t){p(t)}};s.length;)e()};var f=i("unhandledPromiseRejectionHandler");function p(e){r.onUnhandledError(e);try{var t=n[f];t&&"function"==typeof t&&t.call(this,e)}catch(o){}}function h(e){return e&&e.then}function d(e){return e}function v(e){return M.reject(e)}var g=i("state"),y=i("value"),m=i("finally"),k=i("parentPromiseValue"),_=i("parentPromiseState"),b="Promise.then",T=null,w=!0,E=!1,S=0;function D(e,t){return function(n){try{P(e,t,n)}catch(r){P(e,!1,r)}}}var Z=function(){var e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},z="Promise resolved with itself",O=i("currentTaskTrace");function P(e,t,o){var i,c=Z();if(e===o)throw new TypeError(z);if(e[g]===T){var l=null;try{"object"!=typeof o&&"function"!=typeof o||(l=o&&o.then)}catch(v){return c(function(){P(e,!1,v)})(),e}if(t!==E&&o instanceof M&&o.hasOwnProperty(g)&&o.hasOwnProperty(y)&&o[g]!==T)j(o),P(e,o[g],o[y]);else if(t!==E&&"function"==typeof l)try{l.call(o,c(D(e,t)),c(D(e,!1)))}catch(v){c(function(){P(e,!1,v)})()}else{e[g]=t;var f=e[y];if(e[y]=o,e[m]===m&&t===w&&(e[g]=e[_],e[y]=e[k]),t===E&&o instanceof Error){var p=n.currentTask&&n.currentTask.data&&n.currentTask.data[u];p&&a(o,O,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h1?c[1]:null,h=p&&p.signal;return new Promise(function(p,d){var v=t.current.scheduleMacroTask("fetch",f,c,function(){var s,l=t.current;try{l[i]=!0,s=r.apply(e,c)}catch(f){return void d(f)}finally{l[i]=!1}if(!(s instanceof o)){var u=s.constructor;u[a]||n.patchThen(u)}s.then(function(e){"notScheduled"!==v.state&&v.invoke(),p(e)},function(e){"notScheduled"!==v.state&&v.invoke(),d(e)})},function(){if(l)if(h&&h.abortController&&!h.aborted&&"function"==typeof h.abortController.abort&&u)try{t.current[s]=!0,u.call(h.abortController)}finally{t.current[s]=!1}else d("cancel fetch need a AbortController.signal");else d("No AbortController supported, can not cancel fetch")});h&&h.abortController&&(h.abortController.task=v)})}}});var t=Object.getOwnPropertyDescriptor,n=Object.defineProperty,r=Object.getPrototypeOf,o=Object.create,a=Array.prototype.slice,i="addEventListener",s="removeEventListener",c=Zone.__symbol__(i),l=Zone.__symbol__(s),u="true",f="false",p="__zone_symbol__";function h(e,t){return Zone.current.wrap(e,t)}function d(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var v=Zone.__symbol__,g="undefined"!=typeof window,y=g?window:void 0,m=g&&y||"object"==typeof self&&self||global,k="removeAttribute",_=[null];function b(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function T(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var w="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,E=!("nw"in m)&&void 0!==m.process&&"[object process]"==={}.toString.call(m.process),S=!E&&!w&&!(!g||!y.HTMLElement),D=void 0!==m.process&&"[object process]"==={}.toString.call(m.process)&&!w&&!(!g||!y.HTMLElement),Z={},z=function(e){if(e=e||m.event){var t=Z[e.type];t||(t=Z[e.type]=v("ON_PROPERTY"+e.type));var n,r=this||e.target||m,o=r[t];return S&&r===y&&"error"===e.type?!0===(n=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null==(n=o&&o.apply(this,arguments))||n||e.preventDefault(),n}};function O(e,r,o){var a=t(e,r);if(!a&&o&&t(o,r)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){var i=v("on"+r+"patched");if(!e.hasOwnProperty(i)||!e[i]){delete a.writable,delete a.value;var s=a.get,c=a.set,l=r.substr(2),u=Z[l];u||(u=Z[l]=v("ON_PROPERTY"+l)),a.set=function(t){var n=this;n||e!==m||(n=m),n&&(n[u]&&n.removeEventListener(l,z),c&&c.apply(n,_),"function"==typeof t?(n[u]=t,n.addEventListener(l,z,!1)):n[u]=null)},a.get=function(){var t=this;if(t||e!==m||(t=m),!t)return null;var n=t[u];if(n)return n;if(s){var o=s&&s.call(this);if(o)return a.set.call(this,o),"function"==typeof t[k]&&t.removeAttribute(r),o}return null},n(e,r,a),e[i]=!0}}}function P(e,t,n){if(t)for(var r=0;r1?new r(e,n):new r(e),f=t(u,"onmessage");return f&&!1===f.configurable?(c=o(u),l=u,[i,s,"send","close"].forEach(function(e){c[e]=function(){var t=a.call(arguments);if(e===i||e===s){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);u[r]=c[r]}}return u[e].apply(u,t)}})):c=u,P(c,["close","error","message","open"],l),c};var c=n.WebSocket;for(var l in r)c[l]=r[l]}(0,c)}}var ge=v("unbound");function ye(e,n,r,o){var a=Zone.__symbol__(r);if(!e[a]){var i=e[a]=e[r];e[r]=function(a,s,c){return s&&s.prototype&&o.forEach(function(e){var o,a,i,c,l=n+"."+r+"::"+e,u=s.prototype;if(u.hasOwnProperty(e)){var f=t(u,e);f&&f.value?(f.value=h(f.value,l),c=(i=f).configurable,re(o=s.prototype,a=e,i=ne(o,a,i),c)):u[e]&&(u[e]=h(u[e],l))}else u[e]&&(u[e]=h(u[e],l))}),i.call(e,a,s,c)},L(e[r],i)}}Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=P,n.patchMethod=M,n.bindArguments=b}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?d(r.name,n[r.cbIdx],r,a):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(u){var f=XMLHttpRequest.prototype,p=f[c],h=f[l];if(!p){var g=e.XMLHttpRequestEventTarget;if(g){var y=g.prototype;p=y[c],h=y[l]}}var m="readystatechange",k="scheduled";function _(e){var t=e.data,r=t.target;r[a]=!1,r[s]=!1;var i=r[o];p||(p=r[c],h=r[l]),i&&h.call(r,m,i);var u=r[o]=function(){if(r.readyState===r.DONE)if(!t.aborted&&r[a]&&e.state===k){var n=r.__zone_symbol__loadfalse;if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=r.__zone_symbol__loadfalse,a=0;a.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){color:rgba(0,0,0,.38)}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:rgba(0,0,0,.04)}.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:rgba(0,0,0,.18)}.mat-calendar-body-selected{background-color:#4caf50;color:rgba(0,0,0,.87)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(76,175,80,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.mat-datepicker-content{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);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ffc107;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,193,7,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px rgba(0,0,0,.87)}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#ff5722;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,87,34,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#4caf50}.mat-datepicker-toggle-active.mat-accent{color:#ffc107}.mat-datepicker-toggle-active.mat-warn{color:#ff5722}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){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)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused,.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator::after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#4caf50}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ffc107}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#ff5722}.mat-focused .mat-form-field-required-marker{color:#ffc107}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#4caf50}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ffc107}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#ff5722}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix::after{color:#4caf50}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix::after{color:#ffc107}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix::after,.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent{color:#ff5722}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#ff5722}.mat-error{color:#ff5722}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em;background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(to right,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline::before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline::before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#4caf50}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ffc107}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#ff5722}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#4caf50}.mat-icon.mat-accent{color:#ffc107}.mat-icon.mat-warn{color:#ff5722}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix::after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#4caf50}.mat-input-element::-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-accent .mat-input-element{caret-color:#ffc107}.mat-form-field-invalid .mat-input-element,.mat-warn .mat-input-element{caret-color:#ff5722}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix::after{color:#ff5722}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{font-family:Roboto,"Helvetica Neue",sans-serif;font-size:14px;font-weight:500;color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){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)}.mat-menu-item{background:0 0;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled]::after{color:rgba(0,0,0,.38)}.mat-menu-item .mat-icon-no-color,.mat-menu-item-submenu-trigger::after{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-progress-bar-background{fill:#c8e6c9}.mat-progress-bar-buffer{background-color:#c8e6c9}.mat-progress-bar-fill::after{background-color:#4caf50}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#ffecb3}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#ffecb3}.mat-progress-bar.mat-accent .mat-progress-bar-fill::after{background-color:#ffc107}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#ffccbc}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#ffccbc}.mat-progress-bar.mat-warn .mat-progress-bar-fill::after{background-color:#ff5722}.mat-progress-spinner circle,.mat-spinner circle{stroke:#4caf50}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ffc107}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#ff5722}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#4caf50}.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#4caf50}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ffc107}.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ffc107}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#ff5722}.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#ff5722}.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){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)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#4caf50}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ffc107}.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow,.mat-form-field.mat-focused.mat-warn .mat-select-arrow{color:#ff5722}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{background-color:#fff;color:rgba(0,0,0,.87)}.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end,[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ffc107}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,193,7,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ffc107}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#4caf50}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(76,175,80,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#4caf50}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#ff5722}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,87,34,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#ff5722}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{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);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#4caf50}.mat-primary .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ffc107}.mat-accent .mat-slider-thumb-label-text{color:rgba(0,0,0,.87)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#ff5722}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-slider-focus-ring{background-color:rgba(255,193,7,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill,.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper::after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(to right,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(to bottom,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:0 0}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:rgba(0,0,0,.87)}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#4caf50;color:rgba(0,0,0,.87)}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#ff5722}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#ff5722}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line::before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header::after,.mat-horizontal-stepper-header::before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#4caf50}.mat-tab-group.mat-primary.mat-background-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,236,179,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ffc107}.mat-tab-group.mat-accent.mat-background-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent .mat-ink-bar{background-color:rgba(0,0,0,.87)}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#ff5722}.mat-tab-group.mat-warn.mat-background-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(200,230,201,.3)}.mat-tab-group.mat-background-primary .mat-tab-header,.mat-tab-group.mat-background-primary .mat-tab-links,.mat-tab-nav-bar.mat-background-primary .mat-tab-header,.mat-tab-nav-bar.mat-background-primary .mat-tab-links{background-color:#4caf50}.mat-tab-group.mat-background-primary .mat-tab-label,.mat-tab-group.mat-background-primary .mat-tab-link,.mat-tab-nav-bar.mat-background-primary .mat-tab-label,.mat-tab-nav-bar.mat-background-primary .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-primary .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,236,179,.3)}.mat-tab-group.mat-background-accent .mat-tab-header,.mat-tab-group.mat-background-accent .mat-tab-links,.mat-tab-nav-bar.mat-background-accent .mat-tab-header,.mat-tab-nav-bar.mat-background-accent .mat-tab-links{background-color:#ffc107}.mat-tab-group.mat-background-accent .mat-tab-label,.mat-tab-group.mat-background-accent .mat-tab-link,.mat-tab-nav-bar.mat-background-accent .mat-tab-label,.mat-tab-nav-bar.mat-background-accent .mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent .mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-group.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.4)}.mat-tab-group.mat-background-accent .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent .mat-ripple-element{background-color:rgba(0,0,0,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,204,188,.3)}.mat-tab-group.mat-background-warn .mat-tab-header,.mat-tab-group.mat-background-warn .mat-tab-links,.mat-tab-nav-bar.mat-background-warn .mat-tab-header,.mat-tab-nav-bar.mat-background-warn .mat-tab-links{background-color:#ff5722}.mat-tab-group.mat-background-warn .mat-tab-label,.mat-tab-group.mat-background-warn .mat-tab-link,.mat-tab-nav-bar.mat-background-warn .mat-tab-label,.mat-tab-nav-bar.mat-background-warn .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-chevron{border-color:#fff}.mat-tab-group.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#4caf50;color:rgba(0,0,0,.87)}.mat-toolbar.mat-accent{background:#ffc107;color:rgba(0,0,0,.87)}.mat-toolbar.mat-warn{background:#ff5722;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{font-family:Roboto,"Helvetica Neue",sans-serif;background:#fff}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px;color:rgba(0,0,0,.87)}.mat-snack-bar-container{color:rgba(255,255,255,.7);background:#323232;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)}.mat-simple-snackbar-action{color:#ffc107}.green-snackbar{background-color:green}.red-snackbar{background-color:#8b0000}
\ No newline at end of file
diff --git a/src/app/app-costants.ts b/src/app/app-costants.ts
index f499fb4..1e018d9 100644
--- a/src/app/app-costants.ts
+++ b/src/app/app-costants.ts
@@ -7,6 +7,8 @@ export class AppCostants {
public static readonly ripetiPasswordFormField = 'ripetiPassword';
public static readonly usernameFormField = 'username';
+ public static readonly unselectablePointId = 'unselectable';
+
constructor () {
}
diff --git a/src/app/home/map/map.component.ts b/src/app/home/map/map.component.ts
index a08f4d4..d8fc5fa 100644
--- a/src/app/home/map/map.component.ts
+++ b/src/app/home/map/map.component.ts
@@ -27,6 +27,8 @@ import { MapService } from 'src/app/services/map.service';
import { Message } from '@angular/compiler/src/i18n/i18n_ast';
import { ReadOptions } from 'src/app/home/map/readoptions';
import { environment } from 'src/environments/environment';
+import { SearchComponent } from './search/search.component';
+import { AppCostants } from 'src/app/app-costants';
@Component({
@@ -74,7 +76,7 @@ export class MapComponent implements OnInit {
ngOnInit() {
// definisco i layers
- this.beVectSource = new VectorSource({format: this.geoJsonFormat});
+ this.beVectSource = new VectorSource({ format: this.geoJsonFormat });
this.feVectorLayer = new VectorLayer({ source: this.vectSource, style: this.markerStyle, renderBuffer: 200 });
this.beVectorLayer = new VectorLayer({ source: this.beVectSource, style: this.markerStyle });
this.feImageLayer = new ImageLayer({
@@ -106,7 +108,9 @@ export class MapComponent implements OnInit {
});
this.addEventsControlToMap();
this.addButtonOrotophoto();
- this.getBePoints();
+ this.addButtonRicerca();
+ this.addButtonExitSearch();
+ this.getBeUserPoints();
}
@@ -118,19 +122,21 @@ export class MapComponent implements OnInit {
this.map.on('click', (e: MapBrowserEvent) => {
this.map.forEachFeatureAtPixel(e.pixel, (feature: Feature) => {
console.log(feature);
- this.mapService.getLocationById(feature.getId() as number).subscribe(
- (data: VgiPoint) => {
- if (!(data instanceof Message)) {
- const dialogConf: MatDialogConfig = this.getDialogConfig(e.pixel, 'Modifica posizione', data, false);
- const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConf);
- const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe(
- () => {
- this.getBePoints();
- pointSubscription.unsubscribe();
- });
- }
- },
- );
+ if (! feature.getId().toString().startsWith(AppCostants.unselectablePointId)) {
+ this.mapService.getLocationById(feature.getId() as number).subscribe(
+ (data: VgiPoint) => {
+ if (!(data instanceof Message)) {
+ const dialogConf: MatDialogConfig = this.getDialogConfig(e.pixel, 'Modifica posizione', data, false);
+ const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConf);
+ const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe(
+ () => {
+ this.getBeUserPoints();
+ pointSubscription.unsubscribe();
+ });
+ }
+ },
+ );
+ }
}
);
}
@@ -150,30 +156,49 @@ export class MapComponent implements OnInit {
const dialogConfig: MatDialogConfig = this.getDialogConfig(pixels, 'Salva posizione', pointVgi, true);
const dialogRef: MatDialogRef = this.dialogService.openDialog(AddpointComponent, dialogConfig);
const pointSubscription = dialogRef.componentInstance.pointEvent.subscribe(() => {
- this.getBePoints();
+ this.getBeUserPoints();
pointSubscription.unsubscribe();
}
);
});
}
- getBePoints() {
+ getBeUserPoints() {
this.removeAllMarkers();
this.beVectSource.clear();
this.mapService.getUserLocations().subscribe(
(data: VgiPoint[]) => {
if (data instanceof Array) {
+ const features: Feature [] = [];
for (const point of data as VgiPoint[]) {
const feature: Feature = this.geoJsonFormat.readFeature(point.location, new ReadOptions(this.map));
feature.setStyle(this.getStyle(point.legenda.colore));
feature.setId(point.id);
- this.beVectSource.addFeature(feature);
+ features.push(feature);
}
+ this.beVectSource.addFeatures(features);
}
},
);
}
+ getSearchedPoints() {
+ this.removeAllMarkers();
+ this.beVectSource.clear();
+ const points: VgiPoint [] = this.mapService.points;
+ const features: Feature [] = [];
+ for (const point of points as VgiPoint []) {
+ const feature: Feature = this.geoJsonFormat.readFeature(point.location, new ReadOptions(this.map));
+ feature.setStyle(this.getStyle(point.legenda.colore));
+ feature.setId(AppCostants.unselectablePointId + point.id);
+ features.push(feature);
+ }
+ console.log(features);
+ console.log(this.beVectSource.getFeatures());
+ this.beVectSource.addFeatures(features);
+ console.log(this.beVectSource.getFeatures());
+ }
+
getPointById(id: number | string): VgiPoint | void {
id = id as number;
this.mapService.getLocationById(id).subscribe(
@@ -187,10 +212,10 @@ export class MapComponent implements OnInit {
fill: new OlFill({
color: color,
}),
- radius: 5,
+ radius: 3.5,
stroke: new OlStroke({
color: color,
- width: 3,
+ width: 3.5,
}),
}))
});
@@ -210,6 +235,54 @@ export class MapComponent implements OnInit {
this.map.addControl(control);
}
+
+ addButtonRicerca() {
+ const search: Element = document.createElement('button');
+ search.innerHTML = 'R';
+ // search.setAttribute('style', 'top: 60px; left: .5em;');
+ search.addEventListener('click', () => this.openSearchModal());
+ const divEl: Element = document.createElement('div');
+ divEl.setAttribute('style', 'top: 97px; left: .5em;');
+ divEl.className = 'ol-control ol-unselectable';
+ divEl.appendChild(search);
+ const control: OlControl = new OlControl({
+ element: divEl,
+ });
+ this.map.addControl(control);
+ }
+
+ addButtonExitSearch() {
+ const exit: Element = document.createElement('button');
+ exit.innerHTML = 'E';
+ // search.setAttribute('style', 'top: 60px; left: .5em;');
+ exit.addEventListener('click', () => this.getBeUserPoints());
+ const divEl: Element = document.createElement('div');
+ divEl.setAttribute('style', 'top: 129px; left: .5em;');
+ divEl.className = 'ol-control ol-unselectable';
+ divEl.appendChild(exit);
+ const control: OlControl = new OlControl({
+ element: divEl,
+ });
+ this.map.addControl(control);
+ }
+
+ openSearchModal() {
+ const dialogConfig: MatDialogConfig = new MatDialogConfig();
+ dialogConfig.autoFocus = true;
+ dialogConfig.position = {
+ top: '',
+ bottom: '',
+ left: '',
+ right: '',
+ };
+ const dialogRef: MatDialogRef = this.dialogService.openDialog(SearchComponent, dialogConfig);
+ const searchSubscription = dialogRef.componentInstance.searchCompleted.subscribe(() => {
+ this.getSearchedPoints();
+ searchSubscription.unsubscribe();
+ }
+ );
+ }
+
getPointFromLonLat(lonlat: string[]): OlPoint {
const longitude = parseFloat(lonlat[0]);
const latitude = parseFloat(lonlat[1]);
diff --git a/src/app/home/map/map.module.ts b/src/app/home/map/map.module.ts
index c20d276..1b55f0b 100644
--- a/src/app/home/map/map.module.ts
+++ b/src/app/home/map/map.module.ts
@@ -5,11 +5,13 @@ import { MapComponent } from './map.component';
import { MaterialModule } from 'src/app/material.module';
import { ReactiveFormsModule } from '@angular/forms';
import { MessageSharedModule } from 'src/app/message/message-shared.module';
+import { SearchComponent } from './search/search.component';
@NgModule({
declarations: [
MapComponent,
- AddpointComponent
+ AddpointComponent,
+ SearchComponent
],
imports: [
CommonModule,
@@ -19,6 +21,7 @@ import { MessageSharedModule } from 'src/app/message/message-shared.module';
],
entryComponents: [
AddpointComponent,
+ SearchComponent
],
})
export class MapModule { }
diff --git a/src/app/home/map/search/search.component.css b/src/app/home/map/search/search.component.css
new file mode 100644
index 0000000..c7aa05b
--- /dev/null
+++ b/src/app/home/map/search/search.component.css
@@ -0,0 +1,21 @@
+.point-form {
+ width: 100%;
+ height: 100%;
+}
+
+.modal-name {
+ font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
+ font-size: 1.5rem;
+ letter-spacing: 1px;
+ color: darkRed;
+}
+
+.search-form-container {
+ text-align: center;
+
+ display: flex;
+ justify-content: flex-start;
+ flex-direction: column;
+ width: 400px;
+ height: 400px;
+}
\ No newline at end of file
diff --git a/src/app/home/map/search/search.component.html b/src/app/home/map/search/search.component.html
new file mode 100644
index 0000000..1263b08
--- /dev/null
+++ b/src/app/home/map/search/search.component.html
@@ -0,0 +1,31 @@
+
diff --git a/src/app/home/map/search/search.component.spec.ts b/src/app/home/map/search/search.component.spec.ts
new file mode 100644
index 0000000..4372919
--- /dev/null
+++ b/src/app/home/map/search/search.component.spec.ts
@@ -0,0 +1,25 @@
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { SearchComponent } from './search.component';
+
+describe('SearchComponent', () => {
+ let component: SearchComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ SearchComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(SearchComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/home/map/search/search.component.ts b/src/app/home/map/search/search.component.ts
new file mode 100644
index 0000000..3dbe97f
--- /dev/null
+++ b/src/app/home/map/search/search.component.ts
@@ -0,0 +1,68 @@
+import { Component, OnInit, Output, EventEmitter } from '@angular/core';
+import { Legenda } from 'src/app/model/legenda';
+import { MapService } from 'src/app/services/map.service';
+import { LegendaService } from 'src/app/services/legenda.service';
+import { VgiPoint } from 'src/app/model/point';
+import { FormGroup, FormBuilder } from '@angular/forms';
+import { Search } from 'src/app/model/search';
+import { ModalService } from 'src/app/services/modal-popups.service';
+import { MatDialogRef } from '@angular/material';
+
+@Component({
+ selector: 'app-search',
+ templateUrl: './search.component.html',
+ styleUrls: ['./search.component.css']
+})
+export class SearchComponent implements OnInit {
+
+ legende: Legenda [];
+
+ points: VgiPoint [];
+
+ formSearch: FormGroup;
+
+ @Output()
+ searchCompleted: EventEmitter = new EventEmitter();
+
+ constructor(private fb: FormBuilder, private modalService: ModalService,
+ private dialogRef: MatDialogRef,
+ private mapService: MapService, private legendaService: LegendaService) { }
+
+ ngOnInit() {
+ this.createFormGroup();
+ this.legendaService.getLegende().subscribe(
+ (data: Legenda[]) => {
+ this.legende = data;
+ },
+ (error) => {
+ console.log(error);
+ }
+ );
+ }
+
+ search () {
+ this.modalService.save(this.dialogRef, this.formSearch);
+ this.dialogRef.afterClosed().subscribe(
+ (search: Search) => {
+ this.mapService.searchLocations(search.annoDa, search.annoA, search.idLegenda).subscribe(
+ (points: VgiPoint []) => {
+ this.mapService.points = points;
+ this.searchCompleted.emit();
+ }
+ );
+ }
+ );
+
+ }
+
+ createFormGroup () {
+ this.formSearch = this.fb.group(
+ {
+ annoDa: [''],
+ annoA: [''],
+ idLegenda: [''],
+ }
+ );
+ }
+
+}
diff --git a/src/app/model/search.ts b/src/app/model/search.ts
new file mode 100644
index 0000000..4b80f58
--- /dev/null
+++ b/src/app/model/search.ts
@@ -0,0 +1,17 @@
+export class Search {
+ annoDa: number;
+ annoA: number;
+ idLegenda: number;
+
+ constructor (annoDa?: number, annoA?: number, idLegenda?: number) {
+ if (annoDa !== null) {
+ this.annoDa = annoDa;
+ }
+ if (annoA !== null) {
+ this.annoA = annoA;
+ }
+ if (idLegenda !== null) {
+ this.idLegenda = idLegenda;
+ }
+ }
+}
diff --git a/src/app/services/map.service.ts b/src/app/services/map.service.ts
index f1735ff..c50ff34 100644
--- a/src/app/services/map.service.ts
+++ b/src/app/services/map.service.ts
@@ -1,20 +1,8 @@
import { Injectable} from '@angular/core';
-import Map from 'ol/map';
-import OSM from 'ol/source/osm';
-import TileLayer from 'ol/layer/Tile';
-import VectorLayer from 'ol/layer/Vector';
-import VectorSource from 'ol/source/Vector';
-import OlView from 'ol/View';
-import OlCircle from 'ol/style/Circle';
-import OlFill from 'ol/style/Fill';
-import OlStroke from 'ol/style/Stroke';
-import Feature from 'ol/Feature';
-import Select from 'ol/interaction/select';
import { VgiPoint } from '../model/point';
-import { HttpClient, HttpHeaders } from '@angular/common/http';
+import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
import { Esito } from '../model/esito';
import { Observable } from 'rxjs';
-import Style from 'ol/style/style';
import { LegendaService } from './legenda.service';
import { environment } from 'src/environments/environment';
@@ -24,23 +12,12 @@ import { environment } from 'src/environments/environment';
providedIn: 'root'
})
export class MapService {
-private map: Map;
-private osmSource: OSM;
-private beVectSource: VectorSource;
-private vectSource: VectorSource;
-private view: OlView;
-private layers: [TileLayer, VectorLayer, VectorLayer];
-private marker: Feature;
-private markers: [];
-private beVectorLayer: VectorLayer;
-private feVectorLayer: VectorLayer;
-private selectInteraction: Select;
-
-private selectedFeature: any;
endpoint = environment.endpoint;
+points: VgiPoint [];
+
httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/json'
@@ -63,6 +40,15 @@ getUserLocations(): Observable {
return this.http.get(this.endpoint + '/location' + '/user');
}
+searchLocations(annoDa: number, annoA: number, idLegenda: number): Observable {
+ const params = {
+ 'annoDa': annoDa !== null && typeof annoDa !== 'undefined' ? annoDa.toString() : '',
+ 'annoA': annoA !== null && typeof annoA !== 'undefined' ? annoA.toString() : '',
+ 'idLegenda': idLegenda !== null && typeof idLegenda !== 'undefined' ? idLegenda.toString() : ''
+ };
+ return this.http.get(this.endpoint + '/location' + '/search', {params});
+}
+
getLocationById(idLocation: number): Observable {
return this.http.get(this.endpoint + '/location/' + idLocation);
}
@@ -75,23 +61,4 @@ deleteLocationById(idLocation: number): Observable {
return this.http.delete(this.endpoint + '/location/' + idLocation);
}
-
-
-
-
-getMarkerStyle(color: string): Style {
- return new Style({
- image : new OlCircle(({
- fill: new OlFill({
- color: color,
- }),
- radius: 5,
- stroke: new OlStroke({
- color: color,
- width: 3,
- }),
- }))
- });
-}
-
}