(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},Wgwc:function(t,e,n){t.exports=function(){"use strict";var t="millisecond",e="second",n="minute",i="hour",o="day",r="week",s="month",a="quarter",l="year",c="date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},g={s:p,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+p(i,2,"0")+":"+p(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(i,s),r=n-o<0,a=e.clone().add(i+(r?-1:1),s);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return{M:s,y:l,w:r,d:o,D:c,h:i,m:n,s:e,ms:t,Q:a}[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},f="en",m={};m[f]=h;var v=function(t){return t instanceof w},b=function(t,e,n){var i;if(!t)return f;if("string"==typeof t)m[t]&&(i=t),e&&(m[t]=e,i=t);else{var o=t.name;m[o]=t,i=o}return!n&&i&&(f=i),i||!n&&f},y=function(t,e){if(v(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new w(n)},_=g;_.l=b,_.i=v,_.w=function(t,e){return y(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function h(t){this.$L=b(t.locale,null,!0),this.parse(t)}var p=h.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(_.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(u);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return _},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(t,e){var n=y(t);return this.startOf(e)<=n&&n<=this.endOf(e)},p.isAfter=function(t,e){return y(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<y(t)},p.$g=function(t,e,n){return _.u(t)?this[e]:this.set(n,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,a){var u=this,d=!!_.u(a)||a,h=_.p(t),p=function(t,e){var n=_.w(u.$u?Date.UTC(u.$y,e,t):new Date(u.$y,e,t),u);return d?n:n.endOf(o)},g=function(t,e){return _.w(u.toDate()[t].apply(u.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),u)},f=this.$W,m=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(h){case l:return d?p(1,0):p(31,11);case s:return d?p(1,m):p(0,m+1);case r:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return p(d?v-w:v+(6-w),m);case o:case c:return g(b+"Hours",0);case i:return g(b+"Minutes",1);case n:return g(b+"Seconds",2);case e:return g(b+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(r,a){var u,d=_.p(r),h="set"+(this.$u?"UTC":""),p=(u={},u[o]=h+"Date",u[c]=h+"Date",u[s]=h+"Month",u[l]=h+"FullYear",u[i]=h+"Hours",u[n]=h+"Minutes",u[e]=h+"Seconds",u[t]=h+"Milliseconds",u)[d],g=d===o?this.$D+(a-this.$W):a;if(d===s||d===l){var f=this.clone().set(c,1);f.$d[p](g),f.init(),this.$d=f.set(c,Math.min(this.$D,f.daysInMonth())).$d}else p&&this.$d[p](g);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[_.p(t)]()},p.add=function(t,a){var c,u=this;t=Number(t);var d=_.p(a),h=function(e){var n=y(u);return _.w(n.date(n.date()+Math.round(e*t)),u)};if(d===s)return this.set(s,this.$M+t);if(d===l)return this.set(l,this.$y+t);if(d===o)return h(1);if(d===r)return h(7);var p=(c={},c[n]=6e4,c[i]=36e5,c[e]=1e3,c)[d]||1,g=this.$d.getTime()+t*p;return _.w(g,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=_.z(this),o=this.$locale(),r=this.$H,s=this.$m,a=this.$M,l=o.weekdays,c=o.months,u=function(t,i,o,r){return t&&(t[i]||t(e,n))||o[i].substr(0,r)},h=function(t){return _.s(r%12||12,t,"0")},p=o.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:_.s(a+1,2,"0"),MMM:u(o.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:u(o.weekdaysMin,this.$W,l,2),ddd:u(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:_.s(r,2,"0"),h:h(1),hh:h(2),a:p(r,s,!0),A:p(r,s,!1),m:String(s),mm:_.s(s,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:i};return n.replace(d,(function(t,e){return e||g[t]||i.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(t,c,u){var d,h=_.p(c),p=y(t),g=6e4*(p.utcOffset()-this.utcOffset()),f=this-p,m=_.m(this,p);return m=(d={},d[l]=m/12,d[s]=m,d[a]=m/3,d[r]=(f-g)/6048e5,d[o]=(f-g)/864e5,d[i]=f/36e5,d[n]=f/6e4,d[e]=f/1e3,d)[h]||f,u?m:_.a(m)},p.daysInMonth=function(){return this.endOf(s).$D},p.$locale=function(){return m[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=b(t,e,!0);return i&&(n.$L=i),n},p.clone=function(){return _.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},h}(),C=w.prototype;return y.prototype=C,[["$ms",t],["$s",e],["$m",n],["$H",i],["$W",o],["$M",s],["$y",l],["$D",c]].forEach((function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),y.extend=function(t,e){return t.$i||(t(e,w,y),t.$i=!0),y},y.locale=b,y.isDayjs=v,y.unix=function(t){return y(1e3*t)},y.en=m[f],y.Ls=m,y.p={},y}()},zUnb:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.r(e);let o=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function s(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let d=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:o,_subscriptions:r}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(i(o))try{o.call(this)}catch(s){e=s instanceof u?h(s.errors):[s]}if(l(r)){let t=-1,n=r.length;for(;++t<n;){const n=r[t];if(c(n))try{n.unsubscribe()}catch(s){e=e||[],s instanceof u?e=e.concat(h(s.errors)):e.push(s)}}}if(e)throw new u(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=n;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}const o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function h(t){return t.reduce((t,e)=>t.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class g extends d{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof g?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new f(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new f(this,t,e,n)}}[p](){return this}static create(t,e,n){const i=new g(t,e,n);return i.syncErrorThrowable=!1,i}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class f extends g{constructor(t,e,n,o){let r;super(),this._parentSubscriber=t;let s=this;i(e)?r=e:e&&(r=e.next,n=e.error,o=e.complete,e!==a&&(s=Object.create(e),i(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=r,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(s(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(t){return t}function b(...t){return y(t)}function y(t){return 0===t.length?v:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:i}=this,o=function(t,e,n){if(t){if(t instanceof g)return t;if(t[p])return t[p]()}return t||e||n?new g(t,e,n):new g(a)}(t,e,n);if(o.add(i?i.call(o,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),r.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:i}=t;if(e||i)return!1;t=n&&n instanceof g?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(o){n(o),i&&i.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class x extends d{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class O extends g{constructor(t){super(t),this.destination=t}}let M=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new O(this)}lift(t){const e=new P(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,i=e.slice();for(let o=0;o<n;o++)i[o].next(t)}}error(t){if(this.closed)throw new C;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,i=e.slice();for(let o=0;o<n;o++)i[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new C;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let i=0;i<e;i++)n[i].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new C;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new C;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new x(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new P(t,e),t})();class P extends M{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):d.EMPTY}}function I(t){return t&&"function"==typeof t.schedule}class k extends g{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const S=t=>e=>{for(let n=0,i=t.length;n<i&&!e.closed;n++)e.next(t[n]);e.complete()};function E(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const D=E(),A=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function T(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const F=t=>{if(t&&"function"==typeof t[m])return i=t,t=>{const e=i[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(A(t))return S(t);if(T(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s),t);if(t&&"function"==typeof t[D])return e=t,t=>{const n=e[D]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,i};function N(t,e,n,i,o=new k(t,n,i)){if(!o.closed)return e instanceof _?e.subscribe(o):F(e)(o)}class V extends g{notifyNext(t,e,n,i,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function R(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new L(t,e))}}class L{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new z(t,this.project,this.thisArg))}}class z extends g{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function H(t,e){return new _(n=>{const i=new d;let o=0;return i.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}function j(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new _(n=>{const i=new d;return i.add(e.schedule(()=>{const o=t[m]();i.add(o.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(T(t))return function(t,e){return new _(n=>{const i=new d;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(A(t))return H(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const i=new d;let o;return i.add(()=>{o&&"function"==typeof o.return&&o.return()}),i.add(e.schedule(()=>{o=t[D](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=o.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(F(t))}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(B((n,i)=>j(t(n,i)).pipe(R((t,o)=>e(n,t,i,o))),n)):("number"==typeof e&&(n=e),e=>e.lift(new U(t,n)))}class U{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new q(t,this.project,this.concurrent))}}class q extends V{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const i=new k(this,e,n),o=this.destination;o.add(i);const r=N(this,t,void 0,void 0,i);r!==i&&o.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,i,o){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function G(t=Number.POSITIVE_INFINITY){return B(v,t)}function W(t,e){return e?H(t,e):new _(S(t))}function Z(...t){let e=Number.POSITIVE_INFINITY,n=null,i=t[t.length-1];return I(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof i&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:G(e)(W(t,n))}function Y(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new J(t,n),o=e.subscribe(i);return i.closed||(i.connection=n.connect()),o}}class J extends g{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class K extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new d,t.add(this.source.subscribe(new tt(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}refCount(){return Y()(this)}}const X=(()=>{const t=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class tt extends O{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function et(){return new M}function nt(){return t=>{return Y()((e=et,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,X);return i.source=t,i.subjectFactory=n,i})(t));var e}}function it(t){return{toString:t}.toString()}function ot(t,e,n){return it(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function o(...t){if(this instanceof o)return i.apply(this,t),this;const e=new o(...t);return n.annotation=e,n;function n(t,n,i){const o=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;o.length<=i;)o.push(null);return(o[i]=o[i]||[]).push(e),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}const rt=ot("Inject",t=>({token:t})),st=ot("Optional"),at=ot("Self"),lt=ot("SkipSelf");var ct=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ut(t){for(let e in t)if(t[e]===ut)return e;throw Error("Could not find renamed property on target object.")}function dt(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function pt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function gt(t){return ft(t,t[vt])||ft(t,t[_t])}function ft(t,e){return e&&e.token===t?e:null}function mt(t){return t&&(t.hasOwnProperty(bt)||t.hasOwnProperty(wt))?t[bt]:null}const vt=ut({"\u0275prov":ut}),bt=ut({"\u0275inj":ut}),yt=ut({"\u0275provFallback":ut}),_t=ut({ngInjectableDef:ut}),wt=ut({ngInjectorDef:ut});function Ct(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ct).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ot=ut({__forward_ref__:ut});function Mt(t){return t.__forward_ref__=Mt,t.toString=function(){return Ct(this())},t}function Pt(t){return It(t)?t():t}function It(t){return"function"==typeof t&&t.hasOwnProperty(Ot)&&t.__forward_ref__===Mt}const kt="undefined"!=typeof globalThis&&globalThis,St="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Dt="undefined"!=typeof global&&global,At=kt||Dt||St||Et,Tt=ut({"\u0275cmp":ut}),Ft=ut({"\u0275dir":ut}),Nt=ut({"\u0275pipe":ut}),Vt=ut({"\u0275mod":ut}),Rt=ut({"\u0275loc":ut}),Lt=ut({"\u0275fac":ut}),zt=ut({__NG_ELEMENT_ID__:ut});class $t{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Ht=new $t("INJECTOR",-1),jt={},Bt=/\n/gm,Ut=ut({provide:String,useValue:ut});let qt,Gt=void 0;function Wt(t){const e=Gt;return Gt=t,e}function Zt(t){const e=qt;return qt=t,e}function Yt(t,e=ct.Default){if(void 0===Gt)throw new Error("inject() must be called from an injection context");return null===Gt?Jt(t,void 0,e):Gt.get(t,e&ct.Optional?null:void 0,e)}function Qt(t,e=ct.Default){return(qt||Yt)(Pt(t),e)}function Jt(t,e,n){const i=gt(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&ct.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${Ct(t)}]`)}function Kt(t){const e=[];for(let n=0;n<t.length;n++){const i=Pt(t[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=ct.Default;for(let e=0;e<i.length;e++){const o=i[e];o instanceof st||"Optional"===o.ngMetadataName||o===st?n|=ct.Optional:o instanceof lt||"SkipSelf"===o.ngMetadataName||o===lt?n|=ct.SkipSelf:o instanceof at||"Self"===o.ngMetadataName||o===at?n|=ct.Self:t=o instanceof rt||o===rt?o.token:o}e.push(Qt(t,n))}else e.push(Qt(i))}return e}class Xt{get(t,e=jt){if(e===jt){const e=new Error(`NullInjectorError: No provider for ${Ct(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}class ee{}function ne(t,e){for(let n=0;n<t.length;n++)e.push(t[n])}function ie(t,e){t.forEach(t=>Array.isArray(t)?ie(t,e):e(t))}function oe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function re(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){const n=[];for(let i=0;i<t;i++)n.push(e);return n}function ae(t,e,n){let i=ce(t,e);return i>=0?t[1|i]=n:(i=~i,function(t,e,n,i){let o=t.length;if(o==e)t.push(n,i);else if(1===o)t.push(i,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function le(t,e){const n=ce(t,e);if(n>=0)return t[1|n]}function ce(t,e){return function(t,e,n){let i=0,o=t.length>>1;for(;o!==i;){const n=i+(o-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?o=n:i=n+1}return~(o<<1)}(t,e)}const ue=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),de=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),he={},pe=[];let ge=0;function fe(t){return it(()=>{const e=t.type,n=e.prototype,i={},o={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===ue.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||pe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||de.Emulated,id:"c",styles:t.styles||pe,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,a=t.pipes;return o.id+=ge++,o.inputs=_e(t.inputs,i),o.outputs=_e(t.outputs),s&&s.forEach(t=>t(o)),o.directiveDefs=r?()=>("function"==typeof r?r():r).map(me):null,o.pipeDefs=a?()=>("function"==typeof a?a():a).map(ve):null,o})}function me(t){return xe(t)||function(t){return t[Ft]||null}(t)}function ve(t){return function(t){return t[Nt]||null}(t)}const be={};function ye(t){const e={type:t.type,bootstrap:t.bootstrap||pe,declarations:t.declarations||pe,imports:t.imports||pe,exports:t.exports||pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&it(()=>{be[t.id]=t.type}),e}function _e(t,e){if(null==t)return he;const n={};for(const i in t)if(t.hasOwnProperty(i)){let o=t[i],r=o;Array.isArray(o)&&(r=o[1],o=o[0]),n[o]=i,e&&(e[o]=r)}return n}const we=fe;function Ce(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function xe(t){return t[Tt]||null}function Oe(t,e){return t.hasOwnProperty(Lt)?t[Lt]:null}function Me(t,e){const n=t[Vt]||null;if(!n&&!0===e)throw new Error(`Type ${Ct(t)} does not have '\u0275mod' property.`);return n}function Pe(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ie(t){return Array.isArray(t)&&!0===t[1]}function ke(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function Ee(t){return 1==(1&t.flags)}function De(t){return null!==t.template}function Ae(t){return 0!=(512&t[2])}let Te=void 0;function Fe(){return void 0!==Te?Te:"undefined"!=typeof document?document:void 0}function Ne(t){return!!t.listen}const Ve={createRenderer:(t,e)=>Fe()};function Re(t){for(;Array.isArray(t);)t=t[0];return t}function Le(t,e){return Re(e[t+20])}function ze(t,e){return Re(e[t.index])}function $e(t,e){return t.data[e+20]}function He(t,e){return t[e+20]}function je(t,e){const n=e[t];return Pe(n)?n:n[0]}function Be(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ue(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function Ge(t,e){return null===t||null==e?null:t[e]}function We(t){t[18]=0}function Ze(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Ye={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Qe(){return Ye.bindingsEnabled}function Je(){return Ye.lFrame.lView}function Ke(){return Ye.lFrame.tView}function Xe(t){Ye.lFrame.contextLView=t}function tn(){return Ye.lFrame.previousOrParentTNode}function en(t,e){Ye.lFrame.previousOrParentTNode=t,Ye.lFrame.isParent=e}function nn(){return Ye.lFrame.isParent}function on(){Ye.lFrame.isParent=!1}function rn(){return Ye.checkNoChangesMode}function sn(t){Ye.checkNoChangesMode=t}function an(){const t=Ye.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ln(){return Ye.lFrame.bindingIndex}function cn(){return Ye.lFrame.bindingIndex++}function un(t){const e=Ye.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function dn(t,e){const n=Ye.lFrame;n.bindingIndex=n.bindingRootIndex=t,hn(e)}function hn(t){Ye.lFrame.currentDirectiveIndex=t}function pn(){return Ye.lFrame.currentQueryIndex}function gn(t){Ye.lFrame.currentQueryIndex=t}function fn(t,e){const n=vn();Ye.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function mn(t,e){const n=vn(),i=t[1];Ye.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function vn(){const t=Ye.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function yn(){const t=Ye.lFrame;return Ye.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const _n=yn;function wn(){const t=yn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Cn(){return Ye.lFrame.selectedIndex}function xn(t){Ye.lFrame.selectedIndex=t}function On(){const t=Ye.lFrame;return $e(t.tView,t.selectedIndex)}function Mn(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n<i;n++){const e=t.data[n];e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked)),e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked)),null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}}function Pn(t,e,n){Sn(t,e,3,n)}function In(t,e,n,i){(3&t[2])===n&&Sn(t,e,n,i)}function kn(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Sn(t,e,n,i){const o=null!=i?i:-1;let r=0;for(let s=void 0!==i?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(r=e[s],null!=i&&r>=i)break}else e[s]<0&&(t[18]+=65536),(r<o||-1==o)&&(En(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function En(t,e,n,i){const o=n[i]<0,r=n[i+1],s=t[o?-n[i]:n[i]];o?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(s)):r.call(s)}class Dn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function An(t,e,n){const i=Ne(t);let o=0;for(;o<n.length;){const r=n[o];if("number"==typeof r){if(0!==r)break;o++;const s=n[o++],a=n[o++],l=n[o++];i?t.setAttribute(e,a,l,s):e.setAttributeNS(s,a,l)}else{const s=r,a=n[++o];Fn(s)?i&&t.setProperty(e,s,a):i?t.setAttribute(e,s,a):e.setAttribute(s,a),o++}}return o}function Tn(t){return 3===t||4===t||6===t}function Fn(t){return 64===t.charCodeAt(0)}function Nn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let i=0;i<e.length;i++){const o=e[i];"number"==typeof o?n=o:0===n||Vn(t,n,o,null,-1===n||2===n?e[++i]:null)}}return t}function Vn(t,e,n,i,o){let r=0,s=t.length;if(-1===e)s=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===i)return void(null!==o&&(t[r+1]=o));if(i===t[r+1])return void(t[r+2]=o)}r++,null!==i&&r++,null!==o&&r++}-1!==s&&(t.splice(s,0,e),r=s+1),t.splice(r++,0,n),null!==i&&t.splice(r++,0,i),null!==o&&t.splice(r++,0,o)}function Rn(t){return-1!==t}function Ln(t){return 32767&t}function zn(t){return t>>16}function $n(t,e){let n=zn(t),i=e;for(;n>0;)i=i[15],n--;return i}function Hn(t){return"string"==typeof t?t:null==t?"":""+t}function jn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Hn(t)}const Bn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(At))();function Un(t){return{name:"window",target:t.ownerDocument.defaultView}}function qn(t){return t instanceof Function?t():t}let Gn=!0;function Wn(t){const e=Gn;return Gn=t,e}let Zn=0;function Yn(t,e){const n=Jn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));const o=Kn(t,e),r=t.injectorIndex;if(Rn(o)){const t=Ln(o),n=$n(o,e),i=n[1].data;for(let o=0;o<8;o++)e[r+o]=n[t+o]|i[t+o]}return e[r+8]=o,r}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Kn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Xn(t,e,n){!function(t,e,n){let i="string"!=typeof n?n[zt]:n.charCodeAt(0)||0;null==i&&(i=n[zt]=Zn++);const o=255&i,r=1<<o,s=64&o,a=32&o,l=e.data;128&o?s?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:s?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function ti(t,e,n,i=ct.Default,o){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[zt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){fn(e,t);try{const t=o();if(null!=t||i&ct.Optional)return t;throw new Error(`No provider for ${jn(n)}!`)}finally{_n()}}else if("number"==typeof o){if(-1===o)return new ai(t,e);let r=null,s=Jn(t,e),a=-1,l=i&ct.Host?e[16][6]:null;for((-1===s||i&ct.SkipSelf)&&(a=-1===s?Kn(t,e):e[s+8],si(i,!1)?(r=e[1],s=Ln(a),e=$n(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(ri(o,s,t.data)){const t=ni(s,e,n,r,i,l);if(t!==ei)return t}si(i,e[1].data[s+8]===l)&&ri(o,s,e)?(r=t,s=Ln(a),e=$n(a,e)):s=-1}}}if(i&ct.Optional&&void 0===o&&(o=null),0==(i&(ct.Self|ct.Host))){const t=e[9],r=Zt(void 0);try{return t?t.get(n,o,i&ct.Optional):Jt(n,o,i&ct.Optional)}finally{Zt(r)}}if(i&ct.Optional)return o;throw new Error(`NodeInjector: NOT_FOUND [${jn(n)}]`)}const ei={};function ni(t,e,n,i,o,r){const s=e[1],a=s.data[t+8],l=ii(a,s,n,null==i?Se(a)&&Gn:i!=s&&3===a.type,o&ct.Host&&r===a);return null!==l?oi(e,s,l,a):ei}function ii(t,e,n,i,o){const r=t.providerIndexes,s=e.data,a=65535&r,l=t.directiveStart,c=r>>16,u=o?a+c:t.directiveEnd;for(let d=i?a:a+c;d<u;d++){const t=s[d];if(d<l&&n===t||d>=l&&t.type===n)return d}if(o){const t=s[l];if(t&&De(t)&&t.type===n)return l}return null}function oi(t,e,n,i){let o=t[n];const r=e.data;if(o instanceof Dn){const s=o;if(s.resolving)throw new Error("Circular dep for "+jn(r[n]));const a=Wn(s.canSeeViewProviders);let l;s.resolving=!0,s.injectImpl&&(l=Zt(s.injectImpl)),fn(t,i);try{o=t[n]=s.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{onChanges:i,onInit:o,doCheck:r}=e;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,o),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{s.injectImpl&&Zt(l),Wn(a),s.resolving=!1,_n()}}return o}function ri(t,e,n){const i=64&t,o=32&t;let r;return r=128&t?i?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:i?o?n[e+3]:n[e+2]:o?n[e+1]:n[e],!!(r&1<<t)}function si(t,e){return!(t&ct.Self||t&ct.Host&&e)}class ai{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return ti(this._tNode,this._lView,t,void 0,e)}}function li(t){const e=t;if(It(t))return()=>{const t=li(Pt(e));return t?t():null};let n=Oe(e);if(null===n){const t=mt(e);n=t&&t.factory}return n||null}function ci(t){return it(()=>{const e=t.prototype.constructor,n=e[Lt]||li(e),i=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==i;){const t=o[Lt]||li(o);if(t&&t!==n)return t;o=Object.getPrototypeOf(o)}return t=>new t})}function ui(t){return t.ngDebugContext}function di(t){return t.ngOriginalError}function hi(t,...e){t.error(...e)}class pi{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||hi}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?ui(t)?ui(t):this._findContext(di(t)):null}_findOriginalError(t){let e=di(t);for(;e&&di(e);)e=di(e);return e}}class gi{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class fi extends gi{getTypeName(){return"HTML"}}class mi extends gi{getTypeName(){return"Style"}}class vi extends gi{getTypeName(){return"Script"}}class bi extends gi{getTypeName(){return"URL"}}class yi extends gi{getTypeName(){return"ResourceURL"}}function _i(t){return t instanceof gi?t.changingThisBreaksApplicationSecurity:t}function wi(t,e){const n=Ci(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Ci(t){return t instanceof gi&&t.getTypeName()||null}let xi=!0,Oi=!1;function Mi(){return Oi=!0,xi}class Pi{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0<i;i--){const n=e.item(i).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Ii=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ki=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Si(t){return(t=String(t)).match(Ii)||t.match(ki)?t:(Mi()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Ei(t){return(t=String(t)).split(",").map(t=>Si(t.trim())).join(", ")}function Di(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ai(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ti=Di("area,br,col,hr,img,wbr"),Fi=Di("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ni=Di("rp,rt"),Vi=Ai(Ni,Fi),Ri=Ai(Ti,Ai(Fi,Di("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ai(Ni,Di("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vi),Li=Di("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zi=Di("srcset"),$i=Ai(Li,zi,Di("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Di("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Hi=Di("script,style,template");class ji{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ri.hasOwnProperty(e))return this.sanitizedSomething=!0,!Hi.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,o=e.toLowerCase();if(!$i.hasOwnProperty(o)){this.sanitizedSomething=!0;continue}let r=t.value;Li[o]&&(r=Si(r)),zi[o]&&(r=Ei(r)),this.buf.push(" ",e,'="',qi(r),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ri.hasOwnProperty(e)&&!Ti.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(qi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Bi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ui=/([^\#-~ |!])/g;function qi(t){return t.replace(/&/g,"&amp;").replace(Bi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ui,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Gi;function Wi(t,e){let n=null;try{Gi=Gi||new Pi(t);let i=e?String(e):"";n=Gi.getInertBodyElement(i);let o=5,r=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=r,r=n.innerHTML,n=Gi.getInertBodyElement(i)}while(i!==r);const s=new ji,a=s.sanitizeChildren(Zi(n)||n);return Mi()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Zi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Zi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Yi=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Qi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ji=/^url\(([^)]+)\)$/;function Ki(t){if(!(t=String(t).trim()))return"";const e=t.match(Ji);return e&&Si(e[1])===e[1]||t.match(Qi)&&function(t){let e=!0,n=!0;for(let i=0;i<t.length;i++){const o=t.charAt(i);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(Mi()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function Xi(t){const e=no();return e?e.sanitize(Yi.HTML,t)||"":wi(t,"HTML")?_i(t):Wi(Fe(),Hn(t))}function to(t){const e=no();return e?e.sanitize(Yi.URL,t)||"":wi(t,"URL")?_i(t):Si(Hn(t))}function eo(t){const e=no();if(e)return e.sanitize(Yi.RESOURCE_URL,t)||"";if(wi(t,"ResourceURL"))return _i(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function no(){const t=Je();return t&&t[12]}function io(t,e){t.__ngContext__=e}function oo(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ro(){throw new Error("Cannot mix multi providers and regular providers")}function so(t,e,n){let i=t.length;for(;;){const o=t.indexOf(e,n);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const n=e.length;if(o+n===i||t.charCodeAt(o+n)<=32)return o}n=o+1}}function ao(t,e,n){let i=0;for(;i<t.length;){let o=t[i++];if(n&&"class"===o){if(o=t[i],-1!==so(o.toLowerCase(),e,0))return!0}else if(1===o){for(;i<t.length&&"string"==typeof(o=t[i++]);)if(o.toLowerCase()===e)return!0;return!1}}return!1}function lo(t){return 0===t.type&&"ng-template"!==t.tagName}function co(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function uo(t,e,n){let i=4;const o=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Tn(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!co(t,l,n)||""===l&&1===e.length){if(ho(i))return!1;s=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==t.attrs){if(!ao(t.attrs,c,n)){if(ho(i))return!1;s=!0}continue}const u=po(8&i?"class":l,o,lo(t),n);if(-1===u){if(ho(i))return!1;s=!0;continue}if(""!==c){let t;t=u>r?"":o[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==so(e,c,0)||2&i&&c!==t){if(ho(i))return!1;s=!0}}}}else{if(!s&&!ho(i)&&!ho(l))return!1;if(s&&ho(l))continue;s=!1,i=l|1&i}}return ho(i)||s}function ho(t){return 0==(1&t)}function po(t,e,n,i){if(null===e)return-1;let o=0;if(i||!n){let n=!1;for(;o<e.length;){const i=e[o];if(i===t)return o;if(3===i||6===i)n=!0;else{if(1===i||2===i){let t=e[++o];for(;"string"==typeof t;)t=e[++o];continue}if(4===i)break;if(0===i){o+=4;continue}}o+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const i=t[n];if("number"==typeof i)return-1;if(i===e)return n;n++}return-1}(e,t)}function go(t,e,n=!1){for(let i=0;i<e.length;i++)if(uo(t,e[i],n))return!0;return!1}function fo(t,e){return t?":not("+e.trim()+")":e}function mo(t){let e=t[0],n=1,i=2,o="",r=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&i){const e=t[++n];o+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&i?o+="."+s:4&i&&(o+=" "+s);else""===o||ho(s)||(e+=fo(r,o),o=""),i=s,r=r||!ho(i);n++}return""!==o&&(e+=fo(r,o)),e}const vo={};function bo(t){const e=t[3];return Ie(e)?e[3]:e}function yo(t){return wo(t[13])}function _o(t){return wo(t[4])}function wo(t){for(;null!==t&&!Ie(t);)t=t[4];return t}function Co(t){xo(Ke(),Je(),Cn()+t,rn())}function xo(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Pn(e,i,n)}else{const i=t.preOrderHooks;null!==i&&In(e,i,0,n)}xn(n)}const Oo={marker:"element"},Mo={marker:"comment"};function Po(t,e){return t<<17|e<<2}function Io(t){return t>>17&32767}function ko(t){return 2|t}function So(t){return(131068&t)>>2}function Eo(t,e){return-131069&t|e<<2}function Do(t){return 1|t}function Ao(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const o=n[i],r=n[i+1];if(-1!==r){const n=t.data[r];gn(o),n.contentQueries(2,e[r],r)}}}function To(t,e,n){return Ne(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Fo(t,e,n,i,o,r,s,a,l,c){const u=e.blueprint.slice();return u[0]=o,u[2]=140|i,We(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=l||t&&t[12]||null,u[9]=c||t&&t[9]||null,u[6]=r,u[16]=2==e.type?t[16]:u,u}function No(t,e,n,i,o,r){const s=n+20,a=t.data[s]||function(t,e,n,i,o,r){const s=tn(),a=nn(),l=a?s:s&&s.parent,c=t.data[n]=qo(0,l&&l!==e?l:null,i,n,o,r);return null===t.firstChild&&(t.firstChild=c),s&&(!a||null!=s.child||null===c.parent&&2!==s.type?a||(s.next=c):s.child=c),c}(t,e,s,i,o,r);return en(a,!0),a}function Vo(t,e,n){mn(e,e[6]);try{const i=t.viewQuery;null!==i&&gr(1,i,n);const o=t.template;null!==o&&zo(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Ao(t,e),t.staticViewQueries&&gr(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)cr(t,e[n])}(e,r)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),i}finally{e[2]&=-5,wn()}}function Ro(t,e,n,i){const o=e[2];if(256==(256&o))return;mn(e,e[6]);const r=rn();try{We(e),Ye.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&zo(t,e,n,2,i);const s=3==(3&o);if(!r)if(s){const n=t.preOrderCheckHooks;null!==n&&Pn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&In(e,n,0,null),kn(e,0)}if(function(t){for(let e=yo(t);null!==e;e=_o(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],i=n[3];0==(1024&n[2])&&Ze(i,1),n[2]|=1024}}}(e),function(t){for(let e=yo(t);null!==e;e=_o(e))for(let t=10;t<e.length;t++){const n=e[t],i=n[1];qe(n)&&Ro(i,n,i.template,n[8])}}(e),null!==t.contentQueries&&Ao(t,e),!r)if(s){const n=t.contentCheckHooks;null!==n&&Pn(e,n)}else{const n=t.contentHooks;null!==n&&In(e,n,1),kn(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let i=t.expandoStartIndex,o=-1,r=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(r=0-s,xn(r),i+=9+n[++t],o=i):i+=s:(null!==s&&(dn(i,o),s(2,e[o])),o++)}}}finally{xn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)lr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&gr(2,l,i),!r)if(s){const n=t.viewCheckHooks;null!==n&&Pn(e,n)}else{const n=t.viewHooks;null!==n&&In(e,n,2),kn(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Ze(e[3],-1))}finally{wn()}}function Lo(t,e,n,i){const o=e[10],r=!rn(),s=Ue(e);try{r&&!s&&o.begin&&o.begin(),s&&Vo(t,e,i),Ro(t,e,n,i)}finally{r&&!s&&o.end&&o.end()}}function zo(t,e,n,i,o){const r=Cn();try{xn(-1),2&i&&e.length>20&&xo(t,e,0,rn()),n(i,o)}finally{xn(r)}}function $o(t,e,n){if(ke(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o<i;o++){const e=t.data[o];e.contentQueries&&e.contentQueries(1,n[o],o)}}}function Ho(t,e,n){Qe()&&(function(t,e,n,i){const o=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Yn(n,e),io(i,e);const s=n.initialInputs;for(let a=o;a<r;a++){const i=t.data[a],r=De(i);r&&ir(e,n,i);const l=oi(e,t,a,n);io(l,e),null!==s&&rr(0,a-o,l,i,0,s),r&&(je(n.index,e)[8]=l)}}(t,e,n,ze(n,e)),128==(128&n.flags)&&function(t,e,n){const i=n.directiveStart,o=n.directiveEnd,r=t.expandoInstructions,s=t.firstCreatePass,a=n.index-20,l=Ye.lFrame.currentDirectiveIndex;try{xn(a);for(let n=i;n<o;n++){const i=t.data[n],o=e[n];hn(n),null!==i.hostBindings||0!==i.hostVars||null!==i.hostAttrs?Jo(i,o):s&&r.push(null)}}finally{xn(-1),hn(l)}}(t,e,n))}function jo(t,e,n=ze){const i=e.localNames;if(null!==i){let o=e.index+1;for(let r=0;r<i.length;r+=2){const s=i[r+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}function Bo(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Uo(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Uo(t,e,n,i,o,r,s,a,l,c){const u=20+i,d=u+o,h=function(t,e){const n=[];for(let i=0;i<e;i++)n.push(i<t?null:vo);return n}(u,d);return h[1]={type:t,id:e,blueprint:h,template:n,queries:null,viewQuery:a,node:null,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof r?r():r,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function qo(t,e,n,i,o,r){return{type:n,index:i,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Go(t,e,n){for(let i in t)if(t.hasOwnProperty(i)){const o=t[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(e,o):n[i]=[e,o]}return n}function Wo(t,e,n,i,o,r,s,a){const l=ze(e,n);let c,u=e.inputs;var d;!a&&null!=u&&(c=u[i])?(yr(t,n,c,i,o),Se(e)&&function(t,e){const n=je(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(i="class"===(d=i)?"className":"for"===d?"htmlFor":"formaction"===d?"formAction":"innerHtml"===d?"innerHTML":"readonly"===d?"readOnly":"tabindex"===d?"tabIndex":d,o=null!=s?s(o,e.tagName||"",i):o,Ne(r)?r.setProperty(l,i,o):Fn(i)||(l.setProperty?l.setProperty(i,o):l[i]=o))}function Zo(t,e,n,i){let o=!1;if(Qe()){const r=function(t,e,n){const i=t.directiveRegistry;let o=null;if(i)for(let r=0;r<i.length;r++){const s=i[r];go(n,s.selectors,!1)&&(o||(o=[]),Xn(Yn(n,e),t,s.type),De(s)?(2&n.flags&&oo(n),Xo(t,n),o.unshift(s)):o.push(s))}return o}(t,e,n),s=null===i?null:{"":-1};if(null!==r){let i=0;o=!0,er(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Ko(t,n,r.length);let a=!1,l=!1;for(let o=0;o<r.length;o++){const c=r[o];n.mergedAttrs=Nn(n.mergedAttrs,c.hostAttrs),nr(t,e,c),tr(t.data.length-1,c,s),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128),!a&&(c.onChanges||c.onInit||c.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),a=!0),l||!c.onChanges&&!c.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),l=!0),Yo(t,c),i+=c.hostVars}!function(t,e){const n=e.directiveEnd,i=t.data,o=e.attrs,r=[];let s=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=i[l],n=t.inputs,c=null===o||lo(e)?null:sr(n,o);r.push(c),s=Go(n,l,s),a=Go(t.outputs,l,a)}null!==s&&(s.hasOwnProperty("class")&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=s,e.outputs=a}(t,n),Qo(t,e,i)}s&&function(t,e,n){if(e){const i=t.localNames=[];for(let t=0;t<e.length;t+=2){const o=n[e[t+1]];if(null==o)throw new Error(`Export of name '${e[t+1]}' not found!`);i.push(e[t],o)}}}(n,i,s)}return n.mergedAttrs=Nn(n.mergedAttrs,n.attrs),o}function Yo(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qo(t,e,n){for(let i=0;i<n;i++)e.push(vo),t.blueprint.push(vo),t.data.push(null)}function Jo(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Ko(t,e,n){const i=20-e.index,o=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(i,o,n)}function Xo(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function tr(t,e,n){if(n){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)n[e.exportAs[i]]=t;De(e)&&(n[""]=t)}}function er(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function nr(t,e,n){t.data.push(n);const i=n.factory||(n.factory=Oe(n.type)),o=new Dn(i,De(n),null);t.blueprint.push(o),e.push(o)}function ir(t,e,n){const i=ze(e,t),o=Bo(n),r=t[10],s=ur(t,Fo(t,o,null,n.onPush?64:16,i,e,r,r.createRenderer(i,n)));t[e.index]=s}function or(t,e,n,i,o,r){const s=ze(t,e),a=e[11];if(null==i)Ne(a)?a.removeAttribute(s,n,r):s.removeAttribute(n);else{const e=null==o?Hn(i):o(i,t.tagName||"",n);Ne(a)?a.setAttribute(s,n,e,r):r?s.setAttributeNS(r,n,e):s.setAttribute(n,e)}}function rr(t,e,n,i,o,r){const s=r[e];if(null!==s){const t=i.setInput;for(let e=0;e<s.length;){const o=s[e++],r=s[e++],a=s[e++];null!==t?i.setInput(n,a,o,r):n[r]=a}}}function sr(t,e){let n=null,i=0;for(;i<e.length;){const o=e[i];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,t[o],e[i+1])),i+=2}else i+=2;else i+=4}return n}function ar(t,e,n,i){return new Array(t,!0,!1,e,null,0,i,n,null,null)}function lr(t,e){const n=je(e,t);if(qe(n)){const t=n[1];80&n[2]?Ro(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let i=yo(e);null!==i;i=_o(i))for(let e=10;e<i.length;e++){const n=i[e];if(1024&n[2]){const t=n[1];Ro(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const o=je(n[i],e);qe(o)&&o[5]>0&&t(o)}}(n)}}function cr(t,e){const n=je(e,t),i=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(i,n),Vo(i,n,n[8])}function ur(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function dr(t){for(;t;){t[2]|=64;const e=bo(t);if(Ae(t)&&!e)return t;t=e}return null}function hr(t,e,n){const i=e[10];i.begin&&i.begin();try{Ro(t,e,t.template,n)}catch(o){throw br(e,o),o}finally{i.end&&i.end()}}function pr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],i=Be(n),o=i[1];Lo(o,i,o.template,n)}}(t[8])}function gr(t,e,n){gn(0),e(t,n)}const fr=(()=>Promise.resolve(null))();function mr(t){return t[7]||(t[7]=[])}function vr(t){return t.cleanup||(t.cleanup=[])}function br(t,e){const n=t[9],i=n?n.get(pi,null):null;i&&i.handleError(e)}function yr(t,e,n,i,o){for(let r=0;r<n.length;){const s=n[r++],a=n[r++],l=e[s],c=t.data[s];null!==c.setInput?c.setInput(l,o,i,a):l[a]=o}}function _r(t,e,n){const i=Le(e,t),o=t[11];Ne(o)?o.setValue(i,n):i.textContent=n}function wr(t,e){const n=e[3];return-1===t.index?Ie(n)?n:null:n}function Cr(t,e){const n=wr(t,e);return n?Nr(e[11],n[7]):null}function xr(t,e,n,i,o){if(null!=i){let r,s=!1;Ie(i)?r=i:Pe(i)&&(s=!0,i=i[0]);const a=Re(i);0===t&&null!==n?null==o?Tr(e,n,a):Ar(e,n,a,o||null):1===t&&null!==n?Ar(e,n,a,o||null):2===t?zr(e,a,s):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,i,o){const r=n[7];r!==Re(n)&&xr(e,t,i,r,o);for(let s=10;s<n.length;s++){const o=n[s];Hr(o[1],o,t,e,i,r)}}(e,t,r,n,o)}}function Or(t,e){return Ne(e)?e.createText(t):e.createTextNode(t)}function Mr(t,e,n,i){const o=Cr(t.node,e);o&&Hr(t,e,e[11],n?1:2,o,i)}function Pr(t,e){const n=t[9],i=n.indexOf(e);1024&e[2]&&Ze(e[3],-1),n.splice(i,1)}function Ir(t,e){if(t.length<=10)return;const n=10+e,i=t[n];if(i){const o=i[17];null!==o&&o!==t&&Pr(o,i),e>0&&(t[n-1][4]=i[4]);const r=re(t,10+e);Mr(i[1],i,!1,null);const s=r[19];null!==s&&s.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function kr(t,e){if(!(256&e[2])){const n=e[11];Ne(n)&&n.destroyNode&&Hr(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Er(t[1],t);for(;e;){let n=null;if(Pe(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Pe(e)&&Er(e[1],e),e=Sr(e,t);null===e&&(e=t),Pe(e)&&Er(e[1],e),n=e&&e[4]}e=n}}(e)}}function Sr(t,e){let n;return Pe(t)&&(n=t[6])&&2===n.type?wr(n,t):t[3]===e?null:t[3]}function Er(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i<n.length;i+=2){const t=e[n[i]];if(!(t instanceof Dn)){const e=n[i+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const o=n[i+1],r="function"==typeof o?o(e):Re(e[o]),s=t[n[i+2]],a=n[i+3];"boolean"==typeof a?r.removeEventListener(n[i],s,a):a>=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ne(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ie(e[3])){i!==e[3]&&Pr(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function Dr(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?Cr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return ze(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==de.ShadowDom&&n!==de.Native)return null}return ze(i,n)}function Ar(t,e,n,i){Ne(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Tr(t,e,n){Ne(t)?t.appendChild(e,n):e.appendChild(n)}function Fr(t,e,n,i){null!==i?Ar(t,e,n,i):Tr(t,e,n)}function Nr(t,e){return Ne(t)?t.parentNode(e):e.parentNode}function Vr(t,e){if(2===t.type){const n=wr(t,e);return null===n?null:Lr(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?ze(t,e):null}function Rr(t,e,n,i){const o=Dr(t,i,e);if(null!=o){const t=e[11],r=Vr(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Fr(t,o,n[e],r);else Fr(t,o,n,r)}}function Lr(t,e){const n=10+t+1;if(n<e.length){const t=e[n],i=t[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){const i=n.type;if(3===i)return ze(n,e);if(0===i)return Lr(-1,e[n.index]);if(4===i||5===i){const i=n.child;if(null!==i)return t(e,i);{const t=e[n.index];return Ie(t)?Lr(-1,t):Re(t)}}{const i=e[16],o=i[6],r=bo(i),s=o.projection[n.projection];return null!=s?t(r,s):t(e,n.next)}}return null}(t,i)}return e[7]}function zr(t,e,n){const i=Nr(t,e);i&&function(t,e,n,i){Ne(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}function $r(t,e,n,i,o,r,s){for(;null!=n;){const a=i[n.index],l=n.type;s&&0===e&&(a&&io(Re(a),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?($r(t,e,n.child,i,o,r,!1),xr(e,t,o,a,r)):1===l?Br(t,e,i,n,o,r):xr(e,t,o,a,r)),n=s?n.projectionNext:n.next}}function Hr(t,e,n,i,o,r){$r(n,i,t.node.child,e,o,r,!1)}function jr(t,e,n){Br(e[11],0,e,n,Dr(t,n,e),Vr(n.parent||e[6],e))}function Br(t,e,n,i,o,r){const s=n[16],a=s[6].projection[i.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)xr(e,t,o,a[l],r);else $r(t,e,a,s[3],o,r,!0)}function Ur(t,e,n){Ne(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function qr(t,e,n){Ne(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Gr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,i,o,r=!1){for(;null!==i;){const s=n[i.index];if(null!==s&&o.push(Re(s)),Ie(s))for(let e=10;e<s.length;e++){const n=s[e],i=n[1].firstChild;null!==i&&t(n[1],n,i,o)}const a=i.type;if(4===a||5===a)t(e,n,i.child,o);else if(1===a){const e=n[16],r=e[6].projection[i.projection];if(Array.isArray(r))o.push(...r);else{const n=bo(e);t(n[1],n,r,o,!0)}}i=r?i.projectionNext:i.next}return o}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}kr(this._lView[1],this._lView)}onDestroy(t){var e,n,i;e=this._lView[1],i=t,mr(n=this._lView).push(i),e.firstCreatePass&&vr(e).push(n[7].length-1,null)}markForCheck(){dr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){hr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){sn(!0);try{hr(t,e,n)}finally{sn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Hr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Wr extends Gr{constructor(t){super(t),this._view=t}detectChanges(){pr(this._view)}checkNoChanges(){!function(t){sn(!0);try{pr(t)}finally{sn(!1)}}(this._view)}get context(){return null}}let Zr,Yr,Qr;function Jr(t,e,n){return Zr||(Zr=class extends t{}),new Zr(ze(e,n))}function Kr(t,e,n,i){return Yr||(Yr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Fo(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Vo(e,n,t),new Gr(n)}}),0===n.type?new Yr(i,n,Jr(e,n,i)):null}function Xr(t,e,n,i){let o;Qr||(Qr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Jr(e,this._hostTNode,this._hostView)}get injector(){return new ai(this._hostTNode,this._hostView)}get parentInjector(){const t=Kn(this._hostTNode,this._hostView),e=$n(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=zn(t),o=e,r=e[6];for(;i>1;)o=o[15],r=o[6],i--;return r}(t,this._hostView,this._hostTNode);return Rn(t)&&null!=n?new ai(n,e):new ai(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,o){const r=n||this.parentInjector;if(!o&&null==t.ngModule&&r){const t=r.get(te,null);t&&(o=t)}const s=t.create(r,i,void 0,o);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ie(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new Qr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const o=this._adjustIndex(e);return function(t,e,n,i){const o=10+i,r=n.length;i>0&&(n[o-1][4]=e),i<r-10?(e[4]=n[o],oe(n,10+i,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(s,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,n,this._lContainer,o),Mr(i,n,!0,Lr(o,this._lContainer)),t.attachToViewContainerRef(this),oe(this._lContainer[8],o,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1);!function(t,e){const n=Ir(t,e);n&&kr(n[1],n)}(this._lContainer,e),re(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Ir(this._lContainer,e);return n&&null!=re(this._lContainer[8],e)?new Gr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=i[n.index];if(Ie(r))o=r;else{let t;if(4===n.type)t=Re(r);else if(t=i[11].createComment(""),Ae(i)){const e=i[11],o=ze(n,i);Ar(e,Nr(e,o),t,function(t,e){return Ne(t)?t.nextSibling(e):e.nextSibling}(e,o))}else Rr(i[1],i,t,n);i[n.index]=o=ar(r,i,t,n),ur(i,o)}return new Qr(o,n,i)}function ts(t=!1){return function(t,e,n){if(!n&&Se(t)){const n=je(t.index,e);return new Gr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Gr(e[16],e):null}(tn(),Je(),t)}let es=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ns(),t})();const ns=ts,is=new $t("Set Injector scope."),os={},rs={},ss=[];let as=void 0;function ls(){return void 0===as&&(as=new Xt),as}function cs(t,e=null,n=null,i){return new us(t,n,e||ls(),i)}class us{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&ie(e,n=>this.processProvider(n,t,e)),ie([t],t=>this.processInjectorType(t,[],o)),this.records.set(Ht,ps(void 0,this));const r=this.records.get(is);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:Ct(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=jt,n=ct.Default){this.assertNotDestroyed();const i=Wt(this);try{if(!(n&ct.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof $t)&&gt(t);e=n&&this.injectableDefInScope(n)?ps(ds(t),os):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&ct.Self?ls():this.parent).get(t,e=n&ct.Optional&&e===jt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(Ct(t)),i)throw r;return function(t,e,n,i){const o=t.ngTempTokenPath;throw e.__source&&o.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=Ct(e);if(Array.isArray(e))o=e.map(Ct).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):Ct(i)))}o=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${t.replace(Bt,"\n  ")}`}("\n"+t.message,o,n,i),t.ngTokenPath=o,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Wt(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(Ct(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=Pt(t)))return!1;let i=mt(t);const o=null==i&&t.ngModule||void 0,r=void 0===o?t:o,s=-1!==n.indexOf(r);if(void 0!==o&&(i=mt(o)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(r);try{ie(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:i}=t[e];ie(i,t=>this.processProvider(t,n,i||ss))}}this.injectorDefTypes.add(r),this.records.set(r,ps(i.factory,os));const a=i.providers;if(null!=a&&!s){const e=t;ie(a,t=>this.processProvider(t,e,a))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,n){let i=fs(t=Pt(t))?t:Pt(t&&t.provide);const o=function(t,e,n){return gs(t)?ps(void 0,t.useValue):ps(hs(t,e,n),os)}(t,e,n);if(fs(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&ro()}else{let e=this.records.get(i);e?void 0===e.multi&&ro():(e=ps(void 0,os,!0),e.factory=()=>Kt(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,o)}hydrate(t,e){var n;return e.value===rs?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(Ct(t)):e.value===os&&(e.value=rs,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function ds(t){const e=gt(t),n=null!==e?e.factory:Oe(t);if(null!==n)return n;const i=mt(t);if(null!==i)return i.factory;if(t instanceof $t)throw new Error(`Token ${Ct(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=se(e,"?");throw new Error(`Can't resolve all parameters for ${Ct(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[vt]||t[_t]||t[yt]&&t[yt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function hs(t,e,n){let i=void 0;if(fs(t)){const e=Pt(t);return Oe(e)||ds(e)}if(gs(t))i=()=>Pt(t.useValue);else if((o=t)&&o.useFactory)i=()=>t.useFactory(...Kt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Qt(Pt(t.useExisting));else{const o=Pt(t&&(t.useClass||t.provide));if(o||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${Ct(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Oe(o)||ds(o);i=()=>new o(...Kt(t.deps))}var o;return i}function ps(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function gs(t){return null!==t&&"object"==typeof t&&Ut in t}function fs(t){return"function"==typeof t}const ms=function(t,e,n){return function(t,e=null,n=null,i){const o=cs(t,e,n,i);return o._resolveInjectorDefTypes(),o}({name:n},e,t,n)};let vs=(()=>{class t{static create(t,e){return Array.isArray(t)?ms(t,e,""):ms(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=jt,t.NULL=new Xt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Qt(Ht)}),t.__NG_ELEMENT_ID__=-1,t})();const bs=new $t("AnalyzeForEntryComponents");let ys=new Map;const _s=new Set;function ws(t){return"string"==typeof t?t:t.text()}function Cs(t,e,n){let i=n?t.styles:null,o=n?t.classes:null,r=0;if(null!==e)for(let s=0;s<e.length;s++){const t=e[s];"number"==typeof t?r=t:1==r?o=xt(o,t):2==r&&(i=xt(i,t+": "+e[++s]+";"))}n?t.styles=i:t.stylesWithoutHost=i,n?t.classes=o:t.classesWithoutHost=o}let xs=null;function Os(){if(!xs){const t=At.Symbol;if(t&&t.iterator)xs=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(xs=n)}}}return xs}function Ms(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class Ps{constructor(t){this.wrapped=t}static wrap(t){return new Ps(t)}static unwrap(t){return Ps.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Ps}}function Is(t){return!!ks(t)&&(Array.isArray(t)||!(t instanceof Map)&&Os()in t)}function ks(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ss(t,e,n){return t[e]=n}function Es(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ds(t,e,n,i){const o=Es(t,e,n);return Es(t,e+1,i)||o}function As(t,e,n,i){const o=Je();return Es(o,cn(),e)&&(Ke(),or(On(),o,t,e,n,i)),As}function Ts(t,e,n,i){return Es(t,cn(),n)?e+Hn(n)+i:vo}function Fs(t,e,n,i,o,r){const s=Ds(t,ln(),n,o);return un(2),s?e+Hn(n)+i+Hn(o)+r:vo}function Ns(t,e,n,i,o,r,s,a){const l=Je(),c=Ke(),u=t+20,d=c.firstCreatePass?function(t,e,n,i,o,r,s,a,l){const c=e.consts,u=No(e,n[6],t,0,s||null,Ge(c,a));Zo(e,n,u,Ge(c,l)),Mn(e,u);const d=u.tViews=Uo(2,-1,i,o,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),h=qo(0,null,2,-1,null,null);return h.injectorIndex=u.injectorIndex,d.node=h,null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(t,c,l,e,n,i,o,r,s):c.data[u];en(d,!1);const h=l[11].createComment("");Rr(c,l,h,d),io(h,l),ur(l,l[u]=ar(h,l,h,d)),Ee(d)&&Ho(c,l,d),null!=s&&jo(l,d,a)}function Vs(t){return He(Ye.lFrame.contextLView,t)}function Rs(t,e=ct.Default){const n=Je();return null==n?Qt(t,e):ti(tn(),n,Pt(t),e)}function Ls(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i<t;){const o=n[i];if(Tn(o))break;if(0===o)i+=2;else if("number"==typeof o)for(i++;i<t&&"string"==typeof n[i];)i++;else{if(o===e)return n[i+1];i+=2}}}return null}(tn(),t)}function zs(){throw new Error("invalid")}function $s(t,e,n){const i=Je();return Es(i,cn(),e)&&Wo(Ke(),On(),i,t,e,i[11],n,!1),$s}function Hs(t,e,n,i,o){const r=o?"class":"style";yr(t,n,e.inputs[r],r,i)}function js(t,e,n,i){const o=Je(),r=Ke(),s=20+t,a=o[11],l=o[s]=To(e,a,Ye.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,i,o,r,s){const a=e.consts,l=Ge(a,r),c=No(e,n[6],t,3,o,l);return Zo(e,n,c,Ge(a,s)),null!==c.attrs&&Cs(c,c.attrs,!1),null!==c.mergedAttrs&&Cs(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,o,0,e,n,i):r.data[s];en(c,!0);const u=c.mergedAttrs;null!==u&&An(a,l,u);const d=c.classes;null!==d&&qr(a,l,d);const h=c.styles;null!==h&&Ur(a,l,h),Rr(r,o,l,c),0===Ye.lFrame.elementDepthCount&&io(l,o),Ye.lFrame.elementDepthCount++,Ee(c)&&(Ho(r,o,c),$o(r,c,o)),null!==i&&jo(o,c)}function Bs(){let t=tn();nn()?on():(t=t.parent,en(t,!1));const e=t;Ye.lFrame.elementDepthCount--;const n=Ke();n.firstCreatePass&&(Mn(n,t),ke(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&Hs(n,e,Je(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&Hs(n,e,Je(),e.stylesWithoutHost,!1)}function Us(t,e,n,i){js(t,e,n,i),Bs()}function qs(t,e,n){const i=Je(),o=Ke(),r=t+20,s=o.firstCreatePass?function(t,e,n,i,o){const r=e.consts,s=Ge(r,i),a=No(e,n[6],t,4,"ng-container",s);return null!==s&&Cs(a,s,!0),Zo(e,n,a,Ge(r,o)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,o,i,e,n):o.data[r];en(s,!0);const a=i[r]=i[11].createComment("");Rr(o,i,a,s),io(a,i),Ee(s)&&(Ho(o,i,s),$o(o,s,i)),null!=n&&jo(i,s)}function Gs(){let t=tn();const e=Ke();nn()?on():(t=t.parent,en(t,!1)),e.firstCreatePass&&(Mn(e,t),ke(t)&&e.queries.elementEnd(t))}function Ws(){return Je()}function Zs(t){return!!t&&"function"==typeof t.then}function Ys(t){return!!t&&"function"==typeof t.subscribe}function Qs(t,e,n=!1,i){const o=Je(),r=Ke(),s=tn();return function(t,e,n,i,o,r,s=!1,a){const l=Ee(i),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=mr(e);let d=!0;if(3===i.type){const h=ze(i,e),p=a?a(h):he,g=p.target||h,f=u.length,m=a?t=>a(Re(t[i.index])).target:i.index;if(Ne(n)){let s=null;if(!a&&l&&(s=function(t,e,n,i){const o=t.cleanup;if(null!=o)for(let r=0;r<o.length-1;r+=2){const t=o[r];if(t===n&&o[r+1]===i){const t=e[7],n=o[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,o,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=r,s.__ngLastListenerFn__=r,d=!1;else{r=Ks(i,e,r,!1);const t=n.listen(p.name||g,o,r);u.push(r,t),c&&c.push(o,m,f,f+1)}}else r=Ks(i,e,r,!0),g.addEventListener(o,r,s),u.push(r),c&&c.push(o,m,f,s)}const h=i.outputs;let p;if(d&&null!==h&&(p=h[o])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),s=u.length;u.push(r,t),c&&c.push(o,i.index,s,-(s+1))}}}(r,o,o[11],s,t,e,n,i),Qs}function Js(t,e,n){try{return!1!==e(n)}catch(i){return br(t,i),!1}}function Ks(t,e,n,i){return function o(r){if(r===Function)return n;const s=2&t.flags?je(t.index,e):e;0==(32&e[2])&&dr(s);let a=Js(e,n,r),l=o.__ngNextListenerFn__;for(;l;)a=Js(e,l,r)&&a,l=l.__ngNextListenerFn__;return i&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Xs(t=1){return function(t){return(Ye.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ye.lFrame.contextLView))[8]}(t)}let ta=!1;function ea(t){ta=t}function na(t,e,n){return ia(t,"",e,"",n),na}function ia(t,e,n,i,o){const r=Je(),s=Ts(r,e,n,i);return s!==vo&&Wo(Ke(),On(),r,t,s,r[11],o,!1),ia}function oa(t,e,n,i,o,r,s){const a=Je(),l=Fs(a,e,n,i,o,r);return l!==vo&&Wo(Ke(),On(),a,t,l,a[11],s,!1),oa}const ra=[];function sa(t,e,n,i,o){const r=t[n+1],s=null===e;let a=i?Io(r):So(r),l=!1;for(;0!==a&&(!1===l||s);){const n=t[a+1];aa(t[a],e)&&(l=!0,t[a+1]=i?Do(n):ko(n)),a=i?Io(n):So(n)}l&&(t[n+1]=i?ko(r):Do(r))}function aa(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ce(t,e)>=0}const la={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ca(t){return t.substring(la.key,la.keyEnd)}function ua(t){return t.substring(la.value,la.valueEnd)}function da(t,e){const n=la.textEnd;return n===e?-1:(e=la.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,la.key=e,n),ga(t,e,n))}function ha(t,e){const n=la.textEnd;let i=la.key=ga(t,e,n);return n===i?-1:(i=la.keyEnd=function(t,e,n){let i;for(;e<n&&(45===(i=t.charCodeAt(e))||95===i||(-33&i)>=65&&(-33&i)<=90);)e++;return e}(t,i,n),i=fa(t,i,n),i=la.value=ga(t,i,n),i=la.valueEnd=function(t,e,n){let i=-1,o=-1,r=-1,s=e,a=s;for(;s<n;){const l=t.charCodeAt(s++);if(59===l)return a;34===l||39===l?a=s=ma(t,l,s,n):e===s-4&&85===r&&82===o&&76===i&&40===l?a=s=ma(t,41,s,n):l>32&&(a=s),r=o,o=i,i=-33&l}return a}(t,i,n),fa(t,i,n))}function pa(t){la.key=0,la.keyEnd=0,la.value=0,la.valueEnd=0,la.textEnd=t.length}function ga(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function fa(t,e,n,i){return(e=ga(t,e,n))<n&&e++,e}function ma(t,e,n,i){let o=-1,r=n;for(;r<i;){const n=t.charCodeAt(r++);if(n==e&&92!==o)return r;o=92==n&&92===o?0:n}throw new Error}function va(t,e,n){return wa(t,e,n,!1),va}function ba(t,e){return wa(t,e,null,!0),ba}function ya(t,e){for(let n=function(t){return pa(t),ha(t,ga(t,0,la.textEnd))}(e);n>=0;n=ha(e,n))Ia(t,ca(e),ua(e))}function _a(t,e){for(let n=function(t){return pa(t),da(t,ga(t,0,la.textEnd))}(e);n>=0;n=da(e,n))ae(t,ca(e),!0)}function wa(t,e,n,i){const o=Je(),r=Ke(),s=un(2);if(r.firstUpdatePass&&Oa(r,t,s,i),e!==vo&&Es(o,s,e)){let a;null==n&&(a=function(){const t=Ye.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),ka(r,r.data[Cn()+20],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Ct(_i(t)))),t}(e,n),i,s)}}function Ca(t,e,n,i){const o=Ke(),r=un(2);o.firstUpdatePass&&Oa(o,null,r,i);const s=Je();if(n!==vo&&Es(s,r,n)){const a=o.data[Cn()+20];if(Da(a,i)&&!xa(o,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=xt(t,n||"")),Hs(o,a,s,n,i)}else!function(t,e,n,i,o,r,s,a){o===vo&&(o=ra);let l=0,c=0,u=0<o.length?o[0]:null,d=0<r.length?r[0]:null;for(;null!==u||null!==d;){const h=l<o.length?o[l+1]:void 0,p=c<r.length?r[c+1]:void 0;let g=null,f=void 0;u===d?(l+=2,c+=2,h!==p&&(g=d,f=p)):null===d||null!==u&&u<d?(l+=2,g=u):(c+=2,g=d,f=p),null!==g&&ka(t,e,n,i,g,f,s,a),u=l<o.length?o[l]:null,d=c<r.length?r[c]:null}}(o,a,s,s[11],s[r+1],s[r+1]=function(t,e,n){if(null==n||""===n)return ra;const i=[],o=_i(n);if(Array.isArray(o))for(let r=0;r<o.length;r++)t(i,o[r],!0);else if("object"==typeof o)for(const r in o)o.hasOwnProperty(r)&&t(i,r,o[r]);else"string"==typeof o&&e(i,o);return i}(t,e,n),i,r)}}function xa(t,e){return e>=t.expandoStartIndex}function Oa(t,e,n,i){const o=t.data;if(null===o[n+1]){const r=o[Cn()+20],s=xa(t,n);Da(r,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const o=function(t){const e=Ye.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=i?e.residualClasses:e.residualStyles;if(null===o)0===(i?e.classBindings:e.styleBindings)&&(n=Pa(n=Ma(null,t,e,n,i),e.attrs,i),r=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Ma(o,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==So(i))return t[Io(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Ma(null,t,e,n[1],i),n=Pa(n,e.attrs,i),function(t,e,n,i){t[Io(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const o=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<o;r++)i=Pa(i,t[r].hostAttrs,n);return Pa(i,e.attrs,n)}(t,e,i)}return void 0!==r&&(i?e.residualClasses=r:e.residualStyles=r),n}(o,r,e,i),function(t,e,n,i,o,r){let s=r?e.classBindings:e.styleBindings,a=Io(s),l=So(s);t[i]=n;let c,u=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ce(t,c)>0)&&(u=!0)}else c=n;if(o)if(0!==l){const e=Io(t[a+1]);t[i+1]=Po(e,a),0!==e&&(t[e+1]=Eo(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Po(a,0),0!==a&&(t[a+1]=Eo(t[a+1],i)),a=i;else t[i+1]=Po(l,0),0===a?a=i:t[l+1]=Eo(t[l+1],i),l=i;u&&(t[i+1]=ko(t[i+1])),sa(t,c,i,!0),sa(t,c,i,!1),function(t,e,n,i,o){const r=o?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ce(r,e)>=0&&(n[i+1]=Do(n[i+1]))}(e,c,t,i,r),s=Po(a,l),r?e.classBindings=s:e.styleBindings=s}(o,r,e,n,s,i)}}function Ma(t,e,n,i,o){let r=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(r=e[a],i=Pa(i,r.hostAttrs,o),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),i}function Pa(t,e,n){const i=n?1:2;let o=-1;if(null!==e)for(let r=0;r<e.length;r++){const s=e[r];"number"==typeof s?o=s:o===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ae(t,s,!!n||e[++r]))}return void 0===t?null:t}function Ia(t,e,n){var i;("background-image"===(i=e)||"backgroundImage"===i||"background"===i||"border-image"===i||"borderImage"===i||"border-image-source"===i||"borderImageSource"===i||"filter"===i||"list-style"===i||"listStyle"===i||"list-style-image"===i||"listStyleImage"===i||"clip-path"===i||"clipPath"===i)&&(n=function(t){const e=no();return e?e.sanitize(Yi.STYLE,t)||"":wi(t,"Style")?_i(t):Ki(Hn(t))}(n)),ae(t,e,n)}function ka(t,e,n,i,o,r,s,a){if(3!==e.type)return;const l=t.data,c=l[a+1];Ea(1==(1&c)?Sa(l,e,n,o,So(c),s):void 0)||(Ea(r)||function(t){return 2==(2&t)}(c)&&(r=Sa(l,null,n,o,a,s)),function(t,e,n,i,o){const r=Ne(t);if(e)o?r?t.addClass(n,i):n.classList.add(i):r?t.removeClass(n,i):n.classList.remove(i);else{const e=-1==i.indexOf("-")?void 0:2;null==o?r?t.removeStyle(n,i,e):n.style.removeProperty(i):r?t.setStyle(n,i,o,e):n.style.setProperty(i,o)}}(i,s,Le(Cn(),n),o,r))}function Sa(t,e,n,i,o,r){const s=null===e;let a=void 0;for(;o>0;){const e=t[o],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let u=n[o+1];u===vo&&(u=c?ra:void 0);let d=c?le(u,i):l===i?u:void 0;if(r&&!Ea(d)&&(d=le(e,i)),Ea(d)&&(a=d,s))return a;const h=t[o+1];o=s?Io(h):So(h)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=le(t,i))}return a}function Ea(t){return void 0!==t}function Da(t,e){return 0!=(t.flags&(e?16:32))}function Aa(t,e=""){const n=Je(),i=Ke(),o=t+20,r=i.firstCreatePass?No(i,n[6],t,3,null,null):i.data[o],s=n[o]=Or(e,n[11]);Rr(i,n,s,r),en(r,!1)}function Ta(t){return Fa("",t,""),Ta}function Fa(t,e,n){const i=Je(),o=Ts(i,t,e,n);return o!==vo&&_r(i,Cn(),o),Fa}function Na(t,e,n,i,o){const r=Je(),s=Fs(r,t,e,n,i,o);return s!==vo&&_r(r,Cn(),s),Na}function Va(t,e,n){Ca(ae,_a,Ts(Je(),t,e,n),!0)}function Ra(t,e,n){const i=Je();return Es(i,cn(),e)&&Wo(Ke(),On(),i,t,e,i[11],n,!0),Ra}function La(t,e){const n=Be(t)[1],i=n.data.length-1;Mn(n,{directiveStart:i,directiveEnd:i+1})}function za(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let o=void 0;if(De(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){i.push(o);const e=t;e.inputs=$a(t.inputs),e.declaredInputs=$a(t.declaredInputs),e.outputs=$a(t.outputs);const n=o.hostBindings;n&&Ba(t,n);const r=o.viewQuery,s=o.contentQueries;if(r&&Ha(t,r),s&&ja(t,s),dt(t.inputs,o.inputs),dt(t.declaredInputs,o.declaredInputs),dt(t.outputs,o.outputs),De(o)&&o.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(o.data.animation)}e.afterContentChecked=e.afterContentChecked||o.afterContentChecked,e.afterContentInit=t.afterContentInit||o.afterContentInit,e.afterViewChecked=t.afterViewChecked||o.afterViewChecked,e.afterViewInit=t.afterViewInit||o.afterViewInit,e.doCheck=t.doCheck||o.doCheck,e.onDestroy=t.onDestroy||o.onDestroy,e.onInit=t.onInit||o.onInit}const e=o.features;if(e)for(let i=0;i<e.length;i++){const o=e[i];o&&o.ngInherit&&o(t),o===za&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let i=t.length-1;i>=0;i--){const o=t[i];o.hostVars=e+=o.hostVars,o.hostAttrs=Nn(o.hostAttrs,n=Nn(n,o.hostAttrs))}}(i)}function $a(t){return t===he?{}:t===pe?[]:t}function Ha(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function ja(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,o)=>{e(t,i,o),n(t,i,o)}:e}function Ba(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}class Ua{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function qa(t){t.type.prototype.ngOnChanges&&(t.setInput=Ga,t.onChanges=function(){const t=Wa(this),e=t&&t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ga(t,e,n,i){const o=Wa(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];r[a]=new Ua(l&&l.currentValue,e,s===he),t[i]=e}function Wa(t){return t.__ngSimpleChanges__||null}function Za(t,e,n,i,o){if(t=Pt(t),Array.isArray(t))for(let r=0;r<t.length;r++)Za(t[r],e,n,i,o);else{const r=Ke(),s=Je();let a=fs(t)?t:Pt(t.provide),l=hs(t);const c=tn(),u=65535&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>16;if(fs(t)||!t.multi){const i=new Dn(l,o,Rs),p=Ja(a,e,o?u:u+h,d);-1===p?(Xn(Yn(c,s),r,a),Ya(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=65536),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=Ja(a,e,u+h,d),g=Ja(a,e,u,u+h),f=p>=0&&n[p],m=g>=0&&n[g];if(o&&!m||!o&&!f){Xn(Yn(c,s),r,a);const u=function(t,e,n,i,o){const r=new Dn(t,n,Rs);return r.multi=[],r.index=e,r.componentProviders=0,Qa(r,o,i&&!n),r}(o?Xa:Ka,n.length,o,i,l);!o&&m&&(n[g].providerFactory=u),Ya(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=65536),n.push(u),s.push(u)}else Ya(r,t,p>-1?p:g,Qa(n[o?g:p],l,!o&&i));!o&&i&&m&&n[g].componentProviders++}}}function Ya(t,e,n,i){const o=fs(e);if(o||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const s=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,r]):s[t+1].push(i,r)}else s.push(n,r)}}}function Qa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ja(t,e,n,i){for(let o=n;o<i;o++)if(e[o]===t)return o;return-1}function Ka(t,e,n,i){return tl(this.multi,[])}function Xa(t,e,n,i){const o=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=oi(n,n[1],this.providerFactory.index,i);r=e.slice(0,t),tl(o,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],tl(o,r);return r}function tl(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function el(t,e=[]){return n=>{n.providersResolver=(n,i)=>function(t,e,n){const i=Ke();if(i.firstCreatePass){const o=De(t);Za(n,i.data,i.blueprint,o,!0),Za(e,i.data,i.blueprint,o,!1)}}(n,i?i(t):t,e)}}qa.ngInherit=!0;class nl{}class il{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${Ct(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ol=(()=>{class t{}return t.NULL=new il,t})(),rl=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>sl(t),t})();const sl=function(t){return Jr(t,tn(),Je())};class al{}const ll=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let cl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ul(),t})();const ul=function(){const t=Je(),e=je(tn().index,t);return function(t){const e=t[11];if(Ne(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Pe(e)?e:t)};let dl=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class hl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pl=new hl("9.1.13");class gl{constructor(){}supports(t){return Is(t)}create(t){return new ml(t)}}const fl=(t,e)=>e;class ml{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,o=null;for(;e||n;){const r=!n||e&&e.currentIndex<_l(n,i,o)?e:n,s=_l(r,i,o),a=r.currentIndex;if(r===n)i--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)i++;else{o||(o=[]);const t=s-i,e=a-i;if(t!=e){for(let n=0;n<t;n++){const i=n<o.length?o[n]:o[n]=0,r=i+n;e<=r&&r<t&&(o[n]=i+1)}o[r.previousIndex]=e-t}}s!==a&&t(r,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Is(t))throw new Error(`Error trying to diff '${Ct(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,i,o=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],i=this._trackByFn(e,n),null!==o&&Ms(o.trackById,i)?(r&&(o=this._verifyReinsertion(o,n,i,e)),Ms(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,i,e),r=!0),o=o._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[Os()]();let i;for(;!(i=n.next()).done;)e(i.value)}}(t,t=>{i=this._trackByFn(e,t),null!==o&&Ms(o.trackById,i)?(r&&(o=this._verifyReinsertion(o,t,i,e)),Ms(o.item,t)||this._addIdentityChange(o,t)):(o=this._mismatch(o,t,i,e),r=!0),o=o._next,e++}),this.length=e;return this._truncate(o),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Ms(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ms(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,i)):t=this._addAfter(new vl(e,n),o,i),t}_verifyReinsertion(t,e,n,i){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new yl),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new yl),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class vl{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class bl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ms(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class yl{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new bl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _l(t,e,n){const i=t.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+e+o}class wl{constructor(){}supports(t){return t instanceof Map||ks(t)}create(){return new Cl}}class Cl{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ks(t)))throw new Error(`Error trying to diff '${Ct(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,o=n._next;return i&&(i._next=o),o&&(o._prev=i),n._next=null,n._prev=null,n}const n=new xl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Ms(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class xl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ol=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new gl])}),t})(),Ml=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lt,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new wl])}),t})();const Pl=[new wl],Il=new Ol([new gl]),kl=new Ml(Pl);let Sl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>El(t,rl),t})();const El=function(t,e){return Kr(t,e,tn(),Je())};let Dl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Al(t,rl),t})();const Al=function(t,e){return Xr(t,e,tn(),Je())},Tl={};class Fl extends ol{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=xe(t);return new Rl(e,this.ngModule)}}function Nl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Vl=new $t("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bn});class Rl extends nl{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(mo).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Nl(this.componentDef.inputs)}get outputs(){return Nl(this.componentDef.outputs)}create(t,e,n,i){const o=(i=i||this.ngModule)?function(t,e){return{get:(n,i,o)=>{const r=t.get(n,Tl,o);return r!==Tl||i===Tl?r:e.get(n,i,o)}}}(t,i.injector):t,r=o.get(al,Ve),s=o.get(dl,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ne(t))return t.selectRootElement(e,n===de.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):To(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),h={components:[],scheduler:Bn,clean:fr,playerHandler:null,flags:0},p=Uo(0,-1,null,1,0,null,null,null,null,null),g=Fo(null,p,h,u,null,null,r,a,s,o);let f,m;mn(g,null);try{const t=function(t,e,n,i,o,r){const s=n[1];n[20]=t;const a=No(s,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Cs(a,l,!0),null!==t&&(An(o,t,l),null!==a.classes&&qr(o,t,a.classes),null!==a.styles&&Ur(o,t,a.styles)));const c=i.createRenderer(t,e),u=Fo(n,Bo(e),null,e.onPush?64:16,n[20],a,i,c,void 0);return s.firstCreatePass&&(Xn(Yn(a,n),s,e.type),Xo(s,a),er(a,n.length,1)),ur(n,u),n[20]=u}(c,this.componentDef,g,r,a);if(c)if(n)An(a,c,["ng-version",pl.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,o=2;for(;i<t.length;){let r=t[i];if("string"==typeof r)2===o?""!==r&&e.push(r,t[++i]):8===o&&n.push(r);else{if(!ho(o))break;o=r}i++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&An(a,c,t),e&&e.length>0&&qr(a,c,e.join(" "))}if(m=$e(p,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const i=e[n];t.push(null!=i?Array.from(i):null)}}f=function(t,e,n,i,o){const r=n[1],s=function(t,e,n){const i=tn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ko(t,i,1),nr(t,e,n));const o=oi(e,t,e.length-1,i);io(o,e);const r=ze(i,e);return r&&io(r,e),o}(r,n,e);i.components.push(s),t[8]=s,o&&o.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=tn();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){xn(a.index-20);const t=n[1];Yo(t,e),Qo(t,n,e.hostVars),Jo(e,s)}return s}(t,this.componentDef,g,h,[La]),Vo(p,g,null)}finally{wn()}const v=new Ll(this.componentType,f,Jr(rl,m,g),g,m);return n&&!d||(p.node.child=m),v}}class Ll extends class{}{constructor(t,e,n,i,o){super(),this.location=n,this._rootLView=i,this._tNode=o,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Wr(i),function(t,e,n,i){let o=t.node;null==o&&(t.node=o=qo(0,null,2,-1,null,null)),i[6]=o}(i[1],0,0,i),this.componentType=t}get injector(){return new ai(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const zl=void 0;var $l=["en",[["a","p"],["AM","PM"],zl],[["AM","PM"],zl,zl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],zl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],zl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",zl,"{1} 'at' {0}",zl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Hl={};function jl(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ul(e);if(n)return n;const i=e.split("-")[0];if(n=Ul(i),n)return n;if("en"===i)return $l;throw new Error(`Missing locale data for the locale "${t}".`)}function Bl(t){return jl(t)[ql.PluralCase]}function Ul(t){return t in Hl||(Hl[t]=At.ng&&At.ng.common&&At.ng.common.locales&&At.ng.common.locales[t]),Hl[t]}const ql=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}(),Gl=["zero","one","two","few","many"],Wl=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Zl=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Yl=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Ql=/\ufffd(\d+):?\d*\ufffd/gi;function Jl(t){if(!t)return[];let e=0;const n=[],i=[],o=/[{}]/g;let r;for(o.lastIndex=0;r=o.exec(t);){const o=r.index;if("}"==r[0]){if(n.pop(),0==n.length){const n=t.substring(e,o);Wl.test(n)?i.push(Kl(n)):i.push(n),e=o+1}}else{if(0==n.length){const n=t.substring(e,o);i.push(n),e=o+1}n.push("{")}}const s=t.substring(e);return i.push(s),i}function Kl(t){const e=[],n=[];let i=1,o=0;const r=Jl(t=t.replace(Wl,(function(t,e,n){return i="select"===n?0:1,o=parseInt(e.substr(1),10),""})));for(let s=0;s<r.length;){let t=r[s++].trim();1===i&&(t=t.replace(/\s*(?:=)?(\w+)\s*/,"$1")),t.length&&e.push(t);const o=Jl(r[s++]);e.length>n.length&&n.push(o)}return{type:i,mainBinding:o,cases:e,values:n}}function Xl(t){let e,n,i="",o=0,r=!1;for(;null!==(e=Zl.exec(t));)r?e[0]===`\ufffd/*${n}\ufffd`&&(o=e.index,r=!1):(i+=t.substring(o,e.index+e[0].length),n=e[1],r=!0);return i+=t.substr(o),i}function tc(t,e,n,i=null){const o=[null,null],r=t.split(Ql);let s=0;for(let a=0;a<r.length;a++){const t=r[a];if(1&a){const e=parseInt(t,10);o.push(-1-e),s|=oc(e)}else""!==t&&o.push(t)}return o.push(e<<2|(n?1:0)),n&&o.push(n,i),o[0]=s,o[1]=o.length-2,o}function ec(t,e=0){let n;e|=oc(t.mainBinding);for(let i=0;i<t.values.length;i++){const o=t.values[i];for(let t=0;t<o.length;t++){const i=o[t];if("string"==typeof i)for(;n=Ql.exec(i);)e|=oc(parseInt(n[1],10));else e=ec(i,e)}}return e}const nc=[];let ic=-1;function oc(t){return 1<<Math.min(t,31)}const rc=[];let sc;function ac(t){return t+sc++}function lc(t,e,n,i,o){const r=e.next;i||(i=n),i===n&&e!==n.child?(e.next=n.child,n.child=e):i!==n&&e!==i.next?(e.next=i.next,i.next=e):e.next=null,n!==o[6]&&(e.parent=n);let s=e.next;for(;s;)s.next===e&&(s.next=r),s=s.next;if(1===e.type)return jr(t,o,e),e;Rr(t,o,ze(e,o),e);const a=o[e.index];return 0!==e.type&&Ie(a)&&Rr(t,o,a[7],e),e}function cc(t){return void 0===t}function uc(t,e,n,i,o,r){const s=tn();e[n+20]=o;const a=No(t,e[6],n,i,r,null);return s&&s.next===a&&(s.next=null),a}function dc(t,e,n,i){const o=i[11];let r=null,s=null;const a=[];for(let l=0;l<e.length;l++){const c=e[l];if("string"==typeof c){const t=Or(c,o),u=e[++l];s=r,r=uc(n,i,u,3,t,null),a.push(u),on()}else if("number"==typeof c)switch(7&c){case 1:const o=c>>>17;let u;u=o===t?i[6]:$e(n,o),s=lc(n,r,u,s,i);break;case 0:const d=c>=0,h=(d?c:~c)>>>3;a.push(h),s=r,r=$e(n,h),r&&en(r,d);break;case 5:s=r=$e(n,c>>>3),en(r,!1);break;case 4:const p=e[++l],g=e[++l];or($e(n,c>>>3),i,p,g,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case Mo:const t=e[++l],u=e[++l],d=o.createComment(t);s=r,r=uc(n,i,u,5,d,null),a.push(u),io(d,i),r.activeCaseIndex=null,on();break;case Oo:const h=e[++l],p=e[++l];s=r,r=uc(n,i,p,3,o.createElement(h),h),a.push(p);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}}return on(),a}function hc(t,e,n,i){const o=$e(t,n),r=Le(n,e);r&&zr(e[11],r);const s=He(e,n);if(Ie(s)){const t=s;0!==o.type&&zr(e[11],t[7])}i&&(o.flags|=64)}function pc(t,e,n){(function(t,e,n){const i=Ke();nc[++ic]=t,ea(!0),i.firstCreatePass&&null===i.data[t+20]&&function(t,e,n,i,o){const r=e.blueprint.length-20;sc=0;const s=tn(),a=nn()?s:s&&s.parent;let l=a&&a!==t[6]?a.index-20:n,c=0;rc[c]=l;const u=[];if(n>0&&s!==a){let t=s.index-20;nn()||(t=~t),u.push(t<<3|0)}const d=[],h=[];if(""===i&&cc(o))u.push(i,ac(r),l<<17|1);else{const t=function(t,e){if(cc(e))return Xl(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,i=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return Xl(t.substring(n,i))}}(i,o),e=(p=t,p.replace(wc," ")).split(Yl);for(let n=0;n<e.length;n++){let i=e[n];if(1&n)if("/"===i.charAt(0)){if("#"===i.charAt(1)){const t=parseInt(i.substr(2),10);l=rc[--c],u.push(t<<3|5)}}else{const t=parseInt(i.substr(1),10),e="#"===i.charAt(0);u.push((e?t:~t)<<3|0,l<<17|1),e&&(rc[++c]=l=t)}else{const e=Jl(i);for(let n=0;n<e.length;n++)if(1&n){const i=e[n];if("object"!=typeof i)throw new Error(`Unable to parse ICU expression in "${t}" message.`);const o=ac(r);u.push(Mo,"",o,l<<17|1);const s=ec(i);bc(h,i,o,o);const a=h.length-1;d.push(oc(i.mainBinding),3,-1-i.mainBinding,o<<2|2,a,s,2,o<<2|3,a)}else if(""!==e[n]){const t=e[n],i=t.match(Ql),o=ac(r);u.push(i?"":t,o,l<<17|1),i&&ne(tc(t,o),d)}}}}var p;sc>0&&function(t,e,n){if(n>0&&t.firstCreatePass){for(let i=0;i<n;i++)t.blueprint.push(null),t.data.push(null),e.push(null);t.expandoInstructions?t.expandoInstructions.push(n):t.expandoStartIndex+=n}}(e,t,sc),e.data[n+20]={vars:sc,create:u,update:d,icus:h.length?h:null}}(Je(),i,t,e,n)})(t,e,n),function(){const t=Je();!function(t,e){const n=nc[ic--],i=t.data[n+20],o=tn(),r=dc(n,i.create,t,e);let s=n+1;for(;s<=o.index-20;){-1===r.indexOf(s)&&hc(t,e,s,!0);const n=$e(t,s);!n||0!==n.type&&3!==n.type&&4!==n.type||null===n.localNames||(s+=n.localNames.length>>1),s++}}(Ke(),t),ea(!1)}()}let gc=0,fc=0;function mc(t){return Es(Je(),cn(),t)&&(gc|=1<<fc),fc++,mc}function vc(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const i=function(t,e){const n=Bl(e)(parseInt(t,10)),i=Gl[n];return void 0!==i?i:"other"}(e,Cc);n=t.cases.indexOf(i),-1===n&&"other"!==i&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}function bc(t,e,n,i){const o=[],r=[],s=[],a=[],l=[];for(let c=0;c<e.values.length;c++){const u=e.values[c],d=[];for(let t=0;t<u.length;t++){const e=u[t];if("string"!=typeof e){const n=d.push(e)-1;u[t]=`\x3c!--\ufffd${n}\ufffd--\x3e`}}const h=yc(u.join(""),n,d,t,i);o.push(h.create),r.push(h.remove),s.push(h.update),a.push(h.vars),l.push(h.childIcus)}t.push({type:e.type,vars:a,childIcus:l,cases:e.cases,create:o,remove:r,update:s}),sc+=Math.max(...a)}function yc(t,e,n,i,o){const r=new Pi(Fe()).getInertBodyElement(t);if(!r)throw new Error("Unable to generate inert body element");const s={vars:0,childIcus:[],create:[],remove:[],update:[]};return function t(e,n,i,o,r,s){if(e){const a=[];for(;e;){const l=e.nextSibling,c=s+ ++n.vars;switch(e.nodeType){case Node.ELEMENT_NODE:const l=e,u=l.tagName.toLowerCase();if(Ri.hasOwnProperty(u)){n.create.push(Oo,u,c,i<<17|1);const a=l.attributes;for(let t=0;t<a.length;t++){const e=a.item(t),i=e.name.toLowerCase();e.value.match(Ql)?$i.hasOwnProperty(i)&&ne(Li[i]?tc(e.value,c,e.name,Si):zi[i]?tc(e.value,c,e.name,Ei):tc(e.value,c,e.name),n.update):n.create.push(c<<3|4,e.name,e.value)}t(e.firstChild,n,c,o,r,s),n.remove.push(c<<3|3)}else n.vars--;break;case Node.TEXT_NODE:const d=e.textContent||"",h=d.match(Ql);n.create.push(h?"":d,c,i<<17|1),n.remove.push(c<<3|3),h&&ne(tc(d,c),n.update);break;case Node.COMMENT_NODE:const p=_c.exec(e.textContent||"");if(p){const t=parseInt(p[1],10);n.create.push(Mo,"",c,i<<17|1),a.push([o[t],c])}else n.vars--;break;default:n.vars--}e=l}for(let t=0;t<a.length;t++){const e=a[t][0],i=a[t][1];bc(r,e,i,s+n.vars);const o=r.length-1;n.vars+=Math.max(...r[o].vars),n.childIcus.push(o);const l=ec(e);n.update.push(oc(e.mainBinding),3,-1-e.mainBinding,i<<2|2,o,l,2,i<<2|3,o),n.remove.push(o<<3|6,i<<3|3)}}}((Zi(r)||r).firstChild,s,e,n,i,o),s}const _c=/\ufffd(\d+)\ufffd/,wc=/\uE500/g;let Cc="en-US";function xc(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Cc=t.toLowerCase().replace(/_/g,"-"))}const Oc=new Map;class Mc extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fl(this);const n=Me(t),i=t[Rt]||null;i&&xc(i),this._bootstrapComponents=qn(n.bootstrap),this._r3Injector=cs(t,e,[{provide:te,useValue:this},{provide:ol,useValue:this.componentFactoryResolver}],Ct(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=vs.THROW_IF_NOT_FOUND,n=ct.Default){return t===vs||t===te||t===Ht?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Pc extends ee{constructor(t){super(),this.moduleType=t,null!==Me(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Ct(e)} vs ${Ct(e.name)}`)})(t,Oc.get(t),e),Oc.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Mc(this.moduleType,t)}}function Ic(t,e,n){const i=an()+t,o=Je();return o[i]===vo?Ss(o,i,n?e.call(n):e()):function(t,e){return t[e]}(o,i)}function kc(t,e,n,i){return Dc(Je(),an(),t,e,n,i)}function Sc(t,e,n,i,o){return Ac(Je(),an(),t,e,n,i,o)}function Ec(t,e){const n=t[e];return n===vo?void 0:n}function Dc(t,e,n,i,o,r){const s=e+n;return Es(t,s,o)?Ss(t,s+1,r?i.call(r,o):i(o)):Ec(t,s+1)}function Ac(t,e,n,i,o,r,s){const a=e+n;return Ds(t,a,o,r)?Ss(t,a+2,s?i.call(s,o,r):i(o,r)):Ec(t,a+2)}function Tc(t,e){const n=Ke();let i;const o=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const r=i.factory||(i.factory=Oe(i.type)),s=Zt(Rs),a=Wn(!1),l=r();return Wn(a),Zt(s),function(t,e,n,i){const o=n+20;o>=t.data.length&&(t.data[o]=null,t.blueprint[o]=null),e[o]=i}(n,Je(),t,l),l}function Fc(t,e,n){const i=Je(),o=He(i,t);return Rc(i,Vc(i,t)?Dc(i,an(),e,o.transform,n,o):o.transform(n))}function Nc(t,e,n,i){const o=Je(),r=He(o,t);return Rc(o,Vc(o,t)?Ac(o,an(),e,r.transform,n,i,r):r.transform(n,i))}function Vc(t,e){return t[1].data[e+20].pure}function Rc(t,e){return Ps.isWrapped(e)&&(e=Ps.unwrap(e),t[ln()]=vo),e}class Lc extends M{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,o=t=>null,r=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(i,o,r);return t instanceof d&&t.add(s),s}}function zc(){return this._results[Os()]()}class $c{constructor(){this.dirty=!0,this._results=[],this.changes=new Lc,this.length=0;const t=Os(),e=$c.prototype;e[t]||(e[t]=zc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let i=0;i<e.length;i++){let o=e[i];Array.isArray(o)?(n===e&&(n=e.slice(0,i)),t(o,n)):n!==e&&n.push(o)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Hc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Hc(this.queryList)}setDirty(){this.queryList.setDirty()}}class jc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,i=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);i.push(this.queries[n.indexInDeclarationView].clone())}return new jc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==iu(t,e).matches&&this.queries[e].setDirty()}}class Bc{constructor(t,e,n,i=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=i}}class Uc{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const i=null!==e?e.length:0,o=this.getByIndex(n).embeddedTView(t,i);o&&(o.indexInDeclarationView=n,null!==e?e.push(o):e=[o])}return null!==e?new Uc(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class qc{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new qc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let i=0;i<n.length;i++)this.matchTNodeWithReadOption(t,e,Gc(e,n[i]))}else{const n=this.metadata.predicate;n===Sl?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,ii(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const i=this.metadata.read;if(null!==i)if(i===rl||i===Dl||i===Sl&&0===e.type)this.addMatch(e.index,-2);else{const n=ii(e,t,i,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function Gc(t,e){const n=t.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===e)return n[i+1];return null}function Wc(t,e,n,i){return-1===n?function(t,e){return 3===t.type||4===t.type?Jr(rl,t,e):0===t.type?Kr(Sl,rl,t,e):null}(e,t):-2===n?function(t,e,n){return n===rl?Jr(rl,e,t):n===Sl?Kr(Sl,rl,e,t):n===Dl?Xr(Dl,rl,e,t):void 0}(t,e,i):oi(t,t[1],n,e)}function Zc(t,e,n,i){const o=e[19].queries[i];if(null===o.matches){const i=t.data,r=n.matches,s=[];for(let t=0;t<r.length;t+=2){const o=r[t];s.push(o<0?null:Wc(e,i[o],r[t+1],n.metadata.read))}o.matches=s}return o.matches}function Yc(t){const e=Je(),n=Ke(),i=pn();gn(i+1);const o=iu(n,i);if(t.dirty&&Ue(e)===o.metadata.isStatic){if(null===o.matches)t.reset([]);else{const r=o.crossesNgTemplate?function t(e,n,i,o){const r=e.queries.getByIndex(i),s=r.matches;if(null!==s){const a=Zc(e,n,r,i);for(let e=0;e<s.length;e+=2){const i=s[e];if(i>0)o.push(a[e/2]);else{const r=s[e+1],a=n[-i];for(let e=10;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,o)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const i=e[n];t(i[1],i,r,o)}}}}}return o}(n,e,i,[]):Zc(n,e,o,i);t.reset(r),t.notifyOnChanges()}return!0}return!1}function Qc(t,e,n){Kc(Ke(),Je(),t,e,n,!0)}function Jc(t,e,n){Kc(Ke(),Je(),t,e,n,!1)}function Kc(t,e,n,i,o,r){t.firstCreatePass&&(nu(t,new Bc(n,i,r,o),-1),r&&(t.staticViewQueries=!0)),eu(t,e)}function Xc(t,e,n,i){!function(t,e,n,i,o,r,s,a){t.firstCreatePass&&(nu(t,new Bc(n,i,!1,o),s.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a)),eu(t,e)}(Ke(),Je(),e,n,i,0,tn(),t)}function tu(){return t=Je(),e=pn(),t[19].queries[e].queryList;var t,e}function eu(t,e){const n=new $c;!function(t,e,n,i){const o=mr(e);o.push(n),t.firstCreatePass&&vr(t).push(i,o.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new jc),e[19].queries.push(new Hc(n))}function nu(t,e,n){null===t.queries&&(t.queries=new Uc),t.queries.track(new qc(e,n))}function iu(t,e){return t.queries.getByIndex(e)}function ou(t,e){return Kr(Sl,rl,t,e)}const ru=new $t("Application Initializer");let su=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();Zs(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(ru,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const au=new $t("AppId"),lu={provide:au,useFactory:function(){return`${cu()}${cu()}${cu()}`},deps:[]};function cu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uu=new $t("Platform Initializer"),du=new $t("Platform ID"),hu=new $t("appBootstrapListener");let pu=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const gu=new $t("LocaleId"),fu=new $t("DefaultCurrencyCode");class mu{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const vu=function(t){return new Pc(t)},bu=vu,yu=function(t){return Promise.resolve(vu(t))},_u=function(t){const e=vu(t),n=qn(Me(t).declarations).reduce((t,e)=>{const n=xe(e);return n&&t.push(new Rl(n)),t},[]);return new mu(e,n)},wu=_u,Cu=function(t){return Promise.resolve(_u(t))};let xu=(()=>{class t{constructor(){this.compileModuleSync=bu,this.compileModuleAsync=yu,this.compileModuleAndAllComponentsSync=wu,this.compileModuleAndAllComponentsAsync=Cu}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ou=new $t("compilerOptions"),Mu=(()=>Promise.resolve(0))();function Pu(t){"undefined"==typeof Zone?Mu.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Iu{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Lc(!1),this.onMicrotaskEmpty=new Lc(!1),this.onStable=new Lc(!1),this.onError=new Lc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=At.requestAnimationFrame,e=At.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(At,()=>{t.lastRequestAnimationFrameId=-1,Du(t),Eu(t)}),Du(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,o,r,s,a)=>{try{return Au(t),n.invokeTask(o,r,s,a)}finally{e&&"eventTask"===r.type&&e(),Tu(t)}},onInvoke:(e,n,i,o,r,s,a)=>{try{return Au(t),e.invoke(i,o,r,s,a)}finally{Tu(t)}},onHasTask:(e,n,i,o)=>{e.hasTask(i,o),n===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Du(t),Eu(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,i,o)=>(e.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Iu.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Iu.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const o=this._inner,r=o.scheduleEventTask("NgZoneEvent: "+i,t,Su,ku,ku);try{return o.runTask(r,e,n)}finally{o.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function ku(){}const Su={};function Eu(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Du(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Au(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Tu(t){t._nesting--,Eu(t)}class Fu{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Lc,this.onMicrotaskEmpty=new Lc,this.onStable=new Lc,this.onError=new Lc}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Nu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Iu.assertNotInAngularZone(),Pu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Pu(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Qt(Iu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vu=(()=>{class t{constructor(){this._applications=new Map,zu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return zu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Ru{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Lu,zu=new Ru,$u=function(t,e,n){const i=t.get(Ou,[]).concat(e),o=new Pc(n);if(0===ys.size)return Promise.resolve(o);const r=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(i.map(t=>t.providers));if(0===r.length)return Promise.resolve(o);const s=function(){const t=At.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n  - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n  - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n  - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=vs.create({providers:r}).get(s.ResourceLoader);return function(t){const e=[],n=new Map;function i(t){let e=n.get(t);if(!e){const i=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=i.then(ws))}return e}return ys.forEach((t,n)=>{const o=[];t.templateUrl&&o.push(i(t.templateUrl).then(e=>{t.template=e}));const r=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;r&&r.forEach((e,n)=>{s.push(""),o.push(i(e).then(i=>{s[a+n]=i,r.splice(r.indexOf(e),1),0==r.length&&(t.styleUrls=void 0)}))});const l=Promise.all(o).then(()=>function(t){_s.delete(t)}(n));e.push(l)}),ys=new Map,Promise.all(e).then(()=>{})}().then(()=>o)};const Hu=new $t("AllowMultipleToken");class ju{constructor(t,e){this.name=t,this.token=e}}function Bu(t,e,n=[]){const i="Platform: "+e,o=new $t(i);return(e=[])=>{let r=Uu();if(!r||r.injector.get(Hu,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{const t=n.concat(e).concat({provide:o,useValue:!0},{provide:is,useValue:"platform"});!function(t){if(Lu&&!Lu.destroyed&&!Lu.injector.get(Hu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Lu=t.get(qu);const e=t.get(uu,null);e&&e.forEach(t=>t())}(vs.create({providers:t,name:i}))}return function(t){const e=Uu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function Uu(){return Lu&&!Lu.destroyed?Lu:null}let qu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Fu:("zone.js"===t?void 0:t)||new Iu({enableLongStackTrace:Mi(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:Iu,useValue:n}];return n.run(()=>{const e=vs.create({providers:i,parent:this.injector,name:t.moduleType.name}),o=t.create(e),r=o.injector.get(pi,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>Zu(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return Zs(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=o.injector.get(su);return t.runInitializers(),t.donePromise.then(()=>(xc(o.injector.get(gu,"en-US")||"en-US"),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=Gu({},e);return $u(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Wu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${Ct(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Qt(vs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Gu(t,e){return Array.isArray(e)?e.reduce(Gu,t):Object.assign(Object.assign({},t),e)}let Wu=(()=>{class t{constructor(t,e,n,i,o,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Mi(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Iu.assertNotInAngularZone(),Pu(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Iu.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Z(s,a.pipe(nt()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof nl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(te),o=n.create(vs.NULL,[],e||n.selector,i);o.onDestroy(()=>{this._unloadComponent(o)});const r=o.injector.get(Nu,null);return r&&o.injector.get(Vu).registerApplication(o.location.nativeElement,r),this._loadComponent(o),Mi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Zu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hu,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Zu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Qt(Iu),Qt(pu),Qt(vs),Qt(pi),Qt(ol),Qt(su))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Zu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Yu{}class Qu{}const Ju={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ku=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Ju}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Xu(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+o]).then(t=>Xu(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Qt(xu),Qt(Qu,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Xu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const td=Bu(null,"core",[{provide:du,useValue:"unknown"},{provide:qu,deps:[vs]},{provide:Vu,deps:[]},{provide:pu,deps:[]}]),ed=[{provide:Wu,useClass:Wu,deps:[Iu,pu,vs,pi,ol,su]},{provide:Vl,deps:[Iu],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:su,useClass:su,deps:[[new st,ru]]},{provide:xu,useClass:xu,deps:[]},lu,{provide:Ol,useFactory:function(){return Il},deps:[]},{provide:Ml,useFactory:function(){return kl},deps:[]},{provide:gu,useFactory:function(t){return xc(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new rt(gu),new st,new lt]]},{provide:fu,useValue:"USD"}];let nd=(()=>{class t{constructor(t){}}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Qt(Wu))},providers:ed}),t})(),id=null;function od(){return id}const rd=new $t("DocumentToken");let sd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:ad,token:t,providedIn:"platform"}),t})();function ad(){return Qt(cd)}const ld=new $t("Location Initialized");let cd=(()=>{class t extends sd{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=od().getLocation(),this._history=od().getHistory()}getBaseHrefFromDOM(){return od().getBaseHref(this._doc)}onPopState(t){od().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){od().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ud()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ud()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd))},t.\u0275prov=ht({factory:dd,token:t,providedIn:"platform"}),t})();function ud(){return!!window.history.pushState}function dd(){return new cd(Qt(rd))}function hd(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function pd(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function gd(t){return t&&"?"!==t[0]?"?"+t:t}let fd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:md,token:t,providedIn:"root"}),t})();function md(t){const e=Qt(rd).location;return new bd(Qt(sd),e&&e.origin||"")}const vd=new $t("appBaseHref");let bd=(()=>{class t extends fd{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return hd(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+gd(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const o=this.prepareExternalUrl(n+gd(i));this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,i){const o=this.prepareExternalUrl(n+gd(i));this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(sd),Qt(vd,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yd=(()=>{class t extends fd{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=hd(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let o=this.prepareExternalUrl(n+gd(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,i){let o=this.prepareExternalUrl(n+gd(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(sd),Qt(vd,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_d=(()=>{class t{constructor(t,e){this._subject=new Lc,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=pd(Cd(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+gd(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Cd(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gd(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+gd(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Qt(fd),Qt(sd))},t.normalizeQueryParams=gd,t.joinWithSlash=hd,t.stripTrailingSlash=pd,t.\u0275prov=ht({factory:wd,token:t,providedIn:"root"}),t})();function wd(){return new _d(Qt(fd),Qt(sd))}function Cd(t){return t.replace(/\/index.html$/,"")}const xd={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Od=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),Md=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Pd=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),Id=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),kd=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),Sd=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function Ed(t,e){return Rd(jl(t)[ql.DateFormat],e)}function Dd(t,e){return Rd(jl(t)[ql.TimeFormat],e)}function Ad(t,e){return Rd(jl(t)[ql.DateTimeFormat],e)}function Td(t,e){const n=jl(t),i=n[ql.NumberSymbols][e];if(void 0===i){if(e===Sd.CurrencyDecimal)return n[ql.NumberSymbols][Sd.Decimal];if(e===Sd.CurrencyGroup)return n[ql.NumberSymbols][Sd.Group]}return i}function Fd(t,e){return jl(t)[ql.NumberFormats][e]}const Nd=Bl;function Vd(t){if(!t[ql.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ql.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Rd(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Ld(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const zd=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$d={},Hd=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,jd=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),Bd=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),Ud=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function qd(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Gd(t,e,n="-",i,o){let r="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,r=n));let s=String(t);for(;s.length<e;)s="0"+s;return i&&(s=s.substr(s.length-e)),r+s}function Wd(t,e,n=0,i=!1,o=!1){return function(r,s){let a=function(t,e){switch(t){case Bd.FullYear:return e.getFullYear();case Bd.Month:return e.getMonth();case Bd.Date:return e.getDate();case Bd.Hours:return e.getHours();case Bd.Minutes:return e.getMinutes();case Bd.Seconds:return e.getSeconds();case Bd.FractionalSeconds:return e.getMilliseconds();case Bd.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,r);if((n>0||a>-n)&&(a+=n),t===Bd.Hours)0===a&&-12===n&&(a=12);else if(t===Bd.FractionalSeconds)return l=e,Gd(a,3).substr(0,l);var l;const c=Td(s,Sd.MinusSign);return Gd(a,e,c,i,o)}}function Zd(t,e,n=Pd.Format,i=!1){return function(o,r){return function(t,e,n,i,o,r){switch(n){case Ud.Months:return function(t,e,n){const i=jl(t),o=Rd([i[ql.MonthsFormat],i[ql.MonthsStandalone]],e);return Rd(o,n)}(e,o,i)[t.getMonth()];case Ud.Days:return function(t,e,n){const i=jl(t),o=Rd([i[ql.DaysFormat],i[ql.DaysStandalone]],e);return Rd(o,n)}(e,o,i)[t.getDay()];case Ud.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=jl(t);return Vd(e),(e[ql.ExtraData][2]||[]).map(t=>"string"==typeof t?Ld(t):[Ld(t[0]),Ld(t[1])])}(e),n=function(t,e,n){const i=jl(t);Vd(i);const o=Rd([i[ql.ExtraData][0],i[ql.ExtraData][1]],e)||[];return Rd(o,n)||[]}(e,o,i);let r;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:i,minutes:o}=t[0],{hours:l,minutes:c}=t[1];s>=i&&a>=o&&(s<l||s===l&&a<c)&&(r=n[e])}else{const{hours:i,minutes:o}=t;i===s&&o===a&&(r=n[e])}}),r)return r}return function(t,e,n){const i=jl(t),o=Rd([i[ql.DayPeriodsFormat],i[ql.DayPeriodsStandalone]],e);return Rd(o,n)}(e,o,i)[s<12?0:1];case Ud.Eras:return function(t,e){return Rd(jl(t)[ql.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,r,t,e,n,i)}}function Yd(t){return function(e,n,i){const o=-1*i,r=Td(n,Sd.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case jd.Short:return(o>=0?"+":"")+Gd(s,2,r)+Gd(Math.abs(o%60),2,r);case jd.ShortGMT:return"GMT"+(o>=0?"+":"")+Gd(s,1,r);case jd.Long:return"GMT"+(o>=0?"+":"")+Gd(s,2,r)+":"+Gd(Math.abs(o%60),2,r);case jd.Extended:return 0===i?"Z":(o>=0?"+":"")+Gd(s,2,r)+":"+Gd(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Qd(t,e=!1){return function(n,i){let o;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();o=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))).getTime()-t.getTime();o=1+Math.round(e/6048e5)}var r;return Gd(o,t,Td(i,Sd.MinusSign))}}const Jd={};function Kd(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Xd(t){return t instanceof Date&&!isNaN(t.valueOf())}const th=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function eh(t,e,n,i,o,r,s=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,i,o,r,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(i=s.search(/e/i))>0?(n<0&&(n=i),n+=+s.slice(i+1),s=s.substring(0,i)):n<0&&(n=s.length),i=0;"0"===s.charAt(i);i++);if(i===(r=s.length))e=[0],n=1;else{for(r--;"0"===s.charAt(r);)r--;for(n-=i,e=[],o=0;i<=r;i++,o++)e[o]=Number(s.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,d=e.minFrac,h=e.maxFrac;if(r){const t=r.match(th);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(u=ih(e)),null!=n&&(d=ih(n)),null!=i?h=ih(i):null!=n&&d>h&&(h=d)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,o=i.length-t.integerLen;const r=Math.min(Math.max(e,o),n);let s=r+t.integerLen,a=i[s];if(s>0){i.splice(Math.max(t.integerLen,s));for(let t=s;t<i.length;t++)i[t]=0}else{o=Math.max(0,o),t.integerLen=1,i.length=Math.max(1,s=r+1),i[0]=0;for(let t=1;t<s;t++)i[t]=0}if(a>=5)if(s-1<0){for(let e=0;e>s;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[s-1]++;for(;o<Math.max(0,r);o++)i.push(0);let l=0!==r;const c=e+t.integerLen,u=i.reduceRight((function(t,e,n,i){return i[n]=(e+=t)<10?e:e-10,l&&(0===i[n]&&n>=c?i.pop():l=!1),e>=10?1:0}),0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let p=c.digits,g=c.integerLen;const f=c.exponent;let m=[];for(l=p.every(t=>!t);g<u;g++)p.unshift(0);for(;g<0;g++)p.unshift(0);g>0?m=p.splice(g,p.length):(m=p,p=[0]);const v=[];for(p.length>=e.lgSize&&v.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)v.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(Td(n,i)),m.length&&(a+=Td(n,o)+m.join("")),f&&(a+=Td(n,Sd.Exponential)+"+"+f)}else a=Td(n,Sd.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}function nh(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),o=i[0],r=i[1],s=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const t=l.charAt(u);"0"===t?n.minFrac=n.maxFrac=u+1:"#"===t?n.maxFrac=u+1:n.posSuf+=t}const c=a.split(",");if(n.gSize=c[1]?c[1].length:0,n.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,r){const t=o.length-n.posPre.length-n.posSuf.length,e=r.indexOf("#");n.negPre=r.substr(0,e).replace(/'/g,""),n.negSuf=r.substr(e+t).replace(/'/g,"")}else n.negPre=e+n.posPre,n.negSuf=n.posSuf;return n}function ih(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class oh{}function rh(t,e,n,i){let o="="+t;if(e.indexOf(o)>-1)return o;if(o=n.getPluralCategory(t,i),e.indexOf(o)>-1)return o;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}let sh=(()=>{class t extends oh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(Nd(e||this.locale)(t)){case Md.Zero:return"zero";case Md.One:return"one";case Md.Two:return"two";case Md.Few:return"few";case Md.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Qt(gu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ah(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,o]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}let lh=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Is(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ct(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Ol),Rs(Ml),Rs(rl),Rs(cl))},t.\u0275dir=we({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),ch=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(te);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(ol)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl))},t.\u0275dir=we({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[qa]}),t})();class uh{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let dh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Mi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new uh(null,this._ngForOf,-1,-1),null===i?void 0:i),o=new hh(t,n);e.push(o)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,i);const r=new hh(t,o);e.push(r)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,i=this._viewContainer.length;n<i;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=i,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl),Rs(Sl),Rs(Ol))},t.\u0275dir=we({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class hh{constructor(t,e){this.record=t,this.view=e}}let ph=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new gh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){fh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){fh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl),Rs(Sl))},t.\u0275dir=we({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class gh{constructor(){this.$implicit=null,this.ngIf=null}}function fh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Ct(e)}'.`)}class mh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let vh=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),bh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new mh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl),Rs(Sl),Rs(vh,1))},t.\u0275dir=we({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),yh=(()=>{class t{constructor(t,e,n){n._addDefault(new mh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl),Rs(Sl),Rs(vh,1))},t.\u0275dir=we({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),_h=(()=>{class t{constructor(t){this._localization=t,this._caseViews={}}set ngPlural(t){this._switchValue=t,this._updateView()}addCase(t,e){this._caseViews[t]=e}_updateView(){this._clearViews();const t=Object.keys(this._caseViews),e=rh(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(t){t&&(this._activeView=t,this._activeView.create())}}return t.\u0275fac=function(e){return new(e||t)(Rs(oh))},t.\u0275dir=we({type:t,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),t})(),wh=(()=>{class t{constructor(t,e,n,i){this.value=t;const o=!isNaN(Number(t));i.addCase(o?"="+t:t,new mh(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Ls("ngPluralCase"),Rs(Sl),Rs(Dl),Rs(_h,1))},t.\u0275dir=we({type:t,selectors:[["","ngPluralCase",""]]}),t})(),Ch=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Rs(rl),Rs(Ml),Rs(cl))},t.\u0275dir=we({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),xh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Rs(Dl))},t.\u0275dir=we({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[qa]}),t})();function Oh(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Ct(t)}'`)}class Mh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ph{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Ih=new Ph,kh=new Mh;let Sh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):Ms(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,Ps.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Zs(e))return Ih;if(Ys(e))return kh;throw Oh(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=ct.Default){const e=ts(!0);if(null!=e||t&ct.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=Ce({name:"async",type:t,pure:!1}),t})(),Eh=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Oh(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"lowercase",type:t,pure:!0}),t})();const Dh=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Ah=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Oh(t,e);return e.replace(Dh,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"titlecase",type:t,pure:!0}),t})(),Th=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw Oh(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"uppercase",type:t,pure:!0}),t})(),Fh=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",i,o){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,i){let o=function(t){if(Xd(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(zd))return function(t){const e=new Date(0);let n=0,i=0;const o=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,s,a,l,c),e}(n)}const e=new Date(t);if(!Xd(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const i=function(t){return jl(t)[ql.LocaleId]}(e);if($d[i]=$d[i]||{},$d[i][n])return $d[i][n];let o="";switch(n){case"shortDate":o=Ed(e,kd.Short);break;case"mediumDate":o=Ed(e,kd.Medium);break;case"longDate":o=Ed(e,kd.Long);break;case"fullDate":o=Ed(e,kd.Full);break;case"shortTime":o=Dd(e,kd.Short);break;case"mediumTime":o=Dd(e,kd.Medium);break;case"longTime":o=Dd(e,kd.Long);break;case"fullTime":o=Dd(e,kd.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");o=qd(Ad(e,kd.Short),[n,i]);break;case"medium":const r=t(e,"mediumTime"),s=t(e,"mediumDate");o=qd(Ad(e,kd.Medium),[r,s]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");o=qd(Ad(e,kd.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),u=t(e,"fullDate");o=qd(Ad(e,kd.Full),[c,u])}return o&&($d[i][n]=o),o}(n,e)||e;let r,s=[];for(;e;){if(r=Hd.exec(e),!r){s.push(e);break}{s=s.concat(r.slice(1));const t=s.pop();if(!t)break;e=t}}let a=o.getTimezoneOffset();i&&(a=Kd(i,a),o=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Kd(e,i)-i))}(o,i));let l="";return s.forEach(t=>{const e=function(t){if(Jd[t])return Jd[t];let e;switch(t){case"G":case"GG":case"GGG":e=Zd(Ud.Eras,Id.Abbreviated);break;case"GGGG":e=Zd(Ud.Eras,Id.Wide);break;case"GGGGG":e=Zd(Ud.Eras,Id.Narrow);break;case"y":e=Wd(Bd.FullYear,1,0,!1,!0);break;case"yy":e=Wd(Bd.FullYear,2,0,!0,!0);break;case"yyy":e=Wd(Bd.FullYear,3,0,!1,!0);break;case"yyyy":e=Wd(Bd.FullYear,4,0,!1,!0);break;case"M":case"L":e=Wd(Bd.Month,1,1);break;case"MM":case"LL":e=Wd(Bd.Month,2,1);break;case"MMM":e=Zd(Ud.Months,Id.Abbreviated);break;case"MMMM":e=Zd(Ud.Months,Id.Wide);break;case"MMMMM":e=Zd(Ud.Months,Id.Narrow);break;case"LLL":e=Zd(Ud.Months,Id.Abbreviated,Pd.Standalone);break;case"LLLL":e=Zd(Ud.Months,Id.Wide,Pd.Standalone);break;case"LLLLL":e=Zd(Ud.Months,Id.Narrow,Pd.Standalone);break;case"w":e=Qd(1);break;case"ww":e=Qd(2);break;case"W":e=Qd(1,!0);break;case"d":e=Wd(Bd.Date,1);break;case"dd":e=Wd(Bd.Date,2);break;case"E":case"EE":case"EEE":e=Zd(Ud.Days,Id.Abbreviated);break;case"EEEE":e=Zd(Ud.Days,Id.Wide);break;case"EEEEE":e=Zd(Ud.Days,Id.Narrow);break;case"EEEEEE":e=Zd(Ud.Days,Id.Short);break;case"a":case"aa":case"aaa":e=Zd(Ud.DayPeriods,Id.Abbreviated);break;case"aaaa":e=Zd(Ud.DayPeriods,Id.Wide);break;case"aaaaa":e=Zd(Ud.DayPeriods,Id.Narrow);break;case"b":case"bb":case"bbb":e=Zd(Ud.DayPeriods,Id.Abbreviated,Pd.Standalone,!0);break;case"bbbb":e=Zd(Ud.DayPeriods,Id.Wide,Pd.Standalone,!0);break;case"bbbbb":e=Zd(Ud.DayPeriods,Id.Narrow,Pd.Standalone,!0);break;case"B":case"BB":case"BBB":e=Zd(Ud.DayPeriods,Id.Abbreviated,Pd.Format,!0);break;case"BBBB":e=Zd(Ud.DayPeriods,Id.Wide,Pd.Format,!0);break;case"BBBBB":e=Zd(Ud.DayPeriods,Id.Narrow,Pd.Format,!0);break;case"h":e=Wd(Bd.Hours,1,-12);break;case"hh":e=Wd(Bd.Hours,2,-12);break;case"H":e=Wd(Bd.Hours,1);break;case"HH":e=Wd(Bd.Hours,2);break;case"m":e=Wd(Bd.Minutes,1);break;case"mm":e=Wd(Bd.Minutes,2);break;case"s":e=Wd(Bd.Seconds,1);break;case"ss":e=Wd(Bd.Seconds,2);break;case"S":e=Wd(Bd.FractionalSeconds,1);break;case"SS":e=Wd(Bd.FractionalSeconds,2);break;case"SSS":e=Wd(Bd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Yd(jd.Short);break;case"ZZZZZ":e=Yd(jd.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Yd(jd.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Yd(jd.Long);break;default:return null}return Jd[t]=e,e}(t);l+=e?e(o,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,n,o||this.locale,i)}catch(r){throw Oh(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Rs(gu))},t.\u0275pipe=Ce({name:"date",type:t,pure:!0}),t})();const Nh=/#/g;let Vh=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw Oh(t,n);return n[rh(e,Object.keys(n),this._localization,i)].replace(Nh,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(Rs(oh))},t.\u0275pipe=Ce({name:"i18nPlural",type:t,pure:!0}),t})(),Rh=(()=>{class t{transform(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw Oh(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"i18nSelect",type:t,pure:!0}),t})(),Lh=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"json",type:t,pure:!1}),t})(),zh=(()=>{class t{constructor(t){this.differs=t,this.keyValues=[]}transform(t,e=$h){if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());const n=this.differ.diff(t);return n&&(this.keyValues=[],n.forEachItem(t=>{this.keyValues.push({key:t.key,value:t.currentValue})}),this.keyValues.sort(e)),this.keyValues}}return t.\u0275fac=function(e){return new(e||t)(Rs(Ml))},t.\u0275pipe=Ce({name:"keyvalue",type:t,pure:!1}),t})();function $h(t,e){const n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n<i?-1:1;if("number"==typeof n&&"number"==typeof i)return n-i;if("boolean"==typeof n&&"boolean"==typeof i)return n<i?-1:1;const o=String(n),r=String(i);return o==r?0:o<r?-1:1}let Hh=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Uh(e))return null;i=i||this._locale;try{return function(t,e,n){return eh(t,nh(Fd(e,Od.Decimal),Td(e,Sd.MinusSign)),e,Sd.Group,Sd.Decimal,n)}(qh(e),i,n)}catch(o){throw Oh(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(Rs(gu))},t.\u0275pipe=Ce({name:"number",type:t,pure:!0}),t})(),jh=(()=>{class t{constructor(t){this._locale=t}transform(e,n,i){if(Uh(e))return null;i=i||this._locale;try{return function(t,e,n){return eh(t,nh(Fd(e,Od.Percent),Td(e,Sd.MinusSign)),e,Sd.Group,Sd.Decimal,n,!0).replace(new RegExp("%","g"),Td(e,Sd.PercentSign))}(qh(e),i,n)}catch(o){throw Oh(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(Rs(gu))},t.\u0275pipe=Ce({name:"percent",type:t,pure:!0}),t})(),Bh=(()=>{class t{constructor(t,e="USD"){this._locale=t,this._defaultCurrencyCode=e}transform(e,n,i="symbol",o,r){if(Uh(e))return null;r=r||this._locale,"boolean"==typeof i&&(console&&console.warn&&console.warn('Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".'),i=i?"symbol":"code");let s=n||this._defaultCurrencyCode;"code"!==i&&(s="symbol"===i||"symbol-narrow"===i?function(t,e,n="en"){const i=function(t){return jl(t)[ql.Currencies]}(n)[t]||xd[t]||[],o=i[1];return"narrow"===e&&"string"==typeof o?o:i[0]||t}(s,"symbol"===i?"wide":"narrow",r):i);try{return function(t,e,n,i,o){const r=nh(Fd(e,Od.Currency),Td(e,Sd.MinusSign));return r.minFrac=function(t){let e;const n=xd[t];return n&&(e=n[2]),"number"==typeof e?e:2}(i),r.maxFrac=r.minFrac,eh(t,r,e,Sd.CurrencyGroup,Sd.CurrencyDecimal,o).replace("\xa4",n).replace("\xa4","").trim()}(qh(e),r,s,n,o)}catch(a){throw Oh(t,a.message)}}}return t.\u0275fac=function(e){return new(e||t)(Rs(gu),Rs(fu))},t.\u0275pipe=Ce({name:"currency",type:t,pure:!0}),t})();function Uh(t){return null==t||""===t||t!=t}function qh(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(t+" is not a number");return t}let Gh=(()=>{class t{transform(e,n,i){if(null==e)return e;if(!this.supports(e))throw Oh(t,e);return e.slice(n,i)}supports(t){return"string"==typeof t||Array.isArray(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"slice",type:t,pure:!1}),t})(),Wh=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[{provide:oh,useClass:sh}]}),t})(),Zh=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new Yh(Qt(rd),window,Qt(pi))}),t})();class Yh{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class Qh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Qh,id||(id=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Kh||(Kh=document.querySelector("base"),Kh)?Kh.getAttribute("href"):null;return null==e?null:(n=e,Jh||(Jh=document.createElement("a")),Jh.setAttribute("href",n),"/"===Jh.pathname.charAt(0)?Jh.pathname:"/"+Jh.pathname);var n}resetBaseElement(){Kh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return ah(document.cookie,t)}}let Jh,Kh=null;const Xh=new $t("TRANSITION_ID"),tp=[{provide:ru,useFactory:function(t,e,n){return()=>{n.get(su).donePromise.then(()=>{const n=od();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Xh,rd,vs],multi:!0}];class ep{static init(){var t;t=new ep,zu=t}addToWindow(t){At.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},At.getAllAngularTestabilities=()=>t.getAllTestabilities(),At.getAllAngularRootElements=()=>t.getAllRootElements(),At.frameworkStabilizers||(At.frameworkStabilizers=[]),At.frameworkStabilizers.push(t=>{const e=At.getAllAngularTestabilities();let n=e.length,i=!1;const o=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const i=t.getTestability(e);return null!=i?i:n?od().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const np=new $t("EventManagerPlugins");let ip=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i<n.length;i++){const e=n[i];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(np),Qt(Iu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class op{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const i=od().getGlobalEventTarget(this._doc,t);if(!i)throw new Error(`Unsupported event target ${i} for event ${e}`);return this.addEventListener(i,e,n)}}let rp=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sp=(()=>{class t extends rp{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>od().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ap={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},lp=/%COMP%/g;function cp(t,e,n){for(let i=0;i<e.length;i++){let o=e[i];Array.isArray(o)?cp(t,o,n):(o=o.replace(lp,t),n.push(o))}return n}function up(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let dp=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new hp(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case de.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new pp(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case de.Native:case de.ShadowDom:return new gp(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=cp(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Qt(ip),Qt(sp),Qt(au))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class hp{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ap[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const o=ap[i];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=ap[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&ll.DashCase?t.style.setProperty(e,n,i&ll.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&ll.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,up(n)):this.eventManager.addEventListener(t,e,up(n))}}class pp extends hp{constructor(t,e,n,i){super(t),this.component=n;const o=cp(i+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(lp,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(lp,t)}(i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class gp extends hp{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===de.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=cp(i.id,i.styles,[]);for(let r=0;r<o.length;r++){const t=document.createElement("style");t.textContent=o[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let fp=(()=>{class t extends op{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const mp=["alt","control","meta","shift"],vp={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},bp={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},yp={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let _p=(()=>{class t extends op{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,i){const o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>od().onAndCancel(e,o.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(n.pop());let r="";if(mp.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=o,0!=n.length||0===o.length)return null;const s={};return s.domEventName=i,s.fullKey=r,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&bp.hasOwnProperty(e)&&(e=bp[e]))}return vp[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),mp.forEach(i=>{i!=n&&(0,yp[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return o=>{t.getEventFullKey(o)===e&&i.runGuarded(()=>n(o))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),wp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Qt(Cp)},token:t,providedIn:"root"}),t})(),Cp=(()=>{class t extends wp{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Yi.NONE:return e;case Yi.HTML:return wi(e,"HTML")?_i(e):Wi(this._doc,String(e));case Yi.STYLE:return wi(e,"Style")?_i(e):Ki(e);case Yi.SCRIPT:if(wi(e,"Script"))return _i(e);throw new Error("unsafe value used in a script context");case Yi.URL:return Ci(e),wi(e,"URL")?_i(e):Si(String(e));case Yi.RESOURCE_URL:if(wi(e,"ResourceURL"))return _i(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new fi(t)}bypassSecurityTrustStyle(t){return new mi(t)}bypassSecurityTrustScript(t){return new vi(t)}bypassSecurityTrustUrl(t){return new bi(t)}bypassSecurityTrustResourceUrl(t){return new yi(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd))},t.\u0275prov=ht({factory:function(){return t=Qt(Ht),new Cp(t.get(rd));var t},token:t,providedIn:"root"}),t})();const xp=Bu(td,"browser",[{provide:du,useValue:"browser"},{provide:uu,useValue:function(){Qh.makeCurrent(),ep.init()},multi:!0},{provide:rd,useFactory:function(){return function(t){Te=t}(document),document},deps:[]}]),Op=[[],{provide:is,useValue:"root"},{provide:pi,useFactory:function(){return new pi},deps:[]},{provide:np,useClass:fp,multi:!0,deps:[rd,Iu,du]},{provide:np,useClass:_p,multi:!0,deps:[rd]},[],{provide:dp,useClass:dp,deps:[ip,sp,au]},{provide:al,useExisting:dp},{provide:rp,useExisting:sp},{provide:sp,useClass:sp,deps:[rd]},{provide:Nu,useClass:Nu,deps:[Iu]},{provide:ip,useClass:ip,deps:[np,Iu]},[]];let Mp=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:au,useValue:e.appId},{provide:Xh,useExisting:au},tp]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Qt(t,12))},providers:Op,imports:[Wh,nd]}),t})();function Pp(...t){let e=t[t.length-1];return I(e)?(t.pop(),H(t,e)):W(t)}function Ip(t,e){return B(t,e,1)}function kp(t,e){return function(n){return n.lift(new Sp(t,e))}}"undefined"!=typeof window&&window;class Sp{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Ep(t,this.predicate,this.thisArg))}}class Ep extends g{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Dp{}class Ap{}class Tp{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),o=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(o):this.headers.set(i,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Tp?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Tp;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Tp?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const o=t.value;if(o){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===o.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Fp{encodeKey(t){return Np(t)}encodeValue(t){return Np(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Np(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class Vp{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Fp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const i=t.indexOf("="),[o,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(o)||[];s.push(r),n.set(o,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Vp({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function Rp(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Lp(t){return"undefined"!=typeof Blob&&t instanceof Blob}function zp(t){return"undefined"!=typeof FormData&&t instanceof FormData}class $p{constructor(t,e,n,i){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new Tp),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new Vp,this.urlWithParams=e}serializeBody(){return null===this.body?null:Rp(this.body)||Lp(this.body)||zp(this.body)||"string"==typeof this.body?this.body:this.body instanceof Vp?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||zp(this.body)?null:Lp(this.body)?this.body.type||null:Rp(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Vp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,i=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new $p(e,n,o,{params:l,headers:a,reportProgress:s,responseType:i,withCredentials:r})}}const Hp=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class jp{constructor(t,e=200,n="OK"){this.headers=t.headers||new Tp,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Bp extends jp{constructor(t={}){super(t),this.type=Hp.ResponseHeader}clone(t={}){return new Bp({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Up extends jp{constructor(t={}){super(t),this.type=Hp.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Up({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qp extends jp{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Gp(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Wp=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof $p)i=t;else{let o=void 0;o=n.headers instanceof Tp?n.headers:new Tp(n.headers);let r=void 0;n.params&&(r=n.params instanceof Vp?n.params:new Vp({fromObject:n.params})),i=new $p(t,e,void 0!==n.body?n.body:null,{headers:o,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const o=Pp(i).pipe(Ip(t=>this.handler.handle(t)));if(t instanceof $p||"events"===n.observe)return o;const r=o.pipe(kp(t=>t instanceof Up));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return r.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(R(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(R(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(R(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new Vp).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,Gp(n,e))}post(t,e,n={}){return this.request("POST",t,Gp(n,e))}put(t,e,n={}){return this.request("PUT",t,Gp(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Qt(Dp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Zp{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const Yp=new $t("HTTP_INTERCEPTORS");let Qp=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Jp=/^\)\]\}',?\n/;class Kp{}let Xp=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),tg=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let o=null;const r=()=>{if(null!==o)return o;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=new Tp(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return o=new Bp({headers:r,status:e,statusText:i,url:s}),o},s=()=>{let{headers:i,status:o,statusText:s,url:a}=r(),l=null;204!==o&&(l=void 0===n.response?n.responseText:n.response),0===o&&(o=l?200:0);let c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(Jp,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new Up({body:l,headers:i,status:o,statusText:s,url:a||void 0})),e.complete()):e.error(new qp({error:l,headers:i,status:o,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=r(),o=new qp({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(o)};let l=!1;const c=i=>{l||(e.next(r()),l=!0);let o={type:Hp.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(o.total=i.total),"text"===t.responseType&&n.responseText&&(o.partialText=n.responseText),e.next(o)},u=t=>{let n={type:Hp.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:Hp.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Qt(Kp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const eg=new $t("XSRF_COOKIE_NAME"),ng=new $t("XSRF_HEADER_NAME");class ig{}let og=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=ah(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Qt(rd),Qt(du),Qt(eg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),rg=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(ig),Qt(ng))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),sg=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(Yp,[]);this.chain=t.reduceRight((t,e)=>new Zp(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ap),Qt(vs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ag=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:rg,useClass:Qp}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:eg,useValue:e.cookieName}:[],e.headerName?{provide:ng,useValue:e.headerName}:[]]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[rg,{provide:Yp,useExisting:rg,multi:!0},{provide:ig,useClass:og},{provide:eg,useValue:"XSRF-TOKEN"},{provide:ng,useValue:"X-XSRF-TOKEN"}]}),t})(),lg=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[Wp,{provide:Dp,useClass:sg},tg,{provide:Ap,useExisting:tg},Xp,{provide:Kp,useExisting:Xp}],imports:[[ag.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class cg extends M{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}const ug=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),dg={};function hg(...t){let e=null,n=null;return I(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),W(t,n).lift(new pg(e))}class pg{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new gg(t,this.resultSelector))}}class gg extends V{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(dg),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++){const e=t[n];this.add(N(this,e,e,n))}}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n,i,o){const r=this.values,s=this.toRespond?r[n]===dg?--this.toRespond:this.toRespond:0;r[n]=e,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const fg=new _(t=>t.complete());function mg(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):fg}function vg(t){return new _(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?j(n):mg()).subscribe(e)})}function bg(){return G(1)}const yg=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function _g(t){return function(e){return 0===t?mg():e.lift(new wg(t))}}class wg{constructor(t){if(this.total=t,this.total<0)throw new yg}call(t,e){return e.subscribe(new Cg(t,this.total))}}class Cg extends g{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length<n?e.push(t):e[i%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let o=0;o<n;o++){const o=e++%n;t.next(i[o])}}t.complete()}}function xg(t=Pg){return e=>e.lift(new Og(t))}class Og{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Mg(t,this.errorFactory))}}class Mg extends g{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function Pg(){return new ug}function Ig(t=null){return e=>e.lift(new kg(t))}class kg{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Sg(t,this.defaultValue))}}class Sg extends g{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Eg(t,e){const n=arguments.length>=2;return i=>i.pipe(t?kp((e,n)=>t(e,n,i)):v,_g(1),n?Ig(e):xg(()=>new ug))}function Dg(t){return function(e){const n=new Ag(t),i=e.lift(n);return n.caught=i}}class Ag{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Tg(t,this.selector,this.caught))}}class Tg extends V{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const i=new k(this,void 0,void 0);this.add(i);const o=N(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}function Fg(t){return e=>0===t?mg():e.lift(new Ng(t))}class Ng{constructor(t){if(this.total=t,this.total<0)throw new yg}call(t,e){return e.subscribe(new Vg(t,this.total))}}class Vg extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function Rg(t,e){const n=arguments.length>=2;return i=>i.pipe(t?kp((e,n)=>t(e,n,i)):v,Fg(1),n?Ig(e):xg(()=>new ug))}class Lg{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new zg(t,this.predicate,this.thisArg,this.source))}}class zg extends g{constructor(t,e,n,i){super(t),this.predicate=e,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function $g(t,e){return"function"==typeof e?n=>n.pipe($g((n,i)=>j(t(n,i)).pipe(R((t,o)=>e(n,t,i,o))))):e=>e.lift(new Hg(t))}class Hg{constructor(t){this.project=t}call(t,e){return e.subscribe(new jg(t,this.project))}}class jg extends V{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new k(this,e,n),r=this.destination;r.add(o),this.innerSubscription=N(this,t,void 0,void 0,o),this.innerSubscription!==o&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,o){this.destination.next(e)}}function Bg(...t){return bg()(Pp(...t))}function Ug(...t){const e=t[t.length-1];return I(e)?(t.pop(),n=>Bg(t,n,e)):e=>Bg(t,e)}function qg(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new Gg(t,e,n))}}class Gg{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new Wg(t,this.accumulator,this.seed,this.hasSeed))}}class Wg extends g{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}function Zg(){}function Yg(t,e,n){return function(i){return i.lift(new Qg(t,e,n))}}class Qg{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Jg(t,this.nextOrObserver,this.error,this.complete))}}class Jg extends g{constructor(t,e,n,o){super(t),this._tapNext=Zg,this._tapError=Zg,this._tapComplete=Zg,this._tapError=n||Zg,this._tapComplete=o||Zg,i(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Zg,this._tapError=e.error||Zg,this._tapComplete=e.complete||Zg)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class Kg{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Xg(t,this.callback))}}class Xg extends g{constructor(t,e){super(t),this.add(new d(e))}}class tf{constructor(t,e){this.id=t,this.url=e}}class ef extends tf{constructor(t,e,n="imperative",i=null){super(t,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class nf extends tf{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class of extends tf{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class rf extends tf{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class sf extends tf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class af extends tf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lf extends tf{constructor(t,e,n,i,o){super(t,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class cf extends tf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class uf extends tf{constructor(t,e,n,i){super(t,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class df{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class hf{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class pf{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gf{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ff{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class mf{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vf{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let bf=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Us(0,"router-outlet")},directives:function(){return[xv]},encapsulation:2}),t})();class yf{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function _f(t){return new yf(t)}function wf(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Cf(t,e,n){const i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length<t.length))return null;const o={};for(let r=0;r<i.length;r++){const e=i[r],n=t[r];if(e.startsWith(":"))o[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}class xf{constructor(t,e){this.routes=t,this.module=e}}function Of(t,e=""){for(let n=0;n<t.length;n++){const i=t[n];Mf(i,Pf(e,i))}}function Mf(t,e){if(!t)throw new Error(`\n      Invalid configuration of route '${e}': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    `);if(Array.isArray(t))throw new Error(`Invalid configuration of route '${e}': Array cannot be specified`);if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error(`Invalid configuration of route '${e}': a componentless route without children or loadChildren cannot have a named outlet set`);if(t.redirectTo&&t.children)throw new Error(`Invalid configuration of route '${e}': redirectTo and children cannot be used together`);if(t.redirectTo&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': redirectTo and loadChildren cannot be used together`);if(t.children&&t.loadChildren)throw new Error(`Invalid configuration of route '${e}': children and loadChildren cannot be used together`);if(t.redirectTo&&t.component)throw new Error(`Invalid configuration of route '${e}': redirectTo and component cannot be used together`);if(t.path&&t.matcher)throw new Error(`Invalid configuration of route '${e}': path and matcher cannot be used together`);if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error(`Invalid configuration of route '${e}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===t.path&&void 0===t.matcher)throw new Error(`Invalid configuration of route '${e}': routes must have either a path or a matcher specified`);if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error(`Invalid configuration of route '${e}': path cannot start with a slash`);if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error(`Invalid configuration of route '{path: "${e}", redirectTo: "${t.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error(`Invalid configuration of route '${e}': pathMatch can only be set to 'prefix' or 'full'`);t.children&&Of(t.children,e)}function Pf(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:`${t}/${e.path}`:"":t}function If(t){const e=t.children&&t.children.map(If),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=bf),n}function kf(t,e){const n=Object.keys(t),i=Object.keys(e);if(!n||!i||n.length!=i.length)return!1;let o;for(let r=0;r<n.length;r++)if(o=n[r],!Sf(t[o],e[o]))return!1;return!0}function Sf(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function Ef(t){return Array.prototype.concat.apply([],t)}function Df(t){return t.length>0?t[t.length-1]:null}function Af(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tf(t){return Ys(t)?t:Zs(t)?j(Promise.resolve(t)):Pp(t)}function Ff(t,e,n){return n?function(t,e){return kf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Lf(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Sf(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,o){if(n.segments.length>o.length)return!!Lf(n.segments.slice(0,o.length),o)&&!i.hasChildren();if(n.segments.length===o.length){if(!Lf(n.segments,o))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=o.slice(0,n.segments.length),r=o.slice(n.segments.length);return!!Lf(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,r)}}(e,n,n.segments)}(t.root,e.root)}class Nf{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_f(this.queryParams)),this._queryParamMap}toString(){return jf.serialize(this)}}class Vf{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Af(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Bf(this)}}class Rf{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_f(this.parameters)),this._parameterMap}toString(){return Yf(this)}}function Lf(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function zf(t,e){let n=[];return Af(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),Af(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class $f{}class Hf{parse(t){const e=new tm(t);return new Nf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return Bf(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return Af(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=zf(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${Bf(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${qf(e)}=${qf(t)}`).join("&"):`${qf(e)}=${qf(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const jf=new Hf;function Bf(t){return t.segments.map(t=>Yf(t)).join("/")}function Uf(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qf(t){return Uf(t).replace(/%3B/gi,";")}function Gf(t){return Uf(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wf(t){return decodeURIComponent(t)}function Zf(t){return Wf(t.replace(/\+/g,"%20"))}function Yf(t){return`${Gf(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Gf(t)}=${Gf(e[t])}`).join("")}`;var e}const Qf=/^[^\/()?;=#]+/;function Jf(t){const e=t.match(Qf);return e?e[0]:""}const Kf=/^[^=?&#]+/,Xf=/^[^?&#]+/;class tm{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Vf([],{}):new Vf([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Vf(t,e)),n}parseSegment(){const t=Jf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Rf(Wf(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Jf(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Jf(this.remaining);t&&(n=t,this.capture(n))}t[Wf(e)]=Wf(n)}parseQueryParam(t){const e=function(t){const e=t.match(Kf);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Xf);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Zf(e),o=Zf(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(o)}else t[i]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Jf(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o="primary");const r=this.parseChildren();e[o]=1===Object.keys(r).length?r.primary:new Vf([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class em{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=nm(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=nm(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=im(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return im(t,this._root).map(t=>t.value)}}function nm(t,e){if(t===e.value)return e;for(const n of e.children){const e=nm(t,n);if(e)return e}return null}function im(t,e){if(t===e.value)return[e];for(const n of e.children){const i=im(t,n);if(i.length)return i.unshift(e),i}return[]}class om{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function rm(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class sm extends em{constructor(t,e){super(t),this.snapshot=e,hm(this,t)}toString(){return this.snapshot.toString()}}function am(t,e){const n=function(t,e){const n=new um([],{},{},"",{},"primary",e,null,t.root,-1,{});return new dm("",new om(n,[]))}(t,e),i=new cg([new Rf("",{})]),o=new cg({}),r=new cg({}),s=new cg({}),a=new cg(""),l=new lm(i,o,s,a,r,"primary",e,n.root);return l.snapshot=n.root,new sm(new om(l,[]),n)}class lm{constructor(t,e,n,i,o,r,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(R(t=>_f(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(R(t=>_f(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cm(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class um{constructor(t,e,n,i,o,r,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=r,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=_f(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_f(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dm extends em{constructor(t,e){super(e),this.url=t,hm(this,e)}toString(){return pm(this._root)}}function hm(t,e){e.value._routerState=t,e.children.forEach(e=>hm(t,e))}function pm(t){const e=t.children.length>0?` { ${t.children.map(pm).join(", ")} } `:"";return`${t.value}${e}`}function gm(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,kf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),kf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!kf(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),kf(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function fm(t,e){var n,i;return kf(t.params,e.params)&&Lf(n=t.url,i=e.url)&&n.every((t,e)=>kf(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||fm(t.parent,e.parent))}function mm(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function vm(t,e,n,i,o){let r={};return i&&Af(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Nf(n.root===t?e:function t(e,n,i){const o={};return Af(e.children,(e,r)=>{o[r]=e===n?i:t(e,n,i)}),new Vf(e.segments,o)}(n.root,t,e),r,o)}class bm{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&mm(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==Df(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ym{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function _m(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function wm(t,e,n){if(t||(t=new Vf([],{})),0===t.segments.length&&t.hasChildren())return Cm(t,e,n);const i=function(t,e,n){let i=0,o=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(i>=n.length)return r;const e=t.segments[o],s=_m(n[i]),a=i<n.length-1?n[i+1]:null;if(o>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!Pm(s,a,e))return r;i+=2}else{if(!Pm(s,{},e))return r;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,e,n),o=n.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const e=new Vf(t.segments.slice(0,i.pathIndex),{});return e.children.primary=new Vf(t.segments.slice(i.pathIndex),t.children),Cm(e,0,o)}return i.match&&0===o.length?new Vf(t.segments,{}):i.match&&!t.hasChildren()?xm(t,e,n):i.match?Cm(t,0,o):xm(t,e,n)}function Cm(t,e,n){if(0===n.length)return new Vf(t.segments,{});{const i=function(t){return"object"!=typeof t[0]||void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),o={};return Af(i,(n,i)=>{null!==n&&(o[i]=wm(t.children[i],e,n))}),Af(t.children,(t,e)=>{void 0===i[e]&&(o[e]=t)}),new Vf(t.segments,o)}}function xm(t,e,n){const i=t.segments.slice(0,e);let o=0;for(;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){const t=Om(n[o].outlets);return new Vf(i,t)}if(0===o&&mm(n[0])){i.push(new Rf(t.segments[e].path,n[0])),o++;continue}const r=_m(n[o]),s=o<n.length-1?n[o+1]:null;r&&s&&mm(s)?(i.push(new Rf(r,Mm(s))),o+=2):(i.push(new Rf(r,{})),o++)}return new Vf(i,{})}function Om(t){const e={};return Af(t,(t,n)=>{null!==t&&(e[n]=xm(new Vf([],{}),0,t))}),e}function Mm(t){const e={};return Af(t,(t,n)=>e[n]=""+t),e}function Pm(t,e,n){return t==n.path&&kf(e,n.parameters)}class Im{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),gm(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=rm(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),Af(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,o=e?e.value:null;if(i===o)if(i.component){const o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=rm(t),o=t.value.component?n.children:e;Af(i,(t,e)=>this.deactivateRouteAndItsChildren(t,o)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=rm(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new mf(t.value.snapshot))}),t.children.length&&this.forwardEvent(new gf(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,o=e?e.value:null;if(gm(i),i===o)if(i.component){const o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),km(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),o=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=o,e.outlet&&e.outlet.activateWith(i,o),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function km(t){gm(t.value),t.children.forEach(km)}function Sm(t){return"function"==typeof t}function Em(t){return t instanceof Nf}class Dm{constructor(t){this.segmentGroup=t||null}}class Am{constructor(t){this.urlTree=t}}function Tm(t){return new _(e=>e.error(new Dm(t)))}function Fm(t){return new _(e=>e.error(new Am(t)))}function Nm(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Vm{constructor(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(te)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(R(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Dg(t=>{if(t instanceof Am)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof Dm)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(R(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Dg(t=>{if(t instanceof Dm)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Vf([],{primary:t}):t;return new Nf(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(R(t=>new Vf([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Pp({});const n=[],i=[],o={};return Af(t,(t,r)=>{const s=e(r,t).pipe(R(t=>o[r]=t));"primary"===r?n.push(s):i.push(s)}),Pp.apply(null,n.concat(i)).pipe(bg(),Eg(),R(()=>o))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,o,r){return Pp(...n).pipe(R(s=>this.expandSegmentAgainstRoute(t,e,n,s,i,o,r).pipe(Dg(t=>{if(t instanceof Dm)return Pp(null);throw t}))),bg(),Rg(t=>!!t),Dg((t,n)=>{if(t instanceof ug||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,o))return Pp(new Vf([],{}));throw new Dm(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,o,r,s){return $m(i)!==r?Tm(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r):Tm(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Fm(o):this.lineralizeSegments(n,o).pipe(B(n=>{const o=new Vf(n,{});return this.expandSegment(t,o,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,o,r){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Rm(e,i,o);if(!s)return Tm(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?Fm(u):this.lineralizeSegments(i,u).pipe(B(i=>this.expandSegment(t,e,n,i.concat(o.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(R(t=>(n._loadedConfig=t,new Vf(i,{})))):Pp(new Vf(i,{}));const{matched:o,consumedSegments:r,lastChild:s}=Rm(e,n,i);if(!o)return Tm(e);const a=i.slice(s);return this.getChildConfig(t,n,i).pipe(B(t=>{const n=t.module,i=t.routes,{segmentGroup:o,slicedSegments:s}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>zm(t,e,n)&&"primary"!==$m(n))}(t,n,i)?{segmentGroup:Lm(new Vf(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==$m(i)&&(n[$m(i)]=new Vf([],{}));return n}(i,new Vf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>zm(t,e,n))}(t,n,i)?{segmentGroup:Lm(new Vf(t.segments,function(t,e,n,i){const o={};for(const r of n)zm(t,e,r)&&!i[$m(r)]&&(o[$m(r)]=new Vf([],{}));return Object.assign(Object.assign({},i),o)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,r,a,i);return 0===s.length&&o.hasChildren()?this.expandChildren(n,i,o).pipe(R(t=>new Vf(r,t))):0===i.length&&0===s.length?Pp(new Vf(r,{})):this.expandSegment(n,o,i,s,"primary",!0).pipe(R(t=>new Vf(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Pp(new xf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Pp(e._loadedConfig):function(t,e,n){const i=e.canLoad;return i&&0!==i.length?j(i).pipe(R(i=>{const o=t.get(i);let r;if(function(t){return t&&Sm(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!Sm(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Tf(r)})).pipe(bg(),(o=t=>!0===t,t=>t.lift(new Lg(o,void 0,t)))):Pp(!0);var o}(t.injector,e,n).pipe(B(n=>n?this.configLoader.load(t.injector,e).pipe(R(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error(wf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Pp(new xf([],t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Pp(n);if(i.numberOfChildren>1||!i.children.primary)return Nm(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const o=this.createSegmentGroup(t,e.root,n,i);return new Nf(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Af(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const o=t.substring(1);n[i]=e[o]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const o=this.createSegments(t,e.segments,n,i);let r={};return Af(e.children,(e,o)=>{r[o]=this.createSegmentGroup(t,e,n,i)}),new Vf(o,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function Rm(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const i=(e.matcher||Cf)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Lm(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Vf(t.segments.concat(e.segments),e.children)}return t}function zm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function $m(t){return t.outlet||"primary"}class Hm{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class jm{constructor(t,e){this.component=t,this.route=e}}function Bm(t,e,n){const i=t._root;return function t(e,n,i,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=rm(n);return e.children.forEach(e=>{!function(e,n,i,o,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,l=i?i.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Lf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lf(t.url,e.url)||!kf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fm(t,e)||!kf(t.queryParams,e.queryParams);case"paramsChange":default:return!fm(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new Hm(o)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?l?l.children:null:i,o,r),c&&r.canDeactivateChecks.push(new jm(l&&l.outlet&&l.outlet.component||null,a))}else a&&qm(n,l,r),r.canActivateChecks.push(new Hm(o)),t(e,null,s.component?l?l.children:null:i,o,r)}(e,s[e.value.outlet],i,o.concat([e.value]),r),delete s[e.value.outlet]}),Af(s,(t,e)=>qm(t,i.getContext(e),r)),r}(i,e?e._root:null,n,[i.value])}function Um(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function qm(t,e,n){const i=rm(t),o=t.value;Af(i,(t,i)=>{qm(t,o.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new jm(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}const Gm=Symbol("INITIAL_VALUE");function Wm(){return $g(t=>hg(...t.map(t=>t.pipe(Fg(1),Ug(Gm)))).pipe(qg((t,e)=>{let n=!1;return e.reduce((t,i,o)=>{if(t!==Gm)return t;if(i===Gm&&(n=!0),!n){if(!1===i)return i;if(o===e.length-1||Em(i))return i}return t},t)},Gm),kp(t=>t!==Gm),R(t=>Em(t)?t:!0===t),Fg(1)))}function Zm(t,e){return null!==t&&e&&e(new ff(t)),Pp(!0)}function Ym(t,e){return null!==t&&e&&e(new pf(t)),Pp(!0)}function Qm(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Pp(i.map(i=>vg(()=>{const o=Um(i,e,n);let r;if(function(t){return t&&Sm(t.canActivate)}(o))r=Tf(o.canActivate(e,t));else{if(!Sm(o))throw new Error("Invalid CanActivate guard");r=Tf(o(e,t))}return r.pipe(Rg())}))).pipe(Wm()):Pp(!0)}function Jm(t,e,n){const i=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>vg(()=>Pp(e.guards.map(o=>{const r=Um(o,e.node,n);let s;if(function(t){return t&&Sm(t.canActivateChild)}(r))s=Tf(r.canActivateChild(i,t));else{if(!Sm(r))throw new Error("Invalid CanActivateChild guard");s=Tf(r(i,t))}return s.pipe(Rg())})).pipe(Wm())));return Pp(o).pipe(Wm())}class Km{}class Xm{constructor(t,e,n,i,o,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=r}recognize(){try{const t=nv(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new um([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new om(n,e),o=new dm(this.url,i);return this.inheritParamsAndData(o._root),Pp(o)}catch(t){return new _(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=cm(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=zf(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(o){if(!(o instanceof Km))throw o}if(this.noLeftoversInUrl(e,n,i))return[];throw new Km}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new Km;if((t.outlet||"primary")!==i)throw new Km;let o,r=[],s=[];if("**"===t.path){const r=n.length>0?Df(n).parameters:{};o=new um(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rv(t),i,t.component,t,tv(e),ev(e)+n.length,sv(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Km;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||Cf)(n,t,e);if(!i)throw new Km;const o={};Af(i.posParams,(t,e)=>{o[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,s=n.slice(a.lastChild),o=new um(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,rv(t),i,t.component,t,tv(e),ev(e)+r.length,sv(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=nv(e,r,s,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new om(o,t)]}if(0===a.length&&0===c.length)return[new om(o,[])];const u=this.processSegment(a,l,c,"primary");return[new om(o,u)]}}function tv(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ev(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nv(t,e,n,i,o){if(n.length>0&&function(t,e,n){return n.some(n=>iv(t,e,n)&&"primary"!==ov(n))}(t,n,i)){const o=new Vf(e,function(t,e,n,i){const o={};o.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==ov(r)){const n=new Vf([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,o[ov(r)]=n}return o}(t,e,i,new Vf(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>iv(t,e,n))}(t,n,i)){const r=new Vf(t.segments,function(t,e,n,i,o,r){const s={};for(const a of i)if(iv(t,n,a)&&!o[ov(a)]){const n=new Vf([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,s[ov(a)]=n}return Object.assign(Object.assign({},o),s)}(t,e,n,i,t.children,o));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new Vf(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function iv(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ov(t){return t.outlet||"primary"}function rv(t){return t.data||{}}function sv(t){return t.resolve||{}}function av(t,e,n,i){const o=Um(t,e,i);return Tf(o.resolve?o.resolve(e,n):o(e,n))}function lv(t){return function(e){return e.pipe($g(e=>{const n=t(e);return n?j(n).pipe(R(()=>e)):j([e])}))}}class cv{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const uv=new $t("ROUTES");class dv{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(R(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new xf(Ef(i.injector.get(uv)).map(If),i)}))}loadModuleFactory(t){return"string"==typeof t?j(this.loader.load(t)):Tf(t()).pipe(B(t=>t instanceof ee?Pp(t):j(this.compiler.compileModuleAsync(t))))}}class hv{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function pv(t){throw t}function gv(t,e,n){return e.parse("/")}function fv(t,e){return Pp(null)}let mv=(()=>{class t{constructor(t,e,n,i,o,r,s,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new M,this.errorHandler=pv,this.malformedUriErrorHandler=gv,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fv,afterPreactivation:fv},this.urlHandlingStrategy=new hv,this.routeReuseStrategy=new cv,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(te),this.console=o.get(pu);const l=o.get(Iu);this.isNgZoneEnabled=l instanceof Iu,this.resetConfig(a),this.currentUrlTree=new Nf(new Vf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new dv(r,s,t=>this.triggerEvent(new df(t)),t=>this.triggerEvent(new hf(t))),this.routerState=am(this.currentUrlTree,this.rootComponentType),this.transitions=new cg({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(kp(t=>0!==t.id),R(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),$g(t=>{let n=!1,i=!1;return Pp(t).pipe(Yg(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),$g(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Pp(t).pipe($g(t=>{const n=this.transitions.getValue();return e.next(new ef(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?fg:[t]}),$g(t=>Promise.resolve(t)),(i=this.ngModule.injector,o=this.configLoader,r=this.urlSerializer,s=this.config,function(t){return t.pipe($g(t=>function(t,e,n,i,o){return new Vm(t,e,n,i,o).apply()}(i,o,r,t.extractedUrl,s).pipe(R(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Yg(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,o){return function(r){return r.pipe(B(r=>function(t,e,n,i,o="emptyOnly",r="legacy"){return new Xm(t,e,n,i,o,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,o).pipe(R(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Yg(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Yg(t=>{const n=new sf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,o,r,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:o,restoredState:r,extras:s}=t,a=new ef(n,this.serializeUrl(i),o,r);e.next(a);const l=am(i,this.rootComponentType).snapshot;return Pp(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),fg}),lv(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:o,extras:{skipLocationChange:r,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!r,replaceUrl:!!s})}),Yg(t=>{const e=new af(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),R(t=>Object.assign(Object.assign({},t),{guards:Bm(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(B(n=>{const{targetSnapshot:i,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:s}}=n;return 0===s.length&&0===r.length?Pp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return j(t).pipe(B(t=>function(t,e,n,i,o){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Pp(r.map(r=>{const s=Um(r,e,o);let a;if(function(t){return t&&Sm(t.canDeactivate)}(s))a=Tf(s.canDeactivate(t,e,n,i));else{if(!Sm(s))throw new Error("Invalid CanDeactivate guard");a=Tf(s(t,e,n,i))}return a.pipe(Rg())})).pipe(Wm()):Pp(!0)}(t.component,t.route,n,e,i)),Rg(t=>!0!==t,!0))}(s,i,o,t).pipe(B(n=>n&&"boolean"==typeof n?function(t,e,n,i){return j(e).pipe(Ip(e=>j([Ym(e.route.parent,i),Zm(e.route,i),Jm(t,e.path,n),Qm(t,e.route,n)]).pipe(bg(),Rg(t=>!0!==t,!0))),Rg(t=>!0!==t,!0))}(i,r,t,e):Pp(n)),R(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Yg(t=>{if(Em(t.guardsResult)){const e=wf(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Yg(t=>{const e=new lf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),kp(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new of(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),lv(t=>{if(t.guards.canActivateChecks.length)return Pp(t).pipe(Yg(t=>{const e=new cf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(B(t=>{const{targetSnapshot:i,guards:{canActivateChecks:o}}=t;return o.length?j(o).pipe(Ip(t=>function(t,e,n,i){return function(t,e,n,i){const o=Object.keys(t);if(0===o.length)return Pp({});if(1===o.length){const r=o[0];return av(t[r],e,n,i).pipe(R(t=>({[r]:t})))}const r={};return j(o).pipe(B(o=>av(t[o],e,n,i).pipe(R(t=>(r[o]=t,t))))).pipe(Eg(),R(()=>r))}(t._resolve,t,e,i).pipe(R(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),cm(t,n).resolve),null)))}(t.route,i,e,n)),function(t,e){return arguments.length>=2?function(n){return b(qg(t,e),_g(1),Ig(e))(n)}:function(e){return b(qg((e,n,i)=>t(e,n,i+1)),_g(1))(e)}}((t,e)=>t),R(e=>t)):Pp(t)}))}),Yg(t=>{const e=new uf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),lv(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:o,extras:{skipLocationChange:r,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!r,replaceUrl:!!s})}),R(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const o=i.value;o._futureSnapshot=n.value;const r=function(e,n,i){return n.children.map(n=>{for(const o of i.children)if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o);return t(e,n)})}(e,n,i);return new om(o,r)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;i<e.children.length;++i)t(e.children[i],n.children[i])}(n,t),t}{const i=new lm(new cg((o=n.value).url),new cg(o.params),new cg(o.queryParams),new cg(o.fragment),new cg(o.data),o.outlet,o.component,o),r=n.children.map(n=>t(e,n));return new om(i,r)}}var o}(t,e._root,n?n._root:void 0);return new sm(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Yg(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,s=this.routeReuseStrategy,a=t=>this.triggerEvent(t),R(t=>(new Im(s,t.targetRouterState,t.currentRouterState,a).activate(r),t))),Yg({next(){n=!0},complete(){n=!0}}),(o=()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new of(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new Kg(o))),Dg(n=>{if(i=!0,(o=n)&&o.ngNavigationCancelingError){const i=Em(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const o=new of(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(o),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const i=new rf(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var o;return fg}));var o,r,s,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Of(t),this.config=t.map(If),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:o,preserveQueryParams:r,queryParamsHandling:s,preserveFragment:a}=e;Mi()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:o;let u=null;if(s)switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}else u=r?this.currentUrlTree.queryParams:i||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,i,o){if(0===n.length)return vm(e.root,e.root,e,i,o);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new bm(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,o)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return Af(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===o?(i.split("/").forEach((i,o)=>{0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new bm(n,e,i)}(n);if(r.toRoot())return vm(e.root,new Vf([],{}),e,i,o);const s=function(t,e,n){if(t.isAbsolute)return new ym(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ym(n.snapshot._urlSegment,!0,0);const i=mm(t.commands[0])?0:1;return function(t,e,n){let i=t,o=e,r=n;for(;r>o;){if(r-=o,i=i.parent,!i)throw new Error("Invalid number of '../'");o=i.segments.length}return new ym(i,!1,o-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=s.processChildren?Cm(s.segmentGroup,s.index,r.commands):wm(s.segmentGroup,s.index,r.commands);return vm(s.segmentGroup,a,e,i,o)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){Mi()&&this.isNgZoneEnabled&&!Iu.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=Em(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}isActive(t,e){if(Em(t))return Ff(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Ff(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new nf(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,i,o){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,l;o?(s=o.resolve,a=o.reject,l=o.promise):l=new Promise((t,e)=>{s=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:s,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const o=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(o,"",Object.assign(Object.assign({},i),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){zs()},t.\u0275dir=we({type:t}),t})(),vv=(()=>{class t{constructor(t,e,n,i,o){this.router=t,this.route=e,this.commands=[],null==n&&i.setAttribute(o.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Mi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:yv(this.skipLocationChange),replaceUrl:yv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:yv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:yv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Ls("tabindex"),Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Qs("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),bv=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof nf&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Mi()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i){if(0!==t||e||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:yv(this.skipLocationChange),replaceUrl:yv(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:yv(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:yv(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(fd))},t.\u0275dir=we({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Qs("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Ra("href",e.href,to),As("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[qa]}),t})();function yv(t){return""===t||!!t}let _v=(()=>{class t{constructor(t,e,n,i,o){this.router=t,this.element=e,this.renderer=n,this.link=i,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(t=>{t instanceof nf&&this.update()})}ngAfterContentInit(){this.links.changes.subscribe(t=>this.update()),this.linksWithHrefs.changes.subscribe(t=>this.update()),this.update()}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){this.subscription.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(rl),Rs(cl),Rs(vv,8),Rs(bv,8))},t.\u0275dir=we({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var i;1&t&&(Xc(n,vv,!0),Xc(n,bv,!0)),2&t&&(Yc(i=tu())&&(e.links=i),Yc(i=tu())&&(e.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[qa]}),t})();class wv{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Cv,this.attachRef=null}}class Cv{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new wv,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let xv=(()=>{class t{constructor(t,e,n,i,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Lc,this.deactivateEvents=new Lc,this.name=i||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Ov(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Rs(Cv),Rs(Dl),Rs(ol),Ls("name"),Rs(es))},t.\u0275dir=we({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ov{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===lm?this.route:t===Cv?this.childContexts:this.parent.get(t,e)}}class Mv{}class Pv{preload(t,e){return Pp(null)}}let Iv=(()=>{class t{constructor(t,e,n,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new dv(e,n,e=>t.triggerEvent(new df(e)),e=>t.triggerEvent(new hf(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(kp(t=>t instanceof nf),Ip(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(te);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return j(n).pipe(G(),R(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(B(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Qt(mv),Qt(Yu),Qt(xu),Qt(vs),Qt(Mv))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),kv=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof ef?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nf&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof vf&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new vf(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){zs()},t.\u0275dir=we({type:t}),t})();const Sv=new $t("ROUTER_CONFIGURATION"),Ev=new $t("ROUTER_FORROOT_GUARD"),Dv=[_d,{provide:$f,useClass:Hf},{provide:mv,useFactory:function(t,e,n,i,o,r,s,a={},l,c){const u=new mv(null,t,e,n,i,o,r,Ef(s));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=od();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[$f,Cv,_d,vs,Yu,xu,uv,Sv,[class{},new st],[class{},new st]]},Cv,{provide:lm,useFactory:function(t){return t.routerState.root},deps:[mv]},{provide:Yu,useClass:Ku},Iv,Pv,class{preload(t,e){return e().pipe(Dg(()=>Pp(null)))}},{provide:Sv,useValue:{enableTracing:!1}}];function Av(){return new ju("Router",mv)}let Tv=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[Dv,Rv(e),{provide:Ev,useFactory:Vv,deps:[[mv,new st,new lt]]},{provide:Sv,useValue:n||{}},{provide:fd,useFactory:Nv,deps:[sd,[new rt(vd),new st],Sv]},{provide:kv,useFactory:Fv,deps:[mv,Zh,Sv]},{provide:Mv,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Pv},{provide:ju,multi:!0,useFactory:Av},[Lv,{provide:ru,multi:!0,useFactory:zv,deps:[Lv]},{provide:Hv,useFactory:$v,deps:[Lv]},{provide:hu,multi:!0,useExisting:Hv}]]}}static forChild(e){return{ngModule:t,providers:[Rv(e)]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Qt(Ev,8),Qt(mv,8))}}),t})();function Fv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new kv(t,e,n)}function Nv(t,e,n={}){return n.useHash?new yd(t,e):new bd(t,e)}function Vv(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Rv(t){return[{provide:bs,multi:!0,useValue:t},{provide:uv,multi:!0,useValue:t}]}let Lv=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new M}appInitializer(){return this.injector.get(ld,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(mv),i=this.injector.get(Sv);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Pp(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Sv),n=this.injector.get(Iv),i=this.injector.get(kv),o=this.injector.get(mv),r=this.injector.get(Wu);t===r.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Qt(vs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function zv(t){return t.appInitializer.bind(t)}function $v(t){return t.bootstrapListener.bind(t)}const Hv=new $t("Router Initializer");function jv(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{l(i.next(t))}catch(e){r(e)}}function a(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((i=i.apply(t,e||[])).next())}))}function Bv(t,e=!1){return Object.keys(t).map(n=>"sort"===n?function(t,e=!1){const n=e?"[]":"";return Array.isArray(t)&&t.length>0?t.filter(t=>t).map(t=>`sort${n}=${t.field},${"ASC"===t.direction?"asc":"desc"}`).join("&"):null}(t.sort,e):`${n}=${t[n]}`).filter(t=>t).join("&")}function Uv(t){this.message=t}(Uv.prototype=new Error).name="InvalidCharacterError";var qv="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new Uv("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,r=0,s="";i=e.charAt(r++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function Gv(t){this.message=t}(Gv.prototype=new Error).name="InvalidTokenError";var Wv=function(t,e){if("string"!=typeof t)throw new Gv("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(qv(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return qv(e)}}(t.split(".")[n]))}catch(t){throw new Gv("Invalid token specified: "+t.message)}};let Zv=(()=>{class t{constructor(t){this.httpClient=t,this.website="dol",this.url="https://www.exnet.site/api",this.exnetUrl="https://www.exnet.site",this.months=[{id:1,text:"Gennaio"},{id:2,text:"Febbraio"},{id:3,text:"Marzo"},{id:4,text:"Aprile"},{id:5,text:"Maggio"},{id:6,text:"Giugno"},{id:7,text:"Luglio"},{id:8,text:"Agosto"},{id:9,text:"Settembre"},{id:10,text:"Ottobre"},{id:11,text:"Novembre"},{id:12,text:"Dicembre"}],this.storeObject={},this.siteFilter=null,this.store$=new cg(this.storeObject),this.siteFilter$=new cg(this.siteFilter),this.obs=new M,this.uniqueTexts=[],this.qs=t=>Object.keys(t).map(e=>`${e}=${t[e]}`).join("&")}set store(t){this.storeObject=t,this.store$.next(this.storeObject)}get store(){return this.store$.asObservable()}set setSiteFilter(t){this.siteFilter=t,this.siteFilter$.next(this.siteFilter)}get setSiteFilter(){return this.siteFilter$.asObservable()}setStorageSiteFilter(t){const e=JSON.stringify(t);localStorage.setItem("filter",e),this.setSiteFilter=t}getStorageSiteFilter(){return this.setSiteFilter=JSON.parse(localStorage.getItem("filter")),localStorage.getItem("filter")}removeStorageSiteFilter(){localStorage.removeItem("filter"),this.setSiteFilter=null}allData(){return jv(this,void 0,void 0,(function*(){this.setSiteFilter.subscribe(t=>this.filteredSite=null==t?void 0:t.id);try{return this.filteredSite?this.httpClient.get(`${this.url}/home?dol_dossier=${this.filteredSite}`,this.getHeaders()).toPromise():this.httpClient.get(this.url+"/home",this.getHeaders()).toPromise()}catch({error:t}){const e=t.error?t.error:t;"expired token"!==e.toLowerCase()&&alert(e),this.logout(),document.location.reload()}}))}getFooter(){return this.httpClient.get(this.url+"/main",this.getHeaders()).toPromise()}getToken(){return localStorage.getItem("token")}isLoggedIn(){return Boolean(localStorage.getItem("token"))}getProfile(){return JSON.parse(localStorage.getItem("profile"))}getExpiry(){return Number(localStorage.getItem("expiry"))}preLogin(t,e){return jv(this,void 0,void 0,(function*(){const{id:n,qr:i,secret:o,token:r,sms:s,number:a}=yield this.httpClient.post(this.url+"/login",{email:t,password:e},this.getHeaders()).toPromise();return r?(localStorage.setItem("token",r),localStorage.setItem("profile",JSON.stringify(Wv(r))),localStorage.setItem("expiry",JSON.parse(JSON.stringify(Wv(r))).exp),{token:r}):{id:n,qr:i,secret:o,sms:s,number:a}}))}login(t,e,n,i){return jv(this,void 0,void 0,(function*(){const o=`${this.url}/${i?"sms-login":"auth-login"}`,r=i?{id:t,secret:e,code:n}:{id:t,secret:e,auth:n},{token:s}=yield this.httpClient.post(o,r,this.getHeaders()).toPromise();return localStorage.setItem("token",s),localStorage.setItem("profile",JSON.stringify(Wv(s))),localStorage.setItem("expiry",JSON.parse(JSON.stringify(Wv(s))).exp),{token:s}}))}preLoginResendSms(t,e){return jv(this,void 0,void 0,(function*(){const n=this.url+"/resend-sms-login",i={id:t,secret:e},{id:o,qr:r,secret:s,sms:a,number:l}=yield this.httpClient.post(n,i,this.getHeaders()).toPromise();return{id:o,qr:r,secret:s,sms:a,number:l}}))}signin(t){return jv(this,void 0,void 0,(function*(){const{token:e}=yield this.httpClient.post(this.url+"/reg",t,this.getHeaders()).toPromise();localStorage.setItem("token",e),localStorage.setItem("profile",JSON.stringify(Wv(e))),localStorage.setItem("expiry",JSON.parse(JSON.stringify(Wv(e))).exp)}))}signinInfo(){return this.httpClient.get(this.url+"/reg",this.getHeaders()).toPromise()}logout(){localStorage.removeItem("token"),localStorage.removeItem("profile"),localStorage.removeItem("expiry")}getTags(t){return this.httpClient.get(`${this.url}/pages?tags=${t}`,this.getHeaders()).toPromise()}getPage(t){return this.httpClient.get(`${this.url}/pages/${t}`,this.getHeaders()).toPromise()}getProfileData(){return this.httpClient.get(`${this.url}/reserved/${this.website}/profile`,this.getHeaders()).toPromise()}editProfileData(t){return this.httpClient.post(`${this.url}/reserved/${this.website}/profile`,t,this.getHeaders()).toPromise()}sendQuestion(t){return this.httpClient.post(`${this.url}/reserved/${this.website}/send-question`,t,this.getHeaders()).toPromise()}addBookmark(t){return this.httpClient.post(`${this.url}/reserved/${this.website}/bookmark`,t,this.getHeaders()).toPromise()}removeBookmark(t){return this.httpClient.post(`${this.url}/reserved/${this.website}/bookmark`,t,this.getHeaders()).toPromise()}readNotice(t,e){return this.httpClient.post(`${this.url}/reserved/${this.website}/mark-notice`,{id:t,type:e},this.getHeaders()).toPromise()}getNewsletters(){return this.httpClient.get(`${this.url}/reserved/${this.website}/newsletter/list`,this.getHeaders()).toPromise()}getNewslettersFilters(){return this.httpClient.get(`${this.url}/reserved/${this.website}/newsletter/filters`,this.getHeaders()).toPromise()}getNewsletter(t){return this.httpClient.get(`${this.url}/reserved/${this.website}/newsletter/get/${t}`,this.getHeaders()).toPromise()}getFilteredNewsletter(t,e){return this.httpClient.get(`${this.url}/reserved/${this.website}/newsletter/list?year=${t}&month=${e}`,this.getHeaders()).toPromise()}resetPassword(t){return this.httpClient.post(`${this.url}/reset-password/${this.website}`,{email:t},this.getHeaders()).toPromise()}checkCounter(t="sentences"){return this.httpClient.get(`${this.url}/counters/${this.website}/${t}`,this.getHeaders()).toPromise()}setCounter(t="sentences"){return this.httpClient.post(`${this.url}/counters/${this.website}/${t}`,{},this.getHeaders()).toPromise()}connectaUser(){return this.httpClient.get(`${this.url}/${this.website}/connecta`,this.getHeaders()).toPromise()}getHeaders(){return localStorage.getItem("token")?{headers:new Tp({Authorization:localStorage.getItem("token"),"X-Website":this.website,"Content-Type":"application/json"})}:{headers:new Tp({"X-Website":this.website,"Content-Type":"application/json"})}}me(){return this.httpClient.get(this.url+"/logged",this.getHeaders()).toPromise()}allProvinces(){return this.httpClient.get(`${this.url}/${this.website}/provinces`,this.getHeaders()).toPromise()}allFormData(){return this.httpClient.get(`${this.url}/search/${this.website}/form`,this.getHeaders()).toPromise()}autority(t){return this.httpClient.get(`${this.url}/search/${this.website}/authorities?type=${t}`,this.getHeaders()).toPromise()}search(t){return this.httpClient.post(`${this.url}/search/${this.website}`,t,this.getHeaders()).toPromise()}getPdf(t,e){return this.httpClient.get(`${this.url}/${t}/${this.website}/pdf/${e}`,this.getHeaders()).toPromise().then(t=>t.pdf)}getHtml(t,e,n={}){return this.httpClient.get(`${this.url}/${t}/${this.website}/html/${e}?${this.qs(n)}`,this.getHeaders()).toPromise().then(t=>t.html)}provinces(t){return this.httpClient.get(`${this.url}/${this.website}/provinces?region=${t}`,this.getHeaders()).toPromise()}subscriptionExtension(t){return this.httpClient.post(`${this.url}/reserved/${this.website}/upload-subscription-extension`,t,this.getHeaders()).toPromise()}getPurchasableReport(t,e){return this.httpClient.get(`${this.url}/${this.getKeyUrl(t)}/${this.website}/price/${e}`,this.getHeaders())}cities({year:t,region:e,province:n,q:i}){let o=`${this.url}/${this.website}/cities?year=${t}`;return e&&(o+="&region="+e),n&&(o+="&province="+n),i&&(o+="&q="+i),this.httpClient.get(o,this.getHeaders()).toPromise()}zones({year:t,region:e,province:n,q:i}){let o=`${this.url}/${this.website}/zones?year=${t}`;return e&&(o+="&region="+e),n&&(o+="&province="+n),i&&(o+="&q="+i),this.httpClient.get(o,this.getHeaders()).toPromise()}crops(t,e){return jv(this,void 0,void 0,(function*(){return this.httpClient.get(`${this.url}/${this.website}/crops?year=${t}&city=${e}`,this.getHeaders()).toPromise()}))}characteristics({year:t,city:e,crop:n}){return this.httpClient.get(`${this.url}/${this.website}/characteristics?year=${t}&crop=${n}&city=${e}`,this.getHeaders()).toPromise()}calculate({year:t,city:e,crop:n},i){return this.httpClient.post(`${this.url}/${this.website}/calculate?year=${t}&crop=${n}&city=${e}`,{answers:i},this.getHeaders()).toPromise()}createListinoComunale({year:t,city:e,token:n}){return this.httpClient.post(`${this.url}/${this.website}/pdf-listini?year=${t}&city=${e}`,n?{payment_info:n}:{},this.getHeaders()).toPromise()}books(){return this.httpClient.get(`${this.url}/ebooks/${this.website}`,this.getHeaders()).toPromise()}filters(t){return jv(this,void 0,void 0,(function*(){if(this.setSiteFilter.subscribe(t=>this.filteredSite=null==t?void 0:t.id),!this.hasFilters(t)&&this.showCategories(t)){const{categories:e}=yield this.httpClient.get(`${this.url}/${this.getKeyUrl(t)}/${this.website}/categories?dol_dossier=${this.filteredSite}`,this.getHeaders()).toPromise();return Promise.resolve({years:[],categories:e,months:this.months,authors:[]})}if(!this.hasFilters(t))return Promise.resolve({categories:[],years:[],months:this.months,authors:[]});let e="";e=this.filteredSite?`${this.url}/${this.getKeyUrl(t)}/${this.website}/filters?dol_dossier=${this.filteredSite}`:`${this.url}/${this.getKeyUrl(t)}/${this.website}/filters`;const n=yield this.httpClient.get(e,this.getHeaders()).toPromise();return Object.assign(Object.assign({},n),{months:this.months})}))}getKeyUrl(t,e=!1){switch(t){case"sentences":return e?"sentences":"synthesis";case"laws":return"laws";case"tools":return"tools";case"doctrine":return"analysis";case"practice":return"practice";case"news":return"news";default:return"synthesis"}}loadUniqueTexts(t){return jv(this,void 0,void 0,(function*(){return this.uniqueTexts=(yield this.list("testo-unico",t)).list,this.uniqueTexts}))}list(t,e){const n="sentences"===t?"search":"list";return this.setSiteFilter.subscribe(t=>this.filteredSite=null==t?void 0:t.id),this.listUrl=this.filteredSite?`${this.url}/${this.getKeyUrl(t)}/${this.website}/${n}?${Bv(e,!0)}&dol_dossier=${this.filteredSite}`:`${this.url}/${this.getKeyUrl(t)}/${this.website}/${n}?${Bv(e,!0)}`,this.httpClient.get(this.listUrl,this.getHeaders()).toPromise()}credits(){return jv(this,void 0,void 0,(function*(){const t=`${this.url}/${this.website}/pacchetti-crediti`;return(yield this.httpClient.get(t,this.getHeaders()).toPromise()).list}))}singleItem(t,e){const n=`${this.url}/${this.getKeyUrl(t,!0)}/${this.website}/get/${e}`;return this.httpClient.get(n,this.getHeaders()).toPromise()}subscription(t){return this.httpClient.post(`${this.url}/richiesta-abbonamento/${this.website}`,t,this.getHeaders()).toPromise()}categories(t,e){return jv(this,void 0,void 0,(function*(){let n="";return n=this.filteredSite?`${this.url}/${this.getKeyUrl(t)}/${this.website}/categories?category=${e}&dol_dossier=${this.filteredSite}`:`${this.url}/${this.getKeyUrl(t)}/${this.website}/categories?category=${e}`,(yield this.httpClient.get(n,this.getHeaders()).toPromise()).categories}))}placeOrder(t){return this.httpClient.post(`${this.url}/place-order/${this.website}`,t,this.getHeaders()).pipe(R(t=>t.id))}goToPayment(t,e="_self"){window.open(`${this.exnetUrl}/payments/pay/${t}/server`,e)}getPdfOrder(t){return this.httpClient.post(`${this.url}/pdf-order/${this.website}`,{token:t},this.getHeaders())}convertedTitle(t){switch(t){case"sentences":return"giurisprudenza";case"news":return"notizie";case"practice":return"prassi";case"laws":return"legislazione";case"doctrine":return"approfondimenti";case"ebooks":return"pubblicazioni";default:return t}}showCategories(t){return["tools","doctrine","sentences","articles","questions"].includes(t)}hasFilters(t){return["news","laws","doctrine","sentences","practice"].includes(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Wp))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yv=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-loader"]],decls:2,vars:0,consts:[[1,"size"],["src","assets/img/loader.gif","alt","loader",1,"center"]],template:function(t,e){1&t&&(js(0,"div",0),Us(1,"img",1),Bs())},styles:[".size[_ngcontent-%COMP%]{padding-bottom:200px;min-height:1000px}.center[_ngcontent-%COMP%]{margin-top:100px;display:block;margin-left:auto;margin-right:auto;width:10%;height:10%}"]}),t})(),Qv=(()=>{class t{transform(t,...e){return t&&t.includes("^")?t.split("^")[0]:t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"trunk",type:t,pure:!0}),t})();function Jv(t,e){if(1&t&&(js(0,"div",6),Us(1,"app-categories-item-list",7),Bs()),2&t){const t=e.$implicit,n=Xs(2);Co(1),$s("category",t)("articles",n.articles)}}function Kv(t,e){if(1&t){const t=Ws();js(0,"div",8),js(1,"div",9),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).showModal(n)})),Aa(2),Tc(3,"trunk"),Us(4,"span",10),Tc(5,"trunk"),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(2),Fa("",Fc(3,2,"Art."+t.numero)," - "),Co(2),$s("innerHtml",Fc(5,4,t.titolo),Xi)}}function Xv(t,e){if(1&t&&(qs(0),Ns(1,Jv,2,2,"div",4),Ns(2,Kv,6,6,"div",5),Gs()),2&t){const t=Xs();Co(1),$s("ngForOf",t.category.sub),Co(1),$s("ngForOf",t.category.articles)}}const tb=function(t){return{open:t}};let eb=(()=>{class t{constructor(t){this.dataService=t,this.closeEvent=new Lc}toggle(t){return jv(this,void 0,void 0,(function*(){t.open=!t.open,t.open&&(t.articles=this.articles.filter(({categoria:e})=>e===t.id),t.sub=yield this.dataService.categories("testo-unico",t.id))}))}showModal(t){this.dataService.obs.next(t),$("#articleModal").modal("show")}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-categories-item-list"]],inputs:{category:"category",articles:"articles"},outputs:{closeEvent:"closeEvent"},decls:5,vars:5,consts:[[1,"row"],[1,"col"],[1,"ut-title",3,"ngClass","click"],[4,"ngIf"],["class","sub-category",4,"ngFor","ngForOf"],["class","articles",4,"ngFor","ngForOf"],[1,"sub-category"],[3,"category","articles"],[1,"articles"],[1,"article",3,"click"],[3,"innerHtml"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),Qs("click",(function(){return e.toggle(e.category)})),Aa(3),Bs(),Ns(4,Xv,3,2,"ng-container",3),Bs(),Bs()),2&t&&(Co(2),$s("ngClass",kc(3,tb,e.category.open)),Co(1),Ta(e.category.name),Co(1),$s("ngIf",e.category.open))},directives:[lh,ph,dh,t],pipes:[Qv],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover}.bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%], .ut-title[_ngcontent-%COMP%]:before{background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .ut-title[_ngcontent-%COMP%]:before{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.ut-title[_ngcontent-%COMP%]{font-size:18px;line-height:23px;font-weight:600;color:#3379b7;cursor:pointer;padding-bottom:8px;padding-left:20px;position:relative}.ut-title[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:14px;background-image:url(arrow-right.d86c4681756eb6b1d363.svg);margin-right:8px;position:absolute;left:0;top:4px}.ut-title.open[_ngcontent-%COMP%]{padding-bottom:0}.ut-title.open[_ngcontent-%COMP%]:before{background-image:url(arrow-down.99100024180d06cf6459.svg)}.sub-category[_ngcontent-%COMP%]{padding:10px 0 0 41px}.sub-category[_ngcontent-%COMP%]:last-child{padding-bottom:20px}.sub-category[_ngcontent-%COMP%]   .ut-title[_ngcontent-%COMP%]{color:#88aa17}.articles[_ngcontent-%COMP%]{padding:4px 0 4px 27px}.articles[_ngcontent-%COMP%]   .article[_ngcontent-%COMP%]{cursor:pointer}.articles[_ngcontent-%COMP%]:last-child{padding-bottom:20px}']}),t})();function nb(t,e){if(1&t){const t=Ws();js(0,"button",3),Qs("click",(function(){return Xe(t),Xs().showModal()})),js(1,"b"),Aa(2,"Clicca"),Bs(),Aa(3),Bs()}if(2&t){const t=Xs();Co(3),Fa(" e naviga nelle categorie di ",t.title," ")}}function ib(t,e){if(1&t){const t=Ws();js(0,"button",3),Qs("click",(function(){return Xe(t),Xs().showModal()})),js(1,"b"),Aa(2),Bs(),Bs()}if(2&t){const t=Xs();Co(2),Ta(t.text)}}let ob=(()=>{class t{constructor(t,e){this.route=t,this.dataService=e,this.text=""}ngOnInit(){var t;this.title=this.dataService.convertedTitle(null===(t=this.route.snapshot.routeConfig)||void 0===t?void 0:t.path.split("/")[0])}showModal(){$("#categoryModal").modal("show")}closeModal(){$("#categoryModal").modal("hide")}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-click-and-navigate"]],inputs:{text:"text"},decls:4,vars:2,consts:[[1,"row"],[1,"col-md-8","offset-md-2","d-flex","justify-content-center"],["type","button","class","btn btn-categories",3,"click",4,"ngIf"],["type","button",1,"btn","btn-categories",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),Ns(2,nb,4,1,"button",2),Ns(3,ib,3,1,"button",2),Bs(),Bs()),2&t&&(Co(2),$s("ngIf",!e.text),Co(1),$s("ngIf",e.text))},directives:[ph],styles:[""]}),t})(),rb=(()=>{class t{constructor(t){this.sanitizer=t}transform(t,e){switch(e){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:return this.sanitizer.bypassSecurityTrustHtml(t)}}}return t.\u0275fac=function(e){return new(e||t)(Rs(wp))},t.\u0275pipe=Ce({name:"safe",type:t,pure:!0}),t})();function sb(t,e){1&t&&Us(0,"app-loader")}function ab(t,e){if(1&t&&(qs(0),Us(1,"app-categories-item-list",12),Gs()),2&t){const t=e.$implicit,n=Xs(3);Co(1),$s("category",t)("articles",null==n.ut?null:n.ut.list)}}function lb(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),js(3,"div",5),Aa(4,"Testo Unico"),Bs(),js(5,"div",6),js(6,"a",7),Aa(7,"Testo unico integrale aggiornato"),Bs(),js(8,"span",8),Aa(9,"|"),Bs(),js(10,"a",9),Tc(11,"safe"),Us(12,"img",10),Aa(13," Versione Tascabile"),Bs(),Bs(),Ns(14,ab,2,2,"ng-container",11),Bs(),Bs(),Gs()),2&t){const t=Xs(2);Co(6),na("href",null==t.ut?null:t.ut.integrale,to),Co(4),$s("href",Nc(11,3,t.getTestoUnicoPdfUrl(),"url"),to),Co(4),$s("ngForOf",t.categories)}}function cb(t,e){1&t&&(qs(0),js(1,"div",3),js(2,"div",4),js(3,"div",5),Aa(4,"Testo Unico"),Bs(),Us(5,"app-click-and-navigate",13),Bs(),Bs(),Gs())}function ub(t,e){if(1&t&&(js(0,"div",2),Ns(1,lb,15,6,"ng-container",0),Ns(2,cb,6,0,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",t.isLoggedIn),Co(1),$s("ngIf",!t.isLoggedIn)}}let db=(()=>{class t{constructor(t,e,n){this.dataService=t,this.route=e,this.router=n,this.searchInput={page:1,year:null,region:null,type:null,query:"",query_type:"words"},this.articles=[],this.currentSub=[],this.loaded=!0}ngOnInit(){this.loaded=!1,this.isLoggedIn=this.dataService.isLoggedIn(),this.init()}init(){return jv(this,void 0,void 0,(function*(){this.title=this.route.snapshot.routeConfig.path,this.filters=yield this.dataService.filters(this.title);const{categories:t}=this.filters;this.categories=t,this.ut=yield this.dataService.list("testo-unico",this.searchInput),this.loaded=!0}))}getTestoUnicoPdfUrl(){var t,e,n;return this.isLoggedIn?(null===(e=null===(t=this.ut)||void 0===t?void 0:t.tascabile)||void 0===e?void 0:e.content)?"data:"+this.ut.tascabile.mime_type+";base64,"+this.ut.tascabile.content:null===(n=this.ut)||void 0===n?void 0:n.tascabile:null}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-article-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row"],[1,"col"],[1,"main-title"],[1,"subtitle"],["target","_blank",3,"href"],[1,"px-2"],["download","testo-unico.pdf","target","_blank",3,"href"],["src","assets/img/pdf.svg"],[4,"ngFor","ngForOf"],[3,"category","articles"],["text","GLI ARTICOLI SONO DISPONIBILI SOLO AGLI ABBONATI"]],template:function(t,e){1&t&&(Ns(0,sb,1,0,"app-loader",0),Ns(1,ub,3,2,"div",1)),2&t&&($s("ngIf",!e.loaded),Co(1),$s("ngIf",e.loaded))},directives:[ph,Yv,dh,eb,ob],pipes:[rb],styles:[".subtitle[_ngcontent-%COMP%]{text-align:right;margin-bottom:30px;font-weight:600}.subtitle[_ngcontent-%COMP%], .subtitle[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#213412}.subtitle[_ngcontent-%COMP%]:hover   a[_ngcontent-%COMP%]{text-decoration:none}"]}),t})();class hb extends d{constructor(t,e){super()}schedule(t,e=0){return this}}class pb extends hb{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,i=void 0;try{this.work(t)}catch(o){n=!0,i=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class gb extends pb{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let fb=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class mb extends fb{constructor(t,e=fb.now){super(t,()=>mb.delegate&&mb.delegate!==this?mb.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return mb.delegate&&mb.delegate!==this?mb.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class vb extends mb{}const bb=new vb(gb);let yb=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Pp(this.value);case"E":return t=this.error,new _(e=>e.error(t));case"C":return mg()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class _b extends g{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(_b.dispatch,this.delay,new wb(t,this.destination)))}_next(t){this.scheduleMessage(yb.createNext(t))}_error(t){this.scheduleMessage(yb.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(yb.createComplete()),this.unsubscribe()}}class wb{constructor(t,e){this.notification=t,this.destination=e}}class Cb extends M{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new xb(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;let r;if(this.closed)throw new C;if(this.isStopped||this.hasError?r=d.EMPTY:(this.observers.push(t),r=new x(this,t)),i&&t.add(t=new _b(t,i)),e)for(let s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||bb).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,i=this._events,o=i.length;let r=0;for(;r<o&&!(t-i[r].time<n);)r++;return o>e&&(r=Math.max(r,o-e)),r>0&&i.splice(0,r),i}}class xb{constructor(t,e){this.time=t,this.value=e}}const Ob=["imageFirst"],Mb=["imageSecond"],Pb=["imageLast"],Ib=["lightboxImage"],kb=["prevImageElem"],Sb=["lightboxContainer"];function Eb(t,e){if(1&t&&(js(0,"div",11),Aa(1),Bs()),2&t){const t=Xs();Co(1),Ta(t.counter)}}function Db(t,e){if(1&t){const t=Ws();js(0,"div",12),Qs("click",(function(){return Xe(t),Xs().closeLightbox()})),Aa(1),Bs()}if(2&t){const t=Xs();Co(1),Ta(t.closeButtonText)}}function Ab(t,e){1&t&&Us(0,"div",13)}function Tb(t,e){1&t&&(js(0,"div",14),Us(1,"div",13),Bs())}function Fb(t,e){1&t&&(js(0,"div",15),Aa(1,"Failed to load image"),Bs())}let Nb=(()=>{let t=class{constructor(){this.emitter=new Cb(1)}emitChangeEvent(t){this.emitter.next(t)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vb=(()=>{let t=class{constructor(t){this.eventService=t,this.currentImageIndex=0,this.indexCurrentSlide=1,this.containerStyles={transition:"",transform:"",width:"",height:"",opacity:""},this.currImageLoadingState="not-loaded",this.isMobile=class{static mobileCheck(){var t,e=!1;return t=navigator.userAgent||navigator.vendor,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e}}.mobileCheck()}get lightboxImage(){return this._lightboxImage}get lightboxImageElement(){if(this.lightboxImage)return this.lightboxImage.nativeElement}get lightboxImageNaturalHeight(){if(this.lightboxImageElement)return this.lightboxImageElement.naturalHeight}get lightboxImageNaturalWidth(){if(this.lightboxImageElement)return this.lightboxImageElement.naturalWidth}get index(){return this.currentImageIndex}get properties(){return this.lightboxData.properties}get images(){return this.lightboxData.images||[this.lightboxData.image]}get thumbnailImage(){return this.images[this.currentImageIndex].nativeElement}get thumbnailImagePosition(){return this.thumbnailImage.getBoundingClientRect()}get virtualImageDimension(){let t=this.lightboxImageNaturalHeight,e=t*this.imageAspectRatio;const n=document.body.clientWidth,i=window.innerHeight;return this.isImageLargerWindow?(t>i&&(t=i,e=t*this.imageAspectRatio),e>n&&(e=n,t=e/this.imageAspectRatio)):(e=this.lightboxImageNaturalWidth,t=this.lightboxImageNaturalHeight),0===e||0===Number.parseInt(t)?{width:200,height:200}:{width:e,height:t}}get containerInitialPosition(){const t="initial-thumbnail-image"===this.showState?1:this.containerScale;return"matrix("+t+", 0, 0, "+t+","+this.thumbnailImagePosition.left+","+this.thumbnailImagePosition.top+")"}get containerFullscreenPosition(){return"translate3d("+(document.body.clientWidth-this.virtualImageDimension.width)/2+"px, "+(window.innerHeight-this.virtualImageDimension.height)/2+"px, 0)"}get containerScale(){return this.thumbnailImagePosition.width/this.virtualImageDimension.width}get imageAspectRatio(){return this.thumbnailImage.naturalWidth/this.thumbnailImage.naturalHeight}get isImageLargerWindow(){const t=document.body.clientWidth,e=window.innerHeight;return this.lightboxImageNaturalWidth>t||this.lightboxImageNaturalHeight>e}get isFirstImage(){return!this.properties.loop&&0===this.index}get isLastImage(){return!this.properties.loop&&this.index===this.latestImageIndex}get latestImageIndex(){return this.images.length-1}get backgroundColor(){const t=this.properties.backgroundOpacity;return"black"===this.properties.backgroundColor?"rgba(0, 0, 0, "+t+")":"rgba(255, 255, 255, "+t+")"}get animationDuration(){const t=this.properties.animationDuration;return"string"==typeof t?Number.parseInt(t):t}get animationMode(){return"error"===this.currImageLoadingState?"default":this.properties.animationMode}get animationTimingFunction(){return this.properties.animationTimingFunction}get closeButtonText(){return this.properties.closeButtonText}get counterSeparator(){return this.properties.counterSeparator}get counter(){return this.currentImageIndex+1+this.counterSeparator+this.images.length}emitState(t,e){"initial-virtual-image"!==e&&"initial-styles"!==e&&("initial-default"!==e&&"initial-thumbnail-image"!==e||(e="initial"),this.eventService.emitChangeEvent({type:t+":"+e}))}setShowState(t){this.showState=t,this.emitState("show-state",t)}setClosingState(t){this.closingState=t,this.emitState("closing-state",t)}setAnimationDuration(){this.hostStyleTransition="background-color "+this.animationDuration+"ms",this.containerStyles.transition="all "+this.animationDuration+"ms "+this.animationTimingFunction}setBackgroundColor(){this.hostStyleBackgroundColor=this.backgroundColor}getContainerHeight(){return this.thumbnailImagePosition.height/this.containerScale+"px"}showThumbnailImage(){this.thumbnailImage.style.opacity=""}hideThumbnailImage(){this.thumbnailImage.style.opacity=0}updateThumbnailPosition(){this.containerStyles.transform=this.containerInitialPosition}};return t.\u0275fac=function(e){return new(e||t)(Rs(Nb))},t.\u0275cmp=fe({type:t,selectors:[["lightbox-common"]],viewQuery:function(t,e){var n;1&t&&(Qc(Ob,!0),Qc(Mb,!0),Qc(Pb,!0),Qc(Ib,!0)),2&t&&(Yc(n=tu())&&(e._imageFirst=n.first),Yc(n=tu())&&(e._imageSecond=n.first),Yc(n=tu())&&(e._imageLast=n.first),Yc(n=tu())&&(e._lightboxImage=n.first))},hostVars:4,hostBindings:function(t,e){2&t&&va("transition",e.hostStyleTransition)("background-color",e.hostStyleBackgroundColor)},inputs:{lightboxData:"lightboxData"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),Rb=(()=>{let t=class extends Vb{constructor(t,e,n){super(n),this.elementRef=t,this.ref=e,this.eventService=n,this.spinnerHeight=30,this.minTimeout=30,this.preloaderTimeout=100,this.spinnerStyles={transform:""},this.configThumbnailPreloader=!0,this.events=new Lc,this.hostShown=!1,this.hideControls=!1}get simpleMode(){return this.properties.simpleMode}get hostLightTheme(){return"white"===this.properties.backgroundColor}get currImagePath(){let t,e=this.images[this.index];return!!e&&(e.fullImage&&e.fullImage.path?t=e.fullImage.path:e.thumbnailImage&&e.thumbnailImage.path?t=e.thumbnailImage.path:e.path&&(t=e.path),t)}get prevImagePath(){return this.images[this.prevIndex]}set prevImagePath(t){this.images[this.prevIndex]=t}get isHiddenPrevArrow(){return this.isFirstImage&&!this.properties.loop||this.isZoomIn}get isHiddenNextArrow(){return this.isLastImage&&!this.properties.loop||this.isZoomIn}get isPreloader(){return"zoom-preloader"===this.animationMode&&"animation-end"!=this.showState&&"loading"===this.currImageLoadingState}get imageOrientation(){return this.thumbnailImage.naturalWidth>this.thumbnailImage.naturalHeight?"horizontal":"vertical"}scrolling(){"initial-thumbnail-image"!==this.showState&&"initial-virtual-image"!==this.showState&&"animation"!==this.closingState||this.updateThumbnailPosition()}onKeyDown(t){switch(t.key){case"ArrowLeft":this.prev();break;case"ArrowRight":this.next();break;case"Escape":this.closeLightbox()}}onMouseEnter(t){this.hideControls=!1}transitionEnd(t){"transform"===t.propertyName&&this.hostAnimation&&(this.hostAnimation=!1)}ngOnInit(){this.currentImageIndex=this.properties.index,this.initialLightbox()}ngAfterViewInit(){setTimeout(()=>{"not-loaded"===this.currImageLoadingState&&(this.currImageLoadingState="loading")},this.preloaderTimeout),"default"===this.animationMode&&setTimeout(()=>{this.showLightboxAnimation()},this.minTimeout)}onImageLoaded(){"zoom-preloader"===this.animationMode&&"initial-thumbnail-image"===this.showState&&(this.initialLightboxVirtualImage(),setTimeout(()=>{this.currImageLoadingState="uploaded",this.showLightboxAnimation(),this.properties.hideThumbnail&&this.hideThumbnailImage()},this.minTimeout)),"animation-end"===this.showState&&(this.currImageLoadingState="uploaded",this.properties.hideThumbnail&&this.hideThumbnailImage()),this.ref.detectChanges()}onImageError(t){this.currImageLoadingState="error",this.initialLightboxDefault(),setTimeout(()=>{this.showLightboxAnimation()},this.minTimeout)}onContainerClick(t){(t.target===this.lightboxContainerElem.nativeElement||this.simpleMode)&&this.closeLightbox()}initialLightbox(){switch(this.setMaxDimensions(),this.setAnimationDuration(),this.animationMode){case"zoom-preloader":this.initialLightboxThumbnailImage();break;case"default":this.initialLightboxDefault()}}initialLightboxDefault(){this.showState="initial-default",this.containerStyles={transform:"translate3d(0, 0, 0)",height:"100%",width:"100%",opacity:"0"}}initialLightboxVirtualImage(){this.setShowState("initial-virtual-image"),this.containerStyles={transform:this.containerInitialPosition,height:this.virtualImageDimension.height+"px",width:this.virtualImageDimension.width+"px"}}initialLightboxThumbnailImage(){this.setShowState("initial-thumbnail-image"),this.containerStyles={transform:this.containerInitialPosition,height:this.thumbnailImagePosition.height+"px",width:this.thumbnailImagePosition.width+"px"}}showLightboxAnimation(){this.hostAnimation=!0,this.setShowState("animation"),this.hostShown=!0,this.setBackgroundColor(),this.setAnimationDuration(),"zoom-preloader"===this.animationMode&&"error"!==this.currImageLoadingState&&(this.containerStyles.transform=this.containerFullscreenPosition),"default"===this.animationMode&&(this.containerStyles.opacity="1")}showLightboxAnimationEnd(){this.setShowState("animation-end"),this.containerStyles={transform:"translate3d(0, 0, 0)",height:"100%",width:"100%"}}closeLightbox(){this.setClosingState("initial"),this.hostShown=!1,this.closeLightboxInitial()}closeLightboxInitial(){this.setClosingState("initial-styles"),"zoom-preloader"===this.animationMode&&(this.containerStyles={transform:this.containerFullscreenPosition,height:this.virtualImageDimension.height+"px",width:this.virtualImageDimension.width+"px"}),"default"===this.animationMode&&(this.containerStyles.opacity="1"),setTimeout(()=>{this.closeLightboxAnimation()},this.minTimeout)}closeLightboxAnimation(){this.setClosingState("animation"),"zoom-preloader"===this.animationMode&&(this.hostAnimation=!0,this.containerStyles={transform:this.containerInitialPosition,height:this.getContainerHeight(),width:this.getContainerWidth()},this.hostStyleBackgroundColor=""),"default"===this.animationMode&&(this.hostAnimation=!0,this.containerStyles.opacity="0",this.hostStyleBackgroundColor=""),this.setAnimationDuration(),0===this.animationDuration&&this.closeLightboxAnimationEnd()}closeLightboxAnimationEnd(){this.setClosingState("animation-end"),this.events.emit({type:"close"}),"zoom-preloader"===this.animationMode&&this.showThumbnailImage()}handleLightboxTransitionEnd(t){"animation"===this.showState&&this.showLightboxAnimationEnd(),"animation"===this.closingState&&this.closeLightboxAnimationEnd()}next(){if("zoom-preloader"===this.animationMode&&this.showThumbnailImage(),this.isLastImage){if(!this.properties.loop)return;this.currentImageIndex=0}else this.currentImageIndex++,this.currImageLoadingState="loading";setTimeout(()=>{"uploaded"!==this.currImageLoadingState&&(this.currImageLoadingState="loading")},this.preloaderTimeout)}prev(){if("zoom-preloader"===this.animationMode&&this.showThumbnailImage(),this.isFirstImage){if(!this.properties.loop)return;this.currentImageIndex=this.latestImageIndex}else this.currentImageIndex--,this.currImageLoadingState="loading";setTimeout(()=>{"uploaded"!==this.currImageLoadingState&&(this.currImageLoadingState="loading")},this.preloaderTimeout)}setMaxDimensions(){this.lightboxImage.nativeElement.style.maxHeight="calc("+this.properties.imageMaxHeight+")",this.lightboxImage.nativeElement.style.maxWidth=this.properties.imageMaxWidth}handlePinchZoomEvents(t){"zoom-in"===t.type&&(this.isZoomIn=!0),"zoom-out"===t.type&&(this.isZoomIn=!1)}getContainerWidth(){return this.thumbnailImagePosition.width/this.containerScale+"px"}};return t.\u0275fac=function(e){return new(e||t)(Rs(rl),Rs(es),Rs(Nb))},t.\u0275cmp=fe({type:t,selectors:[["crystal-lightbox"]],viewQuery:function(t,e){var n;1&t&&(Qc(kb,!0),Qc(Sb,!0)),2&t&&(Yc(n=tu())&&(e.prevImageElem=n.first),Yc(n=tu())&&(e.lightboxContainerElem=n.first))},hostVars:12,hostBindings:function(t,e){1&t&&Qs("scroll",(function(){return e.scrolling()}),!1,Un)("keydown",(function(t){return e.onKeyDown(t)}),!1,Un)("mouseenter",(function(t){return e.onMouseEnter(t)}))("transitionend",(function(t){return e.transitionEnd(t)})),2&t&&(va("background-color",e.hostStyleBackgroundColor),ba("lightbox-shown",e.hostShown)("lightbox-hide-controls",e.hideControls)("lightbox-simple-mode",e.simpleMode)("lightbox-light",e.hostLightTheme)("lightbox-animation",e.hostAnimation))},features:[za],decls:11,vars:11,consts:[["class","lightbox-counter",4,"ngIf"],["class","lightbox-close",3,"click",4,"ngIf"],["class","lightbox-spinner",4,"ngIf"],[1,"lightbox-container",3,"ngStyle","transitionend","click"],["lightboxContainer",""],["class","lightbox-preloader",4,"ngIf"],["class","lightbox-error",4,"ngIf"],[1,"lightbox-curr-image",3,"src","load","error"],["lightboxImage",""],[1,"lightbox-prev",3,"hidden","click"],[1,"lightbox-next",3,"hidden","click"],[1,"lightbox-counter"],[1,"lightbox-close",3,"click"],[1,"lightbox-spinner"],[1,"lightbox-preloader"],[1,"lightbox-error"]],template:function(t,e){1&t&&(Ns(0,Eb,2,1,"div",0),Ns(1,Db,2,1,"div",1),Ns(2,Ab,1,0,"div",2),js(3,"div",3,4),Qs("transitionend",(function(t){return e.handleLightboxTransitionEnd(t)}))("click",(function(t){return e.onContainerClick(t)})),Ns(5,Tb,2,0,"div",5),Ns(6,Fb,2,0,"div",6),js(7,"img",7,8),Qs("load",(function(){return e.onImageLoaded()}))("error",(function(t){return e.onImageError(t)})),Bs(),Bs(),js(9,"div",9),Qs("click",(function(){return e.prev()})),Bs(),js(10,"div",10),Qs("click",(function(){return e.next()})),Bs()),2&t&&($s("ngIf",e.properties.counter&&e.images.length>1),Co(1),$s("ngIf",!e.simpleMode),Co(1),$s("ngIf","loading"===e.currImageLoadingState&&"animation-end"===e.showState),Co(1),$s("ngStyle",e.containerStyles),Co(2),$s("ngIf",e.isPreloader),Co(1),$s("ngIf","error"===e.currImageLoadingState&&!e.closingState),Co(1),ba("lightbox-show","uploaded"===e.currImageLoadingState),$s("src",e.currImagePath,to),Co(2),$s("hidden",e.isHiddenPrevArrow),Co(1),$s("hidden",e.isHiddenNextArrow))},directives:[ph,Ch],styles:['.lightbox-spinner[_ngcontent-%COMP%], .lightbox-spinner[_ngcontent-%COMP%]:after, .lightbox-spinner[_ngcontent-%COMP%]:before{border-radius:50%;width:10px;height:10px;-webkit-animation:1.5s ease-in-out infinite lightbox-load;animation:1.5s ease-in-out infinite lightbox-load}.lightbox-spinner[_ngcontent-%COMP%]{color:#fff;font-size:10px;margin:0 auto 20px;position:relative;text-indent:-9999em;transform:translateZ(0);-webkit-animation-delay:-.16s;animation-delay:-.16s}.lightbox-spinner[_ngcontent-%COMP%]:after, .lightbox-spinner[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0}.lightbox-spinner[_ngcontent-%COMP%]:before{left:-32px;-webkit-animation-delay:-.32s;animation-delay:-.32s}.lightbox-spinner[_ngcontent-%COMP%]:after{left:32px}@-webkit-keyframes lightbox-load{0%,100%,80%{box-shadow:0 2.5em 0 -1.3em}40%{box-shadow:0 2.5em 0 0}}@keyframes lightbox-load{0%,100%,80%{box-shadow:0 10px 0 -1.3em}40%{box-shadow:0 10px 0 0}}.lightbox-shown[_nghost-%COMP%]{opacity:1}.lightbox-shown[_nghost-%COMP%]   .lightbox-close[_ngcontent-%COMP%], .lightbox-shown[_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%], .lightbox-shown[_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]{opacity:.5;transition-delay:.1s}.lightbox-shown[_nghost-%COMP%]   .lightbox-close[_ngcontent-%COMP%]:hover, .lightbox-shown[_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%]:hover, .lightbox-shown[_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]:hover{opacity:1;transition-delay:0}.lightbox-shown[_nghost-%COMP%]   .lightbox-counter[_ngcontent-%COMP%]{opacity:1}.lightbox-hide-controls[_nghost-%COMP%]   .lightbox-close[_ngcontent-%COMP%], .lightbox-hide-controls[_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%], .lightbox-hide-controls[_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]{opacity:0}.lightbox-simple-mode[_nghost-%COMP%]   .lightbox-container[_ngcontent-%COMP%]{cursor:zoom-out}[_nghost-%COMP%]:not(.lightbox-animation)   .lightbox-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;top:0;left:0;height:100%}.lightbox-light[_nghost-%COMP%]{color:#000;text-shadow:none}[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;color:#fff;text-shadow:0 0 1px rgba(0,0,0,.65);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10000}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{opacity:1;max-width:100%;max-height:100%}[_nghost-%COMP%]   img.lightbox-curr-image.lightbox-show[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%]   img.lightbox-curr-image[_ngcontent-%COMP%]{opacity:0;z-index:10}[_nghost-%COMP%]   .lightbox-container.lightbox-hide[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .lightbox-container[_ngcontent-%COMP%]{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transform-origin:top left}[_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]{background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;width:100%;height:100%;position:absolute}[_nghost-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]{position:absolute;top:51%;left:50%;margin-top:-15px;margin-left:-5px}[_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]{margin-top:-9px;margin-left:-3px}[_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%], [_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]:after, [_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]:before{width:6px;height:6px}[_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]:before{left:-21px}[_nghost-%COMP%]   .lightbox-preloader[_ngcontent-%COMP%]   .lightbox-spinner[_ngcontent-%COMP%]:after{left:21px}[_nghost-%COMP%]   .lightbox-counter[_ngcontent-%COMP%]{text-align:left;position:absolute;left:22px;top:13px;font-size:14px;z-index:30}[_nghost-%COMP%]   .lightbox-description[_ngcontent-%COMP%]{text-align:center;max-width:calc(100% - 200px);margin:0 auto;font-size:14px;line-height:43px;position:relative;z-index:50}[_nghost-%COMP%]   .lightbox-error[_ngcontent-%COMP%]{color:rgba(255,255,255,.75);font-size:19px}[_nghost-%COMP%]   .lightbox-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;padding:13px 22px;font-size:13px;text-transform:uppercase;cursor:pointer;opacity:.5;z-index:30;transition:opacity .1s ease-in-out}[_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%], [_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]{width:100px;height:100%;position:absolute;top:0;cursor:pointer;opacity:.5;z-index:20;transition:opacity .1s ease-in-out;-webkit-tap-highlight-color:rgba(255,255,255,0)}[_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]{left:0;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAiCAYAAABbXymAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjMzMTZCQzFERDgzMTExRTc5QUYxQTUxRDI5MkM5ODZCIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjMzMTZCQzFFRDgzMTExRTc5QUYxQTUxRDI5MkM5ODZCIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MzMxNkJDMUJEODMxMTFFNzlBRjFBNTFEMjkyQzk4NkIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MzMxNkJDMUNEODMxMTFFNzlBRjFBNTFEMjkyQzk4NkIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7VrwZKAAAClElEQVR42qzWSY8SQRgGYLoVHPeTXlwCiIwMArJGtiABNep4IGZi4oEfMJooLjePrnFGf5yJS0hYmq2b/aBxiQ6+lRRJdaUZq5vp5E2TLnioVFd9VZLN+iUxIdeMiW2fRVCmvz2DpJBVCk6X6SVBHQRLpVKb7Xb782g0Usrl8jM8W0P20+9YQn3JZPIhwN6MXoPBoI3nG8iKGZhF14A+AqrOmKtWq31F213kkOgQ69B0Ol0BqrFot9vV/H7/c7RfEoVZ1G+EdjqdvtfrfYn2K8gJkaHQodlstjIej/ssihdH0Ddov4acQo7QlycJo5PJhEc1j8fzmqJk2h1D7Lv1lkUv5nK5xzzaarWMUIcwms/nCTrgUbfbTdCrVtAAQafTqQ5VFEVdCi0UCk/Q0yGLNptN1el0vqLoaRHUxqPoKY/2KFo0g0r0ba4Wi8WnQEcs2mg0VAPULrJsZTqpNzDZ6yxar9dVl8tFVtR10SnFohJdgnZYuh9IkjSTZfknPn5DviO/kL/IjkgtIOhhJJ7JZF5gdU24hdDG6qqg/QJywEzlmg/FSTLhE4nE9nA4nHJFRvH5fJto94gOBfvyjtJxXI/H4x+A63re6/UUVDCCnzeDz6fbceQscjsWi703wFsM7hDBJQN8PRqNbmNn0OGapu0JfoviYx4PBAL30e5dCg+Hw0Z4e8/wfr/P451QKPRgaRzIFjDdksefsbjdKn5zER6JRMiwuP+3Ne2KB4PBLVVVR1xd+YK2O2bOFYvwd8CHbK/x/J6Zc8Ui/AZmxdtqtdrAwlFLpRLZrS/PYcnkEUuiY7hCS+g5sovT55+Qj7QS/jYD8zjp/UF6t9GS+oPed8zCLC5zJ0tSo//Q+8wKLHTw/ifAAMQVS4vHZR2VAAAAAElFTkSuQmCC) center left 22px no-repeat}[_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%]{right:0;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAiCAYAAABbXymAAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjEyNDE3MDE1RDgzMTExRTc5NjM4QTIzQzI2Rjc2Qjg2IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjEyNDE3MDE2RDgzMTExRTc5NjM4QTIzQzI2Rjc2Qjg2Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTI0MTcwMTNEODMxMTFFNzk2MzhBMjNDMjZGNzZCODYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTI0MTcwMTREODMxMTFFNzk2MzhBMjNDMjZGNzZCODYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zv5BKAAACl0lEQVR42rTW224SQRwGcHZb8FT1Sm88BJCiFAE5JpyCBNRE8coYEy94AGqi9XDXS0+JVh/CB/EhiFET5LjAclgWjaa1aazfJDM6u6LuLjrJl2124cd0duY/I9h+NoELabtcTLcFCon0bw+SRE4h28hn2xyNoIvISrlcfqAoSluSpLepVKqCe6cRB/2MYAXei1wfjUbSLm34gX4ymbyN+z6rOBmC/ciNer3+fpdrwGXgd8h/YwVn8Dm/37/e6/UGOnyQTqfXrOBsKI4g571e76Nutzv8De43gwv05S0hx5CLwJ/iBWrwyWQyzGazpnHyITtyCDlBcI/H8wS4ZlhUVbWMO/R4p9P5Bc/lcnfx/Ow8+AW32z0LH+Xz+X+Dt9ttmcen0ynDA1bx4wR3Op2PW62WrOv5uFAo3JsXL1K8r+v5LNxmZrb8wJvNpn5YlGKxeJ/WFruZBcRPxUsul2u90WhocCyqBqk3dLGJiwbgb/T6FflCSqkoiluCIGjqNGzWgQUz9YR8aQ9yBqtyDQtH0q1KNZPJPMTzOHKA4oaHwuPz+SooUm0eHY/H00QisUEWFHKUDYVRdBmVr9Lv9/WoGo/HX+J5iY7/QSMvj003hnb0aCwWe4HnV5GTyGEj002DDgYDDYqdRo1Goxu0p3pU+BvqDQQCqzPQCUWvzINKejQcDltHQ6HQLaBdHh0Oh5ZRO0OBaFD8iIL7z82ibGtyRyKR1T+gl82g/GZ6Dev/HY/KsqwEg0FLKL/93+R7C3QM9Nk8KDtiOWq12jb2s2XS01Kp9Kparb7G/TfIR2QT2TF6UBS42bBEi/UK/SIBPyCfkC0zKA+z6rWPXm30tLlJr6ZQ/ZmYDYnI1eEdejV9Thb+18H7uwADAOG/Wcm4x+knAAAAAElFTkSuQmCC) center right 22px no-repeat}[_nghost-%COMP%]   .lightbox-close[_ngcontent-%COMP%], [_nghost-%COMP%]   .lightbox-counter[_ngcontent-%COMP%], [_nghost-%COMP%]   .lightbox-next[_ngcontent-%COMP%], [_nghost-%COMP%]   .lightbox-prev[_ngcontent-%COMP%]{opacity:0;transition:opacity 150ms cubic-bezier(.475,.105,.445,.945)}']}),t})();const Lb={loop:!1,index:0,counter:!1,imageMaxHeight:"100%",imageMaxWidth:"100%",animationDuration:350,animationMode:"zoom-preloader",animationTimingFunction:"cubic-bezier(0.475, 0.105, 0.445, 0.945)",closeButtonText:"Close",counterSeparator:"/",disable:!1,simpleMode:!1,backgroundColor:"black",backgroundOpacity:1,hideThumbnail:!0,gestureEnable:!1};let zb=(()=>{let t=class{constructor(t,e,n){this.componentFactoryResolver=t,this.appRef=e,this.injector=n}appendComponentToBody(t,e){const n=this.componentFactoryResolver.resolveComponentFactory(t).create(this.injector);n.instance.lightboxData=e,this.appRef.attachView(n.hostView),document.body.appendChild(n.hostView.rootNodes[0]),n.instance.events.subscribe(t=>{"close"===t.type&&(this.appRef.detachView(n.hostView),n.destroy())})}open(t){t.properties=this.applyPropertieDefaults(Lb,t.properties);let e=this.getLightboxComponent();this.appendComponentToBody(e,t)}getLightboxComponent(){return Rb}applyPropertieDefaults(t,e){return e||(e={}),e.index||(e.index=0),this._defaultProperties=Object.assign({},t),Object.assign(this._defaultProperties,e)}};return t.\u0275fac=function(e){return new(e||t)(Qt(ol),Qt(Wu),Qt(vs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),$b=(()=>{let t=class{constructor(t,e,n){this.lightbox=t,this.eventService=e,this.elementRef=n,this.properties={},this.events=new Lc,this.hostLightboxGroup=!0,this.globalEventsSubscription=this.eventService.emitter.subscribe(t=>{this.handleGlobalEvents(t)})}get hostSimpleMode(){return this.simpleMode}get isGroupImage(){return this.elementRef.nativeElement.closest(".lightbox-group")}onClick(t){this.disable||(this.isGroupImage?this.eventService.emitChangeEvent({type:"thumbnail:click",elementRef:this.elementRef,properties:this.properties}):(this.image=this.getImage(),this.lightbox.open({images:[this.image],properties:this.properties,index:0})))}ngOnChanges(t){this.properties=Object.assign({},this.properties,this.getProperties(t))}handleGlobalEvents(t){this.events.emit(t)}getImage(){let t={};const e=this.elementRef.nativeElement;return this.fullImage&&(t.fullImage=this.fullImage),t.thumbnailImage={path:e.src,height:e.naturalHeight,width:e.naturalWidth},t.nativeElement=e,t}getProperties(t){let e={};for(var n in t)"fullImage"!==n&&(e[n]=t[n].currentValue);return e}};return t.\u0275fac=function(e){return new(e||t)(Rs(zb),Rs(Nb),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["","lightbox",""]],hostVars:4,hostBindings:function(t,e){1&t&&Qs("click",(function(t){return e.onClick(t)})),2&t&&ba("lightbox-single",e.hostLightboxGroup)("lightbox-simple-mode",e.hostSimpleMode)},inputs:{properties:"properties",fullImage:"fullImage",loop:"loop",backgroundOpacity:"backgroundOpacity",counter:"counter",imageMaxHeight:"imageMaxHeight",imageMaxWidth:"imageMaxWidth",animationDuration:"animationDuration",animationMode:"animationMode",animationTimingFunction:"animationTimingFunction",closeButtonText:"closeButtonText",counterSeparator:"counterSeparator",disable:"disable",simpleMode:"simpleMode",backgroundColor:"backgroundColor",hideThumbnail:"hideThumbnail",gestureEnable:"gestureEnable"},outputs:{events:"events"},features:[qa]}),t})(),Hb=(()=>{let t=class{constructor(t,e){this.eventService=t,this.lightbox=e,this.thumbnailImages=[],this.images=[],this.properties={},this.hostLightboxGroup=!0,this.globalEventsSubscription=this.eventService.emitter.subscribe(t=>{this.handleGlobalEvents(t)})}get lightboxDirectiveList(){return this._lightboxDirectiveList?this._lightboxDirectiveList.toArray():[]}handleGlobalEvents(t){if("thumbnail:click"===t.type){if(this.thumbnailImageElement=t.elementRef.nativeElement,this.thumbnailImages=this.getThumbnailImages(),this.thumbnailImageIndex=this.getThumbnailImageIndex(this.thumbnailImageElement),null==this.thumbnailImageIndex)return;this.thumbnailLightboxDirective=this.getThumbnailLightboxDirective(this.thumbnailImageIndex),this.images=this.getImages(),this.properties=t.properties,this.properties.index=this.thumbnailImageIndex,this.lightbox.open({images:this.images,properties:this.properties})}}getThumbnailImageIndex(t){const e=this.thumbnailImages;for(var n=0;n<e.length;n++)if(t===e[n])return n}getThumbnailLightboxDirective(t){return this.lightboxDirectiveList[t]}getThumbnailImages(){let t=[];return this.lightboxDirectiveList.forEach(e=>{t.push(e.elementRef.nativeElement)}),t}getImages(){let t=[];return this.lightboxDirectiveList.forEach(e=>{let n={};const i=e.elementRef.nativeElement;e.fullImage&&(n.fullImage=e.fullImage),n.thumbnailImage={path:i.src,height:i.naturalHeight,width:i.naturalWidth},n.nativeElement=i,t.push(n)}),t}};return t.\u0275fac=function(e){return new(e||t)(Rs(Nb),Rs(zb))},t.\u0275dir=we({type:t,selectors:[["","lightbox-group",""]],contentQueries:function(t,e,n){var i;1&t&&Xc(n,$b,!0),2&t&&Yc(i=tu())&&(e._lightboxDirectiveList=i)},hostVars:2,hostBindings:function(t,e){2&t&&ba("lightbox-group",e.hostLightboxGroup)}}),t})(),jb=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[zb,Nb],imports:[[Wh]]}),t})();function Bb(t,e){1&t&&(js(0,"div",3),js(1,"div",4),Us(2,"app-loader"),Bs(),Bs())}function Ub(t,e){if(1&t&&(js(0,"div",8),Us(1,"img",9),Us(2,"br"),js(3,"a",10),js(4,"button",11),Aa(5,"Info"),Bs(),Bs(),Bs()),2&t){const t=e.$implicit;Co(1),na("alt",t.titolo),na("title",t.titolo),$s("src",null==t?null:t.immagine,to),Co(2),$s("href",null==t?null:t.url,to)}}function qb(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),js(3,"h1",5),Aa(4,"Pubblicazioni"),Bs(),Bs(),Bs(),js(5,"div",6),Ns(6,Ub,6,4,"div",7),Bs(),Gs()),2&t){const t=Xs();Co(6),$s("ngForOf",t.books)}}let Gb=(()=>{class t{constructor(t){this.dataService=t,this.books=[],this.loaded=!1,this.isMobile=window.innerWidth<1e3}ngOnInit(){return jv(this,void 0,void 0,(function*(){const{list:t}=yield this.dataService.books();this.books=t,this.loaded=!0}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-ebooks-page"]],decls:3,vars:2,consts:[[1,"page"],["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"col"],[1,"main-title"],[1,"row","mt-3"],["class","book-container col-md-4 mb-3","lightbox-group","",4,"ngFor","ngForOf"],["lightbox-group","",1,"book-container","col-md-4","mb-3"],["lightbox","",1,"book",3,"src","alt","title"],["target","_blank",3,"href"],[1,"black-btn"]],template:function(t,e){1&t&&(js(0,"div",0),Ns(1,Bb,3,0,"div",1),Ns(2,qb,7,1,"ng-container",2),Bs()),2&t&&(Co(1),$s("ngIf",!e.loaded),Co(1),$s("ngIf",e.loaded))},directives:[ph,Yv,dh,Hb,$b],styles:[".book-container[_ngcontent-%COMP%]{text-align:center}.book-container[_ngcontent-%COMP%]   .book[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:10px;transition:box-shadow .3s;cursor:pointer;max-width:200px}.book-container[_ngcontent-%COMP%]   .book[_ngcontent-%COMP%]:hover{box-shadow:30px 30px 30px rgba(33,33,33,.2)}"]}),t})();function Wb(t,e){if(1&t){const t=Ws();js(0,"app-laws-form",1),Qs("search",(function(e){return Xe(t),Xs().search.emit(e)})),Bs()}if(2&t){const t=Xs();$s("title",t.title)("filters",t.filters)("searchInput",t.searchInput)("cleanForm",t.cleanForm)}}function Zb(t,e){if(1&t){const t=Ws();js(0,"app-sentences-form",1),Qs("search",(function(e){return Xe(t),Xs().search.emit(e)})),Bs()}if(2&t){const t=Xs();$s("title",t.title)("filters",t.filters)("searchInput",t.searchInput)("cleanForm",t.cleanForm)}}function Yb(t,e){if(1&t){const t=Ws();js(0,"app-doctrine-form",1),Qs("search",(function(e){return Xe(t),Xs().search.emit(e)})),Bs()}if(2&t){const t=Xs();$s("title",t.title)("filters",t.filters)("searchInput",t.searchInput)("cleanForm",t.cleanForm)}}function Qb(t,e){if(1&t){const t=Ws();js(0,"app-practice-form",1),Qs("search",(function(e){return Xe(t),Xs().search.emit(e)})),Bs()}if(2&t){const t=Xs();$s("title",t.title)("filters",t.filters)("searchInput",t.searchInput)("cleanForm",t.cleanForm)}}function Jb(t,e){if(1&t){const t=Ws();js(0,"app-news-form",1),Qs("search",(function(e){return Xe(t),Xs().search.emit(e)})),Bs()}if(2&t){const t=Xs();$s("title",t.title)("filters",t.filters)("searchInput",t.searchInput)("cleanForm",t.cleanForm)}}let Kb=(()=>{class t{constructor(){this.search=new Lc,this.initialInputValues={author:null,month:null,page:1,year:null,from:null,to:null,type:null,number:null,region:null,authority:null,relatore:null,presidente:null,istituzione:null,giudice_monocratico:null,search_fields:null,query:null,query_type:"words",searchIn:null},this.searchFieldOrTitleLimited=[{id:null,text:"Cerca in TUTTI i campi"},{id:"title",text:"Cerca solo nel TITOLO"}],this.searchFieldOrTitle=[...this.searchFieldOrTitleLimited,{id:"testo",text:"Cerca solo nel TESTO"},{id:"sommario",text:"Cerca solo nel SOMMARIO"}],this.searchType=[{id:"words",text:"Almeno una parola"},{id:"all-words",text:"Tutte le parole"},{id:"full",text:"La frase esatta"}],this.searchWhere=[{id:"synthesis",text:"Nelle sintesi"},{id:"sentences",text:"Nel testo"}]}ngOnInit(){}submit(){this.beforeSubmit(),this.search.emit([this.searchInput,!0,!1])}beforeSubmit(){["practice","events","video"].includes(this.title)||(this.searchInput.category=null),["news","events","video"].includes(this.title)||(this.searchInput.per_page=50)}beforeReset(){["practice","events","video"].includes(this.title)&&(this.searchInput.category=null,this.searchInput.year=null)}setValue(t,e){this.searchInput[t]=null!=e?e:this.filterForm.get(t).value}resetForm(){this.beforeReset(),this.filterForm.reset(this.initialValues),this.filterForm.markAsPristine(),this.searchInput=JSON.parse(JSON.stringify(this.initialInputValues)),this.search.emit([this.searchInput,!1,!0])}fillForm(t){t&&(this.searchInput=t),Object.keys(this.searchInput).forEach(t=>{var e;(null===(e=this.filterForm)||void 0===e?void 0:e.get(t))&&this.filterForm.get(t).patchValue(this.searchInput[t]||null,{onlySelf:!0})}),Object.keys(this.initialValues).forEach(t=>{if(void 0!==this.searchInput[t]&&this.initialValues[t]!==this.searchInput[t])return setTimeout(()=>this.filterForm.markAsDirty(),10),!0})}isDirty(){return!!this.initialValues&&this.filterForm.dirty}cleanFormHandler(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-form"]],inputs:{title:"title",filters:"filters",searchInput:"searchInput",cleanForm:"cleanForm"},outputs:{search:"search"},decls:5,vars:5,consts:[[3,"title","filters","searchInput","cleanForm","search",4,"ngIf"],[3,"title","filters","searchInput","cleanForm","search"]],template:function(t,e){1&t&&(Ns(0,Wb,1,4,"app-laws-form",0),Ns(1,Zb,1,4,"app-sentences-form",0),Ns(2,Yb,1,4,"app-doctrine-form",0),Ns(3,Qb,1,4,"app-practice-form",0),Ns(4,Jb,1,4,"app-news-form",0)),2&t&&($s("ngIf","laws"===e.title),Co(1),$s("ngIf","sentences"===e.title),Co(1),$s("ngIf","doctrine"===e.title),Co(1),$s("ngIf","practice"===e.title),Co(1),$s("ngIf","news"===e.title))},styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover}.bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%]{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.not-allowed[_ngcontent-%COMP%]{margin:30px auto;text-align:center;font-size:20px;font-weight:600;color:#213412}"]}),t})();function Xb(t,e){if(1&t){const t=Ws();qs(0),Aa(1," \xa0|\xa0"),js(2,"span",8),Qs("click",(function(){Xe(t);const e=Xs().$implicit;return Xs().chosen.emit(e)})),Aa(3,"Vedi"),Bs(),Gs()}}function ty(t,e){if(1&t){const t=Ws();js(0,"div",9),js(1,"app-accordion-element",10),Qs("chooseItem",(function(e){return Xe(t),Xs(2).chooseItem.emit(e)}))("chosen",(function(e){return Xe(t),Xs(2).chosen.emit(e)}))("resetCategories",(function(e){return Xe(t),Xs(2).resetCategories.emit(e)})),Bs(),Bs()}if(2&t){const t=Xs().$implicit,e=Xs();Co(1),$s("categories",t.sub)("showButtonShow",e.showButtonShow)("openLink",e.openLink)("root",e.root)}}const ey=function(t,e){return[t,e]};function ny(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",2),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().showSubcategories(n)})),Us(2,"div",3),Bs(),js(3,"div",4),js(4,"span",5),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().selectCategory(n)})),Aa(5),Bs(),Ns(6,Xb,4,0,"ng-container",6),Bs(),Ns(7,ty,2,4,"div",7),Bs()}if(2&t){const t=e.$implicit,n=Xs();Co(1),$s("ngClass",t.selected||t.arrow?"active":""),Co(1),ba("no_element",0===t.count),$s("ngClass","laws"===n.root||"practice"===n.root?"d-none":""),Co(2),$s("ngClass",Sc(8,ey,t.selected?"selected":"",n.inHome?"home":"")),Co(1),Fa(" ",t.name," "),Co(1),$s("ngIf",n.showButtonShow),Co(1),$s("ngIf",t.open&&t.count>0)}}let iy=(()=>{class t{constructor(t){this.dataService=t,this.showButtonShow=!1,this.openLink=!1,this.chooseItem=new Lc,this.chosen=new Lc,this.resetCategories=new Lc}ngOnInit(){}showSubcategories(t){""===this.root&&this.chosen.emit(t),this.categories.map(e=>{e.id!==t.id?(e.open=!1,e.arrow=!1,e.selected=!1):t.arrow?(t.arrow=!1,t.open=!1,t.selected=!1,this.chooseItem.emit(0),this.resetCategories.emit(null)):(t.arrow=!0,this.dataService.categories(this.root,t.id).then(e=>{t.sub=e,t.open=!0}))})}selectCategory(t){if(t.path){const e=window.location.pathname;history.pushState({},"",e+"?category="+t.id+"&accordions="+t.path.join())}"laws"===this.root||"practice"===this.root||""===this.root?this.chosen.emit(t):this.categories.map(e=>{e.id!==t.id?(e.open=!1,e.selected=!1,e.arrow=!1):(t.open=!0,t.selected=!0,t.arrow=!0,t.open&&t.count>0&&this.dataService.categories(this.root,t.id).then(e=>t.sub=e),!this.showButtonShow&&t.open&&this.chooseItem.emit(t.id),this.openLink&&this.chooseItem.emit(t.id))})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-accordion-element"]],inputs:{categories:"categories",showButtonShow:"showButtonShow",root:"root",openLink:"openLink",inHome:"inHome"},outputs:{chooseItem:"chooseItem",chosen:"chosen",resetCategories:"resetCategories"},decls:1,vars:1,consts:[["class","row mt-2 no-gutters",4,"ngFor","ngForOf"],[1,"row","mt-2","no-gutters"],[1,"col-auto","icon-container",3,"ngClass","click"],[1,"accordion-icon",3,"ngClass"],[1,"col"],[1,"single-accordion",3,"ngClass","click"],[4,"ngIf"],["class","col-12 pl-4",4,"ngIf"],[1,"mini",3,"click"],[1,"col-12","pl-4"],[3,"categories","showButtonShow","openLink","root","chooseItem","chosen","resetCategories"]],template:function(t,e){1&t&&Ns(0,ny,8,11,"div",0),2&t&&$s("ngForOf",e.categories)},directives:[dh,lh,ph,t],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .icon-container[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.icon-container[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{margin-right:10px;width:10px;height:10px;display:inline-block;-webkit-mask:url(arrow-right.d86c4681756eb6b1d363.svg);mask:url(arrow-right.d86c4681756eb6b1d363.svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;cursor:pointer;background-color:#dbcd1f}.icon-container[_ngcontent-%COMP%]   .accordion-icon.no_element[_ngcontent-%COMP%]{background-color:#213412}.icon-container.active[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{-webkit-mask:url(arrow-down.99100024180d06cf6459.svg);mask:url(arrow-down.99100024180d06cf6459.svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.single-accordion[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:17px;color:#4e673b;line-height:1.6;cursor:pointer;margin-left:-5px;padding:0 10px;display:inline-block}.single-accordion.home[_ngcontent-%COMP%]{font-size:19px}.single-accordion.min[_ngcontent-%COMP%]{font-size:15px}.single-accordion.selected[_ngcontent-%COMP%]{background-color:#dbcd1f;border-radius:4px}.mini[_ngcontent-%COMP%]{color:#4e673b;font-size:13px;cursor:pointer;text-decoration:underline}.tools[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{margin:13px 15px 2px 2px;height:15px;width:15px}.tools[_ngcontent-%COMP%]   .icon-container.active[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{width:15px}.tools[_ngcontent-%COMP%]   .single-accordion[_ngcontent-%COMP%]{font-size:27px}.tools[_ngcontent-%COMP%]   .tools[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{margin:2px 15px 2px 2px;height:10px}.tools[_ngcontent-%COMP%]   .tools[_ngcontent-%COMP%]   .icon-container.active[_ngcontent-%COMP%]   .accordion-icon[_ngcontent-%COMP%]{width:10px;margin-right:20px}.tools[_ngcontent-%COMP%]   .tools[_ngcontent-%COMP%]   .single-accordion[_ngcontent-%COMP%]{font-size:17px}"]}),t})(),oy=(()=>{class t{constructor(t,e,n){this.route=t,this.dataService=e,this.router=n,this.showTitle=!0,this.showButtonShow=!1,this.openLink=!1,this.chooseItem=new Lc,this.closeModal=new Lc,this.resetCategories=new Lc,this.idToOpen=[],this.root="",this.recursive=t=>{var e;return Object.assign(Object.assign({},t),{open:!1,sub:null===(e=t.sub)||void 0===e?void 0:e.map(this.recursive)})}}ngOnInit(){this.init()}ngOnChanges(t){this.init()}init(){var t;this.root=this.route.snapshot.routeConfig.path,"laws"!==this.root&&"practice"!==this.root&&"events"!==this.root&&"video"!==this.root||(this.showButtonShow=!1),null===(t=this.categories)||void 0===t||t.forEach(this.recursive),this.setAccordions()}setAccordions(){var t,e,n;(null===(t=this.accordions)||void 0===t?void 0:t.length)>0&&(this.idToOpen=null===(e=this.accordions)||void 0===e?void 0:e.split(",").map(Number),this.categories&&this.autoToggle(this.categories)),this.noAccordions&&(null===(n=this.categories)||void 0===n||n.map(t=>{t.open=!1,t.arrow=!1,t.selected=!1}))}autoToggle(t){return jv(this,void 0,void 0,(function*(){0!==this.idToOpen.length&&(this.currentToggleItem=t.find(t=>t.id===this.idToOpen[0]),this.currentToggleItem&&(this.currentToggleItem.open=!0,this.currentToggleItem.selected=!0,this.currentToggleItem.arrow=!0,this.currentToggleItem.sub=yield this.dataService.categories(this.root,this.currentToggleItem.id),this.idToOpen.shift(),this.currentToggleItem.sub&&0!==this.idToOpen.length?yield this.autoToggle(this.currentToggleItem.sub):this.currentToggleItem=null))}))}choose(t){"/"===this.router.url.toString()?(this.router.navigate(["/sentences"],{queryParams:{category:t.id,accordions:t.id}}),this.chooseItem.emit(t),this.closeModal.emit()):(this.router.navigate([this.root],{queryParams:{category:t.id,accordions:t.id}}),this.closeModal.emit())}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(Zv),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-accordion"]],inputs:{showTitle:"showTitle",year:"year",showButtonShow:"showButtonShow",categories:"categories",accordions:"accordions",noAccordions:"noAccordions",openLink:"openLink",inHome:"inHome"},outputs:{chooseItem:"chooseItem",closeModal:"closeModal",resetCategories:"resetCategories"},features:[qa],decls:1,vars:5,consts:[[3,"categories","showButtonShow","openLink","root","inHome","chooseItem","chosen","resetCategories"]],template:function(t,e){1&t&&(js(0,"app-accordion-element",0),Qs("chooseItem",(function(t){return e.chooseItem.emit(t)}))("chosen",(function(t){return e.choose(t)}))("resetCategories",(function(t){return e.resetCategories.emit(t)})),Bs()),2&t&&$s("categories",e.categories)("showButtonShow",e.showButtonShow)("openLink",e.openLink)("root",e.root)("inHome",e.inHome)},directives:[iy],styles:[""]}),t})(),ry=(()=>{class t{constructor(){this.closeEvent=new Lc}close(){this.closeEvent.emit(null)}chooseItem(t){this.closeEvent.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-category-modal"]],inputs:{categories:"categories",year:"year"},outputs:{closeEvent:"closeEvent"},decls:11,vars:3,consts:[["tabindex","-1","role","dialog","id","categoryModal",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],[1,"missing"],[1,"modal-body"],[3,"showButtonShow","categories","showTitle","closeModal"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"div",3),js(4,"span",4),Aa(5,"Cerca per categoria"),Bs(),Bs(),js(6,"div",5),js(7,"app-accordion",6),Qs("closeModal",(function(){return e.close()})),Bs(),Bs(),js(8,"div",7),js(9,"button",8),Aa(10,"Chiudi"),Bs(),Bs(),Bs(),Bs(),Bs()),2&t&&(Co(7),$s("showButtonShow",!0)("categories",e.categories)("showTitle",!1))},directives:[oy],styles:[""]}),t})(),sy=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-invia-quesito"]],decls:3,vars:0,consts:[[1,"quest-container"],["routerLink","/question",1,"send-quest"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"a",1),Aa(2," Invia il tuo quesito "),Bs(),Bs())},directives:[bv],styles:[".quest-container[_ngcontent-%COMP%]{margin:0 0 30px;text-align:center}.quest-container[_ngcontent-%COMP%]   .send-quest[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:18px;font-weight:700;color:#213412;text-transform:uppercase;text-decoration:none;padding-bottom:5px;border-bottom:1px solid #213412;display:inline-block}"]}),t})();const ay=["pageInput"];function ly(t,e){if(1&t){const t=Ws();js(0,"img",6),Qs("click",(function(){return Xe(t),Xs().goToPrevius()})),Bs()}}function cy(t,e){if(1&t){const t=Ws();js(0,"img",7),Qs("click",(function(){return Xe(t),Xs().goToNext()})),Bs()}}let uy=(()=>{class t{constructor(){this.from=0,this.to=0,this.previous=new Lc,this.next=new Lc,this.page=new Lc}goToNext(){this.next.emit()}goToPrevius(){this.previous.emit()}goToPage(){const t=this.pageInput.nativeElement.value;t>=0&&this.page.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-pagination"]],viewQuery:function(t,e){var n;1&t&&Jc(ay,!0),2&t&&Yc(n=tu())&&(e.pageInput=n.first)},inputs:{from:"from",to:"to",tot:"tot"},outputs:{previous:"previous",next:"next",page:"page"},decls:10,vars:6,consts:[[1,"counter"],[1,"title"],["type","number",1,"page-input",3,"value","max","keyup.enter"],["pageInput",""],["class","mini","src","assets/img/arrow-left-mini.svg","alt","Precedente",3,"click",4,"ngIf"],["class","mini","src","assets/img/arrow-right-mini.svg","alt","Successivo",3,"click",4,"ngIf"],["src","assets/img/arrow-left-mini.svg","alt","Precedente",1,"mini",3,"click"],["src","assets/img/arrow-right-mini.svg","alt","Successivo",1,"mini",3,"click"]],template:function(t,e){1&t&&(js(0,"div"),js(1,"span",0),Aa(2),Bs(),js(3,"span",1),Aa(4,"Pagina "),js(5,"input",2,3),Qs("keyup.enter",(function(){return e.goToPage()})),Bs(),Aa(7),Bs(),Ns(8,ly,1,0,"img",4),Ns(9,cy,1,0,"img",5),Bs()),2&t&&(Co(2),Fa("Trovati n\xb0",e.tot," risultati"),Co(3),na("value",e.from),na("max",e.to),Co(2),Fa(" di ",e.to,""),Co(1),$s("ngIf",1!==e.from),Co(1),$s("ngIf",e.from!==e.to))},directives:[ph],styles:[".counter[_ngcontent-%COMP%]{color:#9ab883;font-size:11px;padding-right:15px;font-weight:600}.counter[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif}.title[_ngcontent-%COMP%]{color:#4e673b;text-transform:uppercase;font-size:12px;border-bottom:3px solid #213412;padding-bottom:8px}.mini[_ngcontent-%COMP%]{max-width:5px;margin-left:8px;cursor:pointer}.page-input[_ngcontent-%COMP%]{width:38px;text-align:center}input[_ngcontent-%COMP%]::-webkit-inner-spin-button, input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}"]}),t})();const dy=function(t){return{active:t}};function hy(t,e){if(1&t){const t=Ws();js(0,"a",3),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).changeSort(n[0])})),Aa(1),Us(2,"span"),Bs()}if(2&t){const t=e.$implicit,n=Xs(2);$s("ngClass",kc(5,dy,n.isActive(t[0]))),Co(1),Fa(" ",t[1]," "),Co(1),Va("",n.getDirection(t[0]),"-icon")}}function py(t,e){if(1&t&&(qs(0),Aa(1," Ordina per: "),Ns(2,hy,3,7,"a",2),Gs()),2&t){const t=Xs();Co(2),$s("ngForOf",t.availableKeyValue)}}let gy=(()=>{class t{constructor(){this.available={},this.sorts=[],this.changed=new Lc,this.availableKeyValue=[]}ngOnChanges(t){this.availableKeyValue=Object.entries(this.available)}isActive(t){return this.sorts.some(e=>e.field===t)}getDirection(t){var e,n;return(null===(n=null===(e=this.sorts.find(e=>e.field===t))||void 0===e?void 0:e.direction)||void 0===n?void 0:n.toLowerCase())||"DESC".toLowerCase()}changeSort(t){var e;const n=(null===(e=this.sorts.find(e=>e.field===t))||void 0===e?void 0:e.direction)||null;this.changed.emit({field:t,direction:n?"ASC"===n?"DESC":"ASC":"DESC"})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-sort"]],inputs:{available:"available",sorts:"sorts"},outputs:{changed:"changed"},features:[qa],decls:2,vars:1,consts:[[1,"results-sorter"],[4,"ngIf"],[3,"ngClass","click",4,"ngFor","ngForOf"],[3,"ngClass","click"]],template:function(t,e){1&t&&(js(0,"div",0),Ns(1,py,3,1,"ng-container",1),Bs()),2&t&&(Co(1),$s("ngIf",e.availableKeyValue.length>0))},directives:[ph,dh,lh],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .results-sorter[_ngcontent-%COMP%]   .asc-icon[_ngcontent-%COMP%], .results-sorter[_ngcontent-%COMP%]   .desc-icon[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.results-sorter[_ngcontent-%COMP%]{color:#797979;font-size:11px;padding-top:2px}.results-sorter[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.results-sorter[_ngcontent-%COMP%]   a[_ngcontent-%COMP%] + a[_ngcontent-%COMP%]{margin-left:10px}.results-sorter[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.results-sorter[_ngcontent-%COMP%]   .asc-icon[_ngcontent-%COMP%]{-webkit-mask:url(arrow-up.1c44caff024f42d9441c.svg);mask:url(arrow-up.1c44caff024f42d9441c.svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.results-sorter[_ngcontent-%COMP%]   .asc-icon[_ngcontent-%COMP%], .results-sorter[_ngcontent-%COMP%]   .desc-icon[_ngcontent-%COMP%]{margin-left:3px;width:10px;height:10px;display:none;cursor:pointer;background-color:#4e673b;vertical-align:middle}.results-sorter[_ngcontent-%COMP%]   .desc-icon[_ngcontent-%COMP%]{-webkit-mask:url(arrow-down.99100024180d06cf6459.svg);mask:url(arrow-down.99100024180d06cf6459.svg);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.results-sorter[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{padding:5px 8px;color:#4e673b;border-radius:6px;font-weight:600}.results-sorter[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]   .asc-icon[_ngcontent-%COMP%], .results-sorter[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]   .desc-icon[_ngcontent-%COMP%]{display:inline-block;background-color:#213412}"]}),t})(),fy=(()=>{class t{constructor(t){this.sanitized=t}transform(t){return this.sanitized.bypassSecurityTrustHtml(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(wp))},t.\u0275pipe=Ce({name:"safeHtml",type:t,pure:!0}),t})(),my=(()=>{class t{transform(t,e="/"){if(10===(null==t?void 0:t.length)){const[n,i,o]=t.split("-");return`${o||""}${e}${i||""}${e}${n||""}`}return t||""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"ddd",type:t,pure:!0}),t})();function vy(t,e){if(1&t&&(js(0,"a",6),Tc(1,"safe"),Us(2,"img",7),Bs()),2&t){const t=Xs(2);$s("href",null!==t.news.url?Nc(1,2,t.news.url,"url"):"",to),Co(2),na("src",t.news.img,to)}}function by(t,e){1&t&&Us(0,"img",7),2&t&&na("src",Xs(2).news.img,to)}function yy(t,e){1&t&&(Us(0,"div",8),Tc(1,"safe")),2&t&&$s("innerHTML",Nc(1,1,Xs(2).news.text,"html"),Xi)}function _y(t,e){if(1&t&&(qs(0),js(1,"div",1),js(2,"div",2),Ns(3,vy,3,5,"a",3),Ns(4,by,1,1,"img",4),Ns(5,yy,2,4,"div",5),Bs(),Bs(),Gs()),2&t){const t=Xs();Co(3),$s("ngIf",t.news.img&&null!==t.news.url),Co(1),$s("ngIf",t.news.img&&null===t.news.url),Co(1),$s("ngIf",t.news.text&&!t.news.img)}}const wy=function(t){return{"background-image":t}},Cy=function(t){return{pulsate:t}},xy=function(t,e){return{home:t,"text-danger":e}};function Oy(t,e){if(1&t){const t=Ws();js(0,"div",10),js(1,"div",11),Us(2,"div",12),js(3,"div",13),js(4,"div",14),Aa(5),Bs(),js(6,"div",15),Aa(7),Tc(8,"date"),Bs(),Bs(),Bs(),js(9,"div",16),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).changeRoute(n.id)})),Tc(10,"safeHtml"),Tc(11,"safeHtml"),Bs(),Bs()}if(2&t){const t=e.$implicit,n=Xs(2);Co(2),$s("ngStyle",kc(13,wy,null!=t&&t.icon?"url('"+(null==t?null:t.icon)+"')":void 0)),Co(3),Ta(null==t||null==t.category?null:t.category.name),Co(1),$s("ngClass",kc(15,Cy,t.date===n.today)),Co(1),Ta(Nc(8,6,null==t?null:t.date,"dd/MM/yyyy")),Co(2),$s("ngClass",Sc(17,xy,n.inHome,null==t?null:t.highlight))("innerHTML","news"===n.root?Fc(10,9,null==t?null:t.title):Fc(11,11,null==t?null:t.title),Xi)}}function My(t,e){if(1&t&&(qs(0),js(1,"div",1),js(2,"div",2),Ns(3,Oy,12,20,"div",9),Bs(),Bs(),Gs()),2&t){const t=Xs();Co(3),$s("ngForOf",t.news)}}function Py(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs().$implicit;Co(1),Fa("",null==t?null:t.region," - ")}}function Iy(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs().$implicit;Co(1),Fa("n. ",null==t?null:t.number,"")}}function ky(t,e){if(1&t){const t=Ws();js(0,"div",19),js(1,"div",20),js(2,"div",21),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).changeRoute(n.id)})),Ns(3,Py,2,1,"span",0),Aa(4),Tc(5,"date"),Ns(6,Iy,2,1,"span",0),Bs(),Us(7,"div",22),Tc(8,"safeHtml"),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(3),$s("ngIf",null==t?null:t.region),Co(1),Na("",t.type," del ",Nc(5,5,t.date,"dd/MM/yyyy")," "),Co(2),$s("ngIf",null==t?null:t.number),Co(1),$s("innerHTML",Fc(8,8,(null==t?null:t.description)||(null==t?null:t.testo)),Xi)}}function Sy(t,e){if(1&t&&(qs(0),js(1,"div",17),Ns(2,ky,9,10,"div",18),Bs(),Gs()),2&t){const t=Xs();Co(2),$s("ngForOf",t.news)}}function Ey(t,e){1&t&&(Us(0,"span",27),Tc(1,"safeHtml")),2&t&&$s("innerHTML",Fc(1,1,Xs().$implicit.title),Xi)}function Dy(t,e){if(1&t&&(js(0,"div",19),js(1,"div",20),js(2,"div",23),Aa(3),Tc(4,"ddd"),Bs(),js(5,"div",24),Us(6,"a",25),Tc(7,"safeHtml"),Us(8,"br"),Ns(9,Ey,2,3,"span",26),Bs(),Us(10,"div",22),Tc(11,"safeHtml"),Bs(),Bs()),2&t){const t=e.$implicit,n=Xs(2);Co(2),$s("ngClass",kc(14,Cy,t.date===n.today)),Co(1),Ta(Fc(4,8,t.date)),Co(3),oa("routerLink","/",n.root,"/",t.id,""),$s("ngClass",t.highlight?"text-danger":"")("innerHTML",Fc(7,10,t.short_title),Xi),Co(3),$s("ngIf",t.short_title!==t.title),Co(1),$s("innerHTML",Fc(11,12,(null==t?null:t.description)||(null==t?null:t.testo)),Xi)}}function Ay(t,e){if(1&t&&(qs(0),js(1,"div",17),Ns(2,Dy,12,16,"div",18),Bs(),Gs()),2&t){const t=Xs();Co(2),$s("ngForOf",t.news)}}let Ty=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.dataService=n,this.news=[],this.root="",this.date=new Date,this.legalhour=this.date.setHours(this.date.getHours()+1),this.today=this.date.toISOString().split("T")[0]}ngOnInit(){""===this.root&&(this.root=this.route.snapshot.routeConfig.path.includes("/")?this.route.snapshot.routeConfig.path.split("/")[0]:this.root?this.root:this.route.snapshot.routeConfig.path,this.root=("analysis"===this.root?"doctrine":this.root)||"news")}isLoggedIn(){return this.dataService.isLoggedIn()}changeRoute(t){this.route.snapshot.routeConfig.path.includes("/")?window.location.href=`${this.root}/${t}`:this.router.navigate([`${"analysis"===this.root?"doctrine":this.root}/${t}`])}onClose(t){t&&this.router.navigate([this.route.snapshot.routeConfig.path],{queryParams:Object.assign(Object.assign({},this.route.snapshot.queryParams),{category:t.id,page:"1"})}),$("#categoryModal").modal("hide")}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-news"]],inputs:{news:"news",categories:"categories",year:"year",root:"root",inHome:"inHome"},decls:4,vars:4,consts:[[4,"ngIf"],[1,"row","my-3"],[1,"col"],["class","evidenza-img",3,"href",4,"ngIf"],["alt","Immagine in evidenza","class","img-fluid",3,"src",4,"ngIf"],["class","evidenza-text",3,"innerHTML",4,"ngIf"],[1,"evidenza-img",3,"href"],["alt","Immagine in evidenza",1,"img-fluid",3,"src"],[1,"evidenza-text",3,"innerHTML"],["class","insight",4,"ngFor","ngForOf"],[1,"insight"],[1,"insight-header"],[1,"insight-img",3,"ngStyle"],[1,"insight-content"],[1,"insight-category"],[1,"insight-date",3,"ngClass"],[1,"insight-text",3,"ngClass","innerHTML","click"],[1,"row"],["class","col-12",4,"ngFor","ngForOf"],[1,"col-12"],[1,"news-element"],[1,"news-title",3,"click"],[1,"news-text",3,"innerHTML"],[1,"news-date",3,"ngClass"],[1,"news-title"],[3,"ngClass","routerLink","innerHTML"],["class","long-title",3,"innerHTML",4,"ngIf"],[1,"long-title",3,"innerHTML"]],template:function(t,e){1&t&&(Ns(0,_y,6,3,"ng-container",0),Ns(1,My,4,1,"ng-container",0),Ns(2,Sy,3,1,"ng-container",0),Ns(3,Ay,3,1,"ng-container",0)),2&t&&($s("ngIf","evidenza"===e.root),Co(1),$s("ngIf","analysis"===e.root||"news"===e.root),Co(1),$s("ngIf","laws"===e.root||"practice"===e.root),Co(1),$s("ngIf","doctrine"===e.root))},directives:[ph,dh,Ch,lh,bv],pipes:[rb,Fh,fy,my],styles:['@charset "UTF-8";.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-img[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.news-element[_ngcontent-%COMP%]{margin-top:15px;padding-bottom:15px;border-bottom:1px solid #ddd;margin-bottom:15px}.news-element[_ngcontent-%COMP%]   .news-date[_ngcontent-%COMP%]{font-size:17px;font-family:Montserrat,sans-serif;color:#4e673b;margin-bottom:5px}.news-element[_ngcontent-%COMP%]   .news-date.pulsate[_ngcontent-%COMP%]{-webkit-animation:pulsate 1.5s ease-out;animation:pulsate 1.5s ease-out;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;opacity:.3;color:#e65959}.news-element[_ngcontent-%COMP%]   .news-date.pulsate[_ngcontent-%COMP%]:before{content:"\xbb";color:#e65959}.news-element[_ngcontent-%COMP%]   .news-date.pulsate[_ngcontent-%COMP%]:after{content:"\xab";color:#e65959}.news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%], .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{font-family:Montserrat,sans-serif;font-size:20px;line-height:25px;font-weight:700;color:#213412;cursor:pointer;text-decoration:none}.news-element[_ngcontent-%COMP%]   .news-title.tool-link[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover.tool-link   img[_ngcontent-%COMP%], .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link.tool-link   img[_ngcontent-%COMP%], .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited.tool-link   img[_ngcontent-%COMP%]{width:15px;vertical-align:baseline}.news-element[_ngcontent-%COMP%]   .news-title.tool-link[_ngcontent-%COMP%]:hover, .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover.tool-link:hover, .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link.tool-link:hover, .news-element[_ngcontent-%COMP%]   .news-title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited.tool-link:hover{text-decoration:none}.news-element[_ngcontent-%COMP%]   .news-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#5d9333;margin:5px 0 15px}.news-element[_ngcontent-%COMP%]   .news-text[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:18px;line-height:21px;color:#213412;margin-bottom:15px}.news-element[_ngcontent-%COMP%]   .news-author[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;font-weight:600;color:#213412;display:inline-block;margin-bottom:15px}.news-element[_ngcontent-%COMP%]   .news-author[_ngcontent-%COMP%] + .news-author[_ngcontent-%COMP%]:before{content:", "}.insight[_ngcontent-%COMP%]{margin-bottom:30px}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]{display:flex;align-items:center}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-img[_ngcontent-%COMP%]{height:35px;width:35px;background-image:url(column.964a0bf10464cfa7c865.svg)}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]{margin-left:5px}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-category[_ngcontent-%COMP%]{color:#4e673b;font-weight:600;font-size:13px;padding-bottom:3px}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-category[_ngcontent-%COMP%]:after{content:"";display:block;width:100px;height:2px;background-color:#dbcd1f}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-date[_ngcontent-%COMP%]{font-size:13px}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-date.pulsate[_ngcontent-%COMP%]{-webkit-animation:pulsate 1.5s ease-out;animation:pulsate 1.5s ease-out;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;opacity:.3;color:#e65959}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-date.pulsate[_ngcontent-%COMP%]:before{content:"\xbb";color:#e65959}.insight[_ngcontent-%COMP%]   .insight-header[_ngcontent-%COMP%]   .insight-content[_ngcontent-%COMP%]   .insight-date.pulsate[_ngcontent-%COMP%]:after{content:"\xab";color:#e65959}.insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%], .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:#4e673b;font-size:18px;font-weight:600;margin-top:5px;cursor:pointer;text-decoration:none}.insight[_ngcontent-%COMP%]   .insight-text.home[_ngcontent-%COMP%], .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover.home, .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link.home, .insight[_ngcontent-%COMP%]   .insight-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited.home{font-size:20px;color:#292929}@-webkit-keyframes pulsate{0%{opacity:.3}50%{opacity:1}to{opacity:.3}}.long-title[_ngcontent-%COMP%]{font-size:10px;color:#739857}']}),t})();function Fy(t,e,n,o){return i(n)&&(o=n,n=void 0),o?Fy(t,e,n).pipe(R(t=>l(t)?o(...t):o(t))):new _(i=>{!function t(e,n,i,o,r){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),s=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),s=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),s=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s<a;s++)t(e[s],n,i,o,r)}o.add(s)}(t,e,(function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),i,n)})}const Ny=new mb(pb);function Vy(t){return!l(t)&&t-parseFloat(t)+1>=0}function Ry(t=0,e,n){let i=-1;return Vy(e)?i=Number(e)<1?1:Number(e):I(e)&&(n=e),I(n)||(n=Ny),new _(e=>{const o=Vy(t)?t:+t-n.now();return n.schedule(Ly,o,{index:0,period:i,subscriber:e})})}function Ly(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function zy(...t){if(1===t.length){if(!l(t[0]))return t[0];t=t[0]}return W(t,void 0).lift(new $y)}class $y{call(t,e){return e.subscribe(new Hy(t))}}class Hy extends V{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n<e&&!this.hasFirst;n++){let e=t[n],i=N(this,e,e,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}}notifyNext(t,e,n,i,o){if(!this.hasFirst){this.hasFirst=!0;for(let t=0;t<this.subscriptions.length;t++)if(t!==n){let e=this.subscriptions[t];e.unsubscribe(),this.remove(e)}this.subscriptions=null}this.destination.next(e)}}const jy=new _(Zg);class By{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Uy(t,this.resultSelector))}}class Uy extends g{constructor(t,e,n=Object.create(null)){super(t),this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:null,this.values=n}_next(t){const e=this.iterators;l(t)?e.push(new Gy(t)):e.push("function"==typeof t[D]?new qy(t[D]()):new Wy(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;n<e;n++){let e=t[n];e.stillUnsubscribed?this.destination.add(e.subscribe(e,n)):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const t=this.iterators,e=t.length,n=this.destination;for(let r=0;r<e;r++){let e=t[r];if("function"==typeof e.hasValue&&!e.hasValue())return}let i=!1;const o=[];for(let r=0;r<e;r++){let e=t[r],s=e.next();if(e.hasCompleted()&&(i=!0),s.done)return void n.complete();o.push(s.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()}_tryresultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class qy{constructor(t){this.iterator=t,this.nextResult=t.next()}hasValue(){return!0}next(){const t=this.nextResult;return this.nextResult=this.iterator.next(),t}hasCompleted(){const t=this.nextResult;return t&&t.done}}class Gy{constructor(t){this.array=t,this.index=0,this.length=0,this.length=t.length}[D](){return this}next(t){const e=this.index++;return e<this.length?{value:this.array[e],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class Wy extends V{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[D](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t,e,n,i,o){this.buffer.push(e),this.parent.checkIterators()}subscribe(t,e){return N(this,this.observable,this,e)}}function Zy(t){return e=>e.lift(new Yy(t))}class Yy{constructor(t){this.notifier=t}call(t,e){const n=new Qy(t),i=N(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class Qy extends V{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,o){this.seenValue=!0,this.complete()}notifyComplete(){}}function Jy(t,e){return n=>n.lift(new Ky(t,e))}class Ky{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Xy(t,this.compare,this.keySelector))}}class Xy extends g{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}class t_{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new e_(t,this.observables,this.project))}}class e_ extends V{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const i=e.length;this.values=new Array(i);for(let o=0;o<i;o++)this.toRespond.push(o);for(let o=0;o<i;o++){let t=e[o];this.add(N(this,t,t,o))}}notifyNext(t,e,n,i,o){this.values[n]=e;const r=this.toRespond;if(r.length>0){const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function n_(t,e=Ny){var n;const i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new i_(i,e))}class i_{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new o_(t,this.delay,this.scheduler))}}class o_ extends g{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,o=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(o_.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new r_(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(yb.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(yb.createComplete()),this.unsubscribe()}}class r_{constructor(t,e){this.time=t,this.notification=e}}class s_{constructor(t){this.total=t}call(t,e){return e.subscribe(new a_(t,this.total))}}class a_ extends g{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function l_(t,e){return new _(n=>{const i=t.length;if(0===i)return void n.complete();const o=new Array(i);let r=0,s=0;for(let a=0;a<i;a++){const l=j(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,s++),o[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&c||(s===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=o[n],t),{}):o),n.complete())}}))}})}const c_=new $t("NgValueAccessor"),u_={provide:c_,useExisting:Mt(()=>d_),multi:!0};let d_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[el([u_])]}),t})();const h_={provide:c_,useExisting:Mt(()=>g_),multi:!0},p_=new $t("CompositionEventMode");let g_=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=od()?od().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl),Rs(p_,8))},t.\u0275dir=we({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Qs("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[el([h_])]}),t})(),f_=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t}),t})(),m_=(()=>{class t extends f_{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return v_(e||t)},t.\u0275dir=we({type:t,features:[za]}),t})();const v_=ci(m_);function b_(){throw new Error("unimplemented")}class y_ extends f_{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return b_()}get asyncValidator(){return b_()}}class __{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let w_=(()=>{class t extends __{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(y_,2))},t.\u0275dir=we({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ba("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[za]}),t})(),C_=(()=>{class t extends __{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,2))},t.\u0275dir=we({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ba("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[za]}),t})();function x_(t){return null==t||0===t.length}const O_=new $t("NgValidators"),M_=new $t("NgAsyncValidators"),P_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class I_{static min(t){return e=>{if(x_(e.value)||x_(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(x_(e.value)||x_(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return x_(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return x_(t.value)||P_.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(x_(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return I_.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(x_(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(k_);return 0==e.length?null:function(t){return E_(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(k_);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return l_(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l_(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l_(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(R(t=>e(...t)))}return l_(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(S_)).pipe(R(E_))}}}function k_(t){return null!=t}function S_(t){const e=Zs(t)?j(t):t;if(!Ys(e))throw new Error("Expected validator to return Promise or Observable.");return e}function E_(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function D_(t){return t.validate?e=>t.validate(e):t}function A_(t){return t.validate?e=>t.validate(e):t}const T_={provide:c_,useExisting:Mt(()=>F_),multi:!0};let F_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[el([T_])]}),t})();const N_={provide:c_,useExisting:Mt(()=>R_),multi:!0};let V_=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),R_=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(y_),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl),Rs(V_),Rs(vs))},t.\u0275dir=we({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[el([N_])]}),t})();const L_={provide:c_,useExisting:Mt(()=>z_),multi:!0};let z_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[el([L_])]}),t})();const $_='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',H_='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',j_='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';class B_{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+$_)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        ${H_}\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        ${j_}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+$_)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+H_)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}static disabledAttrWarning(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}static ngModelWarning(t){console.warn(`\n    It looks like you're using ngModel on the same form field as ${t}. \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n    `)}}const U_={provide:c_,useExisting:Mt(()=>G_),multi:!0};function q_(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let G_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ms}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=q_(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[el([U_])]}),t})(),W_=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(q_(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Rs(rl),Rs(cl),Rs(G_,9))},t.\u0275dir=we({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const Z_={provide:c_,useExisting:Mt(()=>Q_),multi:!0};function Y_(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let Q_=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ms}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const i=t.item(e),o=this._getOptionValue(i.value);n.push(o)}}else{const t=e.options;for(let e=0;e<t.length;e++){const i=t.item(e);if(i.selected){const t=this._getOptionValue(i.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(Rs(cl),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&Qs("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[el([Z_])]}),t})(),J_=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(Y_(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Y_(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(Rs(rl),Rs(cl),Rs(Q_,9))},t.\u0275dir=we({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function K_(t,e){return[...e.path,t]}function X_(t,e){t||iw(e,"Cannot find control with"),e.valueAccessor||iw(e,"No value accessor for form control with"),t.validator=I_.compose([t.validator,e.validator]),t.asyncValidator=I_.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&tw(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&tw(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function tw(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ew(t,e){null==t&&iw(e,"Cannot find control with"),t.validator=I_.compose([t.validator,e.validator]),t.asyncValidator=I_.composeAsync([t.asyncValidator,e.asyncValidator])}function nw(t){return iw(t,"There is no FormControl instance attached to form control element with")}function iw(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function ow(t){return null!=t?I_.compose(t.map(D_)):null}function rw(t){return null!=t?I_.composeAsync(t.map(A_)):null}function sw(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Ms(e,n.currentValue)}const aw=[d_,z_,F_,G_,Q_,R_];function lw(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function cw(t,e){if(!e)return null;Array.isArray(e)||iw(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,o=void 0;return e.forEach(e=>{var r;e.constructor===g_?n=e:(r=e,aw.some(t=>r.constructor===t)?(i&&iw(t,"More than one built-in value accessor matches form control with"),i=e):(o&&iw(t,"More than one custom value accessor matches form control with"),o=e))}),o||i||n||(iw(t,"No valid value accessor for form control with"),null)}function uw(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function dw(t,e,n,i){Mi()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(B_.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function hw(t){const e=gw(t)?t.validators:t;return Array.isArray(e)?ow(e):e||null}function pw(t,e){const n=gw(e)?e.asyncValidators:t;return Array.isArray(n)?rw(n):n||null}function gw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class fw{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=hw(t)}setAsyncValidators(t){this.asyncValidator=pw(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=S_(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let i=t;return e.forEach(t=>{i=i instanceof vw?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof bw&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Lc,this.statusChanges=new Lc}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){gw(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class mw extends fw{constructor(t=null,e,n){super(hw(e),pw(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class vw extends fw{constructor(t,e,n){super(hw(e),pw(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof mw?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,i)=>{e=e||this.contains(i)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class bw extends fw{constructor(t,e,n){super(hw(e),pw(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof mw?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const yw={provide:m_,useExisting:Mt(()=>ww)},_w=(()=>Promise.resolve(null))();let ww=(()=>{class t extends m_{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Lc,this.form=new vw({},ow(t),rw(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){_w.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),X_(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){_w.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),uw(this._directives,t)})}addFormGroup(t){_w.then(()=>{const e=this._findContainer(t.path),n=new vw({});ew(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){_w.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){_w.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,lw(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Rs(O_,10),Rs(M_,10))},t.\u0275dir=we({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Qs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([yw]),za]}),t})(),Cw=(()=>{class t extends m_{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return K_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ow(this._validators)}get asyncValidator(){return rw(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return xw(e||t)},t.\u0275dir=we({type:t,features:[za]}),t})();const xw=ci(Cw);class Ow{static modelParentException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup's partner directive "formControlName" instead.  Example:\n\n      ${$_}\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  `)}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${H_}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${j_}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${H_}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${j_}`)}}const Mw={provide:m_,useExisting:Mt(()=>Pw)};let Pw=(()=>{class t extends Cw{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof ww||Ow.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,5),Rs(O_,10),Rs(M_,10))},t.\u0275dir=we({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[el([Mw]),za]}),t})();const Iw={provide:y_,useExisting:Mt(()=>Sw)},kw=(()=>Promise.resolve(null))();let Sw=(()=>{class t extends y_{constructor(t,e,n,i){super(),this.control=new mw,this._registered=!1,this.update=new Lc,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=cw(this,i)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),sw(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?K_(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ow(this._rawValidators)}get asyncValidator(){return rw(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){X_(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof Pw)&&this._parent instanceof Cw?Ow.formGroupNameException():this._parent instanceof Pw||this._parent instanceof ww||Ow.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ow.missingNameException()}_updateValue(t){kw.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;kw.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,9),Rs(O_,10),Rs(M_,10),Rs(c_,10))},t.\u0275dir=we({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[el([Iw]),za,qa]}),t})(),Ew=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Dw=new $t("NgModelWithFormControlWarning"),Aw={provide:y_,useExisting:Mt(()=>Tw)};let Tw=(()=>{class t extends y_{constructor(t,e,n,i){super(),this._ngModelWarningConfig=i,this.update=new Lc,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=cw(this,n)}set isDisabled(t){B_.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(X_(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),sw(e,this.viewModel)&&(dw("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return ow(this._rawValidators)}get asyncValidator(){return rw(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Rs(O_,10),Rs(M_,10),Rs(c_,10),Rs(Dw,8))},t.\u0275dir=we({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[el([Aw]),za,qa]}),t._ngModelWarningSentOnce=!1,t})();const Fw={provide:m_,useExisting:Mt(()=>Nw)};let Nw=(()=>{class t extends m_{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Lc}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return X_(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){uw(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);ew(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);ew(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,lw(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>nw(e)),e.valueAccessor.registerOnTouched(()=>nw(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&X_(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=ow(this._validators);this.form.validator=I_.compose([this.form.validator,t]);const e=rw(this._asyncValidators);this.form.asyncValidator=I_.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||B_.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(Rs(O_,10),Rs(M_,10))},t.\u0275dir=we({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Qs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[el([Fw]),za,qa]}),t})();const Vw={provide:m_,useExisting:Mt(()=>Rw)};let Rw=(()=>{class t extends Cw{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){$w(this._parent)&&B_.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,13),Rs(O_,10),Rs(M_,10))},t.\u0275dir=we({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[el([Vw]),za]}),t})();const Lw={provide:m_,useExisting:Mt(()=>zw)};let zw=(()=>{class t extends m_{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return K_(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return ow(this._validators)}get asyncValidator(){return rw(this._asyncValidators)}_checkParentType(){$w(this._parent)&&B_.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,13),Rs(O_,10),Rs(M_,10))},t.\u0275dir=we({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[el([Lw]),za]}),t})();function $w(t){return!(t instanceof Rw||t instanceof Nw||t instanceof zw)}const Hw={provide:y_,useExisting:Mt(()=>jw)};let jw=(()=>{class t extends y_{constructor(t,e,n,i,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new Lc,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=cw(this,i)}set isDisabled(t){B_.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),sw(e,this.viewModel)&&(dw("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return K_(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return ow(this._rawValidators)}get asyncValidator(){return rw(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof Rw)&&this._parent instanceof Cw?B_.ngModelGroupException():this._parent instanceof Rw||this._parent instanceof Nw||this._parent instanceof zw||B_.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Rs(m_,13),Rs(O_,10),Rs(M_,10),Rs(c_,10),Rs(Dw,8))},t.\u0275dir=we({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[el([Hw]),za,qa]}),t._ngModelWarningSentOnce=!1,t})();const Bw={provide:O_,useExisting:Mt(()=>qw),multi:!0},Uw={provide:O_,useExisting:Mt(()=>Gw),multi:!0};let qw=(()=>{class t{get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?I_.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&As("required",e.required?"":null)},inputs:{required:"required"},features:[el([Bw])]}),t})(),Gw=(()=>{class t extends qw{validate(t){return this.required?I_.requiredTrue(t):null}}return t.\u0275fac=function(e){return Ww(e||t)},t.\u0275dir=we({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&As("required",e.required?"":null)},features:[el([Uw]),za]}),t})();const Ww=ci(Gw),Zw={provide:O_,useExisting:Mt(()=>Yw),multi:!0};let Yw=(()=>{class t{set email(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()}validate(t){return this._enabled?I_.email(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[el([Zw])]}),t})();const Qw={provide:O_,useExisting:Mt(()=>Jw),multi:!0};let Jw=(()=>{class t{ngOnChanges(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null==this.minlength?null:this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=I_.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&As("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[el([Qw]),qa]}),t})();const Kw={provide:O_,useExisting:Mt(()=>Xw),multi:!0};let Xw=(()=>{class t{ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=I_.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&As("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[el([Kw]),qa]}),t})();const tC={provide:O_,useExisting:Mt(()=>eC),multi:!0};let eC=(()=>{class t{ngOnChanges(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=I_.pattern(this.pattern)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=we({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&As("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[el([tC]),qa]}),t})(),nC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})(),iC=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,o=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new vw(n,{asyncValidators:o,updateOn:r,validators:i})}control(t,e,n){return new mw(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new bw(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof mw||t instanceof vw||t instanceof bw?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),oC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[V_],imports:[nC]}),t})(),rC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dw,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[iC,V_],imports:[nC]}),t})();$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;const sC=["*"];function aC(t,e){if(1&t){const t=Ws();js(0,"li",6),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs();return i.focus(),i.select(n.id,i.NgbSlideEventSource.INDICATOR)})),Bs()}if(2&t){const t=e.$implicit,n=Xs();ba("active",t.id===n.activeId),As("aria-labelledby","slide-"+t.id)("aria-controls","slide-"+t.id)("aria-selected",t.id===n.activeId)}}var lC,cC,uC;function dC(t,e){}function hC(t,e){if(1&t&&(js(0,"div",7),js(1,"span",8),pc(2,lC),Bs(),Ns(3,dC,0,0,"ng-template",9),Bs()),2&t){const t=e.$implicit,n=e.index,i=e.count;$s("id","slide-"+t.id),Co(2),mc(n+1)(i),function(t){if(fc){const t=Ke(),e=t.data[22];let n,i=null;Array.isArray(e)?n=e:(n=e.update,i=e.icus);const o=ln()-fc-1,r=Je();!function t(e,n,i,o,r,s,a=!1){let l=!1;for(let c=0;c<e.length;c++){const u=e[c],d=e[++c];if(a||u&o){let a="";for(let u=c+1;u<=c+d;u++){const c=e[u];if("string"==typeof c)a+=c;else if("number"==typeof c)if(c<0)a+=Hn(s[i-c]);else{const d=c>>>2;let h,p,g;switch(3&c){case 1:const c=e[++u],f=e[++u];Wo(r,$e(r,d),s,c,a,s[11],f,!1);break;case 0:_r(s,d,a);break;case 2:if(h=e[++u],p=n[h],g=$e(r,d),null!==g.activeCaseIndex){const t=p.remove[g.activeCaseIndex];for(let e=0;e<t.length;e++){const i=t[e];switch(7&i){case 3:hc(r,s,i>>>3,!1);break;case 6:const o=$e(r,t[e+1]>>>3).activeCaseIndex;null!==o&&ne(n[i>>>3].remove[o],t)}}}const m=vc(p,a);g.activeCaseIndex=-1!==m?m:null,m>-1&&(dc(-1,p.create[m],r,s),l=!0);break;case 3:h=e[++u],p=n[h],g=$e(r,d),null!==g.activeCaseIndex&&t(p.update[g.activeCaseIndex],n,i,o,r,s,l)}}}}c+=d}}(n,i,o,gc,t,r),gc=0,fc=0}}(),Co(1),$s("ngTemplateOutlet",t.tplRef)}}function pC(t,e){if(1&t){const t=Ws();js(0,"a",10),Qs("click",(function(){return Xe(t),Xs().arrowLeft()})),Us(1,"span",11),js(2,"span",8),pc(3,cC),Bs(),Bs()}}function gC(t,e){if(1&t){const t=Ws();js(0,"a",12),Qs("click",(function(){return Xe(t),Xs().arrowRight()})),Us(1,"span",13),js(2,"span",8),pc(3,uC),Bs(),Bs()}}lC=$localize`:Currently selected slide number read by screen reader@@ngb.carousel.slide-number␟a65b1b49aa7dd8c4f3004da6a8c2241814dae621␟783273603869937627: Slide ${"\ufffd0\ufffd"}:INTERPOLATION: of ${"\ufffd1\ufffd"}:INTERPOLATION_1: `,cC=$localize`:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,uC=$localize`:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`;const fC=["ngbNavOutlet",""];function mC(t,e){}const vC=function(t){return{$implicit:t}};function bC(t,e){if(1&t&&(js(0,"div",2),Ns(1,mC,0,0,"ng-template",3),Bs()),2&t){const t=Xs().$implicit,e=Xs();$s("item",t)("nav",e.nav)("role",e.paneRole),Co(1),$s("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",kc(5,vC,t.active||e.isPanelTransitioning(t)))}}function yC(t,e){if(1&t&&Ns(0,bC,2,7,"div",1),2&t){const t=e.$implicit,n=Xs();$s("ngIf",t.isPanelInDom()||n.isPanelTransitioning(t))}}function _C(t){return null!=t}function wC(t){return(t||document.body).offsetHeight}$localize`:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`,$localize`:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`,$localize`:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`,$localize`:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`,$localize`:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`,$localize`:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`,$localize`:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`,$localize`:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`,$localize`:@@ngb.progressbar.value␟f8e9a947b9db4252c0e9905765338712f2fd032f␟3720830768741091151:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`,$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`,$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`,$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`,"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const CC={animation:!0,transitionTimerDelayMs:5};let xC=(()=>{class t{constructor(){this.animation=CC.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const OC=()=>{},{transitionTimerDelayMs:MC}=CC,PC=new Map,IC=(t,e,n,i)=>{let o=i.context||{};const r=PC.get(e);if(r)switch(i.runningTransition){case"continue":return fg;case"stop":t.run(()=>r.transition$.complete()),o=Object.assign(r.context,o),PC.delete(e)}const s=n(e,i.animation,o)||OC;if(!i.animation||"none"===window.getComputedStyle(e).transitionProperty)return t.run(()=>s()),Pp(void 0).pipe(function(t){return e=>new _(n=>e.subscribe(e=>t.run(()=>n.next(e)),e=>t.run(()=>n.error(e)),()=>t.run(()=>n.complete())))}(t));const a=new M,l=new M,c=a.pipe(function(...t){return e=>Bg(e,Pp(...t))}(!0));PC.set(e,{transition$:a,complete:()=>{l.next(),l.complete()},context:o});const u=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(e);return t.runOutsideAngular(()=>{const n=Fy(e,"transitionend").pipe(Zy(c),kp(({target:t})=>t===e));zy(Ry(u+MC).pipe(Zy(c)),n,l).pipe(Zy(c)).subscribe(()=>{PC.delete(e),t.run(()=>{s(),a.next(),a.complete()})})}),a.asObservable()};let kC=(()=>{class t{constructor(t){this._ngbConfig=t,this.interval=5e3,this.wrap=!0,this.keyboard=!0,this.pauseOnHover=!0,this.pauseOnFocus=!0,this.showNavigationArrows=!0,this.showNavigationIndicators=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(Qt(xC))},t.\u0275prov=ht({factory:function(){return new t(Qt(xC))},token:t,providedIn:"root"}),t})();var SC=function(t){return t.LEFT="left",t.RIGHT="right",t}({});const EC=({classList:t})=>t.contains("carousel-item-left")||t.contains("carousel-item-right"),DC=t=>{t.remove("carousel-item-left"),t.remove("carousel-item-right")},AC=t=>{DC(t),t.remove("carousel-item-prev"),t.remove("carousel-item-next")},TC=(t,e,{direction:n})=>{const{classList:i}=t;return e?(EC(t)?DC(i):(i.add("carousel-item-"+(n===SC.LEFT?"next":"prev")),wC(t),i.add("carousel-item-"+n)),()=>{AC(i),i.add("active")}):(DC(i),AC(i),void i.add("active"))},FC=(t,e,{direction:n})=>{const{classList:i}=t;return e?(EC(t)?DC(i):i.add("carousel-item-"+n),()=>{AC(i),i.remove("active")}):(DC(i),AC(i),void i.remove("active"))};let NC=0,VC=(()=>{class t{constructor(t){this.tplRef=t,this.id="ngb-slide-"+NC++,this.slid=new Lc}}return t.\u0275fac=function(e){return new(e||t)(Rs(Sl))},t.\u0275dir=we({type:t,selectors:[["ng-template","ngbSlide",""]],inputs:{id:"id"},outputs:{slid:"slid"}}),t})(),RC=(()=>{class t{constructor(t,e,n,i,o){this._platformId=e,this._ngZone=n,this._cd=i,this._container=o,this.NgbSlideEventSource=LC,this._destroy$=new M,this._interval$=new cg(0),this._mouseHover$=new cg(!1),this._focused$=new cg(!1),this._pauseOnHover$=new cg(!1),this._pauseOnFocus$=new cg(!1),this._pause$=new cg(!1),this._wrap$=new cg(!1),this.slide=new Lc,this.slid=new Lc,this._transitionIds=null,this.animation=t.animation,this.interval=t.interval,this.wrap=t.wrap,this.keyboard=t.keyboard,this.pauseOnHover=t.pauseOnHover,this.pauseOnFocus=t.pauseOnFocus,this.showNavigationArrows=t.showNavigationArrows,this.showNavigationIndicators=t.showNavigationIndicators}set interval(t){this._interval$.next(t)}get interval(){return this._interval$.value}set wrap(t){this._wrap$.next(t)}get wrap(){return this._wrap$.value}set pauseOnHover(t){this._pauseOnHover$.next(t)}get pauseOnHover(){return this._pauseOnHover$.value}set pauseOnFocus(t){this._pauseOnFocus$.next(t)}get pauseOnFocus(){return this._pauseOnFocus$.value}set mouseHover(t){this._mouseHover$.next(t)}get mouseHover(){return this._mouseHover$.value}set focused(t){this._focused$.next(t)}get focused(){return this._focused$.value}arrowLeft(){this.focus(),this.prev(LC.ARROW_LEFT)}arrowRight(){this.focus(),this.next(LC.ARROW_RIGHT)}ngAfterContentInit(){"browser"===this._platformId&&this._ngZone.runOutsideAngular(()=>{const t=hg([this.slide.pipe(R(t=>t.current),Ug(this.activeId)),this._wrap$,this.slides.changes.pipe(Ug(null))]).pipe(R(([t,e])=>{const n=this.slides.toArray(),i=this._getSlideIdxById(t);return e?n.length>1:i<n.length-1}),Jy());hg([this._pause$,this._pauseOnHover$,this._mouseHover$,this._pauseOnFocus$,this._focused$,this._interval$,t]).pipe(R(([t,e,n,i,o,r,s])=>t||e&&n||i&&o||!s?0:r),Jy(),$g(t=>t>0?Ry(t,t):jy),Zy(this._destroy$)).subscribe(()=>this._ngZone.run(()=>this.next(LC.TIMER)))}),this.slides.changes.pipe(Zy(this._destroy$)).subscribe(()=>{var t;null===(t=this._transitionIds)||void 0===t||t.forEach(t=>(t=>{var e;null===(e=PC.get(t))||void 0===e||e.complete()})(this._getSlideElement(t))),this._transitionIds=null,this._cd.markForCheck(),this._ngZone.onStable.pipe(Fg(1)).subscribe(()=>{for(const{id:t}of this.slides){const e=this._getSlideElement(t);t===this.activeId?e.classList.add("active"):e.classList.remove("active")}})})}ngAfterContentChecked(){let t=this._getSlideById(this.activeId);this.activeId=t?t.id:this.slides.length?this.slides.first.id:""}ngAfterViewInit(){if(this.activeId){const t=this._getSlideElement(this.activeId);t&&t.classList.add("active")}}ngOnDestroy(){this._destroy$.next()}select(t,e){this._cycleToSelected(t,this._getSlideEventDirection(this.activeId,t),e)}prev(t){this._cycleToSelected(this._getPrevSlide(this.activeId),SC.RIGHT,t)}next(t){this._cycleToSelected(this._getNextSlide(this.activeId),SC.LEFT,t)}pause(){this._pause$.next(!0)}cycle(){this._pause$.next(!1)}focus(){this._container.nativeElement.focus()}_cycleToSelected(t,e,n){const i=this._transitionIds;if(i&&(i[0]!==t||i[1]!==this.activeId))return;let o=this._getSlideById(t);if(o&&o.id!==this.activeId){this._transitionIds=[this.activeId,t],this.slide.emit({prev:this.activeId,current:o.id,direction:e,paused:this._pause$.value,source:n});const i={animation:this.animation,runningTransition:"stop",context:{direction:e}},r=[],s=this._getSlideById(this.activeId);if(s){const t=IC(this._ngZone,this._getSlideElement(s.id),FC,i);t.subscribe(()=>{s.slid.emit({isShown:!1,direction:e,source:n})}),r.push(t)}const a=this.activeId;this.activeId=o.id;const l=this._getSlideById(this.activeId),c=IC(this._ngZone,this._getSlideElement(o.id),TC,i);c.subscribe(()=>{null==l||l.slid.emit({isShown:!0,direction:e,source:n})}),r.push(c),function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),W(t,void 0).lift(new By(e))}(...r).pipe(Fg(1)).subscribe(()=>{this._transitionIds=null,this.slid.emit({prev:a,current:o.id,direction:e,paused:this._pause$.value,source:n})})}this._cd.markForCheck()}_getSlideEventDirection(t,e){return this._getSlideIdxById(t)>this._getSlideIdxById(e)?SC.RIGHT:SC.LEFT}_getSlideById(t){return this.slides.find(e=>e.id===t)||null}_getSlideIdxById(t){const e=this._getSlideById(t);return null!=e?this.slides.toArray().indexOf(e):-1}_getNextSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return n===e.length-1?this.wrap?e[0].id:e[e.length-1].id:e[n+1].id}_getPrevSlide(t){const e=this.slides.toArray(),n=this._getSlideIdxById(t);return 0===n?this.wrap?e[e.length-1].id:e[0].id:e[n-1].id}_getSlideElement(t){return this._container.nativeElement.querySelector("#slide-"+t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(kC),Rs(du),Rs(Iu),Rs(es),Rs(rl))},t.\u0275cmp=fe({type:t,selectors:[["ngb-carousel"]],contentQueries:function(t,e,n){var i;1&t&&Xc(n,VC,!1),2&t&&Yc(i=tu())&&(e.slides=i)},hostAttrs:["tabIndex","0",1,"carousel","slide"],hostVars:3,hostBindings:function(t,e){1&t&&Qs("keydown.arrowLeft",(function(){return e.keyboard&&e.arrowLeft()}))("keydown.arrowRight",(function(){return e.keyboard&&e.arrowRight()}))("mouseenter",(function(){return e.mouseHover=!0}))("mouseleave",(function(){return e.mouseHover=!1}))("focusin",(function(){return e.focused=!0}))("focusout",(function(){return e.focused=!1})),2&t&&(As("aria-activedescendant",e.activeId),va("display","block"))},inputs:{animation:"animation",interval:"interval",wrap:"wrap",keyboard:"keyboard",pauseOnHover:"pauseOnHover",pauseOnFocus:"pauseOnFocus",showNavigationArrows:"showNavigationArrows",showNavigationIndicators:"showNavigationIndicators",activeId:"activeId"},outputs:{slide:"slide",slid:"slid"},exportAs:["ngbCarousel"],decls:6,vars:6,consts:[["role","tablist",1,"carousel-indicators"],["role","tab",3,"active","click",4,"ngFor","ngForOf"],[1,"carousel-inner"],["class","carousel-item","role","tabpanel",3,"id",4,"ngFor","ngForOf"],["class","carousel-control-prev","role","button",3,"click",4,"ngIf"],["class","carousel-control-next","role","button",3,"click",4,"ngIf"],["role","tab",3,"click"],["role","tabpanel",1,"carousel-item",3,"id"],[1,"sr-only"],[3,"ngTemplateOutlet"],["role","button",1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],["role","button",1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"]],template:function(t,e){1&t&&(js(0,"ol",0),Ns(1,aC,1,5,"li",1),Bs(),js(2,"div",2),Ns(3,hC,4,4,"div",3),Bs(),Ns(4,pC,4,0,"a",4),Ns(5,gC,4,0,"a",5)),2&t&&(ba("sr-only",!e.showNavigationIndicators),Co(1),$s("ngForOf",e.slides),Co(2),$s("ngForOf",e.slides),Co(1),$s("ngIf",e.showNavigationArrows),Co(1),$s("ngIf",e.showNavigationArrows))},directives:[dh,ph,xh],encapsulation:2,changeDetection:0}),t})();var LC=function(t){return t.TIMER="timer",t.ARROW_LEFT="arrowLeft",t.ARROW_RIGHT="arrowRight",t.INDICATOR="indicator",t}({});let zC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Wh]]}),t})();var $C=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});const HC=(t,e)=>!!e&&e.some(e=>e.contains(t)),jC=(t,e)=>!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e),BC=(()=>"undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)))();class UC{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(i=this.offset(e,!1)),i.top+=e.clientTop,i.left+=e.clientLeft}return n.top-=i.top,n.bottom-=i.top,n.left-=i.left,n.right-=i.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,o=window.pageXOffset-document.documentElement.clientLeft;let r={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+o,right:n.right+o};return e&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r}positionElements(t,e,n,i){const[o="top",r="center"]=n.split("-"),s=i?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),l=parseFloat(a.marginTop),c=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),d=parseFloat(a.marginRight);let h=0,p=0;switch(o){case"top":h=s.top-(e.offsetHeight+l+c);break;case"bottom":h=s.top+s.height;break;case"left":p=s.left-(e.offsetWidth+u+d);break;case"right":p=s.left+s.width}switch(r){case"top":h=s.top;break;case"bottom":h=s.top+s.height-e.offsetHeight;break;case"left":p=s.left;break;case"right":p=s.left+s.width-e.offsetWidth;break;case"center":"top"===o||"bottom"===o?p=s.left+s.width/2-e.offsetWidth/2:h=s.top+s.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(p)}px, ${Math.round(h)}px)`;const g=e.getBoundingClientRect(),f=document.documentElement,m=window.innerHeight||f.clientHeight,v=window.innerWidth||f.clientWidth;return g.left>=0&&g.top>=0&&g.right<=v&&g.bottom<=m}}const qC=/\s+/,GC=new UC;class WC{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class ZC{constructor(t,e,n,i,o,r,s){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=i,this._ngZone=o,this._componentFactoryResolver=r,this._applicationRef=s,this._windowRef=null,this._contentRef=null}open(t,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:i}=this._windowRef.location,o=this._ngZone.onStable.pipe(Fg(1),B(()=>IC(this._ngZone,i,({classList:t})=>t.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(t=!1){return this._windowRef?IC(this._ngZone,this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:t,runningTransition:"stop"}).pipe(Yg(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Pp(void 0)}_getContentRef(t,e){if(t){if(t instanceof Sl){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new WC([n.rootNodes],n)}return new WC([[this._renderer.createText(""+t)]])}return new WC([])}}let YC=(()=>{class t{constructor(t){this._ngbConfig=t,this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(Qt(xC))},t.\u0275prov=ht({factory:function(){return new t(Qt(xC))},token:t,providedIn:"root"}),t})();const QC=t=>_C(t)&&""!==t;let JC=0,KC=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(Rs(Sl))},t.\u0275dir=we({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),XC=(()=>{class t{constructor(t,e){this.elementRef=e,this.disabled=!1,this.shown=new Lc,this.hidden=new Lc,this._nav=t}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){_C(this.domId)||(this.domId="ngb-nav-"+JC++)}get active(){return this._nav.activeId===this.id}get id(){return QC(this._id)?this._id:this.domId}get panelDomId(){return this.domId+"-panel"}isPanelInDom(){return(_C(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(Rs(Mt(()=>tx)),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(t,e,n){var i;1&t&&Xc(n,KC,!1),2&t&&Yc(i=tu())&&(e.contentTpls=i)},hostVars:2,hostBindings:function(t,e){2&t&&ba("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),tx=(()=>{class t{constructor(t,e,n,i){this.role=t,this._cd=n,this._document=i,this.activeIdChange=new Lc,this.shown=new Lc,this.hidden=new Lc,this.destroy$=new M,this.navItemChange$=new M,this.navChange=new Lc,this.animation=e.animation,this.destroyOnHide=e.destroyOnHide,this.orientation=e.orientation,this.roles=e.roles,this.keyboard=e.keyboard}click(t){t.disabled||this._updateActiveId(t.id)}onKeyDown(t){if("tablist"!==this.roles||!this.keyboard)return;const e=t.which,n=this.links.filter(t=>!t.navItem.disabled),{length:i}=n;let o=-1;if(n.forEach((t,e)=>{t.elRef.nativeElement===this._document.activeElement&&(o=e)}),i){switch(e){case $C.ArrowLeft:if("vertical"===this.orientation)return;o=(o-1+i)%i;break;case $C.ArrowRight:if("vertical"===this.orientation)return;o=(o+1)%i;break;case $C.ArrowDown:if("horizontal"===this.orientation)return;o=(o+1)%i;break;case $C.ArrowUp:if("horizontal"===this.orientation)return;o=(o-1+i)%i;break;case $C.Home:o=0;break;case $C.End:o=i-1}"changeWithArrows"===this.keyboard&&this.select(n[o].navItem.id),n[o].elRef.nativeElement.focus(),t.preventDefault()}}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!_C(this.activeId)){const t=this.items.first?this.items.first.id:null;QC(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}this.items.changes.pipe(Zy(this.destroy$)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:t}){t&&!t.firstChange&&this._notifyItemChanged(t.currentValue)}ngOnDestroy(){this.destroy$.next()}_updateActiveId(t,e=!0){if(this.activeId!==t){let n=!1;e&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t),this._notifyItemChanged(t))}}_notifyItemChanged(t){this.navItemChange$.next(this._getItemById(t))}_getItemById(t){return this.items&&this.items.find(e=>e.id===t)||null}}return t.\u0275fac=function(e){return new(e||t)(Ls("role"),Rs(YC),Rs(es),Rs(rd))},t.\u0275dir=we({type:t,selectors:[["","ngbNav",""]],contentQueries:function(t,e,n){var i;1&t&&(Xc(n,XC,!1),Xc(n,ex,!0)),2&t&&(Yc(i=tu())&&(e.items=i),Yc(i=tu())&&(e.links=i))},hostVars:6,hostBindings:function(t,e){1&t&&Qs("keydown.arrowLeft",(function(t){return e.onKeyDown(t)}))("keydown.arrowRight",(function(t){return e.onKeyDown(t)}))("keydown.arrowDown",(function(t){return e.onKeyDown(t)}))("keydown.arrowUp",(function(t){return e.onKeyDown(t)}))("keydown.Home",(function(t){return e.onKeyDown(t)}))("keydown.End",(function(t){return e.onKeyDown(t)})),2&t&&(As("aria-orientation","vertical"===e.orientation&&"tablist"===e.roles?"vertical":void 0)("role",e.role?e.role:e.roles?"tablist":void 0),ba("nav",!0)("flex-column","vertical"===e.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[qa]}),t})(),ex=(()=>{class t{constructor(t,e,n,i){this.role=t,this.navItem=e,this.nav=n,this.elRef=i}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Ls("role"),Rs(XC),Rs(tx),Rs(rl))},t.\u0275dir=we({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(t,e){1&t&&Qs("click",(function(t){return e.nav.click(e.navItem),t.preventDefault()})),2&t&&(Ra("id",e.navItem.domId),As("role",e.role?e.role:e.nav.roles?"tab":void 0)("tabindex",e.navItem.disabled?-1:void 0)("aria-controls",e.navItem.isPanelInDom()?e.navItem.panelDomId:null)("aria-selected",e.navItem.active)("aria-disabled",e.navItem.disabled),ba("nav-link",!0)("nav-item",e.hasNavItemClass())("active",e.navItem.active)("disabled",e.navItem.disabled))}}),t})();const nx=({classList:t})=>(t.remove("show"),()=>t.remove("active")),ix=(t,e)=>{e&&wC(t),t.classList.add("show")};let ox=(()=>{class t{constructor(t){this.elRef=t}}return t.\u0275fac=function(e){return new(e||t)(Rs(rl))},t.\u0275dir=we({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(t,e){2&t&&(Ra("id",e.item.panelDomId),As("role",e.role?e.role:e.nav.roles?"tabpanel":void 0)("aria-labelledby",e.item.domId),ba("fade",e.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),rx=(()=>{class t{constructor(t,e){this._cd=t,this._ngZone=e,this._activePane=null}isPanelTransitioning(t){var e;return(null===(e=this._activePane)||void 0===e?void 0:e.item)===t}ngAfterViewInit(){var t;this._updateActivePane(),this.nav.navItemChange$.pipe(Zy(this.nav.destroy$),Ug((null===(t=this._activePane)||void 0===t?void 0:t.item)||null),Jy(),t=>t.lift(new s_(1))).subscribe(t=>{const e={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?IC(this._ngZone,this._activePane.elRef.nativeElement,nx,e).subscribe(()=>{var n;const i=null===(n=this._activePane)||void 0===n?void 0:n.item;this._activePane=this._getPaneForItem(t),this._cd.markForCheck(),this._activePane&&(this._activePane.elRef.nativeElement.classList.add("active"),IC(this._ngZone,this._activePane.elRef.nativeElement,ix,e).subscribe(()=>{t&&(t.shown.emit(),this.nav.shown.emit(t.id))})),i&&(i.hidden.emit(),this.nav.hidden.emit(i.id))}):this._updateActivePane()})}_updateActivePane(){var t,e;this._activePane=this._getActivePane(),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("show"),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("active")}_getPaneForItem(t){return this._panes&&this._panes.find(e=>e.item===t)||null}_getActivePane(){return this._panes&&this._panes.find(t=>t.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(Rs(es),Rs(Iu))},t.\u0275cmp=fe({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(t,e){var n;1&t&&Jc(ox,!0),2&t&&Yc(n=tu())&&(e._panes=n)},hostVars:2,hostBindings:function(t,e){2&t&&ba("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:fC,decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&Ns(0,yC,1,1,"ng-template",0),2&t&&$s("ngForOf",e.nav.items)},directives:[dh,ph,ox,xh],encapsulation:2,changeDetection:0}),t})(),sx=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Wh]]}),t})();class ax{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const lx={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},cx=t=>t>0?n_(t):t=>t;let ux=(()=>{class t{constructor(t){this._ngbConfig=t,this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(t){this._animation=t}}return t.\u0275fac=function(e){return new(e||t)(Qt(xC))},t.\u0275prov=ht({factory:function(){return new t(Qt(xC))},token:t,providedIn:"root"}),t})(),dx=0,hx=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,e){2&t&&(Ra("id",e.id),Ca(ae,_a,"tooltip"+(e.tooltipClass?" "+e.tooltipClass:""),!0),ba("fade",e.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:sC,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(t,e){1&t&&(function(t){const e=Je()[16][6];if(!e.projection){const t=e.projection=se(1,null),n=t.slice();let i=e.child;for(;null!==i;){const e=0;null!==e&&(n[e]?n[e].projectionNext=i:t[e]=i,n[e]=i),i=i.next}}}(),Us(0,"div",0),js(1,"div",1),function(t,e=0,n){const i=Je(),o=Ke(),r=No(o,i[6],t,1,null,n||null);null===r.projection&&(r.projection=e),on(),ta||jr(o,i,r)}(2),Bs())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),px=(()=>{class t{constructor(t,e,n,i,o,r,s,a,l,c){this._elementRef=t,this._renderer=e,this._ngZone=s,this._document=a,this._changeDetector=l,this.shown=new Lc,this.hidden=new Lc,this._ngbTooltipWindowId="ngb-tooltip-"+dx++,this._windowRef=null,this.animation=r.animation,this.autoClose=r.autoClose,this.placement=r.placement,this.triggers=r.triggers,this.container=r.container,this.disableTooltip=r.disableTooltip,this.tooltipClass=r.tooltipClass,this.openDelay=r.openDelay,this.closeDelay=r.closeDelay,this._popupService=new ZC(hx,n,o,e,this._ngZone,i,c),this._zoneSubscription=s.onStable.subscribe(()=>{this._windowRef&&function(t,e,n,i,o){let r=Array.isArray(n)?n:n.split(qC);const s=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,l=t=>{const[e,n]=t.split("-"),i=[];return i.push("bs-tooltip-"+e),n&&i.push(`bs-tooltip-${e}-${n}`),i.forEach(t=>{a.add(t)}),i};s.forEach(t=>{a.remove("bs-tooltip-"+t)});let c=r.findIndex(t=>"auto"===t);c>=0&&s.forEach((function(t){null==r.find(e=>-1!==e.search("^"+t))&&r.splice(c++,1,t)}));const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let d=null,h=!1;for(d of r){let n=l(d);if(GC.positionElements(t,e,d,i)){h=!0;break}n.forEach(t=>{a.remove(t)})}h||(d=r[0],l(d),GC.positionElements(t,e,d,i))}(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:e,transition$:n}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=e,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),function(t,e,n,i,o,r,s,a){var l;n&&t.runOutsideAngular((l=()=>{const l=Fy(e,"keydown").pipe(Zy(o),kp(t=>t.which===$C.Escape),Yg(t=>t.preventDefault())),c=Fy(e,"mousedown").pipe(R(t=>{const e=t.target;return 2!==t.button&&!HC(e,s)&&("inside"===n?HC(e,r)&&jC(e,a):"outside"===n?!HC(e,r):jC(e,a)||!HC(e,r))}),Zy(o)),u=Fy(e,"mouseup").pipe(function(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new t_(t,n))}}(c),kp(([t,e])=>e),n_(0),Zy(o));zy([l.pipe(R(t=>0)),u.pipe(R(t=>1))]).subscribe(e=>t.run(()=>i(e)))},BC?()=>setTimeout(()=>l(),100):l))}(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,i,o,r,s=0,a=0){const l=function(t,e=lx){const n=(t||"").trim();if(0===n.length)return[];const i=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new ax(n[0],n[1])}),o=i.filter(t=>t.isManual());if(o.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===o.length&&i.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i}(n);if(1===l.length&&l[0].isManual())return()=>{};const c=function(t,e,n,i){return new _(o=>{const r=[],s=()=>o.next(!0),a=()=>o.next(!1),l=()=>o.next(!i());return n.forEach(n=>{n.open===n.close?r.push(t.listen(e,n.open,l)):r.push(t.listen(e,n.open,s),t.listen(e,n.close,a))}),()=>{r.forEach(t=>t())}})}(t,e,l,i).pipe(function(t,e,n){return i=>{let o=null;const r=i.pipe(R(t=>({open:t})),kp(t=>{const e=n();return e===t.open||o&&o.open!==e?(o&&o.open!==t.open&&(o=null),!1):(o=t,!0)}),nt());return Z(r.pipe(kp(t=>t.open),cx(t)),r.pipe(kp(t=>!t.open),cx(e))).pipe(kp(t=>t===o&&(o=null,t.open!==n())),R(t=>t.open))}}(s,a,i)).subscribe(t=>t?o():r());return()=>c.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Rs(rl),Rs(cl),Rs(vs),Rs(ol),Rs(Dl),Rs(ux),Rs(Iu),Rs(rd),Rs(es),Rs(Wu))},t.\u0275dir=we({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[qa]}),t})(),gx=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)}}),t})();function fx(t,e){if(1&t&&(js(0,"div",9),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Na("Hai ancora ",t.availableHourly," /",t.maxHourly," click disponibili per quest'ora ")}}function mx(t,e){if(1&t&&(js(0,"div",9),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Na("Hai ",t.availableDaily,"/",t.maxDaily," click disponibili per oggi ")}}function vx(t,e){if(1&t){const t=Ws();js(0,"div",4),js(1,"div",5),Qs("click",(function(){return Xe(t),Xs(),Vs(4).close()})),Aa(2,"\xd7"),Bs(),Us(3,"div",6),js(4,"div",7),Aa(5),Bs(),Ns(6,fx,2,2,"div",8),Ns(7,mx,2,2,"div",8),Bs()}if(2&t){const t=Xs(2);Co(3),$s("innerText",t.getResultText()),Co(2),Na("Ti ricordiamo che ogni abbonato pu\xf2 copiare un massimo di ",t.maxHourly," testi all\u2019ora, ",t.maxDaily," al giorno "),Co(1),$s("ngIf",t.maxHourly>0&&t.availableHourly>=0),Co(1),$s("ngIf",t.maxDaily>0&&t.availableDaily>=0)}}function bx(t,e){if(1&t){const t=Ws();qs(0),Ns(1,vx,8,5,"ng-template",null,1,ou),js(3,"div",2,3),Qs("click",(function(){Xe(t);const e=Xs();return e.checkCounter(e.sentence,e.type)})),Aa(5),Bs(),Gs()}if(2&t){const t=Vs(2),e=Xs();Co(3),$s("ngClass","sintesi"===e.type?"copy-text":"copy-extract")("ngbTooltip",t),Co(2),Fa(" Copia ",e.type," ")}}let yx=(()=>{class t{constructor(t){this.dataService=t,this.loaded=!1,this.copied=!1,this.copyrightSintesi="\xa9 Copyright Exeo Srl. Le massime, o sintesi, delle pronunce, che ne costituiscano un riassunto o una rielaborazione in forma compiuta, configurano opera protetta dal diritto di autore, e possono essere utilizzate per fini non commerciali citando la fonte (es. \u201cmassima Esproprionline\u201d o \u201cmassima EOL\u201d). La classificazione delle massime, o sintesi, \xe8 originale e costituisce parimenti opera protetta dal diritto di autore, di cui nessun uso \xe8 consentito senza l\u2019autorizzazione di Exeo srl.",this.copyrightEstratti="\xa9 Copyright Exeo Srl. La classificazione degli estratti delle pronunce e la loro associazione alle sintesi costituiscono opera protetta dal diritto di autore, di cui nessun uso \xe8 consentito senza l\u2019autorizzazione di Exeo srl.",this.maxHourly=0,this.maxDaily=0,this.availableHourly=0,this.availableDaily=0,this.exceedHourly=!1,this.exceedDaily=!1}ngOnInit(){this.calculateCounter().then(t=>this.loaded=t)}sanitizeHTML(t){const e=document.createElement("textarea");return t=t.replace(/<[^>]*>?/gm,""),e.innerHTML=t,e.innerHTML}calculateCounter(){return new Promise(t=>{this.dataService.checkCounter("sentences").then(e=>{this.maxHourly=e.hourly_limit,this.maxDaily=e.daily_limit,this.availableHourly=this.maxHourly>0?this.maxHourly-e.count:-1,this.availableDaily=this.maxDaily>0?this.maxDaily-e.daily:-1,this.exceedHourly=0===this.availableHourly,this.exceedDaily=0===this.availableDaily,t(!0)}).catch(e=>{console.log(e.error),t(!1)})})}getResultText(){return this.exceedDaily?"Hai superato il massimo di testi copiabili giornalmente":this.exceedHourly?"Hai superato il massimo di testi copiabili nell'ultima ora":this.copied?"Testo copiato correttamente":"Attendere..."}checkCounter(t,e){return jv(this,void 0,void 0,(function*(){if(this.copied=!1,(yield this.calculateCounter())&&!this.exceedDaily&&!this.exceedHourly){if(this.title=this.sanitizeHTML(this.sentenceTitle?this.sentenceTitle:this.sentence.sentence.title),"sintesi"===e){const t=this.sanitizeHTML(this.sentence.text||this.sentence.testo);this.copiedText=this.title+"\n\n\xab "+t+"\xbb\n\n"+this.copyrightSintesi}else{const t=this.sanitizeHTML(this.sentence.estratto||this.sentence.text||this.sentence.testo);this.copiedText=this.title+"\n\n\xab "+t+"\xbb\n\n"+this.copyrightEstratti}try{yield navigator.clipboard.writeText(this.copiedText)}catch(t){console.log(t.error)}finally{this.copied=!0}try{yield this.dataService.setCounter("sentences")}catch(t){console.log(t.error)}this.availableHourly--,this.availableDaily--}}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-sentences-tooltip"]],inputs:{type:"type",sentence:"sentence",sentenceTitle:"sentenceTitle"},decls:1,vars:1,consts:[[4,"ngIf"],["tip",""],["placement","top","triggers","click",3,"ngClass","ngbTooltip","click"],["tool","ngbTooltip"],[1,"tip-content"],[1,"tip-close",3,"click"],[1,"tip-head",3,"innerText"],[1,"tip-text"],["class","tip-counter",4,"ngIf"],[1,"tip-counter"]],template:function(t,e){1&t&&Ns(0,bx,6,3,"ng-container",0),2&t&&$s("ngIf",e.loaded)},directives:[ph,lh,px],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .copy-extract[_ngcontent-%COMP%]:before, .copy-text[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.copy-extract[_ngcontent-%COMP%], .copy-text[_ngcontent-%COMP%]{font-size:11px;color:#4e673b;display:inline-flex;cursor:pointer}.copy-extract[_ngcontent-%COMP%]:before, .copy-text[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;background-image:url(copy.93dbafaed013739f08c0.png);margin-right:4px}.tip-content[_ngcontent-%COMP%]{text-align:center;background-color:transparent;padding:15px 5px 10px;position:relative}.tip-content[_ngcontent-%COMP%]   .tip-close[_ngcontent-%COMP%]{color:#fff;font-size:16px;position:absolute;top:-4px;right:3px;cursor:pointer}.tip-content[_ngcontent-%COMP%]   .tip-head[_ngcontent-%COMP%]{font-size:10px;font-weight:700;color:#fff}.tip-content[_ngcontent-%COMP%]   .tip-text[_ngcontent-%COMP%]{font-size:9px;color:#a3a3a3;line-height:10px}.tip-content[_ngcontent-%COMP%]   .tip-counter[_ngcontent-%COMP%]{font-size:9px;color:#fff}']}),t})();function _x(t,e){if(1&t){const t=Ws();js(0,"div",11),Qs("click",(function(){Xe(t);const e=Xs().$implicit;return Xs().changeRoute(e)})),Tc(1,"safeHtml"),Bs()}2&t&&$s("innerHTML",Fc(1,1,Xs().$implicit.sentence.title),Xi)}function wx(t,e){1&t&&(js(0,"div",15),Aa(1,"Massima ufficiale"),Bs())}function Cx(t,e){if(1&t){const t=Ws();js(0,"div",12),js(1,"div",13),Qs("click",(function(){Xe(t);const e=Xs().$implicit;return Xs().changeRoute(e)})),Aa(2,"Dettaglio pronuncia"),Bs(),Ns(3,wx,2,0,"div",14),Bs()}if(2&t){const t=Xs().$implicit;Co(3),$s("ngIf",t.official)}}function xx(t,e){if(1&t&&(qs(0),js(1,"div",16),Aa(2,"Giudice Monocratico: "),js(3,"span",17),Aa(4),Bs(),Bs(),Gs()),2&t){const t=Xs().$implicit;Co(4),Ta(t.sentence.giudice_monocratico)}}function Ox(t,e){if(1&t&&(qs(0),js(1,"div",16),Aa(2,"Relatore: "),js(3,"span",17),Aa(4),Bs(),Bs(),js(5,"div",16),Aa(6,"Presidente: "),js(7,"span",17),Aa(8),Bs(),Bs(),Gs()),2&t){const t=Xs().$implicit;Co(4),Ta(t.sentence.relatore),Co(4),Ta(t.sentence.presidente)}}function Mx(t,e){if(1&t&&(js(0,"div",16),Aa(1,"Causa: "),js(2,"span",17),Aa(3),Bs(),Bs()),2&t){const t=Xs().$implicit;Co(3),Ta(t.sentence.causa)}}function Px(t,e){if(1&t){const t=Ws();js(0,"div",19),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs(2).$implicit;return Xs().goTo(n.id,null==i.synthesis?null:i.synthesis.categories)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;Co(1),Fa(" ",t.name," ")}}function Ix(t,e){if(1&t&&(qs(0),Ns(1,Px,2,1,"div",18),Gs()),2&t){const t=Xs().$implicit;Co(1),$s("ngForOf",null==t.synthesis?null:t.synthesis.categories)}}function kx(t,e){if(1&t&&(Us(0,"div",22),Tc(1,"safeHtml")),2&t){const t=Xs(2).$implicit;$s("innerHTML",Fc(1,1,null==t?null:t.text),Xi)}}function Sx(t,e){if(1&t){const t=Ws();js(0,"div",27),Qs("click",(function(){Xe(t);const e=Xs(3).$implicit,n=Xs();return n.showExtract[e.id]=!n.showExtract[e.id]})),Aa(1),Bs()}if(2&t){const t=Xs(3).$implicit,e=Xs();Co(1),Fa(" ",e.showExtract[t.id]?"Nascondi Estratto":"Leggi Estratto"," ")}}function Ex(t,e){if(1&t&&(js(0,"div",28),Us(1,"div",29),Us(2,"app-sentences-tooltip",25),Bs()),2&t){const t=Xs(3).$implicit;Co(1),$s("innerHTML",null==t||null==t.synthesis?null:t.synthesis.estratto,Xi),Co(1),$s("type","estratto")("sentence",null==t?null:t.synthesis)("sentenceTitle",t.sentence.title)}}function Dx(t,e){if(1&t&&(qs(0),js(1,"div",23),Ns(2,Sx,2,1,"div",24),Us(3,"app-sentences-tooltip",25),Bs(),Ns(4,Ex,3,4,"div",26),Gs()),2&t){const t=Xs(2).$implicit,e=Xs();Co(2),$s("ngIf",null==t||null==t.synthesis?null:t.synthesis.estratto),Co(1),$s("type","sintesi")("sentence",null==t?null:t.synthesis)("sentenceTitle",t.sentence.title),Co(1),$s("ngIf",e.showExtract[t.id])}}function Ax(t,e){if(1&t&&(js(0,"div",20),Ns(1,kx,2,3,"div",21),Ns(2,Dx,5,5,"ng-container",8),Bs()),2&t){const t=Xs().$implicit;Co(1),$s("ngIf",null==t?null:t.text),Co(1),$s("ngIf","SYNTHESIS"===t.type)}}const Tx=function(t){return{loading:t}};function Fx(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"div",0),js(2,"div",3),js(3,"div",4),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().loadingPdf(n)})),Bs(),Ns(4,_x,2,3,"div",5),Bs(),Ns(5,Cx,4,1,"div",6),Bs(),js(6,"div",7),Ns(7,xx,5,1,"ng-container",8),Ns(8,Ox,9,2,"ng-container",8),Ns(9,Mx,4,1,"div",9),Bs(),Ns(10,Ix,2,1,"ng-container",8),Ns(11,Ax,3,2,"div",10),Bs()}if(2&t){const t=e.$implicit,n=Xs();Co(3),$s("ngClass",kc(8,Tx,n.pdfLoading[t.sentence.id])),Co(1),$s("ngIf",null==t.sentence?null:t.sentence.title),Co(1),$s("ngIf","SYNTHESIS"===t.type),Co(2),$s("ngIf",t.sentence.giudice_monocratico),Co(1),$s("ngIf",!t.sentence.giudice_monocratico),Co(1),$s("ngIf",t.sentence.causa),Co(1),$s("ngIf","SYNTHESIS"===t.type),Co(1),$s("ngIf",(null==t||null==t.synthesis?null:t.synthesis.estratto)||(null==t?null:t.text))}}let Nx=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.dataService=n,this.sentences=[],this.root="",this.pdfLoading={},this.showExtract={}}onRightClick(t){t.preventDefault()}ngOnInit(){var t;this.root=this.route.snapshot.routeConfig.path.includes("/")?this.route.snapshot.routeConfig.path.split("/")[0]:this.root?this.root:this.route.snapshot.routeConfig.path,this.root=null===(t=this.root)||void 0===t?void 0:t.replace("synthesis","sentences"),this.root=this.root||"news"}changeRoute(t){const e=t.sentence.id,n={query:this.searchInput.query,query_type:this.searchInput.query_type},i=Object.keys(n).map(t=>`${t}=${n[t]}`).join("&"),o="SENTENCE"===t.type?"/html?"+i:"";"SENTENCE"===t.type?window.open(`${this.root}/${e}${o}`,"_blank"):this.router.navigate([`${this.root}/${e}${o}`])}loadingPdf(t){this.pdfLoading[t.sentence.id]=!0,this.dataService.getPdf("sentences",t.sentence.id+"?text").then(e=>{this.pdfUrl=e,this.pdfLoading[t.sentence.id]=!1,window.open(this.pdfUrl,"_blank")}).catch(({e})=>{alert(e.error?e.error:e),this.pdfLoading[t.sentence.id]=!1})}goTo(t,e){document.body.scrollTop=document.documentElement.scrollTop=0;const n=e.findIndex(e=>e.id===t),i=e.slice(0,n+1).map(t=>t.id);this.router.navigate(["/sentences"],{queryParams:{category:t,accordions:i.toString()}})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-sentences"]],hostBindings:function(t,e){1&t&&Qs("contextmenu",(function(t){return e.onRightClick(t)}))},inputs:{sentences:"sentences",categories:"categories",root:"root",searchInput:"searchInput"},decls:2,vars:1,consts:[[1,"row"],["class","col-12 sentence-element",4,"ngFor","ngForOf"],[1,"col-12","sentence-element"],[1,"col"],[1,"sentence-pdf",3,"ngClass","click"],["class","sentence-title",3,"innerHTML","click",4,"ngIf"],["class","col-auto",4,"ngIf"],[1,"sentence-info"],[4,"ngIf"],["class","sentence-info-detail",4,"ngIf"],["class","sentence-text",4,"ngIf"],[1,"sentence-title",3,"innerHTML","click"],[1,"col-auto"],[1,"show-detail",3,"click"],["class","show-detail-text",4,"ngIf"],[1,"show-detail-text"],[1,"sentence-info-detail"],[1,"sentence-info-name"],["class","sentence-categories",3,"click",4,"ngFor","ngForOf"],[1,"sentence-categories",3,"click"],[1,"sentence-text"],["class","sentence-extract",3,"innerHTML",4,"ngIf"],[1,"sentence-extract",3,"innerHTML"],[1,"sentence-func"],["class","show-more",3,"click",4,"ngIf"],[3,"type","sentence","sentenceTitle"],["class","sentence-container",4,"ngIf"],[1,"show-more",3,"click"],[1,"sentence-container"],[1,"sentence-body",3,"innerHTML"]],template:function(t,e){1&t&&(js(0,"div",0),Ns(1,Fx,12,10,"div",1),Bs()),2&t&&(Co(1),$s("ngForOf",e.sentences))},directives:[dh,lh,ph,yx],pipes:[fy],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .sentence-element[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%], .sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-func[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]:before, .sentence-element[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.sentence-element[_ngcontent-%COMP%]{margin-bottom:30px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.sentence-element[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%]{display:inline-block;cursor:pointer;width:14px;height:16px;background-image:url(pdf.f3bba44809423bdfb2fe.svg);margin-right:6px}.sentence-element[_ngcontent-%COMP%]   .sentence-pdf.loading[_ngcontent-%COMP%]{background-image:url(loader.42aaa181adb3af3bef08.gif)}.sentence-element[_ngcontent-%COMP%]   .sentence-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:20px;font-weight:700;color:#4e673b;cursor:pointer;display:inline}.sentence-element[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]{font-size:11px;color:#213412;display:flex;cursor:pointer;padding-top:8px}.sentence-element[_ngcontent-%COMP%]   .show-detail[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:10px;height:10px;background-image:url(lens.999725906ed821673372.png);margin-right:6px;margin-top:3px}.sentence-element[_ngcontent-%COMP%]   .show-detail-text[_ngcontent-%COMP%]{font-size:11px;color:#213412}.sentence-element[_ngcontent-%COMP%]   .sentence-info[_ngcontent-%COMP%]{display:flex}.sentence-element[_ngcontent-%COMP%]   .sentence-info[_ngcontent-%COMP%]   .sentence-info-detail[_ngcontent-%COMP%]{font-size:12px;font-family:Montserrat,sans-serif;color:#213412;margin-right:20px}.sentence-element[_ngcontent-%COMP%]   .sentence-info[_ngcontent-%COMP%]   .sentence-info-detail[_ngcontent-%COMP%]   .sentence-info-name[_ngcontent-%COMP%]{font-weight:600}.sentence-element[_ngcontent-%COMP%]   .sentence-categories[_ngcontent-%COMP%]{font-size:12px;font-weight:600;margin-right:5px;color:#4e673b;cursor:pointer;display:inline-flex}.sentence-element[_ngcontent-%COMP%]   .sentence-categories[_ngcontent-%COMP%] + .sentence-categories[_ngcontent-%COMP%]{padding-left:5px;border-left:1px solid #4e673b}.sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-extract[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:18px;line-height:21px;font-weight:700;color:#213412;margin-top:15px;margin-bottom:15px;text-align:justify}.sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-func[_ngcontent-%COMP%]{display:flex;align-items:baseline}.sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-func[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]{font-size:11px;color:#4e673b;display:flex;cursor:pointer;margin-right:15px}.sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-func[_ngcontent-%COMP%]   .show-more[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;background-image:url(view.8e7f59dd1dae9424e29a.png);margin-right:6px}.sentence-element[_ngcontent-%COMP%]   .sentence-text[_ngcontent-%COMP%]   .sentence-body[_ngcontent-%COMP%]{margin-top:5px;font-size:15px;text-align:justify}']}),t})();function Vx(t,e){1&t&&(qs(0),js(1,"div",7),js(2,"div",2),Us(3,"app-click-and-navigate",13),Bs(),Bs(),Gs())}function Rx(t,e){1&t&&(js(0,"div",14),Us(1,"app-invia-quesito"),Bs())}function Lx(t,e){1&t&&(js(0,"div",15),Us(1,"app-click-and-navigate",16),Bs())}function zx(t,e){if(1&t){const t=Ws();js(0,"div",17),js(1,"app-accordion",18),Qs("chooseItem",(function(e){return Xe(t),Xs().chooseItem(e)})),Bs(),Bs()}if(2&t){const t=Xs();Co(1),$s("showButtonShow",!1)("categories",t.categories)("accordions",t.accordions)("noAccordions",t.noAccordions)}}function $x(t,e){if(1&t){const t=Ws();js(0,"app-sort",24),Qs("changed",(function(e){return Xe(t),Xs(3).onSortChange(e)})),Bs()}if(2&t){const t=Xs(3);$s("available",t.availableSorts)("sorts",t.currentSorts)}}function Hx(t,e){if(1&t){const t=Ws();js(0,"div",21),js(1,"div"),Ns(2,$x,1,2,"app-sort",22),js(3,"app-pagination",23),Qs("previous",(function(){return Xe(t),Xs(2).previous()}))("next",(function(){return Xe(t),Xs(2).next()}))("page",(function(e){return Xe(t),Xs(2).goToPage(e)})),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(1),Va("col d-flex ",t.enableSorts?"justify-content-between":"justify-content-end"," align-items-center"),Co(1),$s("ngIf",t.enableSorts),Co(1),$s("from",t.page)("to",t.pages)("tot",t.tot)}}function jx(t,e){1&t&&Us(0,"app-loader")}function Bx(t,e){if(1&t&&Us(0,"app-news",27),2&t){const t=Xs(3);$s("categories",t.categories)("year",t.currentValueYear)("news",t.news)}}function Ux(t,e){if(1&t&&Us(0,"app-sentences",28),2&t){const t=Xs(3);$s("categories",t.categories)("sentences",t.news)("searchInput",t.searchInput)}}function qx(t,e){if(1&t&&(qs(0),Ns(1,Bx,1,3,"app-news",25),Ns(2,Ux,1,3,"app-sentences",26),Gs()),2&t){const t=Xs(2);Co(1),$s("ngIf","laws"===t.title||"practice"===t.title||"news"===t.title||"questions"===t.title||"tools"===t.title),Co(1),$s("ngIf","sentences"===t.title)}}function Gx(t,e){if(1&t&&(js(0,"p",29),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Fa(" ",t.chosenCategoryId?"Non ci sono risultati per questa ricerca":"Seleziona una categoria o effettua una ricerca"," ")}}function Wx(t,e){if(1&t){const t=Ws();js(0,"div",21),js(1,"div",30),js(2,"app-pagination",23),Qs("previous",(function(){return Xe(t),Xs(2).previous()}))("next",(function(){return Xe(t),Xs(2).next()}))("page",(function(e){return Xe(t),Xs(2).goToPage(e)})),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(2),$s("from",t.page)("to",t.pages)("tot",t.tot)}}function Zx(t,e){if(1&t&&(qs(0),qs(1),Ns(2,Hx,4,7,"div",19),js(3,"div",1),js(4,"div",2),Ns(5,jx,1,0,"app-loader",6),Ns(6,qx,3,2,"ng-container",6),Ns(7,Gx,2,1,"p",20),Bs(),Bs(),Ns(8,Wx,3,3,"div",19),Gs(),Gs()),2&t){const t=Xs();Co(2),$s("ngIf",(null==t.news?null:t.news.length)>0),Co(3),$s("ngIf",!t.loaded),Co(1),$s("ngIf",t.loaded&&(null==t.news?null:t.news.length)>0),Co(1),$s("ngIf",t.loaded&&0==(null==t.news?null:t.news.length)&&"tools"!==t.title),Co(1),$s("ngIf",(null==t.news?null:t.news.length)>0)}}function Yx(t,e){1&t&&(js(0,"p",32),Aa(1,"Per accedere alla consultazione di questa sezione, occorre essere abbonati."),Bs())}function Qx(t,e){if(1&t&&(qs(0),Ns(1,Yx,2,0,"p",31),Gs()),2&t){const t=Xs();Co(1),$s("ngIf","video"!==t.title&&"events"!==t.title)}}let Jx=(()=>{class t{constructor(t,e,n){this.dataService=t,this.route=e,this.router=n,this.currentValueYear=null,this.convertedTitle="",this.loaded=!1,this.cleanForm=!1,this.unauthorized=!1,this.defaultSorts=[{field:"data",direction:"DESC"}],this.initialInputValues={author:null,month:null,page:1,per_page:12,year:null,from:null,to:null,type:null,number:null,region:null,authority:null,relatore:null,presidente:null,istituzione:null,giudice_monocratico:null,query:null,query_type:"words",search_fields:null,searchIn:null,sort:[]},this.searchInput=this.initialInputValues,this.showCategories=!1,this.enableSorts=!1,this.availableSorts={},this.currentSorts=this.defaultSorts,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1}ngOnInit(){this.init(),this.routeParamsListener()}routeParamsListener(){this.route.queryParams.subscribe(t=>{this.closeModal();const e=Object.assign({},t);if(e.state&&"unauthorized"===e.state&&(this.unauthorized=!0),0===Object.keys(e).length||this.unauthorized)return this.searchInput=Object.assign({},this.initialInputValues),this.ensureQuerySortInSorts(this.searchInput),this.accordions=null,this.chosenCategoryId=null,this.noAccordions=!0,this.cleanForm=!0,this.hideTree=!1,void this.loadValue(this.searchInput).catch(t=>{alert(t.error?t.error.error:t)});const n=Number(e.searchFields)||0;if(this.page=Number(e.page)||1,this.currentValueYear=Number(e.year)||null,this.accordions=e.accordions||null,delete e.accordions,delete e.searchFields,this.searchInput=function(t,e=[]){let n={page:1,sort:[]};try{const i=[];return t.sort&&((Array.isArray(t.sort)?t.sort:[t.sort]).forEach(t=>{const[e,n]=t.split(",");i.push({field:e,direction:"asc"===n?"ASC":"DESC"})}),delete t.sort),n=Object.assign(Object.assign(Object.assign({},n),t),{sort:i.length>0?i:e}),n.page=Number(n.page)||1,["from","to","category","categoria","relatore","presidente","istituzione","giudice_monocratico","days","type","region","year","author","month","authority"].forEach(t=>{n[t]=Number(n[t])||null}),n}catch(i){return console.log(i),n}}(Object.assign(Object.assign(Object.assign({},this.initialInputValues),e),{sort:[]})),this.ensureQuerySortInSorts(this.searchInput),!n)return this.chosenCategoryId=this.searchInput.category,this.noAccordions=!1,this.cleanForm=!0,this.hideTree=!1,void this.loadValue(Object.assign({},this.searchInput)).catch(t=>{alert(t.error?t.error.error:t)});this.search(this.searchInput,!0,!1)})}init(){this.title=this.route.snapshot.routeConfig.path,this.enableSorts="sentences"===this.title,["news","events","video"].includes(this.title)||(this.searchInput.per_page=50),this.convertedTitle=this.dataService.convertedTitle(this.title),this.showCategories=this.dataService.showCategories(this.title),this.dataService.filters(this.title).then(t=>{this.filters=t;const{years:e,categories:n,authors:i}=this.filters;this.years=null==e?void 0:e.map(t=>({id:t,text:String(t)})),this.categories=n,this.authors=i}).catch(t=>{alert(t.error?t.error.error:t)}).finally(()=>this.loaded=!0)}isLoggedId(){return this.dataService.isLoggedIn()}search(t,e,n){this.hideTree=e;const i=this.router.url,o=i.includes("?")?i.slice(0,i.indexOf("?")):i;if(n)return this.accordions=null,this.noAccordions=!0,this.hideTree=!1,this.searchInput=Object.assign({},this.initialInputValues),this.chosenCategoryId=null,this.currentValueYear=null,this.page=1,this.ensureQuerySortInSorts(this.searchInput),void this.doSearch(this.searchInput,o);const r=this.removeNullValue(t);this.ensureQuerySortInSorts(r);const s=Bv(r);this.chosenCategoryId=r.category||null,this.currentValueYear=Number(r.year)||null,this.searchInput=r,this.doSearch(r,o+"?searchFields=1&"+s)}doSearch(t,e){window.history.pushState({path:e},document.title,e),this.loadValue(Object.assign({},t)).catch(t=>{alert(t.error?t.error.error:t)}).finally(()=>{})}chooseItem(t){this.chosenCategoryId=t,this.page=1,this.currentSorts=[...this.defaultSorts],this.loadValue({page:this.page,category:this.chosenCategoryId,sort:this.currentSorts}).then(()=>{}).catch(t=>{alert(t.error?t.error.error:t)}).finally(()=>{})}removeNullValue(t){return Object.keys(t).reduce((t,e)=>(null!=t[e]&&""!==t[e]||delete t[e],t),Object.assign({},t))}loadValue(t={}){return jv(this,void 0,void 0,(function*(){try{this.loaded=!1,t.hasOwnProperty("per_page")||["news","events","video"].includes(this.title)||(t.per_page=50);const{list:e,pages:n,page:i,tot:o}=yield this.dataService.list(this.title,Object.assign({page:1,year:this.currentValueYear},this.removeNullValue(t)));return this.news=e,this.pages=n,this.page=Number(i),this.tot=o,e}catch(e){alert(e.error?e.error.error:e)}finally{this.loaded=!0}}))}onSortChange(t){if(!this.enableSorts)return;this.searchInput.sort=[t],this.currentSorts=this.searchInput.sort;const e=this.router.url,n=e.includes("?")?e.slice(0,e.indexOf("?")):e,i=new URLSearchParams(window.location.search);i.delete("sort"),this.searchInput.sort.forEach(t=>i.append("sort",t.field+","+t.direction.toString().toLowerCase())),this.doSearch(this.removeNullValue(Object.assign(Object.assign({},this.searchInput),{category:this.chosenCategoryId})),n+"?"+i.toString())}showModal(){$("#categoryModal").modal("show")}closeModal(){$("#categoryModal").modal("hide")}previous(){this.page=Number(this.page)>1?Number(this.page)-1:Number(this.page),this.updatePageInUrl(this.page),this.loadValue(this.removeNullValue(Object.assign(Object.assign({},this.searchInput),{category:this.chosenCategoryId,page:this.page})))}next(){this.page++,this.updatePageInUrl(this.page),this.loadValue(this.removeNullValue(Object.assign(Object.assign({},this.searchInput),{category:this.chosenCategoryId,page:this.page})))}goToPage(t){this.page=t,this.updatePageInUrl(this.page),this.loadValue(this.removeNullValue(Object.assign(Object.assign({},this.searchInput),{category:this.chosenCategoryId,page:this.page})))}ensureQuerySortInSorts(t){if(!this.enableSorts)return t.sort=[],this.currentSorts=[],void(this.availableSorts={});let e={data:"Data"};if(t.sort)t.query?(e=Object.assign(Object.assign({},e),{match:"Rilevanza"}),t.sort=[{field:"match",direction:"DESC"}]):t.sort=[...this.defaultSorts];else{const e=t.sort.findIndex(t=>"match"===t.field);if(!t.query&&e>=0){const n=[...t.sort];delete n[e],t.sort=n}}this.availableSorts=e,this.currentSorts=t.sort}updatePageInUrl(t){const e=window.location.search,n=new URLSearchParams(e);n.set("page",""+t);const i=this.router.url;let o=i.includes("?")?i.slice(0,i.indexOf("?")):i;o=o+"?"+n.toString(),window.history.pushState({path:o},document.title,o)}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-generic-search-page"]],viewQuery:function(t,e){var n;1&t&&Jc(Kb,!0),2&t&&Yc(n=tu())&&(e.appForm=n.first)},inputs:{hideTree:"hideTree"},decls:18,vars:13,consts:[[1,"page"],[1,"row"],[1,"col"],[1,"main-title"],[3,"title","filters","searchInput","cleanForm","search"],["appForm",""],[4,"ngIf"],[1,"row","mt-5"],["class","col-12",4,"ngIf"],["class","col-12 mb-4",4,"ngIf"],["class","col-md-5 mb-5",4,"ngIf"],[3,"ngClass"],[3,"categories","closeEvent"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[1,"col-12"],[1,"col-12","mb-4"],["title","title"],[1,"col-md-5","mb-5"],[3,"showButtonShow","categories","accordions","noAccordions","chooseItem"],["class","row mb-5 align-content-center",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"row","mb-5","align-content-center"],[3,"available","sorts","changed",4,"ngIf"],[3,"from","to","tot","previous","next","page"],[3,"available","sorts","changed"],[3,"categories","year","news",4,"ngIf"],[3,"categories","sentences","searchInput",4,"ngIf"],[3,"categories","year","news"],[3,"categories","sentences","searchInput"],[1,"mt-3"],[1,"col","d-flex","justify-content-end"],["class","not-allowed",4,"ngIf"],[1,"not-allowed"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"h1",3),Aa(4),Bs(),Bs(),Bs(),js(5,"div",1),js(6,"div",2),js(7,"app-form",4,5),Qs("search",(function(t){return e.search(t[0],t[1],t[2])})),Bs(),Bs(),Bs(),Ns(9,Vx,4,0,"ng-container",6),js(10,"div",7),Ns(11,Rx,2,0,"div",8),Ns(12,Lx,2,0,"div",9),Ns(13,zx,2,4,"div",10),js(14,"div",11),Ns(15,Zx,9,5,"ng-container",6),Ns(16,Qx,2,1,"ng-container",6),Bs(),Bs(),Bs(),js(17,"app-category-modal",12),Qs("closeEvent",(function(){return e.closeModal()})),Bs()),2&t&&(Co(4),Ta(e.convertedTitle),Co(3),$s("title",e.title)("filters",e.filters)("searchInput",e.searchInput)("cleanForm",e.cleanForm),Co(2),$s("ngIf",e.unauthorized),Co(2),$s("ngIf","questions"===e.title),Co(1),$s("ngIf",!e.showCategories),Co(1),$s("ngIf",e.showCategories&&!e.hideTree),Co(1),$s("ngClass",e.showCategories&&!e.hideTree?"col-md-7":"col-md-12"),Co(1),$s("ngIf",e.isLoggedId()),Co(1),$s("ngIf",!e.isLoggedId()),Co(1),$s("categories",e.categories))},directives:[Kb,ph,lh,ry,ob,sy,oy,uy,gy,Yv,Ty,Nx],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover}.bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%]{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.not-allowed[_ngcontent-%COMP%]{margin:30px auto;text-align:center;font-size:20px;font-weight:600;color:#213412}"]}),t})(),Kx=(()=>{class t{constructor(t){this.dataService=t}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-macrobutton"]],decls:7,vars:1,consts:[["target","_blank",1,"macro-button",3,"href"],["src","assets/img/link.svg","alt","beni pubblicic",1,"img-logo"],[1,"macro-text-container"],[1,"macro-text","macro-text-btm"],[1,"line1"],[1,"line2"]],template:function(t,e){1&t&&(js(0,"a",0),Us(1,"img",1),js(2,"div",2),js(3,"div",3),Aa(4,"Patrimanager \xae"),Bs(),Bs(),Bs(),Us(5,"div",4),Us(6,"div",5)),2&t&&ia("href","https://www.patrimanager.it/#/?token=",e.dataService.getToken(),"",to)},styles:[".macro-button[_ngcontent-%COMP%]{background-color:#213412;padding:20px;margin-top:20px;margin-bottom:30px;border-radius:5px;box-shadow:2px 2px #eee;display:flex}.macro-button[_ngcontent-%COMP%]:hover{text-decoration:none}.macro-button[_ngcontent-%COMP%]   .img-logo[_ngcontent-%COMP%]{max-width:70px;max-height:70px}.macro-button[_ngcontent-%COMP%]   .macro-text-container[_ngcontent-%COMP%]   .macro-text[_ngcontent-%COMP%]{color:#fff;font-size:17px;line-height:45px;padding-left:43px;text-transform:uppercase;font-weight:700}.macro-button[_ngcontent-%COMP%]   .macro-text-container[_ngcontent-%COMP%]   .macro-text.macro-text-btm[_ngcontent-%COMP%]{font-size:32px}.line1[_ngcontent-%COMP%]{-webkit-transform:translateY(-140px) translateX(432px) rotate(45deg)}.line1[_ngcontent-%COMP%], .line2[_ngcontent-%COMP%]{width:60px;height:47px;border-bottom:6px solid #fff;position:absolute}.line2[_ngcontent-%COMP%]{-webkit-transform:translateY(-140px) translateX(447px) rotate(45deg)}"]}),t})();function Xx(t,e){1&t&&Us(0,"app-loader")}const tO=function(t){return{"background-image":t}};function eO(t,e){if(1&t){const t=Ws();js(0,"div",14),js(1,"div",15),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).filterSite(n)})),Bs(),js(2,"div",16),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).filterSite(n)})),js(3,"div",17),Aa(4),Bs(),js(5,"div",18),Aa(6),Bs(),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(1),$s("ngStyle",kc(3,tO,"url("+t.img+")")),Co(3),Ta(t.name),Co(2),Ta(t.description)}}function nO(t,e){if(1&t){const t=Ws();js(0,"div",19),js(1,"div",20),js(2,"div",21),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).filterSite(n)})),Aa(3),Bs(),Us(4,"hr"),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(3),Ta(t.name)}}function iO(t,e){if(1&t&&(qs(0),js(1,"div",22),Aa(2,"In evidenza"),Bs(),js(3,"div",23),Aa(4,"In evidenza"),Bs(),Us(5,"app-news",24),Gs()),2&t){const t=Xs(2);Co(5),$s("root","evidenza")("news",t.evidenza)}}function oO(t,e){if(1&t){const t=Ws();js(0,"div",29),Qs("click",(function(){Xe(t);const e=Xs().$implicit;return Xs(4).goTo(e.id)})),js(1,"div",30),Aa(2),Bs(),Us(3,"div",31),Tc(4,"safeHtml"),Bs()}if(2&t){const t=Xs().$implicit;$s("ngStyle",kc(5,tO,"url('"+t.img+"')")),Co(2),Ta(t.category.name),Co(1),$s("innerHTML",Fc(4,3,t.title),Xi)}}function rO(t,e){1&t&&Ns(0,oO,5,7,"ng-template",28)}function sO(t,e){if(1&t&&(qs(0),js(1,"div",25),Aa(2,"In evidenza"),Bs(),js(3,"ngb-carousel",26),Ns(4,rO,1,0,void 0,27),Bs(),Gs()),2&t){const t=Xs(3);Co(3),$s("showNavigationIndicators",t.showNavigationIndicators),Co(1),$s("ngForOf",t.flashes)}}function aO(t,e){if(1&t&&(qs(0),Ns(1,sO,5,2,"ng-container",0),Gs()),2&t){const t=Xs(2);Co(1),$s("ngIf",t.flashes.length>0)}}function lO(t,e){if(1&t&&(js(0,"a",35),Us(1,"img",36),Bs()),2&t){const t=Xs().$implicit;$s("routerLink","page/"+t.page),Co(1),na("src",t.img,to)}}function cO(t,e){if(1&t&&(js(0,"a",37),Us(1,"img",36),Bs()),2&t){const t=Xs().$implicit;$s("href",t.url||t.attachment,to),Co(1),na("src",t.img,to)}}function uO(t,e){if(1&t&&(js(0,"div",32),Ns(1,lO,2,2,"a",33),Ns(2,cO,2,2,"a",34),Bs()),2&t){const t=e.$implicit;Co(1),$s("ngIf",t.page),Co(1),$s("ngIf",!t.page)}}function dO(t,e){1&t&&(js(0,"h2",38),Aa(1,"Notizie"),Bs())}function hO(t,e){1&t&&(js(0,"h2",38),Aa(1,"Approfondimenti"),Bs())}function pO(t,e){if(1&t&&(qs(0),js(1,"div",1),js(2,"div",2),js(3,"div",3),Us(4,"app-macrobutton"),js(5,"h2",4),Aa(6,"Gli speciali"),Bs(),Ns(7,eO,7,5,"div",5),Us(8,"hr"),js(9,"h2",6),Aa(10,"I Dossier"),Bs(),Ns(11,nO,5,1,"div",7),js(12,"h2",6),Aa(13,"La Giurisprudenza"),Bs(),js(14,"div",8),Us(15,"app-accordion",9),Bs(),Bs(),js(16,"div",10),Ns(17,iO,6,2,"ng-container",0),Ns(18,aO,2,1,"ng-container",0),Ns(19,uO,3,2,"div",11),Ns(20,dO,2,0,"h2",12),Us(21,"app-news",13),Ns(22,hO,2,0,"h2",12),Us(23,"app-news",13),Bs(),Bs(),Bs(),Gs()),2&t){const t=Xs();Co(7),$s("ngForOf",t.specials),Co(4),$s("ngForOf",t.dossiers),Co(4),$s("openLink",!0)("categories",t.categories)("accordions",t.accordions)("inHome",!0),Co(2),$s("ngIf",(null==t.evidenza?null:t.evidenza.img)||(null==t.evidenza?null:t.evidenza.text)),Co(1),$s("ngIf",!(null!=t.evidenza&&t.evidenza.img||null!=t.evidenza&&t.evidenza.text)),Co(1),$s("ngForOf",t.banners),Co(1),$s("ngIf",t.news.length>1),Co(1),$s("root","news")("news",t.news)("inHome",!0),Co(1),$s("ngIf",t.analysis.length>1),Co(1),$s("root","analysis")("news",t.analysis)("inHome",!0)}}let gO=(()=>{class t{constructor(t,e,n){this.dataService=t,this.router=e,this.categories=[],this.loaded=!1,this.showNavigationIndicators=!1,n.interval=12e3}ngOnInit(){this.init()}init(){return jv(this,void 0,void 0,(function*(){try{this.loaded=!1;const{flash:t,analysis:e,news:n,categories:i,evidenza:o,specials:r,dossiers:s,banners:a}=yield this.dataService.allData();this.flashes=t,this.banners=a,this.analysis=e,this.news=n,this.categories=i,this.specials=r,this.dossiers=s,this.evidenza=o[0]}catch({error:t}){alert(t.error?t.error:t)}finally{this.loaded=!0}}))}filterSite(t){this.dataService.setStorageSiteFilter(t),this.init()}goTo(t){this.router.navigate(["news/"+t])}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv),Rs(kC))},t.\u0275cmp=fe({type:t,selectors:[["app-home"]],decls:2,vars:2,consts:[[4,"ngIf"],[1,"page","pb-5"],[1,"row"],[1,"col-md-5"],[1,"main-title","mb-4","pb-2"],["class","special mt-3",4,"ngFor","ngForOf"],[1,"main-title","mt-5","mb-4"],["class","row mt-3",4,"ngFor","ngForOf"],[1,"accordion"],[3,"openLink","categories","accordions","inHome"],[1,"col-md-7"],["class","pb-3",4,"ngFor","ngForOf"],["class","section-title mt-3",4,"ngIf"],[3,"root","news","inHome"],[1,"special","mt-3"],[1,"special-img",3,"ngStyle","click"],[1,"special-content",3,"click"],[1,"special-top"],[1,"special-btm"],[1,"row","mt-3"],[1,"col"],[1,"dossier",3,"click"],[1,"underline-title"],[1,"section-title","mt-0"],[3,"root","news"],[1,"underline-title","mt-3"],[1,"mb-4",3,"showNavigationIndicators"],[4,"ngFor","ngForOf"],["ngbSlide",""],[1,"car-item",3,"ngStyle","click"],[1,"car-category"],[1,"car-caption","d-none","d-md-block",2,"text-transform","uppercase",3,"innerHTML"],[1,"pb-3"],[3,"routerLink",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"routerLink"],[3,"src"],["target","_blank",3,"href"],[1,"section-title","mt-3"]],template:function(t,e){1&t&&(Ns(0,Xx,1,0,"app-loader",0),Ns(1,pO,24,17,"ng-container",0)),2&t&&($s("ngIf",!e.loaded),Co(1),$s("ngIf",e.loaded))},directives:[ph,Yv,Kx,dh,oy,Ty,Ch,RC,VC,bv],pipes:[fy],styles:['.bg-cover,.car-item{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain,.special .special-img{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand{background-color:#213412}.special{display:flex;align-items:center;margin-bottom:30px}.special .special-img{width:60px;height:67px;cursor:pointer}.special .special-content{margin-left:15px;width:100%;cursor:pointer}.special .special-content .special-top{background-color:#292929;color:#fff;border-radius:25px 3px 0 0;margin-bottom:1px;border:2px solid #292929;padding:10px 15px;font-weight:600}.special .special-content .special-btm{background-color:#d0d0d0;color:#213412;padding:15px;border-radius:1px;font-size:14px}.dossier{font-size:22px;cursor:pointer;font-family:Source Sans Pro,sans-serif}.dossier:before{content:"";width:12px;height:12px;background-color:#dbcd1f;display:inline-block;border-radius:50%;margin-right:10px}.underline-title{color:#4e673b;text-transform:uppercase;font-weight:600;border-bottom:3px solid #dbcd1f;padding-bottom:3px;margin-bottom:30px}.car-item{height:310px;width:100%;background-color:#e0e0e0;cursor:pointer}.car-item .car-category{top:20px;padding:8px 12px;border-radius:4px 0 0 4px;font-size:11px;text-transform:uppercase}.car-item .car-caption,.car-item .car-category{position:absolute;right:0;background-color:rgba(33,52,18,.8);color:#fff}.car-item .car-caption{text-align:left;padding:15px;bottom:0;left:0;font-size:15px}.carousel-item{opacity:0;transition:opacity .8s;display:block;visibility:hidden;z-index:1}.carousel-item.active{opacity:1;transition:opacity .8s;display:block;z-index:2;visibility:visible}.carousel-item.active.carousel-item-left,.carousel-item.active.carousel-item-right{opacity:.5;transform:none}.carousel-item.carousel-item-next.carousel-item-left,.carousel-item.carousel-item-prev.carousel-item-right{display:block;visibility:visible;z-index:2;opacity:1;width:100%;transform:none}.carousel-control-next,.carousel-control-prev{opacity:.6;z-index:3}.carousel-control-next:hover,.carousel-control-prev:hover{opacity:1}.carousel-control-next-icon,.carousel-control-prev-icon{width:30px;height:30px}.carousel-control-prev-icon{background-image:url(arrow-left-mini.11da55e1777c086bb85d.svg)}.carousel-control-next-icon{background-image:url(arrow-right-mini.8149c17d04eb5ce4485e.svg)}'],encapsulation:2}),t})(),fO=(()=>{class t{constructor(){this.title=""}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-main-title"]],inputs:{title:"title"},decls:2,vars:1,consts:[[1,"main-title"]],template:function(t,e){1&t&&(js(0,"h1",0),Aa(1),Bs()),2&t&&(Co(1),Ta(e.title))},styles:[".title[_ngcontent-%COMP%]{padding-left:15px;text-align:left;font:normal normal 700 32px Ubuntu;letter-spacing:0;color:#213412;text-transform:uppercase;opacity:1}"]}),t})();function mO(t,e){1&t&&(qs(0),js(1,"div",6),js(2,"div",2),Us(3,"app-click-and-navigate",14),Bs(),Bs(),Gs())}function vO(t,e){1&t&&(js(0,"div",15),Us(1,"app-click-and-navigate",16),Bs())}function bO(t,e){if(1&t){const t=Ws();js(0,"div",17),js(1,"app-accordion",18),Qs("chooseItem",(function(e){return Xe(t),Xs().chooseItem(e)})),Bs(),Bs()}if(2&t){const t=Xs();Co(1),$s("showButtonShow",!1)("categories",t.categories)("accordions",t.accordions)}}function yO(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",19),js(2,"app-pagination",20),Qs("previous",(function(){return Xe(t),Xs().previous()}))("next",(function(){return Xe(t),Xs().next()}))("page",(function(e){return Xe(t),Xs().goToPage(e)})),Bs(),Bs(),Bs()}if(2&t){const t=Xs();Co(2),$s("from",t.page)("to",t.pages)("tot",t.tot)}}function _O(t,e){1&t&&Us(0,"app-loader")}function wO(t,e){1&t&&(js(0,"p",21),Aa(1,"Non ci sono risultati per questa ricerca"),Bs())}function CO(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",22),js(2,"app-pagination",20),Qs("previous",(function(){return Xe(t),Xs().previous()}))("next",(function(){return Xe(t),Xs().next()}))("page",(function(e){return Xe(t),Xs().goToPage(e)})),Bs(),Bs(),Bs()}if(2&t){const t=Xs();Co(2),$s("from",t.page)("to",t.pages)("tot",t.tot)}}let xO=(()=>{class t extends Jx{showModal(){$("#categoryModal").modal("show")}closeModal(){$("#categoryModal").modal("hide")}}return t.\u0275fac=function(e){return OO(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-news-page"]],features:[za],decls:20,vars:16,consts:[[1,"page"],[1,"row"],[1,"col"],[3,"title"],[3,"title","filters","searchInput","search"],[4,"ngIf"],[1,"row","mt-5"],["class","col-12 mb-4",4,"ngIf"],["class","col-md-4",4,"ngIf"],[3,"ngClass"],["class","row",4,"ngIf"],[3,"categories","year","news"],["class","mt-3",4,"ngIf"],[3,"categories","closeEvent"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[1,"col-12","mb-4"],["title","title"],[1,"col-md-4"],[3,"showButtonShow","categories","accordions","chooseItem"],[1,"col","d-flex","justify-content-end","pt-3"],[3,"from","to","tot","previous","next","page"],[1,"mt-3"],[1,"col","d-flex","justify-content-end","py-3","mb-3"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),Us(3,"app-main-title",3),Bs(),Bs(),js(4,"div",1),js(5,"div",2),js(6,"app-form",4),Qs("search",(function(t){return e.search(t[0],t[1],t[2])})),Bs(),Bs(),Bs(),Ns(7,mO,4,0,"ng-container",5),js(8,"div",6),Ns(9,vO,2,0,"div",7),Ns(10,bO,2,3,"div",8),js(11,"div",9),Ns(12,yO,3,3,"div",10),js(13,"div",1),js(14,"div",2),Ns(15,_O,1,0,"app-loader",5),Us(16,"app-news",11),Ns(17,wO,2,0,"p",12),Bs(),Bs(),Ns(18,CO,3,3,"div",10),Bs(),Bs(),Bs(),js(19,"app-category-modal",13),Qs("closeEvent",(function(){return e.closeModal()})),Bs()),2&t&&(Co(3),$s("title",e.convertedTitle),Co(3),$s("title",e.title)("filters",e.filters)("searchInput",e.searchInput),Co(1),$s("ngIf",e.unauthorized),Co(2),$s("ngIf",!e.showCategories),Co(1),$s("ngIf",e.showCategories),Co(1),$s("ngClass",e.showCategories?"col-md-8":"col-md-12"),Co(1),$s("ngIf",(null==e.news?null:e.news.length)>0),Co(3),$s("ngIf",!e.loaded),Co(1),$s("categories",e.categories)("year",e.currentValueYear)("news",e.news),Co(1),$s("ngIf",e.loaded&&0==(null==e.news?null:e.news.length)),Co(1),$s("ngIf",(null==e.news?null:e.news.length)>0),Co(1),$s("categories",e.categories))},directives:[fO,Kb,ph,lh,Ty,ry,ob,oy,uy,Yv],styles:[".margin-l2[_ngcontent-%COMP%]{margin-top:30px;margin-left:0}.min-h[_ngcontent-%COMP%]{min-height:1000px!important}.size-1[_ngcontent-%COMP%]{padding-bottom:50px}.m-t[_ngcontent-%COMP%], .size-1[_ngcontent-%COMP%]{margin-top:15px}.m-t-2[_ngcontent-%COMP%]{margin-top:35px}.active[_ngcontent-%COMP%]{background-color:#bcd1ac;padding:12px 10px;border-radius:6px;cursor:pointer}.margin-l3[_ngcontent-%COMP%]{margin-left:15px}.img-icon[_ngcontent-%COMP%]{margin:2px}.no-padding[_ngcontent-%COMP%]{margin:0;padding:0}",'.bg-cover[_ngcontent-%COMP%], .car-item[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .special[_ngcontent-%COMP%]   .special-img[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.special[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:30px}.special[_ngcontent-%COMP%]   .special-img[_ngcontent-%COMP%]{width:60px;height:67px;cursor:pointer}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]{margin-left:15px;width:100%;cursor:pointer}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]   .special-top[_ngcontent-%COMP%]{background-color:#292929;color:#fff;border-radius:25px 3px 0 0;margin-bottom:1px;border:2px solid #292929;padding:10px 15px;font-weight:600}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]   .special-btm[_ngcontent-%COMP%]{background-color:#d0d0d0;color:#213412;padding:15px;border-radius:1px;font-size:14px}.dossier[_ngcontent-%COMP%]{font-size:22px;cursor:pointer;font-family:Source Sans Pro,sans-serif}.dossier[_ngcontent-%COMP%]:before{content:"";width:12px;height:12px;background-color:#dbcd1f;display:inline-block;border-radius:50%;margin-right:10px}.underline-title[_ngcontent-%COMP%]{color:#4e673b;text-transform:uppercase;font-weight:600;border-bottom:3px solid #dbcd1f;padding-bottom:3px;margin-bottom:30px}.car-item[_ngcontent-%COMP%]{height:310px;width:100%;background-color:#e0e0e0;cursor:pointer}.car-item[_ngcontent-%COMP%]   .car-category[_ngcontent-%COMP%]{top:20px;padding:8px 12px;border-radius:4px 0 0 4px;font-size:11px;text-transform:uppercase}.car-item[_ngcontent-%COMP%]   .car-caption[_ngcontent-%COMP%], .car-item[_ngcontent-%COMP%]   .car-category[_ngcontent-%COMP%]{position:absolute;right:0;background-color:rgba(33,52,18,.8);color:#fff}.car-item[_ngcontent-%COMP%]   .car-caption[_ngcontent-%COMP%]{text-align:left;padding:15px;bottom:0;left:0;font-size:15px}.carousel-item[_ngcontent-%COMP%]{opacity:0;transition:opacity .8s;display:block;visibility:hidden;z-index:1}.carousel-item.active[_ngcontent-%COMP%]{opacity:1;transition:opacity .8s;display:block;z-index:2;visibility:visible}.carousel-item.active.carousel-item-left[_ngcontent-%COMP%], .carousel-item.active.carousel-item-right[_ngcontent-%COMP%]{opacity:.5;transform:none}.carousel-item.carousel-item-next.carousel-item-left[_ngcontent-%COMP%], .carousel-item.carousel-item-prev.carousel-item-right[_ngcontent-%COMP%]{display:block;visibility:visible;z-index:2;opacity:1;width:100%;transform:none}.carousel-control-next[_ngcontent-%COMP%], .carousel-control-prev[_ngcontent-%COMP%]{opacity:.6;z-index:3}.carousel-control-next[_ngcontent-%COMP%]:hover, .carousel-control-prev[_ngcontent-%COMP%]:hover{opacity:1}.carousel-control-next-icon[_ngcontent-%COMP%], .carousel-control-prev-icon[_ngcontent-%COMP%]{width:30px;height:30px}.carousel-control-prev-icon[_ngcontent-%COMP%]{background-image:url(arrow-left-mini.11da55e1777c086bb85d.svg)}.carousel-control-next-icon[_ngcontent-%COMP%]{background-image:url(arrow-right-mini.8149c17d04eb5ce4485e.svg)}']}),t})();const OO=ci(xO);function MO(t,e){1&t&&Us(0,"app-loader")}function PO(t,e){1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),Gs())}function IO(t,e){if(1&t&&(js(0,"div",17),js(1,"div",18),Aa(2,"Giudice Monocratico:"),Bs(),js(3,"div",19),Aa(4),Bs(),Bs()),2&t){const t=Xs(3);Co(4),Ta(null==t.sentence?null:t.sentence.giudice_monocratico)}}function kO(t,e){if(1&t&&(qs(0),js(1,"div",17),js(2,"div",18),Aa(3,"Relatore:"),Bs(),js(4,"div",19),Aa(5),Bs(),Bs(),js(6,"div",17),js(7,"div",18),Aa(8,"Presidente:"),Bs(),js(9,"div",19),Aa(10),Bs(),Bs(),Gs()),2&t){const t=Xs(3);Co(5),Ta(null==t.sentence?null:t.sentence.relatore),Co(5),Ta(null==t.sentence?null:t.sentence.presidente)}}function SO(t,e){if(1&t&&(js(0,"div",17),js(1,"div",18),Aa(2,"Causa:"),Bs(),js(3,"div",19),Aa(4),Bs(),Bs()),2&t){const t=Xs(3);Co(4),Ta(null==t.sentence?null:t.sentence.causa)}}function EO(t,e){if(1&t){const t=Ws();js(0,"div",29),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs().$implicit;return Xs(4).goTo(n.id,i.categories)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;Co(1),Ta(t.name)}}function DO(t,e){if(1&t&&(qs(0),js(1,"div",25),js(2,"div",26),Aa(3,"Sintesi"),Bs(),Ns(4,EO,2,1,"div",27),Us(5,"div",28),Tc(6,"safeHtml"),Us(7,"app-sentences-tooltip",24),Bs(),Gs()),2&t){const t=e.$implicit,n=Xs(4);Co(4),$s("ngForOf",t.categories),Co(1),$s("innerHTML",Fc(6,5,null==t?null:t.text),Xi),Co(2),$s("type","sintesi")("sentence",t)("sentenceTitle",n.sentence.title)}}function AO(t,e){if(1&t&&(qs(0),Ns(1,DO,8,7,"ng-container",16),js(2,"div",20),js(3,"div",21),Aa(4,"Estratto"),Bs(),Us(5,"div",22),Tc(6,"safeHtml"),js(7,"div",23),Us(8,"app-sentences-tooltip",24),Bs(),Bs(),Gs()),2&t){const t=e.$implicit,n=Xs(3);Co(1),$s("ngForOf",t.sintesi),Co(4),$s("innerHTML",Fc(6,5,t.text),Xi),Co(3),$s("type","estratto")("sentence",t)("sentenceTitle",n.sentence.title)}}const TO=function(t){return{loading:t}};function FO(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",6),js(2,"div",4),js(3,"div",7),Aa(4,"Sentenze"),Bs(),js(5,"div",8),js(6,"div",9),js(7,"div",4),js(8,"div",10),Aa(9),Bs(),Bs(),js(10,"div",11),js(11,"div",12),Qs("click",(function(){return Xe(t),Xs(2).showHtml()})),Aa(12,"Mostra HTML della pronuncia"),Bs(),js(13,"div",13),Qs("click",(function(){Xe(t);const e=Xs(2);return e.loadingPdf(e.sentence,!1)})),Aa(14,"Scarica PDF delle massime "),Bs(),js(15,"div",13),Qs("click",(function(){Xe(t);const e=Xs(2);return e.loadingPdf(e.sentence,!0)})),Aa(16,"Scarica PDF della pronuncia "),Bs(),Bs(),Bs(),Bs(),Bs(),Bs(),js(17,"div",14),Ns(18,IO,5,1,"div",15),Ns(19,kO,11,2,"ng-container",0),Ns(20,SO,5,1,"div",15),Bs(),js(21,"div",6),js(22,"div",4),Ns(23,AO,9,7,"ng-container",16),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(9),Ta(t.sentence.title),Co(4),$s("ngClass",kc(7,TO,t.sentence.pdfLoadingMax)),Co(2),$s("ngClass",kc(9,TO,t.sentence.pdfLoadingPro)),Co(3),$s("ngIf",null==t.sentence?null:t.sentence.giudice_monocratico),Co(1),$s("ngIf",!(null!=t.sentence&&t.sentence.giudice_monocratico)),Co(1),$s("ngIf",null==t.sentence?null:t.sentence.causa),Co(3),$s("ngForOf",t.sentence.estratti)}}function NO(t,e){if(1&t&&(js(0,"div",2),Ns(1,PO,4,0,"ng-container",0),Ns(2,FO,24,11,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",!t.isLoggedId()||t.notAutorized),Co(1),$s("ngIf",t.isLoggedId()&&!t.notAutorized)}}let VO=(()=>{class t{constructor(t,e,n){this.route=t,this.router=e,this.dataService=n,this.allNews=[],this.completeLoading=!1,this.title="",this.notAutorized=!1}onRightClick(t){t.preventDefault()}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.title=this.route.snapshot.routeConfig.path.split("/")[0];try{this.dataService.isLoggedIn()&&(this.sentence=yield this.dataService.singleItem(this.title,this.route.snapshot.params.id))}catch(t){alert(t.error?t.error:t)}this.completeLoading=!0}))}isLoggedId(){return this.dataService.isLoggedIn()}showHtml(){window.open(`/${this.title}/${this.sentence.id}/html`,"_blank")}loadingPdf(t,e){e?(t.pdfLoadingPro=!0,this.dataService.getPdf("sentences",t.id+"?text").then(e=>{this.pdfUrl=e,t.pdfLoadingPro=!1,window.open(this.pdfUrl,"_blank")}).catch(({e:t})=>alert(t.error?t.error:t))):(t.pdfLoadingMax=!0,this.dataService.getPdf("sentences",t.id).then(e=>{this.pdfUrl=e,t.pdfLoadingMax=!1,window.open(this.pdfUrl,"_blank")}).catch(({e:t})=>alert(t.error?t.error:t)))}goTo(t,e){const n=e.findIndex(e=>e.id===t),i=e.slice(0,n+1).map(t=>t.id);this.router.navigate(["/sentences"],{queryParams:{category:t,accordions:i.toString()}})}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(mv),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-single-sentence"]],hostBindings:function(t,e){1&t&&Qs("contextmenu",(function(t){return e.onRightClick(t)}))},decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row","mt-5"],[1,"col"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[1,"row","no-select"],[1,"sentence-section"],[1,"title-bar"],[1,"row","align-items-center"],[1,"single-sentence-title"],[1,"col-md-auto","pdf-container"],[1,"sentence-html",3,"click"],[1,"sentence-pdf",3,"ngClass","click"],[1,"row","sentence-details","no-select"],["class","col-auto",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"col-auto"],[1,"sentence-detail-title"],[1,"sentence-detail-name"],[1,"estratto-container"],[1,"estratto-title"],[1,"estratto-body",3,"innerHTML"],[1,"estratto-pad"],[3,"type","sentence","sentenceTitle"],[1,"sintesi-container"],[1,"sintesi"],["class","tags d-inline-block",3,"click",4,"ngFor","ngForOf"],[1,"sintesi-text",3,"innerHTML"],[1,"tags","d-inline-block",3,"click"]],template:function(t,e){1&t&&(Ns(0,MO,1,0,"app-loader",0),Ns(1,NO,3,2,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob,lh,dh,yx],pipes:[fy],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .pdf-container[_ngcontent-%COMP%]   .sentence-html[_ngcontent-%COMP%]:before, .pdf-container[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.sentence-section[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:700;color:#213412;margin-bottom:30px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px;font-family:Source Sans Pro,sans-serif}.title-bar[_ngcontent-%COMP%]{margin-bottom:15px;border-bottom:1px solid #4e673b;padding-bottom:15px}.single-sentence-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#4e673b;text-transform:uppercase;font-size:32px;line-height:36px;font-weight:600}.pdf-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-family:Source Sans Pro,sans-serif}.pdf-container[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%]{font-size:12px;font-weight:600;text-transform:uppercase;display:flex;cursor:pointer}.pdf-container[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(pdf.f3bba44809423bdfb2fe.svg);margin-right:6px}.pdf-container[_ngcontent-%COMP%]   .sentence-pdf.loading[_ngcontent-%COMP%]:before{background-image:url(loader.42aaa181adb3af3bef08.gif)}.pdf-container[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%] + .sentence-html[_ngcontent-%COMP%], .pdf-container[_ngcontent-%COMP%]   .sentence-pdf[_ngcontent-%COMP%] + .sentence-pdf[_ngcontent-%COMP%]{margin-top:3px}.pdf-container[_ngcontent-%COMP%]   .sentence-html[_ngcontent-%COMP%]{font-size:12px;font-weight:600;text-transform:uppercase;display:flex;cursor:pointer}.pdf-container[_ngcontent-%COMP%]   .sentence-html[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(html.34fa3533cc43058e6557.svg);margin-right:6px}.pdf-container[_ngcontent-%COMP%]   .sentence-html[_ngcontent-%COMP%] + .sentence-html[_ngcontent-%COMP%], .pdf-container[_ngcontent-%COMP%]   .sentence-html[_ngcontent-%COMP%] + .sentence-pdf[_ngcontent-%COMP%]{margin-top:3px}.sentence-details[_ngcontent-%COMP%]{font-size:16px;margin-bottom:30px;color:#213412;font-family:Source Sans Pro,sans-serif}.sentence-details[_ngcontent-%COMP%]   .sentence-detail-title[_ngcontent-%COMP%]{display:inline}.sentence-details[_ngcontent-%COMP%]   .sentence-detail-name[_ngcontent-%COMP%]{font-weight:600;display:inline;padding-left:3px}.sintesi-container[_ngcontent-%COMP%] + .sintesi-container[_ngcontent-%COMP%]{margin-top:30px}.estratto-title[_ngcontent-%COMP%], .sintesi[_ngcontent-%COMP%]{color:#213412;text-transform:uppercase;font-weight:800;display:flex;align-items:baseline}.estratto-title[_ngcontent-%COMP%]:before, .sintesi[_ngcontent-%COMP%]:before{content:"";width:15px;height:15px;border-radius:50%;background-color:#e2574c;margin-right:8px}.tags[_ngcontent-%COMP%]{font-size:15px;font-weight:600;margin-right:10px;color:#4e673b;cursor:pointer;font-family:Source Sans Pro,sans-serif}.tags[_ngcontent-%COMP%] + .tags[_ngcontent-%COMP%]{padding-left:10px;border-left:1px solid #4e673b}.sintesi-text[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:22px;line-height:26px;font-weight:700;color:#213412;margin-top:15px;margin-bottom:15px;text-align:justify}.estratto-container[_ngcontent-%COMP%]{padding-bottom:30px;margin-bottom:30px;margin-top:30px;border-bottom:2px solid #d1d1d1}.estratto-container[_ngcontent-%COMP%]   .estratto-title[_ngcontent-%COMP%]{padding-left:23px;margin-bottom:4px}.estratto-container[_ngcontent-%COMP%]   .estratto-body[_ngcontent-%COMP%]{text-align:justify;padding-left:47px;font-family:Source Sans Pro,sans-serif}.estratto-container[_ngcontent-%COMP%]   .estratto-pad[_ngcontent-%COMP%]{padding-left:47px}.no-select[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none}']}),t})();function RO(t,e){1&t&&(js(0,"span"),Us(1,"br"),Bs())}let LO=(()=>{class t{constructor(){this.title="title",this.subtitle="",this.br=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-input-title"]],inputs:{title:"title",subtitle:"subtitle",br:"br"},decls:6,vars:5,consts:[[1,"title"],[1,"subtitle"],[4,"ngIf"]],template:function(t,e){1&t&&(js(0,"span",0),Aa(1),Tc(2,"uppercase"),Bs(),js(3,"span",1),Aa(4),Bs(),Ns(5,RO,2,0,"span",2)),2&t&&(Co(1),Fa(" ",Fc(2,3,e.title),"\n"),Co(3),Ta(e.subtitle),Co(1),$s("ngIf",e.br))},directives:[ph],pipes:[Th],styles:[".title[_ngcontent-%COMP%]{font-size:16px;text-align:left;color:#4e673b;padding-left:3px;font-weight:600}.subtitle[_ngcontent-%COMP%]{font-size:12px;padding-left:5px;color:#4e673b}"]}),t})();function zO(t,e){if(1&t){const t=Ws();js(0,"input",3),Qs("keyup.enter",(function(){return Xe(t),Xs().onSubmit()}))("ngModelChange",(function(e){return Xe(t),Xs().inputChange(e)})),Bs()}if(2&t){const t=Xs();na("id",t.title),$s("min",t.min)("type",t.type)("ngModel",t.inputValue)("ngClass",t.style)("placeholder",t.placeholder),As("disabled",!!t.disabled||null)}}function $O(t,e){if(1&t){const t=Ws();js(0,"textarea",4),Qs("ngModelChange",(function(e){return Xe(t),Xs().inputChange(e)})),Bs()}if(2&t){const t=Xs();na("id",t.title),$s("ngModel",t.inputValue)("ngClass",t.style)("placeholder",t.placeholder),As("disabled",!!t.disabled||null)}}let HO=(()=>{class t{constructor(){this.inputValue="",this.title="title",this.subtitle="",this.disabled=!1,this.min=0,this.style="form-control",this.placeholder="placeholder",this.type="text",this.changeValue=new Lc,this.enter=new Lc}inputChange(t){this.changeValue.emit(t)}onSubmit(){this.enter.emit(this.inputValue)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-input"]],inputs:{inputValue:"inputValue",title:"title",subtitle:"subtitle",disabled:"disabled",min:"min",style:"style",placeholder:"placeholder",type:"type"},outputs:{changeValue:"changeValue",enter:"enter"},decls:4,vars:4,consts:[[1,"label",3,"for"],[3,"min","type","ngModel","ngClass","placeholder","id","keyup.enter","ngModelChange",4,"ngIf"],["rows","4","cols","50","class","min-h",3,"ngModel","ngClass","placeholder","id","ngModelChange",4,"ngIf"],[3,"min","type","ngModel","ngClass","placeholder","id","keyup.enter","ngModelChange"],["rows","4","cols","50",1,"min-h",3,"ngModel","ngClass","placeholder","id","ngModelChange"]],template:function(t,e){1&t&&(js(0,"label",0),Aa(1),Bs(),Ns(2,zO,1,7,"input",1),Ns(3,$O,1,5,"textarea",2)),2&t&&(na("for",e.title),Co(1),Ta(e.title),Co(1),$s("ngIf","textarea"!==e.type),Co(1),$s("ngIf","textarea"==e.type))},directives:[ph,g_,w_,Sw,lh],encapsulation:2}),t})();function jO(t,e){if(1&t&&(js(0,"option"),Aa(1),Bs()),2&t){const t=e.$implicit;Co(1),Ta(t.name)}}function BO(t,e){if(1&t){const t=Ws();qs(0),js(1,"label",1),Aa(2),Bs(),js(3,"input",2),Qs("ngModelChange",(function(e){return Xe(t),Xs().selectedValue=e}))("ngModelChange",(function(e){return Xe(t),Xs().autocompleteChange(e)})),Bs(),js(4,"datalist",3),Ns(5,jO,2,1,"option",4),Bs(),Gs()}if(2&t){const t=Xs();Co(1),ia("for","exampleDataList",t.id,""),Co(1),Ta(t.title),Co(1),Va("",t.style," i-p text"),ia("id","exampleDataList",t.id,""),$s("ngModel",t.selectedValue),As("list","datalistOptions"+t.id),Co(1),ia("id","datalistOptions",t.id,""),Co(1),$s("ngForOf",t.values)}}function UO(t,e){if(1&t&&(js(0,"label",1),Aa(1),Bs()),2&t){const t=Xs(2);na("for",t.title),Co(1),Ta(t.title)}}function qO(t,e){if(1&t&&(js(0,"option",9),Aa(1),Bs()),2&t){const t=e.$implicit,n=Xs(3);$s("ngValue",t.id)("selected",t.id==n.selectedValue)("id",t.id),Co(1),Fa(" ",t.name," ")}}function GO(t,e){if(1&t){const t=Ws();js(0,"select",7),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).selectChange(e)}))("ngModelChange",(function(e){return Xe(t),Xs(2).selectedValue=e})),Ns(1,qO,2,4,"option",8),Bs()}if(2&t){const t=Xs(2);Va("form-control custom-select ",t.style,""),na("id",t.title),$s("ngModel",t.selectedValue),Co(1),$s("ngForOf",t.values)}}function WO(t,e){if(1&t&&(qs(0),Ns(1,UO,2,2,"label",5),Ns(2,GO,2,6,"select",6),Gs()),2&t){const t=Xs();Co(1),$s("ngIf",t.showTitle),Co(1),$s("ngIf",t.loadYears)}}let ZO=(()=>{class t{constructor(){this.title="title",this.resetValue=!1,this.values=[],this.isAutocomplete=!1,this.id=null,this.recalculateValue=!0,this.style="w-100",this.showTitle=!0,this.changeValue=new Lc,this.loadYears=!1}ngOnInit(){var t,e,n,i;this.id="all-"+this.title,this.values=null===(t=this.values)||void 0===t?void 0:t.map(t=>"string"==typeof t||"number"==typeof t?{id:t,name:t}:t),this.selectedValue=this.currentValue||this.defaultValue||(this.recalculateValue&&(null===(e=this.values)||void 0===e?void 0:e.length)>0?this.values[0].id:null),this.values=null===(n=this.values)||void 0===n?void 0:n.map(t=>"string"==typeof t?{id:t,name:t}:t),this.values=null===(i=this.values)||void 0===i?void 0:i.map(t=>t.text?Object.assign(Object.assign({},t),{name:t.text}):t),this.defaultValue&&"empty"!==this.defaultValue&&this.values&&this.values.unshift({id:this.id,name:this.defaultValue}),this.loadYears=!0}ngOnChanges(t){var e;t.resetValue&&!t.resetValue.firstChange&&t.resetValue.currentValue?this.selectedValue=this.currentValue||this.defaultValue||"":this.values&&(this.values=this.values.map(t=>"string"==typeof t||"number"==typeof t?{id:t,name:t}:t),this.selectedValue=this.currentValue||this.defaultValue||(this.recalculateValue&&(null===(e=this.values)||void 0===e?void 0:e.length)>0?this.values[0].id:null),this.values=this.values.map(t=>"string"==typeof t?{id:t,name:t}:t),this.values=this.values.map(t=>t.text?Object.assign(Object.assign({},t),{name:t.text}):t),this.defaultValue&&this.values&&!this.values.map(t=>t.id).includes("all-"+this.title)&&!this.values.map(t=>t.name).includes(this.title)&&this.values.unshift({id:this.id,name:this.defaultValue})),setTimeout(()=>{this.currentValue&&document.getElementById(this.currentValue)&&(document.getElementById(this.currentValue).selected=!0),this.defaultValue&&"empty"!==this.defaultValue&&document.getElementById(this.id)&&(document.getElementById(this.id).selected=!0),this.loadYears=!0},200)}selectChange(t){this.changeValue.emit(String(t).includes("all")?null:t)}autocompleteChange(t){var e;this.changeValue.emit(null===(e=this.values.find(({name:e})=>e===t))||void 0===e?void 0:e.id)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-select"]],inputs:{title:"title",resetValue:"resetValue",defaultValue:"defaultValue",values:"values",isAutocomplete:"isAutocomplete",id:"id",recalculateValue:"recalculateValue",currentValue:"currentValue",style:"style",showTitle:"showTitle"},outputs:{changeValue:"changeValue"},features:[qa],decls:2,vars:2,consts:[[4,"ngIf"],[1,"label",3,"for"],["placeholder","Cerca...",3,"id","ngModel","ngModelChange"],[3,"id"],[4,"ngFor","ngForOf"],["class","label",3,"for",4,"ngIf"],[3,"class","id","ngModel","ngModelChange",4,"ngIf"],[3,"id","ngModel","ngModelChange"],[3,"ngValue","selected","id",4,"ngFor","ngForOf"],[3,"ngValue","selected","id"]],template:function(t,e){1&t&&(Ns(0,BO,6,10,"ng-container",0),Ns(1,WO,3,2,"ng-container",0)),2&t&&($s("ngIf",e.isAutocomplete),Co(1),$s("ngIf",!e.isAutocomplete))},directives:[ph,g_,w_,Sw,dh,W_,J_,G_],styles:[".i-p[_ngcontent-%COMP%]{padding:10px}.w-100[_ngcontent-%COMP%]{font-weight:200;font-size:13px}.w-100[_ngcontent-%COMP%], .w-102[_ngcontent-%COMP%]{font-style:normal;background-color:#fff}.w-102[_ngcontent-%COMP%]{font-weight:400;font-size:15px}*[_ngcontent-%COMP%]{box-sizing:border-box}body[_ngcontent-%COMP%]{font:16px Arial}.autocomplete[_ngcontent-%COMP%]{position:relative;display:inline-block}input[_ngcontent-%COMP%]{border:1px solid transparent;padding:10px;font-size:16px}input[_ngcontent-%COMP%], input[type=text][_ngcontent-%COMP%]{background-color:#f1f1f1}input[type=text][_ngcontent-%COMP%]{width:100%}input[type=submit][_ngcontent-%COMP%]{background-color:#1e90ff;color:#fff}.autocomplete-items[_ngcontent-%COMP%]{position:absolute;border:1px solid #d4d4d4;border-top:none;border-bottom:none;z-index:99;top:100%;left:0;right:0}.autocomplete-items[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{padding:10px;cursor:pointer;background-color:#fff;border-bottom:1px solid #d4d4d4}.autocomplete-items[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:hover{background-color:#e9e9e9}.autocomplete-active[_ngcontent-%COMP%]{background-color:#1e90ff!important;color:#fff}"]}),t})();function YO(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",2),js(2,"div",3),js(3,"div",4),Aa(4,"ACCEDI SE SEI GIA' REGISTRATO"),Bs(),Bs(),Bs(),js(5,"div",30),js(6,"div",3),js(7,"app-input",31),Qs("changeValue",(function(e){return Xe(t),Xs(2).setLogin("email",e)})),Bs(),Bs(),js(8,"div",3),js(9,"app-input",32),Qs("changeValue",(function(e){return Xe(t),Xs(2).setLogin("password",e)})),Bs(),Bs(),js(10,"div",33),js(11,"button",34),Qs("click",(function(){return Xe(t),Xs(2).login()})),Aa(12),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(7),$s("inputValue",t.credentials.email),Co(2),$s("inputValue",t.credentials.password),Co(3),Ta(t.loading?"Caricamento...":"Login")}}function QO(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",2),js(2,"div",3),js(3,"div",4),Aa(4,"Conferma la tua identit\xe0"),Bs(),Bs(),Bs(),js(5,"div",2),js(6,"div",3),js(7,"p",35),Aa(8,"Per ragioni di sicurezza, l'accesso al sito \xe8 subordinato all'inserimento di un codice PIN di 6 cifre che abbiamo appena inviato al numero di cellulare associato a questa utenza, "),Us(9,"span",36),Bs(),js(10,"div",37),js(11,"div",3),js(12,"div",38),js(13,"p"),Aa(14,"Inserisci qui il codice a 6 cifre che hai ricevuto per SMS:"),Bs(),js(15,"label",39),Aa(16,"Codice segreto"),Bs(),js(17,"input",40),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).sixDigit=e})),Bs(),Bs(),Bs(),js(18,"div",41),js(19,"div",38),js(20,"button",42),Qs("click",(function(){return Xe(t),Xs(2).doubleAuth()})),Aa(21),Bs(),js(22,"a",43),Qs("click",(function(){return Xe(t),Xs(2).resendSmsCode()})),Aa(23),Bs(),Bs(),Bs(),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(9),$s("innerText",t.maskedPhoneNumber),Co(8),$s("ngModel",t.sixDigit),Co(3),$s("disabled",6!==(null==t.sixDigit?null:t.sixDigit.toString().length)),Co(1),Ta(t.loading?"loading...":"entra"),Co(2),Fa(" ",t.resending?"inviando...":"invia nuovamente codice via sms"," ")}}function JO(t,e){if(1&t&&(js(0,"div",3),js(1,"p",35),Aa(2,"Per ragioni di sicurezza, l'accesso al sito \xe8 subordinato all'inserimento di un codice PIN che appare in una app da scaricare sul telefono dell'utente autorizzato a consultare il sito in base al contratto di abbonamento. Segui le istruzioni qui di seguito per poter accedere."),Bs(),js(3,"ol",45),js(4,"li"),Aa(5," Installa un'app compatibile dalla lista di seguito: "),Us(6,"br"),js(7,"div",46),js(8,"table",47),js(9,"tr"),js(10,"td"),Aa(11,"Android"),Bs(),js(12,"td"),js(13,"a",48),Aa(14,"Google Authenticator"),Bs(),Aa(15,", "),js(16,"a",49),Aa(17,"Authy"),Bs(),Aa(18,", "),js(19,"a",50),Aa(20,"Duo Mobile"),Bs(),Aa(21,", "),js(22,"a",51),Aa(23,"LastPass Authenticator"),Bs(),Aa(24,", "),js(25,"a",52),Aa(26,"Microsoft Authenticator"),Bs(),Aa(27,", "),js(28,"a",53),Aa(29,"Symantec VIP"),Bs(),Bs(),Bs(),js(30,"tr"),js(31,"td"),Aa(32,"iPhone"),Bs(),js(33,"td"),js(34,"a",54),Aa(35,"Google Authenticator"),Bs(),Aa(36,", "),js(37,"a",55),Aa(38,"Authy"),Bs(),Aa(39,", "),js(40,"a",56),Aa(41,"Duo Mobile"),Bs(),Aa(42,", "),js(43,"a",57),Aa(44,"LastPass Authenticator"),Bs(),Aa(45,", "),js(46,"a",58),Aa(47,"Microsoft Authenticator"),Bs(),Aa(48,", "),js(49,"a",53),Aa(50,"Symantec VIP"),Bs(),Bs(),Bs(),Bs(),Bs(),Bs(),js(51,"li"),Aa(52,"Usa l'app per inquadrare il seguente codice QR e aggiungere Demanio Online alla lista:"),Us(53,"br"),Us(54,"img",59),Bs(),js(55,"li"),Aa(56,"Inserisci qui il codice a 6 cifre riportato dall'app per confermare l'avvenuta aggiunta:"),Bs(),Bs(),Bs()),2&t){const t=Xs(3);Co(54),na("src",t.qrCode,to)}}function KO(t,e){1&t&&(js(0,"p"),Aa(1,"Inserisci qui il codice a 6 cifre riportato dall'app di autenticazione:"),Bs())}function XO(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",2),js(2,"div",3),js(3,"div",4),Aa(4,"Conferma la tua identit\xe0"),Bs(),Bs(),Bs(),js(5,"div",2),Ns(6,JO,57,1,"div",44),Bs(),js(7,"div",37),js(8,"div",3),js(9,"div",38),Ns(10,KO,2,0,"p",0),js(11,"label",39),Aa(12,"Codice segreto"),Bs(),js(13,"input",40),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).sixDigit=e})),Bs(),Bs(),Bs(),js(14,"div",41),js(15,"div",38),js(16,"button",42),Qs("click",(function(){return Xe(t),Xs(2).doubleAuth()})),Aa(17),Bs(),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(6),$s("ngIf",t.qrCode),Co(4),$s("ngIf",!t.qrCode),Co(3),$s("ngModel",t.sixDigit),Co(3),$s("disabled",6!==(null==t.sixDigit?null:t.sixDigit.toString().length)),Co(1),Ta(t.loading?"loading...":"entra")}}function tM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",60),js(2,"div",3),js(3,"button",34),Qs("click",(function(){return Xe(t),Xs(2).goToLogin()})),Aa(4,"Torna indietro"),Bs(),Bs(),Bs(),Gs()}}function eM(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"div",3),js(2,"app-input",61),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("nome",e)})),Bs(),Bs(),js(3,"div",3),js(4,"app-input",62),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("cognome",e)})),Bs(),Bs(),js(5,"div",63),js(6,"app-input",64),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("codice_fiscale",e)})),Bs(),Bs(),Bs()}}function nM(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"div",3),js(2,"div",2),js(3,"div",3),js(4,"app-input",61),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("nome",e)})),Bs(),Bs(),js(5,"div",3),js(6,"app-input",62),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("cognome",e)})),Bs(),Bs(),Bs(),js(7,"div",2),js(8,"div",65),js(9,"app-input",66),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("piva_suff",e)})),Bs(),Bs(),js(10,"div",3),js(11,"app-input",67),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("piva",e)})),Bs(),Bs(),js(12,"div",3),js(13,"app-input",68),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("pec",e)})),Bs(),Bs(),Bs(),Bs(),Bs()}}function iM(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"div",3),js(2,"div",2),js(3,"div",3),js(4,"app-input",69),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("ragione_sociale",e)})),Bs(),Bs(),js(5,"div",3),js(6,"app-select",70),Qs("changeValue",(function(e){Xe(t);const n=Xs(2);return n.setFormField("tipo_societa",n.companies[e])})),Bs(),Bs(),js(7,"div",3),js(8,"app-input",71),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("nome",e)})),Bs(),Bs(),js(9,"div",3),js(10,"app-input",72),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("cognome",e)})),Bs(),Bs(),Bs(),js(11,"div",2),js(12,"div",65),js(13,"app-input",66),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("piva_suff",e)})),Bs(),Bs(),js(14,"div",3),js(15,"app-input",67),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("piva",e)})),Bs(),Bs(),js(16,"div",3),js(17,"app-input",73),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("codice_ufficio",e)})),Bs(),Bs(),js(18,"div",3),js(19,"app-input",68),Qs("changeValue",(function(e){return Xe(t),Xs(2).setFormField("pec",e)})),Bs(),Bs(),Bs(),js(20,"div",2),js(21,"div",3),js(22,"div",22),Qs("click",(function(){Xe(t);const e=Xs(2);return e.esenzioneIvaCheckbox=!e.esenzioneIvaCheckbox,e.setFormField("esenzione_iva",e.esenzioneIvaCheckbox)})),js(23,"input",74),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).esenzioneIvaCheckbox=e})),Bs(),js(24,"span",24),Us(25,"app-input-title",75),Bs(),Bs(),Bs(),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(6),$s("values",t.typologies),Co(17),$s("ngModel",t.esenzioneIvaCheckbox),Co(2),$s("br",!1)}}function oM(t,e){if(1&t){const t=Ws();js(0,"div",83),js(1,"input",84),Qs("change",(function(n){Xe(t);const i=e.$implicit;return Xs(3).getCheck(i.aid,n.target.checked)})),Bs(),js(2,"label",85),Aa(3),Bs(),Bs()}if(2&t){const t=e.$implicit,n=e.index;Co(1),ia("id","nl-",t.aid,""),na("value",t.aid),$s("formControlName",n),Co(1),ia("for","nl-",t.aid,""),Co(1),Ta(t.caption)}}function rM(t,e){if(1&t&&(qs(0,76),js(1,"div",77),Ns(2,oM,4,5,"div",78),Bs(),Us(3,"div",79),Tc(4,"safe"),js(5,"div",38),js(6,"div",80),Us(7,"input",81),js(8,"label",82),Aa(9,"Accetto"),Bs(),Bs(),Bs(),Gs()),2&t){const t=Xs(2);$s("formGroup",t.nlform),Co(2),$s("ngForOf",t.newsletterValues),Co(1),$s("innerHTML",Nc(4,3,t.privacyNewsletter,"html"),Xi)}}function sM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",1),Ns(2,YO,13,3,"ng-container",0),Ns(3,QO,24,5,"ng-container",0),Ns(4,XO,18,5,"ng-container",0),Ns(5,tM,5,0,"ng-container",0),js(6,"div",2),js(7,"div",3),js(8,"div",4),Aa(9,"REGISTRATI SE SEI UN NUOVO UTENTE"),Bs(),js(10,"p"),Aa(11,"Registrandoti puoi accedere per 7 giorni in modalit\xe0 DEMO ai contenuti della home page"),Bs(),Bs(),Bs(),js(12,"div",2),js(13,"div",3),js(14,"input",5),Qs("ngModelChange",(function(e){return Xe(t),Xs().person=e})),Bs(),js(15,"span",6),js(16,"app-input-title",7),Qs("click",(function(){return Xe(t),Xs().setPerson("single")})),Bs(),Bs(),js(17,"input",8),Qs("ngModelChange",(function(e){return Xe(t),Xs().person=e})),Bs(),js(18,"span",6),js(19,"app-input-title",9),Qs("click",(function(){return Xe(t),Xs().setPerson("freelance")})),Bs(),Bs(),js(20,"input",10),Qs("ngModelChange",(function(e){return Xe(t),Xs().person=e})),Bs(),js(21,"span",6),js(22,"app-input-title",11),Qs("click",(function(){return Xe(t),Xs().setPerson("society")})),Bs(),Bs(),Bs(),Bs(),Ns(23,eM,7,0,"div",12),Ns(24,nM,14,0,"div",12),Ns(25,iM,26,3,"div",12),js(26,"div",2),js(27,"div",3),js(28,"app-input",13),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("email",e)})),Bs(),Bs(),js(29,"div",3),js(30,"app-input",14),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("password",e)})),Bs(),Bs(),Bs(),js(31,"div",2),js(32,"div",3),js(33,"app-select",15),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("provincia",e)})),Bs(),Bs(),js(34,"div",3),js(35,"app-input",16),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("citta",e)})),Bs(),Bs(),js(36,"div",3),js(37,"app-input",17),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("indirizzo",e)})),Bs(),Bs(),js(38,"div",18),js(39,"app-input",19),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("indirizzo_num",e)})),Bs(),Bs(),js(40,"div",18),js(41,"app-input",20),Qs("changeValue",(function(e){return Xe(t),Xs().setFormField("cap",e)})),Bs(),Bs(),js(42,"div",21),js(43,"div",22),Qs("click",(function(){Xe(t);const e=Xs();return e.privacyCheckbox=!e.privacyCheckbox,e.setFormField("privacy",e.privacyCheckbox)})),js(44,"input",23),Qs("ngModelChange",(function(e){return Xe(t),Xs().privacyCheckbox=e})),Bs(),js(45,"span",24),Us(46,"app-input-title",25),Bs(),Bs(),Us(47,"div",26),Bs(),Bs(),js(48,"div",27),js(49,"div",3),js(50,"div",4),Aa(51,"Newsletter"),Bs(),js(52,"p"),Aa(53,"Iscriviti alla newsletter! Ti informeremo se dovessero uscire nostre pubblicazioni o iniziative nelle materie di tuo interesse. Potrai cancellarti in ogni momento."),Bs(),Ns(54,rM,10,6,"ng-container",28),Bs(),Bs(),js(55,"div",2),js(56,"div",3),js(57,"button",29),Qs("click",(function(){return Xe(t),Xs().signin()})),Aa(58),Bs(),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs();Co(2),$s("ngIf",!t.isDoubleAuth),Co(1),$s("ngIf",t.isDoubleAuth&&t.smsAuth),Co(1),$s("ngIf",t.isDoubleAuth&&!t.smsAuth),Co(1),$s("ngIf",t.isDoubleAuth),Co(9),$s("ngModel",t.person),Co(2),$s("br",!1),Co(1),$s("ngModel",t.person),Co(2),$s("br",!1),Co(1),$s("ngModel",t.person),Co(2),$s("br",!1),Co(1),$s("ngIf","single"===t.person),Co(1),$s("ngIf","freelance"===t.person),Co(1),$s("ngIf","society"===t.person),Co(8),$s("values",t.provinces),Co(11),$s("ngModel",t.privacyCheckbox),Co(2),$s("br",!1),Co(1),$s("innerHtml",t.privacy,Xi),Co(7),$s("ngIf",t.nlform),Co(3),$s("disabled",!t.nlform.valid),Co(1),Fa(" ",t.loadingSignin?"Caricamento...":"REGISTRATI"," ")}}let aM=(()=>{class t{constructor(t,e,n){this.dataService=t,this.fb=e,this.router=n,this.stringify=JSON.stringify,this.type="preOrder",this.showPayment=!0,this.updatePrice=new Lc,this.afterPay=new Lc,this.privacyNewsletter="INFORMATIVA n.1 \u2013 Conferimento dei dati per la registrazione   Informativa ex art. 13 D.lgs. 196/2003  Gentile Signore/a, La informiamo che il D.lgs. n. 196 del 30 giugno 2003 (\"Codice in materia di protezione dei dati personali\") prevede la tutela della riservatezza rispetto al trattamento dei dati personali.  Ai sensi dell\u2019articolo 13 del D.lgs. n.196/2003 Le forniamo le seguenti informazioni:  a) I dati personali da inserire obbligatoriamente nel modulo di registrazione sono quelli necessari per legge ai fini fiscali: viene infatti sempre emessa fattura al termine di ogni acquisto. Il nome e cognome  serve a identificare il soggetto che, in base alla nostra politica di copyright, pu\xf2 utilizzare il prodotto. L\u2019ndirizzo email (oltrech\xe9 della password) \xe8 tecnicamente necessario nel nostro sistema per effettuare il login, e accedere all\u2019area riservata dove effettuare l\u2019acquisto e dove vengono messi a disposizione per il download i prodotti acquistati. Non sono previsti altri utilizzi dei precitati dati.  Il trattamento dei dati personali avverr\xe0 mediante strumenti elettronici esclusivamente ad opera di personale appositamente incaricato da Exeo srl. I dati saranno conservati in un server di propriet\xe0 di Exeo srl, a cui pu\xf2 accedere esclusivamente personale autorizzato a scopi manutentivi.                                                   b) Il conferimento del nome e cognome e dell\u2019indirizzo email \xe8 obbligatorio e il rifiuto di fornire i dati ha come conseguenza l\u2019impossibilit\xe0 di effettuare la registrazione e procedere all\u2019acquisto.  c) La eventuale cancellazione successiva dell\u2019utenza al sito www.exeo.it o dell\u2019indirizzo email dal nostro database comporta l\u2019impossibilit\xe0 \u2013 irreversibile - di accedere all\u2019area riservata del cliente ove sono conservati i prodotti acquistati;  d) I dati non saranno comunicati ad altri soggetti, n\xe9 saranno oggetto di diffusione;  e) In ogni momento, e senza particolari forme  Lei potr\xe0 esercitare i Suoi diritti nei confronti del titolare del trattamento, ai sensi dell\u2019art.7 del D.lgs.196/2003, che per Sua comodit\xe0 riproduciamo integralmente: \xabArt. 7  (Diritto di accesso ai dati personali ed altri diritti) 1.  L'interessato ha diritto di ottenere la conferma dell'esistenza o meno di dati personali che lo riguardano, anche se non ancora registrati, e la loro comunicazione in forma intelligibile. 2.  L'interessato ha diritto di ottenere l'indicazione: a)  dell'origine dei dati personali; b)  delle finalit\xe0 e modalit\xe0 del trattamento; c)  della logica applicata in caso di trattamento effettuato con l'ausilio di strumenti elettronici; d)  degli estremi identificativi del titolare, dei responsabili e del rappresentante designato ai sensi dell'articolo 5, comma 2; e)  dei soggetti o delle categorie di soggetti ai quali i dati personali possono essere comunicati o che possono venirne a conoscenza in qualit\xe0 di rappresentante designato nel territorio dello Stato, di responsabili o incaricati. 3.  L'interessato ha diritto di ottenere: a)  l'aggiornamento, la rettificazione ovvero, quando vi ha interesse, l'integrazione dei dati; b)  la cancellazione, la trasformazione in forma anonima o il blocco dei dati trattati in violazione di legge, compresi quelli di cui non \xe8 necessaria la conservazione in relazione agli scopi per i quali i dati sono stati raccolti o successivamente trattati; c)  l'attestazione che le operazioni di cui alle lettere a) e b) sono state portate a conoscenza, anche per quanto riguarda il loro contenuto, di coloro ai quali i dati sono stati comunicati o diffusi, eccettuato il caso in cui tale adempimento si rivela impossibile o comporta un impiego di mezzi manifestamente sproporzionato rispetto al diritto tutelato. 4.  L'interessato ha diritto di opporsi, in tutto o in parte: a)  per motivi legittimi al trattamento dei dati personali che lo riguardano, ancorch\xe9 pertinenti allo scopo della raccolta; b)  al trattamento di dati personali che lo riguardano a fini di invio di materiale pubblicitario o di vendita diretta o per il compimento di ricerche di mercato o di comunicazione commerciale.\xbb  f) Il titolare del trattamento \xe8: Exeo srl, sede legale in Piazzetta Modin 12  35129 Padova, sede operativa in via Buzzacarina 20 35020 Brugine (PD) - P.Iva: 03790770287 \u2013 e-mail: privacy@exeo.it; il responsabile \xe8 il legale rappresentante di Exeo srl, Dr. Paolo Loro  Oltre a quanto previsto dall\u2019articolo 13 sopra citato, per massima trasparenza e completezza La informiamo altres\xec  di quanto segue.  Oltre ai dati da Lei espressamente conferiti, il semplice contatto informatico del Suo browser con il nostro sito (cos\xec come avviene con tutti i siti) determina automaticamente la raccolta di alcuni dati tecnici, come l\u2019indirizzo IP, il tipo di sistema operativo, il tipo di browser, la risoluzione  dello schermo. Nessuno di questi dati, raccolti nei logs del server, viene  da noi utilizzato con finalit\xe0 di profilazione a scopo commerciale, ma solamente con finalit\xe0 statistiche e di eventuale sicurezza (ad esempio bloccando determinati IP dai quali dovessimo subire attacchi informatici).   Infine  il nostro sito, come la maggior parte dei siti internet, trasmette al Suo browser un cookie, che (nel nostro caso) ha esclusivamente la finalit\xe0 di migliorare la fruizione del sito (ad esempio permettendo la memorizzazione della password)  e di rendere tecnicamente possibili meccanismi come il carrello dell\u2019e-commerce. Tale cookie non ha alcun\u2019altra funzione (ad esempio di profilatura a scopi commerciali), e pu\xf2 in ogni caso essere  da Lei bloccato o cancellato impostando opportunamente il Suo browser.",this.people={single:0,freelance:1,society:2},this.person="single",this.paymentMethod="Paypal",this.credentials={email:"",password:""},this.isLoggedIn=!1,this.loading=!1,this.loadingSignin=!1,this.companies={"Ditta individuale":"D.i.","Societ\xe0 semplice":"S.s.","Societ\xe0 in accomandita semplice":"S.a.s.","Societ\xe0 in nome collettivo":"S.n.c.","Societ\xe0 a responsabilit\xe0 limitata":"S.r.l.","Societ\xe0 per azioni":"S.p.a.","Societ\xe0 in accomandita per azioni":"S.a.p.a.","Altre forme particolari(societ\xe0 di professionisti: cooperative: consorzi:ecc.)":"Altro"},this.provinces=[],this.typologies=Object.keys(this.companies),this.formFields={codice_tipo_cliente:0,email:"",codice_fiscale:"",password:"",nome:"",cognome:"",indirizzo:"",indirizzo_num:"",citta:"",provincia:"",cap:"",esenzione_iva:!1,piva_suff:"IT",piva:"",codice_ufficio:"",pec:"",ragione_sociale:"",tipo_societa:"",privacy:!1,newsletter:!1,newsletter_audiences:[]},this.qrCode=null,this.maskedPhoneNumber="",this.resending=!1}ngOnInit(){return jv(this,void 0,void 0,(function*(){const{privacy:t,provinces:e,newsletter_audiences:n}=yield this.dataService.signinInfo();this.isLoggedIn=this.dataService.isLoggedIn(),this.isLoggedIn&&this.router.navigate(["/"]),this.privacy=t,this.provinces=e,this.newsletterValues=n.filter(t=>"hidden"!==t.visibility),this.formFields.provincia=""+e[0].id,this.nlform=this.fb.group({newsletter:[""],newsletter_audiences:this.fb.array(this.newsletterValues.map(t=>!1))});const i=this.nlform.controls.newsletter_audiences;setTimeout(()=>{i.clear()},500)}))}ngOnChanges(){this.isLoggedIn=this.dataService.isLoggedIn()}setPerson(t){this.person=t}setLogin(t,e){this.credentials[t]=e}goToLogin(){this.isDoubleAuth=!1}login(){return jv(this,void 0,void 0,(function*(){this.loading=!0,yield this.dataService.preLogin(this.credentials.email,this.credentials.password).then(t=>{t.token?location.reload():(this.idLogin=t.id,this.secret=t.secret,this.qrCode=t.qr,this.smsAuth=t.sms,this.maskedPhoneNumber=t.number+"",this.isDoubleAuth=!0,this.loading=!1)}).catch(t=>{alert(t.error?t.error:t),this.loading=!1})}))}resendSmsCode(){return jv(this,void 0,void 0,(function*(){this.resending||(this.loading=!0,this.resending=!0,this.dataService.preLoginResendSms(this.idLogin,this.secret).then(t=>{this.idLogin=t.id,this.secret=t.secret,this.qrCode=t.qr,this.smsAuth=t.sms,this.maskedPhoneNumber=t.number+"",this.isDoubleAuth=!0,this.loading=!1,this.resending=!1}).catch(({error:t})=>{alert(t.error?t.error:t),this.loading=!1,this.resending=!1}))}))}doubleAuth(){return jv(this,void 0,void 0,(function*(){this.loading=!0;try{yield this.dataService.login(this.idLogin,this.secret,this.sixDigit,this.smsAuth),this.isLoggedIn=!0,this.updatePrice.emit(this.showSignin),this.loading=!1,location.reload()}catch({error:t}){alert(t.error?t.error:t),this.loading=!1}}))}setFormField(t,e){this.formFields[t]=e}getCheck(t,e){const n=this.nlform.controls.newsletter_audiences;if(e)n.push(new mw(t)),this.nlform.get("newsletter").clearValidators(),this.nlform.get("newsletter").setValidators([I_.required]),this.nlform.get("newsletter").updateValueAndValidity();else{const e=n.controls.findIndex(e=>e.value===t);n.removeAt(e),0===n.length&&(this.nlform.get("newsletter").setErrors(null),this.nlform.get("newsletter").clearValidators(),this.nlform.get("newsletter").updateValueAndValidity())}}signin(){return jv(this,void 0,void 0,(function*(){try{this.loadingSignin=!0,this.formFields.codice_tipo_cliente=this.people[this.person],this.formFields.newsletter=this.nlform.get("newsletter").value,this.formFields.newsletter_audiences=this.nlform.get("newsletter_audiences").value,yield this.dataService.signin(this.formFields),this.isLoggedIn=!0,window.location.href="/"}catch(t){alert(t.error.error?t.error.error:t)}finally{this.loadingSignin=!1}}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(iC),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-sign-in"]],inputs:{price:"price",credits:"credits",city:"city",year:"year",type:"type",showSignin:"showSignin",showPayment:"showPayment"},outputs:{updatePrice:"updatePrice",afterPay:"afterPay"},features:[qa],decls:1,vars:1,consts:[[4,"ngIf"],[1,"page"],[1,"row"],[1,"col"],[1,"sub-title"],["type","radio","name","editList","value","single",3,"ngModel","ngModelChange"],[1,"pr-2"],["title","persona fisica",1,"pointer",3,"br","click"],["type","radio","name","editList","value","freelance",3,"ngModel","ngModelChange"],["title","libero professionista",1,"pointer",3,"br","click"],["type","radio","name","editList","value","society",3,"ngModel","ngModelChange"],["title","societ\xe0",1,"pointer",3,"br","click"],["class","row",4,"ngIf"],["placeholder","","title","Email",3,"changeValue"],["placeholder","","type","password","title","Password","subtitle","(Inserire almeno 8 caratteri, un carattere alfanumerico, uno numerico ed un carattere speciale (_ @ $ ! % * ?))",3,"changeValue"],["placeholder","","title","provincia","defaultValue","empty",3,"values","changeValue"],["placeholder","","title","Citt\xe0",3,"changeValue"],["placeholder","","title","Via / Piazza",3,"changeValue"],[1,"col-md-2"],["placeholder","","title","n. Civico",3,"changeValue"],["placeholder","","title","CAP",3,"changeValue"],[1,"col-12","mt-2"],[3,"click"],["type","checkbox","name","privacy",3,"ngModel","ngModelChange"],[1,"pl-1"],["title","informativa privacy",3,"br"],[1,"privacy",3,"innerHtml"],[1,"row","mt-5","mb-3"],[3,"formGroup",4,"ngIf"],["type","text",1,"black-btn",3,"disabled","click"],[1,"row","mb-5"],["placeholder","","title","Email",3,"inputValue","changeValue"],["placeholder","","type","password","title","Password",3,"inputValue","changeValue"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn",3,"click"],[1,"rec-text"],[3,"innerText"],[1,"row","mb-2"],[1,"form-group"],["for","sixDigit",1,"label"],["id","sixDigit","name","sixDigit","type","number","minlength","6","maxlength","6","placeholder","Codice segreto",1,"form-control",3,"ngModel","ngModelChange"],[1,"col","d-flex","align-items-end"],[1,"black-btn",3,"disabled","click"],[1,"ms-2","text-primary",2,"cursor","pointer",3,"click"],["class","col",4,"ngIf"],[1,"app-list"],[1,"table-responsive"],[1,"table","table-striped","mt-3"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.authy.authy","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.duosecurity.duomobile","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.lastpass.authenticator","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.azure.authenticator","target","_blank"],["href","https://m.vip.symantec.com/home.v#searchwebsite","target","_blank"],["href","https://apps.apple.com/us/app/google-authenticator/id388497605","target","_blank"],["href","https://apps.apple.com/us/app/authy/id494168017","target","_blank"],["href","https://apps.apple.com/us/app/duo-mobile/id422663827","target","_blank"],["href","https://apps.apple.com/us/app/lastpass-authenticator/id1079110004","target","_blank"],["href","https://apps.apple.com/us/app/microsoft-authenticator/id983156458","target","_blank"],["alt","QR Code",1,"my-3",3,"src"],[1,"row","mb-3"],["placeholder","","title","Nome",3,"changeValue"],["placeholder","","title","Cognome",3,"changeValue"],[1,"col-md-3"],["placeholder","","title","Cod.Fiscale",3,"changeValue"],[1,"col-md-1"],["placeholder","IT","title","Pre. PIVA",3,"changeValue"],["placeholder","","title","Partita Iva",3,"changeValue"],["placeholder","","title","PEC",3,"changeValue"],["placeholder","","title","Ragione sociale",3,"changeValue"],["title","Tipologia",3,"values","changeValue"],["placeholder","","title","Nome utente",3,"changeValue"],["placeholder","","title","Cognome utente",3,"changeValue"],["placeholder","Codice destinatario FE","title","Codice destinatario FE",3,"changeValue"],["type","checkbox","name","esenzione_iva",3,"ngModel","ngModelChange"],["title","Split payment",3,"br"],[3,"formGroup"],[1,"newsletter-tags","form-group"],["class","form-check form-check-inline","formArrayName","newsletter_audiences",4,"ngFor","ngForOf"],["disabled","",1,"newsletter-privacy",3,"innerHTML"],[1,"form-check","form-check-inline","mt-2","mb-3"],["type","checkbox","name","newsletter","id","newsletter","formControlName","newsletter",1,"form-check-input"],["for","newsletter",1,"form-check-label","pl-2"],["formArrayName","newsletter_audiences",1,"form-check","form-check-inline"],["type","checkbox","name","newsletter_audiences",1,"form-check-input",3,"id","value","formControlName","change"],[1,"form-check-label",3,"for"]],template:function(t,e){1&t&&Ns(0,sM,59,20,"ng-container",0),2&t&&$s("ngIf",!e.isLoggedIn)},directives:[ph,R_,g_,w_,Sw,LO,HO,ZO,d_,F_,Jw,Xw,C_,Nw,dh,jw,zw],pipes:[rb],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover}.bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%]{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.sub-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:20px;font-weight:700;color:#213412;margin-top:5px;text-align:left;line-height:25px;text-transform:uppercase}.newsletter-privacy[_ngcontent-%COMP%], .privacy[_ngcontent-%COMP%]{max-height:100px;border:1px solid #ddd;padding:5px;overflow:scroll;font-size:10px;text-align:justify}.form-check[_ngcontent-%COMP%], .form-group[_ngcontent-%COMP%], .newsletter-tags[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{font-size:14px}.newsletter-tags[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:600}.newsletter-tags[_ngcontent-%COMP%]   .form-check-inline[_ngcontent-%COMP%]{margin-bottom:5px}.app-list[_ngcontent-%COMP%]{padding-left:14px;font-size:14px}"]}),t})(),lM=(()=>{class t{constructor(t){this.router=t}onSignin(t){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-signin"]],decls:2,vars:1,consts:[[1,"size"],[3,"showPayment","updatePrice"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"app-sign-in",1),Qs("updatePrice",(function(t){return e.onSignin(t)})),Bs(),Bs()),2&t&&(Co(1),$s("showPayment",!1))},directives:[aM],styles:[".size[_ngcontent-%COMP%]{padding-bottom:50px;padding-top:30px}"]}),t})();const cM=function(t,e){return[t,e]};let uM=(()=>{class t{constructor(t){this.dataService=t}ngOnInit(){}addBookmark(){this.loading=!0,this.dataService.addBookmark({type:"add",item:"doctrine"===this.itemType?"analysis":"questions"===this.itemType?"question":this.itemType,id:+this.elementId}).then(()=>{this.loading=!1,this.added=!0}).catch(t=>alert(t.error.error)).finally(()=>this.loading=!1)}removeBookmark(){this.dataService.removeBookmark({type:"remove",item:"doctrine"===this.itemType?"analysis":this.itemType,id:+this.elementId})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-add-bookmark"]],inputs:{bookmarked:"bookmarked",elementId:"elementId",itemType:"itemType"},decls:1,vars:4,consts:[[1,"add-bookmark",3,"ngClass","click"]],template:function(t,e){1&t&&(js(0,"div",0),Qs("click",(function(){return e.addBookmark()})),Bs()),2&t&&$s("ngClass",Sc(1,cM,e.loading?"loading":"",e.added?"d-none":""))},directives:[lh],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover}.add-bookmark[_ngcontent-%COMP%], .bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat}.add-bookmark[_ngcontent-%COMP%], .bg-contain[_ngcontent-%COMP%]{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.add-bookmark[_ngcontent-%COMP%]{width:20px;height:20px;margin-left:20px;cursor:pointer;background-image:url(preferiti.e72f6827552d768bf363.png)}.add-bookmark.loading[_ngcontent-%COMP%]{background-image:url(loader.42aaa181adb3af3bef08.gif)}"]}),t})();function dM(t,e){1&t&&(js(0,"div",2),Us(1,"img",3),Bs())}function hM(t,e){if(1&t){const t=Ws();js(0,"div",4),Aa(1," o "),Us(2,"br"),js(3,"a",7),Qs("click",(function(){return Xe(t),Xs(2).startPurchase()})),Aa(4,"acquistabile singolarmente"),Bs(),Bs()}}const pM=function(){return["/page/16"]};function gM(t,e){if(1&t&&(qs(0),js(1,"div",4),Aa(2," Contenuto riservato agli "),js(3,"a",5),Aa(4,"abbonati"),Bs(),Bs(),Ns(5,hM,5,0,"div",6),Gs()),2&t){const t=Xs();Co(3),$s("routerLink",Ic(2,pM)),Co(2),$s("ngIf",t.acquistabile)}}function fM(t,e){if(1&t&&(qs(0),Us(1,"div",9),Tc(2,"safeHtml"),Gs()),2&t){const t=Xs(2);Co(1),$s("innerHTML",Fc(2,1,t.defaultErrorMessage),Xi)}}function mM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",10),js(2,"div",11),Aa(3,"Pagamento"),Bs(),js(4,"div",12),Aa(5),Tc(6,"currency"),Bs(),js(7,"div",13),js(8,"div",14),js(9,"div",15),js(10,"input",16),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).paymentMethod=e})),Bs(),js(11,"label",17),Aa(12," Nexi "),Bs(),Bs(),js(13,"div",18),js(14,"img",19),Qs("click",(function(){return Xe(t),Xs(2).paymentMethod="Nexi"})),Bs(),Bs(),Bs(),js(15,"div",14),js(16,"div",15),js(17,"input",20),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).paymentMethod=e})),Bs(),js(18,"label",21),Aa(19," Paypal "),Bs(),Bs(),js(20,"div",22),js(21,"img",23),Qs("click",(function(){return Xe(t),Xs(2).paymentMethod="Paypal"})),Bs(),Bs(),Bs(),Bs(),js(22,"div",24),js(23,"button",25),Qs("click",(function(){return Xe(t),Xs(2).placeOrder()})),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(5),Ta(Nc(6,4,t.report.price,"EUR")),Co(5),$s("ngModel",t.paymentMethod),Co(7),$s("ngModel",t.paymentMethod),Co(6),$s("innerText",t.getPaymentButtonText())}}function vM(t,e){1&t&&(Us(0,"div",9),Tc(1,"safeHtml")),2&t&&$s("innerHTML",Fc(1,1,Xs(2).error),Xi)}function bM(t,e){if(1&t&&(qs(0),Ns(1,fM,3,3,"ng-container",1),Ns(2,mM,24,7,"ng-container",1),Ns(3,vM,2,3,"div",8),Gs()),2&t){const t=Xs();Co(1),$s("ngIf",t.report&&!t.report.acquistabile),Co(1),$s("ngIf",t.report),Co(1),$s("ngIf",t.error)}}let yM=(()=>{class t{constructor(t,e){this.dataService=t,this.route=e,this.acquistabile=!1,this.type="news",this.buying=!1,this.loading=!1,this.error=null,this.report=null,this.defaultErrorMessage="Si \xe8 verificato un errore imprevisto. Riprovare tra qualche minuto.",this.paymentMethod="Nexi"}ngOnInit(){this.route.queryParams.toPromise().then(t=>{"1"===t.p&&this.startPurchase()})}startPurchase(){this.loading=!0,this.buying=!0,this.error=null,this.report=null,this.dataService.getPurchasableReport(this.type,this.id).pipe(Dg(t=>(this.error=t.message||t,Pp(null)))).subscribe(t=>{this.report=t,this.loading=!1,this.report||this.error||(this.error=this.defaultErrorMessage)})}placeOrder(){if(!this.dataService.isLoggedIn()){let t=window.location.href,e=new URL(t);return e.searchParams.set("p","1"),window.history.replaceState({},"",e.toString()),void $("#loginModal").modal("show")}this.loading=!0,this.dataService.placeOrder({entity_id:this.id,entity_type:this.type,payment_method:this.paymentMethod}).pipe(Dg(t=>(this.error=t.message||t,Pp(null)))).subscribe(t=>{t?this.dataService.goToPayment(t):this.loading=!1})}getPaymentButtonText(){return this.dataService.isLoggedIn()?"Procedi con il pagamento":"Accedi col tuo account e paga"}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm))},t.\u0275cmp=fe({type:t,selectors:[["app-contenuto-acquistabile"]],inputs:{acquistabile:"acquistabile",type:"type",id:"id"},decls:3,vars:3,consts:[["class","loader",4,"ngIf"],[4,"ngIf"],[1,"loader"],["src","assets/img/loader.gif","alt","loader",1,"center"],[1,"prebuying-text"],[1,"text-danger","text-underline",3,"routerLink"],["class","prebuying-text",4,"ngIf"],["href","javascript:void(0);",1,"text-danger","text-underline",3,"click"],["class","text-danger text-center",3,"innerHTML",4,"ngIf"],[1,"text-danger","text-center",3,"innerHTML"],[1,"payment"],[1,"title"],[1,"price"],[1,"row","methods"],[1,"method","col-12","col-md-6","px-3","text-md-center"],[1,"form-check"],["type","radio","name","payment","id","paymentNexi","value","Nexi",1,"form-check-input",3,"ngModel","ngModelChange"],["for","paymentNexi",1,"form-check-label"],[1,"pt-md-3"],["src","/assets/img/nexi.png","width","150",3,"click"],["type","radio","name","payment","id","paymentPaypal","value","Paypal",1,"form-check-input",3,"ngModel","ngModelChange"],["for","paymentPaypal",1,"form-check-label"],[1,"pt-md-1"],["src","/assets/img/paypal.png","width","150",3,"click"],[1,"complete"],[1,"btn","btn-primary","py-3","w-100","text-uppercase",3,"innerText","click"]],template:function(t,e){1&t&&(Ns(0,dM,2,0,"div",0),Ns(1,gM,6,3,"ng-container",1),Ns(2,bM,4,3,"ng-container",1)),2&t&&($s("ngIf",e.loading),Co(1),$s("ngIf",!e.buying),Co(1),$s("ngIf",e.buying&&!e.loading))},directives:[ph,bv,R_,g_,w_,Sw],pipes:[fy,Bh],styles:['.prebuying-text[_ngcontent-%COMP%] {\n      text-align: center;\n      font-size: 30px;\n      color: #dc3545;\n    }\n\n    .text-underline[_ngcontent-%COMP%] {\n      text-decoration: underline;\n    }\n\n    .loader[_ngcontent-%COMP%] {\n      padding: 30px 0;\n      text-align: center;\n\n      img {\n        width: 50px;\n      }\n\n    }\n\n    .payment[_ngcontent-%COMP%] {\n      width: 50%;\n      margin: 0 auto;\n\n      img {\n        cursor: pointer;\n      }\n\n      .title, .price {\n        text-align: center;\n        font: normal normal normal 40px "Inter", sans-serif;\n        letter-spacing: 0;\n        color: #022141;\n        text-transform: uppercase;\n        opacity: 1;\n      }\n\n      .price {\n        margin-bottom: 15px;\n      }\n\n      .form-check-label {\n        font-weight: 600;\n        cursor: pointer;\n      }\n\n      .complete {\n        padding-top: 15px;\n      }\n\n    }']}),t})();function _M(t,e){1&t&&Us(0,"app-loader")}function wM(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),Gs()),2&t){const t=Xs(2);Co(3),$s("text",t.getLimitExceedText())}}function CM(t,e){if(1&t){const t=Ws();js(0,"span",25),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs(4);return i.goTo(n.id,i.news.categories)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;Co(1),Ta(t.name)}}function xM(t,e){if(1&t&&(js(0,"span",23),Aa(1," Categoria: "),Ns(2,CM,2,1,"span",24),Bs()),2&t){const t=Xs(3);Co(2),$s("ngForOf",t.news.categories)}}function OM(t,e){1&t&&(Us(0,"div",26),Tc(1,"safeHtml")),2&t&&$s("innerHTML",Fc(1,1,Xs(3).getDescrizioneBreve()),Xi)}function MM(t,e){if(1&t&&(js(0,"div",27),Us(1,"app-contenuto-acquistabile",28),Bs()),2&t){const t=Xs(3);Co(1),$s("acquistabile",null==t.news?null:t.news.acquistabile)("id",null==t.news?null:t.news.id)("type","news")}}function PM(t,e){if(1&t&&(js(0,"a",31),Aa(1),Bs()),2&t){const t=e.$implicit;$s("href",t.file,to),Co(1),Ta(t.description.length>0?t.description:"Visualizza allegato")}}function IM(t,e){if(1&t&&(js(0,"div",29),Ns(1,PM,2,2,"a",30),Bs()),2&t){const t=Xs(3);Co(1),$s("ngForOf",null==t.news?null:t.news.attachments)}}function kM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",32),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(4).getPronuncia(n.id)})),Aa(2),Bs(),Gs()}if(2&t){const t=Xs(4);Co(1),$s("ngClass",t.pdfPronunciaLoading?"loading":""),Co(1),Fa(" ",t.pdfPronunciaLoading?"Caricamento...":"Pdf pronuncia"," ")}}function SM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",32),Qs("click",(function(){return Xe(t),Xs(3).getPdf()})),Aa(2),Bs(),Ns(3,kM,3,2,"ng-container",21),Gs()}if(2&t){const t=Xs(3);Co(1),$s("ngClass",t.pdfLoading?"loading":""),Co(1),Fa(" ",t.pdfLoading?"Caricamento...":"PDF Notizia"," "),Co(1),$s("ngForOf",null==t.news?null:t.news.sentences)}}function EM(t,e){if(1&t&&(js(0,"div",36),js(1,"div",37),Aa(2,"Giudice Monocratico"),Bs(),js(3,"div",38),Aa(4),Bs(),Bs()),2&t){const t=Xs().$implicit;Co(4),Ta(null==t?null:t.giudice_monocratico)}}function DM(t,e){if(1&t&&(qs(0),js(1,"div",36),js(2,"div",37),Aa(3,"Relatore"),Bs(),js(4,"div",38),Aa(5),Bs(),Bs(),js(6,"div",36),js(7,"div",37),Aa(8,"Presidente"),Bs(),js(9,"div",38),Aa(10),Bs(),Bs(),Gs()),2&t){const t=Xs().$implicit;Co(5),Ta(null==t?null:t.relatore),Co(5),Ta(null==t?null:t.presidente)}}function AM(t,e){1&t&&(qs(0,void 0,void 0),Gs())}function TM(t,e){if(1&t&&(qs(0),js(1,"div",39),Aa(2,"Sintesi"),Bs(),Ns(3,AM,1,0,"ng-container",43),Us(4,"div",44),Tc(5,"safeHtml"),Gs()),2&t){const t=Xs().$implicit,e=Vs(3);Co(3),$s("ngTemplateOutlet",e),Co(1),$s("innerHTML",Fc(5,2,null==t?null:t.text),Xi)}}function FM(t,e){if(1&t){const t=Ws();js(0,"div",47),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs(2).$implicit;return Xs(5).goToSentenceCategories(n.id,i.categories)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;Co(1),Ta(t.name)}}function NM(t,e){if(1&t&&(js(0,"div",45),Ns(1,FM,2,1,"div",46),Bs()),2&t){const t=Xs().$implicit;Co(1),$s("ngForOf",null==t?null:t.categories)}}function VM(t,e){if(1&t&&(qs(0),Ns(1,TM,6,4,"ng-container",41),Ns(2,NM,2,1,"ng-template",null,42,ou),Gs()),2&t){const t=e.$implicit,i=Vs(3),o=Xs(5);var n=null;const r=(null==t||null==t.text?null:t.text.trim())!==(null==(n=o.getDescrizioneBreve())?null:n.trim());Co(1),$s("ngIf",r)("ngIfElse",i)}}function RM(t,e){if(1&t&&(qs(0),Ns(1,VM,4,2,"ng-container",21),js(2,"div",39),Aa(3,"Estratto"),Bs(),Us(4,"div",40),Tc(5,"safeHtml"),Gs()),2&t){const t=e.$implicit;Co(1),$s("ngForOf",t.sintesi),Co(3),$s("innerHTML",Fc(5,2,t.text),Xi)}}function LM(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",33),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(3).goToSentence(n.id)})),Aa(2),Bs(),js(3,"div",34),Ns(4,EM,5,1,"div",35),Ns(5,DM,11,2,"ng-container",0),Bs(),Ns(6,RM,6,4,"ng-container",21),Gs()}if(2&t){const t=e.$implicit;Co(2),Ta(t.title),Co(2),$s("ngIf",null==t?null:t.giudice_monocratico),Co(1),$s("ngIf",!(null!=t&&t.giudice_monocratico)),Co(1),$s("ngForOf",t.estratti)}}function zM(t,e){if(1&t){const t=Ws();js(0,"div",51),js(1,"div",52),js(2,"div",53),Aa(3," Tipo "),js(4,"div",54),Aa(5),Bs(),Bs(),Bs(),js(6,"a",55),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(4).goToPage(n)})),js(7,"div",53),Aa(8,"Titolo"),Bs(),Aa(9),Bs(),Bs()}if(2&t){const t=e.$implicit,n=Xs(4);Co(5),Ta(n.getRelatedName(t.type)),Co(4),Fa(" ",t.title," ")}}function $M(t,e){if(1&t&&(js(0,"div",48),js(1,"div",4),js(2,"div",49),Aa(3,"Correlati"),Bs(),Ns(4,zM,10,2,"div",50),Bs(),Bs()),2&t){const t=Xs(3);Co(4),$s("ngForOf",t.news.related)}}function HM(t,e){if(1&t&&(qs(0),js(1,"div",6),js(2,"div",4),js(3,"div",7),Aa(4,"news"),Bs(),js(5,"div",8),js(6,"div",9),Ns(7,xM,3,1,"span",10),Bs(),Bs(),js(8,"div",11),Aa(9),Tc(10,"date"),Bs(),js(11,"div",12),js(12,"div",13),Aa(13),Bs(),Us(14,"app-add-bookmark",14),Bs(),Ns(15,OM,2,3,"div",15),js(16,"div",16),Us(17,"div",17),Tc(18,"safeHtml"),Ns(19,MM,2,3,"div",18),Bs(),Bs(),Bs(),Ns(20,IM,2,1,"div",19),js(21,"div",6),js(22,"div",20),Ns(23,SM,4,3,"ng-container",0),Ns(24,LM,7,4,"ng-container",21),Bs(),Bs(),Ns(25,$M,5,1,"div",22),Gs()),2&t){const t=Xs(2);Co(7),$s("ngIf",null==t.news?null:t.news.categories),Co(2),Ta(Nc(10,13,null==t.news?null:t.news.date,"dd/MM/yyyy")),Co(4),Ta(null==t.news?null:t.news.title),Co(1),$s("elementId",t.elementID)("itemType","news"),Co(1),$s("ngIf",t.getDescrizioneBreve()),Co(2),$s("ngClass",null!=t.news&&t.news.show_full?"full-text":"preview_text")("innerHTML",Fc(18,16,null==t.news?null:t.news.text),Xi),Co(2),$s("ngIf",!(null!=t.news&&t.news.show_full)),Co(1),$s("ngIf",(null==t.news||null==t.news.attachments?null:t.news.attachments.length)>0),Co(3),$s("ngIf",null==t.news?null:t.news.show_full),Co(1),$s("ngForOf",null==t.news?null:t.news.sentences),Co(1),$s("ngIf",t.news.related&&t.news.related.length>0)}}function jM(t,e){if(1&t&&(js(0,"div",2),Ns(1,wM,4,1,"ng-container",0),Ns(2,HM,26,18,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",t.hourlyLimitExceed||t.dailyLimitExceed),Co(1),$s("ngIf",!t.notAutorized&&!t.hourlyLimitExceed&&!t.dailyLimitExceed)}}let BM=(()=>{class t{constructor(t,e,n,i){this.router=t,this.route=e,this.dataService=n,this.viewportScroller=i,this.completeLoading=!1,this.notAutorized=!1,this.descrizioneBreve=null,this.hourlyLimitExceed=!1,this.dailyLimitExceed=!1}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.viewportScroller.scrollToPosition([0,0]);try{this.news=yield this.dataService.singleItem("news",this.route.snapshot.params.id)}catch(t){this.news=null}if(this.elementID=this.route.snapshot.params.id,this.news){if(this.news.show_full){try{const e=yield this.dataService.checkCounter("news");if((e.daily_limit>0||e.hourly_limit>0)&&(e.hourly_limit>0&&e.count>e.hourly_limit&&(this.hourlyLimitExceed=!0),e.daily_limit>0&&e.daily>e.daily_limit&&(this.dailyLimitExceed=!0)),!this.hourlyLimitExceed&&!this.dailyLimitExceed){this.calculateDescrizioneBreve();try{yield this.dataService.setCounter("news")}catch(t){console.log(t.message)}}}catch(e){this.notAutorized=!0}if(this.notAutorized)return void this.router.navigate(["/news"],{queryParams:{state:"unauthorized"}})}else this.calculateDescrizioneBreve();this.completeLoading=!0}else this.router.navigate(["/news"],{queryParams:{state:"unauthorized"}})}))}calculateDescrizioneBreve(){var t;this.descrizioneBreve=null===(t=this.news)||void 0===t?void 0:t.description}getDescrizioneBreve(){return this.descrizioneBreve}goTo(t,e){const n=e.findIndex(e=>e.id===t),i=e.slice(0,n+1).map(t=>t.id);this.router.navigate(["news"],{queryParams:{category:t,accordions:i.toString()}})}getLimitExceedText(){return this.dailyLimitExceed?"ATTENZIONE LIMITE GIORNALIERO DI NOTIZIE USUFRUIBILI RAGGIUNTO":this.hourlyLimitExceed?"ATTENZIONE LIMITE ORARIO DI NOTIZIE USUFRUIBILI RAGGIUNTO":""}getPdf(){this.pdfLoading=!0,this.dataService.getPdf("news",this.elementID).then(t=>this.pdfUrl=t).catch(({e:t})=>alert(t.error?t.error:t)).finally(()=>{this.pdfLoading=!1,window.open(this.pdfUrl,"_blank")})}getPronuncia(t){this.pdfPronunciaLoading=!0,this.dataService.getPdf("sentences",t+"?text").then(t=>this.pdfPronunciaUrl=t).catch(({e:t})=>alert(t.error?t.error:t)).finally(()=>{this.pdfPronunciaLoading=!1,window.open(this.pdfPronunciaUrl,"_blank")})}goToSentence(t){this.router.navigate(["/sentences/"+t])}goToSentenceCategories(t,e){const n=e.findIndex(e=>e.id===t),i=e.slice(0,n+1).map(t=>t.id);this.router.navigate(["/sentences"],{queryParams:{category:t,accordions:i.toString()}})}getCorrelati(){this.viewportScroller.scrollToAnchor("exeocorr")}getRelatedName(t){switch(t){case"sentence":return"Sentenza";case"event":return"Evento";case"news":return"Notizia";default:return"Dottrina"}}goToPage(t){let e;switch(t.type){case"analysis":e="doctrine";break;case"sentence":e="sentences";break;case"event":e="events";break;case"news":e="news";break;default:return}this.router.navigateByUrl(`${e}/${t.id}`)}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv),Rs(Zh))},t.\u0275cmp=fe({type:t,selectors:[["app-single-news-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row","mt-5"],[1,"col"],[3,"text"],[1,"row"],[1,"news-section"],[1,"d-flex","justify-content-between","align-items-start"],[1,"single-news-category"],["class","cat-el",4,"ngIf"],[1,"single-news-date"],[1,"page-header","d-flex","justify-content-between"],[1,"single-news-title"],[3,"elementId","itemType"],["class","single-news-subtitle single-news-question news-text-questions",3,"innerHTML",4,"ngIf"],[1,"single-news-text-container"],[1,"single-news-subtitle","news-text-answer",3,"ngClass","innerHTML"],["class","reserved",4,"ngIf"],["class","doctrine-attachment-container",4,"ngIf"],[1,"col","pb-5"],[4,"ngFor","ngForOf"],["class","row related","id","exeocorr",4,"ngIf"],[1,"cat-el"],["class","cat-link cat-questions",3,"click",4,"ngFor","ngForOf"],[1,"cat-link","cat-questions",3,"click"],[1,"single-news-subtitle","single-news-question","news-text-questions",3,"innerHTML"],[1,"reserved"],[3,"acquistabile","id","type"],[1,"doctrine-attachment-container"],["class","doctrine-attachment","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"doctrine-attachment",3,"href"],[1,"sentence-pdf",3,"ngClass","click"],[1,"sentence-title",3,"click"],[1,"row","sentence-details"],["class","col-auto",4,"ngIf"],[1,"col-auto"],[1,"sentence-detail-title"],[1,"sentence-detail-name"],[1,"sintesi"],[1,"estratto-body",3,"innerHTML"],[4,"ngIf","ngIfElse"],["sentenceBreadcrumb",""],[4,"ngTemplateOutlet"],[1,"estratto",3,"innerHTML"],[1,"sentence-bradcrumb","mb-2"],["class","element",3,"click",4,"ngFor","ngForOf"],[1,"element",3,"click"],["id","exeocorr",1,"row","related"],[1,"related-section-title"],["class","related-row",4,"ngFor","ngForOf"],[1,"related-row"],[1,"related-element"],[1,"related-title"],[1,"font-weight-normal"],[1,"related-element","related-link",3,"click"]],template:function(t,e){1&t&&(Ns(0,_M,1,0,"app-loader",0),Ns(1,jM,3,2,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob,uM,lh,dh,yM,xh],pipes:[Fh,fy],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .copy-estratto[_ngcontent-%COMP%]:before, .sentence-pdf[_ngcontent-%COMP%]:before, .single-news-functions[_ngcontent-%COMP%]   .single-news-func[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.news-section[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:700;color:#213412;margin-bottom:30px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px}.news-section[_ngcontent-%COMP%], .single-news-category[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif}.single-news-category[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.single-news-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]{font-size:12px;color:#213412;font-weight:600;text-transform:uppercase}.single-news-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]   .cat-link[_ngcontent-%COMP%]{color:#4e673b;cursor:pointer;text-transform:none}.single-news-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]   .cat-link.cat-questions[_ngcontent-%COMP%] + .cat-questions[_ngcontent-%COMP%]:before{content:" > ";display:inline}.single-news-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%] + .cat-el[_ngcontent-%COMP%]{margin-left:15px}.single-news-functions[_ngcontent-%COMP%]{display:flex;font-family:Source Sans Pro,sans-serif}.single-news-functions[_ngcontent-%COMP%]   .single-news-func[_ngcontent-%COMP%]{font-size:11px;text-transform:uppercase;color:#213412;font-weight:600;display:flex;cursor:pointer}.single-news-functions[_ngcontent-%COMP%]   .single-news-func[_ngcontent-%COMP%] + .single-news-func[_ngcontent-%COMP%]{margin-left:20px}.single-news-functions[_ngcontent-%COMP%]   .single-news-func[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;margin-right:6px}.single-news-functions[_ngcontent-%COMP%]   .single-news-func.pdf[_ngcontent-%COMP%]:before{background-image:url(pdf.f3bba44809423bdfb2fe.svg)}.single-news-functions[_ngcontent-%COMP%]   .single-news-func.bookmark[_ngcontent-%COMP%]:before{background-image:url(preferiti.e72f6827552d768bf363.png)}.single-news-functions[_ngcontent-%COMP%]   .single-news-func.pub[_ngcontent-%COMP%]:before{background-image:url(download.0e9ff0886110cb7f2a12.png)}.single-news-functions[_ngcontent-%COMP%]   .single-news-func.loading[_ngcontent-%COMP%]:before{background-image:url(loader.42aaa181adb3af3bef08.gif)}.single-news-date[_ngcontent-%COMP%]{font-size:17px;margin-bottom:3px;color:#4e673b;font-family:Source Sans Pro,sans-serif;text-align:right}.single-news-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412;text-transform:uppercase;font-size:32px;line-height:36px;font-weight:600;margin-bottom:30px}.single-news-title[_ngcontent-%COMP%]:after{content:"";width:50%;height:2px;display:block;margin-top:30px;background-color:#213412}.single-news-text-container[_ngcontent-%COMP%]{position:relative;margin-bottom:40px}.reserved[_ngcontent-%COMP%]{position:relative;width:100%;background-color:#fff;z-index:999;padding:30px 0 0}.reserved[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-120px;left:0;height:120px;width:100%;z-index:1000;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff 60%)}.single-news-subtitle[_ngcontent-%COMP%]{font-size:20px;color:#4e673b;font-weight:600;text-align:justify;font-family:Source Sans Pro,sans-serif}.single-news-subtitle.news-text-questions[_ngcontent-%COMP%]{font-family:Courier Prime,monospace}.single-news-subtitle.news-text-answer[_ngcontent-%COMP%]{font-family:"PT Serif",serif;color:#213412}.copy-estratto[_ngcontent-%COMP%], .sentence-pdf[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:12px;font-weight:600;text-transform:uppercase;display:inline-flex;cursor:pointer;margin-bottom:15px;margin-top:30px}.copy-estratto[_ngcontent-%COMP%]:before, .sentence-pdf[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(pdf.f3bba44809423bdfb2fe.svg);margin-right:6px}.copy-estratto.loading[_ngcontent-%COMP%]:before, .sentence-pdf.loading[_ngcontent-%COMP%]:before{background-image:url(loader.42aaa181adb3af3bef08.gif)}.copy-estratto[_ngcontent-%COMP%] + .sentence-pdf[_ngcontent-%COMP%], .sentence-pdf[_ngcontent-%COMP%] + .sentence-pdf[_ngcontent-%COMP%]{margin-left:30px}.sentence-title[_ngcontent-%COMP%]{font-size:20px;font-weight:600;text-transform:uppercase;color:#213412;border-bottom:4px solid #44320c;margin-bottom:15px;cursor:pointer}.sentence-details[_ngcontent-%COMP%]{font-size:14px;margin-bottom:30px;color:#213412;font-weight:600;font-family:Source Sans Pro,sans-serif}.sentence-details[_ngcontent-%COMP%]   .sentence-detail-title[_ngcontent-%COMP%]{text-transform:uppercase}.sentence-details[_ngcontent-%COMP%]   .sentence-detail-name[_ngcontent-%COMP%]{font-size:12px}.sintesi[_ngcontent-%COMP%]{color:#213412;text-transform:uppercase;font-weight:600;display:flex;align-items:baseline}.sintesi[_ngcontent-%COMP%]:before{content:"";width:15px;height:15px;border-radius:50%;background-color:#e2574c;margin-right:8px}.sentence-bradcrumb[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]{color:#4e673b;display:inline-block;margin-right:8px;cursor:pointer;font-size:15px;font-weight:600;font-family:Source Sans Pro,sans-serif}.sentence-bradcrumb[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%] + .element[_ngcontent-%COMP%]{padding-left:8px;border-left:1px solid #4e673b}.estratto[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:20px;line-height:21px;font-weight:700;color:#213412;margin-top:15px;margin-bottom:30px;text-align:justify}.estratto-title[_ngcontent-%COMP%]{color:#e2574c;text-transform:uppercase;font-weight:800}.estratto-body[_ngcontent-%COMP%]{text-align:justify;font-family:Source Sans Pro,sans-serif}.related[_ngcontent-%COMP%]   .related-section-title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;word-break:keep-all;color:#414141;display:flex;align-items:center}.related[_ngcontent-%COMP%]   .related-section-title[_ngcontent-%COMP%]:after{content:"";width:100%;height:1px;background-color:#414141;margin-left:35px}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]{padding-bottom:15px;display:flex}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element[_ngcontent-%COMP%]{padding:15px 50px 15px 0;font-size:15px;color:#414141;display:flex;flex-direction:column}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element[_ngcontent-%COMP%]   .related-title[_ngcontent-%COMP%]{font-weight:600;flex-grow:1}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element.related-link[_ngcontent-%COMP%]{color:#414141;font-weight:600;cursor:pointer}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element.related-link[_ngcontent-%COMP%]:hover{text-decoration:none}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%] + .related-row[_ngcontent-%COMP%]{border-top:1px solid #ddd;padding-top:15px}',".margin-l2[_ngcontent-%COMP%]{margin-top:30px;margin-left:0}.min-h[_ngcontent-%COMP%]{min-height:1000px!important}.size-1[_ngcontent-%COMP%]{padding-bottom:50px}.m-t[_ngcontent-%COMP%], .size-1[_ngcontent-%COMP%]{margin-top:15px}.m-t-2[_ngcontent-%COMP%]{margin-top:35px}.active[_ngcontent-%COMP%]{background-color:#bcd1ac;padding:12px 10px;border-radius:6px;cursor:pointer}.margin-l3[_ngcontent-%COMP%]{margin-left:15px}.img-icon[_ngcontent-%COMP%]{margin:2px}.no-padding[_ngcontent-%COMP%]{margin:0;padding:0}"]}),t})();const UM=["labelImport"];function qM(t,e){if(1&t&&(js(0,"div",5),js(1,"div",33),Aa(2),Bs(),Bs()),2&t){const t=Xs(2);Co(2),Na("",null==t.data?null:t.data.nome," ",null==t.data?null:t.data.cognome,"")}}function GM(t,e){if(1&t&&(qs(0),js(1,"div",34),js(2,"div",6),js(3,"label",35),Aa(4,"Nome"),Bs(),Us(5,"input",36),Bs(),Bs(),js(6,"div",34),js(7,"div",6),js(8,"label",37),Aa(9,"Cognome"),Bs(),Us(10,"input",38),Bs(),Bs(),Gs()),2&t){const t=Xs(2);Co(5),na("value",null==t.data?null:t.data.nome),Co(5),$s("value",null==t.data?null:t.data.cognome)}}function WM(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.indirizzo?null==t.data?null:t.data.indirizzo:"- -")}}function ZM(t,e){if(1&t&&Us(0,"input",39),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.indirizzo)}}function YM(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.citta?null==t.data?null:t.data.citta:"- -")}}function QM(t,e){if(1&t&&Us(0,"input",40),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.citta)}}function JM(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.telefono?null==t.data?null:t.data.telefono:"- -")}}function KM(t,e){if(1&t&&Us(0,"input",41),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.telefono)}}function XM(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.partita_iva?null==t.data?null:t.data.partita_iva:"- -")}}function tP(t,e){if(1&t&&Us(0,"input",42),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.partita_iva)}}function eP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.regione_text?null==t.data?null:t.data.regione_text:"- -")}}function nP(t,e){if(1&t&&(js(0,"option",45),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Fa(" ",t.name," ")}}function iP(t,e){if(1&t){const t=Ws();js(0,"select",43),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).data.regione=e})),Ns(1,nP,2,2,"option",44),Bs()}if(2&t){const t=Xs(2);$s("ngModel",t.data.regione),Co(1),$s("ngForOf",t.regioni)}}function oP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.provincia_text?null==t.data?null:t.data.provincia_text:"- -")}}function rP(t,e){if(1&t&&(js(0,"option",45),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Fa(" ",t.text," ")}}function sP(t,e){if(1&t){const t=Ws();js(0,"select",46),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).data.provincia=e})),Ns(1,rP,2,2,"option",44),Bs()}if(2&t){const t=Xs(2);$s("ngModel",t.data.provincia),Co(1),$s("ngForOf",t.province)}}function aP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.fax?null==t.data?null:t.data.fax:"- -")}}function lP(t,e){if(1&t&&Us(0,"input",47),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.fax)}}function cP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.codice_fiscale?null==t.data?null:t.data.codice_fiscale:"- -")}}function uP(t,e){if(1&t&&Us(0,"input",48),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.codice_fiscale)}}function dP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null==t.data?null:t.data.cap)}}function hP(t,e){if(1&t&&Us(0,"input",49),2&t){const t=Xs(2);$s("value",null==t.data?null:t.data.cap)}}function pP(t,e){if(1&t&&(js(0,"div",31),Aa(1),Bs()),2&t){const t=Xs(2);Co(1),Ta(null!=t.data&&t.data.stato_text?null==t.data?null:t.data.stato_text:"- -")}}function gP(t,e){if(1&t&&(js(0,"option",45),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Fa(" ",t.text," ")}}function fP(t,e){if(1&t){const t=Ws();js(0,"select",50),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).data.stato=e})),Ns(1,gP,2,2,"option",44),Bs()}if(2&t){const t=Xs(2);$s("ngModel",t.data.stato),Co(1),$s("ngForOf",t.nazioni)}}function mP(t,e){1&t&&(js(0,"div",6),js(1,"label",51),Aa(2,"Password"),Bs(),Us(3,"input",52),js(4,"small",53),Aa(5,"Min. 8 caratteri, almeno un numero, una lettera e un carattere speciale."),Bs(),Bs())}function vP(t,e){if(1&t){const t=Ws();js(0,"div",5),js(1,"button",54),Qs("click",(function(){Xe(t);const e=Xs(2);return e.edit=!e.edit})),Aa(2,"Modifica dati"),Bs(),Bs()}}function bP(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",55),js(2,"button",56),Qs("click",(function(){Xe(t);const e=Xs(2);return e.editData(e.dataForm)})),Aa(3,"Salva dati"),Bs(),Bs(),js(4,"div",55),js(5,"button",57),Qs("click",(function(){Xe(t);const e=Xs(2);return e.edit=!e.edit})),Aa(6,"Annulla"),Bs(),Bs(),Gs()}}function yP(t,e){if(1&t){const t=Ws();js(0,"form",62),js(1,"div",63),js(2,"input",64),Qs("change",(function(e){return Xe(t),Xs(3).handleInputChange(e)})),Bs(),js(3,"label",65,66),Aa(5,"Carica la ricevuta di pagamento"),Bs(),js(6,"div",67),Aa(7,"Si prega di caricare solo file PDF"),Bs(),Bs(),Bs()}2&t&&$s("formGroup",Xs(3).formImport)}function _P(t,e){1&t&&(js(0,"div",31),Aa(1,"Grazie! La ricevuta di pagamento \xe8 stata consegnata."),Bs())}const wP=function(t){return{"d-none":t}};function CP(t,e){if(1&t){const t=Ws();js(0,"div",55),js(1,"button",68),Qs("click",(function(){return Xe(t),Xs(3).sendPdfFile()})),Aa(2,"Invia file"),Bs(),Bs()}if(2&t){const t=Xs(3);Co(1),$s("ngClass",kc(1,wP,!t.pdfEnabled))}}function xP(t,e){if(1&t&&(js(0,"div",4),js(1,"div",58),Us(2,"hr"),Bs(),js(3,"div",59),js(4,"div",6),js(5,"div",7),Aa(6,"Proroga abbonamento"),Bs(),Ns(7,yP,8,1,"form",60),Ns(8,_P,2,0,"div",10),Bs(),Bs(),Ns(9,CP,3,3,"div",61),Bs()),2&t){const t=Xs(2);Co(7),$s("ngIf",!t.fileUploaded),Co(1),$s("ngIf",t.fileUploaded),Co(1),$s("ngIf",!t.fileUploaded)}}const OP=function(t){return{"mb-4":t}},MP=function(t){return{edit:t}};function PP(t,e){if(1&t&&(qs(0),qs(1,1),js(2,"div",2),Ns(3,qM,3,2,"div",3),Ns(4,GM,11,2,"ng-container",0),Bs(),js(5,"div",4),js(6,"div",5),js(7,"div",6),js(8,"div",7),Aa(9,"Email"),Bs(),js(10,"div",8),Aa(11),Bs(),Bs(),js(12,"div",6),js(13,"label",9),Aa(14,"Indirizzo"),Bs(),Ns(15,WM,2,1,"div",10),Ns(16,ZM,1,1,"input",11),Bs(),js(17,"div",6),js(18,"label",12),Aa(19,"Localit\xe0"),Bs(),Ns(20,YM,2,1,"div",10),Ns(21,QM,1,1,"input",13),Bs(),js(22,"div",6),js(23,"label",14),Aa(24,"Telefono"),Bs(),Ns(25,JM,2,1,"div",10),Ns(26,KM,1,1,"input",15),Bs(),Bs(),js(27,"div",5),js(28,"div",6),js(29,"label",16),Aa(30,"P. Iva"),Bs(),Ns(31,XM,2,1,"div",10),Ns(32,tP,1,1,"input",17),Bs(),js(33,"div",6),js(34,"label",18),Aa(35,"Regione"),Bs(),Ns(36,eP,2,1,"div",10),Ns(37,iP,2,2,"select",19),Bs(),js(38,"div",6),js(39,"label",20),Aa(40,"Provincia"),Bs(),Ns(41,oP,2,1,"div",10),Ns(42,sP,2,2,"select",21),Bs(),js(43,"div",6),js(44,"label",22),Aa(45,"Fax"),Bs(),Ns(46,aP,2,1,"div",10),Ns(47,lP,1,1,"input",23),Bs(),Bs(),js(48,"div",5),js(49,"div",6),js(50,"label",24),Aa(51,"Codice Fiscale"),Bs(),Ns(52,cP,2,1,"div",10),Ns(53,uP,1,1,"input",25),Bs(),js(54,"div",6),js(55,"label",26),Aa(56,"CAP"),Bs(),Ns(57,dP,2,1,"div",10),Ns(58,hP,1,1,"input",27),Bs(),js(59,"div",6),js(60,"label",28),Aa(61,"Stato"),Bs(),Ns(62,pP,2,1,"div",10),Ns(63,fP,2,2,"select",29),Bs(),Ns(64,mP,6,0,"div",30),Bs(),Bs(),js(65,"div",4),Ns(66,vP,3,0,"div",3),Ns(67,bP,7,0,"ng-container",0),Bs(),Gs(),js(68,"div",4),js(69,"div",5),Us(70,"hr"),Bs(),Bs(),js(71,"div",4),js(72,"div",5),js(73,"div",6),js(74,"div",7),Aa(75,"Numero login"),Bs(),js(76,"div",31),Aa(77),Bs(),Bs(),Bs(),js(78,"div",5),js(79,"div",6),js(80,"div",7),Aa(81,"Scadenza accesso"),Bs(),js(82,"div",31),Aa(83),Tc(84,"date"),Bs(),Bs(),Bs(),js(85,"div",5),js(86,"div",6),js(87,"div",7),Aa(88,"Ultimo accesso"),Bs(),js(89,"div",31),Aa(90),Tc(91,"date"),Bs(),Bs(),Bs(),Bs(),Ns(92,xP,10,3,"div",32),Gs()),2&t){const t=Xs();Co(1),$s("formGroup",t.dataForm),Co(1),$s("ngClass",kc(39,OP,t.edit)),Co(1),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(6),$s("ngClass",kc(41,MP,t.edit)),Co(1),Ta(null==t.data?null:t.data.email),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(5),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(5),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(4),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(1),$s("ngIf",t.edit),Co(2),$s("ngIf",!t.edit),Co(1),$s("ngIf",t.edit),Co(10),Ta(null==t.data?null:t.data.login_effettuati),Co(6),Ta(Nc(84,33,null==t.data?null:t.data.subscription_expiration,"dd/MM/yyyy")),Co(7),Ta(Nc(91,36,null==t.data?null:t.data.ultimo_login,"dd/MM/yyyy")),Co(2),$s("ngIf",t.profileData.subscription_extension)}}let IP=(()=>{class t{constructor(t){this.fb=t,this.password=null,this.editProfile=new Lc,this.sendPdf=new Lc,this.formImport=new vw({importFile:new mw("",I_.required)})}set loaded(t){this.loadedVal=t,this.fillForm()}get loaded(){return this.loadedVal}ngOnInit(){this.dataForm=this.fb.group({nome:["",I_.required],cognome:["",I_.required],telefono:[""],fax:[""],indirizzo:[""],citta:[""],provincia:[""],regione:[""],cap:[""],partita_iva:[""],codice_fiscale:[""],stato:[""],password:[this.password]}),this.edit=!1,this.inizialized=!0,this.fillForm()}fillForm(){var t,e,n,i,o,r,s,a,l,c,u,d,h,p,g,f;this.loaded&&this.inizialized&&(this.data=null===(t=this.profileData)||void 0===t?void 0:t.data,this.regioni=null===(e=this.profileData)||void 0===e?void 0:e.regions,this.province=null===(n=this.profileData)||void 0===n?void 0:n.provinces,this.nazioni=null===(i=this.profileData)||void 0===i?void 0:i.countries,this.dataForm.setValue({nome:null===(o=this.data)||void 0===o?void 0:o.nome,cognome:null===(r=this.data)||void 0===r?void 0:r.cognome,telefono:null===(s=this.data)||void 0===s?void 0:s.telefono,fax:null===(a=this.data)||void 0===a?void 0:a.fax,indirizzo:null===(l=this.data)||void 0===l?void 0:l.indirizzo,citta:null===(c=this.data)||void 0===c?void 0:c.citta,provincia:null===(u=this.data)||void 0===u?void 0:u.provincia_text,regione:null===(d=this.data)||void 0===d?void 0:d.regione_text,cap:null===(h=this.data)||void 0===h?void 0:h.cap,partita_iva:null===(p=this.data)||void 0===p?void 0:p.partita_iva,codice_fiscale:null===(g=this.data)||void 0===g?void 0:g.codice_fiscale,stato:null===(f=this.data)||void 0===f?void 0:f.stato_text,password:this.password}))}editData(t){this.edit=!0,this.editValues=null===t.value.password||""===t.value.password?{nome:t.value.nome,cognome:t.value.cognome,telefono:t.value.telefono,fax:t.value.fax,indirizzo:t.value.indirizzo,citta:t.value.citta,provincia:t.value.provincia,regione:t.value.regione,cap:t.value.cap,partita_iva:t.value.partita_iva,codice_fiscale:t.value.codice_fiscale,stato:t.value.stato}:{nome:t.value.nome,cognome:t.value.cognome,telefono:t.value.telefono,fax:t.value.fax,indirizzo:t.value.indirizzo,citta:t.value.citta,provincia:t.value.provincia,regione:t.value.regione,cap:t.value.cap,partita_iva:t.value.partita_iva,codice_fiscale:t.value.codice_fiscale,stato:t.value.stato,password:t.value.password},this.editProfile.emit(this.editValues)}handleInputChange(t){const e=t.dataTransfer?t.dataTransfer.files[0]:t.target.files[0],n=new FileReader;this.pdfName=e.name,this.labelImport.nativeElement.innerText=this.pdfName,this.pdfEnabled=!0,e.type.match(/pdf-*/)?(n.onload=this._handleReaderLoaded.bind(this),n.readAsDataURL(e)):alert("invalid format")}_handleReaderLoaded(t){this.pdfRenew=t.target.result}sendPdfFile(){this.sendPdf.emit({file:this.pdfRenew,filename:this.pdfName})}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-profilo"]],viewQuery:function(t,e){var n;1&t&&Jc(UM,!0),2&t&&Yc(n=tu())&&(e.labelImport=n.first)},inputs:{loaded:"loaded",profileData:"profileData",fileUploaded:"fileUploaded"},outputs:{editProfile:"editProfile",sendPdf:"sendPdf"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row",3,"ngClass"],["class","col",4,"ngIf"],[1,"row"],[1,"col"],[1,"profile-element"],[1,"profile-label"],[1,"profile-text",3,"ngClass"],["for","indirizzo",1,"profile-label"],["class","profile-text",4,"ngIf"],["type","text","class","form-control","id","indirizzo","name","indirizzo","formControlName","indirizzo",3,"value",4,"ngIf"],["for","citta",1,"profile-label"],["type","text","class","form-control","id","citta","name","citta","formControlName","citta",3,"value",4,"ngIf"],["for","telefono",1,"profile-label"],["type","text","class","form-control","id","telefono","name","telefono","formControlName","telefono",3,"value",4,"ngIf"],["for","partita_iva",1,"profile-label"],["type","text","class","form-control","id","partita_iva","name","partita_iva","formControlName","partita_iva",3,"value",4,"ngIf"],["for","regione_text",1,"profile-label"],["name","regione_text","id","regione_text","class","form-control","formControlName","regione",3,"ngModel","ngModelChange",4,"ngIf"],["for","provincia_text",1,"profile-label"],["name","provincia_text","id","provincia_text","class","form-control","formControlName","provincia",3,"ngModel","ngModelChange",4,"ngIf"],["for","fax",1,"profile-label"],["type","text","class","form-control","id","fax","name","fax","formControlName","fax",3,"value",4,"ngIf"],["for","codice_fiscale",1,"profile-label"],["type","text","class","form-control","id","codice_fiscale","name","codice_fiscale","formControlName","codice_fiscale",3,"value",4,"ngIf"],["for","cap",1,"profile-label"],["type","text","class","form-control","id","cap","name","cap","formControlName","cap",3,"value",4,"ngIf"],["for","stato_text",1,"profile-label"],["name","provincia_text","id","stato_text","class","form-control","formControlName","stato",3,"ngModel","ngModelChange",4,"ngIf"],["class","profile-element",4,"ngIf"],[1,"profile-text"],["class","row",4,"ngIf"],[1,"profile-name"],[1,"col-md-auto"],["for","nome",1,"profile-label"],["type","text","id","nome","name","nome","formControlName","nome",1,"form-control",3,"value"],["for","cognome",1,"profile-label"],["type","text","id","cognome","name","cognome","formControlName","cognome",1,"form-control",3,"value"],["type","text","id","indirizzo","name","indirizzo","formControlName","indirizzo",1,"form-control",3,"value"],["type","text","id","citta","name","citta","formControlName","citta",1,"form-control",3,"value"],["type","text","id","telefono","name","telefono","formControlName","telefono",1,"form-control",3,"value"],["type","text","id","partita_iva","name","partita_iva","formControlName","partita_iva",1,"form-control",3,"value"],["name","regione_text","id","regione_text","formControlName","regione",1,"form-control",3,"ngModel","ngModelChange"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["name","provincia_text","id","provincia_text","formControlName","provincia",1,"form-control",3,"ngModel","ngModelChange"],["type","text","id","fax","name","fax","formControlName","fax",1,"form-control",3,"value"],["type","text","id","codice_fiscale","name","codice_fiscale","formControlName","codice_fiscale",1,"form-control",3,"value"],["type","text","id","cap","name","cap","formControlName","cap",1,"form-control",3,"value"],["name","provincia_text","id","stato_text","formControlName","stato",1,"form-control",3,"ngModel","ngModelChange"],["for","password",1,"profile-label"],["type","text","id","password","name","password","formControlName","password",1,"form-control"],[1,"form-text","text-muted"],["type","text",1,"btn","btn-brand",3,"click"],[1,"col-auto"],["type","submit",1,"btn","btn-brand","success",3,"click"],["type","text",1,"btn","btn-brand","cancel",3,"click"],[1,"col-12"],[1,"col-4"],["novalidate","",3,"formGroup",4,"ngIf"],["class","col-auto",4,"ngIf"],["novalidate","",3,"formGroup"],[1,"custom-file"],["type","file","accept","application/pdf","formControlName","importFile","id","importFile",1,"custom-file-input",3,"change"],["for","importFile",1,"custom-file-label"],["labelImport",""],[1,"form-text","tex-muted"],[1,"btn","btn-brand","success","sendBtn",3,"ngClass","click"]],template:function(t,e){1&t&&Ns(0,PP,93,43,"ng-container",0),2&t&&$s("ngIf",e.loaded)},directives:[ph,C_,Nw,lh,g_,w_,jw,G_,dh,W_,J_,Ew],pipes:[Fh],styles:['.profile-name[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;color:#fc0000;margin-bottom:30px}.profile-element[_ngcontent-%COMP%]{margin-bottom:20px}.profile-element[_ngcontent-%COMP%]   .profile-label[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-weight:700;font-size:12px}.profile-element[_ngcontent-%COMP%]   .profile-text[_ngcontent-%COMP%]{font-weight:500}.profile-element[_ngcontent-%COMP%]   .profile-text.edit[_ngcontent-%COMP%]{padding-bottom:31px}.custom-file[_ngcontent-%COMP%]{margin-top:5px}.custom-file[_ngcontent-%COMP%]   .custom-file-input[_ngcontent-%COMP%]{border-radius:0;border:2px solid #ddd;min-height:42px;font-size:13px;cursor:pointer}.custom-file[_ngcontent-%COMP%]   .custom-file-input[_ngcontent-%COMP%]:active ~ .custom-file-label[_ngcontent-%COMP%], .custom-file[_ngcontent-%COMP%]   .custom-file-input[_ngcontent-%COMP%]:focus ~ .custom-file-label[_ngcontent-%COMP%]{outline:none;box-shadow:none}.custom-file[_ngcontent-%COMP%]   .custom-file-label[_ngcontent-%COMP%]{padding:11px;border-radius:0;border:2px solid #ddd;min-height:42px;font-size:13px;background-clip:unset;min-width:350px}.custom-file[_ngcontent-%COMP%]   .custom-file-label[_ngcontent-%COMP%]:after{height:42px;border-radius:0;padding:11px;content:"Scegli..."}.custom-file[_ngcontent-%COMP%]   .custom-file-label[_ngcontent-%COMP%]:after:hover{background-color:#ddd}.sendBtn[_ngcontent-%COMP%]{margin-top:23px;border-radius:0;padding:11px 14px}']}),t})();function kP(t,e){if(1&t){const t=Ws();js(0,"div",18),Us(1,"div",19),Tc(2,"safe"),js(3,"div",20),Qs("click",(function(){Xe(t);const e=Xs().$implicit;return Xs(2).readItem(e)})),Aa(4),Bs(),Bs()}if(2&t){const t=Xs().$implicit;Co(1),$s("ngClass",t.showNotice?"show":"")("innerHTML",Nc(2,3,t.text,"html"),Xi),Co(3),Fa(" ",t.showNotice?"Riduci avviso":"Leggi avviso"," ")}}function SP(t,e){if(1&t){const t=Ws();js(0,"div",7,8),js(2,"div",9),js(3,"div",10),js(4,"div",11),Aa(5),Bs(),js(6,"div",12),Aa(7),Tc(8,"date"),Bs(),Bs(),js(9,"div",13),js(10,"div",14),Aa(11," STATO: "),js(12,"span",15),Aa(13),Bs(),Bs(),js(14,"div",16),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).readNotice(n)})),Aa(15),Bs(),Bs(),Bs(),Ns(16,kP,5,6,"div",17),Bs()}if(2&t){const t=e.$implicit;Co(4),$s("ngClass",t.specific?"user":""),Co(1),Ta(t.subject),Co(2),Ta(Nc(8,7,t.date,"dd/MM/yyyy")),Co(5),$s("ngClass",null===t.read?"":"red"),Co(1),Ta(null===t.read?"Da leggere":"Letto"),Co(2),Fa(" Segna come ",null===t.read?"letto":"da leggere"," "),Co(1),$s("ngIf",null===t.read)}}function EP(t,e){if(1&t&&(qs(0),js(1,"div",1),js(2,"div",2),js(3,"div",3),Aa(4,"Avvisi generali"),Bs(),js(5,"div",4),Aa(6,"Avvisi utente"),Bs(),Bs(),Us(7,"div",5),Bs(),Ns(8,SP,17,10,"div",6),Gs()),2&t){const t=Xs();Co(8),$s("ngForOf",t.notices)}}function DP(t,e){1&t&&(qs(0),js(1,"p"),Aa(2," Non ci sono avvisi "),Bs(),Gs())}let AP=(()=>{class t{constructor(t,e){this.dataService=t,this.router=e}ngOnInit(){}ngOnChanges(t){var e;this.notices=null===(e=this.profileData)||void 0===e?void 0:e.notices}readNotice(t){const e=t.id,n=null===t.read?"read":"unread";this.dataService.readNotice(e,n).then(()=>{"read"===n?this.notices.find(t=>t.id===e).read="red":(this.notices.find(t=>t.id===e).read=null,t.showNotice=!1),this.dataService.getFooter().then(t=>{this.dataService.store=t})})}readItem(t){null===t.read&&this.readNotice(t),t.showNotice=!t.showNotice}changeRoute(t){}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-avvisi"]],inputs:{loaded:"loaded",profileData:"profileData"},features:[qa],decls:2,vars:2,consts:[[4,"ngIf"],[1,"row"],[1,"col-12","d-flex","justify-content-end","mb-4"],[1,"notice-title"],[1,"notice-title","user","pl-4"],[1,"col"],["class","notice-element",4,"ngFor","ngForOf"],[1,"notice-element"],["i",""],[1,"notice-header"],[1,"notice-head"],[1,"notice-title",3,"ngClass"],[1,"notice-date"],[1,"notice-info"],[1,"notice-status"],[1,"status",3,"ngClass"],[1,"notice-red",3,"click"],["class","notice-body",4,"ngIf"],[1,"notice-body"],[1,"notice-text",3,"ngClass","innerHTML"],[1,"read-notice","d-none",3,"click"]],template:function(t,e){1&t&&(Ns(0,EP,9,1,"ng-container",0),Ns(1,DP,3,0,"ng-container",0)),2&t&&($s("ngIf",(null==e.notices?null:e.notices.length)>0),Co(1),$s("ngIf",!(null!=e.notices&&e.notices.length)))},directives:[ph,dh,lh],pipes:[Fh,rb],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]   .read-notice[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.notice-title[_ngcontent-%COMP%]{font-size:17px;text-transform:uppercase;font-weight:800;display:flex;align-items:baseline}.notice-title[_ngcontent-%COMP%]:before{content:"";width:15px;height:15px;border-radius:50%;background-color:#e2574c;margin-right:8px}.notice-title.user[_ngcontent-%COMP%]:before{background-color:#4e673b}.notice-element[_ngcontent-%COMP%]{margin-bottom:30px}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-head[_ngcontent-%COMP%]   .notice-date[_ngcontent-%COMP%]{font-size:12px;color:#4e673b;padding-left:23px}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-info[_ngcontent-%COMP%]{text-align:right;font-size:12px}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-info[_ngcontent-%COMP%]   .notice-status[_ngcontent-%COMP%]{color:#4e673b}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-info[_ngcontent-%COMP%]   .notice-status[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{color:#c68021}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-info[_ngcontent-%COMP%]   .notice-status[_ngcontent-%COMP%]   .status.red[_ngcontent-%COMP%]{color:#18935f}.notice-element[_ngcontent-%COMP%]   .notice-header[_ngcontent-%COMP%]   .notice-info[_ngcontent-%COMP%]   .notice-red[_ngcontent-%COMP%]{color:#a3a3a3;cursor:pointer}.notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]{padding-left:23px}.notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]   .notice-text[_ngcontent-%COMP%]{font-size:22px;font-family:Source Sans Pro,sans-serif;line-height:26px;color:#213412;overflow:hidden}.notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]   .notice-text.show[_ngcontent-%COMP%]{max-height:none}.notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]   .read-notice[_ngcontent-%COMP%]{font-size:11px;color:#4e673b;display:flex;cursor:pointer}.notice-element[_ngcontent-%COMP%]   .notice-body[_ngcontent-%COMP%]   .read-notice[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;background-image:url(view.8e7f59dd1dae9424e29a.png);margin-right:6px}']}),t})();function TP(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"div",3),js(2,"div",4),js(3,"div",5),Aa(4),Tc(5,"date"),Bs(),js(6,"div",6),Aa(7),Bs(),Bs(),js(8,"div",7),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).goTo(n)})),Aa(9),Bs(),Bs(),js(10,"div",8),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).removeBookmark(n)})),Us(11,"img",9),Bs(),Bs()}if(2&t){const t=e.$implicit,n=Xs(2);Co(4),Ta(Nc(5,3,t.date,"dd/MM/yyyy")),Co(3),Ta(n.typeTranslate(t.type)),Co(2),Ta(t.title)}}function FP(t,e){if(1&t&&(qs(0),Ns(1,TP,12,6,"div",1),Gs()),2&t){const t=Xs();Co(1),$s("ngForOf",t.bookmarks)}}function NP(t,e){1&t&&(qs(0),js(1,"p"),Aa(2," Non sono stati aggiunti elementi ai preferiti "),Bs(),Gs())}let VP=(()=>{class t{constructor(t,e){this.dataService=t,this.router=e}ngOnInit(){}ngOnChanges(t){var e;this.bookmarks=null===(e=this.profileData)||void 0===e?void 0:e.bookmarks}removeBookmark(t){this.dataService.removeBookmark({type:"remove",item:"doctrine"===t.type?"analysis":t.type,id:+t.id}).then(()=>{this.bookmarks=this.bookmarks.filter(e=>e.id!==t.id)})}goTo(t){this.router.navigate([`${"analysis"===t.type?"doctrine":t.type}/${t.id}`])}typeTranslate(t){switch(t){case"analysis":return"Approfondimenti";case"news":return"Notizie";case"question":return"Quesiti";default:return"Approfondimenti"}}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-preferiti"]],inputs:{loaded:"loaded",profileData:"profileData"},features:[qa],decls:2,vars:2,consts:[[4,"ngIf"],["class","bookmark-element",4,"ngFor","ngForOf"],[1,"bookmark-element"],[1,"bookmark-body"],[1,"bookmark-info"],[1,"bookmark-date"],[1,"bookmark-category"],[1,"bookmark-title",3,"click"],[1,"bookmark-remove",3,"click"],["src","assets/img/close.jpeg","alt","close","alt","Rimuovi elemento","title","Rimuovi elemento",1,"img-fluid"]],template:function(t,e){1&t&&(Ns(0,FP,2,1,"ng-container",0),Ns(1,NP,3,0,"ng-container",0)),2&t&&($s("ngIf",(null==e.bookmarks?null:e.bookmarks.length)>0),Co(1),$s("ngIf",!(null!=e.bookmarks&&e.bookmarks.length)))},directives:[ph,dh],pipes:[Fh],styles:[".bookmark-element[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:10px;border-bottom:1px solid #ddd}.bookmark-element[_ngcontent-%COMP%]   .bookmark-body[_ngcontent-%COMP%]   .bookmark-info[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:5px}.bookmark-element[_ngcontent-%COMP%]   .bookmark-body[_ngcontent-%COMP%]   .bookmark-info[_ngcontent-%COMP%]   .bookmark-date[_ngcontent-%COMP%]{font-size:12px;color:#4e673b;margin-right:10px}.bookmark-element[_ngcontent-%COMP%]   .bookmark-body[_ngcontent-%COMP%]   .bookmark-info[_ngcontent-%COMP%]   .bookmark-category[_ngcontent-%COMP%]{font-size:10px;color:#213412;text-transform:uppercase;font-weight:600}.bookmark-element[_ngcontent-%COMP%]   .bookmark-body[_ngcontent-%COMP%]   .bookmark-title[_ngcontent-%COMP%]{font-size:17px;text-transform:uppercase;font-weight:800;cursor:pointer}.bookmark-element[_ngcontent-%COMP%]   .bookmark-remove[_ngcontent-%COMP%]{min-width:20px;width:20px;height:auto;cursor:pointer;margin-left:20px}"]}),t})();function RP(t,e){if(1&t&&(js(0,"option",11),Aa(1),Bs()),2&t){const t=e.$implicit;$s("value",t),Co(1),Ta(t)}}function LP(t,e){if(1&t&&(js(0,"option",11),Aa(1),Bs()),2&t){const t=e.$implicit;$s("value",t.id),Co(1),Ta(t.text)}}function zP(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",14),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().goTo(n.id)})),Aa(2),Bs(),Gs()}if(2&t){const t=e.$implicit;Co(2),Ta(t.subject)}}let $P=(()=>{class t{constructor(t,e,n){this.dataService=t,this.router=e,this.fb=n}ngOnInit(){this.dataService.getNewsletters().then(t=>this.newsletters=t.list),this.dataService.getNewslettersFilters().then(t=>this.years=t),this.months=this.dataService.months}ngOnChanges(t){var e;this.nlFilter=this.fb.group({years:[null===(e=this.years)||void 0===e?void 0:e.years,I_.required],month:[{value:this.months,disabled:!0}]}),this.nlFilter.get("years").setValue(null,{onlySelf:!0}),this.nlFilter.get("month").setValue(null,{onlySelf:!0})}onChange(t){if("all"===t)this.nlFilter.get("month").setValue(null,{onlySelf:!0}),this.nlFilter.get("month").disable(),this.dataService.getNewsletters().then(t=>{this.selected=!1,this.newsletters=t.list});else{this.nlFilter.get("month").enable();const t=this.nlFilter.get("years").value,e=null!==this.nlFilter.get("month").value?this.nlFilter.get("month").value:null;this.dataService.getFilteredNewsletter(t,e).then(t=>{this.selected=!0,this.newsletters=t.list})}}goTo(t){this.router.navigate(["/newsletter/"+t])}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv),Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-newsletter"]],inputs:{loaded:"loaded",profileData:"profileData"},features:[qa],decls:23,vars:7,consts:[[1,"row"],[1,"form",3,"formGroup"],[1,"col-md-3"],[1,"form-group"],["for","years",1,"label"],["formControlName","years","id","years",1,"form-control",3,"ngModelChange"],["disabled","",3,"value"],["value","all"],[3,"value",4,"ngFor","ngForOf"],["for","month",1,"label"],["formControlName","month","id","month",1,"form-control",3,"ngModelChange"],[3,"value"],[1,"nl-title"],[4,"ngFor","ngForOf"],[1,"nl-element",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),qs(1,1),js(2,"div",2),js(3,"div",3),js(4,"label",4),Aa(5,"Anno"),Bs(),js(6,"select",5),Qs("ngModelChange",(function(t){return e.onChange(t)})),js(7,"option",6),Aa(8,"Seleziona l'anno"),Bs(),js(9,"option",7),Aa(10,"Tutti"),Bs(),Ns(11,RP,2,2,"option",8),Bs(),Bs(),Bs(),js(12,"div",2),js(13,"div",3),js(14,"label",9),Aa(15,"Mese"),Bs(),js(16,"select",10),Qs("ngModelChange",(function(t){return e.onChange(t)})),js(17,"option",11),Aa(18,"Tutti"),Bs(),Ns(19,LP,2,2,"option",8),Bs(),Bs(),Bs(),Gs(),Bs(),js(20,"div",12),Aa(21),Bs(),Ns(22,zP,3,1,"ng-container",13)),2&t&&(Co(1),$s("formGroup",e.nlFilter),Co(6),$s("value",null),Co(4),$s("ngForOf",null==e.years?null:e.years.years),Co(6),$s("value",null),Co(2),$s("ngForOf",e.months),Co(2),Fa("Le newsletter ",!0===e.selected?"selezionate":"dell'ultimo mese",""),Co(1),$s("ngForOf",e.newsletters))},directives:[C_,Nw,G_,w_,jw,W_,J_,dh],styles:[".nl-title[_ngcontent-%COMP%]{font-size:17px;text-transform:uppercase;font-weight:800;margin:20px 0 10px}.nl-element[_ngcontent-%COMP%]{color:#4e673b;cursor:pointer;margin-bottom:10px}"]}),t})();function HP(t,e){if(1&t){const t=Ws();js(0,"app-profilo",11),Qs("editProfile",(function(e){return Xe(t),Xs().editProfileHandler(e)}))("sendPdf",(function(e){return Xe(t),Xs().sendPdfHandler(e)})),Bs()}if(2&t){const t=Xs();$s("profileData",t.profile)("loaded",t.loadProfile)("fileUploaded",t.fileUploaded)}}function jP(t,e){if(1&t&&(js(0,"div",12),Aa(1),Bs()),2&t){const t=Xs();Co(1),Ta(t.mainData.notices)}}function BP(t,e){if(1&t&&Us(0,"app-avvisi",13),2&t){const t=Xs();$s("profileData",t.profile)("loaded",t.loadProfile)}}function UP(t,e){if(1&t&&Us(0,"app-preferiti",13),2&t){const t=Xs();$s("profileData",t.profile)("loaded",t.loadProfile)}}function qP(t,e){if(1&t&&Us(0,"app-newsletter",13),2&t){const t=Xs();$s("profileData",t.profile)("loaded",t.loadProfile)}}const GP=function(){return["/user",1]},WP=function(){return["/user",2]},ZP=function(){return["/user",3]},YP=function(){return["/user",4]};let QP=(()=>{class t{constructor(t,e){this.dataService=t,this.route=e,this.loadProfile=!1}ngOnInit(){this.init(),this.dataService.store.subscribe(t=>{this.mainData=t}),this.sub=this.route.params.subscribe(t=>{this.active=+t.id})}ngOnDestroy(){this.sub.unsubscribe()}ngOnChanges(t){var e;this.mainData.notices=null===(e=this.profile)||void 0===e?void 0:e.notices}init(){return jv(this,void 0,void 0,(function*(){try{this.profile=yield this.dataService.getProfileData()}catch(t){console.log(t)}finally{this.loadProfile=!0}}))}editProfileHandler(t){this.dataService.editProfileData(t).then(t=>t?window.location.reload():null).catch(t=>alert(t.error.error))}sendPdfHandler(t){this.dataService.subscriptionExtension(t).then(()=>this.fileUploaded=!0)}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm))},t.\u0275cmp=fe({type:t,selectors:[["app-area-utente"]],features:[qa],decls:25,vars:15,consts:[[1,"page"],[1,"row"],[1,"col"],["id","user-tab","ngbNav","","role","tablist",1,"nav","nav-tabs",3,"activeId","activeIdChange"],["nav","ngbNav"],["role","presentation",1,"nav-item",3,"ngbNavItem"],["ngbNavLink","",1,"nav-link",3,"routerLink"],["ngbNavContent",""],["class","notice-counter",4,"ngIf"],["id","user-tab-content",1,"col"],[3,"ngbNavOutlet"],[3,"profileData","loaded","fileUploaded","editProfile","sendPdf"],[1,"notice-counter"],[3,"profileData","loaded"]],template:function(t,e){if(1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"ul",3,4),Qs("activeIdChange",(function(t){return e.active=t})),js(5,"li",5),js(6,"a",6),Aa(7,"Profilo e dati"),Bs(),Ns(8,HP,1,3,"ng-template",7),Bs(),js(9,"li",5),js(10,"a",6),Aa(11,"Archivio avvisi "),Ns(12,jP,2,1,"div",8),Bs(),Ns(13,BP,1,2,"ng-template",7),Bs(),js(14,"li",5),js(15,"a",6),Aa(16,"Preferiti"),Bs(),Ns(17,UP,1,2,"ng-template",7),Bs(),js(18,"li",5),js(19,"a",6),Aa(20,"Archivio newsletter"),Bs(),Ns(21,qP,1,2,"ng-template",7),Bs(),Bs(),Bs(),Bs(),js(22,"div",1),js(23,"div",9),Us(24,"div",10),Bs(),Bs(),Bs()),2&t){const t=Vs(4);Co(3),$s("activeId",e.active),Co(2),$s("ngbNavItem",1),Co(1),$s("routerLink",Ic(11,GP)),Co(3),$s("ngbNavItem",2),Co(1),$s("routerLink",Ic(12,WP)),Co(2),$s("ngIf",(null==e.mainData?null:e.mainData.notices)>0),Co(2),$s("ngbNavItem",3),Co(1),$s("routerLink",Ic(13,ZP)),Co(3),$s("ngbNavItem",4),Co(1),$s("routerLink",Ic(14,YP)),Co(5),$s("ngbNavOutlet",t)}},directives:[tx,XC,ex,bv,KC,ph,rx,IP,AP,VP,$P],styles:['.bg-cover{background-size:cover;background-position:50%;background-repeat:no-repeat}#user-tab .nav-item a.nav-link:before,.bg-contain{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand{background-color:#213412}#user-tab{border:none}#user-tab .nav-item{border:none;margin-right:30px}#user-tab .nav-item a.nav-link{font-family:Montserrat,sans-serif;font-size:12px;text-transform:uppercase;color:#213412;display:flex;align-items:center;border-radius:0;border:none;padding-left:0}#user-tab .nav-item a.nav-link.active{border-bottom:1px solid #707070;font-weight:700}#user-tab .nav-item a.nav-link:before{content:"";width:20px;height:20px;margin-right:6px;display:inline-block}#user-tab .nav-item a.nav-link#profilo-tab:before{background-image:url(profilo.736f3f9d9be389dbab41.png)}#user-tab .nav-item a.nav-link#avvisi-tab:before{background-image:url(avvisi.302061f8fa16985900c2.png)}#user-tab .nav-item a.nav-link#quesiti-tab:before{background-image:url(quesiti.ac3622871c75299e3751.png)}#user-tab .nav-item a.nav-link#preferiti-tab:before{background-image:url(preferiti.e72f6827552d768bf363.png)}#user-tab .nav-item a.nav-link#newsletter-tab:before{background-image:url(newsletter.90e0c45184856b9c163f.png)}#user-tab .nav-item a.nav-link .notice-counter{position:relative;width:16px;height:16px;border-radius:50%;background-color:red;color:#fff;font-size:8px;font-weight:600;text-align:center;padding:2px 0;top:-7px;right:-1px;cursor:pointer}#user-tab-content .tab-pane{font-family:Montserrat,sans-serif;font-size:15px;color:#213412;padding-top:30px;padding-bottom:30px}#user-tab-content .tab-pane hr{border-color:#707070;margin-top:30px;margin-bottom:30px}'],encapsulation:2}),t})(),JP=(()=>{class t{constructor(t,e,n){this.dataService=t,this.router=e,this.route=n}canActivate(){return!!this.dataService.isLoggedIn()||(this.router.navigate(["/"],{queryParams:this.route.queryParams}),!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Zv),Qt(mv),Qt(lm))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const KP=["itab"],XP=["utab"],tI=function(t){return{active:t}};function eI(t,e){if(1&t){const t=Ws();js(0,"li",12),js(1,"a",13),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().getContent(n)})),Aa(2),Bs(),Bs()}if(2&t){const t=e.$implicit,n=e.last;Co(1),na("id",null==t?null:t.id),ia("href","#",null==t?null:t.id,"",to),$s("ngClass",kc(4,tI,n)),Co(1),Ta(null==t?null:t.title)}}function nI(t,e){if(1&t){const t=Ws();js(0,"li",12),js(1,"a",14),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().getContent(n)})),Aa(2),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(1),na("id",null==t?null:t.id),ia("href","#",null==t?null:t.id,"",to),Co(1),Ta(null==t?null:t.title)}}function iI(t,e){1&t&&Us(0,"app-loader")}function oI(t,e){if(1&t&&(Us(0,"div",15),Tc(1,"safe")),2&t){const t=Xs();$s("innerHTML",Nc(1,1,null==t.content?null:t.content.text,"html"),Xi)}}let rI=(()=>{class t{constructor(t){this.dataService=t}ngOnInit(){this.init()}init(){return jv(this,void 0,void 0,(function*(){try{this.pages=yield this.dataService.getTags(["informazioni","utilizzo","avvertenze"]),this.info=this.pages.list.filter(t=>"Informazioni"===t.tag||"Avvertenze"===t.tag),this.util=this.pages.list.filter(t=>"Utilizzo"===t.tag),this.info.find(t=>27===t.id?this.getContent(t):null)}catch(t){console.log(t)}}))}getContent(t){return jv(this,void 0,void 0,(function*(){try{this.checkTab(t.tag),this.loading=!0,this.content=yield this.dataService.getPage(t.id)}catch(e){console.log(e)}finally{this.loading=!1}}))}checkTab(t){const e=document.getElementsByClassName("info-tabs");if("Informazioni"===t){const t=e[1].getElementsByClassName("active");if(t[0])return t[0].classList.remove("active")}else{const t=e[0].getElementsByClassName("active");if(t[0])return t[0].classList.remove("active")}}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-informazioni"]],viewQuery:function(t,e){var n;1&t&&(Jc(KP,!0),Jc(XP,!0)),2&t&&(Yc(n=tu())&&(e.infoTab=n.first),Yc(n=tu())&&(e.utilizzoTab=n.first))},decls:18,vars:4,consts:[[1,"page"],[1,"row"],[1,"col"],[1,"info-title"],["id","info-tab","role","tablist",1,"nav","nav-tabs","info-tabs"],["itab",""],["class","nav-item","role","presentation",4,"ngFor","ngForOf"],["id","utilizzo-tab","role","tablist",1,"nav","nav-tabs","info-tabs"],["utab",""],[1,"row","mt-5"],[4,"ngIf"],["class","info-text",3,"innerHTML",4,"ngIf"],["role","presentation",1,"nav-item"],["data-toggle","tab","role","tab","aria-controls","chisiamo","aria-selected","true",1,"nav-link",3,"id","ngClass","href","click"],["data-toggle","tab","role","tab","aria-controls","chisiamo","aria-selected","true",1,"nav-link",3,"id","href","click"],[1,"info-text",3,"innerHTML"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"div",3),Aa(4,"Avvertenze"),Bs(),js(5,"ul",4,5),Ns(7,eI,3,6,"li",6),Bs(),Bs(),js(8,"div",2),js(9,"div",3),Aa(10,"Utilizzo"),Bs(),js(11,"ul",7,8),Ns(13,nI,3,3,"li",6),Bs(),Bs(),Bs(),js(14,"div",9),js(15,"div",2),Ns(16,iI,1,0,"app-loader",10),Ns(17,oI,2,4,"div",11),Bs(),Bs(),Bs()),2&t&&(Co(7),$s("ngForOf",e.info),Co(6),$s("ngForOf",e.util),Co(3),$s("ngIf",e.loading),Co(1),$s("ngIf",!e.loading))},directives:[dh,ph,lh,Yv],pipes:[rb],styles:['.info-title[_ngcontent-%COMP%]{font-weight:700;font-size:24px;text-transform:uppercase;color:#213412;margin-bottom:10px}.info-tabs[_ngcontent-%COMP%]{border:none}.info-tabs[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]{border:none;display:flex;align-items:center}.info-tabs[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   a.nav-link[_ngcontent-%COMP%]{font-size:13px;text-transform:uppercase;color:#213412;display:flex;align-items:center;border-radius:0;padding:3px 0;border:none;border-bottom:1px solid transparent}.info-tabs[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]   a.nav-link.active[_ngcontent-%COMP%]{border-bottom:1px solid #707070}.info-tabs[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]:after{content:"";width:1px;height:17px;background-color:#707070;margin-left:8px;margin-right:8px;display:inline-block}.info-tabs[_ngcontent-%COMP%]   .nav-item[_ngcontent-%COMP%]:last-child:after{display:none}.info-text[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif}.info-text[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto!important}']}),t})();function sI(t,e){1&t&&Us(0,"app-loader")}function aI(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),js(4,"div",3),js(5,"div",4),Aa(6," ALTRE NOTIZIE "),Bs(),Bs(),Us(7,"app-news",6),Gs()),2&t){const t=Xs(2);Co(7),$s("news",t.allLaws)}}function lI(t,e){if(1&t){const t=Ws();js(0,"span",21),Aa(1," Categoria: "),js(2,"span",22),Qs("click",(function(){Xe(t);const e=Xs(3);return e.goTo(null==e.laws||null==e.laws.category?null:e.laws.category.id)})),Aa(3),Bs(),Bs()}if(2&t){const t=Xs(3);Co(3),Ta(null==t.laws||null==t.laws.category?null:t.laws.category.name)}}function cI(t,e){if(1&t&&(js(0,"span",21),Aa(1," Argomento: "),js(2,"span",23),Aa(3),Bs(),Bs()),2&t){const t=Xs(3);Co(3),Ta(null==t.laws?null:t.laws.topic.name)}}function uI(t,e){if(1&t&&(js(0,"span",21),Aa(1," Autorit\xe0 emanante: "),js(2,"span",23),Aa(3),Bs(),Bs()),2&t){const t=Xs(3);Co(3),Ta(null==t.laws||null==t.laws.authority?null:t.laws.authority.name)}}function dI(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("",null==t.laws?null:t.laws.region," - ")}}function hI(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("n. ",null==t.laws?null:t.laws.number,"")}}function pI(t,e){if(1&t&&(js(0,"div",24),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("(",null==t.laws?null:t.laws.gu_bur,")")}}function gI(t,e){if(1&t&&(Us(0,"div",25),Tc(1,"safe")),2&t){const t=Xs(3);$s("innerHTML",Nc(1,1,null==t.laws?null:t.laws.description,"html"),Xi)}}function fI(t,e){if(1&t&&(js(0,"div",14),Aa(1," Sintesi: "),Us(2,"div",26),Tc(3,"safe"),Bs()),2&t){const t=Xs(3);Co(2),$s("innerHTML",Nc(3,1,null==t.laws?null:t.laws.summary,"html"),Xi)}}function mI(t,e){if(1&t&&(js(0,"a",29),Aa(1),Bs()),2&t){const t=e.$implicit;$s("href",t.path,to),Co(1),Ta(null!==(null==t?null:t.description)&&""!==(null==t?null:t.description)?null==t?null:t.description:"Visualizza allegato")}}function vI(t,e){if(1&t&&(js(0,"div",27),Ns(1,mI,2,2,"a",28),Bs()),2&t){const t=Xs(3);Co(1),$s("ngForOf",null==t.laws?null:t.laws.attachments)}}function bI(t,e){if(1&t&&(js(0,"div",30),js(1,"a",31),Tc(2,"safe"),Aa(3,"Vai alla legge vigente"),Bs(),Bs()),2&t){const t=Xs(3);Co(1),$s("href",Nc(2,1,null==t.laws?null:t.laws.url,"url"),to)}}function yI(t,e){if(1&t&&Us(0,"div",32),2&t){const t=Xs(3);$s("innerHTML",null==t.laws?null:t.laws.notes,Xi)}}function _I(t,e){if(1&t&&(qs(0),js(1,"div",7),js(2,"div",4),js(3,"div",8),Aa(4,"Legislazione"),Bs(),js(5,"div",9),Ns(6,lI,4,1,"span",10),Ns(7,cI,4,1,"span",10),Ns(8,uI,4,1,"span",10),Bs(),js(9,"div",11),Ns(10,dI,2,1,"span",0),Aa(11),Tc(12,"date"),Ns(13,hI,2,1,"span",0),Bs(),Ns(14,pI,2,1,"div",12),Ns(15,gI,2,4,"div",13),js(16,"div",14),Aa(17," Oggetto: "),Us(18,"div",15),Tc(19,"safe"),Bs(),Ns(20,fI,4,4,"div",16),Us(21,"div",17),Tc(22,"safe"),Ns(23,vI,2,1,"div",18),Ns(24,bI,4,4,"div",19),Ns(25,yI,1,1,"div",20),Bs(),Bs(),Gs()),2&t){const t=Xs(2);Co(6),$s("ngIf",null==t.laws||null==t.laws.category?null:t.laws.category.name),Co(1),$s("ngIf",null==t.laws?null:t.laws.topic),Co(1),$s("ngIf",null==t.laws||null==t.laws.authority?null:t.laws.authority.name),Co(2),$s("ngIf",null==t.laws?null:t.laws.region),Co(1),Na("",null==t.laws?null:t.laws.type," del ",Nc(12,15,null==t.laws?null:t.laws.date,"dd/MM/yyyy")," "),Co(2),$s("ngIf",null==t.laws?null:t.laws.number),Co(1),$s("ngIf",""!==(null==t.laws?null:t.laws.gu_bur)&&null!==(null==t.laws?null:t.laws.gu_bur)),Co(1),$s("ngIf",null==t.laws?null:t.laws.description),Co(3),$s("innerHTML",Nc(19,18,null==t.laws?null:t.laws.subject,"html"),Xi),Co(2),$s("ngIf",""!==(null==t.laws?null:t.laws.summary)),Co(1),$s("innerHTML",Nc(22,21,null==t.laws?null:t.laws.text,"html"),Xi),Co(2),$s("ngIf",(null==t.laws?null:t.laws.attachments.length)>0),Co(1),$s("ngIf",null==t.laws?null:t.laws.url),Co(1),$s("ngIf",""!==(null==t.laws?null:t.laws.notes))}}function wI(t,e){if(1&t&&(js(0,"div",2),Ns(1,aI,8,1,"ng-container",0),Ns(2,_I,26,24,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",!t.isLoggedId()||t.notAutorized),Co(1),$s("ngIf",t.isLoggedId()&&!t.notAutorized)}}let CI=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.dataService=n,this.completeLoading=!1,this.root="",this.notAutorized=!1}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.root=this.route.snapshot.routeConfig.path.split("/")[0];try{this.laws=yield this.dataService.singleItem(this.root,this.route.snapshot.params.id)}catch(t){this.notAutorized=!0}finally{this.dataService.isLoggedIn()&&!this.notAutorized||(this.allLaws=(yield this.dataService.list(this.root,{year:2021,page:1})).list),this.completeLoading=!0}}))}isLoggedId(){return this.dataService.isLoggedIn()}goTo(t){this.router.navigate(["/laws"],{queryParams:{category:t,accordions:t}})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-single-law-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row","mt-5"],[1,"col"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[3,"news"],[1,"row","mb-3"],[1,"law-section"],[1,"single-law-category"],["class","cat-el",4,"ngIf"],[1,"single-law-title"],["class","single-law-bu",4,"ngIf"],["class","single-law-description",3,"innerHTML",4,"ngIf"],[1,"single-law-body"],[1,"single-law-content",3,"innerHTML"],["class","single-law-body",4,"ngIf"],[1,"single-law-text",3,"innerHTML"],["class","single-law-attachment-container",4,"ngIf"],["class","single-law-link",4,"ngIf"],["class","single-law-notes",3,"innerHTML",4,"ngIf"],[1,"cat-el"],[1,"cat-link",3,"click"],[1,"cat-link"],[1,"single-law-bu"],[1,"single-law-description",3,"innerHTML"],[1,"single-law-content","sintesi",3,"innerHTML"],[1,"single-law-attachment-container"],["class","single-law-attachment","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"single-law-attachment",3,"href"],[1,"single-law-link"],["target","_blank",3,"href"],[1,"single-law-notes",3,"innerHTML"]],template:function(t,e){1&t&&(Ns(0,sI,1,0,"app-loader",0),Ns(1,wI,3,2,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob,Ty,dh],pipes:[Fh,rb],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .single-law-attachment-container[_ngcontent-%COMP%]   .single-law-attachment[_ngcontent-%COMP%]:before, .single-law-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.law-section[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:700;color:#213412;margin-bottom:30px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px}.law-section[_ngcontent-%COMP%], .single-law-category[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif}.single-law-category[_ngcontent-%COMP%]{display:flex;margin-bottom:10px}.single-law-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]{font-size:12px;color:#213412;font-weight:600;text-transform:uppercase}.single-law-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]   .cat-link[_ngcontent-%COMP%]{color:#4e673b;cursor:pointer;text-transform:none}.single-law-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%] + .cat-el[_ngcontent-%COMP%]{margin-left:15px}.single-law-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412;font-size:22px;font-weight:800;margin-bottom:10px}.single-law-bu[_ngcontent-%COMP%]{color:#213412;font-size:16px;font-weight:600;margin-bottom:20px}.single-law-description[_ngcontent-%COMP%]{font-size:20px;color:#4e673b;font-weight:600;margin-bottom:40px;text-align:justify;font-family:Source Sans Pro,sans-serif}.single-law-body[_ngcontent-%COMP%]{font-weight:700;font-size:18px;color:#213412;margin-bottom:40px}.single-law-body[_ngcontent-%COMP%]   .single-law-content.sintesi[_ngcontent-%COMP%]{font-weight:400;font-style:italic}.single-law-text[_ngcontent-%COMP%]{font-family:Inconsolata,monospace;font-size:22px;margin-bottom:30px;text-align:justify}.single-law-link[_ngcontent-%COMP%]{font-size:11px}.single-law-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#4e673b;display:flex}.single-law-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .single-law-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.single-law-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;background-image:url(link.e9edeec46ee129578f0c.png);margin-right:5px}.single-law-notes[_ngcontent-%COMP%]{border-top:1px solid #ddd;padding-top:40px;font-size:16px;line-height:20px;color:#213412;text-align:justify;font-family:Source Sans Pro,sans-serif}.single-law-attachment-container[_ngcontent-%COMP%]{margin-bottom:60px}.single-law-attachment-container[_ngcontent-%COMP%]   .single-law-attachment[_ngcontent-%COMP%]{color:#213412;text-decoration:none;font-size:12px;font-weight:600;text-transform:uppercase;display:flex;margin-bottom:6px}.single-law-attachment-container[_ngcontent-%COMP%]   .single-law-attachment[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(pdf-tools.0329f7f16eb2fc73f297.png);margin-right:6px}']}),t})();function xI(t,e){1&t&&(js(0,"div",3),js(1,"div",4),Us(2,"app-loader"),Bs(),Bs())}function OI(t,e){if(1&t&&(js(0,"div",3),js(1,"div",4),js(2,"div",7),Aa(3),Bs(),Bs(),Bs()),2&t){const t=Xs(2);Co(3),Ta(null==t.content?null:t.content.title)}}function MI(t,e){if(1&t&&(js(0,"div",3),js(1,"div",4),js(2,"div",8),Aa(3),Tc(4,"date"),Bs(),js(5,"div",9),Aa(6),Bs(),Bs(),Bs()),2&t){const t=Xs(2);Co(3),Ta(Nc(4,2,null==t.content?null:t.content.date,"dd/MM/yyyy")),Co(3),Ta(null==t.content?null:t.content.subject)}}function PI(t,e){if(1&t&&(qs(0),Ns(1,OI,4,1,"div",1),Ns(2,MI,7,5,"div",1),js(3,"div",5),js(4,"div",4),Us(5,"div",6),Tc(6,"safe"),Bs(),Bs(),Gs()),2&t){const t=Xs();Co(1),$s("ngIf","newsletter"!==t.root),Co(1),$s("ngIf","newsletter"===t.root),Co(3),$s("innerHTML",Nc(6,3,null==t.content?null:t.content.text,"html"),Xi)}}let II=(()=>{class t{constructor(t,e){this.route=t,this.dataService=e}ngOnInit(){var t;this.root=null===(t=this.route.snapshot.routeConfig)||void 0===t?void 0:t.path.split("/")[0],this.route.params.subscribe(t=>{this.rootId=t.id,this.init(this.root)})}init(t){switch(t){case"network":return this.getPage(23);case"nuovo-sito":return this.getPage(22);case"newsletter":return this.getNewsletter(t,this.rootId);case"page":return this.getPage(this.rootId)}}getPage(t){this.dataService.getPage(t).then(t=>{this.content=t,this.loading=!0}).catch(t=>alert(t)).finally(()=>this.loading=!1)}getNewsletter(t,e){this.dataService.getNewsletter(e).then(t=>{this.content=t,this.loading=!0}).catch(t=>alert(t)).finally(()=>this.loading=!1)}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-simple-page"]],decls:3,vars:2,consts:[[1,"page"],["class","row",4,"ngIf"],[4,"ngIf"],[1,"row"],[1,"col"],[1,"row","mt-5"],[1,"info-text",3,"innerHTML"],[1,"main-title"],[1,"simple-date"],[1,"simple-title"]],template:function(t,e){1&t&&(js(0,"div",0),Ns(1,xI,3,0,"div",1),Ns(2,PI,7,6,"ng-container",2),Bs()),2&t&&(Co(1),$s("ngIf",e.loading),Co(1),$s("ngIf",!e.loading))},directives:[ph,Yv],pipes:[rb,Fh],styles:[".main-title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:32px;font-weight:600}.main-title[_ngcontent-%COMP%], .sub-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412}.sub-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-top:5px;text-align:left;line-height:25px}.section-title[_ngcontent-%COMP%]{background-color:#213412;color:#fff;font-size:25px;font-weight:600;text-align:center;margin-top:20px}.mid-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;text-transform:uppercase}.mid-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#213412}.simple-date[_ngcontent-%COMP%]{font-size:12px;color:#4e673b}.simple-title[_ngcontent-%COMP%]{font-size:18px;font-weight:600;text-transform:uppercase;color:#213412}"]}),t})();function kI(t,e){1&t&&Us(0,"app-loader")}function SI(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),js(4,"div",3),js(5,"div",4),Aa(6," ALTRE NOTIZIE "),Bs(),Bs(),Us(7,"app-news",6),Gs()),2&t){const t=Xs(2);Co(7),$s("news",t.allNews)}}function EI(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",7),Bs(),Bs(),js(4,"div",3),js(5,"div",4),Aa(6," ALTRE NOTIZIE "),Bs(),Bs(),Us(7,"app-news",8),Gs()),2&t){const t=Xs(2);Co(3),$s("text",t.getLimitExceedText()),Co(4),$s("news",t.allNews)}}function DI(t,e){if(1&t){const t=Ws();js(0,"div",30),Qs("click",(function(){Xe(t);const n=e.$implicit,i=Xs(3);return i.goTo(n.id,i.doctrine.categories)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;Co(1),Ta(t.name)}}function AI(t,e){if(1&t){const t=Ws();js(0,"div",35),Qs("click",(function(){return Xe(t),Xs(4).getPub()})),Aa(1,"Pubblicazione associata "),Bs()}}function TI(t,e){if(1&t){const t=Ws();js(0,"div",35),Qs("click",(function(){return Xe(t),Xs(4).getPub()})),Aa(1,"Contenuti correlati"),Bs()}}function FI(t,e){if(1&t){const t=Ws();js(0,"div",31),js(1,"div",32),Qs("click",(function(){return Xe(t),Xs(3).getPdf()})),Aa(2),Bs(),js(3,"div",33),Qs("click",(function(){return Xe(t),Xs(3).bookmark()})),Aa(4),Bs(),Ns(5,AI,2,0,"div",34),Ns(6,TI,2,0,"div",34),Bs()}if(2&t){const t=Xs(3);Co(1),$s("ngClass",t.pdfLoading?"loading":""),Co(1),Fa(" ",t.pdfLoading?"Caricamento...":"Versione pdf"," "),Co(1),$s("ngClass",t.loading?"loading":""),Co(1),Fa(" ",t.added?"Aggiunto":"Aggiungi ai preferiti"," "),Co(1),$s("ngIf",t.doctrine.exeo_product),Co(1),$s("ngIf",t.doctrine.related.length>0)}}function NI(t,e){1&t&&Us(0,"div",36),2&t&&$s("innerHTML",Xs(3).doctrine.subheading,Xi)}function VI(t,e){if(1&t&&(js(0,"div",37),Aa(1),Tc(2,"date"),Bs()),2&t){const t=Xs(3);Co(1),Ta(Nc(2,1,t.doctrine.date,"dd/MM/yyyy"))}}function RI(t,e){if(1&t&&(js(0,"div",38),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Ta(t.doctrine.title)}}function LI(t,e){if(1&t&&(js(0,"div",39),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("parte ",t.doctrine.puntata,"")}}function zI(t,e){1&t&&Us(0,"div",40),2&t&&$s("innerHTML",Xs(3).doctrine.subtitle,Xi)}function $I(t,e){if(1&t&&(js(0,"div",41),js(1,"div",42),Aa(2),js(3,"b"),Aa(4),Bs(),Bs(),js(5,"div",43),Aa(6),Bs(),Bs()),2&t){const t=e.$implicit;Co(2),Fa("",t.titolo," "),Co(2),Ta(t.autore),Co(2),Ta(t.qualifica)}}function HI(t,e){1&t&&(Us(0,"div",44),Tc(1,"safe")),2&t&&$s("innerHTML",Nc(1,1,Xs(3).doctrine.summary,"html"),Xi)}function jI(t,e){if(1&t&&(Us(0,"div",45),Tc(1,"safe")),2&t){const t=Xs(3);$s("ngClass",t.loggedIn||null!=t.doctrine&&t.doctrine.free?"full-text":"preview-text")("innerHTML",Nc(1,2,t.doctrine.text,"html"),Xi)}}function BI(t,e){if(1&t&&(js(0,"div",46),Us(1,"app-contenuto-acquistabile",47),Bs()),2&t){const t=Xs(3);Co(1),$s("acquistabile",null==t.doctrine?null:t.doctrine.acquistabile)("id",null==t.doctrine?null:t.doctrine.id)("type","analysis")}}function UI(t,e){if(1&t&&(js(0,"a",50),Aa(1),Bs()),2&t){const t=e.$implicit;$s("href",t.path,to),Co(1),Ta(t.description.length>0?t.description:"Visualizza allegato")}}function qI(t,e){if(1&t&&(js(0,"div",48),Ns(1,UI,2,2,"a",49),Bs()),2&t){const t=Xs(3);Co(1),$s("ngForOf",null==t.doctrine?null:t.doctrine.attachments)}}function GI(t,e){1&t&&(Us(0,"div",51),Tc(1,"safe")),2&t&&$s("innerHTML",Nc(1,1,Xs(3).doctrine.notes,"html"),Xi)}function WI(t,e){if(1&t&&(js(0,"div",52),js(1,"div",4),js(2,"div",53),Aa(3,"Pubblicazione\xa0Associata"),Bs(),js(4,"div",54),js(5,"div",55),js(6,"div",56),Aa(7,"Categoria"),Bs(),Aa(8),Bs(),js(9,"a",57),Tc(10,"safe"),js(11,"div",56),Aa(12,"Titolo"),Bs(),Aa(13),Bs(),Bs(),Bs(),Bs()),2&t){const t=Xs(3);Co(8),Fa(" ",t.doctrine.exeo_product.category," "),Co(1),$s("href",Nc(10,3,t.doctrine.exeo_product.url,"url"),to),Co(4),Fa(" ",t.doctrine.exeo_product.title," ")}}function ZI(t,e){if(1&t){const t=Ws();js(0,"div",61),js(1,"div",62),js(2,"div",63),Aa(3," Tipo "),js(4,"div",64),Aa(5),Bs(),Bs(),Bs(),js(6,"a",65),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(4).goToPage(n)})),js(7,"div",63),Aa(8,"Titolo"),Bs(),Aa(9),Bs(),Bs()}if(2&t){const t=e.$implicit,n=Xs(4);Co(5),Ta(n.getRelatedName(t.type)),Co(4),Fa(" ",t.title," ")}}function YI(t,e){if(1&t&&(js(0,"div",58),js(1,"div",4),js(2,"div",59),Aa(3,"Correlati"),Bs(),Ns(4,ZI,10,2,"div",60),Bs(),Bs()),2&t){const t=Xs(3);Co(4),$s("ngForOf",t.doctrine.related)}}function QI(t,e){if(1&t&&(qs(0),js(1,"div",9),js(2,"div",4),js(3,"div",10),Aa(4,"Dottrina"),Bs(),js(5,"div",11),Aa(6),Bs(),js(7,"div",12),Ns(8,DI,2,1,"div",13),Bs(),Ns(9,FI,7,6,"div",14),Ns(10,NI,1,1,"div",15),js(11,"div",16),Ns(12,VI,3,4,"div",17),Ns(13,RI,2,1,"div",18),Ns(14,LI,2,1,"div",19),Ns(15,zI,1,1,"div",20),Ns(16,$I,7,3,"div",21),Ns(17,HI,2,4,"div",22),js(18,"div",23),Ns(19,jI,2,5,"div",24),Ns(20,BI,2,3,"div",25),Bs(),Ns(21,qI,2,1,"div",26),Ns(22,GI,2,4,"div",27),Bs(),Bs(),Bs(),Ns(23,WI,14,6,"div",28),Ns(24,YI,5,1,"div",29),Gs()),2&t){const t=Xs(2);Co(5),$s("ngClass",null!=t.doctrine&&t.doctrine.highlight?"text-danger":""),Co(1),Ta(null==t.doctrine?null:t.doctrine.short_title),Co(2),$s("ngForOf",t.doctrine.categories),Co(1),$s("ngIf",t.loggedIn||(null==t.doctrine?null:t.doctrine.free)),Co(1),$s("ngIf",t.doctrine.subheading),Co(2),$s("ngIf",t.doctrine.date),Co(1),$s("ngIf",t.doctrine.title),Co(1),$s("ngIf",t.doctrine.puntata),Co(1),$s("ngIf",t.doctrine.subtitle),Co(1),$s("ngForOf",t.doctrine.authors),Co(1),$s("ngIf",t.doctrine.summary),Co(2),$s("ngIf",t.doctrine.text),Co(1),$s("ngIf",!(null!=t.doctrine&&t.doctrine.show_full)),Co(1),$s("ngIf",(null==t.doctrine?null:t.doctrine.attachments.length)>0),Co(1),$s("ngIf",t.doctrine.notes),Co(1),$s("ngIf",t.doctrine.exeo_product),Co(1),$s("ngIf",t.doctrine.related.length>0)}}function JI(t,e){if(1&t&&(js(0,"div",2),Ns(1,SI,8,1,"ng-container",0),Ns(2,EI,8,2,"ng-container",0),Ns(3,QI,25,17,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",t.notAutorized),Co(1),$s("ngIf",t.hourlyLimitExceed||t.dailyLimitExceed),Co(1),$s("ngIf",!t.notAutorized&&!t.hourlyLimitExceed&&!t.dailyLimitExceed)}}let KI=(()=>{class t{constructor(t,e,n,i){this.router=t,this.route=e,this.dataService=n,this.viewportScroller=i,this.hourlyLimitExceed=!1,this.dailyLimitExceed=!1}ngOnInit(){this.notAutorized&&this.redirectUnauthorized(),this.init()}init(){var t,e;return jv(this,void 0,void 0,(function*(){this.viewportScroller.scrollToPosition([0,0]),this.root=null===(t=this.route.snapshot.routeConfig)||void 0===t?void 0:t.path.split("/")[0],this.route.params.subscribe(t=>this.rootId=t.id),this.loggedIn=this.dataService.isLoggedIn();try{this.doctrine=yield this.dataService.singleItem(this.root,this.rootId)}catch(n){this.doctrine=null}if(this.doctrine||(this.notAutorized=!0,this.redirectUnauthorized()),!(null===(e=this.doctrine)||void 0===e?void 0:e.free))if(this.loggedIn)try{const t=yield this.dataService.checkCounter("analysis");if((t.daily_limit>0||t.hourly_limit>0)&&(t.hourly_limit>0&&t.count>t.hourly_limit&&(this.hourlyLimitExceed=!0),t.daily_limit>0&&t.daily>t.daily_limit&&(this.dailyLimitExceed=!0)),!this.hourlyLimitExceed&&!this.dailyLimitExceed){this.doctrine=yield this.dataService.singleItem(this.root,this.rootId);try{yield this.dataService.setCounter("analysis")}catch(n){console.log(n.message)}}}catch(i){this.notAutorized=!0,this.redirectUnauthorized()}else this.notAutorized=!1;this.completeLoading=!0}))}getLimitExceedText(){return this.dailyLimitExceed?"ATTENZIONE LIMITE GIORNALIERO DI ARTICOLI USUFRUIBILI RAGGIUNTO":this.hourlyLimitExceed?"ATTENZIONE LIMITE ORARIO DI ARTICOLI USUFRUIBILI RAGGIUNTO":""}redirectUnauthorized(){this.router.navigate(["/doctrine"],{queryParams:{state:"unauthorized"}})}isLoggedId(){return this.dataService.isLoggedIn()}goTo(t,e){const n=e.findIndex(e=>e.id===t),i=e.slice(0,n+1).map(t=>t.id);this.router.navigate(["/doctrine"],{queryParams:{category:t,accordions:i.toString()}})}getRelatedName(t){switch(t){case"sentence":return"Sentenza";case"event":return"Evento";case"news":return"Notizia";default:return"Dottrina"}}goToPage(t){let e;switch(t.type){case"analysis":e="doctrine";break;case"sentence":e="sentences";break;case"event":e="events";break;case"news":e="news";break;default:return}this.router.navigateByUrl(`${e}/${t.id}`).then(()=>this.init())}getPdf(){this.pdfLoading=!0,this.dataService.getPdf("analysis",this.rootId).then(t=>this.pdfUrl=t).catch(({e:t})=>alert(t.error?t.error:t)).finally(()=>{this.pdfLoading=!1,window.open(this.pdfUrl,"_blank")})}bookmark(){this.loading=!0,this.dataService.addBookmark({type:"add",item:"analysis",id:+this.rootId}).then(()=>{this.loading=!1,this.added=!0}).catch(t=>alert(t.error.error)).finally(()=>this.loading=!1)}getPub(){this.viewportScroller.scrollToAnchor("exeosec")}getCorrelati(){this.viewportScroller.scrollToAnchor("exeocorr")}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv),Rs(Zh))},t.\u0275cmp=fe({type:t,selectors:[["app-single-doctrine-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row","mt-5"],[1,"col"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],["root","news",3,"news"],[3,"text"],[3,"news"],[1,"row","mb-3"],[1,"doctrine-section"],[1,"doctrine-short-title",3,"ngClass"],[1,"doctrine-bradcrumb"],["class","element",3,"click",4,"ngFor","ngForOf"],["class","doctrine-functions",4,"ngIf"],["class","doctrine-subheader",3,"innerHTML",4,"ngIf"],[1,"px-5"],["class","doctrine-date",4,"ngIf"],["class","doctrine-title",4,"ngIf"],["class","text-center","style","font-size: 18px",4,"ngIf"],["class","doctrine-subtitle",3,"innerHTML",4,"ngIf"],["class","doctrine-author",4,"ngFor","ngForOf"],["class","doctrine-summary",3,"innerHTML",4,"ngIf"],[1,"doctrine-text-container"],["class","doctrine-text",3,"ngClass","innerHTML",4,"ngIf"],["class","reserved",4,"ngIf"],["class","doctrine-attachment-container",4,"ngIf"],["class","doctrine-notes",3,"innerHTML",4,"ngIf"],["class","row exeo","id","exeosec",4,"ngIf"],["class","row related","id","exeocorr",4,"ngIf"],[1,"element",3,"click"],[1,"doctrine-functions"],[1,"doctrine-func","pdf",3,"ngClass","click"],[1,"doctrine-func","bookmark",3,"ngClass","click"],["class","doctrine-func pub",3,"click",4,"ngIf"],[1,"doctrine-func","pub",3,"click"],[1,"doctrine-subheader",3,"innerHTML"],[1,"doctrine-date"],[1,"doctrine-title"],[1,"text-center",2,"font-size","18px"],[1,"doctrine-subtitle",3,"innerHTML"],[1,"doctrine-author"],[1,"author-name"],[1,"author-role"],[1,"doctrine-summary",3,"innerHTML"],[1,"doctrine-text",3,"ngClass","innerHTML"],[1,"reserved"],[3,"acquistabile","id","type"],[1,"doctrine-attachment-container"],["class","doctrine-attachment","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"doctrine-attachment",3,"href"],[1,"doctrine-notes",3,"innerHTML"],["id","exeosec",1,"row","exeo"],[1,"exeo-section-title"],[1,"exeo-row"],[1,"exeo-element"],[1,"exeo-title"],["target","_blank",1,"exeo-element","exeo-link",3,"href"],["id","exeocorr",1,"row","related"],[1,"related-section-title"],["class","related-row",4,"ngFor","ngForOf"],[1,"related-row"],[1,"related-element"],[1,"related-title"],[1,"font-weight-normal"],[1,"related-element","related-link",3,"click"]],template:function(t,e){1&t&&(Ns(0,kI,1,0,"app-loader",0),Ns(1,JI,4,3,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob,Ty,lh,dh,yM],pipes:[Fh,rb],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .doctrine-attachment-container[_ngcontent-%COMP%]   .doctrine-attachment[_ngcontent-%COMP%]:before, .doctrine-functions[_ngcontent-%COMP%]   .doctrine-func[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.doctrine-section[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:700;color:#213412;margin-bottom:30px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px}.doctrine-short-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412;text-transform:uppercase;font-size:32px;line-height:39px;font-weight:800}.doctrine-bradcrumb[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;color:#4e673b;display:inline-block;margin-right:8px;cursor:pointer;font-size:15px;font-weight:600}.doctrine-bradcrumb[_ngcontent-%COMP%]   .element[_ngcontent-%COMP%] + .element[_ngcontent-%COMP%]{padding-left:8px;border-left:1px solid #4e673b}.doctrine-functions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin:20px auto 40px;font-family:Source Sans Pro,sans-serif}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func[_ngcontent-%COMP%]{font-size:11px;text-transform:uppercase;color:#213412;font-weight:600;margin-right:20px;display:flex;cursor:pointer}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;margin-right:6px}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func.pdf[_ngcontent-%COMP%]:before{background-image:url(pdf.f3bba44809423bdfb2fe.svg)}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func.bookmark[_ngcontent-%COMP%]:before{background-image:url(preferiti.e72f6827552d768bf363.png)}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func.pub[_ngcontent-%COMP%]:before{background-image:url(download.0e9ff0886110cb7f2a12.png)}.doctrine-functions[_ngcontent-%COMP%]   .doctrine-func.loading[_ngcontent-%COMP%]:before{background-image:url(loader.42aaa181adb3af3bef08.gif)}.doctrine-subheader[_ngcontent-%COMP%]{font-family:Source Sans Pro,sans-serif;font-size:20px;color:#4e673b;font-weight:600;margin-bottom:40px;text-align:justify}.doctrine-date[_ngcontent-%COMP%]{font-family:"PT Serif",serif;font-size:18px;text-align:right;margin-bottom:40px}.doctrine-subtitle[_ngcontent-%COMP%], .doctrine-title[_ngcontent-%COMP%]{font-family:"PT Serif",serif;text-align:center;font-size:32px;font-weight:700;color:#414141}.doctrine-subtitle[_ngcontent-%COMP%]{font-size:22px;font-style:italic;margin-top:20px;margin-bottom:30px;color:#414141}.doctrine-author[_ngcontent-%COMP%]{font-family:"PT Serif",serif;font-size:18px;text-align:center;margin-top:20px;color:#414141}.doctrine-author[_ngcontent-%COMP%]   .author-role[_ngcontent-%COMP%]{font-size:15px}.doctrine-summary[_ngcontent-%COMP%]{font-family:"PT Serif",serif;font-size:18px;margin-top:60px;color:#414141}.doctrine-text-container[_ngcontent-%COMP%]{position:relative;margin-bottom:40px}.doctrine-text[_ngcontent-%COMP%]{font-family:"PT Serif",serif;font-size:24px;font-weight:500;margin-top:100px;text-align:justify;color:#414141}.reserved[_ngcontent-%COMP%]{position:relative;width:100%;background-color:#fff;z-index:999;padding:30px 0 0}.reserved[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-120px;left:0;height:120px;width:100%;z-index:1000;background:linear-gradient(180deg,hsla(0,0%,100%,0) 0,#fff 60%)}.doctrine-attachment-container[_ngcontent-%COMP%]{margin-bottom:60px}.doctrine-attachment-container[_ngcontent-%COMP%]   .doctrine-attachment[_ngcontent-%COMP%]{color:#213412;text-decoration:none;font-size:12px;font-weight:600;text-transform:uppercase;display:flex;margin-bottom:6px}.doctrine-attachment-container[_ngcontent-%COMP%]   .doctrine-attachment[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(pdf-tools.0329f7f16eb2fc73f297.png);margin-right:6px}.doctrine-notes[_ngcontent-%COMP%]{font-family:"PT Serif",serif;border-top:1px solid #ddd;padding-top:40px;font-size:16px;line-height:20px;text-align:justify;color:#414141}.exeo[_ngcontent-%COMP%]{margin-top:60px}.exeo[_ngcontent-%COMP%]   .exeo-section-title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;word-break:keep-all;color:#414141;display:flex;align-items:center}.exeo[_ngcontent-%COMP%]   .exeo-section-title[_ngcontent-%COMP%]:after{content:"";width:100%;height:1px;background-color:#414141;margin-left:35px}.exeo[_ngcontent-%COMP%]   .exeo-row[_ngcontent-%COMP%]{display:flex;padding-bottom:15px;flex-grow:1}.exeo[_ngcontent-%COMP%]   .exeo-row[_ngcontent-%COMP%]   .exeo-element[_ngcontent-%COMP%]{padding:15px 50px 15px 0;font-size:15px;color:#414141}.exeo[_ngcontent-%COMP%]   .exeo-row[_ngcontent-%COMP%]   .exeo-element[_ngcontent-%COMP%]   .exeo-title[_ngcontent-%COMP%]{font-weight:600;flex-grow:1}.exeo[_ngcontent-%COMP%]   .exeo-row[_ngcontent-%COMP%]   .exeo-element.exeo-link[_ngcontent-%COMP%]{color:#414141;font-weight:600;cursor:pointer}.exeo[_ngcontent-%COMP%]   .exeo-row[_ngcontent-%COMP%]   .exeo-element.exeo-link[_ngcontent-%COMP%]:hover{text-decoration:none}.related[_ngcontent-%COMP%]   .related-section-title[_ngcontent-%COMP%]{font-size:15px;font-weight:700;word-break:keep-all;color:#414141;display:flex;align-items:center}.related[_ngcontent-%COMP%]   .related-section-title[_ngcontent-%COMP%]:after{content:"";width:100%;height:1px;background-color:#414141;margin-left:35px}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]{padding-bottom:15px;display:flex}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element[_ngcontent-%COMP%]{padding:15px 50px 15px 0;font-size:15px;color:#414141;display:flex;flex-direction:column}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element[_ngcontent-%COMP%]   .related-title[_ngcontent-%COMP%]{font-weight:600;flex-grow:1}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element.related-link[_ngcontent-%COMP%]{color:#414141;font-weight:600;cursor:pointer}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%]   .related-element.related-link[_ngcontent-%COMP%]:hover{text-decoration:none}.related[_ngcontent-%COMP%]   .related-row[_ngcontent-%COMP%] + .related-row[_ngcontent-%COMP%]{border-top:1px solid #ddd;padding-top:15px}']}),t})();function XI(t,e){1&t&&Us(0,"app-loader")}function tk(t,e){if(1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),js(4,"div",3),js(5,"div",4),Aa(6," ALTRE NOTIZIE "),Bs(),Bs(),Us(7,"app-news",6),Gs()),2&t){const t=Xs(2);Co(7),$s("news",t.allPractices)}}function ek(t,e){if(1&t){const t=Ws();js(0,"span",21),Aa(1," Categoria: "),js(2,"span",22),Qs("click",(function(){Xe(t);const e=Xs(3);return e.goTo(null==e.practices||null==e.practices.category?null:e.practices.category.id)})),Aa(3),Bs(),Bs()}if(2&t){const t=Xs(3);Co(3),Ta(null==t.practices||null==t.practices.category?null:t.practices.category.name)}}function nk(t,e){if(1&t&&(js(0,"span",21),Aa(1," Argomento: "),js(2,"span",23),Aa(3),Bs(),Bs()),2&t){const t=Xs(3);Co(3),Ta(null==t.practices?null:t.practices.topic.name)}}function ik(t,e){if(1&t&&(js(0,"span",21),Aa(1," Autorit\xe0 emanante: "),js(2,"span",23),Aa(3),Bs(),Bs()),2&t){const t=Xs(3);Co(3),Ta(null==t.practices||null==t.practices.authority?null:t.practices.authority.name)}}function ok(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("",null==t.practices?null:t.practices.region," - ")}}function rk(t,e){if(1&t&&(js(0,"span"),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("n. ",null==t.practices?null:t.practices.number,"")}}function sk(t,e){if(1&t&&(js(0,"div",24),Aa(1),Bs()),2&t){const t=Xs(3);Co(1),Fa("(",null==t.practices?null:t.practices.gu_bur,")")}}function ak(t,e){if(1&t&&(Us(0,"div",25),Tc(1,"safe")),2&t){const t=Xs(3);$s("innerHTML",Nc(1,1,null==t.practices?null:t.practices.description,"html"),Xi)}}function lk(t,e){if(1&t&&(js(0,"div",14),Aa(1," Sintesi: "),Us(2,"div",26),Tc(3,"safe"),Bs()),2&t){const t=Xs(3);Co(2),$s("innerHTML",Nc(3,1,null==t.practices?null:t.practices.summary,"html"),Xi)}}function ck(t,e){if(1&t&&(js(0,"a",29),Aa(1),Bs()),2&t){const t=e.$implicit;$s("href",t.path,to),Co(1),Ta(null!==(null==t?null:t.description)&&""!==(null==t?null:t.description)?null==t?null:t.description:"Visualizza allegato")}}function uk(t,e){if(1&t&&(js(0,"div",27),Ns(1,ck,2,2,"a",28),Bs()),2&t){const t=Xs(3);Co(1),$s("ngForOf",null==t.practices?null:t.practices.attachments)}}function dk(t,e){if(1&t&&(js(0,"div",30),js(1,"a",31),Tc(2,"safe"),Aa(3,"Vai alla legge vigente"),Bs(),Bs()),2&t){const t=Xs(3);Co(1),$s("href",Nc(2,1,null==t.practices?null:t.practices.url,"url"),to)}}function hk(t,e){if(1&t&&Us(0,"div",32),2&t){const t=Xs(3);$s("innerHTML",null==t.practices?null:t.practices.notes,Xi)}}function pk(t,e){if(1&t&&(qs(0),js(1,"div",7),js(2,"div",4),js(3,"div",8),Aa(4,"Prassi"),Bs(),js(5,"div",9),Ns(6,ek,4,1,"span",10),Ns(7,nk,4,1,"span",10),Ns(8,ik,4,1,"span",10),Bs(),js(9,"div",11),Ns(10,ok,2,1,"span",0),Aa(11),Tc(12,"date"),Ns(13,rk,2,1,"span",0),Bs(),Ns(14,sk,2,1,"div",12),Ns(15,ak,2,4,"div",13),js(16,"div",14),Aa(17," Oggetto: "),Us(18,"div",15),Tc(19,"safe"),Bs(),Ns(20,lk,4,4,"div",16),Us(21,"div",17),Tc(22,"safe"),Ns(23,uk,2,1,"div",18),Ns(24,dk,4,4,"div",19),Ns(25,hk,1,1,"div",20),Bs(),Bs(),Gs()),2&t){const t=Xs(2);Co(6),$s("ngIf",null==t.practices||null==t.practices.category?null:t.practices.category.name),Co(1),$s("ngIf",null==t.practices?null:t.practices.topic),Co(1),$s("ngIf",null==t.practices||null==t.practices.authority?null:t.practices.authority.name),Co(2),$s("ngIf",null==t.practices?null:t.practices.region),Co(1),Na("",null==t.practices?null:t.practices.type," del ",Nc(12,15,null==t.practices?null:t.practices.date,"dd/MM/yyyy")," "),Co(2),$s("ngIf",null==t.practices?null:t.practices.number),Co(1),$s("ngIf",null!==(null==t.practices?null:t.practices.gu_bur)&&""!==(null==t.practices?null:t.practices.gu_bur)),Co(1),$s("ngIf",null==t.practices?null:t.practices.description),Co(3),$s("innerHTML",Nc(19,18,null==t.practices?null:t.practices.subject,"html"),Xi),Co(2),$s("ngIf",""!==(null==t.practices?null:t.practices.summary)),Co(1),$s("innerHTML",Nc(22,21,null==t.practices?null:t.practices.text,"html"),Xi),Co(2),$s("ngIf",(null==t.practices?null:t.practices.attachments.length)>0),Co(1),$s("ngIf",null==t.practices?null:t.practices.url),Co(1),$s("ngIf",""!==(null==t.practices?null:t.practices.notes))}}function gk(t,e){if(1&t&&(js(0,"div",2),Ns(1,tk,8,1,"ng-container",0),Ns(2,pk,26,24,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",!t.isLoggedId()||t.notAutorized),Co(1),$s("ngIf",t.isLoggedId()&&!t.notAutorized)}}let fk=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.dataService=n,this.completeLoading=!1,this.root="",this.notAutorized=!1}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.root=this.route.snapshot.routeConfig.path.split("/")[0];try{this.practices=yield this.dataService.singleItem(this.root,this.route.snapshot.params.id)}catch(t){this.notAutorized=!0}finally{this.dataService.isLoggedIn()&&!this.notAutorized||(this.allPractices=(yield this.dataService.list(this.root,{year:2021,page:1})).list),this.completeLoading=!0}}))}isLoggedId(){return this.dataService.isLoggedIn()}goTo(t){this.router.navigate(["/practice"],{queryParams:{category:t,accordions:t}})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-single-practice-page"]],decls:2,vars:2,consts:[[4,"ngIf"],["class","page",4,"ngIf"],[1,"page"],[1,"row","mt-5"],[1,"col"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[3,"news"],[1,"row","mb-3"],[1,"practice-section"],[1,"single-practice-category"],["class","cat-el",4,"ngIf"],[1,"single-practice-title"],["class","single-practice-bu",4,"ngIf"],["class","single-practice-description",3,"innerHTML",4,"ngIf"],[1,"single-practice-body"],[1,"single-practice-content",3,"innerHTML"],["class","single-practice-body",4,"ngIf"],[1,"single-practice-text",3,"innerHTML"],["class","single-practice-attachment-container",4,"ngIf"],["class","single-practice-link",4,"ngIf"],["class","single-practice-notes",3,"innerHTML",4,"ngIf"],[1,"cat-el"],[1,"cat-link",3,"click"],[1,"cat-link"],[1,"single-practice-bu"],[1,"single-practice-description",3,"innerHTML"],[1,"single-practice-content","sintesi",3,"innerHTML"],[1,"single-practice-attachment-container"],["class","single-practice-attachment","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"single-practice-attachment",3,"href"],[1,"single-practice-link"],["target","_blank",3,"href"],[1,"single-practice-notes",3,"innerHTML"]],template:function(t,e){1&t&&(Ns(0,XI,1,0,"app-loader",0),Ns(1,gk,3,2,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob,Ty,dh],pipes:[Fh,rb],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .single-practice-attachment-container[_ngcontent-%COMP%]   .single-practice-attachment[_ngcontent-%COMP%]:before, .single-practice-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.practice-section[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:700;color:#213412;margin-bottom:30px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px;font-family:Source Sans Pro,sans-serif}.single-practice-category[_ngcontent-%COMP%]{display:flex;margin-bottom:10px;font-family:Source Sans Pro,sans-serif}.single-practice-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]{font-size:12px;color:#213412;font-weight:600;text-transform:uppercase}.single-practice-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%]   .cat-link[_ngcontent-%COMP%]{color:#4e673b;cursor:pointer;text-transform:none}.single-practice-category[_ngcontent-%COMP%]   .cat-el[_ngcontent-%COMP%] + .cat-el[_ngcontent-%COMP%]{margin-left:15px}.single-practice-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412;font-size:22px;font-weight:800;margin-bottom:10px}.single-practice-bu[_ngcontent-%COMP%]{color:#213412;font-size:16px;font-weight:600;margin-bottom:20px}.single-practice-description[_ngcontent-%COMP%]{font-size:20px;color:#4e673b;font-weight:600;margin-bottom:40px;text-align:justify;font-family:Source Sans Pro,sans-serif}.single-practice-body[_ngcontent-%COMP%]{font-weight:700;font-size:18px;color:#213412}.single-practice-body[_ngcontent-%COMP%]   .single-practice-content.sintesi[_ngcontent-%COMP%]{font-weight:400;font-style:italic}.single-practice-text[_ngcontent-%COMP%]{font-family:Courier Prime,sans-serif;margin-bottom:30px;text-align:justify}.single-practice-link[_ngcontent-%COMP%]{font-size:11px}.single-practice-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#4e673b;text-decoration:none;display:flex}.single-practice-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.single-practice-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:16px;height:16px;background-image:url(link.e9edeec46ee129578f0c.png);margin-right:5px}.single-practice-notes[_ngcontent-%COMP%]{border-top:1px solid #ddd;padding-top:40px;font-size:16px;line-height:20px;color:#213412;text-align:justify}.single-practice-attachment-container[_ngcontent-%COMP%]{margin-bottom:60px}.single-practice-attachment-container[_ngcontent-%COMP%]   .single-practice-attachment[_ngcontent-%COMP%]{color:#213412;text-decoration:none;font-size:12px;font-weight:600;text-transform:uppercase;display:flex;margin-bottom:6px}.single-practice-attachment-container[_ngcontent-%COMP%]   .single-practice-attachment[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:14px;height:16px;background-image:url(pdf-tools.0329f7f16eb2fc73f297.png);margin-right:6px}']}),t})(),mk=(()=>{class t{constructor(t){this.router=t}ngOnInit(){const t=this.router.url.split("?");if(1===t.length)alert("Route not found #0");else{let e=this.objectFromQueryString(t[1]);switch(t[0]){case"/site/Approfondimento_Dettaglio.asp":e.ID?document.location.href="doctrine/"+e.ID:alert("Route not found #2");break;case"/site/LegislazioneDettaglio.asp":e.IDPagina?document.location.href="laws/"+e.IDPagina:alert("Route not found #2");break;case"/site/PrassiDettaglio.asp":e.IDPagina?document.location.href="practice/"+e.IDPagina:alert("Route not found #2");break;case"/site/Giurisprudenza_Sentenza.asp":e.ID?document.location.href="sentences/"+e.ID:alert("Route not found #2");break;case"/site/Quesito_Dettaglio.asp":e.ID?document.location.href="questions/"+e.ID:alert("Route not found #2");break;case"/site/d_Event.asp":e.IDEvent?document.location.href="events/"+e.IDEvent:alert("Route not found #2");break;case"/site/Video.asp":e.ID?document.location.href="video/"+e.ID:alert("Route not found #2");break;default:alert("Route not found #1")}}}objectFromQueryString(t){return t.split("&").reduce((t,e,n,i)=>{let o=e.split("=");return t[decodeURIComponent(o[0])]=1===o.length?"":decodeURIComponent(o[1]).replace("+"," "),t},{})}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-redirect"]],decls:2,vars:0,template:function(t,e){1&t&&(js(0,"p"),Aa(1,"Attendere..."),Bs())},styles:[""]}),t})();function vk(t,e){1&t&&Us(0,"app-loader")}function bk(t,e){1&t&&(qs(0),js(1,"div",3),js(2,"div",4),Us(3,"app-click-and-navigate",5),Bs(),Bs(),Gs())}function yk(t,e){if(1&t&&(qs(0),js(1,"div",6),Us(2,"iframe",7),Tc(3,"safeHtml"),Bs(),Gs()),2&t){const t=Xs(2);Co(2),$s("srcdoc",Fc(3,1,t.html),Xi)}}function _k(t,e){if(1&t&&(js(0,"div",2),Ns(1,bk,4,0,"ng-container",0),Ns(2,yk,4,3,"ng-container",0),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",!t.isLoggedId()),Co(1),$s("ngIf",t.isLoggedId()&&null!==t.html)}}let wk=(()=>{class t{constructor(t,e,n){this.route=t,this.router=e,this.dataService=n,this.completeLoading=!1,this.html=null,this.hostStyle="display: flex; min-height: calc(84vh - 353px)"}onRightClick(t){t.preventDefault()}ngOnInit(){return jv(this,void 0,void 0,(function*(){try{if(this.dataService.isLoggedIn()){const t=this.route.snapshot.queryParams;this.html=yield this.dataService.getHtml("sentences",this.route.snapshot.params.id,t)}}catch(t){alert(t.error?t.error:t)}this.completeLoading=!0}))}isLoggedId(){return this.dataService.isLoggedIn()}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(mv),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-single-html-sentence"]],hostVars:2,hostBindings:function(t,e){1&t&&Qs("contextmenu",(function(t){return e.onRightClick(t)})),2&t&&Ca(Ia,ya,e.hostStyle,!1)},decls:2,vars:2,consts:[[4,"ngIf"],["class","page mb-0 d-flex flex-column flex-grow-1",4,"ngIf"],[1,"page","mb-0","d-flex","flex-column","flex-grow-1"],[1,"row","mt-5"],[1,"col"],["text","ATTENZIONE PER QUESTA SEZIONE OCCORRE ESSERE ABBONATI"],[1,"flex-grow-1"],["seamless","seamless","sandbox","allow-scripts",2,"width","100%","min-height","100%","border","none",3,"srcdoc"]],template:function(t,e){1&t&&(Ns(0,vk,1,0,"app-loader",0),Ns(1,_k,3,2,"div",1)),2&t&&($s("ngIf",!e.completeLoading),Co(1),$s("ngIf",e.completeLoading))},directives:[ph,Yv,ob],pipes:[fy],encapsulation:2}),t})();function Ck(t,e){1&t&&(js(0,"a",3),Aa(1,"Download"),Bs()),2&t&&$s("href",Xs().hrefButtonPriceList,to)}let xk=(()=>{class t{constructor(t,e){this.route=t,this.dataService=e,this.textInfo="",this.showButtonPriceList=!1,this.hrefButtonPriceList=""}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.route.queryParams.subscribe(({token:t})=>jv(this,void 0,void 0,(function*(){this.textInfo="Attendi, questa operazione potrebbe richiedere qualche secondo...";const{pdf:e}=yield this.dataService.getPdfOrder(t).toPromise();this.textInfo="Acquisto ordine completato con successo",this.showButtonPriceList=!0,this.hrefButtonPriceList=e})))}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-complete-payment"]],decls:3,vars:2,consts:[[1,"text-wrapper","text-center"],[1,"text",3,"innerHTML"],["class","btn btn-primary py-4 text-uppercase","target","_blank",3,"href",4,"ngIf"],["target","_blank",1,"btn","btn-primary","py-4","text-uppercase",3,"href"]],template:function(t,e){1&t&&(js(0,"div",0),Us(1,"p",1),Ns(2,Ck,2,1,"a",2),Bs()),2&t&&(Co(1),$s("innerHTML",e.textInfo,Xi),Co(1),$s("ngIf",e.showButtonPriceList))},directives:[ph],styles:[".brown-button[_ngcontent-%COMP%]{background-color:#44320c;margin-top:30px;width:25%;display:block;color:#fff;font-size:23px;text-align:center;font-family:Bebas Neue;border-style:none;padding-top:10px;padding-bottom:10px;text-decoration:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.text-wrapper[_ngcontent-%COMP%]{padding:130px 0}.text[_ngcontent-%COMP%]{margin-top:20px;margin-left:20px;font:normal normal normal 26px/33px Source Sans Pro;letter-spacing:0;font-size:28px;color:#000;opacity:1}"]}),t})();const Ok=[{path:"",component:gO},{path:"news",component:xO},{path:"sentences",component:Jx},{path:"practice",component:Jx},{path:"doctrine",component:xO},{path:"laws",component:Jx},{path:"articles",component:db},{path:"signin",component:lM},{path:"user/:id",component:QP,canActivate:[JP]},{path:"info",component:rI},{path:"network",component:II},{path:"nuovo-sito",component:II},{path:"page/:id",component:II},{path:"ebooks",component:Gb},{path:"news/:id",component:BM},{path:"doctrine/:id",component:KI},{path:"practice/:id",component:fk},{path:"sentences/:id",component:VO},{path:"sentences/:id/html",component:wk},{path:"laws/:id",component:CI},{path:"newsletter/:id",component:II},{path:"site/Approfondimento_Dettaglio.asp",component:mk},{path:"site/d_News.asp",component:mk},{path:"payment-confirm",component:xk}];let Mk=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},imports:[[Tv.forRoot(Ok)],Tv]}),t})();function Pk(t,e){1&t&&(js(0,"p",16),Aa(1,"Inserisci l'email con cui ti sei registrato"),Bs())}function Ik(t,e){if(1&t){const t=Ws();js(0,"div",12),js(1,"input",17),Qs("keyup",(function(e){return Xe(t),Xs(3).handleKeyUp(e)}))("ngModelChange",(function(e){return Xe(t),Xs(3).password=e})),Bs(),Bs()}if(2&t){const t=Xs(3);Co(1),$s("ngModel",t.password)}}function kk(t,e){if(1&t){const t=Ws();js(0,"div",12),js(1,"button",18),Qs("click",(function(){return Xe(t),Xs(3).login()})),Aa(2),Bs(),Bs()}if(2&t){const t=Xs(3);Co(2),Ta(t.loading?"loading...":"entra")}}function Sk(t,e){if(1&t){const t=Ws();js(0,"div",12),js(1,"button",18),Qs("click",(function(){return Xe(t),Xs(3).resetPsw()})),Aa(2),Bs(),Bs()}if(2&t){const t=Xs(3);Co(2),Ta(t.loading?"loading...":"Invia")}}function Ek(t,e){if(1&t){const t=Ws();js(0,"div",9),js(1,"div",10),js(2,"a",19),Qs("click",(function(){return Xe(t),Xs(3).resetPassword=!0})),Aa(3,"Recupera password"),Bs(),Us(4,"hr"),js(5,"a",20),Qs("click",(function(){return Xe(t),Xs(3).goToSignin()})),Aa(6,"Registrati"),Bs(),Bs(),Bs()}}function Dk(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",9),js(2,"div",10),Ns(3,Pk,2,0,"p",11),js(4,"div",12),js(5,"input",13),Qs("ngModelChange",(function(e){return Xe(t),Xs(2).email=e})),Bs(),Bs(),Ns(6,Ik,2,1,"div",14),Ns(7,kk,3,1,"div",14),Ns(8,Sk,3,1,"div",14),Bs(),Bs(),Ns(9,Ek,7,0,"div",15),Gs()}if(2&t){const t=Xs(2);Co(3),$s("ngIf",t.resetPassword),Co(2),na("placeholder",t.resetPassword?"Email":"Username"),$s("ngModel",t.email),Co(1),$s("ngIf",!t.resetPassword),Co(1),$s("ngIf",!t.resetPassword),Co(1),$s("ngIf",t.resetPassword),Co(1),$s("ngIf",!t.resetPassword)}}function Ak(t,e){if(1&t){const t=Ws();qs(0),js(1,"p",16),Aa(2,"Per ragioni di sicurezza, l'accesso al sito \xe8 subordinato all'inserimento di un codice PIN di 6 cifre che abbiamo appena inviato al numero di cellulare associato a questa utenza, "),Us(3,"span",23),Bs(),js(4,"div",22),js(5,"p",16),Aa(6,"Inserisci qui il codice a 6 cifre che hai ricevuto per SMS:"),Bs(),js(7,"div",12),js(8,"input",24),Qs("ngModelChange",(function(e){return Xe(t),Xs(3).sixDigit=e})),Bs(),Bs(),js(9,"div",12),js(10,"button",25),Qs("click",(function(){return Xe(t),Xs(3).doubleAuth()})),Aa(11),Bs(),Bs(),js(12,"div"),js(13,"a",26),Qs("click",(function(){return Xe(t),Xs(3).resendSmsCode()})),Aa(14),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs(3);Co(3),$s("innerText",t.maskedPhoneNumber),Co(5),$s("ngModel",t.sixDigit),Co(2),$s("disabled",6!==(null==t.sixDigit?null:t.sixDigit.toString().length)),Co(1),Ta(t.loading?"loading...":"entra"),Co(3),Fa(" ",t.resending?"inviando...":"invia nuovamente codice via sms"," ")}}function Tk(t,e){if(1&t&&(qs(0),js(1,"p",16),Aa(2,"Per ragioni di sicurezza, l'accesso al sito \xe8 subordinato all'inserimento di un codice PIN che appare in una app da scaricare sul telefono dell'utente autorizzato a consultare il sito in base al contratto di abbonamento. Segui le istruzioni qui di seguito per poter accedere."),Bs(),js(3,"ol",27),js(4,"li"),Aa(5," Installa un'app compatibile dalla lista di seguito: "),Us(6,"br"),js(7,"div",28),js(8,"table",29),js(9,"tr"),js(10,"td"),Aa(11,"Android"),Bs(),js(12,"td"),js(13,"a",30),Aa(14,"Google Authenticator"),Bs(),Aa(15,", "),js(16,"a",31),Aa(17,"Authy"),Bs(),Aa(18,", "),js(19,"a",32),Aa(20,"Duo Mobile"),Bs(),Aa(21,", "),js(22,"a",33),Aa(23,"LastPass Authenticator"),Bs(),Aa(24,", "),js(25,"a",34),Aa(26,"Microsoft Authenticator"),Bs(),Aa(27,", "),js(28,"a",35),Aa(29,"Symantec VIP"),Bs(),Bs(),Bs(),js(30,"tr"),js(31,"td"),Aa(32,"iPhone"),Bs(),js(33,"td"),js(34,"a",36),Aa(35,"Google Authenticator"),Bs(),Aa(36,", "),js(37,"a",37),Aa(38,"Authy"),Bs(),Aa(39,", "),js(40,"a",38),Aa(41,"Duo Mobile"),Bs(),Aa(42,", "),js(43,"a",39),Aa(44,"LastPass Authenticator"),Bs(),Aa(45,", "),js(46,"a",40),Aa(47,"Microsoft Authenticator"),Bs(),Aa(48,", "),js(49,"a",35),Aa(50,"Symantec VIP"),Bs(),Bs(),Bs(),Bs(),Bs(),Bs(),js(51,"li"),Aa(52,"Usa l'app per inquadrare il seguente codice QR e aggiungere Demanio Online alla lista:"),Us(53,"br"),js(54,"div",22),Us(55,"img",41),Bs(),Bs(),js(56,"li"),Aa(57,"Inserisci qui il codice a 6 cifre riportato dall'app per confermare l'avvenuta aggiunta:"),Bs(),Bs(),Gs()),2&t){const t=Xs(3);Co(55),na("src",t.qrCode,to)}}function Fk(t,e){1&t&&(js(0,"p",16),Aa(1,"Inserisci qui il codice a 6 cifre riportato dall'app di autenticazione:"),Bs())}function Nk(t,e){if(1&t){const t=Ws();js(0,"div",22),Ns(1,Fk,2,0,"p",11),js(2,"div",12),js(3,"input",24),Qs("ngModelChange",(function(e){return Xe(t),Xs(3).sixDigit=e})),Bs(),Bs(),js(4,"div",12),js(5,"button",25),Qs("click",(function(){return Xe(t),Xs(3).doubleAuth()})),Aa(6),Bs(),Bs(),Bs()}if(2&t){const t=Xs(3);Co(1),$s("ngIf",!t.qrCode),Co(2),$s("ngModel",t.sixDigit),Co(2),$s("disabled",6!==(null==t.sixDigit?null:t.sixDigit.toString().length)),Co(1),Ta(t.loading?"loading...":"entra")}}function Vk(t,e){if(1&t){const t=Ws();qs(0),Ns(1,Ak,15,5,"ng-container",8),Ns(2,Tk,58,1,"ng-container",8),Ns(3,Nk,7,4,"div",21),js(4,"div",22),js(5,"button",18),Qs("click",(function(){return Xe(t),Xs(2).goToLogin()})),Aa(6,"Torna indietro"),Bs(),Bs(),Gs()}if(2&t){const t=Xs(2);Co(1),$s("ngIf",t.smsAuth),Co(1),$s("ngIf",t.qrCode),Co(1),$s("ngIf",!t.smsAuth)}}function Rk(t,e){if(1&t&&(qs(0),Ns(1,Dk,10,7,"ng-container",8),Ns(2,Vk,7,3,"ng-container",8),Gs()),2&t){const t=Xs();Co(1),$s("ngIf",!t.isDoubleAuth),Co(1),$s("ngIf",t.isDoubleAuth)}}let Lk=(()=>{class t{constructor(t,e,n){this.dataService=t,this.route=e,this.activeRoute=n,this.closeEvent=new Lc,this.loading=!1,this.email="",this.password="",this.resetPassword=!1,this.qrCode=null,this.maskedPhoneNumber="",this.resending=!1}ngOnInit(){this.resetPassword=!1}ngOnChanges(t){$("#loginModal").on("hidden.bs.modal",()=>{this.closeModal()})}goToLogin(){this.isDoubleAuth=!1}isLoggedIn(){return Boolean(this.profile)}closeModal(){$("#loginModal").modal("hide"),$("#loginModal").on("hidden.bs.modal",()=>{this.resetPassword=!1,this.email="",this.password="",this.closeEvent.emit("ok"),this.qrCode=null,this.smsAuth=!1,this.maskedPhoneNumber="",this.isDoubleAuth=!1})}handleKeyUp({keyCode:t}){13===t&&this.login()}goToSignin(){this.closeModal(),this.route.navigate(["/signin"])}login(){return jv(this,void 0,void 0,(function*(){this.loading=!0,yield this.dataService.preLogin(this.email,this.password).then(t=>{t.token?(this.closeEvent.emit("ok"),this.reloadLocation()):(this.idLogin=t.id,this.secret=t.secret,this.qrCode=t.qr,this.smsAuth=t.sms,this.maskedPhoneNumber=t.number+"",this.isDoubleAuth=!0,this.loading=!1)}).catch(({error:t})=>{alert(t.error?t.error:t),this.loading=!1})}))}resendSmsCode(){return jv(this,void 0,void 0,(function*(){this.resending||(this.loading=!0,this.resending=!0,this.dataService.preLoginResendSms(this.idLogin,this.secret).then(t=>{this.idLogin=t.id,this.secret=t.secret,this.qrCode=t.qr,this.smsAuth=t.sms,this.maskedPhoneNumber=t.number+"",this.isDoubleAuth=!0,this.loading=!1,this.resending=!1}).catch(({error:t})=>{alert(t.error?t.error:t),this.loading=!1,this.resending=!1}))}))}doubleAuth(){return jv(this,void 0,void 0,(function*(){this.loading=!0;try{yield this.dataService.login(this.idLogin,this.secret,this.sixDigit,this.smsAuth),this.closeEvent.emit("ok"),this.reloadLocation()}catch({error:t}){alert(t.error?t.error:t),this.loading=!1}}))}resetPsw(){return jv(this,void 0,void 0,(function*(){try{this.loading=!0,yield this.dataService.resetPassword(this.email),this.closeEvent.emit("ok"),alert("Accedi alla tua mail per reimpostare la tua password")}catch({error:t}){alert(t.error?t.error:t)}finally{this.loading=!1}}))}me(){return jv(this,void 0,void 0,(function*(){try{yield this.dataService.me()}catch(t){console.error(t)}}))}reloadLocation(){const t=Object.assign({},this.activeRoute.snapshot.queryParams);delete t.state,this.route.navigate([],{queryParams:t}).then(()=>{location.reload()})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv),Rs(lm))},t.\u0275cmp=fe({type:t,selectors:[["app-modal"]],inputs:{profile:"profile"},outputs:{closeEvent:"closeEvent"},features:[qa],decls:10,vars:2,consts:[["tabindex","-1","role","dialog","id","loginModal",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","aria-label","Close",1,"close",3,"click"],["src","assets/img/close.jpeg","id","advanced-close","alt","close"],[1,"modal-body"],[4,"ngIf"],[1,"row","text-center"],[1,"col"],["class","rec-text",4,"ngIf"],[1,"form-group"],["name","username",1,"form-control",3,"ngModel","placeholder","ngModelChange"],["class","form-group",4,"ngIf"],["class","row text-center",4,"ngIf"],[1,"rec-text"],["type","password","placeholder","Password","name","password",1,"form-control",3,"ngModel","keyup","ngModelChange"],[1,"btn","btn-brand",3,"click"],[1,"btn","btn-recupera",3,"click"],[1,"recupera",3,"click"],["class","text-center",4,"ngIf"],[1,"text-center"],[3,"innerText"],["type","number","minlength","6","maxlength","6","placeholder","Codice segreto","name","sixDigit",1,"form-control",3,"ngModel","ngModelChange"],[1,"btn","btn-brand",3,"disabled","click"],[1,"text-primary",2,"cursor","pointer",3,"click"],[1,"app-list"],[1,"table-responsive"],[1,"table","table-sm","mt-3"],["href","https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.authy.authy","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.duosecurity.duomobile","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.lastpass.authenticator","target","_blank"],["href","https://play.google.com/store/apps/details?id=com.azure.authenticator","target","_blank"],["href","https://m.vip.symantec.com/home.v#searchwebsite","target","_blank"],["href","https://apps.apple.com/us/app/google-authenticator/id388497605","target","_blank"],["href","https://apps.apple.com/us/app/authy/id494168017","target","_blank"],["href","https://apps.apple.com/us/app/duo-mobile/id422663827","target","_blank"],["href","https://apps.apple.com/us/app/lastpass-authenticator/id1079110004","target","_blank"],["href","https://apps.apple.com/us/app/microsoft-authenticator/id983156458","target","_blank"],["alt","QR Code",1,"my-3",3,"src"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"div",3),js(4,"h5",4),Aa(5),Bs(),js(6,"button",5),Qs("click",(function(){return e.closeModal()})),Us(7,"img",6),Bs(),Bs(),js(8,"div",7),Ns(9,Rk,3,2,"ng-container",8),Bs(),Bs(),Bs(),Bs()),2&t&&(Co(5),Ta(e.resetPassword?"Recupera password":"Login"),Co(4),$s("ngIf",!e.isLoggedIn()))},directives:[ph,g_,w_,Sw,F_,Jw,Xw],styles:['.bg-cover[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .btn-categories[_ngcontent-%COMP%]:after, .btn-categories[_ngcontent-%COMP%]:before{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.btn[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif}.btn[_ngcontent-%COMP%]:active, .btn[_ngcontent-%COMP%]:focus{box-shadow:none}.search-btn[_ngcontent-%COMP%]{background-color:#777;text-transform:uppercase;border:none;border-radius:14px;font-size:14px;padding:3px 12px;margin-left:20px;color:#fff}.search-btn-text[_ngcontent-%COMP%]{background-color:transparent;text-transform:uppercase;border:none;font-size:13px;font-weight:600;padding:0;margin-left:10px;margin-right:10px;color:#335218}.black-btn[_ngcontent-%COMP%]{background-color:#213412;font-family:Montserrat,sans-serif;text-transform:uppercase;color:#fff;padding:8px 24px;border-radius:4px;font-size:16px;text-align:right}.black-btn.maxi[_ngcontent-%COMP%]{padding:20px}.black-btn.in-row[_ngcontent-%COMP%]{margin-bottom:1rem}.btn-categories[_ngcontent-%COMP%]{background-color:#bcd1ac;padding:10px;border-radius:6px;cursor:pointer;position:relative}.btn-categories[_ngcontent-%COMP%]:after, .btn-categories[_ngcontent-%COMP%]:before{content:"";width:17px;height:17px;margin:0 3px;position:absolute;top:14px}.btn-categories[_ngcontent-%COMP%]:before{left:-24px;background-image:url(arrow-right-mini.8149c17d04eb5ce4485e.svg)}.btn-categories[_ngcontent-%COMP%]:after{right:-24px;background-image:url(arrow-left-mini.11da55e1777c086bb85d.svg)}.btn-brand[_ngcontent-%COMP%]{background-color:#213412;color:#fff;text-transform:uppercase;font-size:12px;font-weight:600;border-radius:15px}.btn-brand[_ngcontent-%COMP%]:hover{color:#fff}.btn-brand.success[_ngcontent-%COMP%]{background-color:#59c158}.btn-brand.cancel[_ngcontent-%COMP%]{background-color:#4e673b}.btn-recupera[_ngcontent-%COMP%]{background-color:#d0d0d0;color:#6e6e6e;text-transform:uppercase;font-size:12px;font-weight:600;border-radius:15px}.btn-recupera[_ngcontent-%COMP%]:hover{color:#6e6e6e}.modal-lg[_ngcontent-%COMP%]{max-width:50%}.modal-body[_ngcontent-%COMP%]{padding:30px}.modal-title[_ngcontent-%COMP%]{font-size:22px;color:#213412}.rec-text[_ngcontent-%COMP%]{font-size:14px;color:#717171}.recupera[_ngcontent-%COMP%]{text-transform:uppercase;text-align:center;color:#717171;font-size:11px;font-weight:600;cursor:pointer}.recupera[_ngcontent-%COMP%]:hover{text-decoration:none}#advanced-close[_ngcontent-%COMP%]{width:22px;height:auto;cursor:pointer}.btn-brand[_ngcontent-%COMP%]{padding:5px 30px}.app-list[_ngcontent-%COMP%]{padding-left:14px;font-size:14px}.app-list[_ngcontent-%COMP%], .app-list[_ngcontent-%COMP%]   .table[_ngcontent-%COMP%]{color:#717171}']}),t})();var zk=n("Wgwc"),$k=n.n(zk);function Hk(t,e){if(1&t){const t=Ws();js(0,"div",38),Qs("click",(function(){return Xe(t),Xs().goToPrivate()})),Aa(1),Bs()}if(2&t){const t=Xs();Co(1),Ta(t.mainData.notices)}}function jk(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",39),Aa(2," Scad. abbonamento "),js(3,"div",40),Aa(4),Tc(5,"date"),Bs(),Bs(),js(6,"div",39),Aa(7," Tempo fine sessione "),js(8,"div",40),Aa(9),Bs(),Bs(),js(10,"div",41),Qs("click",(function(){return Xe(t),Xs().logout()})),Aa(11," Logout "),Bs(),Gs()}if(2&t){const t=Xs();Co(4),Fa(" ",Nc(5,2,t.profile.subscription_expiration,"dd/MM/yyyy")," "),Co(5),Fa(" ",t.expireMinuteAt," ")}}function Bk(t,e){if(1&t){const t=Ws();js(0,"li",42),js(1,"a",43),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().changeRoute(n.path)})),Aa(2),Tc(3,"uppercase"),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(2),Ta(Fc(3,1,t.name))}}const Uk=function(t){return{"background-image":t}};function qk(t,e){if(1&t){const t=Ws();js(0,"div",44),js(1,"div",34),js(2,"div",45),Us(3,"div",46),js(4,"div",47),Aa(5," Visualizzazione filtrata per:"),Us(6,"br"),js(7,"div",48),Aa(8),Bs(),Bs(),js(9,"div",49),Qs("click",(function(){return Xe(t),Xs().removeSiteFilter()})),Us(10,"img",50),Bs(),Bs(),Bs(),Bs()}if(2&t){const t=Xs();Co(3),$s("ngStyle",kc(2,Uk,"url("+t.siteFilter.img+")")),Co(5),Ta(t.siteFilter.name)}}let Gk=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.dataService=n,this.stringify=JSON.stringify,this.expireMinuteAt="",this.expireDateAt="",this.showForm=!1,this.types=[],this.simpleQuery="",this.searchInput={types:["giurisprudenza"],query:"",query_type:"words",anno:null,relatore:null,presidente:null,istituzione:null,n:null},this.allAutorities=[],this.months=[{id:1,text:"Gennaio"},{id:2,text:"Febbraio"},{id:3,text:"Marzo"},{id:4,text:"Aprile"},{id:5,text:"Maggio"},{id:6,text:"Giugno"},{id:7,text:"Luglio"},{id:8,text:"Agosto"},{id:9,text:"Settembre"},{id:10,text:"Ottobre"},{id:11,text:"Novembre"},{id:12,text:"Dicembre"}],this.isMobile=!1,this.showBurger=!1,this.romanYear="",this.items=[{path:"laws",name:"legislazione"},{path:"sentences",name:"giurisprudenza"},{path:"practice",name:"prassi"},{path:"doctrine",name:"approfondimenti"},{path:"news",name:"notizie"},{path:"ebooks",name:"pubblicazioni"}]}ngOnInit(){return jv(this,void 0,void 0,(function*(){clearInterval(this.interval),this.dataService.isLoggedIn()&&(this.interval=setInterval(()=>{this.expiryAt()},1e3));const t=new Date,e=t.getMonth(),n=t.getDay();this.romanYear=this.romanize(t.getFullYear()-2008+(e>9&&n>20?1:0)),this.isMobile=window.innerWidth<1e3,this.searchType=[{id:"words",text:"Le singole parole"},{id:"full",text:"La frase esatta"}],this.formData=yield this.dataService.allFormData(),this.types=Object.keys(this.formData).map(t=>({id:t,text:t})),this.currentType=this.types[0].id,this.regioni=this.formData.notizie.regioni,this.dataService.store.subscribe(t=>{this.mainData=t}),this.dataService.setSiteFilter.subscribe(t=>{var e;this.siteFilter=t,this.bannerImg=(null===(e=this.siteFilter)||void 0===e?void 0:e.banner)?this.siteFilter.banner:"assets/img/bg-header.png"})}))}ngOnChanges(t){$("#loginModal").modal("hide"),this.expiry=$k.a.unix(this.dataService.getExpiry()),clearInterval(this.interval),this.dataService.isLoggedIn()&&(this.interval=setInterval(()=>{this.expiryAt()},1e3))}showName(){return this.profile?`${this.profile.name} ${this.profile.surname}`:"Login/Registrazione"}isLoggedIn(){return Boolean(this.profile)}logout(){this.dataService.logout(),location.reload()}changeRoute(t){this.router.navigate([t])}goToPrivate(){this.router.navigate(["/user/2"])}showModal(){this.isLoggedIn()?this.router.navigate(["/user/1"]):$("#loginModal").modal("show")}showModalUnqueText(){$("#uniqueTextModal").modal("show")}closeModal(){$("#loginModal").modal("hide")}expiryAt(){if(!this.expiry||this.expiry.isBefore($k()()))this.expireMinuteAt="",this.dataService.logout(),location.reload();else{this.expireDateAt=this.expiry.format("DD/MM/YYYY");const t=this.expiry.diff($k()(),"minutes");t>0?this.expireMinuteAt=t+" min":0===t&&(this.expireMinuteAt=this.expiry.diff($k()(),"seconds")+" seconds")}}romanize(t){if(isNaN(t))return"";const e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];let i="",o=3;for(;o--;)i=(n[+e.pop()+10*o]||"")+i;return Array(+e.join("")+1).join("M")+i}isExternalLink(t){return t.includes("http")}search(){this.searchInput={types:["giurisprudenza","approfondimenti","notizie"].join(","),query:this.simpleQuery||null,query_type:"words"},this.router.navigate(["/search"],{queryParams:this.searchInput})}filteredResults(t){this.router.navigate(["/search"],t)}toggleShowForm(){this.showForm=!this.showForm}advancedSearch(){let t=Object.assign({},this.searchInput);Array.isArray(t.types)&&(t.types=t.types.join(",")),t=Object.keys(t).reduce((t,e)=>(null!=t[e]&&""!==t[e]||delete t[e],t),Object.assign({},t)),this.router.navigate(["/search"],{queryParams:t})}init(t){"giurisprudenza"===t?(delete this.searchInput.autore,delete this.searchInput.regione):"approfondimenti"===t?(delete this.searchInput.regione,delete this.searchInput.relatore,delete this.searchInput.presidente,delete this.searchInput.istituzione):"notizie"===t&&(delete this.searchInput.autore,delete this.searchInput.relatore,delete this.searchInput.presidente,delete this.searchInput.istituzione)}setValue(t,e){this.searchInput[t]=e}changeActivity(t){var e;return jv(this,void 0,void 0,(function*(){t?(this.allAutorities=(yield this.dataService.autority(+t)).list,this.setValue("istituzione",(null===(e=this.allAutorities[0])||void 0===e?void 0:e.id)||null)):(this.allAutorities=[],this.setValue("istituzione",null))}))}removeSiteFilter(){this.dataService.removeStorageSiteFilter(),window.location.reload()}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(lm),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-header"]],inputs:{profile:"profile"},features:[qa],decls:48,vars:9,consts:[[1,"row","top-bar"],[1,"col-auto","d-flex","align-items-center","my-sm-0","my-2"],["src","assets/img/home.svg","alt","",1,"img-logo",3,"click"],["href","https://www.exeo.it/",1,"pl-2"],["src","assets/img/network.png","width","19","alt","NETWORK","title","NETWORK"],[1,"top-text"],[1,"col","d-flex","align-items-center","justify-content-end"],[1,"text-right","mb-sm-0","mb-2"],["routerLink","/info",1,"network","info",3,"click"],["routerLink","/page/25",1,"network","info",3,"click"],["routerLink","/page/27",1,"network",3,"click"],["href","https://www.linkedin.com/in/paolo-loro-373a7155/","target","_blank"],["src","assets/img/social/linkedin.svg",1,"social-icon"],["href","https://www.youtube.com/channel/UCWrAoAZpklnLTpcrzg67kKA","target","_blank"],["src","assets/img/social/youtube.svg",1,"social-icon"],["href","https://www.facebook.com/ExeoEdizioni","target","_blank"],["width","16","height","16","src","assets/img/social/facebook.png",1,"social-icon"],[1,"row","search-bar"],[1,"col","d-flex","align-items-center","search-form"],["href","https://www.esproprionline.it/","target","_blank",1,"exeo-banner"],["src","assets/img/eol.gif","alt","Espropri Online"],["href","https://www.valoriagricoli.it/","target","_blank",1,"exeo-banner","pl-2"],["src","assets/img/ova.png","alt","Valori Agricoli"],[1,"col-auto","d-flex","align-items-center","justify-content-md-end","justify-content-center","mb-2","mb-sm-0","flex-wrap","flex-sm-nowrap"],[1,"login-element","name"],[1,"login-name",3,"click"],["src","assets/img/profile.svg"],["class","notice-counter",3,"click",4,"ngIf"],[4,"ngIf"],[1,"row","header",3,"ngStyle"],[1,"col","logo"],["src","assets/img/logo.png","alt","Logo Espropri Online",3,"click"],[1,"logo-payoff"],[1,"row","links"],[1,"col"],[1,"nav"],["class","nav-item",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"notice-counter",3,"click"],[1,"login-element","expiry"],[1,"expiry-date"],[1,"login-element","logout",3,"click"],[1,"nav-item"],[1,"nav-link",3,"click"],[1,"row"],[1,"site-filter"],[1,"filter-img",3,"ngStyle"],[1,"filter-text"],[1,"filter-name"],[1,"filter-clear",3,"click"],["src","assets/img/close.jpeg","alt","Clear filters"]],template:function(t,e){1&t&&(qs(0),js(1,"div",0),js(2,"div",1),js(3,"img",2),Qs("click",(function(){return e.changeRoute("/")})),Bs(),js(4,"a",3),Us(5,"img",4),Bs(),js(6,"div",5),js(7,"span"),Aa(8),Bs(),js(9,"span"),Aa(10,"DIRETTORE RESPONSABILE: PAOLO LORO"),Bs(),Bs(),Bs(),js(11,"div",6),js(12,"div",7),js(13,"a",8),Qs("click",(function(){return e.showForm=!1})),Aa(14,"INFORMAZIONI"),Bs(),js(15,"a",9),Qs("click",(function(){return e.showForm=!1})),Aa(16,"ABBONAMENTO"),Bs(),js(17,"a",10),Qs("click",(function(){return e.showForm=!1})),Aa(18,"CHI SIAMO"),Bs(),js(19,"a",11),Us(20,"img",12),Bs(),js(21,"a",13),Us(22,"img",14),Bs(),js(23,"a",15),Us(24,"img",16),Bs(),Bs(),Bs(),Bs(),js(25,"div",17),js(26,"div",18),js(27,"a",19),Us(28,"img",20),Bs(),js(29,"a",21),Us(30,"img",22),Bs(),Bs(),js(31,"div",23),js(32,"div",24),js(33,"div",25),Qs("click",(function(){return e.showModal()})),Us(34,"img",26),Aa(35),Bs(),Ns(36,Hk,2,1,"div",27),Bs(),Ns(37,jk,12,5,"ng-container",28),Bs(),Bs(),js(38,"div",29),js(39,"div",30),js(40,"img",31),Qs("click",(function(){return e.changeRoute("/")})),Bs(),js(41,"p",32),Aa(42,"La rivista del demanio, del patrimonio e dei beni pubblici"),Bs(),Bs(),Bs(),js(43,"div",33),js(44,"div",34),js(45,"ul",35),Ns(46,Bk,4,3,"li",36),Bs(),Bs(),Bs(),Ns(47,qk,11,4,"div",37),Gs()),2&t&&(Co(8),Fa("ISSN 2785-258X (ANNO ",e.romanYear,")"),Co(27),Fa("",e.showName()," "),Co(1),$s("ngIf",e.isLoggedIn()&&(null==e.mainData?null:e.mainData.notices)>0),Co(1),$s("ngIf",e.isLoggedIn()),Co(1),$s("ngStyle",kc(7,Uk,"url("+e.bannerImg+")")),Co(8),$s("ngForOf",e.items),Co(1),$s("ngIf",e.siteFilter))},directives:[bv,ph,Ch,dh],pipes:[Fh,Th],styles:[".bg-cover[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .site-filter[_ngcontent-%COMP%]   .filter-img[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.top-bar[_ngcontent-%COMP%]{min-height:33px;background:#4e673b;padding:3px 15px;font-family:Montserrat,sans-serif;font-size:11px;color:#fff}.top-bar[_ngcontent-%COMP%]   .img-logo[_ngcontent-%COMP%]{border:1px solid #fff;border-radius:50%;padding:2px;cursor:pointer;height:20px;width:20px}.top-bar[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:20px;padding-right:10px}.top-bar[_ngcontent-%COMP%]   .network[_ngcontent-%COMP%]{border-left:1px solid #fff;border-right:1px solid #fff;padding:0 10px;margin-right:10px;text-decoration:none;color:#fff}.top-bar[_ngcontent-%COMP%]   .network.info[_ngcontent-%COMP%]{border-right:none;padding-right:0}.top-bar[_ngcontent-%COMP%]   .social-icon[_ngcontent-%COMP%]{margin-left:4px}@media (max-width:540px){.top-bar[_ngcontent-%COMP%]   .img-logo[_ngcontent-%COMP%]{width:25px}.top-bar[_ngcontent-%COMP%]   .top-text[_ngcontent-%COMP%]{padding-left:15px}.top-bar[_ngcontent-%COMP%]   .top-text[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:0;padding-left:0;display:block}}.search-bar[_ngcontent-%COMP%]{background-color:#d0d0d0;min-height:40px;padding:0 15px}.search-bar[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{height:29px;width:223px;padding-left:10px;font-family:Montserrat,sans-serif;font-size:12px;font-weight:300;color:#9d9d9d;border-radius:4px;border:none}.search-bar[_ngcontent-%COMP%]   .exeo-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:30px}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]{margin-right:30px;position:relative}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]:last-child{margin-right:0}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]   .login-name[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412;text-decoration:underline;text-underline-position:under;cursor:pointer;font-size:14px}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]   .login-name[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding-right:2px}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]   .notice-counter[_ngcontent-%COMP%]{position:absolute;width:16px;height:16px;border-radius:50%;background-color:red;color:#fff;font-size:8px;font-weight:600;text-align:center;padding:2px 0;top:0;right:-18px;cursor:pointer}.search-bar[_ngcontent-%COMP%]   .login-element.expiry[_ngcontent-%COMP%]{border-left:1px solid #fff;font-family:Montserrat,sans-serif;font-weight:600;font-size:11px;line-height:12px;color:#213412;padding-left:10px}.search-bar[_ngcontent-%COMP%]   .login-element.expiry[_ngcontent-%COMP%]   .expiry-date[_ngcontent-%COMP%]{color:#fff;font-size:10px}.search-bar[_ngcontent-%COMP%]   .login-element.logout[_ngcontent-%COMP%]{cursor:pointer;text-align:right;font-family:Montserrat,sans-serif;font-weight:600;font-size:8px;line-height:10px;text-transform:uppercase;color:#213412}@media (max-width:540px){.search-bar[_ngcontent-%COMP%]   .search-form[_ngcontent-%COMP%]{flex-direction:column;flex-basis:100%;margin-top:15px;margin-bottom:15px}.search-bar[_ngcontent-%COMP%]   .search-form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.search-bar[_ngcontent-%COMP%]   .search-form[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin-left:0;margin-top:10px;width:100%}.search-bar[_ngcontent-%COMP%]   .exeo-banner[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:20px}.search-bar[_ngcontent-%COMP%]   .login-element[_ngcontent-%COMP%]{margin-bottom:10px}.search-bar[_ngcontent-%COMP%]   .login-element.name[_ngcontent-%COMP%]{flex:0 0 100%;margin:5px 0 20px}}.header[_ngcontent-%COMP%]{background-image:url(bg-header.8cb5d28a7a0af207ceeb.png);min-height:215px;min-width:1200px;cursor:pointer;padding:0 15px}.header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}.header[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:470px}.header[_ngcontent-%COMP%]   .logo-payoff[_ngcontent-%COMP%]{margin:10px 0 -3px;font-family:EB Garamond,serif;font-size:21.8px;font-weight:700;color:#414141}.advanced-form[_ngcontent-%COMP%]{min-height:215px;padding:28px 15px 0}.links[_ngcontent-%COMP%]{min-height:43px;background:#213412;padding:0 15px}.links[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#fff;cursor:pointer;padding:12px 0;margin-right:10px}.advanced-form-title[_ngcontent-%COMP%], .links[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;text-transform:uppercase}.advanced-form-title[_ngcontent-%COMP%]{font-size:20px;color:#213412}#advanced-close[_ngcontent-%COMP%]{width:42px;height:auto;cursor:pointer}.site-filter[_ngcontent-%COMP%]{display:flex;text-align:right;justify-content:right;align-items:center;padding:20px 0 0;margin-bottom:-25px}.site-filter[_ngcontent-%COMP%]   .filter-img[_ngcontent-%COMP%]{width:34px;height:34px;margin-right:10px}.site-filter[_ngcontent-%COMP%]   .filter-text[_ngcontent-%COMP%]{font-size:15px;line-height:17px}.site-filter[_ngcontent-%COMP%]   .filter-text[_ngcontent-%COMP%]   .filter-name[_ngcontent-%COMP%]{font-weight:700;text-transform:uppercase}.site-filter[_ngcontent-%COMP%]   .filter-clear[_ngcontent-%COMP%]{width:25px;height:25px;margin-left:20px;cursor:pointer}",'.bg-cover[_ngcontent-%COMP%], .car-item[_ngcontent-%COMP%]{background-size:cover;background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .special[_ngcontent-%COMP%]   .special-img[_ngcontent-%COMP%]{background-size:contain;background-position:50%;background-repeat:no-repeat}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.special[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:30px}.special[_ngcontent-%COMP%]   .special-img[_ngcontent-%COMP%]{width:60px;height:67px;cursor:pointer}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]{margin-left:15px;width:100%;cursor:pointer}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]   .special-top[_ngcontent-%COMP%]{background-color:#292929;color:#fff;border-radius:25px 3px 0 0;margin-bottom:1px;border:2px solid #292929;padding:10px 15px;font-weight:600}.special[_ngcontent-%COMP%]   .special-content[_ngcontent-%COMP%]   .special-btm[_ngcontent-%COMP%]{background-color:#d0d0d0;color:#213412;padding:15px;border-radius:1px;font-size:14px}.dossier[_ngcontent-%COMP%]{font-size:22px;cursor:pointer;font-family:Source Sans Pro,sans-serif}.dossier[_ngcontent-%COMP%]:before{content:"";width:12px;height:12px;background-color:#dbcd1f;display:inline-block;border-radius:50%;margin-right:10px}.underline-title[_ngcontent-%COMP%]{color:#4e673b;text-transform:uppercase;font-weight:600;border-bottom:3px solid #dbcd1f;padding-bottom:3px;margin-bottom:30px}.car-item[_ngcontent-%COMP%]{height:310px;width:100%;background-color:#e0e0e0;cursor:pointer}.car-item[_ngcontent-%COMP%]   .car-category[_ngcontent-%COMP%]{top:20px;padding:8px 12px;border-radius:4px 0 0 4px;font-size:11px;text-transform:uppercase}.car-item[_ngcontent-%COMP%]   .car-caption[_ngcontent-%COMP%], .car-item[_ngcontent-%COMP%]   .car-category[_ngcontent-%COMP%]{position:absolute;right:0;background-color:rgba(33,52,18,.8);color:#fff}.car-item[_ngcontent-%COMP%]   .car-caption[_ngcontent-%COMP%]{text-align:left;padding:15px;bottom:0;left:0;font-size:15px}.carousel-item[_ngcontent-%COMP%]{opacity:0;transition:opacity .8s;display:block;visibility:hidden;z-index:1}.carousel-item.active[_ngcontent-%COMP%]{opacity:1;transition:opacity .8s;display:block;z-index:2;visibility:visible}.carousel-item.active.carousel-item-left[_ngcontent-%COMP%], .carousel-item.active.carousel-item-right[_ngcontent-%COMP%]{opacity:.5;transform:none}.carousel-item.carousel-item-next.carousel-item-left[_ngcontent-%COMP%], .carousel-item.carousel-item-prev.carousel-item-right[_ngcontent-%COMP%]{display:block;visibility:visible;z-index:2;opacity:1;width:100%;transform:none}.carousel-control-next[_ngcontent-%COMP%], .carousel-control-prev[_ngcontent-%COMP%]{opacity:.6;z-index:3}.carousel-control-next[_ngcontent-%COMP%]:hover, .carousel-control-prev[_ngcontent-%COMP%]:hover{opacity:1}.carousel-control-next-icon[_ngcontent-%COMP%], .carousel-control-prev-icon[_ngcontent-%COMP%]{width:30px;height:30px}.carousel-control-prev-icon[_ngcontent-%COMP%]{background-image:url(arrow-left-mini.11da55e1777c086bb85d.svg)}.carousel-control-next-icon[_ngcontent-%COMP%]{background-image:url(arrow-right-mini.8149c17d04eb5ce4485e.svg)}']}),t})();function Wk(t,e){if(1&t&&(js(0,"div",16),Us(1,"span",17),js(2,"span",18),Aa(3),Bs(),Bs()),2&t){const t=Xs();Co(1),$s("innerHTML",t.motto.motto,Xi),Co(2),Na("",t.motto.nome," ",t.motto.cognome,"")}}let Zk=(()=>{class t{constructor(t){this.dataService=t,this.title="network privacy policy",this.description="",this.motto=null}ngOnInit(){this.dataService.getFooter().then(t=>{this.description=t.footer,this.motto=t.motto,this.dataService.store=t})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-footer"]],decls:22,vars:5,consts:[[1,"footer"],[1,"container"],["class","motto",4,"ngIf"],[1,"row"],[1,"col","title"],["href","","routerLink","/network"],["href","","routerLink","/info"],[1,"col","img-container"],["href","https://www.linkedin.com/in/paolo-loro-373a7155/","target","_blank"],["src","assets/img/social/linkedin.svg",1,"img-icon"],["href","https://www.youtube.com/channel/UCWrAoAZpklnLTpcrzg67kKA","target","_blank"],["src","assets/img/social/youtube.svg",1,"img-icon"],["href","https://www.facebook.com/ExeoEdizioni","target","_blank"],["width","16","height","16","src","assets/img/social/facebook.png",1,"img-icon"],[1,"col"],[1,"description",3,"innerHTML"],[1,"motto"],[1,"motto-text",3,"innerHTML"],[1,"motto-author"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),Ns(2,Wk,4,3,"div",2),js(3,"div",3),js(4,"div",4),js(5,"a",5),Aa(6,"Network"),Bs(),Aa(7," | "),js(8,"a",6),Aa(9,"Privacy policy"),Bs(),Bs(),Bs(),js(10,"div",3),js(11,"div",7),js(12,"a",8),Us(13,"img",9),Bs(),js(14,"a",10),Us(15,"img",11),Bs(),js(16,"a",12),Us(17,"img",13),Bs(),Bs(),Bs(),js(18,"div",3),js(19,"div",14),Us(20,"div",15),Tc(21,"safe"),Bs(),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("ngIf",e.motto),Co(18),$s("innerHTML",Nc(21,2,e.description,"html"),Xi))},directives:[ph,bv],pipes:[rb],styles:[".footer[_ngcontent-%COMP%]{background-color:#213412;min-height:194px;text-align:center}.title[_ngcontent-%COMP%]{margin-top:30px;color:#fff;font-size:11px}.title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;font-family:Montserrat,sans-serif;text-transform:uppercase}.title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.description[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#fff;font-size:12px;font-weight:lighter;margin-top:30px;margin-bottom:30px}.img-container[_ngcontent-%COMP%]{margin-top:10px}.img-icon[_ngcontent-%COMP%]{margin:2px}.motto[_ngcontent-%COMP%]{color:#fff;font-size:14px;padding-top:10px;line-height:1}.motto[_ngcontent-%COMP%]   .motto-text[_ngcontent-%COMP%]{font-family:EB Garamond,serif;font-style:italic;font-size:18px}.motto[_ngcontent-%COMP%]   .motto-author[_ngcontent-%COMP%]{padding-left:10px;font-size:11px}"]}),t})(),Yk=(()=>{class t{constructor(t,e){this.dataService=t,this.router=e,this.article=null,this.item=null}ngOnInit(){this.dataService.isLoggedIn()&&(this.profile=this.dataService.getProfile()),this.dataService.getStorageSiteFilter()}loginChange(t){setTimeout(()=>{this.profile=this.dataService.isLoggedIn()?this.dataService.getProfile():null},100)}onActivate(t){window.scroll(0,0)}onClose(t){this.item=t,$("#articleModal").modal("show")}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-root"]],decls:5,vars:2,consts:[[3,"profile","closeEvent"],[1,"container","main-container"],[3,"profile"],[3,"activate"]],template:function(t,e){1&t&&(js(0,"app-modal",0),Qs("closeEvent",(function(t){return e.loginChange(t)})),Bs(),js(1,"div",1),Us(2,"app-header",2),js(3,"router-outlet",3),Qs("activate",(function(t){return e.onActivate(t)})),Bs(),Bs(),Us(4,"app-footer")),2&t&&($s("profile",e.profile),Co(2),$s("profile",e.profile))},directives:[Lk,Gk,xv,Zk],styles:[""]}),t})(),Qk=(()=>{class t{constructor(){this.text=""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-title-underline"]],inputs:{text:"text"},decls:5,vars:1,consts:[[1,"title-underline"],[1,"title"],[1,"yellow"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"span",1),js(2,"b"),Aa(3),Bs(),Bs(),Us(4,"hr",2),Bs()),2&t&&(Co(3),Ta(e.text))},styles:[".title-underline[_ngcontent-%COMP%]{margin-top:15px;margin-left:5px}.title[_ngcontent-%COMP%]{text-align:left;font-family:Bebas Neue;letter-spacing:0;color:#022141;text-transform:uppercase;opacity:1;font-size:30px}.yellow[_ngcontent-%COMP%]{margin:0;width:99.3%;border-top:3px solid #b0d9e8}"]}),t})(),Jk=(()=>{class t{transform(t){return 0===t.length?"":t[0].toUpperCase()+t.substr(1,t.length).toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"toUp",type:t,pure:!0}),t})();function Kk(t,e){if(1&t&&(js(0,"span",4),Aa(1),Bs()),2&t){const t=Xs();Co(1),Fa("ISSN 1971-9817 (ANNO ",t.romanYear,") ")}}function Xk(t,e){if(1&t){const t=Ws();js(0,"div",8),Qs("click",(function(){return Xe(t),Xs().showBurger=!0})),Us(1,"img",9),Bs()}}function tS(t,e){if(1&t){const t=Ws();js(0,"div",8),Qs("click",(function(){return Xe(t),Xs().showBurger=!1})),Us(1,"img",9),Bs()}}function eS(t,e){if(1&t){const t=Ws();js(0,"p",12),js(1,"span",13),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs(2).changeRoute(n.path)})),Aa(2),Tc(3,"uppercase"),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(2),Ta(Fc(3,1,t.name))}}function nS(t,e){if(1&t&&(js(0,"div"),js(1,"div",10),js(2,"span"),Ns(3,eS,4,3,"p",11),Bs(),Bs(),Bs()),2&t){const t=Xs();Co(3),$s("ngForOf",t.items)}}let iS=(()=>{class t{constructor(t){this.router=t,this.romanYear="",this.showBurger=!1}ngOnInit(){}changeRoute(t){this.showBurger=!1,this.isExternalLink(t)?window.open(t,"_blank"):this.router.navigate([t])}isExternalLink(t){return t.includes("http")}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv))},t.\u0275cmp=fe({type:t,selectors:[["app-burger-menu"]],inputs:{items:"items",romanYear:"romanYear"},decls:10,vars:4,consts:[[1,"brown","row"],[1,"col-11"],["src","assets/home.svg",1,"img-logo",3,"click"],["class","head p-l",4,"ngIf"],[1,"head","p-l"],[1,"col-1"],["class","col-3",3,"click",4,"ngIf"],[4,"ngIf"],[1,"col-3",3,"click"],["src","assets/menu.png",1,"img-icon"],[1,"row","links"],["class","links-text",4,"ngFor","ngForOf"],[1,"links-text"],[3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"img",2),Qs("click",(function(){return e.changeRoute("/")})),Bs(),Ns(3,Kk,2,1,"span",3),js(4,"span",4),Aa(5,"DIRETTORE RESPONSABILE: DOTT. PAOLO LORO"),Bs(),Bs(),js(6,"div",5),Ns(7,Xk,2,0,"div",6),Ns(8,tS,2,0,"div",6),Bs(),Bs(),Ns(9,nS,4,1,"div",7)),2&t&&(Co(3),$s("ngIf",!1),Co(4),$s("ngIf",!e.showBurger),Co(1),$s("ngIf",e.showBurger),Co(1),$s("ngIf",e.showBurger))},directives:[ph,dh],pipes:[Th],styles:[".links[_ngcontent-%COMP%]{padding-top:8px;min-height:43px;padding-left:20px;background:#44320c}.links-text[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;margin-left:10px;text-align:left;letter-spacing:0;color:#fff;text-transform:uppercase;opacity:1}.brown[_ngcontent-%COMP%]{padding:0!important;margin-left:-12px;margin-right:-12px;background-color:#44320c;min-height:30px}.img-icon[_ngcontent-%COMP%]{max-width:10px}.p-l[_ngcontent-%COMP%]{padding-left:20px}.head[_ngcontent-%COMP%]{font-size:11px;letter-spacing:0;color:#fff;opacity:1;margin-right:10px}.img-logo[_ngcontent-%COMP%]{border:1px solid #fff;border-radius:50%;opacity:1;padding:2px;cursor:pointer}"]}),t})();function oS(t,e){1&t&&Us(0,"app-loader")}function rS(t,e){if(1&t){const t=Ws();js(0,"div",11),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().showModal(n)})),Aa(1),Tc(2,"trunk"),Bs()}if(2&t){const t=e.$implicit;Co(1),Ta(Fc(2,1,t.numero_esterno))}}let sS=(()=>{class t{constructor(t,e){this.router=t,this.dataService=e,this.closeEvent=new Lc,this.loading=!1,this.searchInput={page:1,year:null,region:null,type:null,number:null,query:"",query_type:"words"},this.items=[],this.br=10}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.items=yield this.dataService.loadUniqueTexts(this.searchInput),this.loading=!0}))}closeModal(){this.closeEvent.emit("ok")}showArticle(){this.router.navigate(["articles"])}showModal(t){this.dataService.obs.next(t),$("#articleModal").modal("show")}}return t.\u0275fac=function(e){return new(e||t)(Rs(mv),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-modal-unique-text"]],outputs:{closeEvent:"closeEvent"},decls:13,vars:2,consts:[["tabindex","-1","role","dialog","id","uniqueTextModal",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-lg"],[4,"ngIf"],[1,"modal-content"],[1,"modal-header"],["data-dismiss","modal",1,"modal-title","pointer",3,"click"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"grid-container"],["class","grid-item","data-dismiss","modal",3,"click",4,"ngFor","ngForOf"],["data-dismiss","modal",1,"grid-item",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),Ns(2,oS,1,0,"app-loader",2),js(3,"div",3),js(4,"div",4),js(5,"h5",5),Qs("click",(function(){return e.showArticle()})),Aa(6,"Visualizza intero testo unico"),Bs(),js(7,"button",6),js(8,"span",7),Aa(9,"\xd7"),Bs(),Bs(),Bs(),js(10,"div",8),js(11,"div",9),Ns(12,rS,3,3,"div",10),Bs(),Bs(),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("ngIf",!e.loading),Co(10),$s("ngForOf",e.items))},directives:[ph,dh,Yv],pipes:[Qv],styles:[".item[_ngcontent-%COMP%]{width:10px;padding-left:5px;padding-right:5px}.modal-lg[_ngcontent-%COMP%]{max-width:1141px}.grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(10,1fr)}.grid-item[_ngcontent-%COMP%]{padding:3px;font-size:20px;text-align:center}.grid-item[_ngcontent-%COMP%], .pointer[_ngcontent-%COMP%]{cursor:pointer}"]}),t})(),aS=(()=>{class t{transform(t,...e){return t&&t.includes("^")?t.replace("^","<sup>")+"</sup>":t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ce({name:"sup",type:t,pure:!0}),t})();function lS(t,e){if(1&t&&(js(0,"div",10),Us(1,"div",11),Tc(2,"sup"),js(3,"div",12),Aa(4),Bs(),Us(5,"p",13),Tc(6,"safeHtml"),Bs()),2&t){const t=Xs();Co(1),$s("innerHtml",Fc(2,3,"Articolo "+(null==t.item?null:t.item.numero)),Xi),Co(3),Ta(null==t.item?null:t.item.titolo),Co(1),$s("innerHTML",Fc(6,5,null==t.item?null:t.item.testo),Xi)}}function cS(t,e){1&t&&Us(0,"app-click-and-navigate",14)}let uS=(()=>{class t{constructor(t){this.dataService=t,this.isLoggedIn=!1,this.isLoggedIn=this.dataService.isLoggedIn()}ngOnInit(){this.dataService.obs.subscribe(t=>{this.item=t})}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-modal-article"]],inputs:{item:"item"},decls:12,vars:2,consts:[["tabindex","-1","role","dialog","id","articleModal",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered","modal-dialog-scrollable","modal-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],["class","modal-body",4,"ngIf"],["class","modal-body container lf","text","GLI ARTICOLI SONO DISPONIBILE SOLO AGLI ABBONATI",4,"ngIf"],[1,"modal-footer"],[1,"modal-body"],[1,"title",3,"innerHtml"],[1,"subtitle"],[1,"text",3,"innerHTML"],["text","GLI ARTICOLI SONO DISPONIBILE SOLO AGLI ABBONATI",1,"modal-body","container","lf"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"div",3),js(4,"h5",4),Aa(5,"Testo Unico Dpr 327/2001"),Bs(),js(6,"button",5),js(7,"span",6),Aa(8,"\xd7"),Bs(),Bs(),Bs(),Ns(9,lS,7,7,"div",7),Ns(10,cS,1,0,"app-click-and-navigate",8),Us(11,"div",9),Bs(),Bs(),Bs()),2&t&&(Co(9),$s("ngIf",e.isLoggedIn),Co(1),$s("ngIf",!e.isLoggedIn))},directives:[ph,ob],pipes:[aS,fy],styles:[".modal-lg[_ngcontent-%COMP%]{max-width:60%}.title[_ngcontent-%COMP%]{font-size:22px}.subtitle[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{text-align:center;font-family:Montserrat,sans-serif;color:#213412}.subtitle[_ngcontent-%COMP%]{font-size:17px;margin-top:5px}.text[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:16px;line-height:24px;color:#4e673b}"]}),t})();function dS(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",1),js(2,"div",2),js(3,"app-select",6),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("anno",e)})),Bs(),Bs(),js(4,"div",2),js(5,"app-input",7),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("n",e)})),Bs(),Bs(),js(6,"div",2),js(7,"app-select",8),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("type",e)})),Bs(),Bs(),js(8,"div",2),js(9,"app-select",9),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("region",e)})),Bs(),Bs(),Bs(),js(10,"div",1),js(11,"div",2),js(12,"app-input",10),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("query",e)})),Bs(),Bs(),js(13,"div",2),js(14,"app-select",11),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("query_type",e)})),Bs(),Bs(),js(15,"div",12),js(16,"button",13),Qs("click",(function(){return Xe(t),Xs().search()})),Aa(17,"Cerca"),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs();Co(3),$s("values",null==t.filters?null:t.filters.years),Co(2),$s("inputValue",""+t.searchInput.number),Co(2),$s("values",null==t.filters?null:t.filters.types),Co(2),$s("values",null==t.filters?null:t.filters.regions),Co(5),$s("values",t.searchType)}}function hS(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",1),js(2,"div",2),js(3,"app-select",6),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("anno",e)})),Bs(),Bs(),js(4,"div",2),js(5,"app-input",7),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("n",e)})),Bs(),Bs(),js(6,"div",2),js(7,"app-select",8),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("type",e)})),Bs(),Bs(),js(8,"div",2),js(9,"app-select",9),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("region",e)})),Bs(),Bs(),Bs(),js(10,"div",1),js(11,"div",2),js(12,"app-select",14),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("authority",e)})),Bs(),Bs(),js(13,"div",2),js(14,"app-input",10),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("query",e)})),Bs(),Bs(),js(15,"div",2),js(16,"app-select",11),Qs("changeValue",(function(e){return Xe(t),Xs().setValue("query_type",e)})),Bs(),Bs(),js(17,"div",12),js(18,"button",13),Qs("click",(function(){return Xe(t),Xs().search()})),Aa(19,"Cerca"),Bs(),Bs(),Bs(),Gs()}if(2&t){const t=Xs();Co(3),$s("values",null==t.filters?null:t.filters.years),Co(2),$s("inputValue",""+t.searchInput.number),Co(2),$s("values",null==t.filters?null:t.filters.types),Co(2),$s("values",null==t.filters?null:t.filters.regions),Co(3),$s("values",null==t.filters?null:t.filters.authority),Co(4),$s("values",t.searchType)}}function pS(t,e){1&t&&Us(0,"app-loader")}function gS(t,e){1&t&&(js(0,"div",2),js(1,"p"),Aa(2,"Non ci sono risultati"),Bs(),Bs())}function fS(t,e){if(1&t&&(js(0,"div",2),Us(1,"app-news",16),Bs()),2&t){const t=Xs(2);Co(1),$s("year",t.searchInput.year)("news",t.laws)}}function mS(t,e){if(1&t&&(js(0,"div",1),Ns(1,gS,3,0,"div",15),Ns(2,fS,2,2,"div",15),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",0==(null==t.laws?null:t.laws.length)),Co(1),$s("ngIf",(null==t.laws?null:t.laws.length)>0)}}let vS=(()=>{class t{constructor(t,e){this.dataService=t,this.route=e,this.searchInput={page:1,year:null,region:null,type:null,number:null,query:"",authority:null,query_type:"words"},this.laws=[],this.loaded=!1,this.title="",this.convertedTitle="",this.searchType=[{id:"words",text:"Le singole parole"},{id:"full",text:"La frase esatta"}]}ngOnInit(){return jv(this,void 0,void 0,(function*(){}))}setValue(t,e){this.searchInput[t]=e}search(){return jv(this,void 0,void 0,(function*(){this.loaded=!1,this.laws=[];try{this.laws=(yield this.dataService.list("laws",this.searchInput)).list}catch({error:t}){alert(t.error?t.error:t)}finally{this.loaded=!0}}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm))},t.\u0275cmp=fe({type:t,selectors:[["app-laws-page"]],decls:9,vars:4,consts:[[1,"page"],[1,"row"],[1,"col"],[1,"main-title"],[4,"ngIf"],["class","row",4,"ngIf"],["placeholder","","title","Anno",3,"values","changeValue"],["type","number","placeholder","Numero","title","Numero",3,"inputValue","changeValue"],["placeholder","","title","Tipo di provvedimento",3,"values","changeValue"],["placeholder","","title","Regione",3,"values","changeValue"],["placeholder","Cerca","title","TESTO",3,"changeValue"],["placeholder","","title","Cerca Come",3,"values","changeValue"],[1,"col-auto"],[1,"black-btn",3,"click"],["title","Autorit\xe0",3,"values","changeValue"],["class","col",4,"ngIf"],[3,"year","news"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"h1",3),Aa(4,"Normativa"),Bs(),Bs(),Bs(),Ns(5,dS,18,5,"ng-container",4),Ns(6,hS,20,6,"ng-container",4),Bs(),Ns(7,pS,1,0,"app-loader",4),Ns(8,mS,3,2,"div",5)),2&t&&(Co(5),$s("ngIf","laws"===e.title),Co(1),$s("ngIf","practice"===e.title),Co(1),$s("ngIf",!e.loaded),Co(1),$s("ngIf",e.loaded))},directives:[ph,ZO,HO,Yv,Ty],styles:[".margin-l2[_ngcontent-%COMP%]{margin-top:30px;margin-left:0}.margin-l3[_ngcontent-%COMP%]{margin-top:10px;margin-left:-30px;margin-right:-30px}"]}),t})();function bS(t,e){if(1&t){const t=Ws();js(0,"button",4),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().setActive(n)})),Aa(1),Bs()}if(2&t){const t=e.$implicit;$s("ngClass",t===Xs().current?"active":""),Co(1),Ta(t)}}function yS(t,e){1&t&&(js(0,"div",7),Aa(1,"Non ho trovato risultati in questa ricerca."),Bs())}function _S(t,e){if(1&t&&(js(0,"span",15),Aa(1),Tc(2,"ddd"),Us(3,"br"),Bs()),2&t){const t=Xs().$implicit;Co(1),Ta(Fc(2,1,t.data))}}function wS(t,e){1&t&&Us(0,"hr",16)}function CS(t,e){if(1&t&&(js(0,"span",11),js(1,"a",12),Ns(2,_S,4,3,"span",13),js(3,"span"),Aa(4),Tc(5,"slice"),Us(6,"br"),Bs(),Ns(7,wS,1,0,"hr",14),Bs(),Bs()),2&t){const t=e.$implicit,n=e.index,i=Xs(2).$implicit,o=Xs(2);Co(1),$s("href",t.link,to),Co(1),$s("ngIf",t),Co(2),Ta(function(t,e,n,i,o){const r=Je(),s=He(r,5);return Rc(r,Vc(r,5)?function(t,e,n,i,o,r,s,a){const l=e+n;return function(t,e,n,i,o){const r=Ds(t,e,n,i);return Es(t,e+2,o)||r}(t,l,o,r,s)?Ss(t,l+3,a?i.call(a,o,r,s):i(o,r,s)):Ec(t,l+3)}(r,an(),4,s.transform,n,0,250,s):s.transform(n,0,250))}(0,0,t.titolo||t.testo)),Co(3),$s("ngIf",o.response[i].length-1>n)}}function xS(t,e){if(1&t&&(js(0,"span"),js(1,"span",9),Aa(2),Bs(),Us(3,"br"),Ns(4,CS,8,8,"span",10),Bs()),2&t){const t=Xs().$implicit,e=Xs(2);Co(2),Ta(t),Co(2),$s("ngForOf",e.response[t])}}function OS(t,e){if(1&t&&(js(0,"div",8),Ns(1,xS,5,2,"span",3),Bs()),2&t){const t=e.$implicit,n=Xs(2);Co(1),$s("ngIf",!n.current||n.current==t)}}function MS(t,e){if(1&t&&(js(0,"div"),Ns(1,yS,2,0,"div",5),Ns(2,OS,2,1,"div",6),Bs()),2&t){const t=Xs();Co(1),$s("ngIf",0===t.buttons.length),Co(1),$s("ngForOf",t.buttons)}}let PS=(()=>{class t{constructor(t,e,n){this.dataService=t,this.router=e,this.route=n,this.current="",this.completeLoading=!1,this.buttons=[],this.dot=3,this.text="sto cercando..."}ngOnChanges(t){this.ngOnInit()}ngOnInit(){return jv(this,void 0,void 0,(function*(){this.route.queryParams.subscribe(t=>jv(this,void 0,void 0,(function*(){this.completeLoading=!1;try{this.form=Object.assign(Object.assign({},this.form),{types:t.types.split(",")}),this.response=yield this.dataService.search(Object.assign(Object.assign({},this.route.snapshot.queryParams),this.form)),this.buttons=Object.keys(this.response).filter(t=>this.response[t].length>0),Object.keys(this.response).forEach(t=>{this.response[t]=this.response[t].map(e=>Object.assign(Object.assign({},e),{link:this.convertRoot(t,e)}))})}catch({error:e}){alert(e.error?e.error:e)}finally{this.completeLoading=!0}}))),setInterval(()=>{3===this.dot?this.dot=1:this.dot++,this.text="sto cercando"+new Array(this.dot).fill(".").join("")},500)}))}setActive(t){this.current=this.current!==t?t:""}convertRoot(t,e){return"approfondimenti"===t?"doctrine/"+e.id:"giurisprudenza"===t?"sentences/"+e.id:"sintesi"===t?"sentences/"+e.pronuncia:"news/"+(null==e?void 0:e.id)}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv),Rs(lm))},t.\u0275cmp=fe({type:t,selectors:[["app-search"]],features:[qa],decls:4,vars:3,consts:[[1,"size","maxi-left"],["class","button1",3,"ngClass","click",4,"ngFor","ngForOf"],["width","30%","color","#022141",3,"text"],[4,"ngIf"],[1,"button1",3,"ngClass","click"],["class","no-results",4,"ngIf"],["class","margin-block left",4,"ngFor","ngForOf"],[1,"no-results"],[1,"margin-block","left"],[1,"title"],["class","title-news",4,"ngFor","ngForOf"],[1,"title-news"],[1,"unlink",3,"href"],["class","mini",4,"ngIf"],["class","line",4,"ngIf"],[1,"mini"],[1,"line"]],template:function(t,e){1&t&&(js(0,"div",0),Ns(1,bS,2,2,"button",1),Us(2,"app-title-underline",2),Ns(3,MS,3,2,"div",3),Bs()),2&t&&(Co(1),$s("ngForOf",e.buttons),Co(1),$s("text",e.completeLoading?"risultati ricerca":e.text),Co(1),$s("ngIf",e.completeLoading))},directives:[dh,Qk,ph,lh],pipes:[Gh,my],styles:[".button1[_ngcontent-%COMP%]{background:#868686;border-radius:6px;border:2px solid transparent;text-align:left;font:normal normal 300 13px Roboto;letter-spacing:0;color:#fff;text-transform:uppercase;opacity:1;padding:5px 10px;margin-top:20px;margin-right:5px;margin-left:5px}.active[_ngcontent-%COMP%]{background:#022141}.margin-block[_ngcontent-%COMP%]{margin-top:20px}.left[_ngcontent-%COMP%]{margin-left:5px}.maxi-left[_ngcontent-%COMP%]{margin-left:25px;margin-right:25px}.title[_ngcontent-%COMP%]{font:normal normal normal 18px/21px Bebas Neue;color:#022141;margin-bottom:50px}.title[_ngcontent-%COMP%], .title-news[_ngcontent-%COMP%]{text-align:left;letter-spacing:0;text-transform:uppercase;opacity:1}.title-news[_ngcontent-%COMP%]{font:normal normal normal 20px Roboto;color:#000;padding-top:5px;padding-bottom:5px;cursor:pointer}.line[_ngcontent-%COMP%]{margin:0;border-top:1px solid #d3d3d3}.mini[_ngcontent-%COMP%]{font-size:15px}.no-results[_ngcontent-%COMP%]{margin-top:20px;margin-left:5px}.unlink[_ngcontent-%COMP%]{text-decoration:none;color:#000}"]}),t})();function IS(t,e){if(1&t&&(Us(0,"div",13),Tc(1,"safe")),2&t){const t=Xs().$implicit;$s("innerHTML",Nc(1,1,null==t?null:t.subtitle,"html"),Xi)}}function kS(t,e){if(1&t&&(Us(0,"div",13),Tc(1,"safe")),2&t){const t=Xs().$implicit;$s("innerHTML",Nc(1,1,null==t?null:t.description,"html"),Xi)}}function SS(t,e){if(1&t){const t=Ws();js(0,"div",1),Qs("click",(function(){Xe(t);const n=e.$implicit;return Xs().goTo(n.id)})),js(1,"div",2),js(2,"div",3),Us(3,"img",4),Bs(),Bs(),js(4,"div",5),js(5,"div",6),js(6,"div",7),js(7,"div",8),Aa(8,"Data"),Bs(),js(9,"div",9),Aa(10),Tc(11,"ddd"),Bs(),Bs(),js(12,"div",10),js(13,"div",8),Aa(14),Bs(),js(15,"div",9),Aa(16),Bs(),Bs(),Bs(),js(17,"div",6),js(18,"div",10),Us(19,"div",11),Tc(20,"safeHtml"),Bs(),Bs(),js(21,"div",6),js(22,"div",10),Ns(23,IS,2,4,"div",12),Ns(24,kS,2,4,"div",12),Bs(),Bs(),Bs(),Bs()}if(2&t){const t=e.$implicit;Co(3),na("src",null==t?null:t.img,to),Co(7),Ta(Fc(11,7,t.start_date||t.date)),Co(4),Ta(t.category?"Categoria":"Luogo"),Co(2),Ta((null==t.category?null:t.category.name)||t.place||"web"),Co(3),$s("innerHTML",Fc(20,9,t.title),Xi),Co(4),$s("ngIf",t.subtitle),Co(1),$s("ngIf",t.description)}}let ES=(()=>{class t{constructor(t,e,n,i){this.dataService=t,this.router=e,this.route=n,this.sanitizer=i,this.events=[]}cleanHtml(t){return t.replace(/<\/?[^>]+(>|$)/g,"")}goTo(t){this.router.navigate([t],{relativeTo:this.route})}getSantizeUrl(t){return this.sanitizer.bypassSecurityTrustUrl(t)}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(mv),Rs(lm),Rs(wp))},t.\u0275cmp=fe({type:t,selectors:[["app-events-list"]],inputs:{root:"root",events:"events"},decls:1,vars:1,consts:[["class","row event-element",3,"click",4,"ngFor","ngForOf"],[1,"row","event-element",3,"click"],[1,"col-md-3"],[1,"event-img"],["alt","Immagine evento",1,"img-fluid",3,"src"],[1,"col-md-9"],[1,"row"],[1,"col-md-4"],[1,"event-label"],[1,"event-data"],[1,"col"],[1,"event-title",3,"innerHTML"],["class","event-description",3,"innerHTML",4,"ngIf"],[1,"event-description",3,"innerHTML"]],template:function(t,e){1&t&&Ns(0,SS,25,11,"div",0),2&t&&$s("ngForOf",e.events)},directives:[dh,ph],pipes:[my,fy,rb],styles:[".bg-cover[_ngcontent-%COMP%]{background-size:cover}.bg-contain[_ngcontent-%COMP%], .bg-cover[_ngcontent-%COMP%], .event-element[_ngcontent-%COMP%]   .event-img[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat}.bg-contain[_ngcontent-%COMP%], .event-element[_ngcontent-%COMP%]   .event-img[_ngcontent-%COMP%]{background-size:contain}.bg-brand[_ngcontent-%COMP%]{background-color:#213412}.event-element[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;margin-bottom:30px}.event-element[_ngcontent-%COMP%]   .event-img[_ngcontent-%COMP%]{width:100%;height:127px;background-color:#000;text-align:center;display:flex;justify-content:center}.event-element[_ngcontent-%COMP%]   .event-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:127px;width:auto}.event-element[_ngcontent-%COMP%]   .event-label[_ngcontent-%COMP%]{font-weight:700;font-size:12px;color:#4e673b}.event-element[_ngcontent-%COMP%]   .event-data[_ngcontent-%COMP%]{font-size:12px}.event-element[_ngcontent-%COMP%]   .event-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;text-transform:uppercase;color:#213412;margin-top:10px;margin-bottom:5px;cursor:pointer}.event-element[_ngcontent-%COMP%]   .event-description[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:15px;color:#4e673b}"]}),t})();function DS(t,e){1&t&&Us(0,"iframe",13),2&t&&$s("src",Xs(2).safeURL,eo)}function AS(t,e){if(1&t&&(qs(0),js(1,"div",7),js(2,"div",2),js(3,"span",8),Aa(4),Bs(),Bs(),js(5,"div",4),js(6,"div",9),Aa(7),Tc(8,"ddd"),Us(9,"br"),Aa(10),Bs(),Bs(),Bs(),js(11,"div",7),js(12,"div",10),Ns(13,DS,1,1,"iframe",11),Bs(),Bs(),js(14,"div",7),js(15,"div",10),Us(16,"span",12),Tc(17,"safeHtml"),Bs(),Bs(),Gs()),2&t){const t=Xs();Co(4),Ta(t.currentItem.title),Co(3),Fa(" ",Nc(8,5,t.currentItem.date||t.currentItem.start_date,"-"),""),Co(3),Fa(" ",t.currentItem.place||(null==t.currentItem.category?null:t.currentItem.category.name)||"web"," "),Co(3),$s("ngIf",t.safeURL),Co(3),$s("innerHTML",Fc(17,8,t.currentItem.text||t.currentItem.description),Xi)}}let TS=(()=>{class t{constructor(t,e,n,i){this.dataService=t,this.route=e,this.router=n,this.sanitizer=i}ngOnInit(){this.root=this.route.snapshot.routeConfig.path.split("/")[0],this.convertedTitle=this.dataService.convertedTitle(this.root),this.route.params.subscribe(({id:t})=>jv(this,void 0,void 0,(function*(){this.currentItem=yield this.dataService.singleItem(this.root,t),this.currentItem.rif&&(this.safeURL=this.sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+this.currentItem.rif))})))}back(){console.log("sto premendo?"),this.router.navigate(["/"+this.root])}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv),Rs(lm),Rs(mv),Rs(wp))},t.\u0275cmp=fe({type:t,selectors:[["app-single-event-page"]],decls:9,vars:1,consts:[[1,"page"],[1,"row","mb-3"],[1,"col","d-flex","align-items-center"],[1,"main-title","mb-0"],[1,"col-auto","d-flex","align-items-center"],[1,"back",3,"click"],[4,"ngIf"],[1,"row"],[1,"sub-title"],[1,"event-info"],[1,"col"],["class","video","allowfullscreen","",3,"src",4,"ngIf"],[1,"content",3,"innerHTML"],["allowfullscreen","",1,"video",3,"src"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"h1",3),Aa(4,"Eventi"),Bs(),Bs(),js(5,"div",4),js(6,"div",5),Qs("click",(function(){return e.back()})),Aa(7,"Torna all'elenco"),Bs(),Bs(),Bs(),Ns(8,AS,18,10,"ng-container",6),Bs()),2&t&&(Co(8),$s("ngIf",e.currentItem))},directives:[ph],pipes:[my,fy],styles:[".main-title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:32px;font-weight:600}.main-title[_ngcontent-%COMP%], .sub-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412}.sub-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-top:5px;text-align:left;line-height:25px}.section-title[_ngcontent-%COMP%]{background-color:#213412;color:#fff;font-size:25px;font-weight:600;text-align:center;margin-top:20px}.mid-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;text-transform:uppercase}.mid-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#213412}.back[_ngcontent-%COMP%]{cursor:pointer;font-size:11px}.back[_ngcontent-%COMP%], .event-info[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;text-align:right}.event-info[_ngcontent-%COMP%]{font-size:12px;line-height:13px;color:#213412}.video[_ngcontent-%COMP%]{width:100%;min-height:600px;border:none;margin-top:20px;margin-bottom:20px}.content[_ngcontent-%COMP%]{font-size:20px;color:#213412}"]}),t})();function FS(t,e){if(1&t){const t=Ws();js(0,"app-select",9),Qs("changeValue",(function(e){return Xe(t),Xs(2).changeActivity(e)})),Bs()}if(2&t){const t=Xs(2);$s("values",null==t.formData||null==t.formData.giurisprudenza?null:t.formData.giurisprudenza.tipi_istituzioni)}}function NS(t,e){if(1&t){const t=Ws();js(0,"app-select",10),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("istituzione",e)})),Bs()}2&t&&$s("values",Xs(2).allAutorities)}function VS(t,e){if(1&t){const t=Ws();js(0,"app-select",11),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("relatore",e)})),Bs()}if(2&t){const t=Xs(2);$s("values",null==t.formData||null==t.formData.giurisprudenza?null:t.formData.giurisprudenza.relatori)}}const RS=function(){return[]};function LS(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",2),js(2,"app-select",12),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("presidente",e)})),Bs(),Bs(),js(3,"div",2),js(4,"app-select",13),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("anno",e)})),Bs(),Bs(),js(5,"div",2),Us(6,"app-select",14),Bs(),js(7,"div",2),js(8,"app-input",15),Qs("enter",(function(e){Xe(t);const n=Xs(2);return n.setValue("query",e),n.advancedSearch()}))("changeValue",(function(e){return Xe(t),Xs(2).setValue("query",e)})),Bs(),Bs(),js(9,"div",2),js(10,"app-select",16),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("query_type",e)})),Bs(),Bs(),js(11,"div",2),js(12,"button",17),Qs("click",(function(){return Xe(t),Xs(2).advancedSearch()})),Aa(13,"Cerca"),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(2),$s("values",null==t.formData||null==t.formData.giurisprudenza?null:t.formData.giurisprudenza.presidenti),Co(2),$s("values",null==t.formData||null==t.formData.giurisprudenza?null:t.formData.giurisprudenza.anni),Co(2),$s("values",(null==t.formData||null==t.formData.giurisprudenza?null:t.formData.giurisprudenza.tipi)||Ic(5,RS)),Co(2),$s("inputValue",t.searchInput.query),Co(2),$s("values",t.searchType)}}function zS(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",2),js(2,"app-select",18),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("autore",e)})),Bs(),Bs(),js(3,"div",2),js(4,"app-select",13),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("anno",e)})),Bs(),Bs(),js(5,"div",2),js(6,"app-select",19),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("mesi",e)})),Bs(),Bs(),js(7,"div",2),js(8,"app-input",15),Qs("enter",(function(e){Xe(t);const n=Xs(2);return n.setValue("query",e),n.advancedSearch()}))("changeValue",(function(e){return Xe(t),Xs(2).setValue("query",e)})),Bs(),Bs(),js(9,"div",2),js(10,"app-select",16),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("query_type",e)})),Bs(),Bs(),js(11,"div",2),js(12,"button",17),Qs("click",(function(){return Xe(t),Xs(2).advancedSearch()})),Aa(13,"Cerca"),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(2),$s("values",null==t.formData||null==t.formData.approfondimenti?null:t.formData.approfondimenti.autori),Co(2),$s("values",null==t.formData||null==t.formData.approfondimenti?null:t.formData.approfondimenti.anni),Co(2),$s("values",t.months),Co(2),$s("inputValue",t.searchInput.query),Co(2),$s("values",t.searchType)}}function $S(t,e){if(1&t){const t=Ws();js(0,"div",1),js(1,"div",2),js(2,"app-select",20),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("regione",e)})),Bs(),Bs(),js(3,"div",2),js(4,"app-select",13),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("anno",e)})),Bs(),Bs(),js(5,"div",2),js(6,"app-input",15),Qs("enter",(function(e){Xe(t);const n=Xs(2);return n.setValue("query",e),n.advancedSearch()}))("changeValue",(function(e){return Xe(t),Xs(2).setValue("query",e)})),Bs(),Bs(),js(7,"div",2),js(8,"app-select",16),Qs("changeValue",(function(e){return Xe(t),Xs(2).setValue("query_type",e)})),Bs(),Bs(),js(9,"div",2),js(10,"button",17),Qs("click",(function(){return Xe(t),Xs(2).advancedSearch()})),Aa(11,"Cerca"),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(2),$s("values",t.regioni),Co(2),$s("values",null==t.formData||null==t.formData.approfondimenti?null:t.formData.approfondimenti.anni),Co(2),$s("inputValue",t.searchInput.query),Co(2),$s("values",t.searchType)}}function HS(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",1),js(2,"div",2),js(3,"div",3),Aa(4,"Ricerca avanzata"),Bs(),Bs(),Bs(),js(5,"div",1),js(6,"div",2),js(7,"app-select",4),Qs("changeValue",(function(e){Xe(t);const n=Xs();return n.setValue("types",[e]),n.currentType=e,n.init(e)})),Bs(),Bs(),js(8,"div",2),Ns(9,FS,1,1,"app-select",5),Bs(),js(10,"div",2),Ns(11,NS,1,1,"app-select",6),Bs(),js(12,"div",2),Ns(13,VS,1,1,"app-select",7),Bs(),Bs(),Ns(14,LS,14,6,"div",8),Ns(15,zS,14,5,"div",8),Ns(16,$S,12,4,"div",8),Gs()}if(2&t){const t=Xs();Co(7),$s("values",t.types),Co(2),$s("ngIf","giurisprudenza"==t.currentType),Co(2),$s("ngIf","giurisprudenza"==t.currentType),Co(2),$s("ngIf","giurisprudenza"==t.currentType),Co(1),$s("ngIf","giurisprudenza"==t.currentType),Co(1),$s("ngIf","approfondimenti"==t.currentType),Co(1),$s("ngIf","notizie"==t.currentType)}}let jS=(()=>{class t{constructor(t){this.dataService=t,this.selectedRoute=new Lc,this.allAutorities=[],this.months=[{id:1,text:"Gennaio"},{id:2,text:"Febbraio"},{id:3,text:"Marzo"},{id:4,text:"Aprile"},{id:5,text:"Maggio"},{id:6,text:"Giugno"},{id:7,text:"Luglio"},{id:8,text:"Agosto"},{id:9,text:"Settembre"},{id:10,text:"Ottobre"},{id:11,text:"Novembre"},{id:12,text:"Dicembre"}]}ngOnInit(){this.searchType=[{id:"words",text:"Le singole parole"},{id:"full",text:"La frase esatta"}]}advancedSearch(){let t=Object.assign({},this.searchInput);Array.isArray(t.types)&&(t.types=t.types.join(",")),t=Object.keys(t).reduce((t,e)=>(null!=t[e]&&""!==t[e]||delete t[e],t),Object.assign({},t)),this.selectedRoute.emit({queryParams:t})}init(t){"giurisprudenza"===t?(delete this.searchInput.autore,delete this.searchInput.regione):"approfondimenti"===t?(delete this.searchInput.regione,delete this.searchInput.relatore,delete this.searchInput.presidente,delete this.searchInput.istituzione):"notizie"===t&&(delete this.searchInput.autore,delete this.searchInput.relatore,delete this.searchInput.presidente,delete this.searchInput.istituzione)}setValue(t,e){this.searchInput[t]=e}changeActivity(t){var e;return jv(this,void 0,void 0,(function*(){t?(this.allAutorities=(yield this.dataService.autority(+t)).list,this.setValue("istituzione",(null===(e=this.allAutorities[0])||void 0===e?void 0:e.id)||null)):(this.allAutorities=[],this.setValue("istituzione",null))}))}}return t.\u0275fac=function(e){return new(e||t)(Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-advanced-search"]],inputs:{formData:"formData",searchInput:"searchInput",currentType:"currentType",types:"types",regioni:"regioni"},outputs:{selectedRoute:"selectedRoute"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"row"],[1,"col"],[1,"advanced-form-title"],["placeholder","","title","AMBITO RICERCA",3,"values","changeValue"],["placeholder","","title","TIPO AUTORITA' GIUDICANTE","defaultValue","Tutti",3,"values","changeValue",4,"ngIf"],["placeholder","","title","AUTORITA' GIUDICANTE","defaultValue","Tutti",3,"values","changeValue",4,"ngIf"],["placeholder","","title","RELATORE","defaultValue","Tutti",3,"values","changeValue",4,"ngIf"],["class","row",4,"ngIf"],["placeholder","","title","TIPO AUTORITA' GIUDICANTE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","","title","AUTORITA' GIUDICANTE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","","title","RELATORE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","PRESIDENTE","title","PRESIDENTE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","ANNO'","title","ANNO","defaultValue","Tutti",3,"values","changeValue"],["placeholder","TIPO PRONUNCIA","title","TIPO PRONUNCIA","defaultValue","Tutti",3,"values"],["placeholder","TESTO","title","TESTO",3,"inputValue","enter","changeValue"],["placeholder","","title","Cerca Come",3,"values","changeValue"],[1,"black-btn",3,"click"],["placeholder","AUTORE","title","AUTORE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","MESE'","title","MESE","defaultValue","Tutti",3,"values","changeValue"],["placeholder","REGIONE","title","REGIONE","defaultValue","Tutte",3,"values","changeValue"]],template:function(t,e){1&t&&Ns(0,HS,17,7,"ng-container",0),2&t&&$s("ngIf",e.formData)},directives:[ph,ZO,HO],styles:[".m-form-data[_ngcontent-%COMP%]{margin-left:20px;margin-top:30px}.advanced-form-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:26px;font-weight:700;text-transform:uppercase;color:#213412}"]}),t})();function BS(t,e){if(1&t){const t=Ws();js(0,"div",2),js(1,"form",6),Qs("ngSubmit",(function(){Xe(t);const e=Xs(2);return e.send_quest(e.questForm.value)})),js(2,"div",7),js(3,"label",8),Aa(4,"Titolo sintetico*"),Bs(),Us(5,"input",9),Bs(),js(6,"div",7),js(7,"label",10),Aa(8,"Domanda completa*"),Bs(),Us(9,"textarea",11),Bs(),js(10,"div",12),js(11,"button",13),Aa(12),Bs(),Bs(),Bs(),Bs()}if(2&t){const t=Xs(2);Co(1),$s("formGroup",t.questForm),Co(10),$s("disabled",!t.questForm.valid),Co(1),Fa(" ",t.sending?"Attendere...":"Invia la domanda"," ")}}function US(t,e){1&t&&(js(0,"div",2),js(1,"p",14),Aa(2,"Grazie per aver inviato la domanda."),Bs(),Bs())}function qS(t,e){if(1&t&&(qs(0),js(1,"div",1),Ns(2,BS,13,3,"div",5),Ns(3,US,3,0,"div",5),Bs(),Gs()),2&t){const t=Xs();Co(2),$s("ngIf",!t.questionSent),Co(1),$s("ngIf",t.questionSent)}}function GS(t,e){if(1&t){const t=Ws();qs(0),js(1,"div",1),js(2,"div",2),js(3,"div",15),Aa(4,"Per inserire un quesito devi "),js(5,"span",16),Qs("click",(function(){return Xe(t),Xs().showModal()})),Aa(6,"accedere al tuo profilo"),Bs(),Aa(7,"."),Bs(),Bs(),Bs(),Gs()}}let WS=(()=>{class t{constructor(t,e){this.fb=t,this.dataService=e}ngOnInit(){this.logged=this.dataService.isLoggedIn(),this.questionSent=!1,this.questForm=this.fb.group({title:["",I_.required],question:["",I_.required]})}send_quest(t){this.sending=!0,this.dataService.sendQuestion(t).then(()=>{this.sending=!1,this.questionSent=!0}).catch(t=>{alert(t.error.error),this.sending=!1})}showModal(){$("#loginModal").modal("show")}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-quesito"]],decls:21,vars:2,consts:[[1,"page"],[1,"row"],[1,"col"],[1,"mid-title","mb-3"],[4,"ngIf"],["class","col",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"form-group"],["for","title",1,"label"],["type","text","id","title","formControlName","title",1,"form-control"],["for","question",1,"label"],["id","question","cols","30","rows","10","formControlName","question",1,"form-control"],[1,"form-group","text-center"],["type","submit",1,"btn","btn-brand",3,"disabled"],[1,"my-5"],[1,"login-needed"],[1,"login",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"div",2),js(3,"div",3),Aa(4,"Invia quesito"),Bs(),js(5,"p"),Aa(6,"L\u2019invio del quesito implica l\u2019accettazione delle seguenti regole:"),Bs(),js(7,"p"),Aa(8,"1) Le risposte - gratuite e non obbligatorie - sono commenti sintetici e sommari, basati su quanto evincibile dal testo inviato, di natura meramente divulgativa offerti all'interesse dei lettori della rivista telematica: prima di assumere qualsiasi decisione il mittente \xe8 invitato a rivolgersi al proprio consulente di fiducia. In ogni caso l\u2019utilizzo delle indicazioni contenute nelle risposte resta a completo rischio dell\u2019utente."),Bs(),js(9,"p"),Aa(10,"2) Coloro che hanno avuto riscontro non possono proporre ulteriori quesiti per un anno."),Bs(),js(11,"p"),Aa(12,"3) Il quesito, la risposta e il nome e cognome del mittente saranno pubblicati sulla rivista telematica Esproprionline a discrezione del coordinatore scientifico del sito stesso."),Bs(),js(13,"p"),Aa(14,"4) I quesiti devono essere chiari, sintetici, univoci e relativi alla materia dell\u2019espropriazione."),Bs(),js(15,"p"),Aa(16,"5) I quesiti sono selezionati a insindacabile giudizio del coordinatore scientifico di Esproprionline, senza alcun obbligo di risposta o di pubblicazione integrale o parziale."),Bs(),js(17,"p"),Aa(18,"6) Esproprionline si riserva ogni diritto di pubblicazione dei quesiti stessi, senza che i mittenti possano pretendere alcunch\xe9."),Bs(),Bs(),Bs(),Ns(19,qS,4,2,"ng-container",4),Ns(20,GS,8,0,"ng-container",4),Bs()),2&t&&(Co(19),$s("ngIf",e.logged),Co(1),$s("ngIf",!e.logged))},directives:[ph,Ew,C_,Nw,g_,w_,jw],styles:[".main-title[_ngcontent-%COMP%]{text-transform:uppercase;font-size:32px;font-weight:600}.main-title[_ngcontent-%COMP%], .sub-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;color:#213412}.sub-title[_ngcontent-%COMP%]{font-size:20px;font-weight:700;margin-top:5px;text-align:left;line-height:25px}.section-title[_ngcontent-%COMP%]{background-color:#213412;color:#fff;font-size:25px;font-weight:600;text-align:center;margin-top:20px}.mid-title[_ngcontent-%COMP%], .section-title[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;text-transform:uppercase}.mid-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#213412}.login-needed[_ngcontent-%COMP%]{font-size:18px;color:red;padding:20px 0}.login[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}"]}),t})();function ZS(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t),Co(1),Ta(t)}}function YS(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function QS(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function JS(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function KS(t,e){if(1&t){const t=Ws();js(0,"div",3),js(1,"div",22),js(2,"button",23),Qs("click",(function(){return Xe(t),Xs().resetForm()})),Aa(3,"Pulisci la ricerca"),Bs(),Bs(),Bs()}}let XS=(()=>{class t extends Kb{constructor(t){super(),this.fb=t}ngOnInit(){this.filterForm=this.fb.group({year:[null],number:[null],type:[null],region:[null],query:[""],query_type:[this.searchType[0].id]}),this.initialValues=this.filterForm.value,this.fillForm(this.searchInput)}ngOnChanges(t){this.filterForm&&this.cleanFormHandler()}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-laws-form"]],features:[za,qa],decls:49,vars:9,consts:[[1,"row","mt-3"],[1,"col"],[3,"formGroup"],[1,"form-row"],[1,"form-group"],["for","year",1,"label"],["name","year","id","year","formControlName","year",1,"form-control",3,"change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","number",1,"label"],["type","number","min","1","name","number","formControlName","number",1,"form-control",3,"change"],["for","type",1,"label"],["name","type","id","type","formControlName","type",1,"form-control",3,"change"],["for","region",1,"label"],["name","region","id","region","formControlName","region",1,"form-control",3,"change"],["for","query",1,"label"],["type","text","name","query","formControlName","query","placeholder","Cerca",1,"form-control",3,"change"],["for","query_type",1,"label"],["name","query_type","id","query_type","formControlName","query_type",1,"form-control",3,"change"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn","in-row",3,"click"],["class","form-row",4,"ngIf"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-recupera",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"form",2),js(3,"div",3),js(4,"div",1),js(5,"div",4),js(6,"label",5),Aa(7,"Anno"),Bs(),js(8,"select",6),Qs("change",(function(){return e.setValue("year")})),js(9,"option",7),Aa(10,"Tutti"),Bs(),Ns(11,ZS,2,2,"option",8),Bs(),Bs(),Bs(),js(12,"div",1),js(13,"div",4),js(14,"label",9),Aa(15,"Numero"),Bs(),js(16,"input",10),Qs("change",(function(){return e.setValue("number")})),Bs(),Bs(),Bs(),js(17,"div",1),js(18,"div",4),js(19,"label",11),Aa(20,"Tipo di provvedimento"),Bs(),js(21,"select",12),Qs("change",(function(){return e.setValue("type")})),js(22,"option",7),Aa(23,"Tutti"),Bs(),Ns(24,YS,2,2,"option",8),Bs(),Bs(),Bs(),js(25,"div",1),js(26,"div",4),js(27,"label",13),Aa(28,"Regione"),Bs(),js(29,"select",14),Qs("change",(function(){return e.setValue("region")})),js(30,"option",7),Aa(31,"Tutte"),Bs(),Ns(32,QS,2,2,"option",8),Bs(),Bs(),Bs(),Bs(),js(33,"div",3),js(34,"div",1),js(35,"div",4),js(36,"label",15),Aa(37,"Cerca cosa (inserisci testo)"),Bs(),js(38,"input",16),Qs("change",(function(){return e.setValue("query")})),Bs(),Bs(),Bs(),js(39,"div",1),js(40,"div",4),js(41,"label",17),Aa(42,"Cerca come"),Bs(),js(43,"select",18),Qs("change",(function(){return e.setValue("query_type")})),Ns(44,JS,2,2,"option",8),Bs(),Bs(),Bs(),js(45,"div",19),js(46,"button",20),Qs("click",(function(){return e.submit()})),Aa(47,"Cerca"),Bs(),Bs(),Bs(),Ns(48,KS,4,0,"div",21),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("formGroup",e.filterForm),Co(7),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.years),Co(11),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.types),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.regions),Co(12),$s("ngForOf",e.searchType),Co(4),$s("ngIf",e.isDirty()))},directives:[Ew,C_,Nw,G_,w_,jw,W_,J_,dh,F_,g_,ph],encapsulation:2}),t})();function tE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t),Co(1),Ta(t)}}function eE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t),Co(1),Ta(t)}}function nE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function iE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function oE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function rE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function sE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function aE(t,e){if(1&t&&(js(0,"option",10),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function lE(t,e){if(1&t){const t=Ws();js(0,"div",3),js(1,"div",31),js(2,"button",32),Qs("click",(function(){return Xe(t),Xs().resetForm()})),Aa(3,"Pulisci la ricerca"),Bs(),Bs(),Bs()}}let cE=(()=>{class t extends Kb{constructor(t,e){super(),this.fb=t,this.dataService=e}ngOnInit(){this.filterForm=this.fb.group({number:[null],type:[null],from:[null],to:[null],relatore:[null],presidente:[null],istituzione:[null],giudice_monocratico:[null],query:[null],query_type:[this.searchType[0].id],searchIn:[this.searchInput.searchIn]}),this.initialValues=this.filterForm.value,this.fillForm()}ngOnChanges(t){var e;this.initialInstitutions=null===(e=this.filters)||void 0===e?void 0:e.istituzioni,this.searchInput.searchIn||(this.searchInput.searchIn=this.searchWhere[0].id),this.filterForm&&this.cleanFormHandler()}changeInstitution(){const t=this.filterForm.get("type").value;t?this.dataService.autority(+t).then(t=>{this.allAutorities=t.list,this.filters.istituzioni=this.allAutorities}):(this.allAutorities=[],this.filters.istituzioni=this.initialInstitutions)}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC),Rs(Zv))},t.\u0275cmp=fe({type:t,selectors:[["app-sentences-form"]],features:[za,qa],decls:79,vars:16,consts:[[1,"row","mt-3"],[1,"col"],[3,"formGroup"],[1,"form-row"],[1,"col-md-1"],[1,"form-group"],["for","number",1,"label"],["type","text","min","1","name","text","formControlName","number","placeholder","Numero",1,"form-control",3,"change"],["for","from",1,"label"],["name","from","id","from","formControlName","from",1,"form-control",3,"change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","to",1,"label"],["name","to","id","to","formControlName","to",1,"form-control",3,"change"],["for","type",1,"label"],["name","type","id","type","formControlName","type",1,"form-control",3,"change"],["for","istituzione",1,"label"],["name","istituzione","id","istituzione","formControlName","istituzione",1,"form-control",3,"change"],["for","relatore",1,"label"],["name","relatore","id","relatore","formControlName","relatore",1,"form-control",3,"change"],["name","giudice_monocratico","id","giudice_monocratico","formControlName","giudice_monocratico",1,"form-control",3,"change"],[1,"col-md-5"],["for","query",1,"label"],["type","text","name","query","formControlName","query","placeholder","Cerca",1,"form-control",3,"change"],["for","query_type",1,"label"],["name","query_type","id","query_type","formControlName","query_type",1,"form-control",3,"change"],["for","searchIn",1,"label"],["name","searchIn","id","searchIn","formControlName","searchIn",1,"form-control",3,"change"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn","in-row",3,"click"],["class","form-row",4,"ngIf"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-recupera",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"form",2),js(3,"div",3),js(4,"div",4),js(5,"div",5),js(6,"label",6),Aa(7,"Numero"),Bs(),js(8,"input",7),Qs("change",(function(){return e.setValue("number")})),Bs(),Bs(),Bs(),js(9,"div",4),js(10,"div",5),js(11,"label",8),Aa(12,"Dal"),Bs(),js(13,"select",9),Qs("change",(function(){return e.setValue("from")})),js(14,"option",10),Aa(15,"Tutti"),Bs(),Ns(16,tE,2,2,"option",11),Bs(),Bs(),Bs(),js(17,"div",4),js(18,"div",5),js(19,"label",12),Aa(20,"Al"),Bs(),js(21,"select",13),Qs("change",(function(){return e.setValue("to")})),js(22,"option",10),Aa(23,"Tutti"),Bs(),Ns(24,eE,2,2,"option",11),Bs(),Bs(),Bs(),js(25,"div",1),js(26,"div",5),js(27,"label",14),Aa(28,"Tipo di autorit\xe0 giudicante"),Bs(),js(29,"select",15),Qs("change",(function(){return e.setValue("type"),e.changeInstitution()})),js(30,"option",10),Aa(31,"Tutte"),Bs(),Ns(32,nE,2,2,"option",11),Bs(),Bs(),Bs(),js(33,"div",1),js(34,"div",5),js(35,"label",16),Aa(36,"Istituzione"),Bs(),js(37,"select",17),Qs("change",(function(){return e.setValue("istituzione")})),js(38,"option",10),Aa(39,"Tutte"),Bs(),Ns(40,iE,2,2,"option",11),Bs(),Bs(),Bs(),js(41,"div",1),js(42,"div",5),js(43,"label",18),Aa(44,"Relatore"),Bs(),js(45,"select",19),Qs("change",(function(){return e.setValue("relatore")})),js(46,"option",10),Aa(47,"Tutti"),Bs(),Ns(48,oE,2,2,"option",11),Bs(),Bs(),Bs(),js(49,"div",1),js(50,"div",5),js(51,"label",18),Aa(52,"Giudice Monocratico"),Bs(),js(53,"select",20),Qs("change",(function(){return e.setValue("giudice_monocratico")})),js(54,"option",10),Aa(55,"Tutti"),Bs(),Ns(56,rE,2,2,"option",11),Bs(),Bs(),Bs(),Bs(),js(57,"div",3),js(58,"div",21),js(59,"div",5),js(60,"label",22),Aa(61,"Cerca cosa (inserisci testo)"),Bs(),js(62,"input",23),Qs("change",(function(){return e.setValue("query")})),Bs(),Bs(),Bs(),js(63,"div",1),js(64,"div",5),js(65,"label",24),Aa(66,"Cerca come"),Bs(),js(67,"select",25),Qs("change",(function(){return e.setValue("query_type")})),Ns(68,sE,2,2,"option",11),Bs(),Bs(),Bs(),js(69,"div",1),js(70,"div",5),js(71,"label",26),Aa(72,"Cerca in"),Bs(),js(73,"select",27),Qs("change",(function(){return e.setValue("searchIn")})),Ns(74,aE,2,2,"option",11),Bs(),Bs(),Bs(),js(75,"div",28),js(76,"button",29),Qs("click",(function(){return e.submit()})),Aa(77,"Cerca"),Bs(),Bs(),Bs(),Ns(78,lE,4,0,"div",30),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("formGroup",e.filterForm),Co(12),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.years),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.years),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.types),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.istituzioni),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.relatori),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.giudici_monocratici),Co(12),$s("ngForOf",e.searchType),Co(6),$s("ngForOf",e.searchWhere),Co(4),$s("ngIf",e.isDirty()))},directives:[Ew,C_,Nw,g_,w_,jw,G_,W_,J_,dh,ph],encapsulation:2}),t})();function uE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t),Co(1),Ta(t)}}function dE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function hE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function pE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function gE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function fE(t,e){if(1&t){const t=Ws();js(0,"div",3),js(1,"div",22),js(2,"button",23),Qs("click",(function(){return Xe(t),Xs().resetForm()})),Aa(3,"Pulisci la ricerca "),Bs(),Bs(),Bs()}}let mE=(()=>{class t extends Kb{constructor(t){super(),this.fb=t}ngOnInit(){this.filterForm=this.fb.group({year:[null],month:[null],author:[null],search_fields:[this.searchFieldOrTitle[0].id],query:[null],query_type:[this.searchType[0].id]}),this.initialValues=this.filterForm.value,this.fillForm()}ngOnChanges(t){this.searchInput.search_fields||(this.searchInput.search_fields=this.searchFieldOrTitle[0].id),this.filterForm&&this.cleanFormHandler()}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-doctrine-form"]],features:[za,qa],decls:50,vars:10,consts:[[1,"row","mt-3"],[1,"col"],[3,"formGroup"],[1,"form-row"],[1,"form-group"],["for","year",1,"label"],["name","year","id","year","formControlName","year",1,"form-control",3,"change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","month",1,"label"],["name","month","id","month","formControlName","month",1,"form-control",3,"change"],["for","author",1,"label"],["name","author","id","author","formControlName","author",1,"form-control",3,"change"],["for","query",1,"label"],["type","text","name","query","formControlName","query","placeholder","Cerca",1,"form-control",3,"change"],["for","search_fields",1,"label"],["name","search_fields","id","search_fields","formControlName","search_fields",1,"form-control",3,"change"],["for","query_type",1,"label"],["name","query_type","id","query_type","formControlName","query_type",1,"form-control",3,"change"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn","in-row",3,"click"],["class","form-row",4,"ngIf"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-recupera",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"form",2),js(3,"div",3),js(4,"div",1),js(5,"div",4),js(6,"label",5),Aa(7,"Anno"),Bs(),js(8,"select",6),Qs("change",(function(){return e.setValue("year")})),js(9,"option",7),Aa(10,"Tutti"),Bs(),Ns(11,uE,2,2,"option",8),Bs(),Bs(),Bs(),js(12,"div",1),js(13,"div",4),js(14,"label",9),Aa(15,"Mese"),Bs(),js(16,"select",10),Qs("change",(function(){return e.setValue("month")})),js(17,"option",7),Aa(18,"Tutti"),Bs(),Ns(19,dE,2,2,"option",8),Bs(),Bs(),Bs(),js(20,"div",1),js(21,"div",4),js(22,"label",11),Aa(23,"Autore"),Bs(),js(24,"select",12),Qs("change",(function(){return e.setValue("author")})),js(25,"option",7),Aa(26,"Tutti"),Bs(),Ns(27,hE,2,2,"option",8),Bs(),Bs(),Bs(),Bs(),js(28,"div",3),js(29,"div",1),js(30,"div",4),js(31,"label",13),Aa(32,"Cerca cosa (inserisci testo)"),Bs(),js(33,"input",14),Qs("change",(function(){return e.setValue("query")})),Bs(),Bs(),Bs(),js(34,"div",1),js(35,"div",4),js(36,"label",15),Aa(37,"Cerca in"),Bs(),js(38,"select",16),Qs("change",(function(){return e.setValue("search_fields")})),Ns(39,pE,2,2,"option",8),Bs(),Bs(),Bs(),js(40,"div",1),js(41,"div",4),js(42,"label",17),Aa(43,"Cerca come"),Bs(),js(44,"select",18),Qs("change",(function(){return e.setValue("query_type")})),Ns(45,gE,2,2,"option",8),Bs(),Bs(),Bs(),js(46,"div",19),js(47,"button",20),Qs("click",(function(){return e.submit()})),Aa(48,"Cerca"),Bs(),Bs(),Bs(),Ns(49,fE,4,0,"div",21),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("formGroup",e.filterForm),Co(7),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.years),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.months),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.authors),Co(12),$s("ngForOf",e.searchFieldOrTitle),Co(6),$s("ngForOf",e.searchType),Co(4),$s("ngIf",e.isDirty()))},directives:[Ew,C_,Nw,G_,w_,jw,W_,J_,dh,g_,ph],encapsulation:2}),t})();function vE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t),Co(1),Ta(t)}}function bE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function yE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.name)}}function _E(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function wE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function CE(t,e){if(1&t&&(js(0,"option",7),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function xE(t,e){if(1&t){const t=Ws();js(0,"div",3),js(1,"div",27),js(2,"button",28),Qs("click",(function(){return Xe(t),Xs().resetForm()})),Aa(3,"Pulisci la ricerca "),Bs(),Bs(),Bs()}}let OE=(()=>{class t extends Kb{constructor(t){super(),this.fb=t}ngOnInit(){this.filterForm=this.fb.group({year:[null],number:[null],category:[null],region:[null],authority:[null],type:[null],query:[null],query_type:[this.searchType[0].id]}),this.initialValues=this.filterForm.value,this.fillForm()}ngOnChanges(t){this.filterForm&&this.cleanFormHandler()}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-practice-form"]],features:[za,qa],decls:65,vars:13,consts:[[1,"row","mt-3"],[1,"col"],[3,"formGroup"],[1,"form-row"],[1,"form-group"],["for","year",1,"label"],["name","year","id","year","formControlName","year",1,"form-control",3,"change"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],["for","number",1,"label"],["type","number","min","1","name","number","formControlName","number",1,"form-control",3,"change"],["for","type",1,"label"],["name","type","id","type","formControlName","type",1,"form-control",3,"change"],["for","category",1,"label"],["name","category","id","category","formControlName","category",1,"form-control",3,"change"],["for","region",1,"label"],["name","region","id","region","formControlName","region",1,"form-control",3,"change"],["for","authority",1,"label"],["name","authority","id","authority","formControlName","authority",1,"form-control",3,"change"],[1,"col-md-4"],["for","query",1,"label"],["type","text","name","query","formControlName","query","placeholder","Cerca",1,"form-control",3,"change"],["for","query_type",1,"label"],["name","query_type","id","query_type","formControlName","query_type",1,"form-control",3,"change"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn","in-row",3,"click"],["class","form-row",4,"ngIf"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-recupera",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"form",2),js(3,"div",3),js(4,"div",1),js(5,"div",4),js(6,"label",5),Aa(7,"Anno"),Bs(),js(8,"select",6),Qs("change",(function(){return e.setValue("year")})),js(9,"option",7),Aa(10,"Tutti"),Bs(),Ns(11,vE,2,2,"option",8),Bs(),Bs(),Bs(),js(12,"div",1),js(13,"div",4),js(14,"label",9),Aa(15,"Numero"),Bs(),js(16,"input",10),Qs("change",(function(){return e.setValue("number")})),Bs(),Bs(),Bs(),js(17,"div",1),js(18,"div",4),js(19,"label",11),Aa(20,"Tipo di provvedimento"),Bs(),js(21,"select",12),Qs("change",(function(){return e.setValue("type")})),js(22,"option",7),Aa(23,"Tutti"),Bs(),Ns(24,bE,2,2,"option",8),Bs(),Bs(),Bs(),js(25,"div",1),js(26,"div",4),js(27,"label",13),Aa(28,"Categoria"),Bs(),js(29,"select",14),Qs("change",(function(){return e.setValue("category")})),js(30,"option",7),Aa(31,"Tutte"),Bs(),Ns(32,yE,2,2,"option",8),Bs(),Bs(),Bs(),Bs(),js(33,"div",3),js(34,"div",1),js(35,"div",4),js(36,"label",15),Aa(37,"Regione"),Bs(),js(38,"select",16),Qs("change",(function(){return e.setValue("region")})),js(39,"option",7),Aa(40,"Tutte"),Bs(),Ns(41,_E,2,2,"option",8),Bs(),Bs(),Bs(),js(42,"div",1),js(43,"div",4),js(44,"label",17),Aa(45,"Autorit\xe0"),Bs(),js(46,"select",18),Qs("change",(function(){return e.setValue("authority")})),js(47,"option",7),Aa(48,"Tutti"),Bs(),Ns(49,wE,2,2,"option",8),Bs(),Bs(),Bs(),js(50,"div",19),js(51,"div",4),js(52,"label",20),Aa(53,"Cerca cosa (inserisci testo)"),Bs(),js(54,"input",21),Qs("change",(function(){return e.setValue("query")})),Bs(),Bs(),Bs(),js(55,"div",1),js(56,"div",4),js(57,"label",22),Aa(58,"Cerca come"),Bs(),js(59,"select",23),Qs("change",(function(){return e.setValue("query_type")})),Ns(60,CE,2,2,"option",8),Bs(),Bs(),Bs(),js(61,"div",24),js(62,"button",25),Qs("click",(function(){return e.submit()})),Aa(63,"Cerca"),Bs(),Bs(),Bs(),Ns(64,xE,4,0,"div",26),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("formGroup",e.filterForm),Co(7),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.years),Co(11),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.types),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.categories),Co(7),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.regions),Co(6),$s("ngValue",null),Co(2),$s("ngForOf",null==e.filters?null:e.filters.authorities),Co(11),$s("ngForOf",e.searchType),Co(4),$s("ngIf",e.isDirty()))},directives:[Ew,C_,Nw,G_,w_,jw,W_,J_,dh,F_,g_,ph],encapsulation:2}),t})();function ME(t,e){if(1&t&&(js(0,"option",15),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function PE(t,e){if(1&t&&(js(0,"option",15),Aa(1),Bs()),2&t){const t=e.$implicit;$s("ngValue",t.id),Co(1),Ta(t.text)}}function IE(t,e){if(1&t){const t=Ws();js(0,"div",3),js(1,"div",16),js(2,"button",17),Qs("click",(function(){return Xe(t),Xs().resetForm()})),Aa(3,"Pulisci la ricerca"),Bs(),Bs(),Bs()}}let kE=(()=>{class t extends Kb{constructor(t){super(),this.fb=t}ngOnInit(){this.searchInput.category=null,this.filterForm=this.fb.group({query:[null],search_fields:[this.searchFieldOrTitle[0].id],query_type:[this.searchType[0].id]}),this.initialValues=this.filterForm.value,this.fillForm()}ngOnChanges(t){this.filterForm&&this.cleanFormHandler()}}return t.\u0275fac=function(e){return new(e||t)(Rs(iC))},t.\u0275cmp=fe({type:t,selectors:[["app-news-form"]],features:[za,qa],decls:25,vars:4,consts:[[1,"row","mt-3"],[1,"col"],[3,"formGroup"],[1,"form-row"],[1,"form-group"],["for","query",1,"label"],["type","text","name","query","formControlName","query","placeholder","Cerca",1,"form-control",3,"change"],["for","search_fields",1,"label"],["name","search_fields","id","search_fields","formControlName","search_fields",1,"form-control",3,"change"],[3,"ngValue",4,"ngFor","ngForOf"],["for","query_type",1,"label"],["name","query_type","id","query_type","formControlName","query_type",1,"form-control",3,"change"],[1,"col-auto","d-flex","align-items-end"],[1,"black-btn","in-row",3,"click"],["class","form-row",4,"ngIf"],[3,"ngValue"],[1,"col","d-flex","justify-content-end"],["type","button",1,"btn","btn-recupera",3,"click"]],template:function(t,e){1&t&&(js(0,"div",0),js(1,"div",1),js(2,"form",2),js(3,"div",3),js(4,"div",1),js(5,"div",4),js(6,"label",5),Aa(7,"Cerca cosa (inserisci testo)"),Bs(),js(8,"input",6),Qs("change",(function(){return e.setValue("query")})),Bs(),Bs(),Bs(),js(9,"div",1),js(10,"div",4),js(11,"label",7),Aa(12,"Cerca in"),Bs(),js(13,"select",8),Qs("change",(function(){return e.setValue("search_fields")})),Ns(14,ME,2,2,"option",9),Bs(),Bs(),Bs(),js(15,"div",1),js(16,"div",4),js(17,"label",10),Aa(18,"Cerca come"),Bs(),js(19,"select",11),Qs("change",(function(){return e.setValue("query_type")})),Ns(20,PE,2,2,"option",9),Bs(),Bs(),Bs(),js(21,"div",12),js(22,"button",13),Qs("click",(function(){return e.submit()})),Aa(23,"Cerca"),Bs(),Bs(),Bs(),Ns(24,IE,4,0,"div",14),Bs(),Bs(),Bs()),2&t&&(Co(2),$s("formGroup",e.filterForm),Co(12),$s("ngForOf",e.searchFieldOrTitleLimited),Co(6),$s("ngForOf",e.searchType),Co(4),$s("ngIf",e.isDirty()))},directives:[Ew,C_,Nw,g_,w_,jw,G_,dh,ph,W_,J_],encapsulation:2}),t})();function SE(t,e){if(1&t&&(js(0,"div",2),js(1,"div",3),js(2,"div",4),Aa(3),Bs(),js(4,"div",5),Aa(5),Bs(),Bs(),js(6,"div",6),Aa(7),Bs(),js(8,"div",7),Aa(9),Bs(),Us(10,"div",8),Tc(11,"safe"),Bs()),2&t){const t=e.$implicit;Co(3),Ta(t.date),Co(1),$s("ngClass","in sospeso"===(null==t?null:t.status)?"sospeso":""),Co(1),Ta(t.status),Co(2),Ta(t.title),Co(2),Ta(t.question),Co(1),$s("innerHTML",Nc(11,6,t.answer,"html"),Xi)}}function EE(t,e){if(1&t&&(qs(0),Ns(1,SE,12,9,"div",1),Gs()),2&t){const t=Xs();Co(1),$s("ngForOf",t.questions)}}function DE(t,e){1&t&&(qs(0),js(1,"p"),Aa(2," Non sono state inoltrate domande "),Bs(),Gs())}let AE=(()=>{class t{constructor(){}ngOnInit(){}ngOnChanges(t){var e;this.loaded&&(this.questions=null===(e=this.profileData)||void 0===e?void 0:e.questions)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-quesiti"]],inputs:{loaded:"loaded",profileData:"profileData"},features:[qa],decls:2,vars:2,consts:[[4,"ngIf"],["class","quest-element",4,"ngFor","ngForOf"],[1,"quest-element"],[1,"quest-info"],[1,"quest-date"],[1,"quest-status",3,"ngClass"],[1,"quest-title"],[1,"quest-body"],[1,"quest-answer",3,"innerHTML"]],template:function(t,e){1&t&&(Ns(0,EE,2,1,"ng-container",0),Ns(1,DE,3,0,"ng-container",0)),2&t&&($s("ngIf",(null==e.questions?null:e.questions.length)>0),Co(1),$s("ngIf",!(null!=e.questions&&e.questions.length)))},directives:[ph,dh,lh],pipes:[rb],styles:['.quest-element[_ngcontent-%COMP%]{margin-bottom:60px}.quest-element[_ngcontent-%COMP%]   .quest-info[_ngcontent-%COMP%]{display:flex;align-items:center}.quest-element[_ngcontent-%COMP%]   .quest-info[_ngcontent-%COMP%]   .quest-date[_ngcontent-%COMP%]{font-family:Montserrat,sans-serif;font-size:12px}.quest-element[_ngcontent-%COMP%]   .quest-info[_ngcontent-%COMP%]   .quest-status[_ngcontent-%COMP%]{font-size:10px;margin-left:20px;text-transform:uppercase;display:flex;align-items:center}.quest-element[_ngcontent-%COMP%]   .quest-info[_ngcontent-%COMP%]   .quest-status[_ngcontent-%COMP%]:before{content:"";display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:3px;background-color:#59c158}.quest-element[_ngcontent-%COMP%]   .quest-info[_ngcontent-%COMP%]   .quest-status.sospeso[_ngcontent-%COMP%]:before{background-color:#ffb900}.quest-element[_ngcontent-%COMP%]   .quest-title[_ngcontent-%COMP%]{font-weight:700;font-size:18px;color:#213412;text-transform:uppercase;margin-bottom:10px;border-bottom:1px solid #213412;display:inline-block;padding-right:20px}.quest-element[_ngcontent-%COMP%]   .quest-body[_ngcontent-%COMP%]{font-family:Courier Prime,monospace;margin-bottom:20px;color:#213412}.quest-element[_ngcontent-%COMP%]   .quest-answer[_ngcontent-%COMP%]{font-family:"PT Serif",serif;color:#213412}']}),t})(),TE=(()=>{class t{}return t.\u0275mod=ye({type:t,bootstrap:[Yk]}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[JP],imports:[[Mp,Mk,lg,oC,rC,jb,gx,zC,sx]]}),t})();(function(t,e,n){const i=t.\u0275cmp;i.directiveDefs=()=>e.map(me),i.pipeDefs=()=>n.map(ve)})(Kb,[lh,ch,dh,ph,xh,Ch,vh,bh,yh,_h,wh,xv,vv,bv,_v,bf,Ew,W_,J_,g_,F_,z_,d_,G_,Q_,R_,w_,C_,qw,Jw,Xw,eC,Gw,Yw,Sw,Pw,ww,Tw,Nw,jw,Rw,zw,$b,Hb,px,RC,VC,KC,tx,XC,ex,rx,ox,Yk,Gk,Ty,Zk,gO,Qk,oy,xO,Lk,BM,ry,Kx,lM,aM,Yv,iS,sS,uS,db,vS,fO,Gb,PS,Jx,Kb,XS,cE,mE,OE,kE,HO,LO,ZO,gy,ES,eb,uy,VO,wk,ob,TS,jS,Nx,QP,AP,$P,VP,IP,AE,rI,CI,II,sy,WS,uM,KI,fk,mk,iy,yx,yM,xk],[Sh,Th,Eh,Lh,Gh,Hh,jh,Ah,Bh,Fh,Vh,Rh,zh,my,fy,rb,Jk,aS,Qv]),function(){if(Oi)throw new Error("Cannot enable prod mode after platform setup.");xi=!1}(),xp().bootstrapModule(TE).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);