1(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"/XPu":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.share=function(t,e,n,r){return Object(o.cordova)(this,"share",{successIndex:4,errorIndex:5},arguments)},e.prototype.shareWithOptions=function(t){return Object(o.cordova)(this,"shareWithOptions",{platforms:["iOS","Android"]},arguments)},e.prototype.canShareVia=function(t,e,n,r,i){return Object(o.cordova)(this,"canShareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaTwitter=function(t,e,n){return Object(o.cordova)(this,"shareViaTwitter",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaFacebook=function(t,e,n){return Object(o.cordova)(this,"shareViaFacebook",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaFacebookWithPasteMessageHint=function(t,e,n,r){return Object(o.cordova)(this,"shareViaFacebookWithPasteMessageHint",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaInstagram=function(t,e){return Object(o.cordova)(this,"shareViaInstagram",{platforms:["iOS","Android"]},arguments)},e.prototype.shareViaWhatsApp=function(t,e,n){return Object(o.cordova)(this,"shareViaWhatsApp",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaWhatsAppToReceiver=function(t,e,n,r){return Object(o.cordova)(this,"shareViaWhatsAppToReceiver",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},e.prototype.shareViaSMS=function(t,e){return Object(o.cordova)(this,"shareViaSMS",{platforms:["iOS","Android"]},arguments)},e.prototype.canShareViaEmail=function(){return Object(o.cordova)(this,"canShareViaEmail",{platforms:["iOS","Android"]},arguments)},e.prototype.shareViaEmail=function(t,e,n,r,i,s){return Object(o.cordova)(this,"shareViaEmail",{platforms:["iOS","Android"],successIndex:6,errorIndex:7},arguments)},e.prototype.shareVia=function(t,e,n,r,i){return Object(o.cordova)(this,"shareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},e.prototype.setIPadPopupCoordinates=function(t){return Object(o.cordova)(this,"setIPadPopupCoordinates",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.saveToPhotoAlbum=function(t){return Object(o.cordova)(this,"saveToPhotoAlbum",{platforms:["iOS"]},arguments)},e.pluginName="SocialSharing",e.plugin="cordova-plugin-x-socialsharing",e.pluginRef="plugins.socialsharing",e.repo="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin",e.platforms=["Android","Browser","iOS","Windows","Windows Phone"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},"/sJY":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.captureAudio=function(t){return Object(o.cordova)(this,"captureAudio",{callbackOrder:"reverse"},arguments)},e.prototype.captureImage=function(t){return Object(o.cordova)(this,"captureImage",{callbackOrder:"reverse"},arguments)},e.prototype.captureVideo=function(t){return Object(o.cordova)(this,"captureVideo",{callbackOrder:"reverse"},arguments)},e.prototype.onPendingCaptureResult=function(){return Object(o.cordova)(this,"onPendingCaptureResult",{eventObservable:!0,event:"pendingcaptureresult"},arguments)},e.prototype.onPendingCaptureError=function(){return Object(o.cordova)(this,"onPendingCaptureError",{eventObservable:!0,event:"pendingcaptureerror"},arguments)},Object.defineProperty(e.prototype,"supportedImageModes",{get:function(){return Object(o.cordovaPropertyGet)(this,"supportedImageModes")},set:function(t){Object(o.cordovaPropertySet)(this,"supportedImageModes",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportedAudioModes",{get:function(){return Object(o.cordovaPropertyGet)(this,"supportedAudioModes")},set:function(t){Object(o.cordovaPropertySet)(this,"supportedAudioModes",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"supportedVideoModes",{get:function(){return Object(o.cordovaPropertyGet)(this,"supportedVideoModes")},set:function(t){Object(o.cordovaPropertySet)(this,"supportedVideoModes",t)},enumerable:!0,configurable:!0}),e.pluginName="MediaCapture",e.plugin="cordova-plugin-media-capture",e.pluginRef="navigator.device.capture",e.repo="https://github.com/apache/cordova-plugin-media-capture",e.platforms=["Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("bHdf");function o(){return Object(r.a)(1)}},"128B":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("Kqap"),o=n("BFxc"),i=n("xbPD"),s=n("mCNh");function a(t,e){return arguments.length>=2?function(n){return Object(s.a)(Object(r.a)(t,e),Object(o.a)(1),Object(i.a)(e))(n)}:function(e){return Object(s.a)(Object(r.a)((e,n,r)=>t(e,n,r+1)),Object(o.a)(1))(e)}}},"1ZqY":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("A1Tq"),i=n("xJoM"),s=n("fXoL");let a=(()=>{class t{constructor(t,e){this.httpService=t,this.fileService=e}downloadFile(t){return Object(r.a)(this,void 0,void 0,(function*(){try{let e=t.replace(/^.*[\\\/]/,"");e=e.replace(/[\s+]/g,"-"),e=e.split("?")[0];const n="media",r=this.fileService.getDirectoryPath();(yield this.fileService.checkDirectory(r,n))||(yield this.fileService.createDirectory(r,n,!1));const o=r+n+"/"+e;return yield this.httpService.downloadFile(t,{},{},o),n+"/"+e}catch(e){throw console.error(e),e}}))}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(o.a),s.Tb(i.a))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("XNiG"),o=n("9ppp");class i extends r.a{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 o.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));let r=!1;const o={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 r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"39oe":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>{try{if(t instanceof class{constructor(t){this.value=t}})return t.value;if(!s()||"string"!=typeof t||""===t)return t;const e=document.createDocumentFragment(),n=document.createElement("div");e.appendChild(n),n.innerHTML=t,c.forEach(t=>{const n=e.querySelectorAll(t);for(let r=n.length-1;r>=0;r--){const t=n[r];t.parentNode?t.parentNode.removeChild(t):e.removeChild(t);const s=i(t);for(let e=0;e<s.length;e++)o(s[e])}});const r=i(e);for(let t=0;t<r.length;t++)o(r[t]);const a=document.createElement("div");a.appendChild(e);const l=a.querySelector("div");return null!==l?l.innerHTML:a.innerHTML}catch(e){return console.error(e),""}},o=t=>{if(t.nodeType&&1!==t.nodeType)return;for(let n=t.attributes.length-1;n>=0;n--){const e=t.attributes.item(n),r=e.name;if(!a.includes(r.toLowerCase())){t.removeAttribute(r);continue}const o=e.value;null!=o&&o.toLowerCase().includes("javascript:")&&t.removeAttribute(r)}const e=i(t);for(let n=0;n<e.length;n++)o(e[n])},i=t=>null!=t.children?t.children:t.childNodes,s=()=>{const t=window,e=t&&t.Ionic&&t.Ionic.config;return!e||(e.get?e.get("sanitizerEnabled",!0):!0===e.sanitizerEnabled||void 0===e.sanitizerEnabled)},a=["class","id","href","src","name","slot"],c=["script","style","iframe","meta","link","object","embed"]},"3E0/":function(t,e,n){"use strict";var r=n("3N8a");const o=new(n("IjjT").a)(r.a);var i=n("7o/Q"),s=n("WMd4");function a(t,e=o){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new c(r,e))}n.d(e,"a",(function(){return a}));class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends i.a{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,r=t.scheduler,o=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(o);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dis
1patch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new u(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(s.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(s.a.createComplete()),this.unsubscribe()}}class u{constructor(t,e){this.time=t,this.notification=e}}},"3EM6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(){function t(){}return t.ASAuthorizationScopeFullName=0,t.ASAuthorizationScopeEmail=1,t}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.signin=function(t){return void 0===t&&(t={}),Object(o.cordova)(this,"signin",{},arguments)},e.pluginName="Sign in with Apple",e.plugin="cordova-plugin-sign-in-with-apple",e.pluginRef="cordova.plugins.SignInWithApple",e.repo="https://github.com/twogate/cordova-plugin-sign-in-with-apple",e.platforms=["iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},"3N8a":function(t,e,n){"use strict";var r=n("quSY");class o extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}n.d(e,"a",(function(){return i}));class i extends o{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,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,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,r=void 0;try{this.work(t)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";var r=n("fXoL"),o=n("ofXK"),i=n("HDdC"),s=n("DH7j"),a=n("lJxs"),c=n("XoHu"),l=n("Cfvw");function u(t,e){return new i.a(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a<r;a++){const c=Object(l.a)(t[a]);let u=!1;n.add(c.subscribe({next:t=>{u||(u=!0,s++),o[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=o[n],t),{}):o),n.complete())}}))}})}n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return Vt})),n.d(e,"c",(function(){return $t})),n.d(e,"d",(function(){return Tt})),n.d(e,"e",(function(){return Ft})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return S})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return vt})),n.d(e,"k",(function(){return jt})),n.d(e,"l",(function(){return Ut})),n.d(e,"m",(function(){return I})),n.d(e,"n",(function(){return xt}));const d=new r.q("NgValueAccessor"),h={provide:d,useExisting:Object(r.T)(()=>p),multi:!0};let p=(()=>{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)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(t){return e.onTouched()}))},features:[r.Ab([h])]}),t})();const f={provide:d,useExisting:Object(r.T)(()=>b),multi:!0},g=new r.q("CompositionEventMode");let b=(()=>{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=Object(o.v)()?Object(o.v)().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)}
1_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.D),r.Mb(r.l),r.Mb(g,8))},t.\u0275dir=r.Hb({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&&r.Xb("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(t){return e.onTouched()}))("compositionstart",(function(t){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.Ab([f])]}),t})(),m=(()=>{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=r.Hb({type:t}),t})(),v=(()=>{class t extends m{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return y(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.yb]}),t})();const y=r.Rb(v);function _(){throw new Error("unimplemented")}class w extends m{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return _()}get asyncValidator(){return _()}}class O{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 S=(()=>{class t extends O{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(w,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("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:[r.yb]}),t})(),E=(()=>{class t extends O{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(v,2))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Eb("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:[r.yb]}),t})();function C(t){return null==t||0===t.length}const j=new r.q("NgValidators"),x=new r.q("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(C(e.value)||C(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(C(e.value)||C(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return C(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return C(t.value)?null:P.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(C(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}}
1static 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(C(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return A(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(T);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return u(e,null);if(Object(c.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(a.a)(t=>e(...t)))}return u(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(k)).pipe(Object(a.a)(A))}}}function T(t){return null!=t}function k(t){const e=Object(r.sb)(t)?Object(l.a)(t):t;if(!Object(r.rb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function A(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 R(t){return t.validate?e=>t.validate(e):t}const M={provide:d,useExisting:Object(r.T)(()=>N),multi:!0};let N=(()=>{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)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[r.Ab([M])]}),t})();const $={provide:d,useExisting:Object(r.T)(()=>V),multi:!0};let L=(()=>{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=r.Ib({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(w),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)(r.Mb(r.D),r.Mb(r.l),r.Mb(L),r.Mb(r.r))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange()}))("blur",(function(t){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Ab([$])]}),t})();const F={provide:d,useExisting:Object(r.T)(()=>U),multi:!0};let U=(()=>{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)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[r.Ab([F])]}),t})();const B='\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 });',z='\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 });',H='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';class G{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).\
1n\n Example:\n\n ${B}`)}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 ${z}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${H}`)}static missingFormException(){throw new Error(`formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n ${B}`)}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 ${z}`)}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"
1===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const q={provide:d,useExisting:Object(r.T)(()=>W),multi:!0};let W=(()=>{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=r.tb}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=function(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(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)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Ab([q])]}),t})();const X={provide:d,useExisting:Object(r.T)(()=>K),multi:!0};let K=(()=>{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=r.tb}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 r=t.item(e),o=this._getOptionValue(r.value);n.push(o)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.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)(r.Mb(r.D),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.Xb("change",(function(t){return e.onChange(t.target)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Ab([X])]}),t})();function Y(t,e){return[...e.path,t]}function Z(t,e){t||et(e,"Cannot find control with"),e.valueAccessor||et(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&&Q(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&&Q(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}
1),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Q(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function J(t,e){null==t&&et(e,"Cannot find control with"),t.validator=I.compose([t.validator,e.validator]),t.asyncValidator=I.composeAsync([t.asyncValidator,e.asyncValidator])}function tt(t){return et(t,"There is no FormControl instance attached to form control element with")}function et(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 nt(t){return null!=t?I.compose(t.map(D)):null}function rt(t){return null!=t?I.composeAsync(t.map(R)):null}function ot(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object(r.tb)(e,n.currentValue)}const it=[p,U,N,W,K,V];function st(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function at(t,e){if(!e)return null;Array.isArray(e)||et(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,o=void 0;return e.forEach(e=>{var i;e.constructor===b?n=e:(i=e,it.some(t=>i.constructor===t)?(r&&et(t,"More than one built-in value accessor matches form control with"),r=e):(o&&et(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(et(t,"No valid value accessor for form control with"),null)}function ct(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function lt(t){const e=dt(t)?t.validators:t;return Array.isArray(e)?nt(e):e||null}function ut(t,e){const n=dt(e)?e.asyncValidators:t;return Array.isArray(n)?rt(n):n||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{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=lt(t)}setAsyncValidators(t){this.asyncValidator=ut(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);
1this.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=k(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 r=t;return e.forEach(t=>{r=r instanceof ft?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof gt&&r.at(t)||null}),r}(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 r.n,this.statusChanges=new r.n}_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){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class pt extends ht{constructor(t=null,e,n){super(lt(e),ut(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._pe
1ndingDirty&&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 ft extends ht{constructor(t,e,n){super(lt(e),ut(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,r)=>{n.reset(t[r],{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 pt?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,r)=>{e=e||this.contains(r)&&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,r)=>{n=e(n,t,r)}),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 gt extends ht{constructor(t,e,n){super(lt(e),ut(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})}
1),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,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof pt?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 bt={provide:v,useExisting:Object(r.T)(()=>vt)},mt=(()=>Promise.resolve(null))();let vt=(()=>{class t extends v{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.n,this.form=new ft({},nt(t),rt(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){mt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Z(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}
1removeControl(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),ct(this._directives,t)})}addFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path),n=new ft({});J(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){mt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){mt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,st(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)(r.Mb(j,10),r.Mb(x,10))},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.Xb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Ab([bt]),r.yb]}),t})(),yt=(()=>{class t extends v{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Y(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return nt(this._validators)}get asyncValidator(){return rt(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275dir=r.Hb({type:t,features:[r.yb]}),t})();const _t=r.Rb(yt);class wt{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 ${B}\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 ${z}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${H}`)}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 ${z}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${H}`)}}const Ot={provide:v,useExisting:Object(r.T)(()=>St)};let St=(()=>{class t extends yt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof vt||wt.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(v,5),r.Mb(j,10),r.Mb(x,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Ab([Ot]),r.yb]}),t})();const Et={provide:w,useExisting:Object(r.T)(()=>jt)},Ct=(()=>Promise.resolve(null))();let jt=(()=>{class t extends w{constructor(t,e,n,o){super(),this.control=new pt,this._registered=!1,this.update=new r.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=at(this,o)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),ot(t,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Y(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return nt(this._rawValidators)}get asyncValidator(){return rt(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(){Z(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof St)&&this._parent instanceof yt?wt.formGroupNameException():this._parent instanceof St||this._parent instanceof vt||wt.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||wt.missingNameException()}_updateValue(t){Ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;Ct.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(v,9),r.Mb(j,10),r.Mb(x,10),r.Mb(d,10))},t.\u0275dir=r.Hb({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:[r.Ab([Et]),r.yb,r.zb()]}),t})(),xt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Pt=new r.q("NgModelWithFormControlWarning"),It={provide:v,useExisting:Object(r.T)(()=>Tt)};let Tt=(()=>{class t extends v{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.n}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 Z(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}
1removeControl(t){ct(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);J(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);J(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,st(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(()=>tt(e)),e.valueAccessor.registerOnTouched(()=>tt(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&&Z(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=nt(this._validators);this.form.validator=I.compose([this.form.validator,t]);const e=rt(this._asyncValidators);this.form.asyncValidator=I.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||G.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(j,10),r.Mb(x,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.Xb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Ab([It]),r.yb,r.zb()]}),t})();const kt={provide:v,useExisting:Object(r.T)(()=>At)};let At=(()=>{class t extends yt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){Mt(this._parent)&&G.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(v,13),r.Mb(j,10),r.Mb(x,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[r.Ab([kt]),r.yb]}),t})();const Dt={provide:v,useExisting:Object(r.T)(()=>Rt)};let Rt=(()=>{class t extends v{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 Y(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return nt(this._validators)}get asyncValidator(){return rt(this._asyncValidators)}_checkParentType(){Mt(this._parent)&&G.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(v,13),r.Mb(j,10),r.Mb(x,10))},t.\u0275dir=r.Hb({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[r.Ab([Dt]),r.yb]}),t})();function Mt(t){return!(t instanceof At||t instanceof Tt||t instanceof Rt)}const Nt={provide:w,useExisting:Object(r.T)(()=>$t)};let $t=(()=>{class t extends w{constructor(t,e,n,o,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new r.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=at(this,o)}set isDisabled(t){G.disabledAttrWarning()}ngOnChanges(e){var n,o,i;this._added||this._setUpControl(),ot(e,this.viewModel)&&(n=t,o=this,i=this._ngModelWarningConfig,Object(r.V)()&&"never"!==i&&((null!==i&&"once"!==i||n._ngModelWarningSentOnce)&&("always"!==i||o._ngModelWarningSent)||(G.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,o._ngModelWarningSent=!0)),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 Y(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return nt(this._rawValidators)}get asyncValidator(){return rt(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof At)&&this._parent instanceof yt?G.ngModelGroupException():this._parent instanceof At||this._parent instanceof Tt||this._parent instanceof Rt||G.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)(r.Mb(v,13),r.Mb(j,10),r.Mb(x,10),r.Mb(d,10),r.Mb(Pt,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.Ab([Nt]),r.yb,r.zb()]}),t._ngModelWarningSentOnce=!1,t})(),Lt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,o=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,o=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,o=null!=e.asyncValidator?e.asyncValidator:null)),new ft(n,{asyncValidators:o,updateOn:i,validators:r})}control(t,e,n){return new pt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new gt(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof pt||t instanceof ft||t instanceof gt?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=r.Ib({token:t,factory:t.\u0275fac}),t})(),Ft=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[L],imports:[Lt]}
1),t})(),Ut=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Pt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[Vt,L],imports:[Lt]}),t})()},"41xA":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("m/P+"),o=n("fXoL"),i=n("TEn/");let s=(()=>{class t{constructor(t,e){this.iab=t,this.platform=e}paypal(t,e){this.platform.is("ios")||this.platform.is("android")?(this.browser=this.iab.create(t,"_blank"),this.browser.on("exit").subscribe(t=>{this.browserClose(e)}),this.browser.on("loadstop").subscribe(t=>{this.loadstopEvent(t)})):window.open(t,"_blank")}browserClose(t){this.findIframe(),this.iframe.src=t}loadstopEvent(t){let e=t.url.split("/")[2];this.findIframe();let n=this.iframe.src;n=n.split("/")[2],n==e&&(this.iframe.src=t.url,this.browser.close())}findIframe(){let t=document.querySelectorAll("#nav wordpress-page");for(var e=0;e<t.length;++e)if(!t[e].hasAttribute("hidden"))var n=t[e];this.iframe=n.querySelector("#ap3-iframe")}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(r.a),o.Tb(i.rb))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"4Ckt":function(t,e,n){"use strict";var r=n("xS7M"),o=n("kLqA");class i{constructor(t,e){this.isLog=!1,this.apiUrl=t,this.guid=o.Guid.create(),this.timestamp=(new Date).getTime(),e&&(e.type&&(this.type=e.type),e.isLog&&(this.isLog=!0),e.token&&(this.token=e.token))}
1getDbKey(){return this.isLog?"rdata-log-"+this.type+"-"+this.guid.toString():this.type?"rdata-"+this.type+"-"+this.guid.toString():"rdata-"+this.guid.toString()}}var s=n("AytR"),a=n("A1Tq"),c=n("fXoL"),l=n("e8h1");n.d(e,"a",(function(){return u}));let u=(()=>{class t{constructor(t,e,n){this.storage=t,this.device=e,this.httpService=n,this.apiUrl=s.a.apiUrl,this.appId=s.a.appId}createRemoteData(t,e,n){let r=new i(t,n);r.data=e,this.storeData(r)}storeData(t){this.storage.set(t.getDbKey(),t)}sendStoredData(t,e){let n=[];this.storage.forEach((e,r,o)=>{0===r.indexOf("rdata-"+t)&&(Object.keys(n).indexOf(e.apiUrl)>=0?n[e.apiUrl].push(e):(n[e.apiUrl]=[],n[e.apiUrl].push(e)))}).then(()=>{Object.keys(n).length&&Object.keys(n).forEach((t,r)=>{this.send(n[t],e)})})}send(t,e){let n=[];const r=Object.assign({},{collection:[],type:t[0].type,deviceId:this.device.uuid,appId:this.appId,token:e});t.forEach(t=>{n.push(this.getDbKey(t)),r.collection.push({data:t.data,timestamp:t.timestamp})}),console.log("remote data: we want to send this stuff",r,"to",t[0].apiUrl),this.httpService.post(t[0].apiUrl,r).then(t=>{console.log(t),console.log("now we can delete",n),n.forEach(t=>{console.log("deleting this key from the db",t),this.deleteDbItem(t)})}).catch(t=>{console.log("RemoteDataService send error",t)})}getDbKey(t){return t.isLog?"rdata-log-"+t.type+"-"+t.guid.value:t.type?"rdata-"+t.type+"-"+t.guid.value:"rdata-"+t.guid.value}deleteDbItem(t){t&&0===t.indexOf("rdata-")&&this.storage.remove(t)}removeLogs(t){t&&this.storage.forEach((e,n,r)=>{0===n.indexOf("rdata-log-"+t)&&this.deleteDbItem(this.getDbKey(e))})}}return t.\u0275fac=function(e){return new(e||t)(c.Tb(l.b),c.Tb(r.a),c.Tb(a.a))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),o=n("Cfvw"),i=n("zx2A");function s(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(s((n,i)=>Object(o.a)(t(n,i)).pipe(Object(r.a)((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends i.b{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(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(t){const e=new i.a(this),n=this.destination;n.add(e);const r=Object(i.c)(t,e);r!==e&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5RWN":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("mrSG"),o=n("ofXK"),i=n("fXoL"),s=n("sYmb"),a=n("TEn/"),c=n("e8h1"),l=n("tk/3");let u=(()=>{class t{constructor(t,e,n,r,o,i){this.document=t,this.translateService=e,this.config=n,this.platform=r,this.storage=o,this.http=i}initTranslate(t){const e=this._getAvailableLanguages(t.languages);console.log("inittranslate",e),e.length&&(this.translateService.addLangs(e),this.translateService.setDefaultLang(t.default_language)),this.getCurrentLanguage(t).then(e=>{if(e){const n=this._updateLanguageDirection(e,t);console.log("updated",n),this.useLanguage(n)}else console.log("Default language does not exist on AppData")}).catch(t=>console.error(t))}_getAvailableLanguages(t){let e=[];return t&&t.forEach(t=>{e.push(t.code)}),e}getCurrentLanguage(t){return Object(r.a)(this,void 0,void 0,(function*(){return this.currentLanguage||(this.currentLanguage=yield this._getLanguagesFromStorage(),this.currentLanguage||(this.currentLanguage=yield this._getLanguagesFromAppdata(t))),this.currentLanguage}))}_getLanguagesFromStorage(){return Object(r.a)(this,void 0,void 0,(function*(){return yield this.storage.get("app_language")}))}_getLanguagesFromAppdata(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this._getDefaultLanuage(t);return console.log("default",e),this.setCurrentLanguage(e),e}))}_updateLanguageDirection(t,e){if(!e.languages.length){const n=e.meta.rtl?"rtl":"ltr";t.dir!=n&&(t.dir=n,this.setCurrentLanguage(t))}return t}_getDefaultLanuage(t){return t.languages.length?t.languages.filter(e=>
1e.code===t.default_language)[0]:{name:"English",dir:t.meta.rtl?"rtl":"ltr",code:t.default_language}}setCurrentLanguage(t){this.currentLanguage=t,this.storage.set("app_language",t)}useLanguage(t){this.document.dir=t.dir,this.document.documentElement.lang=t.code,this.translateService.getLangs().length&&(this._verifyLanguageFile(t),this.translateService.use(t.code),this.platform.is("ios")&&this.config.set("backButtonText",this.translateService.instant("Back")))}appendLangParam(t){return t.delete("lang"),this.translateService.currentLang&&"undefined"!==this.translateService.currentLang&&t.append("lang",this.translateService.currentLang),t}_verifyLanguageFile(t){this.http.get("./assets/i18n/"+t.code+".json").toPromise().then(e=>{console.log("verify",e),e["Language Name"]||console.log('Variable "Language Name" is not available in the '+t.code+".json file"),e.dir||console.log('Variable "dir" is not available in the '+t.code+".json file")}).catch(()=>{console.log('The "'+t.code+'.json" file does not exist in assets')})}}return t.\u0275fac=function(e){return new(e||t)(i.Tb(o.c),i.Tb(s.e),i.Tb(a.d),i.Tb(a.rb),i.Tb(c.b),i.Tb(l.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"61py":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("FAH8"),o=n("m/P+"),i=n("xS7M"),s=n("te5A"),a=n("fXoL"),c=n("TEn/");let l=(()=>{class t{constructor(t,e,n,r,o){this.file=t,this.iab=e,this.device=n,this.fileOpener=r,this.platform=o}openPdf(t){t.indexOf("http")>=0?this.platform.is("android")?window.open("https://drive.google.com/viewerng/viewer?url="+t,"_system"):window.open(t,"_system"):this.handleLocalPdf(t)}handleLocalPdf(t){this.platform.is("android")?this.handleAndroidLocal(t):(t.indexOf("file://")<0&&(t=this.file.applicationDirectory+"www/"+t),this.useFileOpener(t))}handleAndroidLocal(t){t.indexOf("file://")>=0?this.useFileOpener(t):this.maybeCopyFile(t).then(t=>{this.useFileOpener(t)}).catch(t=>{console.warn(t)})}useFileOpener(t){this.fileOpener.open(t,"application/pdf").then(()=>{}).catch(t=>console.warn("Error opening file after copying",t))}maybeCopyFile(t){return new Promise((e,n)=>{let r=this.file.applicationDirectory+"www/"+t;console.log(r),this.file.resolveLocalFilesystemUrl(r).then(t=>{let r=t.toInternalURL();console.log("target entry: "+t+", - wwwFile: "+r),this.file.resolveLocalFilesystemUrl(this.file.externalDataDirectory).then(t=>{let o=t.toInternalURL();console.log("save entry: "+t+", - savePath: "+o);let i=r.split("/").pop();this.file.copyFile(this.file.applicationDirectory+"www/assets/",i,o,i).then(t=>{let n=t.toURL();console.log("File copied, entry.toURL(): "+n),e(n)}).catch(t=>{console.log("error copyFile: ",t),n(t)})}).catch(t=>{console.log("error this.file.resolveLocalFilesystemUrl (save folder): ",t),n(t)})}).catch(t=>{console.log("error this.file.resolveLocalFilesystemUrl (target): ",t),n(t)})})}}return t.\u0275fac=function(e){return new(e||t)(a.Tb(r.a),a.Tb(o.a),a.Tb(i.a),a.Tb(s.a),a.Tb(c.rb))},t.\u0275prov=a.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"6SG/":function(t,e,n){"use strict";var r=n("fXoL"),o=n("wQXg");class i{constructor(){this.additionalAccountNames=[],this.userId=null,this.transport="",this.anonymizeIp=!1}}let s=(()=>{let t=class{constructor(t){this.angulartics2=t,this.dimensionsAndMetrics=[];const e=new i;this.angulartics2.settings.ga=Object.assign({},e,this.angulartics2.settings.ga),this.settings=this.angulartics2.settings.ga,this.angulartics2.setUsername.subscribe(t=>this.setUsername(t)),this.angulartics2.setUserProperties.subscribe(t=>this.setUserProperties(t))}startTracking(){this.angulartics2.pageTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.pageTrack(t.path)),this.angulartics2.eventTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.eventTrack(t.action,t.properties)),this.angulartics2.exceptionTrack.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.exceptionTrack(t)),this.angulartics2.userTimings.pipe(this.angulartics2.filterDeveloperMode()).subscribe(t=>this.userTimings(t))}pageTrack(t){if("undefined"!=typeof _gaq&&_gaq){_gaq.push(["_trackPageview",t]);for(const e of this.angulartics2.settings.ga.additionalAccountNames)_gaq.push([e+"._trackPageview",t])}if("undefined"!=typeof ga&&ga){if(this.angulartics2.settings.ga.userId){ga("set","&uid",this.angulartics2.settings.ga.userId);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".set","&uid",this.angulartics2.settings.ga.userId)}
1if(this.angulartics2.settings.ga.anonymizeIp){ga("set","anonymizeIp",!0);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".set","anonymizeIp",!0)}ga("send","pageview",t);for(const e of this.angulartics2.settings.ga.additionalAccountNames)ga(e+".send","pageview",t)}}eventTrack(t,e){if(e&&e.category||((e=e||{}).category="Event"),e.value){const t=parseInt(e.value,10);e.value=isNaN(t)?0:t}if("undefined"!=typeof ga){const n={eventCategory:e.category,eventAction:t,eventLabel:e.label,eventValue:e.value,nonInteraction:e.noninteraction,page:e.page||location.hash.substring(1)||location.pathname,userId:this.angulartics2.settings.ga.userId,hitCallback:e.hitCallback};this.setDimensionsAndMetrics(e),this.angulartics2.settings.ga.transport?ga("send","event",n,{transport:this.angulartics2.settings.ga.transport}):ga("send","event",n);for(const t of this.angulartics2.settings.ga.additionalAccountNames)ga(t+".send","event",n)}else"undefined"!=typeof _gaq&&_gaq.push(["_trackEvent",e.category,t,e.label,e.value,e.noninteraction])}exceptionTrack(t){void 0===t.fatal&&(console.log('No "fatal" provided, sending with fatal=true'),t.fatal=!0),t.exDescription=t.description;const e={exFatal:t.fatal,exDescription:t.description};ga("send","exception",e);for(const n of this.angulartics2.settings.ga.additionalAccountNames)ga(n+".send","exception",e)}userTimings(t){if(t&&t.timingCategory&&t.timingVar&&t.timingValue){if("undefined"!=typeof ga){ga("send","timing",t);for(const e of this.angulartics2.settings.ga.additionalAccountNames)ga(e+".send","timing",t)}}else console.error("Properties timingCategory, timingVar, and timingValue are required to be set.")}setUsername(t){this.angulartics2.settings.ga.userId=t,"undefined"!=typeof ga&&ga("set","userId",t)}setUserProperties(t){this.setDimensionsAndMetrics(t)}setDimensionsAndMetrics(t){"undefined"!=typeof ga&&(this.dimensionsAndMetrics.forEach(e=>{t.hasOwnProperty(e)||(ga("set",e,void 0),this.angulartics2.settings.ga.additionalAccountNames.forEach(t=>{ga(`${t}.set`,e,void 0)}))}),this.dimensionsAndMetrics=[],Object.keys(t).forEach(e=>{0!==e.lastIndexOf("dimension",0)&&0!==e.lastIndexOf("metric",0)||(ga("set",e,t[e]),this.angulartics2.settings.ga.additionalAccountNames.forEach(n=>{ga(`${n}.set`,e,t[e])}),this.dimensionsAndMetrics.push(e))}))}};return t.\u0275fac=function(e){return new(e||t)(r.Tb(o.a))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(r.R)({factory:function(){return new t(Object(r.U)(o.a))},token:t,providedIn:"root"}),t})();n.d(e,"a",(function(){return a}));let a=(()=>{class t{constructor(t,e){this.ga=t,this.angulartics2=e,this.isEnabled=!1,this.isDuplicate=!1,this.basepath="apppresser/"}beginTracking(t,e){var n,r,o,i,s;this.isEnabled=!0,e&&(this.basepath=e+"/"),n=window,r=document,o="script",n.GoogleAnalyticsObject="ga",n.ga=n.ga||function(){(n.ga.q=n.ga.q||[]).push(arguments)},n.ga.l=1*new Date,i=r.createElement(o),s=r.getElementsByTagName(o)[0],i.async=1,i.src="https://www.google-analytics.com/analytics.js",s.parentNode.insertBefore(i,s),ga("create",t,{storage:"none",clientId:localStorage.getItem("ga:clientId")}
1),ga((function(t){localStorage.setItem("ga:clientId",t.get("clientId"))})),ga("set","checkProtocolTask",(function(){}))}trackScreenView(t,e){this.isEnabled&&(this.isDuplicate||(this.setNoDuplicates(),this.ga.pageTrack(this.basepath+t+"/#/"+e)))}setNoDuplicates(){this.isDuplicate||(this.isDuplicate=!0,setTimeout(()=>{this.isDuplicate=!1},1e3))}trackEvent(t,e){if(!this.isEnabled)return;let n={category:"app"};e&&(n.label=e),this.angulartics2.eventTrack.next({action:t,properties:n})}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(s),r.Tb(o.a))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},"6dXU":function(t,e,n){"use strict";n.r(e),n.d(e,"LoginModalPageModule",(function(){return d}));var r=n("ofXK"),o=n("3Pt+"),i=n("tyNb"),s=n("TEn/"),a=n("sYmb"),c=n("8lHB"),l=n("fXoL");const u=[{path:"",component:c.a}];let d=(()=>{class t{}return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.e,s.kb,a.c.forChild(),i.j.forChild(u)]]}),t})()},"6pL8":function(t,e,n){"use strict";n.r(e),n.d(e,"mdTransitionAnimation",(function(){return i})),n("A36C"),n("OMvp");var r=n("btv9"),o=n("fYWy");const i=(t,e)=>{const n="back"===e.direction,i=e.enteringEl,s=e.leavingEl,a=Object(o.g)(i),c=a.querySelector("ion-toolbar"),l=Object(r.a)();if(l.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?l.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):l.duration(e.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),c){const t=Object(r.a)();t.addElement(c),l.addAnimation(t)}if(s&&n){l.duration(e.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const t=Object(r.a)();t.addElement(Object(o.g)(s)).onFinish(e=>{1===e&&t.elements.length>0&&t.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),l.addAnimation(t)}return l}},"7DPu":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.getApplicationUsername=function(){return Object(o.cordova)(this,"getApplicationUsername",{sync:!0},arguments)},e.prototype.get=function(t){return Object(o.cordova)(this,"get",{sync:!0},arguments)},e.prototype.error=function(t){return Object(o.cordova)(this,"error",{sync:!0},arguments)},e.prototype.register=function(t){return Object(o.cordova)(this,"register",{sync:!0},arguments)},e.prototype.when=function(t,e,n){return Object(o.cordova)(this,"when",{sync:!0},arguments)},e.prototype.once=function(t,e,n){return Object(o.cordova)(this,"once",{sync:!0},arguments)},e.prototype.off=function(t){return Object(o.cordova)(this,"off",{sync:!0},arguments)},e.prototype.order=function(t,e){return Object(o.cordova)(this,"order",{sync:!0},arguments)},e.prototype.ready=function(t){return Object(o.cordova)(this,"ready",{},arguments)},e.prototype.refresh=function(){return Object(o.cordova)(this,"refresh",{sync:!0},arguments)},e.prototype.update=function(){return Object(o.cordova)(this,"update",{sync:!0},arguments)},e.prototype.manageSubscriptions=function(){return Object(o.cordova)(this,"manageSubscriptions",{sync:!0},arguments)},Object.defineProperty(e.prototype,"QUIET",{get:function(){return Object(o.cordovaPropertyGet)(this,"QUIET")},set:function(t){Object(o.cordovaPropertySet)(this,"QUIET",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERROR",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERROR")},set:function(t){Object(o.cordovaPropertySet)(this,"ERROR",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"WARNING",{get:function(){return Object(o.cordovaPropertyGet)(this,"WARNING")},set:function(t){Object(o.cordovaPropertySet)(this,"WARNING",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INFO",{get:function(){return Object(o.cordovaPropertyGet)(this,"INFO")},set:function(t){Object(o.cordovaPropertySet)(this,"INFO",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DEBUG",{get:function(){return Object(o.cordovaPropertyGet)(this,"DEBUG")}
1,set:function(t){Object(o.cordovaPropertySet)(this,"DEBUG",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verbosity",{get:function(){return Object(o.cordovaPropertyGet)(this,"verbosity")},set:function(t){Object(o.cordovaPropertySet)(this,"verbosity",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoFinishTransactions",{get:function(){return Object(o.cordovaPropertyGet)(this,"autoFinishTransactions")},set:function(t){Object(o.cordovaPropertySet)(this,"autoFinishTransactions",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sandbox",{get:function(){return Object(o.cordovaPropertyGet)(this,"sandbox")},set:function(t){Object(o.cordovaPropertySet)(this,"sandbox",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableHostedContent",{get:function(){return Object(o.cordovaPropertyGet)(this,"disableHostedContent")},set:function(t){Object(o.cordovaPropertySet)(this,"disableHostedContent",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"FREE_SUBSCRIPTION",{get:function(){return Object(o.cordovaPropertyGet)(this,"FREE_SUBSCRIPTION")},set:function(t){Object(o.cordovaPropertySet)(this,"FREE_SUBSCRIPTION",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PAID_SUBSCRIPTION",{get:function(){return Object(o.cordovaPropertyGet)(this,"PAID_SUBSCRIPTION")},set:function(t){Object(o.cordovaPropertySet)(this,"PAID_SUBSCRIPTION",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"NON_RENEWING_SUBSCRIPTION",{get:function(){return Object(o.cordovaPropertyGet)(this,"NON_RENEWING_SUBSCRIPTION")},set:function(t){Object(o.cordovaPropertySet)(this,"NON_RENEWING_SUBSCRIPTION",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONSUMABLE",{get:function(){return Object(o.cordovaPropertyGet)(this,"CONSUMABLE")},set:function(t){Object(o.cordovaPropertySet)(this,"CONSUMABLE",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"NON_CONSUMABLE",{get:function(){return Object(o.cordovaPropertyGet)(this,"NON_CONSUMABLE")},set:function(t){Object(o.cordovaPropertySet)(this,"NON_CONSUMABLE",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_SETUP",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_SETUP")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_SETUP",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_LOAD",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_LOAD")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_LOAD",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_PURCHASE",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_PURCHASE")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_PURCHASE",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_LOAD_RECEIPTS",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_LOAD_RECEIPTS")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_LOAD_RECEIPTS",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_CLIENT_INVALID",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_CLIENT_INVALID")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_CLIENT_INVALID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_PAYMENT_CANCELLED",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_PAYMENT_CANCELLED")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_PAYMENT_CANCELLED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_PAYMENT_INVALID",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_PAYMENT_INVALID")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_PAYMENT_INVALID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_PAYMENT_NOT_ALLOWED",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_PAYMENT_NOT_ALLOWED")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_PAYMENT_NOT_ALLOWED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_UNKNOWN",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_UNKNOWN")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_UNKNOWN",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_REFRESH_RECEIPTS",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_REFRESH_RECEIPTS")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_REFRESH_RECEIPTS",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_INVALID_PRODUCT_ID",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_INVALID_PRODUCT_ID")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_INVALID_PRODUCT_ID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_FINISH",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_FINISH")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_FINISH",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_COMMUNICATION",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_COMMUNICATION")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_COMMUNICATION",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_SUBSCRIPTIONS_NOT_AVAILABLE",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_SUBSCRIPTIONS_NOT_AVAILABLE")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_SUBSCRIPTIONS_NOT_AVAILABLE",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_MISSING_TOKEN",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_MISSING_TOKEN")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_MISSING_TOKEN",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_VERIFICATION_FAILED",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_VERIFICATION_FAILED")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_VERIFICATION_FAILED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_BAD_RESPONSE",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_BAD_RESPONSE")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_BAD_RESPONSE",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_REFRESH",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_REFRESH")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_REFRESH",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_PAYMENT_EXPIRED",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_PAYMENT_EXPIRED")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_PAYMENT_EXPIRED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_DOWNLOAD",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_DOWNLOAD")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_DOWNLOAD",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE",{get:function(){return Object(o.cordovaPropertyGet)(this,"ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE")},set:function(t){Object(o.cordovaPropertySet)(this,"ERR_SUBSCRIPTION_UPDATE_NOT_AVAILABLE",t)},enumerable:!0,configurable:!0}
1),Object.defineProperty(e.prototype,"REGISTERED",{get:function(){return Object(o.cordovaPropertyGet)(this,"REGISTERED")},set:function(t){Object(o.cordovaPropertySet)(this,"REGISTERED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INVALID",{get:function(){return Object(o.cordovaPropertyGet)(this,"INVALID")},set:function(t){Object(o.cordovaPropertySet)(this,"INVALID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"VALID",{get:function(){return Object(o.cordovaPropertyGet)(this,"VALID")},set:function(t){Object(o.cordovaPropertySet)(this,"VALID",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"REQUESTED",{get:function(){return Object(o.cordovaPropertyGet)(this,"REQUESTED")},set:function(t){Object(o.cordovaPropertySet)(this,"REQUESTED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INITIATED",{get:function(){return Object(o.cordovaPropertyGet)(this,"INITIATED")},set:function(t){Object(o.cordovaPropertySet)(this,"INITIATED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"APPROVED",{get:function(){return Object(o.cordovaPropertyGet)(this,"APPROVED")},set:function(t){Object(o.cordovaPropertySet)(this,"APPROVED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"FINISHED",{get:function(){return Object(o.cordovaPropertyGet)(this,"FINISHED")},set:function(t){Object(o.cordovaPropertySet)(this,"FINISHED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OWNED",{get:function(){return Object(o.cordovaPropertyGet)(this,"OWNED")},set:function(t){Object(o.cordovaPropertySet)(this,"OWNED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DOWNLOADING",{get:function(){return Object(o.cordovaPropertyGet)(this,"DOWNLOADING")},set:function(t){Object(o.cordovaPropertySet)(this,"DOWNLOADING",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"DOWNLOADED",{get:function(){return Object(o.cordovaPropertyGet)(this,"DOWNLOADED")},set:function(t){Object(o.cordovaPropertySet)(this,"DOWNLOADED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INVALID_PAYLOAD",{get:function(){return Object(o.cordovaPropertyGet)(this,"INVALID_PAYLOAD")},set:function(t){Object(o.cordovaPropertySet)(this,"INVALID_PAYLOAD",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTION_FAILED",{get:function(){return Object(o.cordovaPropertyGet)(this,"CONNECTION_FAILED")},set:function(t){Object(o.cordovaPropertySet)(this,"CONNECTION_FAILED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PURCHASE_EXPIRED",{get:function(){return Object(o.cordovaPropertyGet)(this,"PURCHASE_EXPIRED")},set:function(t){Object(o.cordovaPropertySet)(this,"PURCHASE_EXPIRED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"PURCHASE_CONSUMED",{get:function(){return Object(o.cordovaPropertyGet)(this,"PURCHASE_CONSUMED")},set:function(t){Object(o.cordovaPropertySet)(this,"PURCHASE_CONSUMED",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL_ERROR",{get:function(){return Object(o.cordovaPropertyGet)(this,"INTERNAL_ERROR")},set:function(t){Object(o.cordovaPropertySet)(this,"INTERNAL_ERROR",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"NEED_MORE_DATA",{get:function(){return Object(o.cordovaPropertyGet)(this,"NEED_MORE_DATA")},set:function(t){Object(o.cordovaPropertySet)(this,"NEED_MORE_DATA",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"products",{get:function(){return Object(o.cordovaPropertyGet)(this,"products")},set:function(t){Object(o.cordovaPropertySet)(this,"products",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Object(o.cordovaPropertyGet)(this,"validator")},set:function(t){Object(o.cordovaPropertySet)(this,"validator",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applicationUsername",{get:function(){return Object(o.cordovaPropertyGet)(this,"applicationUsername")}
1,set:function(t){Object(o.cordovaPropertySet)(this,"applicationUsername",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"log",{get:function(){return Object(o.cordovaPropertyGet)(this,"log")},set:function(t){Object(o.cordovaPropertySet)(this,"log",t)},enumerable:!0,configurable:!0}),e.pluginName="InAppPurchase2",e.plugin="cc.fovea.cordova.purchase",e.pluginRef="store",e.repo="https://github.com/j3k0/cordova-plugin-purchase",e.platforms=["iOS","Android","Windows"],e.install='ionic cordova plugin add cc.fovea.cordova.purchase --variable BILLING_KEY="<ANDROID_BILLING_KEY>"',e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("n6bG"),o=n("gRHU"),i=n("quSY"),s=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=o.a;break;case 1:if(!t){this.destination=o.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[s.a](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}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 u extends l{constructor(t,e,n,i){let s;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?s=e:e&&(s=e.next,n=e.error,i=e.complete,e!==o.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.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}=a.a;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):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.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(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8RMS":function(t,e,n){"use strict";n.r(e),n.d(e,"MENU_BACK_BUTTON_PRIORITY",(function(){return i})),n.d(e,"OVERLAY_BACK_BUTTON_PRIORITY",(function(){return o})),n.d(e,"startHardwareBackButton",(function(){return r}));const r=()=>{const t=document;let e=!1;t.addEventListener("backbutton",()=>{if(e)return;let n=0,r=[];const o=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(t,e){r.push({priority:t,handler:e,id:n++})}}});t.dispatchEvent(o);const i=()=>
1{if(r.length>0){let t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};r.forEach(e=>{e.priority>=t.priority&&(t=e)}),e=!0,r=r.filter(e=>e.id!==t.id),(async t=>{try{if(t&&t.handler){const e=t.handler(i);null!=e&&await e}}catch(e){console.error(e)}})(t).then(()=>e=!1)}};i()})},o=100,i=99},"8lHB":function(t,e,n){"use strict";var r=n("mrSG"),o=n("Dm8P"),i=n("wDu7"),s=n("xS7M"),a=n("3EM6"),c=n("up+p"),l=n("g7DU"),u=n("gZlD"),d=n("V8p1"),h=n("iVjj"),p=n("A1Tq"),f=n("fXoL");let g=(()=>{class t{constructor(){}compareVersionNumbers(t,e){const n=t.split("."),r=e.split(".");if(!this._validateParts(n)||!this._validateParts(r))return NaN;for(var o=0;o<n.length;++o){if(r.length===o)return 1;if(n[o]!==r[o])return n[o]>r[o]?1:-1}return n.length!=r.length?-1:0}_validateParts(t){for(var e=0;e<t.length;++e)if(!this._isPositiveInteger(t[e]))return!1;return!0}_isPositiveInteger(t){return/^\d+$/.test(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=f.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var b=n("TEn/"),m=n("e8h1"),v=n("sYmb"),y=n("jhN1"),_=n("ofXK"),w=n("3Pt+");function O(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-button",8),f.Xb("click",(function(e){return f.oc(t),f.bc().dismiss()})),f.Nb(1,"ion-icon",9),f.Ob()}}function S(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-button",26),f.Xb("click",(function(e){return f.oc(t),f.bc(3).doAppleLogin()})),f.Nb(1,"ion-icon",27),f.wc(2),f.cc(3,"translate"),f.Ob()}2&t&&(f.Bb(2),f.yc(" ",f.dc(3,1,"Sign in with Apple")," "))}function E(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-button",28),f.Xb("click",(function(e){return f.oc(t),f.bc(3).doGoogleLogin()})),f.Nb(1,"ion-icon",29),f.wc(2),f.cc(3,"translate"),f.Ob()}2&t&&(f.Bb(2),f.yc(" ",f.dc(3,1,"Sign in with Google")," "))}function C(t,e){if(1&t&&(f.Pb(0,"div"),f.Pb(1,"div",21),f.Pb(2,"div"),f.Nb(3,"div",22),f.Pb(4,"div",23),f.wc(5),f.cc(6,"translate"),f.Ob(),f.Nb(7,"div",22),f.Ob(),f.Ob(),f.Pb(8,"div",15),f.vc(9,S,4,3,"ion-button",24),f.vc(10,E,4,3,"ion-button",25),f.Ob(),f.Ob()),2&t){const t=f.bc(2);f.Bb(5),f.xc(f.dc(6,3,"or")),f.Bb(4),f.gc("ngIf",t.appleLogin),f.Bb(1),f.gc("ngIf",t.googleLogin)}}function j(t,e){if(1&t){const t=f.Qb();f.Pb(0,"form",10),f.Xb("ngSubmit",(function(e){return f.oc(t),f.bc().doLogin()})),f.Pb(1,"ion-item",11),f.Pb(2,"ion-label",12),f.wc(3),f.cc(4,"translate"),f.Ob(),f.Pb(5,"ion-input",13),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().login.user=e})),f.Ob(),f.Ob(),f.Pb(6,"ion-item",11),f.Pb(7,"ion-label",12),f.wc(8),f.cc(9,"translate"),f.Ob(),f.Pb(10,"ion-input",14),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().login.pass=e})),f.Ob(),f.Ob(),f.Pb(11,"div",15),f.Pb(12,"ion-button",16),f.wc(13),f.cc(14,"translate"),f.Ob(),f.Ob(),f.Pb(15,"div",17),f.Pb(16,"ion-item",18),f.Xb("click",(function(e){return f.oc(t),f.bc().showResetPassword()})),f.Pb(17,"ion-label",19),f.wc(18),f.cc(19,"translate"),f.Ob(),f.Ob(),f.Ob(),f.vc(20,C,11,5,"div",20),f.Ob()}if(2&t){const t=f.bc();f.Bb(3),f.xc(f.dc(4,7,"Username")),f.Bb(2),f.gc("ngModel",t.login.user),f.Bb(3),f.xc(f.dc(9,9,"Password")),f.Bb(2),f.gc("ngModel",t.login.pass),f.Bb(3),f.xc(f.dc(14,11,"Submit")),f.Bb(5),f.xc(f.dc(19,13,"Forgot password?")),f.Bb(2),f.gc("ngIf",t.socialLogins)}}function x(t,e){if(1&t){const t=f.Qb();f.Pb(0,"div",41),f.Pb(1,"p"),f.wc(2),f.cc(3,"translate"),f.Ob(),f.Pb(4,"ion-item",11),f.Pb(5,"ion-label",12),f.wc(6),f.cc(7,"translate"),f.Ob(),f.Pb(8,"ion-input",42),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc(2).user_data.verification=e})),f.Ob(),f.Ob(),f.Ob()}if(2&t){const t=f.bc(2);f.Bb(2),f.xc(f.dc(3,3,"Check your email for your verification code to complete registration.")),f.Bb(4),f.xc(f.dc(7,5,"Enter Verification Code")),f.Bb(2),f.gc("ngModel",t.user_data.verification)}}function P(t,e){if(1&t){const t=f.Qb();f.Pb(0,"p",43),f.Xb("click",(function(e){return f.oc(t),f.bc(2).showVerificationField()})),f.wc(1),f.cc(2,"translate"),f.Ob()}2&t&&(f.Bb(1),f.yc(" ",f.dc(2,1,"I have a verification code")," "))}function I(t,e){if(1&t){const t=f.Qb();f.Pb(0,"p",43),f.Xb("click",(function(e){return f.oc(t),f.bc(2).resendCode()})),f.wc(1),f.cc(2,"translate"),f.Ob()}2&t&&(f.Bb(1),f.yc(" ",f.dc(2,1,"Re-send verification code")," "))}function T(t,e){if(1&t){const t=f.Qb();f.Pb(0,"div",30),f.Pb(1,"form",31),f.Xb("ngSubmit",(function(e){return f.oc(t),f.bc().doApiRegistration()})),f.Pb(2,"p",32),f.wc(3),f.cc(4,"translate"),f.Ob(),f.Pb(5,"ion-item",33),f.Pb(6,"ion-label",12),f.wc(7),f.cc(8,"translate"),f.Ob(),f.Pb(9,"ion-input",34),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().user_data.first_name=e}
1)),f.Ob(),f.Ob(),f.Pb(10,"ion-item",33),f.Pb(11,"ion-label",12),f.wc(12),f.cc(13,"translate"),f.Ob(),f.Pb(14,"ion-input",35),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().user_data.last_name=e})),f.Ob(),f.Ob(),f.Pb(15,"ion-item",11),f.Pb(16,"ion-label",12),f.wc(17),f.cc(18,"translate"),f.Ob(),f.Pb(19,"ion-input",36),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().user_data.email=e})),f.Ob(),f.Ob(),f.Pb(20,"ion-item",11),f.Pb(21,"ion-label",12),f.wc(22),f.cc(23,"translate"),f.Ob(),f.Pb(24,"ion-input",37),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().user_data.username=e})),f.Ob(),f.Ob(),f.Pb(25,"ion-item",33),f.Pb(26,"ion-label",12),f.wc(27),f.cc(28,"translate"),f.Ob(),f.Pb(29,"ion-input",38),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().user_data.password=e})),f.Ob(),f.Ob(),f.vc(30,x,9,7,"div",39),f.Pb(31,"div",15),f.Pb(32,"ion-button",16),f.wc(33),f.cc(34,"translate"),f.Ob(),f.Ob(),f.Ob(),f.vc(35,P,3,3,"p",40),f.vc(36,I,3,3,"p",40),f.Ob()}if(2&t){const t=f.bc();f.Bb(2),f.gc("hidden",t.show_verification_field),f.Bb(1),f.yc(" ",f.dc(4,19,"Enter your details to register.")," "),f.Bb(2),f.gc("hidden",t.show_verification_field),f.Bb(2),f.xc(f.dc(8,21,"First name")),f.Bb(2),f.gc("ngModel",t.user_data.first_name),f.Bb(1),f.gc("hidden",t.show_verification_field),f.Bb(2),f.xc(f.dc(13,23,"Last name")),f.Bb(2),f.gc("ngModel",t.user_data.last_name),f.Bb(3),f.xc(f.dc(18,25,"Email")),f.Bb(2),f.gc("ngModel",t.user_data.email),f.Bb(3),f.xc(f.dc(23,27,"Create a username")),f.Bb(2),f.gc("ngModel",t.user_data.username),f.Bb(1),f.gc("hidden",t.show_verification_field),f.Bb(2),f.xc(f.dc(28,29,"Create a password")),f.Bb(2),f.gc("ngModel",t.user_data.password),f.Bb(1),f.gc("ngIf",t.show_verification_field),f.Bb(3),f.xc(f.dc(34,31,"Submit")),f.Bb(2),f.gc("ngIf",!t.show_verification_field),f.Bb(1),f.gc("ngIf",t.show_verification_field)}}function k(t,e){if(1&t){const t=f.Qb();f.Pb(0,"div",44),f.Pb(1,"form",31),f.Xb("ngSubmit",(function(e){return f.oc(t),f.bc().doResetPassword()})),f.Pb(2,"p",32),f.wc(3),f.cc(4,"translate"),f.Ob(),f.Pb(5,"p",32),f.wc(6),f.cc(7,"translate"),f.Ob(),f.Pb(8,"ion-item",33),f.Pb(9,"ion-label",12),f.wc(10),f.cc(11,"translate"),f.Ob(),f.Pb(12,"ion-input",36),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().pw_reset.email=e})),f.Ob(),f.Ob(),f.Pb(13,"ion-item",33),f.Pb(14,"ion-label",12),f.wc(15),f.cc(16,"translate"),f.Ob(),f.Pb(17,"ion-input",45),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().pw_reset.code=e})),f.Ob(),f.Ob(),f.Pb(18,"ion-item",33),f.Pb(19,"ion-label",12),f.wc(20),f.cc(21,"translate"),f.Ob(),f.Pb(22,"ion-input",46),f.Xb("ngModelChange",(function(e){return f.oc(t),f.bc().pw_reset.password=e})),f.Ob(),f.Ob(),f.Pb(23,"div",15),f.Pb(24,"ion-button",16),f.wc(25),f.cc(26,"translate"),f.Ob(),f.Ob(),f.Ob(),f.Ob()}if(2&t){const t=f.bc();f.Bb(2),f.gc("hidden",t.show_reset_code),f.Bb(1),f.yc(" ",f.dc(4,14,"Enter your email to retrieve your reset code.")," "),f.Bb(2),f.gc("hidden",!t.show_reset_code),f.Bb(1),f.yc(" ",f.dc(7,16,"Check your email for your verification code, then enter it here along with your new password.")," "),f.Bb(2),f.gc("hidden",t.show_reset_code),f.Bb(2),f.xc(f.dc(11,18,"Email")),f.Bb(2),f.gc("ngModel",t.pw_reset.email),f.Bb(1),f.gc("hidden",!t.show_reset_code),f.Bb(2),f.xc(f.dc(16,20,"Verification code")),f.Bb(2),f.gc("ngModel",t.pw_reset.code),f.Bb(1),f.gc("hidden",!t.show_reset_code),f.Bb(2),f.xc(f.dc(21,22,"Enter a new password")),f.Bb(2),f.gc("ngModel",t.pw_reset.password),f.Bb(3),f.yc(" ",f.dc(26,24,"Submit")," ")}}function A(t,e){if(1&t){const t=f.Qb();f.Pb(0,"div",47),f.Pb(1,"p"),f.wc(2),f.Ob(),f.Pb(3,"ion-button",48),f.Xb("click",(function(e){return f.oc(t),f.bc().doLogout()})),f.wc(4),f.cc(5,"translate"),f.Ob(),f.Ob()}if(2&t){const t=f.bc();f.Bb(2),f.xc(t.loginData.message),f.Bb(2),f.yc(" ",f.dc(5,2,"Click here to logout")," ")}}function D(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-col",11),f.Pb(1,"ion-button",51),f.Xb("click",(function(e){return f.oc(t),f.bc(2).register(e)})),f.wc(2),f.cc(3,"translate"),f.Ob(),f.Ob()}2&t&&(f.Bb(2),f.yc(" ",f.dc(3,1,"Sign Up")," "))}function R(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-col",11),f.Pb(1,"ion-button",51),f.Xb("click",(function(e){return f.oc(t),f.bc(2).showLoginForm()})),f.wc(2),f.cc(3,"translate"),f.Ob(),f.Ob()}2&t&&(f.Bb(2),f.yc(" ",f.dc(3,1,"Log In")," "))}function M(t,e){if(1&t){const t=f.Qb();f.Pb(0,"ion-col",11),f.Pb(1,"ion-button",51),f.Xb("click",(function(e){return f.oc(t),f.bc(2).resetRegistration()})),f.wc(2),f.cc(3,"translate"),f.Ob(),f.Ob()}2&t&&(f.Bb(2),f.yc(" ",f.dc(3,1,"Start Over")," "))}function N(t,e){if(1&t&&(f.Pb(0,"ion-grid",49),f.Pb(1,"ion-row"),f.vc(2,D,4,3,"ion-col",50),f.vc(3,R,4,3,"ion-col",50),f.vc(4,M,4,3,"ion-col",50),f.Ob(),f.Ob()),2&t){const t=f.bc();f.Bb(2),f.gc("ngIf",t.api_register_setting&&!t.show_registration),f.Bb(1),f.gc("ngIf",t.api_register_setting&&t.show_registration||t.show_pw_reset),f.Bb(1),f.gc("ngIf",t.api_register_setting&&t.show_registration&&t.show_verification_field)}}function $(t,e){if(1&t&&f.Nb(0,"iframe",52),2&t){const t=f.bc();f.gc("src",t.iframeUrl,f.qc)}}n.d(e,"a",(function(){return L}));let L=(()=>{class t{constructor(t,e,n,r,o,i,s,a,c,l,u,d,h,p,f,g,b,m,v){this.loadingCtrl=t,this.httpService=e,this.appdataService=n,this.modalCtrl=r,this.wplogin=o,this.myapppsettings=i,this.storage=s,this.translate=a,this.toastCtrl=c,this.loginService=l,this.device=u,this.platform=d,this.sanitizer=h,this.sendParams=p,this.signInWithApple=f,this.googlePlus=g,this.dialogs=b,this.loginservice=m,this.helperService=v,this.login={},this.user_data={},this.pw_reset={},this.force_login=!1,this.is_preview=!1,this.show_verification_field=!1,this.show_registration=!1,this.show_pw_reset=!1,this.show_reset_code=!1,this.iphoneX=!1,this.socialLogins=!1,this.appleLogin=!1,this.googleLogin=!1}ngOnInit(){this.title=this.modalTitle?this.modalTitle:this.translate.instant("Login"),this.showRegistration&&(this.show_registration=!0),this.platform.resume.subscribe(t=>
1{this.getScreen()}),this.loginService.getLoginData().then(t=>{t&&(this.loginData=t)}).catch(t=>console.error(t)),this.storage.get("api_register_setting").then(t=>{t&&(this.api_register_setting=t)}),this.checkUnverified(),this.is_preview=this.myapppsettings.isPreview(),this.modalLoginData&&(this.login=this.modalLoginData,this.doLogin()),this._checkForcedLogin().then(t=>{t&&(this.force_login=!0)}),this._handleSocialLogins()}ionViewWillEnter(){this.getScreen()}getScreen(){this.storage.get("login_screen").then(t=>{"show_verification_field"===t?(this.show_verification_field=!0,this.show_registration=!0,this.checkUnverified()):"show_reset_code"===t&&(this.show_pw_reset=!0,this.show_reset_code=!0,this.show_registration=!1)})}checkUnverified(){this.storage.get("unverified_user").then(t=>{t&&(this.show_verification_field=!0,this.show_registration=!0,this.user_data=t)})}_checkForcedLogin(t=null){return Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.loginService.getLoginData();return t||(t=yield this.appdataService.getAppdata()),!e&&"on"===t.side_menu_force_login}))}_handleSocialLogins(){var t,e,n,o;return Object(r.a)(this,void 0,void 0,(function*(){const r=yield this.appdataService.getAppdata();"on"===(null===(e=null===(t=r.config)||void 0===t?void 0:t.social_logins)||void 0===e?void 0:e.apple_sign_on)&&this._isIos13AndLater()&&(this.appleLogin=!0),"on"===(null===(o=null===(n=r.config)||void 0===n?void 0:n.social_logins)||void 0===o?void 0:o.google_sign_on)&&(this.platform.is("android")||this._isIos13AndLater())&&(this.googleLogin=!0),(this.appleLogin||this.googleLogin)&&(this.socialLogins=!0)}))}_isIos13AndLater(){return!!(this.platform.is("ios")&&this.helperService.compareVersionNumbers(this.device.version,"13.0.0")>0)}doLogin(){return Object(r.a)(this,void 0,void 0,(function*(){this._showSpinner();try{const t=yield this.wplogin.login(this.login);this._handleLoginResponse(t)}catch(t){this._handleLoginError(t)}this._hideSpinner()}))}_loginSuccess(t){console.log("login modal success",t),this.loginData=t,this.loginservice.setLoginStatus(t),this.resetRegistration(),this.modalCtrl.dismiss({closed:"logged_in"})}doAppleLogin(){return Object(r.a)(this,void 0,void 0,(function*(){this._showSpinner();try{const t=yield this.signInWithApple.signin({requestedScopes:[a.a.ASAuthorizationScopeFullName,a.a.ASAuthorizationScopeEmail]});let e={provider:"apple",access_token:t.authorizationCode,user_unique_identifier:t.user,first_name:t.fullName.givenName,last_name:t.fullName.familyName,email:t.email?t.email:null};const n=(yield this.appdataService.getAppdata()).wordpress_url+"wp-json/appsocial/v1/user",r=yield this.httpService.post(n,e);this._handleLoginResponse(r),this.loginservice.setLoginStatus(r)}catch(t){console.log(t),t.error?this._handleSocialLoginError(t):this._handleLoginError(t)}this._hideSpinner()}))}doGoogleLogin(){return Object(r.a)(this,void 0,void 0,(function*(){this._showSpinner();try{const t=yield this.googlePlus.login({});let e={provider:"google",access_token:t.accessToken,user_unique_identifier:t.userId,first_name:t.givenName,last_name:t.familyName,email:t.email};const n=(yield this.appdataService.getAppdata()).wordpress_url+"wp-json/appsocial/v1/user",r=yield this.httpService.post(n,e);this._handleLoginResponse(r),this.loginservice.setLoginStatus(r)}catch(t){console.log(t),t.error?this._handleSocialLoginError(t):this._handleLoginError(t)}this._hideSpinner()}))}_handleLoginResponse(t){t&&!1!==t.success?this.maybeSetCookie(t,!1):this._handleLoginError(t)}maybeSetCookie(t,e=!1){console.log("Setting cookie via iframe. Logout: "+e),this.appdataService.getAppdata().then(n=>{let r=n.wordpress_url;e?r+="?appp=3&wp_logout=true":t&&t.cookie_auth&&""!=t.cookie_auth&&(r=r+"?appp=3&cookie_auth="+t.cookie_auth,t.cookie_auth=""),this.iframeUrl=this.sanitizer.bypassSecurityTrustResourceUrl(r),this._presentToast("Logging you "+(e?"out":"in")),setTimeout(()=>{e?this._clearDataOnLogout():this._loginSuccess(t)},5e3),console.log("iframe url "+r)})}_handleLoginError(t){let e=this.translate.instant("There was a problem, please try again.");e+=t.data&&t.data.message?" "+this.translate.instant(t.data.message):t.message?" "+this.translate.instant(t.message):" "+this.translate.instant("Could not connect to the server."),this._presentToast(e)}_handleSocialLoginError(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.appdataService.getAppdata(),n=JSON.parse(t.error);if(n.code&&"appsocial_user_does_not_exist"===n.code&&"on"===e.show_registration_link)this._registerAlert();else{let t=this.translate.instant(n.message);this._presentToast(t)}}))}_registerAlert(){this.dialogs.confirm(this.translate.instant("Register a new account?"),this.translate.instant("This user does not exist"),[this.translate.instant("Cancel"),this.translate.instant("Register")]).then(t=>{2===t&&(this.show_registration=!0)}).catch(t=>console.warn(t))}showResetPassword(){this.show_pw_reset=!0,this.show_registration=!1}doResetPassword(){console.log(this.pw_reset),this.pw_reset.email||this.pw_reset.code?(this._showSpinner(),this.wplogin.resetPassword(this.pw_reset).then(t=>{console.log(t),t.got_code&&(this.show_reset_code=!0,this.storage.set("login_screen","show_reset_code")),t.pw_changed&&(this.pw_reset.email&&(this.login.user=this.pw_reset.email),setTimeout(()=>{this.show_pw_reset=!1,this.storage.remove("login_screen")},800)),this._presentToast(t.message),this._hideSpinner()}).catch(t=>{this.handleErr(t),this._hideSpinner()})):this._presentToast("Please fill out required fields.")}doLogout(){this._showSpinner(),this.wplogin.logout().then(t=>{console.log("logout",t),this.maybeSetCookie(null,!0),t.logout_redirect&&this.appdataService.maybeLogInOutRedirect(t),this._hideSpinner()}).catch(t=>{console.error(t);let e=this.translate.instant("You are logged out of the app, but there was a problem on the server.");e+=t.data&&t.data.message?" "+t.data.message:"",this._presentToast(e),this.maybeSetCookie(null,!0),this._hideSpinner()})}_clearDataOnLogout(){console.log("login modal clear data logout"),this.loginService.removeLoginStatus(),this.loginService.deleteLoginData(),delete this.loginData,this.modalCtrl.dismiss({closed:"logged_out"})}register(t){if(this.api_register_setting&&!this.api_register_setting.url||this.api_register_setting&&""===this.api_register_setting.url)this.show_registration=!0;else{let e,n=t.target.innerText;e=this.api_register_setting&&this.api_register_setting.url&&this.api_register_setting.url.indexOf("https")>=0?{url:this.api_register_setting.url,title:n,is_register_page:!0,page_id:null,page_type:null,list_route:null}:{title:n,type:"apppages",slug:this.api_register_setting&&this.api_register_setting.url?this.api_register_setting.url:""},this._checkForcedLogin().then(t=>{t?this.appdataService.navigateToPageAsRoot(e):this.appdataService.navigateForwardToPage(e),this.dismiss()})}}showVerificationField(){this.show_verification_field=!0}
1doApiRegistration(){this.user_data.email&&this.user_data.username&&this.user_data.password?(this._showSpinner(),this.user_data.verification?this.verify(this.user_data):this.wplogin.register(this.user_data).then(t=>{console.log(t),this.show_verification_field=!0,this.storage.set("login_screen","show_verification_field"),this.storage.set("unverified_user",this.user_data),this._hideSpinner()}).catch(t=>{this.handleErr(t),this._hideSpinner()})):this._presentToast("Please fill out required fields.")}verify(t){this.wplogin.verifyUser(t).then(t=>{console.log(t),t.success?(this._presentToast("Success! You have been registered."),this._loginSuccess(t),this.show_verification_field=!1,this.show_registration=!1,this.storage.remove("unverified_user"),this.storage.remove("login_screen")):t.message&&this._presentToast(this.translate.instant(t.message)),this._hideSpinner()}).catch(t=>{this.handleErr(t),this._hideSpinner()})}resendCode(){this.user_data&&this.user_data.email&&this.user_data.username?(this._showSpinner(),this.wplogin.resendCode(this.user_data).then(t=>{this._presentToast(t?this.translate.instant("Verification code resent."):"Verification code was not sent, please check your server email settings."),this._hideSpinner()}).catch(t=>{this.handleErr(t),this._hideSpinner()})):this._presentToast("Please enter your email and username, then try again.")}resetRegistration(){this.storage.remove("unverified_user").then(t=>{this.show_verification_field=!1,this.user_data.verification=null}),this.storage.remove("login_screen")}showLoginForm(){this.show_registration=!1,this.show_pw_reset=!1,this.show_reset_code=!1}_showSpinner(){this.loadingCtrl.create({showBackdrop:!1}).then(t=>{this.spinner=t,this.spinner.present(),setTimeout(()=>{this._hideSpinner()},1e4)}).catch(t=>console.error(t))}dismiss(){this.force_login&&this.is_preview&&!(this.api_register_setting&&this.api_register_setting.url)&&alert("You can close this modal for testing. App users will not be able to close without logging in this since you have forced login."),this.modalCtrl.dismiss({closed:"canceled"})}_hideSpinner(){this.spinner&&this.spinner.dismiss()}_presentToast(t){t=this.translate.instant(t),this.toastCtrl.create({message:t,duration:3e3,position:"bottom"}).then(t=>t.present()).catch(t=>console.error(t))}handleErr(t){console.error("Error with registration",t);let e=this.translate.instant("There was a problem, please try again.");t.error&&t.error.message?e+=" "+t.error.message:t._body&&JSON.parse(t._body).message?e+=" "+JSON.parse(t._body).message:t.error&&(e+=" "+JSON.parse(t.error).message),this._presentToast(e)}}return t.\u0275fac=function(e){return new(e||t)(f.Mb(b.mb),f.Mb(p.a),f.Mb(i.a),f.Mb(b.ob),f.Mb(o.a),f.Mb(d.a),f.Mb(m.b),f.Mb(v.e),f.Mb(b.wb),f.Mb(u.a),f.Mb(s.a),f.Mb(b.rb),f.Mb(y.b),f.Mb(h.a),f.Mb(a.b),f.Mb(c.a),f.Mb(l.a),f.Mb(u.a),f.Mb(g))},t.\u0275cmp=f.Gb({type:t,selectors:[["app-login-modal"]],decls:14,vars:10,consts:[["slot","end"],[3,"click",4,"ngIf"],["class","login-form fade-in ion-padding",3,"ngSubmit",4,"ngIf"],["id","registration-form","class","fade-in",4,"ngIf"],["class","fade-in lost-pw-form",4,"ngIf"],["class","logout-message ion-padding",4,"ngIf"],["class","modal-footer ion-no-padding",4,"ngIf"],["id","loginIframe",3,"src",4,"ngIf"],[3,"click"],["slot","icon-only","name","close"],[1,"login-form","fade-in","ion-padding",3,"ngSubmit"],[1,"ion-no-padding"],["position","stacked"],["type","text","name","user","autocomplete","on","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],["type","password","name","pass","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],[1,"ion-padding"],["type","submit","expand","block"],[1,"appforgotpassword"],["lines","none",1,"ion-no-padding",3,"click"],[1,"forgot-password-text"],[4,"ngIf"],[1,"login-div-wrap"],[1,"login-div"],[1,"login-div-text"],["expand","block","class","apple-login",3,"click",4,"ngIf"],["expand","block","class","google-login",3,"click",4,"ngIf"],["expand","block",1,"apple-login",3,"click"],["slot","start","name","logo-apple"],["expand","block",1,"google-login",3,"click"],["slot","start","name","logo-google"],["id","registration-form",1,"fade-in"],[1,"ion-padding",3,"ngSubmit"],[3,"hidden"],[1,"ion-no-padding",3,"hidden"],["type","text","name","first_name","autocomplete","on","autocorrect","off","autocapitalize","on","spellcheck","fal
1se",3,"ngModel","ngModelChange"],["type","text","name","last_name","autocomplete","on","autocorrect","off","autocapitalize","on","spellcheck","false",3,"ngModel","ngModelChange"],["type","email","name","email","autocomplete","on","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],["type","text","name","username","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],["type","password","name","password","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],["class","fade-in",4,"ngIf"],["class","gray-text ion-text-center",3,"click",4,"ngIf"],[1,"fade-in"],["type","text","name","verification","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],[1,"gray-text","ion-text-center",3,"click"],[1,"fade-in","lost-pw-form"],["type","text","name","code","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],["type","text","name","password","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",3,"ngModel","ngModelChange"],[1,"logout-message","ion-padding"],["expand","block",3,"click"],[1,"modal-footer","ion-no-padding"],["class","ion-no-padding",4,"ngIf"],["fill","clear","expand","full",1,"register-link",3,"click"],["id","loginIframe",3,"src"]],template:function(t,e){1&t&&(f.Pb(0,"ion-header"),f.Pb(1,"ion-toolbar"),f.Pb(2,"ion-title"),f.wc(3),f.cc(4,"translate"),f.Ob(),f.Pb(5,"ion-buttons",0),f.vc(6,O,2,0,"ion-button",1),f.Ob(),f.Ob(),f.Ob(),f.Pb(7,"ion-content"),f.vc(8,j,21,15,"form",2),f.vc(9,T,37,33,"div",3),f.vc(10,k,27,26,"div",4),f.vc(11,A,6,4,"div",5),f.vc(12,N,5,3,"ion-grid",6),f.vc(13,$,1,1,"iframe",7),f.Ob()),2&t&&(f.Bb(3),f.xc(f.dc(4,8,e.title)),f.Bb(3),f.gc("ngIf",!e.force_login&&!e.loginData||e.loginData||e.is_preview&&e.force_login),f.Bb(2),f.gc("ngIf",!e.loginData&&!e.show_registration&&!e.show_pw_reset),f.Bb(1),f.gc("ngIf",e.show_registration&&!e.loginData),f.Bb(1),f.gc("ngIf",e.show_pw_reset&&!e.loginData&&!e.show_registration),f.Bb(1),f.gc("ngIf",e.loginData),f.Bb(1),f.gc("ngIf",!e.loginData),f.Bb(1),f.gc("ngIf",e.iframeUrl))},directives:[b.w,b.jb,b.hb,b.k,_.k,b.r,b.j,b.x,w.n,w.i,w.j,b.C,b.G,b.B,b.vb,w.h,w.k,b.v,b.R,b.q],pipes:[v.d],styles:[".gray-text[_ngcontent-%COMP%]{color:#999;font-size:16px}.fade-in[_ngcontent-%COMP%]{animation:fadein .5s}@keyframes fadein{0%{opacity:0}to{opacity:1}}.resend-text[_ngcontent-%COMP%]{text-decoration:underline;color:#777}form[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{background-color:initial}.modal-footer[_ngcontent-%COMP%]{margin-left:0;position:fixed;border-top:1px solid rgba(0,0,0,.1)}body.keyboard-open[_ngcontent-%COMP%] .platform-android[_ngcontent-%COMP%] .modal-footer[_ngcontent-%COMP%]{display:none}.modal-footer[_ngcontent-%COMP%] ion-row[_ngcontent-%COMP%]{min-height:56px}.modal-footer[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{height:100%}.forgot-password-text[_ngcontent-%COMP%]{color:#999;font-size:16px;text-align:center}#registration-form[_ngcontent-%COMP%]{margin-bottom:80px}#loginIframe[_ngcontent-%COMP%]{width:1px;height:1px;visibility:hidden;position:absolute;bottom:-1px;left:-1px}.appforgotpassword[_ngcontent-%COMP%]{margin-top:11px;margin-bottom:26px;text-align:center}.appforgotpassword[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{--background:none;background-color:initial}.appfbconnectlogin[_ngcontent-%COMP%]{margin-right:8px;text-align:center}.appfbconnectlogin[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{background-color:initial}.fb-icon[_ngcontent-%COMP%]{position:relative;display:inline-block;top:4px;width:20px;height:20px;background-position:0 0;background-size:100%;background-repeat:no-repeat;margin-right:9px;padding:0;border:0}.fb-login-text[_ngcontent-%COMP%]{color:#385185;font-size:16px}.login-div-wrap[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{align-items:stretch;border:0 solid #000;box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;padding:0;position:relative;flex-direction:row;margin:6px 10px 9px}.login-div[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1;background-color:#c7c7c7;height:1px;position:relative;top:.45em}.login-div-text[_ngcontent-%COMP%]{color:#999;flex-grow:0;flex-shrink:0;font-size:13px;font-weight:600;line-height:15px;margin:0 18px;text-transform:uppercase}.apple-login[_ngcontent-%COMP%]{--background:#000;margin-top:15px}.google-login[_ngcontent-%COMP%]{--background:#db3d29;margin-top:15px}"]}),t})()},"9YJ4":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("C6fG"),i=n("HDdC"),s=n("fXoL"),a=function(){function t(t){var e=this;this._objectInstance=t,this.onSuccess=new i.a((function(t){return e.successCallback=t.next.bind(t),function(){return e.successCallback=function(){}}}
1)),this.onError=new i.a((function(t){return e.errorCallback=t.next.bind(t),function(){return e.errorCallback=function(){}}})),this.onStatusUpdate=new i.a((function(t){return e.statusCallback=t.next.bind(t),function(){return e.statusCallback=function(){}}}))}return t.prototype.getCurrentAmplitude=function(){return Object(o.cordovaInstance)(this,"getCurrentAmplitude",{},arguments)},t.prototype.getCurrentPosition=function(){return Object(o.cordovaInstance)(this,"getCurrentPosition",{},arguments)},t.prototype.getDuration=function(){return Object(o.cordovaInstance)(this,"getDuration",{sync:!0},arguments)},t.prototype.play=function(t){return Object(o.cordovaInstance)(this,"play",{sync:!0},arguments)},t.prototype.pause=function(){return Object(o.cordovaInstance)(this,"pause",{sync:!0},arguments)},t.prototype.release=function(){return Object(o.cordovaInstance)(this,"release",{sync:!0},arguments)},t.prototype.seekTo=function(t){return Object(o.cordovaInstance)(this,"seekTo",{sync:!0},arguments)},t.prototype.setVolume=function(t){return Object(o.cordovaInstance)(this,"setVolume",{sync:!0},arguments)},t.prototype.setRate=function(t){return Object(o.cordovaInstance)(this,"setRate",{sync:!0},arguments)},t.prototype.startRecord=function(){return Object(o.cordovaInstance)(this,"startRecord",{sync:!0},arguments)},t.prototype.stopRecord=function(){return Object(o.cordovaInstance)(this,"stopRecord",{sync:!0},arguments)},t.prototype.pauseRecord=function(){return Object(o.cordovaInstance)(this,"pauseRecord",{sync:!0},arguments)},t.prototype.resumeRecord=function(){return Object(o.cordovaInstance)(this,"resumeRecord",{sync:!0},arguments)},t.prototype.stop=function(){return Object(o.cordovaInstance)(this,"stop",{sync:!0},arguments)},Object.defineProperty(t.prototype,"successCallback",{get:function(){return Object(o.instancePropertyGet)(this,"successCallback")},set:function(t){Object(o.instancePropertySet)(this,"successCallback",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorCallback",{get:function(){return Object(o.instancePropertyGet)(this,"errorCallback")},set:function(t){Object(o.instancePropertySet)(this,"errorCallback",t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusCallback",{get:function(){return Object(o.instancePropertyGet)(this,"statusCallback")},set:function(t){Object(o.instancePropertySet)(this,"statusCallback",t)},enumerable:!0,configurable:!0}),t}(),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.MEDIA_NONE=0,e.MEDIA_STARTING=1,e.MEDIA_RUNNING=2,e.MEDIA_PAUSED=3,e.MEDIA_STOPPED=4,e.MEDIA_ERR_ABORTED=1,e.MEDIA_ERR_NETWORK=2,e.MEDIA_ERR_DECODE=3,e.MEDIA_ERR_NONE_SUPPORTED=4,e}Object(r.c)(e,t),e.prototype.create=function(t){var n;return!0===Object(o.checkAvailability)(e.getPluginRef(),null,e.getPluginName())&&(n=new(e.getPlugin())(t)),new a(n)},e.pluginName="Media",e.repo="https://github.com/apache/cordova-plugin-media",e.plugin="cordova-plugin-media",e.pluginRef="Media",e.platforms=["Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Rb(e);return e}(o.IonicNativePlugin)},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A1Tq:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("tk/3"),i=n("XSEc"),s=n("fXoL"),a=n("TEn/");let c=(()=>{class t{constructor(t,e,n){this.httpNative=t,this.httpAngular=e,this.platform=n}get(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){return this.platform.is("cordova")&&this.platform.is("ios")?this._getNative(t,e,n):this._getAngular(t,e,n)}))}_getNative(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){if(n&&n.headers&&"{}"===JSON.stringify(n.headers)&&(n=null),e)for(let t in e)"string"!=typeof e[t]&&(e[t]=e[t].toString());const r=yield this.httpNative.get(t,e,n);return JSON.parse(r.data)}))}
1getLocalFile(t){return this.httpAngular.get(t).toPromise()}_getAngular(t,e,n){let r={params:e,headers:n};return t.indexOf("appcommerce")>=0&&(r.withCredentials=!0),this.httpAngular.get(t,r).toPromise()}post(t,e,n){return this.platform.is("cordova")&&this.platform.is("ios")?this._postNative(t,e,n):this._postAngular(t,e,n)}_postNative(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){t.indexOf("wc/")>=0||t.indexOf("appcommerce/")>=0?this.httpNative.setDataSerializer("json"):this.httpNative.setDataSerializer("urlencoded");const r=yield this.httpNative.post(t,e,n);return JSON.parse(r.data)}))}_postAngular(t,e,n){let r=e;if(t.indexOf("wc/")<0&&t.indexOf("appcommerce/")<0){r=new o.c;for(let t in e)r=r.set(t,e[t])}let i={headers:n};return t.indexOf("appcommerce/")>=0&&(i.withCredentials=!0),this.httpAngular.post(t,r,i).toPromise()}postWithFormData(t,e,n,r){return t=t+"?"+e.toString(),this.platform.is("cordova")&&this.platform.is("ios")?this._postWithFormDataNative(t,n,r):this._postWithFormDataAngular(t,n,r)}_postWithFormDataNative(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){this.httpNative.setDataSerializer("multipart");const r=yield this.httpNative.post(t,e,n);return JSON.parse(r.data)}))}_postWithFormDataAngular(t,e,n){return this.httpAngular.post(t,e,{headers:n}).toPromise()}postWithUrlencoded(t,e,n){return this.platform.is("cordova")&&this.platform.is("ios")?this._postWithUrlencodedNative(t,e,n):this._postWithUrlencodedAngular(t,e,n)}_postWithUrlencodedNative(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){this.httpNative.setDataSerializer("urlencoded");const r=yield this.httpNative.post(t,e,n);return JSON.parse(r.data)}))}_postWithUrlencodedAngular(t,e,n){return this.httpAngular.post(t,e,{headers:n}).toPromise()}put(t,e,n){return this.platform.is("cordova")&&this.platform.is("ios")?this._putNative(t,e,n):this._putAngular(t,e,n)}_putNative(t,e,n){return Object(r.a)(this,void 0,void 0,(function*(){(t.indexOf("wc/")>=0||t.indexOf("appcommerce/")>=0)&&this.httpNative.setDataSerializer("json");const r=yield this.httpNative.put(t,e,n);return JSON.parse(r.data)}))}_putAngular(t,e,n){let r=new o.c;for(let o in e)r=r.set(o,e[o]);return this.httpAngular.put(t,r,{headers:n}).toPromise()}delete(t,e){return this.platform.is("cordova")&&this.platform.is("ios")?this._deleteNative(t,e):this._deleteAngular(t,e)}_deleteNative(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const n=yield this.httpNative.delete(t,null,e);return JSON.parse(n.data)}))}_deleteAngular(t,e){let n={headers:e};return t.indexOf("appcommerce/")>=0&&(n.withCredentials=!0),this.httpAngular.delete(t,n).toPromise()}addParamsToUrl(t,e){let n=new URLSearchParams;for(let r in e)n.set(r,e[r]);return t+"?"+n.toString()}convertUrlParamsToObject(t){return JSON.parse('{"'+t.replace(/&/g,'","').replace(/=/g,'":"')+'"}',(function(t,e){return""===t?e:decodeURIComponent(e)}))}downloadFile(t,e,n,r){return this.httpNative.downloadFile(t,e,n,r)}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(i.a),s.Tb(o.a),s.Tb(a.rb))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},A36C:function(t,e,n){"use strict";n.d(e,"a",(function(){return Ft})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return D})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return _t})),n.d(e,"f",(function(){return Vt})),n.d(e,"g",(function(){return et})),n.d(e,"h",(function(){return Lt})),n.d(e,"i",(function(){return P})),n.d(e,"j",(function(){return k})),n.d(e,"k",(function(){return tt})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return wt})),n.d(e,"n",(function(){return f})),n.d(e,"o",(function(){return Et})),n.d(e,"p",(function(){return x})),n.d(e,"q",(function(){return d}));let r,o,i,s=!1,a=!1,c=!1,l=!1,u=!1;const d="undefined"!=typeof window?window:{},h=d.CSS,p=d.document||{head:{}},f={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r),ce:(t,e)=>new CustomEvent(t,e)},g=(()=>(p.head.attachShadow+"").indexOf("[native")>-1)(),b=t=>Promise.resolve(t),m=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),v=(t,e,n,r)=>{n&&n.map(([n,r,o])=>{const i=_(t,n),s=y(e,o),a=w(n);
1f.ael(i,r,s,a),(e.$rmListeners$=e.$rmListeners$||[]).push(()=>f.rel(i,r,s,a))})},y=(t,e)=>n=>{try{256&t.$flags$?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(r){xt(r)}},_=(t,e)=>4&e?p:8&e?d:16&e?p.body:t,w=t=>0!=(2&t),O="http://www.w3.org/1999/xlink",S=new WeakMap,E=(t,e,n)=>{let r=Tt.get(t);m&&n?(r=r||new CSSStyleSheet,r.replace(e)):r=e,Tt.set(t,r)},C=(t,e,n,r)=>{let o=j(e,n),i=Tt.get(o);if(t=11===t.nodeType?t:p,i)if("string"==typeof i){let n,s=S.get(t=t.head||t);if(s||S.set(t,s=new Set),!s.has(o)){if(t.host&&(n=t.querySelector(`[sty-id="${o}"]`)))n.innerHTML=i;else{if(f.$cssShim$){n=f.$cssShim$.createHostStyle(r,o,i,!!(10&e.$flags$));const t=n["s-sc"];t&&(o=t,s=null)}else n=p.createElement("style"),n.innerHTML=i;t.insertBefore(n,t.querySelector("link"))}s&&s.add(o)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]);return o},j=(t,e)=>"sc-"+(e&&32&t.$flags$?t.$tagName$+"-"+e:t.$tagName$),x=t=>kt.push(t),P=t=>St(t).$modeName$,I={},T=t=>"object"==(t=typeof t)||"function"===t,k=(t,e,...n)=>{let r=null,o=null,i=null,s=!1,a=!1,c=[];const l=e=>{for(let n=0;n<e.length;n++)r=e[n],Array.isArray(r)?l(r):null!=r&&"boolean"!=typeof r&&((s="function"!=typeof t&&!T(r))&&(r=String(r)),s&&a?c[c.length-1].$text$+=r:c.push(s?A(null,r):r),a=s)};if(l(n),e){e.key&&(o=e.key),e.name&&(i=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,R);const u=A(t,null);return u.$attrs$=e,c.length>0&&(u.$children$=c),u.$key$=o,u.$name$=i,u},A=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),D={},R={forEach:(t,e)=>t.map(M).forEach(e),map:(t,e)=>t.map(M).map(e).map(N)},M=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),N=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),k(t.vtag,e,...t.vchildren||[])}const e=A(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},$=(t,e,n,r,o,i)=>{if(n!==r){let a=jt(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,o=V(n),i=V(r);e.remove(...o.filter(t=>t&&!i.includes(t))),e.add(...i.filter(t=>t&&!o.includes(t)))}else if("style"===e){for(const e in n)r&&null!=r[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in r)n&&r[e]===n[e]||(e.includes("-")?t.style.setProperty(e,r[e]):t.style[e]=r[e])}else if("key"===e);else if("ref"===e)r&&r(t);else if(a||"o"!==e[0]||"n"!==e[1]){const l=T(r);if((a||l&&null!==r)&&!o)try{if(t.tagName.includes("-"))t[e]=r;else{let o=null==r?"":r;"list"===e?a=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(s){}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,u=!0),null==r||!1===r?!1===r&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(O,e):t.removeAttribute(e)):(!a||4&i||o)&&!l&&(r=!0===r?"":r,u?t.setAttributeNS(O,e,r):t.setAttribute(e,r))}else e="-"===e[2]?e.slice(3):jt(d,c)?c.slice(2):c[2]+e.slice(3),n&&f.rel(t,e,n,!1),r&&f.ael(t,e,r,!1)}},L=/\s/,V=t=>t?t.split(L):[],F=(t,e,n,r)=>{const o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,i=t&&t.$attrs$||I,s=e.$attrs$||I;for(r in i)r in s||$(o,r,i[r],void 0,n,e.$flags$);for(r in s)$(o,r,i[r],s[r],n,e.$flags$)},U=(t,e,n,a)=>{let u,d,h,f=e.$children$[n],g=0;if(s||(c=!0,"slot"===f.$tag$&&(r&&a.classList.add(r+"-s"),f.$flags$|=f.$children$?2:1)),null!==f.$text$)u=f.$elm$=p.createTextNode(f.$text$);else if(1&f.$flags$)u=f.$elm$=p.createTextNode("");else{if(l||(l="svg"===f.$tag$),u=f.$elm$=p.createElementNS(l?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&f.$flags$?"slot-fb":f.$tag$),l&&"foreignObject"===f.$tag$&&(l=!1),F(null,f,l),null!=r&&u["s-si"]!==r&&u.classList.add(u["s-si"]=r),f.$children$)for(g=0;g<f.$children$.length;++g)d=U(t,f,g,u),d&&u.appendChild(d);"svg"===f.$tag$?l=!1:"foreignObject"===u.tagName&&(l=!0)}return u["s-hn"]=i,3&f.$flags$&&(u["s-sr"]=!0,u["s-cr"]=o,u["s-sn"]=f.$name$||"",h=t&&t.$children$&&t.$children$[n],h&&h.$tag$===f.$tag$&&t.$elm$&&B(t.$elm$,!1)),u},B=(t,e)=>{f.$flags$|=1;const n=t.childNodes;for(let r=n.length-1;r>=0;r--){const t=n[r];t["s-hn"]!==i&&t["s-ol"]&&(W(t).insertBefore(t,q(t)),t["s-ol"].remove(),t["s-ol"]=void 0,c=!0),e&&B(t,e)}f.$flags$&=-2},z=(t,e,n,r,o,s)=>{let a,c=t["s-cr"]&&t["s-cr"].parentNode||t;for(c.shadowRoot&&c.tagName===i&&(c=c.shadowRoot);o<=s;++o)r[o]&&(a=U(null,n,o,t),a&&(r[o].$elm$=a,c.insertBefore(a,q(e))))},H=(t,e,n,r,o)=>{for(;e<=n;++e)(r=t[e])&&(o=r.$elm$,J(r),a=!0,o["s-ol"]?o["s-ol"].remove():B(o,!0),o.remove())},G=(t,e)=>t.$tag$===e.$tag$&&("slot"===t.$tag$?t.$name$===e.$name$:t.$key$===e.$key$),q=t=>t&&t["s-ol"]||t,W=t=>(t["s-ol"]?t["s-ol"]:t).parentNode,X=(t,e)=>{const n=e.$elm$=t.$elm$,r=t.$children$,o=e.$children$,i=e.$tag$,s=e.$text$;let a;null===s?(l="svg"===i||"foreignObject"!==i&&l,"slot"===i||F(t,e,l),null!==r&&null!==o?((t,e,n,r)=>{let o,i,s=0,a=0,c=0,l=0,u=e.length-1,d=e[0],h=e[u],p=r.length-1,f=r[0],g=r[p];for(;s<=u&&a<=p;)if(null==d)d=e[++s];else if(null==h)h=e[--u];else if(null==f)f=r[++a];else if(null==g)g=r[--p];else if(G(d,f))X(d,f),d=e[++s],f=r[++a];else if(G(h,g))X(h,g),h=e[--u],g=r[--p];else if(G(d,g))"slot"!==d.$tag$&&"slot"!==g.$tag$||B(d.$elm$.parentNode,!1),X(d,g),t.insertBefore(d.$elm$,h.$elm$.nextSibling),d=e[++s],g=r[--p];else if(G(h,f))"slot"!==d.$tag$&&"slot"!==g.$tag$||B(h.$elm$.parentNode,!1),X(h,f),t.insertBefore(h.$elm$,d.$elm$),h=e[--u],f=r[++a];else{for(c=-1,l=s;l<=u;
vendor: 1,690 bytes, line 1
1++l)if(e[l]&&null!==e[l].$key$&&e[l].$key$===f.$key$){c=l;break}c>=0?(i=e[c],i.$tag$!==f.$tag$?o=U(e&&e[a],n,c,t):(X(i,f),e[c]=void 0,o=i.$elm$),f=r[++a]):(o=U(e&&e[a],n,a,t),f=r[++a]),o&&W(d.$elm$).insertBefore(o,q(d.$elm$))}s>u?z(t,null==r[p+1]?null:r[p+1].$elm$,n,r,a,p):a>p&&H(e,s,u)})(n,r,e,o):null!==o?(null!==t.$text$&&(n.textContent=""),z(n,null,e,o,0,o.length-1)):null!==r&&H(r,0,r.length-1),l&&"svg"===i&&(l=!1)):(a=n["s-cr"])?a.parentNode.textContent=s:t.$text$!==s&&(n.data=s)},K=t=>{let e,n,r,o,i,s,a=t.childNodes;for(n=0,r=a.length;n<r;n++)if(e=a[n],1===e.nodeType){if(e["s-sr"])for(i=e["s-sn"],e.hidden=!1,o=0;o<r;o++)if(a[o]["s-hn"]!==e["s-hn"])if(s=a[o].nodeType,""!==i){if(1===s&&i===a[o].getAttribute("slot")){e.hidden=!0;break}}else if(1===s||3===s&&""!==a[o].textContent.trim()){e.hidden=!0;break}K(e)}},Y=[],Z=t=>{let e,n,r,o,i,s,c=0,l=t.childNodes,u=l.length;for(;c<u;c++){if(e=l[c],e["s-sr"]&&(n=e["s-cr"]))for(r=n.parentNode.childNodes,o=e["s-sn"],s=r.length-1;s>=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===e["s-hn"]||(Q(n,o)?(i=Y.find(t=>t.$nodeToRelocate$===n),a=!0,n["s-sn"]=n["s-sn"]||o,i?i.$slotRefNode$=e:Y.push({$slotRefNode$:e,$nodeToRelocate$:n}),n["s-sr"]&&Y.map(t=>{Q(t.$nodeToRelocate$,n["s-sn"])&&(i=Y.find(t=>t.$nodeToRelocate$===n),i&&!t.$slotRefNode$&&(t.$slotRefNode$=i.$slotRefNode$))})):Y.some(t=>t.$nodeToRelocate$===n)||Y.push({$nodeToRelocate$:n}));1===e.nodeType&&Z(e)}},Q=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,J=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(J)},tt=t=>St(t).$hostElement$,et=(t,e,n)=>{const r=tt(t);return{emit:t=>
1nt(r,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},nt=(t,e,n)=>{const r=f.ce(e,n);return t.dispatchEvent(r),r},rt=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise(e=>t.$onRenderResolve$=e))},ot=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return rt(t,t.$ancestorComponent$),Vt(()=>it(t,e));t.$flags$|=512},it=(t,e)=>{const n=t.$lazyInstance$;let r;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map(([t,e])=>dt(n,t,e)),t.$queuedListeners$=null),r=dt(n,"componentWillLoad")),r=ht(r,()=>dt(n,"componentWillRender")),ht(r,()=>st(t,n,e))},st=async(t,e,n)=>{const l=t.$hostElement$,u=l["s-rc"];n&&(t=>{const e=t.$cmpMeta$,n=t.$hostElement$,r=e.$flags$,o=C(g&&n.shadowRoot?n.shadowRoot:n.getRootNode(),e,t.$modeName$,n);10&r&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&r&&n.classList.add(o+"-s"))})(t),((t,e)=>{const n=t.$hostElement$,l=t.$cmpMeta$,u=t.$vnode$||A(null,null),d=(h=e)&&h.$tag$===D?e:k(null,null,e);var h;if(i=n.tagName,l.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},l.$attrsToReflect$.map(([t,e])=>d.$attrs$[e]=n[t])),d.$tag$=null,d.$flags$|=4,t.$vnode$=d,d.$elm$=u.$elm$=n.shadowRoot||n,r=n["s-sc"],o=n["s-cr"],s=g&&0!=(1&l.$flags$),a=!1,X(u,d),f.$flags$|=1,c){let t,e,n,r,o,i;Z(d.$elm$);let s=0;for(;s<Y.length;s++)t=Y[s],e=t.$nodeToRelocate$,e["s-ol"]||(n=p.createTextNode(""),n["s-nr"]=e,e.parentNode.insertBefore(e["s-ol"]=n,e));for(s=0;s<Y.length;s++)if(t=Y[s],e=t.$nodeToRelocate$,t.$slotRefNode$){for(r=t.$slotRefNode$.parentNode,o=t.$slotRefNode$.nextSibling,n=e["s-ol"];n=n.previousSibling;)if(i=n["s-nr"],i&&i["s-sn"]===e["s-sn"]&&r===i.parentNode&&(i=i.nextSibling,!i||!i["s-nr"])){o=i;break}(!o&&r!==e.parentNode||e.nextSibling!==o)&&e!==o&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),r.insertBefore(e,o))}else 1===e.nodeType&&(e.hidden=!0)}a&&K(d.$elm$),f.$flags$&=-2,Y.length=0})(t,at(t,e)),f.$cssShim$&&f.$cssShim$.updateHost(l),u&&(u.map(t=>t()),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>ct(t);0===e.length?n():(Promise.all(e).then(n),t.$flags$|=4,e.length=0)}},at=(t,e)=>{try{e=e.render&&e.render(),t.$flags$&=-17,t.$flags$|=2}catch(n){xt(n,t.$hostElement$)}return e},ct=t=>{const e=t.$hostElement$,n=t.$lazyInstance$,r=t.$ancestorComponent$;64&t.$flags$?dt(n,"componentDidUpdate"):(t.$flags$|=64,pt(e),dt(n,"componentDidLoad"),t.$onReadyResolve$(e),r||ut()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&$t(()=>ot(t,!1)),t.$flags$&=-517},lt=t=>{{const e=St(t),n=e.$hostElement$.isConnected;return n&&2==(18&e.$flags$)&&ot(e,!1),n}},ut=t=>{pt(p.documentElement),$t(()=>nt(d,"appload",{detail:{namespace:"ionic"}}))},dt=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(r){xt(r)}},ht=(t,e)=>t&&t.then?t.then(e):e(),pt=t=>t.classList.add("hydrated"),ft=(t,e,n,r,o,i,s)=>{let a,c,l,u;if(1===i.nodeType){for(a=i.getAttribute("c-id"),a&&(c=a.split("."),c[0]!==s&&"0"!==c[0]||(l={$flags$:0,$hostId$:c[0],$nodeId$:c[1],$depth$:c[2],$index$:c[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},e.push(l),i.removeAttribute("c-id"),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,t=l,r&&"0"===l.$depth$&&(r[l.$index$]=l.$elm$))),u=i.childNodes.length-1;u>=0;u--)ft(t,e,n,r,o,i.childNodes[u],s);if(i.shadowRoot)for(u=i.shadowRoot.childNodes.length-1;u>=0;u--)ft(t,e,n,r,o,i.shadowRoot.childNodes[u],s)}else if(8===i.nodeType)c=i.nodeValue.split("."),c[1]!==s&&"0"!==c[1]||(a=c[0],l={$flags$:0,$hostId$:c[1],$nodeId$:c[2],$depth$:c[3],$index$:c[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(l.$elm$=i.nextSibling,l.$elm$&&3===l.$elm$.nodeType&&(l.$text$=l.$elm$.textContent,e.push(l),i.remove(),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l,r&&"0"===l.$depth$&&(r[l.$index$]=l.$elm$))):l.$hostId$===s&&("s"===a?(l.$tag$="slot",i["s-sn"]=c[5]?l.$name$=c[5]:"",i["s-sr"]=!0,r&&(l.$elm$=p.createElement(l.$tag$),l.$name$&&l.$elm$.setAttribute("name",l.$name$),i.parentNode.insertBefore(l.$elm$,i),i.remove(),"0"===l.$depth$&&(r[l.$index$]=l.$elm$)),n.push(l),t.$children$||(t.$children$=[]),t.$children$[l.$index$]=l):"r"===a&&(r?i.remove():(o["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.$tag$){const e=A(null,i.textContent);e.$elm$=i,e.$index$="0",t.$children$=[e]}},gt=(t,e)=>{if(1===t.nodeType){let n=0;for(;n<t.childNodes.length;n++)gt(t.childNodes[n],e);if(t.shadowRoot)for(n=0;n<t.shadowRoot.childNodes.length;n++)gt(t.shadowRoot.childNodes[n],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},bt=(t,e,n)=>
1{if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const r=Object.entries(e.$members$),o=t.prototype;if(r.map(([t,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(o,t,{get(){return e=t,St(this).$instanceValues$.get(e);var e},set(n){((t,e,n,r)=>{const o=St(this),i=o.$hostElement$,s=o.$instanceValues$.get(e),a=o.$flags$,c=o.$lazyInstance$;var l,u;if(u=r.$members$[e][0],n=null==(l=n)||T(l)?l:4&u?"false"!==l&&(""===l||!!l):2&u?parseFloat(l):1&u?String(l):l,!(8&a&&void 0!==s||n===s)&&(o.$instanceValues$.set(e,n),c)){if(r.$watchers$&&128&a){const t=r.$watchers$[e];t&&t.map(t=>{try{c[t](n,s,e)}catch(r){xt(r,i)}})}2==(18&a)&&ot(o,!1)}})(0,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(o,t,{value(...e){const n=St(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[t](...e))}})}),1&n){const n=new Map;o.attributeChangedCallback=function(t,e,r){f.jmp(()=>{const e=n.get(t);this[e]=(null!==r||"boolean"!=typeof this[e])&&r})},t.observedAttributes=r.filter(([t,e])=>15&e[0]).map(([t,r])=>{const o=r[1]||t;return n.set(o,t),512&r[0]&&e.$attrsToReflect$.push([t,o]),o})}}return t},mt=t=>{dt(t,"connectedCallback")},vt=t=>{if(0==(1&f.$flags$)){const e=St(t),r=e.$cmpMeta$,o=()=>{};if(1&e.$flags$)v(t,e,r.$listeners$),mt(e.$lazyInstance$);else{let o;if(e.$flags$|=1,o=t.getAttribute("s-id"),o){if(g&&1&r.$flags$){const e=C(t.shadowRoot,r,t.getAttribute("s-mode"));t.classList.remove(e+"-h",e+"-s")}((t,e,n,r)=>{const o=t.shadowRoot,i=[],s=o?[]:null,a=r.$vnode$=A(e,null);f.$orgLocNodes$||gt(p.body,f.$orgLocNodes$=new Map),t["s-id"]=n,t.removeAttribute("s-id"),ft(a,i,[],s,t,t,n),i.map(t=>{const n=t.$hostId$+"."+t.$nodeId$,r=f.$orgLocNodes$.get(n),i=t.$elm$;r&&g&&""===r["s-en"]&&r.parentNode.insertBefore(i,r.nextSibling),o||(i["s-hn"]=e,r&&(i["s-ol"]=r,i["s-ol"]["s-nr"]=i)),f.$orgLocNodes$.delete(n)}),o&&s.map(t=>{t&&o.appendChild(t)})})(t,r.$tagName$,o,e)}o||12&r.$flags$&&yt(t);{let n=t;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){rt(e,e.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),$t(()=>(async(t,e,r,o,i)=>{if(0==(32&e.$flags$)){{if(e.$flags$|=32,(i=It(r)).then){const t=()=>{};i=await i,t()}i.isProxied||(r.$watchers$=i.watchers,bt(i,r,2),i.isProxied=!0);const t=()=>{};e.$flags$|=8;try{new i(e)}catch(c){xt(c)}e.$flags$&=-9,e.$flags$|=128,t(),mt(e.$lazyInstance$)}if(i.style){let o=i.style;"string"!=typeof o&&(o=o[e.$modeName$=(t=>kt.map(e=>e(t)).find(t=>!!t))(t)]);const s=j(r,e.$modeName$);if(!Tt.has(s)){const t=()=>{};8&r.$flags$&&(o=await n.e(94).then(n.bind(null,"6foE")).then(t=>t.scopeCss(o,s,!1))),E(s,o,!!(1&r.$flags$)),t()}}}const s=e.$ancestorComponent$,a=()=>ot(e,!0);s&&s["s-rc"]?s["s-rc"].push(a):a()})(t,e,r))}o()}},yt=t=>{const e=t["s-cr"]=p.createComment("");e["s-cn"]=!0,t.insertBefore(e,t.firstChild)},_t=(t,e={})=>{const n=[],r=e.exclude||[],o=d.customElements,i=p.head,s=i.querySelector("meta[charset]"),a=p.createElement("style"),c=[],l=p.querySelectorAll("[sty-id]");let u,h=!0,b=0;for(Object.assign(f,e),f.$resourcesUrl$=new URL(e.resourcesUrl||"./",p.baseURI).href,f.$flags$|=2;b<l.length;b++)E(l[b].getAttribute("sty-id"),l[b].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);t.map(t=>t[1].map(e=>{const i={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};i.$members$=e[2],i.$listeners$=e[3],i.$attrsToReflect$=[],i.$watchers$={},!g&&1&i.$flags$&&(i.$flags$|=8);const s=i.$tagName$,a=class extends HTMLElement{constructor(t){super(t),Ct(t=this,i),1&i.$flags$&&(g?t.attachShadow({mode:"open",delegatesFocus:!!(16&i.$flags$)}):"shadowRoot"in t||(t.shadowRoot=t))}connectedCallback(){u&&(clearTimeout(u),u=null),h?c.push(this):f.jmp(()=>vt(this))}disconnectedCallback(){f.jmp(()=>(t=>{if(0==(1&f.$flags$)){const e=St(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map(t=>t()),e.$rmListeners$=void 0),f.$cssShim$&&f.$cssShim$.removeHost(t),dt(n,"disconnectedCallback")}})(this))}componentOnReady(){return St(this).$onReadyPromise$}};i.$lazyBundleId$=t[0],r.includes(s)||o.get(s)||(n.push(s),o.define(s,bt(a,i,1)))}
1)),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),i.insertBefore(a,s?s.nextSibling:i.firstChild),h=!1,c.length?c.map(t=>t.connectedCallback()):f.jmp(()=>u=setTimeout(ut,30))},wt=t=>{const e=new URL(t,f.$resourcesUrl$);return e.origin!==d.location.origin?e.href:e.pathname},Ot=new WeakMap,St=t=>Ot.get(t),Et=(t,e)=>Ot.set(e.$lazyInstance$=t,e),Ct=(t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(t=>n.$onInstanceResolve$=t),n.$onReadyPromise$=new Promise(t=>n.$onReadyResolve$=t),t["s-p"]=[],t["s-rc"]=[],v(t,n,e.$listeners$),Ot.set(t,n)},jt=(t,e)=>e in t,xt=(t,e)=>(0,console.error)(t,e),Pt=new Map,It=(t,e,r)=>{const o=t.$tagName$.replace(/-/g,"_"),i=t.$lazyBundleId$,s=Pt.get(i);return s?s[o]:n("kLfG")(`./${i}.entry.js`).then(t=>(Pt.set(i,t),t[o]),xt)},Tt=new Map,kt=[],At=[],Dt=[],Rt=(t,e)=>n=>{t.push(n),u||(u=!0,e&&4&f.$flags$?$t(Nt):f.raf(Nt))},Mt=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(e){xt(e)}t.length=0},Nt=()=>{Mt(At),Mt(Dt),(u=At.length>0)&&f.raf(Nt)},$t=t=>b().then(t),Lt=Rt(At,!1),Vt=Rt(Dt,!0),Ft={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},AytR:function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));const r={production:!0,appId:"2001",apiUrl:"https://myapppresser.com/demos/",endpoint:"wp-json/ap4/apps/",wooAuth:"Og==",analytics:null};e.a=r},B4Mn:function(t,e,n){"use strict";var r=n("XNiG");n.d(e,"a",(function(){return r.a}))},BFxc:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),o=n("4I5i"),i=n("EY2u");function s(t){return function(e){return 0===t?Object(i.b)():e.lift(new a(t))}}class a{constructor(t){if(this.total=t,this.total<0)throw new o.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}_complete(){const t=this.destination;let e=this.count;if(e>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o<n;o++){const o=e++%n;t.next(r[o])}}t.complete()}}},Bfh1:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("C6fG"),i=n("HDdC"),s=n("fXoL"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.getCurrentPosition=function(t){return Object(o.cordova)(this,"getCurrentPosition",{callbackOrder:"reverse"},arguments)},e.prototype.watchPosition=function(t){return new i.a((function(e){var n=navigator.geolocation.watchPosition(e.next.bind(e),e.next.bind(e),t);return function(){return navigator.geolocation.clearWatch(n)}}))},e.pluginName="Geolocation",e.plugin="cordova-plugin-geolocation",e.pluginRef="navigator.geolocation",e.repo="https://github.com/apache/cordova-plugin-geolocation",e.install='ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"',e.installVariables=["GEOLOCATION_USAGE_DESCRIPTION"],e.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Rb(e);return e}(o.IonicNativePlugin)},C6fG:function(t,e,n){"use strict";var r=n("OE48"),o=n("EKAo");n.d(e,"IonicNativePlugin",(function(){return o.a}));var i=n("yR3O");n.d(e,"checkAvailability",(function(){return i.a})),n.d(e,"instanceAvailability",(function(){return i.d})),n.d(e,"getPromise",(function(){return i.c}));var s=n("QMYr");n.d(e,"cordova",(function(){return s.a})),n("aJZl");var a=n("gGGD");n.d(e,"cordovaInstance",(function(){return a.a}));var c=n("O2kO");n.d(e,"cordovaPropertyGet",(function(){return c.a})),n.d(e,"cordovaPropertySet",(function(){return c.b}));var l=n("HD7q");n.d(e,"instancePropertyGet",(function(){return l.a})),n.d(e,"instancePropertySet",(function(){return l.b})),n("uC2i"),Object(r.a)()},Cfvw:function(t,e,n){"use strict";var r=n("HDdC"),o=n("SeVD"),i=n("quSY"),s=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function d(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[s.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const o=t[s.a]();r.add(o.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(l.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[c.a](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=o.next();t=n.value,e=n.done}catch(r){return void n.error(r)}
1e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(o.a)(t))}n.d(e,"a",(function(){return d}))},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},DXD9:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=[]},Dm8P:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("gZlD"),i=n("wDu7"),s=n("A1Tq"),a=n("fXoL");let c=(()=>{class t{constructor(t,e,n){this.loginservice=t,this.appdataService=e,this.httpService=n,this.data=null,this._setWordpressUrl()}_setWordpressUrl(){this.appdataService.getAppdata().then(t=>this.wordpressUrl=t.wordpress_url).catch(t=>console.error(t))}login(t){return Object(r.a)(this,void 0,void 0,(function*(){if(!this.wordpressUrl)return{data:{message:"No WordPress URL set."}};const e=this.wordpressUrl+"wp-json/appp/v1/login",n=Object.assign({},{username:t.user,password:t.pass}),r=yield this.httpService.post(e,n);return console.log("wplogin result",r),void 0!==r.username&&(r.avatar&&(r.avatar=this.fixProtocolRelativeUrl(r.avatar)),this.loginservice.setLoginStatus(r)),r}))}validateToken(t){return Object(r.a)(this,void 0,void 0,(function*(){if(!this.wordpressUrl)return console.warn("no wordpress url set."),!1;let e={};if(!t||!t.access_token)return console.warn("no access token to validate."),!1;Object.assign(e,{Authorization:"Bearer "+t.access_token});const n=this.wordpressUrl+"wp-json/jwt-auth/v1/token/validate";let r;try{r=yield this.httpService.post(n,{},e)}catch(o){if(console.log(o),o&&o.code&&"jwt_auth_invalid_token"===o.code)return console.log("token invalid, returning false"),!1}return!!(r&&r.data&&r.data.status&&200===r.data.status)}))}fixProtocolRelativeUrl(t,e){return t?(e=e||"https",0===t.indexOf("//")?e+":"+t:t):""}logout(){return this.httpService.get(this.wordpressUrl+"wp-json/appp/v1/logout")}register(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=t;console.log(t);const n=this.wordpressUrl+"wp-json/appp/v1/register",r=yield this.httpService.post(n,e);return console.log(r),r}))}verifyUser(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.wordpressUrl+"wp-json/appp/v1/verify",n=t;return yield this.httpService.post(e,n)}))}resendCode(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.wordpressUrl+"wp-json/appp/v1/verify-resend",n=t;return yield this.httpService.post(e,n)}))}resetPassword(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.wordpressUrl+"wp-json/appp/v1/reset-password",n=t;return yield this.httpService.post(e,n)}))}iapRegisterLogIn(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.wordpressUrl+"wp-json/appp/v1/in-app-purchase";e.email&&(e.email=encodeURIComponent(e.email));const n=yield this.httpService.post(t,e);return void 0!==n.username&&this.loginservice.setLoginStatus(n),n}))}iapCreateUser(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.wordpressUrl+"wp-json/appp/v2/in-app-purchase-create-user";return e.email&&(e.email=encodeURIComponent(e.email)),yield this.httpService.post(t,e)}))}iapRegisterLogIn2(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.wordpressUrl+"wp-json/appp/v2/in-app-purchase-register",n=yield this.httpService.post(t,e);return void 0!==n.username&&this.loginservice.setLoginStatus(n),n}))}handleError(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Tb(o.a),a.Tb(i.a),a.Tb(s.a))},t.\u0275prov=a.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},EKAo:function(t,e,n){"use strict";var r=n("yR3O");n.d(e,"a",(function(){return o}));var o=function(){function t(){}return t.installed=function(){return!0===Object(r.a)(this.pluginRef)},t.getPlugin=function(){return"undefined"!=typeof window?function(t,e){for(var n=e.split("."),r=t,o=0;o<n.length;o++){if(!r)return null;r=r[n[o]]}return r}(window,this.pluginRef):null},t.getPluginName=function(){return this.pluginName},t.getPluginRef=function(){return this.pluginRef},t.getPluginInstallName=function(){return this.plugin}
1,t.getSupportedPlatforms=function(){return this.platforms},t.pluginName="",t.pluginRef="",t.plugin="",t.repo="",t.platforms=[],t.install="",t}()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n("HDdC");const o=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):o}},EbaP:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ofXK"),o=n("TEn/"),i=n("3Pt+"),s=n("sYmb"),a=n("iTUp"),c=n("msQ9"),l=n("fXoL");let u=(()=>{class t{}return t.\u0275mod=l.Kb({type:t}),t.\u0275inj=l.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.kb,i.e,s.c.forChild(),a.a,c.a]]}),t})()},FAH8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cordovaFileError={1:"NOT_FOUND_ERR",2:"SECURITY_ERR",3:"ABORT_ERR",4:"NOT_READABLE_ERR",5:"ENCODING_ERR",6:"NO_MODIFICATION_ALLOWED_ERR",7:"INVALID_STATE_ERR",8:"SYNTAX_ERR",9:"INVALID_MODIFICATION_ERR",10:"QUOTA_EXCEEDED_ERR",11:"TYPE_MISMATCH_ERR",12:"PATH_EXISTS_ERR",13:"WRONG_ENTRY_TYPE",14:"DIR_READ_ERR"},e}Object(r.c)(e,t),e.prototype.getFreeDiskSpace=function(){var t=this;return function(){if(!0===Object(o.checkAvailability)(t))return Object(o.getPromise)((function(t,e){cordova.exec(t,e,"File","getFreeDiskSpace",[])}))}()},e.prototype.checkDir=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(t+e).then((function(){return!0}))}}()},e.prototype.createDir=function(t,e,n){var r=this;return function(){if(!0===Object(o.checkAvailability)(r)){if(/^\//.test(e)){var i=new FileError(5);return i.message="directory cannot start with /",Promise.reject(i)}var s={create:!0};return n||(s.exclusive=!0),r.resolveDirectoryUrl(t).then((function(t){return r.getDirectory(t,e,s)}))}}()},e.prototype.removeDir=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(t).then((function(t){return n.getDirectory(t,e,{create:!1})})).then((function(t){return n.remove(t)}))}}()},e.prototype.moveDir=function(t,e,n,r){var i=this;return function(){if(!0===Object(o.checkAvailability)(i)){if(/^\//.test(r=r||e)){var s=new FileError(5);return s.message="directory cannot start with /",Promise.reject(s)}return i.resolveDirectoryUrl(t).then((function(t){return i.getDirectory(t,e,{create:!1})})).then((function(t){return i.resolveDirectoryUrl(n).then((function(e){return i.move(t,e,r)}))}))}}()},e.prototype.copyDir=function(t,e,n,r){var i=this;return function(){if(!0===Object(o.checkAvailability)(i)){if(/^\//.test(r)){var s=new FileError(5);return s.message="directory cannot start with /",Promise.reject(s)}return i.resolveDirectoryUrl(t).then((function(t){return i.getDirectory(t,e,{create:!1})})).then((function(t){return i.resolveDirectoryUrl(n).then((function(e){return i.copy(t,e,r)}))}))}}()},e.prototype.listDir=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(t).then((function(t){return n.getDirectory(t,e,{create:!1,exclusive:!1})})).then((function(t){var e=t.createReader();return n.readEntries(e)}))}}()},e.prototype.removeRecursively=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(t).then((function(t){return n.getDirectory(t,e,{create:!1})})).then((function(t){return n.rimraf(t)}))}}()},e.prototype.checkFile=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="file cannot start with /",Promise.reject(r)}return n.resolveLocalFilesystemUrl(t+e).then((function(t){if(t.isFile)return!0;var e=new FileError(13);return e.message="input is not a file",Promise.reject(e)}))}}()},e.prototype.createFile=function(t,e,n){var r=this;return function(){if(!0===Object(o.checkAvailability)(r)){if(/^\//.test(e)){var i=new FileError(5);return i.message="file-name cannot start with /",Promise.reject(i)}var s={create:!0};return n||(s.exclusive=!0),r.resolveDirectoryUrl(t).then((function(t){return r.getFile(t,e,s)}
1))}}()},e.prototype.removeFile=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n)){if(/^\//.test(e)){var r=new FileError(5);return r.message="file-name cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(t).then((function(t){return n.getFile(t,e,{create:!1})})).then((function(t){return n.remove(t)}))}}()},e.prototype.writeFile=function(t,e,n,r){var i=this;return void 0===r&&(r={}),function(){if(!0===Object(o.checkAvailability)(i)){if(/^\//.test(e)){var s=new FileError(5);return s.message="file-name cannot start with /",Promise.reject(s)}var a={create:!r.append,exclusive:!r.replace};return i.resolveDirectoryUrl(t).then((function(t){return i.getFile(t,e,a)})).then((function(t){return i.writeFileEntry(t,n,r)}))}}()},e.prototype.writeFileEntry=function(t,e,n){var r=this;return this.createWriter(t).then((function(t){return n.append&&t.seek(t.length),n.truncate&&t.truncate(n.truncate),r.write(t,e)})).then((function(){return t}))},e.prototype.writeExistingFile=function(t,e,n){var r=this;return function(){if(!0===Object(o.checkAvailability)(r))return r.writeFile(t,e,n,{replace:!0})}()},e.prototype.readAsText=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n))return n.readFile(t,e,"Text")}()},e.prototype.readAsDataURL=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n))return n.readFile(t,e,"DataURL")}()},e.prototype.readAsBinaryString=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n))return n.readFile(t,e,"BinaryString")}()},e.prototype.readAsArrayBuffer=function(t,e){var n=this;return function(){if(!0===Object(o.checkAvailability)(n))return n.readFile(t,e,"ArrayBuffer")}()},e.prototype.moveFile=function(t,e,n,r){var i=this;return function(){if(!0===Object(o.checkAvailability)(i)){if(/^\//.test(r=r||e)){var s=new FileError(5);return s.message="file name cannot start with /",Promise.reject(s)}return i.resolveDirectoryUrl(t).then((function(t){return i.getFile(t,e,{create:!1})})).then((function(t){return i.resolveDirectoryUrl(n).then((function(e){return i.move(t,e,r)}))}))}}()},e.prototype.copyFile=function(t,e,n,r){var i=this;return function(){if(!0===Object(o.checkAvailability)(i)){if(/^\//.test(r=r||e)){var s=new FileError(5);return s.message="file name cannot start with /",Promise.reject(s)}return i.resolveDirectoryUrl(t).then((function(t){return i.getFile(t,e,{create:!1})})).then((function(t){return i.resolveDirectoryUrl(n).then((function(e){return i.copy(t,e,r)}))}))}}()},e.prototype.fillErrorMessage=function(t){try{t.message=this.cordovaFileError[t.code]}catch(e){}},e.prototype.resolveLocalFilesystemUrl=function(t){var e=this;return function(){if(!0===Object(o.checkAvailability)(e))return Object(o.getPromise)((function(n,r){try{window.resolveLocalFileSystemURL(t,(function(t){n(t)}),(function(t){e.fillErrorMessage(t),r(t)}))}catch(o){e.fillErrorMessage(o),r(o)}}))}()},e.prototype.resolveDirectoryUrl=function(t){var e=this;return function(){if(!0===Object(o.checkAvailability)(e))return e.resolveLocalFilesystemUrl(t).then((function(t){if(t.isDirectory)return t;var e=new FileError(13);return e.message="input is not a directory",Promise.reject(e)}))}()},e.prototype.getDirectory=function(t,e,n){var r=this;return function(){if(!0===Object(o.checkAvailability)(r))return new Promise((function(o,i){try{t.getDirectory(e,n,(function(t){o(t)}),(function(t){r.fillErrorMessage(t),i(t)}))}catch(s){r.fillErrorMessage(s),i(s)}}))}()},e.prototype.getFile=function(t,e,n){var r=this;return function(){if(!0===Object(o.checkAvailability)(r))return new Promise((function(o,i){try{t.getFile(e,n,o,(function(t){r.fillErrorMessage(t),i(t)}))}catch(s){r.fillErrorMessage(s),i(s)}}))}()},e.prototype.readFile=function(t,e,n){var r=this;if(/^\//.test(e)){var i=new FileError(5);return i.message="file-name cannot start with /",Promise.reject(i)}return this.resolveDirectoryUrl(t).then((function(t){return r.getFile(t,e,{create:!1})})).then((function(t){var e=new FileReader;return Object(o.getPromise)((function(r,o){e.onloadend=function(){void 0!==e.result||null!==e.result?r(e.result):o(void 0!==e.error||null!==e.error?e.error:{code:null,message:"READER_ONLOADEND_ERR"})},t.file((function(t){e["readAs"+n].call(e,t)}),(function(t){o(t)}))}))}))},e.prototype.remove=function(t){var e=this;return new Promise((function(n,r){t.remove((function(){n({success:!0,fileRemoved:t})}),(function(t){e.fillErrorMessage(t),r(t)}))}
1))},e.prototype.move=function(t,e,n){var r=this;return new Promise((function(o,i){t.moveTo(e,n,(function(t){o(t)}),(function(t){r.fillErrorMessage(t),i(t)}))}))},e.prototype.copy=function(t,e,n){var r=this;return new Promise((function(o,i){t.copyTo(e,n,(function(t){o(t)}),(function(t){r.fillErrorMessage(t),i(t)}))}))},e.prototype.readEntries=function(t){var e=this;return new Promise((function(n,r){t.readEntries((function(t){n(t)}),(function(t){e.fillErrorMessage(t),r(t)}))}))},e.prototype.rimraf=function(t){var e=this;return new Promise((function(n,r){t.removeRecursively((function(){n({success:!0,fileRemoved:t})}),(function(t){e.fillErrorMessage(t),r(t)}))}))},e.prototype.createWriter=function(t){var e=this;return new Promise((function(n,r){t.createWriter((function(t){n(t)}),(function(t){e.fillErrorMessage(t),r(t)}))}))},e.prototype.write=function(t,e){return e instanceof Blob?this.writeFileInChunks(t,e):new Promise((function(n,r){t.onwriteend=function(e){t.error?r(t.error):n(e)},t.write(e)}))},e.prototype.writeFileInChunks=function(t,e){var n=0;function r(){var r=Math.min(1048576,e.size-n),o=e.slice(n,n+r);n+=r,t.write(o)}return Object(o.getPromise)((function(o,i){t.onerror=i,t.onwrite=function(){n<e.size?r():o()},r()}))},Object.defineProperty(e.prototype,"applicationDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"applicationDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"applicationDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"applicationStorageDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"applicationStorageDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"applicationStorageDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"dataDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"dataDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cacheDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"cacheDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"cacheDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"externalApplicationStorageDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"externalApplicationStorageDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"externalApplicationStorageDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"externalDataDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"externalDataDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"externalDataDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"externalCacheDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"externalCacheDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"externalCacheDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"externalRootDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"externalRootDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"externalRootDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tempDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"tempDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"tempDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"syncedDataDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"syncedDataDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"syncedDataDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentsDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"documentsDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"documentsDirectory",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sharedDirectory",{get:function(){return Object(o.cordovaPropertyGet)(this,"sharedDirectory")},set:function(t){Object(o.cordovaPropertySet)(this,"sharedDirectory",t)},enumerable:!0,configurable:!0}),e.pluginName="File",e.plugin="cordova-plugin-file",e.pluginRef="cordova.file",e.repo="https://github.com/apache/cordova-plugin-file",e.platforms=["Android","Browser","iOS","macOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("LRne"),o=n("0EUg");function i(...t){return Object(o.a)()(Object(r.a)(...t))}},HD7q:function(t,e,n){"use strict";function r(t,e){return t._objectInstance&&t._objectInstance[e]?t._objectInstance[e]:null}function o(t,e,n){t._objectInstance&&(t._objectInstance[e]=n)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}
1))},HDdC:function(t,e,n){"use strict";var r=n("7o/Q"),o=n("2QA8"),i=n("gRHU"),s=n("kJWO"),a=n("mCNh"),c=n("2fFW");n.d(e,"a",(function(){return l}));let l=(()=>{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:s}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(s?s.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:o}=t;if(e||o)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(o){n(o),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[s.a](){return this}pipe(...t){return 0===t.length?this:Object(a.b)(t)(this)}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";let r=(()=>{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})();n.d(e,"a",(function(){return o}));class o extends r{constructor(t,e=r.now){super(t,()=>o.delegate&&o.delegate!==this?o.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return o.delegate&&o.delegate!==this?o.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}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),o=n("4I5i"),i=n("EY2u");function s(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new o.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{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()))}}},JH8L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=[{path:"loading",loadChildren:()=>n.e(43).then(n.bind(null,"XRIH")).then(t=>t.LoadingPageModule)},{path:"login-modal",loadChildren:()=>Promise.resolve().then(n.bind(null,"6dXU")).then(t=>t.LoginModalPageModule)},{path:"bp-activity-list/user/:userId",loadChildren:()=>Promise.all([n.e(1),n.e(0),n.e(4)]).then(n.bind(null,"qjMo")).then(t=>t.BpActivityListPageModule)},{path:"bp-activity-list/:pageId",loadChildren:()=>Promise.all([n.e(1),n.e(0),n.e(4)]).then(n.bind(null,"qjMo")).then(t=>t.BpActivityListPageModule)},{path:"bp-group-activity-list/:groupId",loadChildren:()=>Promise.all([n.e(1),n.e(0),n.e(4)]).then(n.bind(null,"qjMo")).then(t=>t.BpActivityListPageModule)},{path:"bp-activity-details/:activityId",loadChildren:()=>Promise.all([n.e(1),n.e(40)]).then(n.bind(null,"nASz")).then(t=>t.BpActivityDetailsPageModule)},{path:"bp-member-list/:pageId",loadChildren:()=>n.e(20).then(n.bind(null,"SDJ0")).then(t=>t.BpMemberListPageModule)},{path:"bp-group-list/:pageId",loadChildren:()=>n.e(19).then(n.bind(null,"rLUq")).then(t=>t.BpGroupListPageModule)},{path:"bp-group-details/:groupId",loadChildren:()=>n.e(18).then(n.bind(null,"OIQL")).then(t=>
1t.BpGroupDetailsPageModule)},{path:"bp-message-list/:pageId",loadChildren:()=>Promise.all([n.e(3),n.e(41)]).then(n.bind(null,"7RRY")).then(t=>t.BpMessageListPageModule)},{path:"bp-message-details/:threadId",loadChildren:()=>Promise.all([n.e(0),n.e(24)]).then(n.bind(null,"sIUr")).then(t=>t.BpMessageDetailsPageModule)},{path:"bp-notifications",loadChildren:()=>n.e(6).then(n.bind(null,"5zIT")).then(t=>t.BpNotificationsPageModule)},{path:"bp-notifications/:route",loadChildren:()=>n.e(6).then(n.bind(null,"5zIT")).then(t=>t.BpNotificationsPageModule)},{path:"bp-profile",loadChildren:()=>Promise.all([n.e(3),n.e(0),n.e(8)]).then(n.bind(null,"4Us1")).then(t=>t.BpProfilePageModule)},{path:"bp-profile/:userId",loadChildren:()=>Promise.all([n.e(3),n.e(0),n.e(8)]).then(n.bind(null,"4Us1")).then(t=>t.BpProfilePageModule)},{path:"iframe/:pageId",loadChildren:()=>n.e(42).then(n.bind(null,"jK97")).then(t=>t.IframePageModule)},{path:"post-list/:pageId",loadChildren:()=>n.e(25).then(n.bind(null,"xkNw")).then(t=>t.PostListPageModule)},{path:"post-list/:pageId/:postId",loadChildren:()=>Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"/S6V")).then(t=>t.PostDetailsPageModule)},{path:"single-post/:postId",loadChildren:()=>Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"/S6V")).then(t=>t.PostDetailsPageModule)},{path:"media/:postId",loadChildren:()=>n.e(26).then(n.bind(null,"tgjC")).then(t=>t.SingleMediaPageModule)},{path:"woo-list/:pageId/:postId",loadChildren:()=>Promise.all([n.e(5),n.e(0),n.e(45)]).then(n.bind(null,"9OjB")).then(t=>t.WooDetailPageModule)},{path:"woo-list/:pageId",loadChildren:()=>Promise.all([n.e(0),n.e(22)]).then(n.bind(null,"4p1O")).then(t=>t.WooListPageModule)},{path:"media-list/:pageId",loadChildren:()=>Promise.all([n.e(0),n.e(44)]).then(n.bind(null,"F2Y5")).then(t=>t.MediaListPageModule)},{path:"app-blocks/:pageId",loadChildren:()=>Promise.all([n.e(0),n.e(23)]).then(n.bind(null,"ipVV")).then(t=>t.AppBlocksPageModule)}]},JHRn:function(t,e,n){"use strict";n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return it})),n.d(e,"d",(function(){return st})),n.d(e,"e",(function(){return at})),n.d(e,"f",(function(){return ct})),n.d(e,"g",(function(){return N})),n.d(e,"h",(function(){return m}));let r,o,i=0,s=!1;const a="undefined"!=typeof window?window:{},c=a.CSS,l=a.document||{head:{}},u={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,r)=>t.addEventListener(e,n,r),rel:(t,e,n,r)=>t.removeEventListener(e,n,r)},d=(()=>(l.head.attachShadow+"").indexOf("[native")>-1)(),h=t=>Promise.resolve(t),p=(()=>{try{return new CSSStyleSheet,!0}catch(t){}return!1})(),f={},g=new WeakMap,b=t=>g.get(t),m=(t,e)=>g.set(e.$lazyInstance$=t,e),v=(t,e)=>e in t,y=t=>console.error(t),_=new Map,w=new Map,O=[],S=[],E=[],C=(t,e)=>n=>{t.push(n),s||(s=!0,e&&4&u.$flags$?P(x):u.raf(x))},j=(t,e)=>{let n=0,r=0;for(;n<t.length&&(r=performance.now())<e;)try{t[n++](r)}catch(o){y(o)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},x=()=>{i++,(t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(e){y(e)}t.length=0})(O);const t=2==(6&u.$flags$)?performance.now()+10*Math.ceil(i*(1/22)):1/0;j(S,t),j(E,t),S.length>0&&(E.push(...S),S.length=0),(s=O.length+S.length+E.length>0)?u.raf(x):i=0},P=t=>h().then(t),I=C(O,!1),T=C(S,!0),k={},A=t=>"object"==(t=typeof t)||"function"===t,D=()=>c&&c.supports&&c.supports("color","var(--c)")?h():n.e(15).then(n.t.bind(null,"qVyR",7)).then(()=>(u.$cssShim$=a.__cssshim)?u.$cssShim$.i():0),R=new WeakMap,M=(t,e)=>"sc-"+t,N=(t,e,...n)=>{let r=null,o=!1,i=!1,s=[];const a=e=>{for(let n=0;n<e.length;n++)r=e[n],Array.isArray(r)?a(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof t&&!A(r))&&(r=String(r)),o&&i?s[s.length-1].$text$+=r:s.push(o?$(null,r):r),i=o)};if(a(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter(e=>t[e]).join(" "))}const c=$(t,null);return c.$attrs$=e,s.length>0&&(c.$children$=s),c},$=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null}),L={},V=(t,e,n,r,o,i)=>{if(n!==r){let c=v(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,o=U(n),i=U(r);e.remove(...o.filter(t=>t&&!i.includes(t))),e.add(...i.filter(t=>t&&!o.includes(t)))}else if("style"===e){for(const e in n)r&&null!=r[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in r)n&&r[e]===n[e]||(e.includes("-")?t.style.setProperty(e,r[e]):t.style[e]=r[e])}else if("ref"===e)r&&r(t);else if(c||"o"!==e[0]||"n"!==e[1]){const a=A(r);
1if((c||a&&null!==r)&&!o)try{if(t.tagName.includes("-"))t[e]=r;else{let o=null==r?"":r;"list"===e?c=!1:null!=n&&t[e]==o||(t[e]=o)}}catch(s){}null==r||!1===r?t.removeAttribute(e):(!c||4&i||o)&&!a&&t.setAttribute(e,r=!0===r?"":r)}else e="-"===e[2]?e.slice(3):v(a,l)?l.slice(2):l[2]+e.slice(3),n&&u.rel(t,e,n,!1),r&&u.ael(t,e,r,!1)}},F=/\s/,U=t=>t?t.split(F):[],B=(t,e,n,r)=>{const o=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,i=t&&t.$attrs$||k,s=e.$attrs$||k;for(r in i)r in s||V(o,r,i[r],void 0,n,e.$flags$);for(r in s)V(o,r,i[r],s[r],n,e.$flags$)},z=(t,e,n,o)=>{let i,s,a=e.$children$[n],c=0;if(null!==a.$text$)i=a.$elm$=l.createTextNode(a.$text$);else if(i=a.$elm$=l.createElement(a.$tag$),B(null,a,!1),null!=r&&i["s-si"]!==r&&i.classList.add(i["s-si"]=r),a.$children$)for(c=0;c<a.$children$.length;++c)s=z(t,a,c),s&&i.appendChild(s);return i},H=(t,e,n,r,i,s)=>{let a,c=t;for(c.shadowRoot&&c.tagName===o&&(c=c.shadowRoot);i<=s;++i)r[i]&&(a=z(null,n,i),a&&(r[i].$elm$=a,c.insertBefore(a,e)))},G=(t,e,n,r,o)=>{for(;e<=n;++e)(r=t[e])&&(o=r.$elm$,X(r),o.remove())},q=(t,e)=>t.$tag$===e.$tag$,W=(t,e)=>{const n=e.$elm$=t.$elm$,r=t.$children$,o=e.$children$,i=e.$text$;null===i?(B(t,e,!1),null!==r&&null!==o?((t,e,n,r)=>{let o,i=0,s=0,a=e.length-1,c=e[0],l=e[a],u=r.length-1,d=r[0],h=r[u];for(;i<=a&&s<=u;)null==c?c=e[++i]:null==l?l=e[--a]:null==d?d=r[++s]:null==h?h=r[--u]:q(c,d)?(W(c,d),c=e[++i],d=r[++s]):q(l,h)?(W(l,h),l=e[--a],h=r[--u]):q(c,h)?(W(c,h),t.insertBefore(c.$elm$,l.$elm$.nextSibling),c=e[++i],h=r[--u]):q(l,d)?(W(l,d),t.insertBefore(l.$elm$,c.$elm$),l=e[--a],d=r[++s]):(o=z(e&&e[s],n,s),d=r[++s],o&&c.$elm$.parentNode.insertBefore(o,c.$elm$));i>a?H(t,null==r[u+1]?null:r[u+1].$elm$,n,r,s,u):s>u&&G(e,i,a)})(n,r,e,o):null!==o?(null!==t.$text$&&(n.textContent=""),H(n,null,e,o,0,o.length-1)):null!==r&&G(r,0,r.length-1)):t.$text$!==i&&(n.data=i)},X=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.forEach(X)},K=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"].push(new Promise(e=>t.$onRenderResolve$=e))},Y=(t,e,n,r)=>{if(e.$flags$|=16,4&e.$flags$)return void(e.$flags$|=512);const o=e.$lazyInstance$,i=()=>Z(t,e,n,o,r);return K(e,e.$ancestorComponent$),r&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.forEach(([t,e])=>et(o,t,e)),e.$queuedListeners$=null)),nt(void 0,()=>T(i))},Z=(t,e,n,i,s)=>{const a=t["s-rc"];s&&((t,e,n)=>{const r=((t,e,n,r)=>{let o=M(e.$tagName$),i=w.get(o);if(t=11===t.nodeType?t:l,i)if("string"==typeof i){let n,s=R.get(t=t.head||t);if(s||R.set(t,s=new Set),!s.has(o)){if(u.$cssShim$){n=u.$cssShim$.createHostStyle(r,o,i,!!(10&e.$flags$));const t=n["s-sc"];t&&(o=t,s=null)}else n=l.createElement("style"),n.innerHTML=i;t.insertBefore(n,t.querySelector("link")),s&&s.add(o)}}else t.adoptedStyleSheets.includes(i)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,i]);return o})(d&&t.shadowRoot?t.shadowRoot:t.getRootNode(),e,0,t);10&e.$flags$&&(t["s-sc"]=r,t.classList.add(r+"-h"))})(t,n),((t,e,n,i)=>{o=t.tagName;const s=e.$vnode$||$(null,null),a=(c=i)&&c.$tag$===L?i:N(null,null,i);var c;a.$tag$=null,a.$flags$|=4,e.$vnode$=a,a.$elm$=s.$elm$=t.shadowRoot||t,r=t["s-sc"],W(s,a)})(t,e,0,Q(i)),u.$cssShim$&&u.$cssShim$.updateHost(t),e.$flags$&=-17,e.$flags$|=2,a&&(a.forEach(t=>t()),t["s-rc"]=void 0);{const r=t["s-p"],o=()=>J(t,e,n);0===r.length?o():(Promise.all(r).then(o),e.$flags$|=4,r.length=0)}},Q=(t,e)=>{try{t=t.render()}catch(n){y(n)}return t},J=(t,e,n)=>{const r=e.$lazyInstance$,o=e.$ancestorComponent$;64&e.$flags$||(e.$flags$|=64,rt(t),et(r,"componentDidLoad"),e.$onReadyResolve$(t),o||tt()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&P(()=>Y(t,e,n,!1)),e.$flags$&=-517},tt=t=>{rt(l.documentElement),u.$flags$|=2},et=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(r){y(r)}},nt=(t,e)=>t&&t.then?t.then(e):e(),rt=t=>t.classList.add("hydrated"),ot=(t,e,n)=>{if(e.$members$){const r=Object.entries(e.$members$),o=t.prototype;if(r.forEach(([t,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(o,t,{get(){return e=t,b(this).$instanceValues$.get(e);var e},set(n){((t,e,n,r)=>{const o=b(this),i=o.$hostElement$,s=o.$instanceValues$.get(e),a=o.$flags$,c=o.$lazyInstance$;var l,u;u=r.$members$[e][0],(n=null==(l=n)||A(l)?l:4&u?"false"!==l&&(""===l||!!l):2&u?parseFloat(l):1&u?String(l):l)===s||8&a&&void 0!==s||(o.$instanceValues$.set(e,n),c&&2==(18&a)&&Y(i,o,r,!1))})(0,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(o,t,{value(...e){const n=b(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[t](...e))}})}),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,r){u.jmp(()=>{const n=e.get(t);this[n]=(null!==r||"boolean"!=typeof this[n])&&r})},t.observedAttributes=r.filter(([t,e])=>15&e[0]).map(([t,n])=>{const r=n[1]||t;return e.set(r,t),r})}}return t},it=(t,e={})=>{const r=[],o=e.exclude||[],i=a.customElements,s=l.head,c=s.querySelector("meta[charset]"),h=l.createElement("style"),f=[];let m,v=!0;Object.assign(u,e),u.$resourcesUrl$=new URL(e.resourcesUrl||"./",l.baseURI).href,e.syncQueue&&(u.$flags$|=4),t.forEach(t=>
1t[1].forEach(e=>{const s={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};s.$members$=e[2],s.$listeners$=e[3],!d&&1&s.$flags$&&(s.$flags$|=8);const a=s.$tagName$,c=class extends HTMLElement{constructor(t){super(t),(t=>{const e={$flags$:0,$hostElement$:t,$instanceValues$:new Map};e.$onInstancePromise$=new Promise(t=>e.$onInstanceResolve$=t),e.$onReadyPromise$=new Promise(t=>e.$onReadyResolve$=t),t["s-p"]=[],t["s-rc"]=[],g.set(t,e)})(t=this),1&s.$flags$&&(d?t.attachShadow({mode:"open"}):"shadowRoot"in t||(t.shadowRoot=t))}connectedCallback(){m&&(clearTimeout(m),m=null),v?f.push(this):u.jmp(()=>((t,e)=>{if(0==(1&u.$flags$)){const r=()=>{},o=b(t);if(e.$listeners$&&(o.$rmListeners$=((t,e,n)=>{e.$queuedListeners$=e.$queuedListeners$||[];const r=n.map(([n,r,o])=>{const i=((t,e)=>32&e?l.body:t)(t,n),s=((t,e)=>n=>{256&t.$flags$?t.$lazyInstance$[e](n):t.$queuedListeners$.push([e,n])})(e,o),a=(t=>0!=(2&t))(n);return u.ael(i,r,s,a),()=>u.rel(i,r,s,a)});return()=>r.forEach(t=>t())})(t,o,e.$listeners$)),!(1&o.$flags$)){o.$flags$|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){K(o,o.$ancestorComponent$=e);break}}e.$members$&&Object.entries(e.$members$).forEach(([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}}),P(()=>(async(t,e,r,o,i)=>{if(0==(32&e.$flags$)){e.$flags$|=32;{if((i=((t,e,r)=>{const o=t.$tagName$.replace(/-/g,"_"),i=t.$lazyBundleIds$,s=_.get(i);return s?s[o]:n("KwcL")(`./${i}.entry.js`).then(t=>(_.set(i,t),t[o]),y)})(r)).then){const t=()=>{};i=await i,t()}i.isProxied||(ot(i,r,2),i.isProxied=!0);const t=()=>{};e.$flags$|=8;try{new i(e)}catch(c){y(c)}e.$flags$&=-9,t()}const t=M(r.$tagName$);if(!w.has(t)&&i.style){const e=()=>{};let o=i.style;8&r.$flags$&&(o=await n.e(105).then(n.bind(null,"GvPW")).then(e=>e.scopeCss(o,t,!1))),((t,e,n)=>{let r=w.get(t);p&&n?(r=r||new CSSStyleSheet,r.replace(e)):r=e,w.set(t,r)})(t,o,!!(1&r.$flags$)),e()}}const s=e.$ancestorComponent$,a=()=>Y(t,e,r,!0);s&&s["s-rc"]?s["s-rc"].push(a):a()})(t,o,e))}r()}})(this,s))}disconnectedCallback(){u.jmp(()=>(t=>{if(0==(1&u.$flags$)){const e=b(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$(),e.$rmListeners$=void 0),u.$cssShim$&&u.$cssShim$.removeHost(t),et(n,"componentDidUnload")}})(this))}forceUpdate(){((t,e)=>{{const n=b(t);n.$hostElement$.isConnected&&2==(18&n.$flags$)&&Y(t,n,e,!1)}})(this,s)}componentOnReady(){return b(this).$onReadyPromise$}};s.$lazyBundleIds$=t[0],o.includes(a)||i.get(a)||(r.push(a),i.define(a,ot(c,s,1)))})),h.innerHTML=r+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),s.insertBefore(h,c?c.nextSibling:s.firstChild),v=!1,f.length>0?f.forEach(t=>t.connectedCallback()):u.jmp(()=>m=setTimeout(tt,30))},st=(t,e,n)=>{const r=ct(t);return{emit:t=>
1{const o=new CustomEvent(e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t});return r.dispatchEvent(o),o}}},at=(t,e)=>e in f?f[e]:"window"===e?a:"document"===e?l:"isServer"!==e&&"isPrerender"!==e&&("isClient"===e||("resourcesUrl"===e||"publicPath"===e?(t=>{const e=new URL(".",u.$resourcesUrl$);return e.origin!==a.location.origin?e.href:e.pathname})():"queue"===e?{write:T,read:I,tick:{then:t=>P(t)}}:void 0)),ct=t=>b(t).$hostElement$},Kqap:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q");function o(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(t,e,n))}}class i{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))}}class s extends r.a{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,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(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},KwcL:function(t,e,n){var r={"./pwa-action-sheet.entry.js":["jDxf",100],"./pwa-camera-modal-instance.entry.js":["37vE",101],"./pwa-camera-modal.entry.js":["cJxf",102],"./pwa-camera.entry.js":["eGHz",103],"./pwa-toast.entry.js":["fHjd",104]};function o(t){if(!n.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return n.e(e[1]).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="KwcL",t.exports=o},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("z+Ro"),o=n("yCtX"),i=n("jZKg");function s(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(o.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return o}));const o=r()},LuFN:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n("mrSG"),o=n("A1Tq"),i=n("AytR"),s=n("xS7M"),a=n("qjYk"),c=n("gZlD"),l=n("fXoL"),u=n("e8h1");let d=(()=>{class t{constructor(t,e,n,r,o){this.httpService=t,this.loginService=e,this.storage=n,this.errorlogs=r,this.Device=o}setApiInfo(){this.platform=this.Device.platform,this.apiRoot=i.a.apiUrl,this.appid=i.a.appId}subscribeDevice(t){return Object(r.a)(this,void 0,void 0,(function*(){this.setApiInfo();let e=this.apiRoot+"wp-json/ap3/v1/subscribe/",n="?token="+t+"&platform="+this.platform+"&id="+this.appid;return this.errorlogs.addLog("subscribeDevice "+e+n,"push"),this.httpService.post(e+n,{})}))}sendDeviceToWp(t,e){return Object(r.a)(this,void 0,void 0,(function*(){let n="?action=ap3_add_device_id&endpoint="+t;const r=yield this.loginService.getLoginData();return r&&(n+="&appp=3&token="+r.access_token),this.httpService.post(e+n,{})}))}subscribeToTopic(t,e){return this.setApiInfo(),this.httpService.post(this.apiRoot+"wp-json/ap3/v1/subscribe/?token="+t+"&platform="+this.platform+"&id="+this.appid+"&topicarn="+e,{})}unsubscribe(t){return this.setApiInfo(),this.httpService.post(this.apiRoot+"wp-json/ap3/v1/unsubscribe/?subscriptionArn="+t,{})}}return t.\u0275fac=function(e){return new(e||t)(l.Tb(o.a),l.Tb(c.a),l.Tb(u.b),l.Tb(a.a),l.Tb(s.a))},t.\u0275prov=l.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return r}))},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),o=n("Cfvw"),i=n("EY2u");function s(t){return new r.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(o.a)(n):Object(i.b)()).subscribe(e)})}},O2kO:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n("yR3O");function o(t,e){return!0===Object(r.a)(t,e)?Object(r.b)(t.constructor.getPluginRef())[e]:null}function i(t,e,n){!0===Object(r.a)(t,e)&&(Object(r.b)(t.constructor.getPluginRef())[e]=n)}},OE48:function(t,e,n){"use strict";function r(){if("undefined"==typeof process){var t="undefined"!=typeof window?window:{},e=Date.now(),n=!1;t.document.addEventListener("deviceready",(function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-e)+" ms"),n=!0})),setTimeout((function(){!n&&t.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")}),5e3)}}n.d(e,"a",(function(){return r}))},OMvp:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}
1)),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return a})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return b})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return s}));const r=(t,e,n,r)=>{if("undefined"!=typeof window){const o=window,i=o&&o.Ionic&&o.Ionic.config;if(i){const o=i.get("_ael");if(o)return o(t,e,n,r);if(i._ael)return i._ael(t,e,n,r)}}return t.addEventListener(e,n,r)},o=(t,e,n,r)=>{if("undefined"!=typeof window){const o=window,i=o&&o.Ionic&&o.Ionic.config;if(i){const o=i.get("_rel");if(o)return o(t,e,n,r);if(i._rel)return i._rel(t,e,n,r)}}return t.removeEventListener(e,n,r)},i=(t,e=t)=>t.shadowRoot||e,s=t=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t),a=t=>!!t.shadowRoot&&!!t.attachShadow,c=t=>{const e=t.closest("ion-item");return e?e.querySelector("ion-label"):null},l=(t,e,n,r,o)=>{if(t||a(e)){let t=e.querySelector("input.aux-input");t||(t=e.ownerDocument.createElement("input"),t.type="hidden",t.classList.add("aux-input"),e.appendChild(t)),t.disabled=o,t.name=n,t.value=r||""}},u=(t,e,n)=>Math.max(t,Math.min(e,n)),d=(t,e)=>{if(!t){const t="ASSERT: "+e;throw console.error(t),new Error(t)}},h=t=>t.timeStamp||Date.now(),p=t=>{if(t){const e=t.changedTouches;if(e&&e.length>0){const t=e[0];return{x:t.clientX,y:t.clientY}}if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY}}return{x:0,y:0}},f=t=>{const e="rtl"===document.dir;switch(t){case"start":return e;case"end":return!e;default:throw new Error(`"${t}" is not a valid value for [side]. Use "start" or "end" instead.`)}},g=(t,e)=>{const n=t._original||t;return{_original:t,emit:b(n.emit.bind(n),e)}},b=(t,e=0)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(t,e,...r)}}},PFXn:function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return S})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return P})),n.d(e,"i",(function(){return a})),n.d(e,"j",(function(){return T})),n.d(e,"k",(function(){return d})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return A})),n.d(e,"o",(function(){return g}));var r=n("Zgba"),o=n("OMvp"),i=n("8RMS");let s=0;const a=new WeakMap,c=t=>({create:e=>m(t,e),dismiss:(e,n,r)=>w(document,e,n,t,r),getTop:async()=>O(document,t)}),l=c("ion-alert"),u=c("ion-action-sheet"),d=c("ion-loading"),h=c("ion-modal"),p=c("ion-picker"),f=c("ion-popover"),g=c("ion-toast"),b=t=>{"undefined"!=typeof document&&_(document);const e=s++;t.overlayIndex=e,t.hasAttribute("id")||(t.id=`ion-overlay-${e}`)},m=(t,e)=>"undefined"!=typeof customElements?customElements.whenDefined(t).then(()=>{const n=document.createElement(t);return n.classList.add("overlay-hidden"),Object.assign(n,e),j(document).appendChild(n),n.componentOnReady()}):Promise.resolve(),v='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',y="input:not([type=hidden]), textarea, button, select",_=t=>{0===s&&(s=1,t.addEventListener("focus",e=>((t,e)=>{const n=O(e),r=t.target;if(n&&r)if(n===r)n.lastFocus=void 0;else{const t=Object(o.g)(n);if(!t.contains(r))return;const i=t.querySelector(".ion-overlay-wrapper");if(!i)return;if(i.contains(r))n.lastFocus=r;else{const t=n.lastFocus;((t,e)=>{let n=t.querySelector(v);const r=n&&n.shadowRoot;r&&(n=r.querySelector(y)||n),n?n.focus():e.focus()})(i,n),t===e.activeElement&&((t,e)=>{const n=Array.from(t.querySelectorAll(v));let r=n.length>0?n[n.length-1]:null;const o=r&&r.shadowRoot;o&&(r=o.querySelector(y)||r),r?r.focus():e.focus()})(i,n),n.lastFocus=e.activeElement}}})(e,t),!0),t.addEventListener("ionBackButton",e=>{const n=O(t);n&&n.backdropDismiss&&e.detail.register(i.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,D))}),t.addEventListener("keyup",e=>{if("Escape"===e.key){const e=O(t);e&&e.backdropDismiss&&e.dismiss(void 0,D)}}))},w=(t,e,n,r,o)=>{const i=O(t,r,o);return i?i.dismiss(e,n):Promise.reject("overlay does not exist")},O=(t,e,n)=>{const r=((t,e)=>(void 0===e&&(e="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(t.querySelectorAll(e)).filter(t=>t.overlayIndex>0)))(t,e);return void 0===n?r[r.length-1]:r.find(t=>
1t.id===n)},S=async(t,e,n,o,i)=>{if(t.presented)return;t.presented=!0,t.willPresent.emit();const s=Object(r.b)(t),a=t.enterAnimation?t.enterAnimation:r.c.get(e,"ios"===s?n:o);await x(t,a,t.el,i)&&t.didPresent.emit(),"ION-TOAST"!==t.el.tagName&&E(t.el),t.keyboardClose&&t.el.focus()},E=async t=>{let e=document.activeElement;if(!e)return;const n=e&&e.shadowRoot;n&&(e=n.querySelector(y)||e),await t.onDidDismiss(),e.focus()},C=async(t,e,n,o,i,s,c)=>{if(!t.presented)return!1;t.presented=!1;try{t.el.style.setProperty("pointer-events","none"),t.willDismiss.emit({data:e,role:n});const l=Object(r.b)(t),u=t.leaveAnimation?t.leaveAnimation:r.c.get(o,"ios"===l?i:s);"gesture"!==n&&await x(t,u,t.el,c),t.didDismiss.emit({data:e,role:n}),a.delete(t)}catch(l){console.error(l)}return t.el.remove(),!0},j=t=>t.querySelector("ion-app")||t.body,x=async(t,e,n,o)=>{n.classList.remove("overlay-hidden");const i=e(n.shadowRoot||t.el,o);t.animated&&r.c.getBoolean("animated",!0)||i.duration(0),t.keyboardClose&&i.beforeAddWrite(()=>{const t=n.ownerDocument.activeElement;t&&t.matches("input, ion-input, ion-textarea")&&t.blur()});const s=a.get(t)||[];return a.set(t,[...s,i]),await i.play(),!0},P=(t,e)=>{let n;const r=new Promise(t=>n=t);return I(t,e,t=>{n(t.detail)}),r},I=(t,e,n)=>{const r=i=>{Object(o.b)(t,e,r),n(i)};Object(o.a)(t,e,r)},T=t=>"cancel"===t||t===D,k=t=>t(),A=(t,e)=>{if("function"==typeof t)return r.c.get("_zoneGate",k)(()=>{try{return t(e)}catch(n){console.error(n)}})},D="backdrop"},PLH8:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.hideFormAccessoryBar=function(t){return Object(o.cordova)(this,"hideFormAccessoryBar",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.hide=function(){return Object(o.cordova)(this,"hide",{sync:!0,platforms:["iOS","Android"]},arguments)},e.prototype.show=function(){return Object(o.cordova)(this,"show",{sync:!0,platforms:["Android"]},arguments)},e.prototype.setResizeMode=function(t){return Object(o.cordova)(this,"setResizeMode",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.setKeyboardStyle=function(t){return Object(o.cordova)(this,"setKeyboardStyle",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.disableScroll=function(t){return Object(o.cordova)(this,"disableScroll",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.onKeyboardShow=function(){return Object(o.cordova)(this,"onKeyboardShow",{eventObservable:!0,event:"native.keyboardshow",platforms:["iOS","Android"]},arguments)},e.prototype.onKeyboardWillShow=function(){return Object(o.cordova)(this,"onKeyboardWillShow",{eventObservable:!0,event:"keyboardWillShow",platforms:["iOS","Android"]},arguments)},e.prototype.onKeyboardDidShow=function(){return Object(o.cordova)(this,"onKeyboardDidShow",{eventObservable:!0,event:"keyboardDidShow",platforms:["iOS","Android"]},arguments)},e.prototype.onKeyboardHide=function(){return Object(o.cordova)(this,"onKeyboardHide",{eventObservable:!0,event:"native.keyboardhide",platforms:["iOS","Android"]},arguments)},e.prototype.onKeyboardWillHide=function(){return Object(o.cordova)(this,"onKeyboardWillHide",{eventObservable:!0,event:"keyboardWillHide",platforms:["iOS","Android"]},arguments)},e.prototype.onKeyboardDidHide=function(){return Object(o.cordova)(this,"onKeyboardDidHide",{eventObservable:!0,event:"keyboardDidHide",platforms:["iOS","Android"]},arguments)},Object.defineProperty(e.prototype,"isVisible",{get:function(){return Object(o.cordovaPropertyGet)(this,"isVisible")},set:function(t){Object(o.cordovaPropertySet)(this,"isVisible",t)},enumerable:!0,configurable:!0}),e.pluginName="Keyboard",e.plugin="cordova-plugin-ionic-keyboard",e.pluginRef="window.Keyboard",e.repo="https://github.com/ionic-team/cordova-plugin-ionic-keyboard",e.platforms=["Android","iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},QMYr:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("yR3O");function o(t,e,n,o){return Object(r.e)(t,e,n).apply(this,o)}},RU0F:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.playVideo=function(t,e){return Object(o.cordova)(this,"playVideo",{sync:!0},arguments)},e.prototype.playAudio=function(t,e){return Object(o.cordova)(this,"playAudio",{sync:!0},arguments)},e.prototype.stopAudio=function(){return Object(o.cordova)(this,"stopAudio",{sync:!0},arguments)},e.prototype.pauseAudio=function(){return Object(o.cordova)(this,"pauseAudio",{sync:!0,platforms:["iOS"]},arguments)},e.prototype.resumeAudio=function(){return Object(o.cordova)(this,"resumeAudio",{sync:!0,platforms:["iOS"]},arguments)},e.pluginName="StreamingMedia",e.plugin="cordova-plugin-streaming-media",e.pluginRef="plugins.streamingMedia",e.repo="https://github.com/nchutchind/cordova-plugin-streaming-media",e.platforms=["Amazon Fire OS","Android","iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},"S1+K":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ofXK"),o=n("TEn/"),i=n("3Pt+"),s=n("sYmb"),a=n("iTUp"),c=n("fXoL");let l=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.kb,i.e,s.c.forChild(),a.a]]}),t})()},SduN:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n("mrSG"),o=n("B4Mn"),i=n("RU0F"),s=n("FAH8"),a=n("xS7M"),c=n("9YJ4"),l=n("wDu7"),u=n("xJoM"),d=n("fXoL"),h=n("TEn/"),p=n("e8h1");let f=(()=>{class t{constructor(t,e,n,r,i,s,a,c){this.streamingMedia=t,this.file=e,this.device=n,this.media=r,this.loadingCtrl=i,this.appdataService=s,this.storage=a,this.fileService=c,this.title="",this.currentIndex=0,this.playlist=null,this.duration=null,this.showPlayer=new o.a,this.expandCollapse=new o.a,this.playerProgress=new o.a,this.playSuccess=new o.a,this.playedArr=new o.a}maybeShowPlayer(){return this.showPlayer}expandCollapseEvent(){return this.expandCollapse}audioPlayerProgress(){return this.playerProgress}start(t,e){if(e&&(t.has_playlist=!0,this.playlist=e,this.currentIndex=this.playlist.findIndex(e=>e.source===t.source)),!t.source){if(!t.url)return void alert("Error: no media source.");t.source=t.url}this.getSource(t).then(e=>{t.source=e,this.playMedia(t)}).catch(t=>{console.warn(t),alert("Unable to play file.")})}playMedia(t){if(this.device&&"string"==typeof this.device.platform){if(this.cleanup(),t.type=this.getMimeType(t.source),t.type.indexOf("audio")>=0)this.showPlayer.next(t),this.currentTrack=this.media.create(t.source),this.currentTrack.onSuccess.subscribe(()=>{console.log("Play is successful"),this.playSuccess.next(!0)}),this.currentTrack.play(),this.doProgress();else{let e={successCallback:()=>{console.log("Video success")},errorCallback:t=>{console.log("Error streaming")},shouldAutoClose:!0,controls:!0};this.showPlayer.next(null),this.streamingMedia.playVideo(t.source,e)}this.markPlayed(t)}else alert("Please try from a device.")}markPlayed(t){return Object(r.a)(this,void 0,void 0,(function*(){let e=yield this.appdataService.getAppdata(),n=yield this.storage.get(e.id+"_single_media_played");n?n.includes(t.id)||n.push(t.id):n=[t.id],this.storage.set(e.id+"_single_media_played",n),this.playedArr.next(n)}))}playedItems(){return this.playedArr}toggleSpeed(t){this.currentTrack.setRate(t)}getDur(){return new Promise(t=>{this.durationInterval=setInterval(()=>{var e=this.currentTrack.getDuration();e>0&&(clearInterval(this.durationInterval),this.duration=e,t(e))},100)})}doProgress(){this.getDur().then(t=>{var e=t;this.progress=setInterval(()=>{this.currentTrack.getCurrentPosition().then(t=>{if(t>-1){let n=parseInt(t)/parseInt(e);n=Math.floor(100*n),this.playerProgress.next({duration:e,position:t,percent:n})}}).catch(t=>{console.log("Error getting pos="+t)})},1e3)})}pause(){this.currentTrack&&this.currentTrack.pause()}stop(){this.currentTrack&&this.currentTrack.stop()}play(){this.currentTrack&&this.currentTrack.play()}playerFinished(){return this.playSuccess}seek(t){this.currentTrack&&this.duration&&this.currentTrack.seekTo(t/100*(1e3*this.duration))}
1getSource(t){return new Promise((e,n)=>{if(t.type=this.getMimeType(t.source),t.source.indexOf("http")>=0)e(t.source);else if(t.type.indexOf("audio")>=0){let r;r=t.source.indexOf("file://")>=0?t.source:this.file.applicationDirectory+"www/"+t.source,this.file.resolveLocalFilesystemUrl(r).then(t=>{e(t.toInternalURL())}).catch(t=>{console.error(t),n(t)})}else t.type.indexOf("video")>=0&&t.source.indexOf("file://")<0?"android"===this.device.platform.toLowerCase()?(this.presentLoader(),this.maybeCopyFile(t).then(t=>{e(t)}).catch(t=>{console.warn("maybe copy file error",t),n(t)}).then(()=>{this.dismissLoader()})):e(this.file.applicationDirectory+"www/"+t.source):e(t.source)})}presentLoader(){return Object(r.a)(this,void 0,void 0,(function*(){this.loader=yield this.loadingCtrl.create(),yield this.loader.present()}))}dismissLoader(){this.loader&&this.loader.dismiss()}playNext(){this.playlist&&(this.currentIndex&&0!==this.currentIndex?this.currentIndex++:this.currentIndex=1,this.currentIndex>=this.playlist.length&&(this.currentIndex=0),this.playlist[this.currentIndex].has_playlist=!0,this.playMedia(this.playlist[this.currentIndex]))}playPrevious(){this.playlist&&(this.currentIndex&&0!==this.currentIndex?this.currentIndex--:this.currentIndex=1,this.currentIndex<=-1||(this.playlist[this.currentIndex].has_playlist=!0,this.playMedia(this.playlist[this.currentIndex])))}getMimeType(t){if(!t)return"";let e="";switch(t.split(".").pop()){case"mp3":e="audio/mp3";break;case"mp4":e="video/mp4";break;case"mov":e="video/quicktime";break;case"m4a":e="audio/mp4a-latm";break;default:e=""}return e}maybeCopyFile(t){return new Promise((e,n)=>{this.file.resolveLocalFilesystemUrl(this.file.applicationDirectory+"www/"+t.source).then(t=>{let r=t.toInternalURL();const o=this.fileService.getDirectoryPath();this.file.resolveLocalFilesystemUrl(o).then(t=>{let o=t.toInternalURL(),i=r.split("/").pop();this.file.copyFile(this.file.applicationDirectory+"www/assets/",i,o,i).then(t=>{let n=t.toURL();e(n)}).catch(t=>{console.log("error copyFile: ",t),n(t)})}).catch(t=>{console.log("error this.file.resolveLocalFilesystemUrl (save folder): ",t),n(t)})}).catch(t=>{console.log("error this.file.resolveLocalFilesystemUrl (target): ",t),n(t)})})}cleanup(){this.currentTrack&&(this.currentTrack.stop(),this.currentTrack.release(),this.duration=null,this.expandCollapse.next(!1)),clearInterval(this.progress),clearInterval(this.durationInterval)}}return t.\u0275fac=function(e){return new(e||t)(d.Tb(i.a),d.Tb(s.a),d.Tb(a.a),d.Tb(c.a),d.Tb(h.mb),d.Tb(l.a),d.Tb(p.b),d.Tb(u.a))},t.\u0275prov=d.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},SeVD:function(t,e,n){"use strict";var r=n("ngJS"),o=n("NJ4a"),i=n("Lhse"),s=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");n.d(e,"a",(function(){return u}));const u=t=>{if(t&&"function"==typeof t[s.a])return u=t,t=>{const e=u[s.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}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=Object(l.a)(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,u}},SltN:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ofXK"),o=n("TEn/"),i=n("3Pt+"),s=n("sYmb"),a=n("iTUp"),c=n("fXoL");let l=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.kb,i.e,s.c.forChild(),a.a]]}),t})()},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},"TEn/":function(t,e,n){"use strict";var r=n("mrSG"),o=n("fXoL"),i=n("3Pt+"),s=n("ofXK"),a=n("tyNb"),c=n("A36C"),l=n("Zgba"),u=(n("OMvp"),n("btv9"),n("fYWy")),d=(n("k9ne"),n("6pL8"),n("bC4P"),n("y08P"),n("iWo5"),n("39oe"),n("8RMS"),n("jJkw")),h=n("PFXn"),p=n("XNiG"),f=n("xgIS"),g=n("2Vo4"),b=n("pLZG"),m=n("eIep"),v=n("7o/Q");class y{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new _(t,this.compare,this.keySelector))}}class _ extends v.a{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(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;
1n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}const w=l.a;n.d(e,"a",(function(){return Se})),n.d(e,"b",(function(){return Ee})),n.d(e,"c",(function(){return D})),n.d(e,"d",(function(){return Qt})),n.d(e,"e",(function(){return Z})),n.d(e,"f",(function(){return Q})),n.d(e,"g",(function(){return J})),n.d(e,"h",(function(){return we})),n.d(e,"i",(function(){return tt})),n.d(e,"j",(function(){return et})),n.d(e,"k",(function(){return nt})),n.d(e,"l",(function(){return rt})),n.d(e,"m",(function(){return ot})),n.d(e,"n",(function(){return it})),n.d(e,"o",(function(){return st})),n.d(e,"p",(function(){return at})),n.d(e,"q",(function(){return ct})),n.d(e,"r",(function(){return lt})),n.d(e,"s",(function(){return ut})),n.d(e,"t",(function(){return dt})),n.d(e,"u",(function(){return ht})),n.d(e,"v",(function(){return pt})),n.d(e,"w",(function(){return ft})),n.d(e,"x",(function(){return gt})),n.d(e,"y",(function(){return bt})),n.d(e,"z",(function(){return mt})),n.d(e,"A",(function(){return vt})),n.d(e,"B",(function(){return yt})),n.d(e,"C",(function(){return _t})),n.d(e,"D",(function(){return wt})),n.d(e,"E",(function(){return Ot})),n.d(e,"F",(function(){return St})),n.d(e,"G",(function(){return Et})),n.d(e,"H",(function(){return Ct})),n.d(e,"I",(function(){return jt})),n.d(e,"J",(function(){return xt})),n.d(e,"K",(function(){return Pt})),n.d(e,"L",(function(){return It})),n.d(e,"M",(function(){return Tt})),n.d(e,"N",(function(){return kt})),n.d(e,"O",(function(){return At})),n.d(e,"P",(function(){return Dt})),n.d(e,"Q",(function(){return ve})),n.d(e,"R",(function(){return Rt})),n.d(e,"S",(function(){return Mt})),n.d(e,"T",(function(){return Nt})),n.d(e,"U",(function(){return $t})),n.d(e,"V",(function(){return Lt})),n.d(e,"W",(function(){return Vt})),n.d(e,"X",(function(){return Ft})),n.d(e,"Y",(function(){return Ut})),n.d(e,"Z",(function(){return Bt})),n.d(e,"ab",(function(){return zt})),n.d(e,"bb",(function(){return Ht})),n.d(e,"cb",(function(){return Gt})),n.d(e,"db",(function(){return qt})),n.d(e,"eb",(function(){return _e})),n.d(e,"fb",(function(){return Wt})),n.d(e,"gb",(function(){return Xt})),n.d(e,"hb",(function(){return Kt})),n.d(e,"ib",(function(){return Yt})),n.d(e,"jb",(function(){return Zt})),n.d(e,"kb",(function(){return Re})),n.d(e,"lb",(function(){return Te})),n.d(e,"mb",(function(){return Ce})),n.d(e,"nb",(function(){return je})),n.d(e,"ob",(function(){return xe})),n.d(e,"pb",(function(){return z})),n.d(e,"qb",(function(){return ee})),n.d(e,"rb",(function(){return F})),n.d(e,"sb",(function(){return Pe})),n.d(e,"tb",(function(){return M})),n.d(e,"ub",(function(){return $})),n.d(e,"vb",(function(){return V})),n.d(e,"wb",(function(){return Ie}));const O=["*"],S=["outlet"],E=[[["","slot","top"]],"*"],C=["[slot=top]","*"],j=t=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(t):"function"==typeof requestAnimationFrame?requestAnimationFrame(t):setTimeout(t);let x=(()=>{class t{constructor(t,e){this.injector=t,this.el=e,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){this.el.nativeElement.value=this.lastValue=null==t?"":t,P(this.el)}handleChangeEvent(t,e){t===this.el.nativeElement&&(e!==this.lastValue&&(this.lastValue=e,this.onChange(e)),P(this.el))}_handleBlurEvent(t){t===this.el.nativeElement&&(this.onTouched(),P(this.el))}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.el.nativeElement.disabled=t}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let t;try{t=this.injector.get(i.g)}catch(n){}if(!t)return;t.statusChanges&&(this.statusChanges=t.statusChanges.subscribe(()=>P(this.el)));const e=t.control;e&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(t=>{if(e[t]){const n=e[t].bind(e);e[t]=(...t)=>{n(...t),P(this.el)}}})}}return t.\u0275fac=function(t){o.Wb()},t.\u0275dir=o.Hb({type:t,hostBindings:function(t,e){1&t&&o.Xb("ionBlur",(function(t){return e._handleBlurEvent(t.target)}))}}),t})();const P=t=>{j(()=>{const e=t.nativeElement,n=I(e);T(e,n);const r=e.closest("ion-item");r&&T(r,n)})},I=t=>{const e=t.classList,n=[];for(let r=0;r<e.length;r++){const t=e.item(r);null!==t&&k(t,"ng-")&&n.push(`ion-${t.substr(3)}`)}return n},T=(t,e)=>{const n=t.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(t=>n.remove(t)),e.forEach(t=>n.add(t))},k=(t,e)=>t.substr(0,e.length)===e;var A;let D=(()=>{let t=A=class extends x{constructor(t,e){super(t,e)}writeValue(t){this.el.nativeElement.checked=this.lastValue=null!=t&&t,P(this.el)}_handleIonChange(t){this.handleChangeEvent(t,t.checked)}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.r),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(t,e){1&t&&o.Xb("ionChange",(function(t){return e._handleIonChange(t.target)}))},features:[o.Ab([{provide:i.f,useExisting:A,multi:!0}]),o.yb]}),t})();var R;let M=(()=>{let t=R=class extends x{constructor(t,e){super(t,e)}_handleIonSelect(t){this.handleChangeEvent(t,t.checked)}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.r),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-radio"]],hostBindings:function(t,e){1&t&&o.Xb("ionSelect",(function(t){return e._handleIonSelect(t.target)}))},features:[o.Ab([{provide:i.f,useExisting:R,multi:!0}]),o.yb]}),t})();var N;let $=(()=>{let t=N=class extends x{constructor(t,e){super(t,e)}_handleChangeEvent(t){this.handleChangeEvent(t,t.value)}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.r),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(t,e){1&t&&o.Xb("ionChange",(function(t){return e._handleChangeEvent(t.target)}))},features:[o.Ab([{provide:i.f,useExisting:N,multi:!0}]),o.yb]}),t})();var L;let V=(()=>{let t=L=class extends x{constructor(t,e){super(t,e)}_handleInputEvent(t){this.handleChangeEvent(t,t.value)}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.r),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(t,e){1&t&&o.Xb("ionChange",(function(t){return e._handleInputEvent(t.target)}))},features:[o.Ab([{provide:i.f,useExisting:L,multi:!0}]),o.yb]}),t})(),F=(()=>{let t=class{constructor(t,e){this.doc=t,this.backButton=new p.a,this.keyboardDidShow=new p.a,this.keyboardDidHide=new p.a,this.pause=new p.a,this.resume=new p.a,this.resize=new p.a,e.run(()=>{let n;this.win=t.defaultView,this.backButton.subscribeWithPriority=function(t,n){return this.subscribe(r=>r.register(t,t=>e.run(()=>n(t))))},B(this.pause,t,"pause"),B(this.resume,t,"resume"),B(this.backButton,t,"ionBackButton"),B(this.resize,this.win,"resize"),B(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),B(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(t=>{n=t}),this.win&&this.win.cordova?t.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(t){return Object(l.e)(this.win,t)}platforms(){return Object(l.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(t){return U(this.win.location.href,t)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(t){const e=this.win.navigator;return!!(e&&e.userAgent&&e.userAgent.indexOf(t)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return t.\u0275fac=function(e){return new(e||t)(o.Tb(s.c),o.Tb(o.z))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t(Object(o.Tb)(s.c),Object(o.Tb)(o.z))},token:t,providedIn:"root"}),t})();const U=(t,e)=>{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},B=(t,e,n)=>{e&&e.addEventListener(n,e=>
1{t.next(null!=e?e.detail:void 0)})};let z=(()=>{let t=class{constructor(t,e,n,r){this.location=e,this.serializer=n,this.router=r,this.direction=G,this.animated=q,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(t=>{if(t instanceof a.d){const e=t.restoredState?t.restoredState.navigationId:t.id;this.guessDirection=e<this.lastNavId?"back":"forward",this.guessAnimation=t.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?t.id:e}}),t.backButton.subscribeWithPriority(0,t=>{this.pop(),t()})}navigateForward(t,e={}){return this.setDirection("forward",e.animated,e.animationDirection,e.animation),this.navigate(t,e)}navigateBack(t,e={}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.navigate(t,e)}navigateRoot(t,e={}){return this.setDirection("root",e.animated,e.animationDirection,e.animation),this.navigate(t,e)}back(t={animated:!0,animationDirection:"back"}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.location.back()}pop(){return Object(r.a)(this,void 0,void 0,(function*(){let t=this.topOutlet;for(;t&&!(yield t.pop());)t=t.parentOutlet}))}setDirection(t,e,n,r){this.direction=t,this.animated=H(t,e,n),this.animationBuilder=r}setTopOutlet(t){this.topOutlet=t}consumeTransition(){let t,e="root";const n=this.animationBuilder;return"auto"===this.direction?(e=this.guessDirection,t=this.guessAnimation):(t=this.animated,e=this.direction),this.direction=G,this.animated=q,this.animationBuilder=void 0,{direction:e,animation:t,animationBuilder:n}}navigate(t,e){if(Array.isArray(t))return this.router.navigate(t,e);{const n=this.serializer.parse(t.toString());return void 0!==e.queryParams&&(n.queryParams=Object.assign({},e.queryParams)),void 0!==e.fragment&&(n.fragment=e.fragment),this.router.navigateByUrl(n,e)}}};return t.\u0275fac=function(e){return new(e||t)(o.Tb(F),o.Tb(s.g),o.Tb(a.k),o.Tb(a.h,8))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t(Object(o.Tb)(F),Object(o.Tb)(s.g),Object(o.Tb)(a.k),Object(o.Tb)(a.h,8))},token:t,providedIn:"root"}),t})();const H=(t,e,n)=>{if(!1!==e)return void 0!==n?n:"forward"===t||"back"===t?t:"root"===t&&!0===e?"forward":void 0},G="auto",q=void 0,W=(t,e)=>{const n=t.prototype;e.forEach(t=>{Object.defineProperty(n,t,{get(){return this.el[t]},set(e){this.z.runOutsideAngular(()=>this.el[t]=e)}})})},X=(t,e)=>{const n=t.prototype;e.forEach(t=>{n[t]=function(){const e=arguments;return this.z.runOutsideAngular(()=>this.el[t].apply(this.el,e))}})},K=(t,e,n)=>{n.forEach(n=>t[n]=Object(f.a)(e,n))};function Y(t){return function(e){return t.inputs&&W(e,t.inputs),t.methods&&X(e,t.methods),e}}let Z=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-app"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t})(),Q=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-avatar"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t})(),J=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],t),t})(),tt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode"]})],t),t})(),et=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],t),t})(),nt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["collapse"]})],t),t})(),rt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],t),t})(),ot=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["mode"]})],t),t})(),it=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode","translucent"]})],t),t})(),st=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode"]})],t),t})(),at=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode"]})],t),t})(),ct=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pu
1shXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],t),t})(),lt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],t),t})(),ut=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],t),t})(),dt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],t),t})(),ht=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-footer"]],inputs:{mode:"mode",translucent:"translucent"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["mode","translucent"]})],t),t})(),pt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["fixed"]})],t),t})(),ft=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["collapse","mode","translucent"]})],t),t})(),gt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-icon"]],inputs:{ariaLabel:"ariaLabel",color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",size:"size",src:"src"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","size","src"]})],t),t})(),bt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["alt","src"]})],t),t})(),mt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionInfinite"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["disabled","position","threshold"],methods:["complete"]})],t),t})(),vt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["loadingSpinner","loadingText"]})],t),t})(),yt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getIn
1putElement"]})],t),t})(),_t=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],t),t})(),wt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-item-option"]],inputs:{color:"color",disabled:"disabled",download:"download",expandable:"expandable",href:"href",mode:"mode",rel:"rel",target:"target",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],t),t})(),Ot=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionSwipe"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-item-options"]],inputs:{side:"side"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["side"]})],t),t})(),St=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionDrag"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-item-sliding"]],inputs:{disabled:"disabled"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],t),t})(),Et=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode","position"]})],t),t})(),Ct=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],t),t})(),jt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],t),t})(),xt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["autoHide","color","disabled","menu","mode","type"]})],t),t})(),Pt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode"]})],t),t})(),It=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-radio"]],inputs:{color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","disabled","mode","name","value"]})],t),t})(),Tt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-radio-group"]],inputs:{allowEmptySelection:"allowEmptySelection",name:"name",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["allowEmptySelection","name","value"]})],t),t})(),kt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange","ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-range"]],inputs:{color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],t),t})(),At=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionRefresh","ionPull","ionStart"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],t),t})(),Dt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],t),t})(),Rt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-row"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t})(),Mt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionInput","ionChange","ionCancel","ionClear","
1ionBlur","ionFocus"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],t),t})(),Nt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","disabled","mode","scrollable","value"]})],t),t})(),$t=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["disabled","layout","mode","type","value"]})],t),t})(),Lt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],t),t})(),Vt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["disabled","value"]})],t),t})(),Ft=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-skeleton-text"]],inputs:{animated:"animated"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["animated"]})],t),t})(),Ut=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-slide"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t})(),Bt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],t),t})(),zt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","duration","name","paused"]})],t),t})(),Ht=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionSplitPaneVisible"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["contentId","disabled","when"]})],t),t})(),Gt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode","selectedTab","translucent"]})],t),t})(),qt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],t),t}
1)(),Wt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","debounce","disabled","enterkeyhint","inputmode","maxlength","minlength","mode","name","placeholder","readonly","required","rows","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],t),t})(),Xt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-thumbnail"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t})(),Kt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","size"]})],t),t})(),Yt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement,K(this,this.el,["ionChange","ionFocus","ionBlur"])}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-toggle"]],inputs:{checked:"checked",color:"color",disabled:"disabled",mode:"mode",name:"name",value:"value"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["checked","color","disabled","mode","name","value"]})],t),t})(),Zt=(()=>{let t=class{constructor(t,e,n){this.z=n,t.detach(),this.el=e.nativeElement}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(o.l),o.Mb(o.z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.fc(),o.ec(0))},encapsulation:2,changeDetection:0}),t=Object(r.b)([Y({inputs:["color","mode"]})],t),t})(),Qt=(()=>{let t=class{get(t,e){const n=te();return n?n.get(t,e):null}getBoolean(t,e){const n=te();return!!n&&n.getBoolean(t,e)}getNumber(t,e){const n=te();return n?n.getNumber(t,e):0}set(t,e){console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");const n=te();n&&n.set(t,e)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Jt=new o.q("USERCONFIG"),te=()=>{if("undefined"!=typeof window){const t=window.Ionic;if(t&&t.config)return t.config}return null};class ee{constructor(t={}){this.data=t}get(t){return this.data[t]}}let ne=(()=>{let t=class{constructor(t,e){this.zone=t,this.appRef=e}create(t,e,n){return new re(t,e,n,this.appRef,this.zone)}};return t.\u0275fac=function(e){return new(e||t)(o.Tb(o.z),o.Tb(o.g))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();class re{constructor(t,e,n,r,o){this.resolver=t,this.injector=e,this.location=n,this.appRef=r,this.zone=o,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(t,e,n,r){return this.zone.run(()=>new Promise(o=>{o(oe(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,t,e,n,r))}))}removeViewFromDom(t,e){return this.zone.run(()=>new Promise(t=>{const n=this.elRefMap.get(e);if(n){n.destroy(),this.elRefMap.delete(e);const t=this.elEventsMap.get(e);t&&(t(),this.elEventsMap.delete(e))}t()}))}}const oe=(t,e,n,r,i,s,a,c,l,u,d)=>
1{const h=e.resolveComponentFactory(l),p=o.r.create({providers:ce(u),parent:n}),f=r?r.createComponent(h,r.length,p):h.create(p),g=f.instance,b=f.location.nativeElement;if(u&&Object.assign(g,u),d)for(const o of d)b.classList.add(o);const m=se(t,g,b);return c.appendChild(b),r||i.attachView(f.hostView),f.changeDetectorRef.reattach(),s.set(b,f),a.set(b,m),b},ie=[u.a,u.b,u.c,u.d,u.e],se=(t,e,n)=>t.run(()=>{const t=ie.filter(t=>"function"==typeof e[t]).map(t=>{const r=n=>e[t](n.detail);return n.addEventListener(t,r),()=>n.removeEventListener(t,r)});return()=>t.forEach(t=>t())}),ae=new o.q("NavParamsToken"),ce=t=>[{provide:ae,useValue:t},{provide:ee,useFactory:le,deps:[ae]}],le=t=>new ee(t),ue=(t,e)=>((t=t.filter(t=>t.stackId!==e.stackId)).push(e),t),de=(t,e)=>{const n=t.createUrlTree(["."],{relativeTo:e});return t.serializeUrl(n)},he=(t,e)=>{if(!t)return;const n=pe(e);for(let r=0;r<n.length;r++){if(r>=t.length)return n[r];if(n[r]!==t[r])return}},pe=t=>t.split("/").map(t=>t.trim()).filter(t=>""!==t),fe=t=>{t&&(t.ref.destroy(),t.unlistenEvents())};class ge{constructor(t,e,n,r,o,i){this.containerEl=e,this.router=n,this.navCtrl=r,this.zone=o,this.location=i,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==t?pe(t):void 0}createView(t,e){const n=de(this.router,e),r=t&&t.location&&t.location.nativeElement,o=se(this.zone,t.instance,r);return{id:this.nextId++,stackId:he(this.tabsPrefix,n),unlistenEvents:o,element:r,ref:t,url:n}}getExistingView(t){const e=de(this.router,t),n=this.views.find(t=>t.url===e);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(t){const e=this.navCtrl.consumeTransition();let{direction:n,animation:r,animationBuilder:o}=e;const i=this.activeView,s=((t,e)=>!e||t.stackId!==e.stackId)(t,i);s&&(n="back",r=void 0);const a=this.views.slice();let c;const l=this.router;l.getCurrentNavigation?c=l.getCurrentNavigation():l.navigations&&l.navigations.value&&(c=l.navigations.value),c&&c.extras&&c.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const u=this.views.includes(t),d=this.insertView(t,n);u||t.ref.changeDetectorRef.detectChanges();const h=t.animationBuilder;return void 0!==o||"back"!==n||s||void 0===h||(o=h),i&&(i.animationBuilder=o),this.zone.runOutsideAngular(()=>this.wait(()=>(i&&i.ref.changeDetectorRef.detach(),t.ref.changeDetectorRef.reattach(),this.transition(t,i,r,this.canGoBack(1),!1,o).then(()=>be(t,d,a,this.location)).then(()=>({enteringView:t,direction:n,animation:r,tabSwitch:s})))))}canGoBack(t,e=this.getActiveStackId()){return this.getStack(e).length>t}pop(t,e=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(e);if(n.length<=t)return Promise.resolve(!1);const r=n[n.length-t-1];let o=r.url;const i=r.savedData;if(i){const t=i.get("primary");t&&t.route&&t.route._routerState&&t.route._routerState.snapshot&&t.route._routerState.snapshot.url&&(o=t.route._routerState.snapshot.url)}const{animationBuilder:s}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(o,Object.assign({},r.savedExtras,{animation:s})).then(()=>!0)})}startBackTransition(){const t=this.activeView;if(t){const e=this.getStack(t.stackId),n=e[e.length-2],r=n.animationBuilder;return this.wait(()=>this.transition(n,t,"back",this.canGoBack(2),!0,r))}return Promise.resolve()}endBackTransition(t){t?(this.skipTransition=!0,this.pop(1)):this.activeView&&me(this.activeView,this.views,this.views,this.location)}getLastUrl(t){const e=this.getStack(t);return e.length>0?e[e.length-1]:void 0}getRootUrl(t){const e=this.getStack(t);return e.length>0?e[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(fe),this.activeView=void 0,this.views=[]}getStack(t){return this.views.filter(e=>e.stackId===t)}insertView(t,e){return this.activeView=t,this.views=((t,e,n)=>"root"===n?ue(t,e):"forward"===n?((t,e)=>(t.indexOf(e)>=0?t=t.filter(t=>t.stackId!==e.stackId||t.id<=e.id):t.push(e),t))(t,e):((t,e)=>t.indexOf(e)>=0?t.filter(t=>t.stackId!==e.stackId||t.id<=e.id):ue(t,e))(t,e))(this.views,t,e),this.views.slice()}
1transition(t,e,n,r,o,i){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(e===t)return Promise.resolve(!1);const s=t?t.element:void 0,a=e?e.element:void 0,c=this.containerEl;return s&&s!==a&&(s.classList.add("ion-page"),s.classList.add("ion-page-invisible"),s.parentElement!==c&&c.appendChild(s),c.commit)?c.commit(s,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:o,animationBuilder:i}):Promise.resolve(!1)}wait(t){return Object(r.a)(this,void 0,void 0,(function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=t()}))}}const be=(t,e,n,r)=>"function"==typeof requestAnimationFrame?new Promise(o=>{requestAnimationFrame(()=>{me(t,e,n,r),o()})}):Promise.resolve(),me=(t,e,n,r)=>{n.filter(t=>!e.includes(t)).forEach(fe),e.forEach(e=>{const n=r.path().split("?")[0].split("#")[0];if(e!==t&&e.url!==n){const t=e.element;t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden"),e.ref.changeDetectorRef.detach()}})};let ve=(()=>{let t=class{constructor(t,e,n,r,i,s,c,l,u,d,h,p,f){this.parentContexts=t,this.location=e,this.resolver=n,this.config=s,this.navCtrl=c,this.parentOutlet=f,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new g.a(null),this.stackEvents=new o.n,this.activateEvents=new o.n,this.deactivateEvents=new o.n,this.nativeEl=u.nativeElement,this.name=r||a.e,this.tabsPrefix="true"===i?de(d,p):void 0,this.stackCtrl=new ge(this.tabsPrefix,this.nativeEl,d,c,h,l),t.onChildOutletCreated(this.name,this)}set animation(t){this.nativeEl.animation=t}set animated(t){this.nativeEl.animated=t}set swipeGesture(t){this._swipeGesture=t,this.nativeEl.swipeHandler=t?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:t=>this.stackCtrl.endBackTransition(t)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const t=this.getContext();t&&t.route&&this.activateWith(t.route,t.resolver||null)}this.nativeEl.componentOnReady&&this.nativeEl.componentOnReady().then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}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(){throw new Error("incompatible reuse strategy")}attach(t,e){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){this.activatedView.savedData=new Map(this.getContext().children.contexts),this.activatedView.savedExtras={};const t=this.getContext();if(t.route){const e=t.route.snapshot;this.activatedView.savedExtras.queryParams=e.queryParams,this.activatedView.savedExtras.fragment=e.fragment}}const t=this.component;this.activatedView=null,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");let n;this._activatedRoute=t;let r=this.stackCtrl.getExistingView(t);if(r){n=this.activated=r.ref;const e=r.savedData;e&&(this.getContext().children.contexts=e),this.updateActivatedRouteProxy(n.instance,t)}else{const o=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,s=new g.a(null),a=this.createActivatedRouteProxy(s,t),c=new ye(a,i,this.location.injector);n=this.activated=this.location.createComponent(o,this.location.length,c),s.next(n.instance),r=this.stackCtrl.createView(this.activated,t),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:t})}this.activatedView=r,this.stackCtrl.setActive(r).then(t=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(t)})}canGoBack(t=1,e){return this.stackCtrl.canGoBack(t,e)}pop(t=1,e){return this.stackCtrl.pop(t,e)}getLastUrl(t){const e=this.stackCtrl.getLastUrl(t);return e?e.url:void 0}getLastRouteView(t){return this.stackCtrl.getLastUrl(t)}getRootView(t){return this.stackCtrl.getRootUrl(t)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(t,e){const n=new a.a;return n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,n._paramMap=this.proxyObservable(t,"paramMap"),n._queryParamMap=this.proxyObservable(t,"queryParamMap"),n.url=this.proxyObservable(t,"url"),n.params=this.proxyObservable(t,"params"),n.queryParams=this.proxyObservable(t,"queryParams"),n.fragment=this.proxyObservable(t,"fragment"),n.data=this.proxyObservable(t,"data"),n}proxyObservable(t,e){return t.pipe(Object(b.a)(t=>!!t),Object(m.a)(t=>this.currentActivatedRoute$.pipe(Object(b.a)(e=>null!==e&&e.component===t),Object(m.a)(t=>t&&t.activatedRoute[e]),t=>t.lift(new y(void 0,void 0)))))}updateActivatedRouteProxy(t,e){const n=this.proxyMap.get(t);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=e._futureSnapshot,n._routerState=e._routerState,n.snapshot=e.snapshot,n.outlet=e.outlet,n.component=e.component,this.currentActivatedRoute$.next({component:t,activatedRoute:e})}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(a.b),o.Mb(o.N),o.Mb(o.j),o.Ub("name"),o.Ub("tabs"),o.Mb(Qt),o.Mb(z),o.Mb(s.g),o.Mb(o.l),o.Mb(a.h),o.Mb(o.z),o.Mb(a.a),o.Mb(t,12))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",swipeGesture:"swipeGesture"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class ye{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===a.a?this.route:t===a.b?this.childContexts:this.parent.get(t,e)}}let _e=(()=>{let t=class{constructor(t){this.navCtrl=t,this.ionTabsWillChange=new o.n,this.ionTabsDidChange=new o.n}onPageSelected(t){const e=t.enteringView.stackId;t.tabSwitch&&void 0!==e&&(this.tabBar&&(this.tabBar.selectedTab=e),this.ionTabsWillChange.emit({tab:e}),this.ionTabsDidChange.emit({tab:e}))}select(t){const e=this.outlet.getActiveStackId()===t,n=`${this.outlet.tabsPrefix}/${t}`;if(e){const e=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(e).url===n)return;const r=this.outlet.getRootView(t);return this.navCtrl.navigateRoot(n,Object.assign({},r&&n===r.url&&r.savedExtras,{animated:!0,animationDirection:"back"}))}{const e=this.outlet.getLastRouteView(t);return this.navCtrl.navigateRoot(e&&e.url||n,Object.assign({},e&&e.savedExtras,{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(z))},t.\u0275cmp=o.Gb({type:t,selectors:[["ion-tabs"]],contentQueries:function(t,e,n){var r;1&t&&o.Fb(n,Gt,!0),2&t&&o.mc(r=o.Yb())&&(e.tabBar=r.first)},viewQuery:function(t,e){var n;1&t&&o.Ac(S,!0,ve),2&t&&o.mc(n=o.Yb())&&(e.outlet=n.first)},hostBindings:function(t,e){1&t&&o.Xb("ionTabButtonClick",(function(t){return e.select(t.detail.tab)}))},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"},ngContentSelectors:C,decls:5,vars:0,consts:[[1,"tabs-inner"],["tabs","true",3,"stackEvents"],["outlet",""]],template:function(t,e){1&t&&(o.fc(E),o.ec(0),o.Pb(1,"div",0),o.Pb(2,"ion-router-outlet",1,2),o.Xb("stackEvents",(function(t){return e.onPageSelected(t)})),o.Ob(),o.Ob(),o.ec(4,1))},directives:[ve],styles:["[_nghost-%COMP%] {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner[_ngcontent-%COMP%] {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"]}),t})(),we=(()=>{let t=class{constructor(t,e,n){this.routerOutlet=t,this.navCtrl=e,this.config=n}onClick(t){const e=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet&&this.routerOutlet.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),t.preventDefault()):null!=e&&(this.navCtrl.navigateBack(e,{animation:this.routerAnimation}),t.preventDefault())}};return t.\u0275fac=function(e){return new(e||t)(o.Mb(ve,8),o.Mb(z),o.Mb(Qt))},t.\u0275dir=o.Hb({type:t,selectors:[["ion-back-button"]],hostBindings:function(t,e){1&t&&o.Xb("click",(function(t){return e.onClick(t)}))},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),t})();class Oe{constructor(t){this.ctrl=t}create(t){return this.ctrl.create(t||{})}dismiss(t,e,n){return this.ctrl.dismiss(t,e,n)}getTop(){return this.ctrl.getTop()}}let Se=(()=>{let t=class extends Oe{constructor(){super(h.c)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ee=(()=>{let t=class extends Oe{constructor(){super(h.b)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),Ce=(()=>{let t=class extends Oe{constructor(){super(h.k)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),je=(()=>{let t=class{open(t){return d.a.open(t)}close(t){return d.a.close(t)}toggle(t){return d.a.toggle(t)}enable(t,e){return d.a.enable(t,e)}swipeGesture(t,e){return d.a.swipeGesture(t,e)}isOpen(t){return d.a.isOpen(t)}isEnabled(t){return d.a.isEnabled(t)}get(t){return d.a.get(t)}getOpen(){return d.a.getOpen()}getMenus(){return d.a.getMenus()}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),xe=(()=>{let t=class extends Oe{constructor(t,e,n){super(h.l),this.angularDelegate=t,this.resolver=e,this.injector=n}create(t){return super.create(Object.assign({},t,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return t.\u0275fac=function(e){return new(e||t)(o.Tb(ne),o.Tb(o.j),o.Tb(o.r))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),Pe=(()=>{let t=class extends Oe{constructor(t,e,n){super(h.d),this.angularDelegate=t,this.resolver=e,this.injector=n}create(t){return super.create(Object.assign({},t,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}};return t.\u0275fac=function(e){return new(e||t)(o.Tb(ne),o.Tb(o.j),o.Tb(o.r))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),Ie=(()=>{let t=class extends Oe{constructor(){super(h.o)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Te{shouldDetach(t){return!1}shouldAttach(t){return!1}store(t,e){}retrieve(t){return null}shouldReuseRoute(t,e){if(t.routeConfig!==e.routeConfig)return!1;const n=t.params,r=e.params,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(const s of o)if(r[s]!==n[s])return!1;return!0}}let ke=!1;const Ae=(t,e,r)=>()=>{const o=e.defaultView;if(o&&"undefined"!=typeof window){ke&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),ke=!0,(o.Ionic=o.Ionic||{}).config=Object.assign({},t,{_zoneGate:t=>r.run(t)});const i="__zone_symbol__addEventListener"in e.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var t=[];if("undefined"!=typeof window){var e=window;e.customElements&&(!e.Element||e.Element.prototype.closest&&e.Element.prototype.matches&&e.Element.prototype.remove&&e.Element.prototype.getRootNode)||t.push(n.e(14).then(n.t.bind(null,"QdDj",7))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!e.NodeList||e.NodeList.prototype.forEach)&&e.fetch&&function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()&&"undefined"!=typeof WeakMap||t.push(n.e(12).then(n.t.bind(null,"t6o4",7)))}return Promise.all(t)}().then(()=>{return t={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:j,jmp:t=>r.runOutsideAngular(t),ael(t,e,n,r){t[i](e,n,r)},rel(t,e,n,r){t.removeEventListener(e,n,r)}},"undefined"==typeof window?Promise.resolve():(c.b&&c.b.supports&&c.b.supports("color","var(--c)")?Object(c.d)():n.e(13).then(n.t.bind(null,"PC2G",7)).then(()=>(c.n.$cssShim$=c.q.__cssshim)?c.n.$cssShim$.i():0)).then(()=>(w(),Object(c.e)(JSON.parse('[["ion-select_3",[[2,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"options":[16]},[[0,"ionChange","onSelect"]]],[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}]]],["ion-menu_3",[[33,"ion-menu-button",{"color":[1],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[1],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss
1":[64]},[[4,"keydown","onKeydown"]]]]],["ion-back-button",[[33,"ion-back-button",{"color":[1],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[1],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[1],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[1],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[1]}],[33,"ion-card-title",{"color":[1]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[1],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32]}],[33,"ion-segment",{"color":[1],"disabled":[4],"scrollable":[4],"value":[1025],"activated":[32]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[1],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},[[8,"keyboardWillHide","onKeyboardWillHide"],[8,"keyboardWillShow","onKeyboardWillShow"]]]]],["ion-chip",[[33,"ion-chip",{"color":[1],"outline":[4]}]]],["ion-modal",[[34,"ion-modal",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-popover",[[34,"ion-popover",{"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[1],"animated":[4],"autocomplete":[
11],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-app_8",[[0,"ion-app"],[34,"ion-buttons",{"collapse":[4]}],[1,"ion-content",{"color":[1],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[2,"click","onClick"]]],[36,"ion-footer",{"translucent":[4]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[1],"size":[1]}],[33,"ion-toolbar",{"color":[1]},[[0,"ionStyle","childrenStyle"]]]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[1]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[1],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[1]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[
11],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[1],"maxlength":[2],"min":[1],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[1]}]]],["ion-range",[[33,"ion-range",{"color":[1],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"snaps":[4],"step":[2],"ticks":[4],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[1]}]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[1],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[4,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[1],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"activated":[32]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-datetime_3",[[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[33,"ion-datetime",{"name":[1],"disabled":[4],"readonly":[4],"min":[1025],"max":[1025],"displayFormat":[1,"display-format"],"displayTimezone":[1,"display-timezone"],"pickerFormat":[1,"picker-format"],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"monthNames":[1,"month-names"],"monthShortNames":[1,"month-short-names"],"dayNames":[1,"day-names"],"dayShortNames":[1,"day-short-names"],"pickerOptions":[16],"placeholder":[1],"value":[1025],"isExpanded":[32],"open":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[1],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[1],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ariaLabel":[1537,"aria-label"],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[1],"src":[1],"icon":[8],"size":[1],"lazy":[4],"svgContent":[32],"isVisible":[32]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[1],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[1]}],[1,"ion-skeleton-text",{"animated":[4]}],[49,"ion-item",{"color":[1],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32]}
1,[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[1],"position":[1],"noAnimate":[32]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[1],"lines":[1]}]]]]'),t)));var t})}};var De;let Re=(()=>{let t=De=class{static forRoot(t){return{ngModule:De,providers:[{provide:Jt,useValue:t},{provide:o.d,useFactory:Ae,multi:!0,deps:[Jt,s.c,o.z]}]}}};return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[ne,xe,Pe],imports:[[s.b]]}),t})()},V8p1:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("mrSG");class o{constructor(){}setData(t){this.settings=t}isForcedLogin(){return"on"==this.settings.side_menu_force_login}isPreview(){return window.location&&window.location.href&&window.location.href.indexOf("myapppresser")>=0?(console.log("isPreview",!0),!0):(console.log("isPreview",!1),!1)}isWeb(){return Object(r.a)(this,void 0,void 0,(function*(){return!1}))}hasTabsMenu(){return this.settings.tab_menu&&this.settings.tab_menu.items&&this.settings.tab_menu.items.length}}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),o=n("z+Ro"),i=n("bHdf"),s=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(o.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(s.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("EY2u"),o=n("LRne"),i=n("z6cu");let s=(()=>{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 Object(o.a)(this.value);case"E":return Object(i.a)(this.error);case"C":return Object(r.b)()}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})()},WYOK:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n("mrSG"),o=n("A1Tq"),i=n("wDu7"),s=n("XNiG"),a=n("gZlD"),c=n("fXoL"),l=n("e8h1"),u=n("tk/3"),d=n("TEn/");let h=(()=>{class t{constructor(t,e,n,r,o,i){this.storage=t,this.httpService=e,this.http=n,this.appdataService=r,this.platform=o,this.loginService=i,this.data=null,this.cartChange=new s.a,this.showCartIcon=new s.a,this.appCommerceRest="wp-json/appcommerce/v2/",this.appdataService.getAppdata().then(t=>{this.url=t.wordpress_url,this.appData=t}).catch(t=>console.error(t))}cartChangeEvent(){return this.cartChange}showCartIconEvent(){return this.showCartIcon}get(t,e){return Object(r.a)(this,void 0,void 0,(function*(){null===e&&(e={}),Object.assign(e,{appp:"3"});const n=yield this.storage.get("app_language");let r;n&&"object"==typeof n?r=n.code:n&&"string"==typeof n&&(r=n),r&&Object.assign(e,{lang:r});let o=this.url+this.appCommerceRest+t;t.indexOf("products")>=0&&t.indexOf("reviews")<0&&t.indexOf("/categories")<0&&Object.assign(e,{status:"publish"});const i=yield this.loginService.getLoginData();return this.httpService.get(o,e,i?{Authorization:"Bearer "+i.access_token}:{})}))}send(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const n=this.url+this.appCommerceRest+e,r=yield this.loginService.getLoginData();return this.httpService.post(n,t,r?{Authorization:"Bearer "+r.access_token}:{})}))}addToCart(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.url+this.appCommerceRest+"cart/add";let n={};const r=yield this.loginService.getLoginData();r&&r.access_token&&Object.assign(n,{appp:3,token:r.access_token});const o=this.httpService.addParamsToUrl(e,n);return this.httpService.post(o,t)}))}clearCart(){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.url+this.appCommerceRest+"cart/clear";let e={};const n=yield this.loginService.getLoginData();n&&n.access_token&&Object.assign(e,{appp:3,token:n.access_token});const r=this.httpService.addParamsToUrl(t,e);return this.httpService.delete(r)}))}getCartContents(){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.url+this.appCommerceRest+"cart";let e={thumb:"true"};const n=yield this.loginService.getLoginData();n&&n.access_token&&Object.assign(e,{appp:3,token:n.access_token});try{const n=yield this.httpService.get(t,e);return this.setCartCount(n),n}catch(r){console.log(r)}}))}setCartCount(t){"string"==typeof t?this.storage.remove("cart_count"):this.storage.set("cart_count",t.cart_total.cart_contents_count)}removeItem(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.url+this.appCommerceRest+"cart/cart-item";let n={cart_item_key:t.key};const r=yield this.loginService.getLoginData();r&&r.access_token&&Object.assign(n,{appp:3,token:r.access_token});const o=this.httpService.addParamsToUrl(e,n);return this.httpService.delete(o)}
1))}updateItem(t,e){return Object(r.a)(this,void 0,void 0,(function*(){const n=this.url+this.appCommerceRest+"cart/cart-item";let r={cart_item_key:t.key,quantity:e};const o=yield this.loginService.getLoginData();o&&o.access_token&&Object.assign(r,{appp:3,token:o.access_token});const i=this.httpService.addParamsToUrl(n,r);return this.httpService.post(i)}))}getWooPage(t){let e=[];if(this.appData.menus.side_menu.items&&(e=this.appData.menus.side_menu.items),this.appData.menus.tab_menu.items)for(var n=0;n<this.appData.menus.tab_menu.items.length;++n)e.push(this.appData.menus.tab_menu.items[n]);for(let r of e)if(r&&r.woo_page&&r.woo_page==t)return r;return null}getSystemStatusSettings(){return Object(r.a)(this,void 0,void 0,(function*(){return this.systemStatusSettings||(this.systemStatusSettings=yield this._getSystemStatusSettingsApi(),this.systemStatusSettings||(this.systemStatusSettings=yield this._getSystemStatusSettingsStorage())),this.systemStatusSettings}))}_getSystemStatusSettingsApi(){return Object(r.a)(this,void 0,void 0,(function*(){const t=this.url+this.appCommerceRest+"system_status",e=yield this.httpService.get(t);if(e&&e.settings){const t=e.settings;return this.storage.set("system_status_settings",t),t}}))}_getSystemStatusSettingsStorage(){return Object(r.a)(this,void 0,void 0,(function*(){return yield this.storage.get("system_status_settings")}))}getCurrencySymbol(t){return t&&t.currency_symbol?t.currency_symbol:"$"}getCurrencyPosition(t){return t&&t.currency_position?t.currency_position:"left"}getCustom(t){return Object(r.a)(this,void 0,void 0,(function*(){const e=this.url+t,n=yield this.loginService.getLoginData(),r=n?{Authorization:"Bearer "+n.access_token}:{};return this.data=yield this.httpService.get(e,null,r),this.data}))}handleError(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)(c.Tb(l.b),c.Tb(o.a),c.Tb(u.a),c.Tb(i.a),c.Tb(d.rb),c.Tb(a.a))},t.\u0275prov=c.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n("HDdC"),o=n("7o/Q"),i=n("quSY"),s=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends o.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new d(this,this);return e.operator=t,e}next(t){if(this.closed)throw new s.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let o=0;o<n;o++)r[o].next(t)}}error(t){if(this.closed)throw new s.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let o=0;o<n;o++)r[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new s.a;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new s.a;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new s.a;return this.hasError?(t.error(this.thrownError),i.a.EMPTY):this.isStopped?(t.complete(),i.a.EMPTY):(this.observers.push(t),new a.a(this,t))}asObservable(){const t=new r.a;return t.source=this,t}}return t.create=(t,e)=>new d(t,e),t})();class d extends u{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):i.a.EMPTY}}},XSEc:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.getBasicAuthHeader=function(t,e){return Object(o.cordova)(this,"getBasicAuthHeader",{sync:!0},arguments)},e.prototype.useBasicAuth=function(t,e){return Object(o.cordova)(this,"useBasicAuth",{sync:!0},arguments)},e.prototype.getHeaders=function(t){return Object(o.cordova)(this,"getHeaders",{sync:!0},arguments)},e.prototype.setHeader=function(t,e,n){return Object(o.cordova)(this,"setHeader",{sync:!0},arguments)}
1,e.prototype.getDataSerializer=function(){return Object(o.cordova)(this,"getDataSerializer",{sync:!0},arguments)},e.prototype.setDataSerializer=function(t){return Object(o.cordova)(this,"setDataSerializer",{sync:!0},arguments)},e.prototype.setCookie=function(t,e){return Object(o.cordova)(this,"setCookie",{sync:!0},arguments)},e.prototype.clearCookies=function(){return Object(o.cordova)(this,"clearCookies",{sync:!0},arguments)},e.prototype.removeCookies=function(t,e){return Object(o.cordova)(this,"removeCookies",{sync:!0},arguments)},e.prototype.getCookieString=function(t){return Object(o.cordova)(this,"getCookieString",{sync:!0},arguments)},e.prototype.getRequestTimeout=function(){return Object(o.cordova)(this,"getRequestTimeout",{sync:!0},arguments)},e.prototype.setRequestTimeout=function(t){return Object(o.cordova)(this,"setRequestTimeout",{sync:!0},arguments)},e.prototype.getFollowRedirect=function(){return Object(o.cordova)(this,"getFollowRedirect",{sync:!0},arguments)},e.prototype.setFollowRedirect=function(t){return Object(o.cordova)(this,"setFollowRedirect",{sync:!0},arguments)},e.prototype.setServerTrustMode=function(t){return Object(o.cordova)(this,"setServerTrustMode",{},arguments)},e.prototype.post=function(t,e,n){return Object(o.cordova)(this,"post",{},arguments)},e.prototype.get=function(t,e,n){return Object(o.cordova)(this,"get",{},arguments)},e.prototype.put=function(t,e,n){return Object(o.cordova)(this,"put",{},arguments)},e.prototype.patch=function(t,e,n){return Object(o.cordova)(this,"patch",{},arguments)},e.prototype.delete=function(t,e,n){return Object(o.cordova)(this,"delete",{},arguments)},e.prototype.head=function(t,e,n){return Object(o.cordova)(this,"head",{},arguments)},e.prototype.options=function(t,e,n){return Object(o.cordova)(this,"options",{},arguments)},e.prototype.uploadFile=function(t,e,n,r,i){return Object(o.cordova)(this,"uploadFile",{},arguments)},e.prototype.downloadFile=function(t,e,n,r){return Object(o.cordova)(this,"downloadFile",{},arguments)},e.prototype.sendRequest=function(t,e){return Object(o.cordova)(this,"sendRequest",{},arguments)},Object.defineProperty(e.prototype,"ErrorCode",{get:function(){return Object(o.cordovaPropertyGet)(this,"ErrorCode")},set:function(t){Object(o.cordovaPropertySet)(this,"ErrorCode",t)},enumerable:!0,configurable:!0}),e.pluginName="HTTP",e.plugin="cordova-plugin-advanced-http",e.pluginRef="cordova.plugin.http",e.repo="https://github.com/silkimen/cordova-plugin-advanced-http",e.platforms=["Android","iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("quSY");class o extends r.a{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)}}},YplK:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n("mrSG"),o=n("B4Mn"),i=n("7DPu"),s=n("wDu7"),a=n("A1Tq"),c=n("qjYk"),l=n("gZlD"),u=n("fXoL"),d=n("e8h1"),h=n("TEn/");let p=(()=>{class t{constructor(t,e,n,r,i,s,a){this.store=t,this.storage=e,this.httpService=n,this.platform=r,this.appdataService=i,this.errorLogs=s,this.loginService=a,this.ownedSubscriptions=new o.a,this.ownedProducts=new o.a,this.subUpdate=new o.a,this.storeError=new o.a,this.setInitialValues()}setInitialValues(){return Object(r.a)(this,void 0,void 0,(function*(){const t=yield this._getSubscriptionsFromStorage();t&&this.ownedSubscriptions.next(t);const e=yield this._getProductsFromStorage();e&&this.ownedProducts.next(e)}))}_getSubscriptionsFromStorage(){return Object(r.a)(this,void 0,void 0,(function*(){return this.storage.get("iap_subscription_objects")}))}_getProductsFromStorage(){return Object(r.a)(this,void 0,void 0,(function*(){return this.storage.get("iap_purchase_ids")}))}registerProduct(t){return Object(r.a)(this,void 0,void 0,(function*(){console.log("registering product "+t),this.store.error(t=>{console.error("Store Error "+JSON.stringify(t)),this.storeError.next(t)}),this.store.register({id:t,type:this.store.NON_CONSUMABLE}),this.store.when(t).approved(e=>{console.log(t+" approved"),e.finish()}),this.store.when(t).owned(e=>{console.log(t+" owned"),this.ownedProducts.next(t)}),this.store.refresh()}))}registerSubscriptions(){return Object(r.a)(this,void 0,void 0,(function*(){if(this.errorLogs.addLog("Starting register subscriptions...","app",!0),!this.appdataService.appData||!this.appdataService.appData.config.iap_settings)return;let t;t=this.platform.is("ios")?this.appdataService.appData.config.iap_settings.ids_ios:this.appdataService.appData.config.iap_settings.ids_android,console.log("register all subs",t);let e=[];for(let n of t)e.push({id:n,type:this.store.PAID_SUBSCRIPTION});this.loginService.loginData&&this.loginService.loginData.email&&(console.log("added user email "+this.loginService.loginData.email),this.store.applicationUsername=this.loginService.loginData.email),this.store.validator=this.appdataService.appData.config.iap_settings.val
1idator_url,this.store.error(t=>{this.errorLogs.addLog("Error with in app purchase: "+JSON.stringify(t),"app",!0),this.storeError.next(t)}),this.store.register(e),this.store.when("product").updated(t=>{t&&this.subUpdate.next(t)}),this.store.when("product").approved(t=>{this.loginService.loginData&&this.loginService.loginData.email&&(this.store.applicationUsername=this.loginService.loginData.email),t.verify()}).verified(t=>{let e;console.log("verified",t),this.loginService.loginData&&this.loginService.loginData.email&&(e=this.loginService.loginData.email),this.errorLogs.addLog("subscription verified "+t.id+" for "+e,"app"),this.addSubscriptionToStorage(t).then(()=>{t.finish()})}),this.store.when("subscription").owned(t=>{this.ownedSubscriptions.next(t),this.addSubscriptionToStorage(t)}),this.store.when("subscription").expired(t=>{this.errorLogs.addLog("Product expired "+t.id,"app"),this.removeSubFromStorage(t)}),this.store.refresh(),this.errorLogs.addLog("Registered subscriptions "+JSON.stringify(t),"app",!0)}))}getSubUpdate(){return this.subUpdate}getIapSubscriptions(){return this.ownedSubscriptions}getIapProducts(){return this.ownedProducts}getStoreErrors(){return this.storeError}addSubscriptionToStorage(t){return Object(r.a)(this,void 0,void 0,(function*(){console.log("adding sub",t);let e=yield this.storage.get("iap_subscription_objects");if(!e)return void this.storage.set("iap_subscription_objects",[t]);const n=e.filter(e=>e.id!==t.id);return n.push(t),console.log("Add sub to storage",n),this.storage.set("iap_subscription_objects",n)}))}removeSubFromStorage(t){this.storage.get("iap_subscription_objects").then(e=>{if(console.log("remove sub",e),e){var n=e.map((function(t){return t.id})).indexOf(t.id);e.splice(n,1),console.log("Remove sub from storage",e),this.storage.set("iap_subscription_objects",e)}})}getProduct(t){return Object(r.a)(this,void 0,void 0,(function*(){return yield this.store.get(t)}))}buy(t,e=null){return Object(r.a)(this,void 0,void 0,(function*(){const e=yield this.store.order(t);return console.log("buy result",e),e}))}subscribe(t,e=null){return Object(r.a)(this,void 0,void 0,(function*(){if(console.log("subscribe (service)",t),e&&e.email){let t=e.email;decodeURI(e.email)!==decodeURIComponent(e.email)&&(t=decodeURIComponent(e.email)),this.store.applicationUsername=t}return new Promise((e,n)=>{this.store.order(t).then(e).error(t=>{this.errorLogs.addLog("Error ordering subscription from store.","app",!0),n()})})}))}restorePurchases(){return Object(r.a)(this,void 0,void 0,(function*(){this.store.refresh()}))}storeUpdate(){return Object(r.a)(this,void 0,void 0,(function*(){this.store.ready(()=>{this.store.update()})}))}}return t.\u0275fac=function(e){return new(e||t)(u.Tb(i.a),u.Tb(d.b),u.Tb(a.a),u.Tb(h.rb),u.Tb(s.a),u.Tb(c.a),u.Tb(l.a))},t.\u0275prov=u.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},ZL19:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("C6fG"),i=n("xgIS"),s=n("fXoL"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events={BANNER_LOAD:"admob.banner.events.LOAD",BANNER_LOAD_FAIL:"admob.banner.events.LOAD_FAIL",BANNER_OPEN:"admob.banner.events.OPEN",BANNER_CLOSE:"admob.banner.events.CLOSE",BANNER_EXIT_APP:"admob.banner.events.EXIT_APP",INTERSTITIAL_LOAD:"admob.interstitial.events.LOAD",INTERSTITIAL_LOAD_FAIL:"admob.interstitial.events.LOAD_FAIL",INTERSTITIAL_OPEN:"admob.interstitial.events.OPEN",INTERSTITIAL_CLOSE:"admob.interstitial.events.CLOSE",INTERSTITIAL_EXIT_APP:"admob.interstitial.events.EXIT_APP",REWARD_VIDEO_LOAD:"admob.rewardvideo.events.LOAD",REWARD_VIDEO_LOAD_FAIL:"admob.rewardvideo.events.LOAD_FAIL",REWARD_VIDEO_OPEN:"admob.rewardvideo.events.OPEN",REWARD_VIDEO_CLOSE:"admob.rewardvideo.events.CLOSE",REWARD_VIDEO_EXIT_APP:"admob.rewardvideo.events.EXIT_APP",REWARD_VIDEO_START:"admob.rewardvideo.events.START",REWARD_VIDEO_REWARD:"admob.rewardvideo.events.REWARD"},e.banner=new c,e.interstitial=new l,e.rewardVideo=new u,e}Object(r.c)(e,t),e.prototype.on=function(t){return Object(i.a)(document,t)},e.pluginName="AdMobFree",e.plugin="cordova-plugin-admob-free",e.pluginRef="admob",e.repo="https://github.com/ratson/cordova-plugin-admob-free",e.platforms=["Android","iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Rb(e);return e}(o.IonicNativePlugin),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.config=function(t){return Object(o.cordova)(this,"config",{sync:!0},arguments)},e.prototype.hide=function(){return Object(o.cordova)(this,"hide",{otherPromise:!0},arguments)},e.prototype.prepare=function(){return Object(o.cordova)(this,"prepare",{otherPromise:!0},arguments)},e.prototype.remove=function(){return Object(o.cordova)(this,"remove",{otherPromise:!0},arguments)},e.prototype.show=function(){return Object(o.cordova)(this,"show",{otherPromise:!0},arguments)},e.pluginName="AdMobFree",e.plugin="cordova-plugin-admob-free",e.pluginRef="admob.banner",e}(o.IonicNativePlugin),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.config=function(t){return Object(o.cordova)(this,"config",{sync:!0},arguments)},e.prototype.isReady=function(){return Object(o.cordova)(this,"isReady",{otherPromise:!0},arguments)},e.prototype.prepare=function(){return Object(o.cordova)(this,"prepare",{otherPromise:!0},arguments)},e.prototype.show=function(){return Object(o.cordova)(this,"show",{otherPromise:!0},arguments)},e.pluginName="AdMobFree",e.plugin="cordova-plugin-admob-free",e.pluginRef="admob.interstitial",e}(o.IonicNativePlugin),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.c)(e,t),e.prototype.config=function(t){return Object(o.cordova)(this,"config",{sync:!0},arguments)},e.prototype.isReady=function(){return Object(o.cordova)(this,"isReady",{otherPromise:!0},arguments)},e.prototype.prepare=function(){return Object(o.cordova)(this,"prepare",{otherPromise:!0},arguments)},e.prototype.show=function(){return Object(o.cordova)(this,"show",{otherPromise:!0},arguments)},e.pluginName="AdMobFree",e.plugin="cordova-plugin-admob-free",e.pluginRef="admob.rewardvideo",e}(o.IonicNativePlugin)},Zgba:function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return o}
1)),n.d(e,"e",(function(){return i}));var r=n("A36C");const o=t=>s(t),i=(t,e)=>("string"==typeof t&&(e=t,t=void 0),o(t).includes(e)),s=(t=window)=>{if(void 0===t)return[];t.Ionic=t.Ionic||{};let e=t.Ionic.platforms;return null==e&&(e=t.Ionic.platforms=a(t),e.forEach(e=>t.document.documentElement.classList.add(`plt-${e}`))),e},a=t=>Object.keys(b).filter(e=>b[e](t)),c=t=>!!f(t,/iPad/i)||!(!f(t,/Macintosh/i)||!u(t)),l=t=>f(t,/android|sink/i),u=t=>g(t,"(any-pointer:coarse)"),d=t=>h(t)||p(t),h=t=>!!(t.cordova||t.phonegap||t.PhoneGap),p=t=>{const e=t.Capacitor;return!(!e||!e.isNative)},f=(t,e)=>e.test(t.navigator.userAgent),g=(t,e)=>t.matchMedia(e).matches,b={ipad:c,iphone:t=>f(t,/iPhone/i),ios:t=>f(t,/iPhone|iPod/i)||c(t),android:l,phablet:t=>{const e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return r>390&&r<520&&o>620&&o<800},tablet:t=>{const e=t.innerWidth,n=t.innerHeight,r=Math.min(e,n),o=Math.max(e,n);return c(t)||(t=>l(t)&&!f(t,/mobile/i))(t)||r>460&&r<820&&o>780&&o<1400},cordova:h,capacitor:p,electron:t=>f(t,/electron/i),pwa:t=>!(!t.matchMedia("(display-mode: standalone)").matches&&!t.navigator.standalone),mobile:u,mobileweb:t=>u(t)&&!d(t),desktop:t=>!u(t),hybrid:d};class m{constructor(){this.m=new Map}reset(t){this.m=new Map(Object.entries(t))}get(t,e){const n=this.m.get(t);return void 0!==n?n:e}getBoolean(t,e=!1){const n=this.m.get(t);return void 0===n?e:"string"==typeof n?"true"===n:!!n}getNumber(t,e){const n=parseFloat(this.m.get(t));return isNaN(n)?void 0!==e?e:NaN:n}set(t,e){this.m.set(t,e)}}const v=new m;let y;const _=t=>t&&Object(r.i)(t)||y,w=()=>{const t=document,e=window,n=e.Ionic=e.Ionic||{};s(e);const o=Object.assign(Object.assign(Object.assign(Object.assign({},(t=>{try{const e=t.sessionStorage.getItem("ionic-persist-config");return null!==e?JSON.parse(e):{}}catch(e){return{}}})(e)),{persistConfig:!1}),n.config),(t=>{const e={};return t.location.search.slice(1).split("&").map(t=>t.split("=")).map(([t,e])=>[decodeURIComponent(t),decodeURIComponent(e)]).filter(([t])=>"ionic:"===t.substr(0,"ionic:".length)).map(([t,e])=>[t.slice("ionic:".length),e]).forEach(([t,n])=>{e[t]=n}),e})(e));v.reset(o),v.getBoolean("persistConfig")&&((t,e)=>{try{t.sessionStorage.setItem("ionic-persist-config",JSON.stringify(e))}catch(n){return}})(e,o),n.config=v,n.mode=y=v.get("mode",t.documentElement.getAttribute("mode")||(i(e,"ios")?"ios":"md")),v.set("mode",y),t.documentElement.setAttribute("mode",y),t.documentElement.classList.add(y),v.getBoolean("_testing")&&v.set("animated",!1);const a=t=>t.tagName&&t.tagName.startsWith("ION-"),c=t=>["ios","md"].includes(t);Object(r.p)(t=>{for(;t;){const e=t.mode||t.getAttribute("mode");if(e){if(c(e))return e;a(t)&&console.warn('Invalid ionic mode: "'+e+'", expected: "ios" or "md"')}t=t.parentElement}return y})}},"a/9d":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.DestinationType={DATA_URL:0,FILE_URI:1,NATIVE_URI:2},e.EncodingType={JPEG:0,PNG:1},e.MediaType={PICTURE:0,VIDEO:1,ALLMEDIA:2},e.PictureSourceType={PHOTOLIBRARY:0,CAMERA:1,SAVEDPHOTOALBUM:2},e.PopoverArrowDirection={ARROW_UP:1,ARROW_DOWN:2,ARROW_LEFT:4,ARROW_RIGHT:8,ARROW_ANY:15},e.Direction={BACK:0,FRONT:1},e}Object(r.c)(e,t),e.prototype.getPicture=function(t){return Object(o.cordova)(this,"getPicture",{callbackOrder:"reverse"},arguments)},e.prototype.cleanup=function(){return Object(o.cordova)(this,"cleanup",{platforms:["iOS"]},arguments)},e.pluginName="Camera",e.plugin="cordova-plugin-camera",e.pluginRef="navigator.camera",e.repo="https://github.com/apache/cordova-plugin-camera",e.platforms=["Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},aJZl:function(t,e,n){"use strict";n("HDdC"),n("yR3O")},bC4P:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(t,e,n,r,s)=>i(t[1],e[1],n[1],r[1],s).map(i=>o(t[0],e[0],n[0],r[0],i)),o=(t,e,n,r,o)=>o*(3*e*Math.pow(o-1,2)+o*(-3*n*o+3*n+r*o))-t*Math.pow(o-1,3),i=(t,e,n,r,o)=>s((r-=o)-3*(n-=o)+3*(e-=o)-(t-=o),3*n-6*e+3*t,3*e-3*t,t).filter(t=>t>=0&&t<=1),s=(t,e,n,r)=>{if(0===t)return((t,e,n)=>{const r=e*e-4*t*n;return r<0?[]:[(-e+Math.sqrt(r))/(2*t),(-e-Math.sqrt(r))/(2*t)]})(e,n,r);const o=(3*(n/=t)-(e/=t)*e)/3,i=(2*e*e*e-9*e*n+27*(r/=t))/27;
1if(0===o)return[Math.pow(-i,1/3)];if(0===i)return[Math.sqrt(-o),-Math.sqrt(-o)];const s=Math.pow(i/2,2)+Math.pow(o/3,3);if(0===s)return[Math.pow(i/2,.5)-e/3];if(s>0)return[Math.pow(-i/2+Math.sqrt(s),1/3)-Math.pow(i/2+Math.sqrt(s),1/3)-e/3];const a=Math.sqrt(Math.pow(-o/3,3)),c=Math.acos(-i/(2*Math.sqrt(Math.pow(-o/3,3)))),l=2*Math.pow(a,1/3);return[l*Math.cos(c/3)-e/3,l*Math.cos((c+2*Math.PI)/3)-e/3,l*Math.cos((c+4*Math.PI)/3)-e/3]}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ"),o=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(o.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("5+tZ");function o(t,e){return Object(r.a)(t,e,1)}},btv9:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("OMvp");let o;const i=t=>{if(void 0===o){const e=void 0!==t.style.webkitAnimationName;o=void 0===t.style.animationName&&e?"-webkit-":""}return o},s=(t,e,n)=>{const r=e.startsWith("animation")?i(t):"";t.style.setProperty(r+e,n)},a=(t,e)=>{const n=e.startsWith("animation")?i(t):"";t.style.removeProperty(n+e)},c=[],l=(t=[],e)=>{if(void 0!==e){const n=Array.isArray(e)?e:[e];return[...t,...n]}return t},u=t=>{let e,n,o,u,d,h,p,f,g,b,m,v,y,_=[],w=[],O=[],S=!1,E={},C=[],j=[],x={},P=0,I=!1,T=!1,k=!0,A=!1,D=!0;const R=t,M=[],N=[],$=[],L=[],V=[],F=[],U=[],B=[],z=[],H=[],G="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,q="function"==typeof Element&&"function"==typeof Element.prototype.animate&&G,W=(t,e)=>((e&&e.oneTimeCallback?N:M).push({c:t,o:e}),y),X=()=>{if(q)H.forEach(t=>{t.cancel()}),H.length=0;else{const t=$.slice();Object(r.n)(()=>{t.forEach(t=>{a(t,"animation-name"),a(t,"animation-duration"),a(t,"animation-timing-function"),a(t,"animation-iteration-count"),a(t,"animation-delay"),a(t,"animation-play-state"),a(t,"animation-fill-mode"),a(t,"animation-direction")})})}},K=()=>
1{V.forEach(t=>{t&&t.parentNode&&t.parentNode.removeChild(t)}),V.length=0},Y=()=>void 0!==d?d:p?p.getFill():"both",Z=()=>void 0!==g?g:void 0!==h?h:p?p.getDirection():"normal",Q=()=>I?"linear":void 0!==o?o:p?p.getEasing():"linear",J=()=>T?0:void 0!==b?b:void 0!==n?n:p?p.getDuration():0,tt=()=>void 0!==u?u:p?p.getIterations():1,et=()=>void 0!==m?m:void 0!==e?e:p?p.getDelay():0,nt=()=>{0!==P&&(P--,0===P&&((()=>{ut(),B.forEach(t=>t()),z.forEach(t=>t());const t=k?1:0,e=C,n=j,r=x;$.forEach(t=>{const o=t.classList;e.forEach(t=>o.add(t)),n.forEach(t=>o.remove(t));for(const e in r)r.hasOwnProperty(e)&&s(t,e,r[e])}),M.forEach(e=>e.c(t,y)),N.forEach(e=>e.c(t,y)),N.length=0,D=!0,k&&(A=!0),k=!0})(),p&&p.animationFinish()))},rt=(e=!0)=>{(()=>{F.forEach(t=>t()),U.forEach(t=>t());const t=w,e=O,n=E;$.forEach(r=>{const o=r.classList;t.forEach(t=>o.add(t)),e.forEach(t=>o.remove(t));for(const t in n)n.hasOwnProperty(t)&&s(r,t,n[t])})})(),_.length>0&&(q?($.forEach(t=>{const e=t.animate(_,{id:R,delay:et(),duration:J(),easing:Q(),iterations:tt(),fill:Y(),direction:Z()});e.pause(),H.push(e)}),H.length>0&&(H[0].onfinish=()=>{nt()})):((e=!0)=>{K();const n=((o=_).forEach(t=>{for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];if("easing"===e)t["animation-timing-function"]=n,delete t[e];else{const r=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();r!==e&&(t[r]=n,delete t[e])}}}),o);var o;$.forEach(o=>{if(n.length>0){const a=((t=[])=>t.map(t=>{const e=t.offset,n=[];for(const r in t)t.hasOwnProperty(r)&&"offset"!==r&&n.push(`${r}: ${t[r]};`);return`${100*e}% { ${n.join(" ")} }`}).join(" "))(n);v=void 0!==t?t:(t=>{let e=c.indexOf(t);return e<0&&(e=c.push(t)-1),`ion-animation-${e}`})(a);const l=((t,e,n)=>{const r=(t=>{const e=t.getRootNode();return e.head||e})(n),o=i(n),s=r.querySelector("#"+t);if(s)return s;const a=(n.ownerDocument||document).createElement("style");return a.id=t,a.textContent=`@${o}keyframes ${t} { ${e} } @${o}keyframes ${t}-alt { ${e} }`,r.appendChild(a),a})(v,a,o);V.push(l),s(o,"animation-duration",`${J()}ms`),s(o,"animation-timing-function",Q()),s(o,"animation-delay",`${et()}ms`),s(o,"animation-fill-mode",Y()),s(o,"animation-direction",Z());const u=tt()===1/0?"infinite":tt().toString();s(o,"animation-iteration-count",u),s(o,"animation-play-state","paused"),e&&s(o,"animation-name",`${l.id}-alt`),Object(r.n)(()=>{s(o,"animation-name",l.id||null)})}})})(e)),S=!0},ot=t=>{if(t=Math.min(Math.max(t,0),.9999),q)H.forEach(e=>{e.currentTime=e.effect.getComputedTiming().delay+J()*t,e.pause()});else{const e=`-${J()*t}ms`;$.forEach(t=>{_.length>0&&(s(t,"animation-delay",e),s(t,"animation-play-state","paused"))})}},it=t=>{H.forEach(t=>{t.effect.updateTiming({delay:et(),duration:J(),easing:Q(),iterations:tt(),fill:Y(),direction:Z()})}),void 0!==t&&ot(t)},st=(t=!0,e)=>{Object(r.n)(()=>{$.forEach(n=>{s(n,"animation-name",v||null),s(n,"animation-duration",`${J()}ms`),s(n,"animation-timing-function",Q()),s(n,"animation-delay",void 0!==e?`-${e*J()}ms`:`${et()}ms`),s(n,"animation-fill-mode",Y()||null),s(n,"animation-direction",Z()||null);const o=tt()===1/0?"infinite":tt().toString();s(n,"animation-iteration-count",o),t&&s(n,"animation-name",`${v}-alt`),Object(r.n)(()=>{s(n,"animation-name",v||null)})})})},at=(t=!1,e=!0,n)=>(t&&L.forEach(r=>{r.update(t,e,n)}),q?it(n):st(e,n),y),ct=()=>{S&&(q?H.forEach(t=>{t.pause()}):$.forEach(t=>{s(t,"animation-play-state","paused")}))},lt=()=>{f=void 0,nt()},ut=()=>{f&&clearTimeout(f)},dt=t=>new Promise(e=>{t&&t.sync&&(T=!0,W(()=>T=!1,{oneTimeCallback:!0})),S||rt(),A&&(q?(ot(0),it()):st(),A=!1),D&&(P=L.length+1,D=!1),W(()=>e(),{oneTimeCallback:!0}),L.forEach(t=>{t.play()}),q?(H.forEach(t=>{t.play()}),0!==_.length&&0!==$.length||nt()):(()=>{if(ut(),Object(r.n)(()=>{$.forEach(t=>{_.length>0&&s(t,"animation-play-state","running")})}),0===_.length||0===$.length)nt();else{const t=et()||0,e=J()||0,n=tt()||1;isFinite(n)&&(f=setTimeout(lt,t+e*n+100)),((t,e)=>{let n;const o={passive:!0},i=e=>{t===e.target&&(n&&n(),ut(),Object(r.n)(()=>{$.forEach(t=>{a(t,"animation-duration"),a(t,"animation-delay"),a(t,"animation-play-state")}),Object(r.n)(nt)}))};t&&(t.addEventListener("webkitAnimationEnd",i,o),t.addEventListener("animationend",i,o),n=()=>{t.removeEventListener("webkitAnimationEnd",i,o),t.removeEventListener("animationend",i,o)})})($[0])}})()}),ht=(t,e)=>{const n=_[0];return void 0===n||void 0!==n.offset&&0!==n.offset?_=[{offset:0,[t]:e},..._]:n[t]=e,y};return y={parentAnimation:p,elements:$,childAnimations:L,id:R,animationFinish:nt,from:ht,to:(t,e)=>{const n=_[_.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?_=[..._,{offset:1,[t]:e}]:n[t]=e,y},fromTo:(t,e,n)=>ht(t,e).to(t,n),parent:t=>(p=t,y),play:dt,pause:()=>(L.forEach(t=>{t.pause()}),ct(),y),stop:()=>
1{L.forEach(t=>{t.stop()}),S&&(X(),S=!1),I=!1,T=!1,D=!0,g=void 0,b=void 0,m=void 0,P=0,A=!1,k=!0},destroy:t=>(L.forEach(e=>{e.destroy(t)}),(t=>{X(),t&&K()})(t),$.length=0,L.length=0,_.length=0,M.length=0,N.length=0,S=!1,D=!0,y),keyframes:t=>(_=t,y),addAnimation:t=>{if(null!=t)if(Array.isArray(t))for(const e of t)e.parent(y),L.push(e);else t.parent(y),L.push(t);return y},addElement:t=>{if(null!=t)if(1===t.nodeType)$.push(t);else if(t.length>=0)for(let e=0;e<t.length;e++)$.push(t[e]);else console.error("Invalid addElement value");return y},update:at,fill:t=>(d=t,at(!0),y),direction:t=>(h=t,at(!0),y),iterations:t=>(u=t,at(!0),y),duration:t=>(q||0!==t||(t=1),n=t,at(!0),y),easing:t=>(o=t,at(!0),y),delay:t=>(e=t,at(!0),y),getWebAnimations:()=>H,getKeyframes:()=>_,getFill:Y,getDirection:Z,getDelay:et,getIterations:tt,getEasing:Q,getDuration:J,afterAddRead:t=>(B.push(t),y),afterAddWrite:t=>(z.push(t),y),afterClearStyles:(t=[])=>{for(const e of t)x[e]="";return y},afterStyles:(t={})=>(x=t,y),afterRemoveClass:t=>(j=l(j,t),y),afterAddClass:t=>(C=l(C,t),y),beforeAddRead:t=>(F.push(t),y),beforeAddWrite:t=>(U.push(t),y),beforeClearStyles:(t=[])=>{for(const e of t)E[e]="";return y},beforeStyles:(t={})=>(E=t,y),beforeRemoveClass:t=>(O=l(O,t),y),beforeAddClass:t=>(w=l(w,t),y),onFinish:W,progressStart:(t=!1,e)=>(L.forEach(n=>{n.progressStart(t,e)}),ct(),I=t,S?at(!1,!0,e):rt(),y),progressStep:t=>(L.forEach(e=>{e.progressStep(t)}),ot(t),y),progressEnd:(t,e,n)=>(I=!1,L.forEach(r=>{r.progressEnd(t,e,n)}),void 0!==n&&(b=n),A=!1,k=!0,0===t?(g="reverse"===Z()?"normal":"reverse","reverse"===g&&(k=!1),q?(at(),ot(1-e)):(m=(1-e)*J()*-1,at(!1,!1))):1===t&&(q?(at(),ot(e)):(m=e*J()*-1,at(!1,!1))),void 0!==t&&(W(()=>{b=void 0,g=void 0,m=void 0},{oneTimeCallback:!0}),p||dt()),y)}}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},crnd: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="crnd"},e8h1:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n("fXoL"),o=n("oAJy"),i=n("uzCt");class s{constructor(t){this._driver=null,this._dbPromise=new Promise((e,n)=>{let r;const s=Object.assign({name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},t||{});Object(o.defineDriver)(i).then(()=>{r=Object(o.createInstance)(s)}).then(()=>r.setDriver(this._getDriverOrder(s.driverOrder))).then(()=>{this._driver=r.driver(),e(r)}).catch(t=>n(t))})}get driver(){return this._driver}ready(){return this._dbPromise}_getDriverOrder(t){return t.map(t=>{switch(t){case"sqlite":return i._driver;case"indexeddb":return o.INDEXEDDB;case"websql":return o.WEBSQL;case"localstorage":return o.LOCALSTORAGE}})}get(t){return this._dbPromise.then(e=>e.getItem(t))}set(t,e){return this._dbPromise.then(n=>n.setItem(t,e))}remove(t){return this._dbPromise.then(e=>e.removeItem(t))}clear(){return this._dbPromise.then(t=>t.clear())}length(){return this._dbPromise.then(t=>t.length())}keys(){return this._dbPromise.then(t=>t.keys())}forEach(t){return this._dbPromise.then(e=>e.iterate(t))}}const a=new r.q("STORAGE_CONFIG_TOKEN");function c(t){return new s(t||{name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]})}let l=(()=>{class t{static forRoot(e=null){return{ngModule:t,providers:[{provide:a,useValue:e},{provide:s,useFactory:c,deps:[a]}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})()},eHpL:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),Object.defineProperty(e.prototype,"convertFileSrc",{get:function(){return Object(o.cordovaPropertyGet)(this,"convertFileSrc")},set:function(t){Object(o.cordovaPropertySet)(this,"convertFileSrc",t)},enumerable:!0,configurable:!0}),e.pluginName="WebView",e.plugin="cordova-plugin-ionic-webview",e.pluginRef="window.Ionic.WebView",e.repo="https://github.com/ionic-team/cordova-plugin-ionic-webview",e.platforms=["Android","iOS"],e.install="ionic cordova plugin add cordova-plugin-ionic-webview",e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("lJxs"),o=n("Cfvw"),i=n("zx2A");function s(t,e){return"function"==typeof e?n=>n.pipe(s((n,i)=>Object(o.a)(t(n,i)).pipe(Object(r.a)((t,r)=>e(n,t,i,r))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends i.b{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(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return vi})),n.d(e,"b",(function(){return Sc}
1)),n.d(e,"c",(function(){return vc})),n.d(e,"d",(function(){return bc})),n.d(e,"e",(function(){return mc})),n.d(e,"f",(function(){return gl})),n.d(e,"g",(function(){return il})),n.d(e,"h",(function(){return ei})),n.d(e,"i",(function(){return Rc})),n.d(e,"j",(function(){return Ks})),n.d(e,"k",(function(){return jc})),n.d(e,"l",(function(){return Ys})),n.d(e,"m",(function(){return sn})),n.d(e,"n",(function(){return Ka})),n.d(e,"o",(function(){return q})),n.d(e,"p",(function(){return l})),n.d(e,"q",(function(){return G})),n.d(e,"r",(function(){return mi})),n.d(e,"s",(function(){return ga})),n.d(e,"t",(function(){return ba})),n.d(e,"u",(function(){return Cc})),n.d(e,"v",(function(){return at})),n.d(e,"w",(function(){return al})),n.d(e,"x",(function(){return st})),n.d(e,"y",(function(){return tl})),n.d(e,"z",(function(){return Lc})),n.d(e,"A",(function(){return u})),n.d(e,"B",(function(){return Oc})),n.d(e,"C",(function(){return wc})),n.d(e,"D",(function(){return ta})),n.d(e,"E",(function(){return Qs})),n.d(e,"F",(function(){return Js})),n.d(e,"G",(function(){return na})),n.d(e,"H",(function(){return Wn})),n.d(e,"I",(function(){return h})),n.d(e,"J",(function(){return ul})),n.d(e,"K",(function(){return _a})),n.d(e,"L",(function(){return qc})),n.d(e,"M",(function(){return ra})),n.d(e,"N",(function(){return Oa})),n.d(e,"O",(function(){return bt})),n.d(e,"P",(function(){return ji})),n.d(e,"Q",(function(){return el})),n.d(e,"R",(function(){return m})),n.d(e,"S",(function(){return En})),n.d(e,"T",(function(){return T})),n.d(e,"U",(function(){return nt})),n.d(e,"V",(function(){return Sn})),n.d(e,"W",(function(){return pl})),n.d(e,"X",(function(){return Kc})),n.d(e,"Y",(function(){return Ec})),n.d(e,"Z",(function(){return ri})),n.d(e,"ab",(function(){return $a})),n.d(e,"bb",(function(){return Gn})),n.d(e,"cb",(function(){return Yn})),n.d(e,"db",(function(){return Pn})),n.d(e,"eb",(function(){return fn})),n.d(e,"fb",(function(){return bn})),n.d(e,"gb",(function(){return _n})),n.d(e,"hb",(function(){return vn})),n.d(e,"ib",(function(){return mn})),n.d(e,"jb",(function(){return yn})),n.d(e,"kb",(function(){return Da})),n.d(e,"lb",(function(){return hl})),n.d(e,"mb",(function(){return Ra})),n.d(e,"nb",(function(){return Ma})),n.d(e,"ob",(function(){return gn})),n.d(e,"pb",(function(){return $})),n.d(e,"qb",(function(){return xi})),n.d(e,"rb",(function(){return Wi})),n.d(e,"sb",(function(){return qi})),n.d(e,"tb",(function(){return Ci})),n.d(e,"ub",(function(){return Aa})),n.d(e,"vb",(function(){return Oe})),n.d(e,"wb",(function(){return x})),n.d(e,"xb",(function(){return pn})),n.d(e,"yb",(function(){return Ts})),n.d(e,"zb",(function(){return Ns})),n.d(e,"Ab",(function(){return qs})),n.d(e,"Bb",(function(){return xr})),n.d(e,"Cb",(function(){return Ai})),n.d(e,"Db",(function(){return ps})),n.d(e,"Eb",(function(){return hs})),n.d(e,"Fb",(function(){return uc})),n.d(e,"Gb",(function(){return wt})),n.d(e,"Hb",(function(){return Pt})),n.d(e,"Ib",(function(){return b})),n.d(e,"Jb",(function(){return v})),n.d(e,"Kb",(function(){return Ct})),n.d(e,"Lb",(function(){return It})),n.d(e,"Mb",(function(){return $i})),n.d(e,"Nb",(function(){return Hi})),n.d(e,"Ob",(function(){return zi})),n.d(e,"Pb",(function(){return Bi})),n.d(e,"Qb",(function(){return Gi})),n.d(e,"Rb",(function(){return en})),n.d(e,"Sb",(function(){return Ps})),n.d(e,"Tb",(function(){return et})),n.d(e,"Ub",(function(){return Li})),n.d(e,"Vb",(function(){return gc})),n.d(e,"Wb",(function(){return Vi})),n.d(e,"Xb",(function(){return Xi})),n.d(e,"Yb",(function(){return dc})),n.d(e,"Zb",(function(){return pe})),n.d(e,"ac",(function(){return he})),n.d(e,"bc",(function(){return Zi})),n.d(e,"cc",(function(){return Wa})),n.d(e,"dc",(function(){return Xa})),n.d(e,"ec",(function(){return ts})),n.d(e,"fc",(function(){return Ji})),n.d(e,"gc",(function(){return Fi})),n.d(e,"hc",(function(){return es})),n.d(e,"ic",(function(){return ns})),n.d(e,"jc",(function(){return rs})),n.d(e,"kc",(function(){return Ha})),n.d(e,"lc",(function(){return Ga})),n.d(e,"mc",(function(){return sc})),n.d(e,"nc",(function(){return Ni})),n.d(e,"oc",(function(){return Ht})),n.d(e,"pc",(function(){return Zn})),n.d(e,"qc",(function(){return Jn})),n.d(e,"rc",(function(){return Qn})),n.d(e,"sc",(function(){return jt})),n.d(e,"tc",(function(){return ac})),n.d(e,"uc",(function(){return ds})),n.d(e,"vc",(function(){return Mi})),n.d(e,"wc",(function(){return Es})),n.d(e,"xc",(function(){return Cs})),n.d(e,"yc",(function(){return js})),n.d(e,"zc",(function(){return xs})),n.d(e,"Ac",(function(){return cc}));var r=n("XNiG"),o=n("quSY"),i=n("HDdC"),s=n("VRyK"),a=n("w1tV");function c(t,e,n){const r=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 r.apply(this,t),this;const e=new o(...t);return n.annotation=e,n;function n(t,n,r){const o=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(e),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}const l=c("Inject",t=>({token:t})),u=c("Optional"),d=c("Self"),h=c("SkipSelf");var p=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 f(t){for(let e in t)if(t[e]===f)return e;throw Error("Could not find renamed property on target object.")}function g(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const m=b;function v(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return _(t,t[O])||_(t,t[C])}function _(t,e){return e&&e.token===t?e:null}function w(t){return t&&(t.hasOwnProperty(S)||t.hasOwnProperty(j))?t[S]:null}const O=f({"\u0275prov":f}),S=f({"\u0275inj":f}),E=f({"\u0275provFallback":f}),C=f({ngInjectableDef:f}),j=f({ngInjectorDef:f});function x(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(x).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 P(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const I=f({__forward_ref__:f});function T(t){return t.__forward_ref__=T,t.toString=function(){return x(this())},t}function k(t){return A(t)?t():t}function A(t){return"function"==typeof t&&t.hasOwnProperty(I)&&t.__forward_ref__===T}const D="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,M="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,N="undefined"!=typeof global&&global,$=D||N||R||M,L=f({"\u0275cmp":f}),V=f({"\u0275dir":f}),F=f({"\u0275pipe":f}),U=f({"\u0275mod":f}),B=f({"\u0275loc":f}),z=f({"\u0275fac":f}),H=f({__NG_ELEMENT_ID__:f});class G{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=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const q=new G("INJECTOR",-1),W={},X=/\n/gm,K=f({provide:String,useValue:f});let Y,Z=void 0;function Q(t){const e=Z;return Z=t,e}function J(t){const e=Y;return Y=t,e}function tt(t,e=p.Default){if(void 0===Z)throw new Error("inject() must be called from an injection context");return null===Z?rt(t,void 0,e):Z.get(t,e&p.Optional?null:void 0,e)}function et(t,e=p.Default){return(Y||tt)(k(t),e)}const nt=et;function rt(t,e,n){const r=y(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${x(t)}]`)}function ot(t){const e=[];for(let n=0;n<t.length;n++){const r=k(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=p.Default;for(let e=0;e<r.length;e++){const o=r[e];o instanceof u||"Optional"===o.ngMetadataName||o===u?n|=p.Optional:o instanceof h||"SkipSelf"===o.ngMetadataName||o===h?n|=p.SkipSelf:o instanceof d||"Self"===o.ngMetadataName||o===d?n|=p.Self:t=o instanceof l||o===l?o.token:o}
1e.push(et(t,n))}else e.push(et(r))}return e}class it{get(t,e=W){if(e===W){const e=new Error(`NullInjectorError: No provider for ${x(t)}!`);throw e.name="NullInjectorError",e}return e}}class st{}class at{}function ct(t,e){t.forEach(t=>Array.isArray(t)?ct(t,e):e(t))}function lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ut(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function dt(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}function ht(t,e,n){let r=ft(t,e);return r>=0?t[1|r]=n:(r=~r,function(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,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]=r}}(t,r,e,n)),r}function pt(t,e){const n=ft(t,e);if(n>=0)return t[1|n]}function ft(t,e){return function(t,e,n){let r=0,o=t.length>>1;for(;o!==r;){const n=r+(o-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?o=n:r=n+1}return~(o<<1)}(t,e)}const gt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),bt=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}();function mt(t){return""+{toString:t}}const vt={},yt=[];let _t=0;function wt(t){const e=t.type,n=e.prototype,r={},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:r,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===gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||yt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||bt.Emulated,id:"c",styles:t.styles||yt,_:null,setInput:null,schemas:t.schemas||null,tView:null};return o._=mt(()=>{const e=t.directives,n=t.features,i=t.pipes;o.id+=_t++,o.inputs=xt(t.inputs,r),o.outputs=xt(t.outputs),n&&n.forEach(t=>t(o)),o.directiveDefs=e?()=>("function"==typeof e?e():e).map(Ot):null,o.pipeDefs=i?()=>("function"==typeof i?i():i).map(St):null}),o}function Ot(t){return Tt(t)||function(t){return t[V]||null}(t)}function St(t){return function(t){return t[F]||null}(t)}const Et={};function Ct(t){const e={type:t.type,bootstrap:t.bootstrap||yt,declarations:t.declarations||yt,imports:t.imports||yt,exports:t.exports||yt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&mt(()=>{Et[t.id]=t.type}),e}function jt(t,e){return mt(()=>{const n=At(t,!0);n.declarations=e.declarations||yt,n.imports=e.imports||yt,n.exports=e.exports||yt})}function xt(t,e){if(null==t)return vt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const Pt=wt;function It(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Tt(t){return t[L]||null}function kt(t,e){return t.hasOwnProperty(z)?t[z]:null}function At(t,e){const n=t[U]||null;if(!n&&!0===e)throw new Error(`Type ${x(t)} does not have '\u0275mod' property.`);return n}function Dt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Rt(t){return Array.isArray(t)&&!0===t[1]}function Mt(t){return 0!=(8&t.flags)}function Nt(t){return 2==(2&t.flags)}function $t(t){return 1==(1&t.flags)}function Lt(t){return null!==t.template}function Vt(t){return 0!=(512&t[2])}const Ft={lFrame:ce(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ut(){return Ft.bindingsEnabled}function Bt(){return Ft.lFrame.lView}function zt(){return Ft.lFrame.tView}function Ht(t){Ft.lFrame.contextLView=t}function Gt(){return Ft.lFrame.previousOrParentTNode}function qt(t,e){Ft.lFrame.previousOrParentTNode=t,Ft.lFrame.isParent=e}function Wt(){return Ft.lFrame.isParent}function Xt(){Ft.lFrame.isParent=!1}
1function Kt(){return Ft.checkNoChangesMode}function Yt(t){Ft.checkNoChangesMode=t}function Zt(){const t=Ft.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Ft.lFrame.bindingIndex}function Jt(){return Ft.lFrame.bindingIndex++}function te(t){const e=Ft.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ee(t,e){const n=Ft.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function ne(){return Ft.lFrame.currentQueryIndex}function re(t){Ft.lFrame.currentQueryIndex=t}function oe(t,e){const n=ae();Ft.lFrame=n,n.previousOrParentTNode=e,n.lView=t}const ie=le;function se(t,e){const n=ae(),r=t[1];Ft.lFrame=n,n.previousOrParentTNode=e,n.isParent=!0,n.lView=t,n.tView=r,n.selectedIndex=0,n.contextLView=t,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.currentSanitizer=null,n.bindingRootIndex=-1,n.bindingIndex=r.bindingStartIndex,n.currentQueryIndex=0}function ae(){const t=Ft.lFrame,e=null===t?null:t.child;return null===e?ce(t):e}function ce(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 le(){Ft.lFrame=Ft.lFrame.parent}function ue(){return Ft.lFrame.selectedIndex}function de(t){Ft.lFrame.selectedIndex=t}function he(){Ft.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function pe(){Ft.lFrame.currentNamespace=null}function fe(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;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 ge(t,e,n){ve(t,e,3,n)}function be(t,e,n,r){(3&t[2])===n&&ve(t,e,n,r)}function me(t,e){let n=t[2];(3&n)===e&&(n&=1023,n+=1,t[2]=n)}function ve(t,e,n,r){const o=null!=r?r:-1;let i=0;for(let s=void 0!==r?65535&t[18]:0;s<e.length;s++)if("number"==typeof e[s+1]){if(i=e[s],null!=r&&i>=r)break}else e[s]<0&&(t[18]+=65536),(i<o||-1==o)&&(ye(t,n,e,s),t[18]=(4294901760&t[18])+s+2),s++}function ye(t,e,n,r){const o=n[r]<0,i=n[r+1],s=t[o?-n[r]:n[r]];o?t[2]>>10<t[18]>>16&&(3&t[2])===e&&(t[2]+=1024,i.call(s)):i.call(s)}class _e{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}let we=void 0;function Oe(t){we=t}function Se(){return void 0!==we?we:"undefined"!=typeof document?document:void 0}function Ee(t){return!!t.listen}const Ce={createRenderer:(t,e)=>Se()};function je(t,e,n){const r=Ee(t);let o=0;for(;o<n.length;){const i=n[o];if("number"==typeof i){if(0!==i)break;o++;const s=n[o++],a=n[o++],c=n[o++];r?t.setAttribute(e,a,c,s):e.setAttributeNS(s,a,c)}else{const s=i,a=n[++o];Pe(s)?r&&t.setProperty(e,s,a):r?t.setAttribute(e,s,a):e.setAttribute(s,a),o++}}return o}function xe(t){return 3===t||4===t||6===t}function Pe(t){return 64===t.charCodeAt(0)}function Ie(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?n=o:0===n||Te(t,n,o,null,-1===n||2===n?e[++r]:null)}}return t}function Te(t,e,n,r,o){let i=0,s=t.length;if(-1===e)s=-1;else for(;i<t.length;){const n=t[i++];if("number"==typeof n){if(n===e){s=-1;break}if(n>e){s=i-1;break}}}for(;i<t.length;){const e=t[i];if("number"==typeof e)break;if(e===n){if(null===r)return void(null!==o&&(t[i+1]=o));if(r===t[i+1])return void(t[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}
1-1!==s&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,n),null!==r&&t.splice(i++,0,r),null!==o&&t.splice(i++,0,o)}function ke(t){return-1!==t}function Ae(t){return 32767&t}function De(t){return t>>16}function Re(t,e){let n=De(t),r=e;for(;n>0;)r=r[15],n--;return r}function Me(t){return"string"==typeof t?t:null==t?"":""+t}function Ne(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Me(t)}const $e=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($))();function Le(t){return t instanceof Function?t():t}let Ve=!0;function Fe(t){const e=Ve;return Ve=t,e}let Ue=0;function Be(t,e){const n=He(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,ze(r.data,t),ze(e,null),ze(r.blueprint,null));const o=Ge(t,e),i=t.injectorIndex;if(ke(o)){const t=Ae(o),n=Re(o,e),r=n[1].data;for(let o=0;o<8;o++)e[i+o]=n[t+o]|r[t+o]}return e[i+8]=o,i}function ze(t,e){t.push(0,0,0,0,0,0,0,0,e)}function He(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Ge(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function qe(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[H]:n.charCodeAt(0)||0;null==r&&(r=n[H]=Ue++);const o=255&r,i=1<<o,s=64&o,a=32&o,c=e.data;128&o?s?a?c[t+7]|=i:c[t+6]|=i:a?c[t+5]|=i:c[t+4]|=i:s?a?c[t+3]|=i:c[t+2]|=i:a?c[t+1]|=i:c[t]|=i}(t,e,n)}function We(t,e,n,r=p.Default,o){if(null!==t){const o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t[H];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){oe(e,t);try{const t=o();if(null!=t||r&p.Optional)return t;throw new Error(`No provider for ${Ne(n)}!`)}finally{ie()}}else if("number"==typeof o){if(-1===o)return new tn(t,e);let i=null,s=He(t,e),a=-1,c=r&p.Host?e[16][6]:null;for((-1===s||r&p.SkipSelf)&&(a=-1===s?Ge(t,e):e[s+8],Je(r,!1)?(i=e[1],s=Ae(a),e=Re(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(Qe(o,s,t.data)){const t=Ke(s,e,n,i,r,c);if(t!==Xe)return t}Je(r,e[1].data[s+8]===c)&&Qe(o,s,e)?(i=t,s=Ae(a),e=Re(a,e)):s=-1}}}if(r&p.Optional&&void 0===o&&(o=null),0==(r&(p.Self|p.Host))){const t=e[9],i=J(void 0);try{return t?t.get(n,o,r&p.Optional):rt(n,o,r&p.Optional)}finally{J(i)}}if(r&p.Optional)return o;throw new Error(`NodeInjector: NOT_FOUND [${Ne(n)}]`)}const Xe={};function Ke(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=Ye(a,s,n,null==r?Nt(a)&&Ve:r!=s&&3===a.type,o&p.Host&&i===a);return null!==c?Ze(e,s,c,a):Xe}function Ye(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=65535&i,c=t.directiveStart,l=i>>16,u=o?a+l:t.directiveEnd;for(let d=r?a:a+l;d<u;d++){const t=s[d];if(d<c&&n===t||d>=c&&t.type===n)return d}if(o){const t=s[c];if(t&&Lt(t)&&t.type===n)return c}return null}function Ze(t,e,n,r){let o=t[n];const i=e.data;if(o instanceof _e){const s=o;if(s.resolving)throw new Error(`Circular dep for ${Ne(i[n])}`);const a=Fe(s.canSeeViewProviders);let c;s.resolving=!0,s.injectImpl&&(c=J(s.injectImpl)),oe(t,r);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:o,doCheck:i}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{s.injectImpl&&J(c),Fe(a),s.resolving=!1,ie()}}return o}function Qe(t,e,n){const r=64&t,o=32&t;let i;return i=128&t?r?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:r?o?n[e+3]:n[e+2]:o?n[e+1]:n[e],!!(i&1<<t)}function Je(t,e){return!(t&p.Self||t&p.Host&&e)}class tn{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return We(this._tNode,this._lView,t,void 0,e)}}function en(t){const e=Object.getPrototypeOf(t.prototype).constructor,n=e[z]||function t(e){const n=e;if(A(e))return()=>{const e=t(k(n));return e?e():null};let r=kt(n);if(null===r){const t=w(n);r=t&&t.factory}return r||null}(e);return null!==n?n:t=>new t}function nn(t){return t.ngDebugContext}function rn(t){return t.ngOriginalError}function on(t,...e){t.error(...e)}class sn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||on}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?nn(t)?nn(t):this._findContext(rn(t)):null}_findOriginalError(t){let e=rn(t);for(;e&&rn(e);)e=rn(e);return e}}class an{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}`+" (see http://g.co/ng/security#xss)"}}class cn extends an{getTypeName(){return"HTML"}}class ln extends an{getTypeName(){return"Style"}}
1class un extends an{getTypeName(){return"Script"}}class dn extends an{getTypeName(){return"URL"}}class hn extends an{getTypeName(){return"ResourceURL"}}function pn(t){return t instanceof an?t.changingThisBreaksApplicationSecurity:t}function fn(t,e){const n=gn(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 gn(t){return t instanceof an&&t.getTypeName()||null}function bn(t){return new cn(t)}function mn(t){return new ln(t)}function vn(t){return new un(t)}function yn(t){return new dn(t)}function _n(t){return new hn(t)}let wn=!0,On=!1;function Sn(){return On=!0,wn}function En(){if(On)throw new Error("Cannot enable prod mode after platform setup.");wn=!1}class Cn{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(r){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 r=e.length-1;0<r;r--){const n=e.item(r).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 jn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,xn=/^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 Pn(t){return(t=String(t)).match(jn)||t.match(xn)?t:(Sn()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function In(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Tn(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const kn=In("area,br,col,hr,img,wbr"),An=In("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Dn=In("rp,rt"),Rn=Tn(Dn,An),Mn=Tn(kn,Tn(An,In("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")),Tn(Dn,In("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")),Rn),Nn=In("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$n=In("srcset"),Ln=Tn(Nn,$n,In("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"),In("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")),Vn=In("script,style,template");class Fn{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(!Mn.hasOwnProperty(e))return this.sanitizedSomething=!0,!Vn.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let o=0;o<n.length;o++){const t=n.item(o),e=t.name,i=e.toLowerCase();if(!Ln.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let s=t.value;Nn[i]&&(s=Pn(s)),$n[i]&&(r=s,s=(r=String(r)).split(",").map(t=>Pn(t.trim())).join(", ")),this.buf.push(" ",e,'="',zn(s),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Mn.hasOwnProperty(e)&&!kn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(zn(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 Un=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bn=/([^\#-~ |!])/g;function zn(t){return t.replace(/&/g,"&").replace(Un,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Bn,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}let Hn;function Gn(t,e){let n=null;try{Hn=Hn||new Cn(t);let r=e?String(e):"";n=Hn.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Hn.getInertBodyElement(r)}while(r!==i);const s=new Fn,a=s.sanitizeChildren(qn(n)||n);return Sn()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=qn(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function qn(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Wn=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}(),Xn=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"),Kn=/^url\(([^)]+)\)$/;function Yn(t){if(!(t=String(t).trim()))return"";const e=t.match(Kn);return e&&Pn(e[1])===e[1]||t.match(Xn)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(Sn()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}function Zn(t){const e=tr();return e?e.sanitize(Wn.HTML,t)||"":fn(t,"HTML")?pn(t):Gn(Se(),Me(t))}function Qn(t){const e=tr();return e?e.sanitize(Wn.URL,t)||"":fn(t,"URL")?pn(t):Pn(Me(t))}function Jn(t){const e=tr();if(e)return e.sanitize(Wn.RESOURCE_URL,t)||"";if(fn(t,"ResourceURL"))return pn(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function tr(){const t=Bt();return t&&t[12]}function er(t){for(;Array.isArray(t);)t=t[0];return(t)}function nr(t,e){return er(e[t+19])}function rr(t,e){return er(e[t.index])}function or(t,e){return t.data[e+19]}function ir(t,e){return t[e+19]}function sr(t,e){const n=e[t];return Dt(n)?n:n[0]}function ar(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function cr(t){return 4==(4&t[2])}function lr(t){return 128==(128&t[2])}function ur(t,e){return null===t||null==e?null:t[e]}function dr(t){t[18]=0}function hr(t,e){t.__ngContext__=e}function pr(t){throw new Error(`Multiple components match node with tagname ${t.tagName}`)}function fr(){throw new Error("Cannot mix multi providers and regular providers")}function gr(t,e,n){let r=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===r||t.charCodeAt(o+n)<=32)return o}n=o+1}}function br(t,e,n){let r=0;for(;r<t.length;){let o=t[r++];if(n&&"class"===o){if(o=t[r],-1!==gr(o.toLowerCase(),e,0))return!0}else if(1===o){for(;r<t.length&&"string"==typeof(o=t[r++]);
1)if(o.toLowerCase()===e)return!0;return!1}}return!1}function mr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function vr(t,e,n){let r=4;const o=t.attrs||[],i=function(t){for(let e=0;e<t.length;e++)if(xe(t[e]))return e;return t.length}(o);let s=!1;for(let a=0;a<e.length;a++){const c=e[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!mr(t,c,n)||""===c&&1===e.length){if(yr(r))return!1;s=!0}}else{const l=8&r?c:e[++a];if(8&r&&null!==t.attrs){if(!br(t.attrs,l,n)){if(yr(r))return!1;s=!0}continue}const u=_r(8&r?"class":c,o,0==t.type&&"ng-template"!==t.tagName,n);if(-1===u){if(yr(r))return!1;s=!0;continue}if(""!==l){let t;t=u>i?"":o[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==gr(e,l,0)||2&r&&l!==t){if(yr(r))return!1;s=!0}}}}else{if(!s&&!yr(r)&&!yr(c))return!1;if(s&&yr(c))continue;s=!1,r=c|1&r}}return yr(r)||s}function yr(t){return 0==(1&t)}function _r(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let n=!1;for(;o<e.length;){const r=e[o];if(r===t)return o;if(3===r||6===r)n=!0;else{if(1===r||2===r){let t=e[++o];for(;"string"==typeof t;)t=e[++o];continue}if(4===r)break;
1if(0===r){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;){if(t[n]===e)return n;n++}return-1}(e,t)}function wr(t,e,n=!1){for(let r=0;r<e.length;r++)if(vr(t,e[r],n))return!0;return!1}function Or(t,e){t:for(let n=0;n<e.length;n++){const r=e[n];if(t.length===r.length){for(let e=0;e<t.length;e++)if(t[e]!==r[e])continue t;return!0}}return!1}function Sr(t,e){return t?":not("+e.trim()+")":e}function Er(t){let e=t[0],n=1,r=2,o="",i=!1;for(;n<t.length;){let s=t[n];if("string"==typeof s)if(2&r){const e=t[++n];o+="["+s+(e.length>0?'="'+e+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""===o||yr(s)||(e+=Sr(i,o),o=""),r=s,i=i||!yr(r);n++}return""!==o&&(e+=Sr(i,o)),e}const Cr={};function jr(t){const e=t[3];return Rt(e)?e[3]:e}function xr(t){Pr(zt(),Bt(),ue()+t,Kt())}function Pr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&ge(e,r,n)}else{const r=t.preOrderHooks;null!==r&&be(e,r,0,n)}de(n)}function Ir(t,e){return t<<17|e<<2}function Tr(t){return t>>17&32767}function kr(t){return 2|t}function Ar(t){return(131068&t)>>2}function Dr(t,e){return-131069&t|e<<2}function Rr(t){return 1|t}function Mr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],i=n[r+1];if(-1!==i){const n=t.data[i];re(o),n.contentQueries(2,e[i],i)}}}function Nr(t,e,n){return Ee(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function $r(t,e,n,r,o,i,s,a,c,l){const u=e.blueprint.slice();return u[0]=o,u[2]=140|r,dr(u),u[3]=u[15]=t,u[8]=n,u[10]=s||t&&t[10],u[11]=a||t&&t[11],u[12]=c||t&&t[12]||null,u[9]=l||t&&t[9]||null,u[6]=i,u[16]=2==e.type?t[16]:u,u}function Lr(t,e,n,r,o,i){const s=n+19,a=t.data[s]||function(t,e,n,r,o,i){const s=Gt(),a=Wt(),c=a?s:s&&s.parent,l=t.data[n]=Wr(0,c&&c!==e?c:null,r,n,o,i);return null===t.firstChild&&(t.firstChild=l),s&&(!a||null!=s.child||null===l.parent&&2!==s.type?a||(s.next=l):s.child=l),l}(t,e,s,r,o,i);return qt(a,!0),a}function Vr(t,e,n){se(e,e[6]);try{const r=t.viewQuery;null!==r&&mo(1,r,n);const o=t.template;null!==o&&Br(t,e,o,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Mr(t,e),t.staticViewQueries&&mo(2,t.viewQuery,n);const i=t.components;null!==i&&function(t,e){for(let n=0;n<e.length;n++)ho(t,e[n])}(e,i)}finally{e[2]&=-5,le()}}function Fr(t,e,n,r){const o=e[2];if(256==(256&o))return;se(e,e[6]);const i=Kt();try{dr(e),Ft.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Br(t,e,n,2,r);const s=3==(3&o);if(!i)if(s){const n=t.preOrderCheckHooks;null!==n&&ge(e,n,null)}else{const n=t.preOrderHooks;null!==n&&be(e,n,0,null),me(e,0)}if(function(t){let e=t[13];for(;null!==e;){let n;if(Rt(e)&&(n=e[2])>>1==-1){for(let t=9;t<e.length;t++){const n=e[t],r=n[1];lr(n)&&Fr(r,n,r.template,n[8])}0!=(1&n)&&lo(e,t[16])}e=e[4]}}(e),null!==t.contentQueries&&Mr(t,e),!i)if(s){const n=t.contentCheckHooks;null!==n&&ge(e,n)}else{const n=t.contentHooks;null!==n&&be(e,n,1),me(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let r=t.expandoStartIndex,o=-1,i=-1;for(let t=0;t<n.length;t++){const s=n[t];"number"==typeof s?s<=0?(i=0-s,de(i),r+=9+n[++t],o=r):r+=s:(null!==s&&(ee(r,o),s(2,e[o])),o++)}}}finally{de(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)uo(t,e[n])}(e,a);const c=t.viewQuery;if(null!==c&&mo(2,c,r),!i)if(s){const n=t.viewCheckHooks;null!==n&&ge(e,n)}else{const n=t.viewHooks;null!==n&&be(e,n,2),me(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),i||(e[2]&=-73)}finally{le()}}function Ur(t,e,n,r){const o=e[10],i=!Kt(),s=cr(e);try{i&&!s&&o.begin&&o.begin(),s&&Vr(t,e,r),Fr(t,e,n,r)}finally{i&&!s&&o.end&&o.end()}}function Br(t,e,n,r,o){const i=ue();try{de(-1),2&r&&e.length>19&&Pr(t,e,0,Kt()),n(r,o)}finally{de(i)}}function zr(t,e,n){Ut()&&(function(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||Be(n,e),hr(r,e);const s=n.initialInputs;for(let a=o;a<i;a++){const r=t.data[a],i=Lt(r);i&&io(e,n,r);const c=Ze(e,t,a,n);hr(c,e),null!==s&&so(0,a-o,c,r,0,s),i&&(sr(n.index,e)[8]=c)}}(t,e,n,rr(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,o=n.directiveEnd,i=t.expandoInstructions,s=t.firstCreatePass,a=n.index-19;try{de(a);for(let n=r;n<o;n++){const r=t.data[n],o=e[n];null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Jr(r,o):s&&i.push(null)}}finally{de(-1)}}(t,e,n))}function Hr(t,e,n=rr){const r=e.localNames;if(null!==r){let o=e.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(e,t):t[s];t[o++]=a}}}
1function Gr(t){return t.tView||(t.tView=qr(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts))}function qr(t,e,n,r,o,i,s,a,c,l){const u=19+r,d=u+o,h=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:Cr);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 i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:l}}function Wr(t,e,n,r,o,i){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:o,attrs:i,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,residualStyles:void 0,classes:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Xr(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const o=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,o):n[r]=[e,o]}return n}function Kr(t,e,n,r,o,i,s,a){const c=nr(n,e),l=or(t,n);let u,d=l.inputs;if(!s&&null!=d&&(u=d[r]))Oo(t,e,u,r,o),Nt(l)&&function(t,e){const n=sr(e,t);16&n[2]||(n[2]|=64)}(e,n+19);else if(3===l.type){r=function(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r);const t=a?a(l,e):e[11];o=null!=i?i(o,l.tagName||"",r):o,Ee(t)?t.setProperty(c,r,o):Pe(r)||(c.setProperty?c.setProperty(r,o):c[r]=o)}}function Yr(t,e,n,r){let o=!1;if(Ut()){const i=function(t,e,n){const r=t.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];wr(n,s.selectors,!1)&&(o||(o=[]),qe(Be(n,e),t,s.type),Lt(s)?(2&n.flags&&pr(n),eo(t,n),o.unshift(s)):o.push(s))}return o}(t,e,n),s=null===r?null:{"":-1};if(null!==i){let r=0;o=!0,ro(n,t.data.length,i.length);for(let t=0;t<i.length;t++){const e=i[t];e.providersResolver&&e.providersResolver(e)}to(t,n,i.length);let a=!1,c=!1;for(let o=0;o<i.length;o++){const l=i[o];n.mergedAttrs=Ie(n.mergedAttrs,l.hostAttrs),oo(t,e,l),no(t.data.length-1,l,s),null!==l.contentQueries&&(n.flags|=8),null===l.hostBindings&&null===l.hostAttrs&&0===l.hostVars||(n.flags|=128),!a&&(l.onChanges||l.onInit||l.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-19),a=!0),c||!l.onChanges&&!l.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-19),c=!0),Zr(t,l),r+=l.hostVars}!function(t,e){const n=e.directiveEnd,r=t.data,o=e.attrs,i=[];let s=null,a=null;for(let c=e.directiveStart;c<n;c++){const t=r[c],e=t.inputs;i.push(null!==o?ao(e,o):null),s=Xr(e,c,s),a=Xr(t.outputs,c,a)}null!==s&&((s.hasOwnProperty("class")||s.hasOwnProperty("className"))&&(e.flags|=16),s.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=i,e.inputs=s,e.outputs=a}(t,n),Qr(t,e,r)}s&&function(t,e,n){if(e){const r=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!`);r.push(e[t],o)}}}(n,r,s)}return n.mergedAttrs=Ie(n.mergedAttrs,n.attrs),o}function Zr(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function Qr(t,e,n){for(let r=0;r<n;r++)e.push(Cr),t.blueprint.push(Cr),t.data.push(null)}function Jr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function to(t,e,n){const r=19-e.index,o=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,o,n)}function eo(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function no(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Lt(e)&&(n[""]=t)}}function ro(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function oo(t,e,n){t.data.push(n);const r=n.factory||(n.factory=kt(n.type)),o=new _e(r,Lt(n),null);t.blueprint.push(o),e.push(o)}function io(t,e,n){const r=rr(e,t),o=Gr(n),i=t[10],s=po(t,$r(t,o,null,n.onPush?64:16,r,e,i,i.createRenderer(r,n)));t[e.index]=s}function so(t,e,n,r,o,i){const s=i[e];if(null!==s){const t=r.setInput;for(let e=0;e<s.length;){const o=s[e++],i=s[e++],a=s[e++];null!==t?r.setInput(n,a,o,i):n[i]=a}}}function ao(t,e){let n=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;t.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,t[o],e[r+1])),r+=2}else r+=2;else r+=4}return n}function co(t,e,n,r){return new Array(t,!0,-2,e,null,null,r,n,null)}function lo(t,e){const n=t[5];for(let r=0;r<n.length;r++){const t=n[r],o=t[3][3][16];if(o!==e&&0==(16&o[2])){const e=t[1];Fr(e,t,e.template,t[8])}}}function uo(t,e){const n=sr(e,t);if(lr(n)&&80&n[2]){const t=n[1];Fr(t,n,t.template,n[8])}}function ho(t,e){const n=sr(e,t),r=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),Vr(r,n,n[8])}function po(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function fo(t){for(;t;){t[2]|=64;const e=jr(t);if(Vt(t)&&!e)return t;t=e}return null}function go(t,e,n){const r=e[10];r.begin&&r.begin();try{Fr(t,e,t.template,n)}catch(o){throw wo(e,o),o}finally{r.end&&r.end()}}function bo(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=ar(n),o=r[1];Ur(o,r,o.template,n)}}(t[8])}function mo(t,e,n){re(0),e(t,n)}const vo=(()=>Promise.resolve(null))();function yo(t){return t[7]||(t[7]=[])}function _o(t){return t.cleanup||(t.cleanup=[])}function wo(t,e){const n=t[9],r=n?n.get(sn,null):null;r&&r.handleError(e)}function Oo(t,e,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],c=e[s],l=t.data[s];null!==l.setInput?l.setInput(c,o,r,a):c[a]=o}}function So(t,e,n){const r=nr(e,t),o=t[11];Ee(o)?o.setValue(r,n):r.textContent=n}function Eo(t,e){const n=e[3];return-1===t.index?Rt(n)?n:null:n}function Co(t,e){const n=Eo(t,e);return n?$o(e[11],n[7]):null}function jo(t,e,n,r,o){if(null!=r){let i,s=!1;
1Rt(r)?i=r:Dt(r)&&(s=!0,r=r[0]);const a=er(r);0===t&&null!==n?null==o?Mo(e,n,a):Ro(e,n,a,o||null):1===t&&null!==n?Ro(e,n,a,o||null):2===t?function(t,e,n){const r=$o(t,e);r&&function(t,e,n,r){Ee(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function(t,e,n,r,o){const i=n[7];i!==er(n)&&jo(e,t,r,i,o);for(let s=9;s<n.length;s++){const o=n[s];Bo(o[1],o,t,e,r,i)}}(e,t,i,n,o)}}function xo(t,e,n,r){const o=Co(t.node,e);o&&Bo(t,e,e[11],n?1:2,o,r)}function Po(t,e){const n=t[5],r=n.indexOf(e);n.splice(r,1)}function Io(t,e){if(t.length<=9)return;const n=9+e,r=t[n];if(r){const o=r[17];null!==o&&o!==t&&Po(o,r),e>0&&(t[n-1][4]=r[4]);const i=ut(t,9+e);xo(r[1],r,!1,null);const s=i[5];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function To(t,e){if(!(256&e[2])){const n=e[11];Ee(n)&&n.destroyNode&&Bo(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ao(t[1],t);for(;e;){let n=null;if(Dt(e))n=e[13];else{const t=e[9];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Dt(e)&&Ao(e[1],e),e=ko(e,t);null===e&&(e=t),Dt(e)&&Ao(e[1],e),n=e&&e[4]}e=n}}(e)}}function ko(t,e){let n;return Dt(t)&&(n=t[6])&&2===n.type?Eo(n,t):t[3]===e?null:t[3]}function Ao(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 r=0;r<n.length;r+=2){const t=e[n[r]];t instanceof _e||n[r+1].call(t)}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const o=n[r+1],i="function"==typeof o?o(e):er(e[o]),s=t[n[r+2]],a=n[r+3];"boolean"==typeof a?i.removeEventListener(n[r],s,a):a>=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Ee(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&Rt(e[3])){r!==e[3]&&Po(r,e);const n=e[5];null!==n&&n.detachView(t)}}}function Do(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?Co(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return rr(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==bt.ShadowDom&&n!==bt.Native)return null}return(rr(r,n))}function Ro(t,e,n,r){Ee(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Mo(t,e,n){Ee(t)?t.appendChild(e,n):e.appendChild(n)}function No(t,e,n,r){null!==r?Ro(t,e,n,r):Mo(t,e,n)}function $o(t,e){return Ee(t)?t.parentNode(e):e.parentNode}function Lo(t,e){if(2===t.type){const n=Eo(t,e);return null===n?null:Fo(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?rr(t,e):null}function Vo(t,e,n,r){const o=Do(t,r,e);if(null!=o){const t=e[11],i=Lo(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)No(t,o,n[e],i);else No(t,o,n,i)}}function Fo(t,e){const n=9+t+1;if(n<e.length){const t=e[n],r=t[1].firstChild;if(null!==r)return function t(e,n){if(null!==n){const r=n.type;if(3===r)return rr(n,e);if(0===r)return Fo(-1,e[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return t(e,r);{const t=e[n.index];return Rt(t)?Fo(-1,t):er(t)}}{const r=e[16],o=r[6],i=jr(r),s=o.projection[n.projection];return null!=s?t(i,s):t(e,n.next)}}return null}(t,r)}return e[7]}function Uo(t,e,n,r,o,i,s){for(;null!=n;){const a=r[n.index],c=n.type;
1s&&0===e&&(a&&hr(er(a),r),n.flags|=4),64!=(64&n.flags)&&(4===c||5===c?(Uo(t,e,n.child,r,o,i,!1),jo(e,t,o,a,i)):1===c?zo(t,e,r,n,o,i):jo(e,t,o,a,i)),n=s?n.projectionNext:n.next}}function Bo(t,e,n,r,o,i){Uo(n,r,t.node.child,e,o,i,!1)}function zo(t,e,n,r,o,i){const s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(let c=0;c<a.length;c++)jo(e,t,o,a[c],i);else Uo(t,e,a,s[3],o,i,!0)}function Ho(t,e,n){Ee(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Go(t,e,n){Ee(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class qo{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,r,o,i=!1){for(;null!==r;){const s=n[r.index];if(null!==s&&o.push(er(s)),Rt(s))for(let e=9;e<s.length;e++){const n=s[e],r=n[1].firstChild;null!==r&&t(n[1],n,r,o)}const a=r.type;if(4===a||5===a)t(e,n,r.child,o);else if(1===a){const e=n[16],i=e[6],s=jr(e);let a=i.projection[r.projection];null!==a&&null!==s&&t(s[1],s,a,o,!0)}r=i?r.projectionNext:r.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}To(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,yo(n=this._lView).push(r),e.firstCreatePass&&_o(e).push(n[7].length-1,null)}markForCheck(){fo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){go(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Yt(!0);try{go(t,e,n)}finally{Yt(!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,Bo(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 Wo extends qo{constructor(t){super(t),this._view=t}detectChanges(){bo(this._view)}checkNoChanges(){!function(t){Yt(!0);try{bo(t)}finally{Yt(!1)}}(this._view)}get context(){return null}}let Xo,Ko,Yo;function Zo(t,e,n){return Xo||(Xo=class extends t{}),new Xo(rr(e,n))}function Qo(t,e,n,r){return Ko||(Ko=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=$r(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[5];null!==r&&(n[5]=r.createEmbeddedView(e)),Vr(e,n,t);const o=new qo(n);return o._tViewNode=n[6],o}}),0===n.type?new Ko(r,n,Zo(e,n,r)):null}function Jo(t,e,n,r){let o;Yo||(Yo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Zo(e,this._hostTNode,this._hostView)}get injector(){return new tn(this._hostTNode,this._hostView)}get parentInjector(){const t=Ge(this._hostTNode,this._hostView),e=Re(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 r=De(t),o=e,i=e[6];for(;r>1;)o=o[15],i=o[6],r--;return i}(t,this._hostView,this._hostTNode);return ke(t)&&null!=n?new tn(n,e):new tn(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-9}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,o){const i=n||this.parentInjector;if(!o&&null==t.ngModule&&i){const t=i.get(st,null);t&&(o=t)}const s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Rt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new Yo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const o=this._adjustIndex(e);return function(t,e,n,r){const o=9+r,i=n.length;r>0&&(n[o-1][4]=e),r<i-9?(e[4]=n[o],lt(n,9+r,e)):(n.push(e),e[4]=null),e[3]=n;const s=e[17];null!==s&&n!==s&&function(t,e){const n=t[5],r=e[3][3][16];16!=(16&r[2])&&e[16]!==r&&(t[2]|=1),null===n?t[5]=[e]:n.push(e)}(s,e);const a=e[5];null!==a&&a.insertView(t),e[2]|=128}(r,n,this._lContainer,o),xo(r,n,!0,Fo(o,this._lContainer)),t.attachToViewContainerRef(this),lt(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=Io(t,e);n&&To(n[1],n)})(this._lContainer,e),ut(this._lContainer[8],e)}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=Io(this._lContainer,e);return n&&null!=ut(this._lContainer[8],e)?new qo(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const i=r[n.index];if(Rt(i))o=i,function(t,e){t[2]=-2}(o);else{let t;if(4===n.type)t=er(i);else if(t=r[11].createComment(""),Vt(r)){const e=r[11],o=rr(n,r);Ro(e,$o(e,o),t,function(t,e){return Ee(t)?t.nextSibling(e):e.nextSibling}(e,o))}
1else Vo(r[1],r,t,n);r[n.index]=o=co(i,r,t,n),po(r,o)}return new Yo(o,n,r)}function ti(t=!1){return function(t,e,n){if(!n&&Nt(t)){const n=sr(t.index,e);return new qo(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new qo(e[16],e):null}(Gt(),Bt(),t)}let ei=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ni(),t})();const ni=ti,ri=new G("Set Injector scope."),oi={},ii={},si=[];let ai=void 0;function ci(){return void 0===ai&&(ai=new it),ai}function li(t,e=null,n=null,r){return e=e||ci(),new ui(t,n,e,r)}class ui{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];e&&ct(e,n=>this.processProvider(n,t,e)),ct([t],t=>this.processInjectorType(t,[],o)),this.records.set(q,pi(void 0,this));const i=this.records.get(ri);this.scope=null!=i?i.value:null,this.injectorDefTypes.forEach(t=>this.get(t)),this.source=r||("object"==typeof t?null:x(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=W,n=p.Default){this.assertNotDestroyed();const r=Q(this);try{if(!(n&p.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof G)&&y(t);e=n&&this.injectableDefInScope(n)?pi(di(t),oi):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&p.Self?ci():this.parent).get(t,e=n&p.Optional&&e===W?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(x(t)),r)throw i;return function(t,e,n,r){const o=t.ngTempTokenPath;throw e.__source&&o.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=x(e);if(Array.isArray(e))o=e.map(x).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):x(r)))}o=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(X,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{Q(r)}var o}toString(){const t=[];return this.records.forEach((e,n)=>t.push(x(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=k(t)))return!1;let r=w(t);const o=null==r&&t.ngModule||void 0,i=void 0===o?t:o,s=-1!==n.indexOf(i);if(void 0!==o&&(r=w(o)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(i);try{ct(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:r}=t[e];ct(r,t=>this.processProvider(t,n,r||si))}}this.injectorDefTypes.add(i),this.records.set(i,pi(r.factory,oi));const a=r.providers;if(null!=a&&!s){const e=t;ct(a,t=>this.processProvider(t,e,a))}return void 0!==o&&void 0!==t.providers}processProvider(t,e,n){let r=gi(t=k(t))?t:k(t&&t.provide);const o=function(t,e,n){return fi(t)?pi(void 0,t.useValue):pi(hi(t,e,n),oi)}(t,e,n);if(gi(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&fr()}else{let e=this.records.get(r);e?void 0===e.multi&&fr():(e=pi(void 0,oi,!0),e.factory=()=>ot(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,o)}hydrate(t,e){var n;return e.value===ii?function(t){throw new Error(`Cannot instantiate cyclic dependency! ${t}`)}(x(t)):e.value===oi&&(e.value=ii,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 di(t){const e=y(t),n=null!==e?e.factory:kt(t);if(null!==n)return n;const r=w(t);if(null!==r)return r.factory;if(t instanceof G)throw new Error(`Token ${x(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=dt(e,"?");throw new Error(`Can't resolve all parameters for ${x(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[O]||t[C]||t[E]&&t[E]());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.\n`+`This 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 hi(t,e,n){let r=void 0;if(gi(t))return di(k(t));if(fi(t))r=()=>k(t.useValue);else if((o=t)&&o.useFactory)r=()=>t.useFactory(...ot(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>et(k(t.useExisting));else{const o=k(t&&(t.useClass||t.provide));if(o||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${x(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return di(o);r=()=>new o(...ot(t.deps))}var o;return r}function pi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function fi(t){return null!==t&&"object"==typeof t&&K in t}function gi(t){return"function"==typeof t}const bi=function(t,e,n){return li({name:n},e,t,n)};let mi=(()=>{class t{static create(t,e){return Array.isArray(t)?bi(t,e,""):bi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=W,t.NULL=new it,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>et(q)}),t.__NG_ELEMENT_ID__=-1,t})();const vi=new G("AnalyzeForEntryComponents");let yi=new Map;const _i=new Set;function wi(t){return"string"==typeof t?t:t.text()}function Oi(t,e){let n=t.styles,r=t.classes,o=0;for(let i=0;i<e.length;i++){const t=e[i];"number"==typeof t?o=t:1==o?r=P(r,t):2==o&&(n=P(n,t+": "+e[++i]+";"))}null!==n&&(t.styles=n),null!==r&&(t.classes=r)}let Si=null;function Ei(){if(!Si){const t=$.Symbol;if(t&&t.iterator)Si=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&&(Si=n)}}}return Si}function Ci(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}class ji{constructor(t){this.wrapped=t}static wrap(t){return new ji(t)}static unwrap(t){return ji.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof ji}}function xi(t){return!!Pi(t)&&(Array.isArray(t)||!(t instanceof Map)&&Ei()in t)}function Pi(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Ii(t,e,n){return t[e]=n}function Ti(t,e){return t[e]}function ki(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Ai(t,e,n,r){const o=Bt();return ki(o,Jt(),e)&&function(t,e,n,r,o,i,s){const a=nr(t,o),c=o[11];if(null==n)Ee(c)?c.removeAttribute(a,e,s):a.removeAttribute(e);else{const o=or(r,t),l=null==i?Me(n):i(n,o.tagName||"",e);Ee(c)?c.setAttribute(a,e,l,s):s?a.setAttributeNS(s,e,l):a.setAttribute(e,l)}}(ue(),t,e,zt(),o,n,r),Ai}function Di(t,e,n,r){return ki(t,Jt(),n)?e+Me(n)+r:Cr}function Ri(t,e,n,r,o,i){const s=function(t,e,n,r){const o=ki(t,e,n);return ki(t,e+1,r)||o}(t,Qt(),n,o);return te(2),s?e+Me(n)+r+Me(o)+i:Cr}function Mi(t,e,n,r,o,i,s,a){const c=Bt(),l=zt(),u=t+19,d=l.firstCreatePass?function(t,e,n,r,o,i,s,a,c){const l=e.consts,u=Lr(e,n[6],t,0,s||null,ur(l,a));Yr(e,n,u,ur(l,c)),fe(e,u);const d=u.tViews=qr(2,-1,r,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,l),h=Wr(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,l,c,e,n,r,o,i,s):l.data[u];qt(d,!1);const h=c[11].createComment("");Vo(l,c,h,d),hr(h,c),po(c,c[u]=co(h,c,h,d)),$t(d)&&zr(l,c,d),null!=s&&Hr(c,d,a)}function Ni(t){return ir(Ft.lFrame.contextLView,t)}
1function $i(t,e=p.Default){const n=Bt();return null==n?et(t,e):We(Gt(),n,k(t),e)}function Li(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 r=0;for(;r<t;){const o=n[r];if(xe(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<t&&"string"==typeof n[r];)r++;else{if(o===e)return n[r+1];r+=2}}}return null}(Gt(),t)}function Vi(){throw new Error("invalid")}function Fi(t,e,n){const r=Bt();if(ki(r,Jt(),e)){const o=ue();Kr(zt(),r,o,t,e,n)}return Fi}function Ui(t,e,n,r,o){const i=e.inputs,s=o?"class":"style";Oo(t,n,i[s]||o&&i.className,s,r)}function Bi(t,e,n,r){const o=Bt(),i=zt(),s=19+t,a=o[11],c=o[s]=Nr(e,a,Ft.lFrame.currentNamespace),l=i.firstCreatePass?function(t,e,n,r,o,i,s){const a=e.consts,c=ur(a,i),l=Lr(e,n[6],t,3,o,c);return Yr(e,n,l,ur(a,s)),null!==l.mergedAttrs&&Oi(l,l.mergedAttrs),null!==e.queries&&e.queries.elementStart(e,l),l}(t,i,o,0,e,n,r):i.data[s];qt(l,!0);const u=l.mergedAttrs;null!==u&&je(a,c,u);const d=l.classes;null!==d&&Go(a,c,d);const h=l.styles;null!==h&&Ho(a,c,h),Vo(i,o,c,l),0===Ft.lFrame.elementDepthCount&&hr(c,o),Ft.lFrame.elementDepthCount++,$t(l)&&(zr(i,o,l),function(t,e,n){if(Mt(e)){const r=e.directiveEnd;for(let o=e.directiveStart;o<r;o++){const e=t.data[o];e.contentQueries&&e.contentQueries(1,n[o],o)}}}(i,l,o)),null!==r&&Hr(o,l)}function zi(){let t=Gt();Wt()?Xt():(t=t.parent,qt(t,!1));const e=t;Ft.lFrame.elementDepthCount--;const n=zt();n.firstCreatePass&&(fe(n,t),Mt(t)&&n.queries.elementEnd(t)),null!==e.classes&&function(t){return 0!=(16&t.flags)}(e)&&Ui(n,e,Bt(),e.classes,!0),null!==e.styles&&function(t){return 0!=(32&t.flags)}(e)&&Ui(n,e,Bt(),e.styles,!1)}function Hi(t,e,n,r){Bi(t,e,n,r),zi()}function Gi(){return Bt()}function qi(t){return!!t&&"function"==typeof t.then}function Wi(t){return!!t&&"function"==typeof t.subscribe}function Xi(t,e,n=!1,r){const o=Bt(),i=zt(),s=Gt();return function(t,e,n,r,o,i,s=!1,a){const c=$t(r),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),u=yo(e);let d=!0;if(3===r.type){const h=rr(r,e),p=a?a(h):vt,f=p.target||h,g=u.length,b=a?t=>a(er(t[r.index])).target:r.index;if(Ee(n)){let s=null;if(!a&&c&&(s=function(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const t=o[i];if(t===n&&o[i+1]===r){const t=e[7],n=o[i+2];return t.length>n?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,o,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=i,s.__ngLastListenerFn__=i,d=!1;else{i=Yi(r,e,i,!1);const t=n.listen(p.name||f,o,i);u.push(i,t),l&&l.push(o,b,g,g+1)}}else i=Yi(r,e,i,!0),f.addEventListener(o,i,s),u.push(i),l&&l.push(o,b,g,s)}const h=r.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(i),s=u.length;u.push(i,t),l&&l.push(o,r.index,s,-(s+1))}}}(i,o,o[11],s,t,e,n,r),Xi}function Ki(t,e,n){try{return!1!==e(n)}catch(r){return wo(t,r),!1}}function Yi(t,e,n,r){return function o(i){if(i===Function)return n;const s=2&t.flags?sr(t.index,e):e;0==(32&e[2])&&fo(s);let a=Ki(e,n,i),c=o.__ngNextListenerFn__;for(;c;)a=Ki(e,c,i)&&a,c=c.__ngNextListenerFn__;return r&&!1===a&&(i.preventDefault(),i.returnValue=!1),a}}function Zi(t=1){return function(t){return(Ft.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Ft.lFrame.contextLView))[8]}(t)}function Qi(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let o=0;o<e.length;o++){const i=e[o];if("*"!==i){if(null===r?wr(t,i,!0):Or(r,i))return o}else n=o}return n}function Ji(t){const e=Bt()[16][6];if(!e.projection){const n=e.projection=dt(t?t.length:1,null),r=n.slice();let o=e.child;for(;null!==o;){const e=t?Qi(o,t):0;null!==e&&(r[e]?r[e].projectionNext=o:n[e]=o,r[e]=o),o=o.next}}}function ts(t,e=0,n){const r=Bt(),o=zt(),i=Lr(o,r[6],t,1,null,n||null);null===i.projection&&(i.projection=e),Xt(),function(t,e,n){zo(e[11],0,e,n,Do(t,n,e),Lo(n.parent||e[6],e))}(o,r,i)}function es(t,e,n){return ns(t,"",e,"",n),es}function ns(t,e,n,r,o){const i=Bt(),s=Di(i,e,n,r);if(s!==Cr){const e=ue();Kr(zt(),i,e,t,s,o)}return ns}function rs(t,e,n,r,o,i,s){const a=Bt(),c=Ri(a,e,n,r,o,i);if(c!==Cr){const e=ue();Kr(zt(),a,e,t,c,s)}return rs}const os=[];function is(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?Tr(i):Ar(i),c=!1;for(;0!==a&&(!1===c||s);){const n=t[a+1];ss(t[a],e)&&(c=!0,t[a+1]=r?Rr(n):kr(n)),a=r?Tr(n):Ar(n)}c&&(t[n+1]=r?kr(i):Rr(i))}function ss(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ft(t,e)>=0}const as={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function cs(t){return t.substring(as.key,as.keyEnd)}function ls(t,e){const n=as.textEnd;return n===e?-1:(e=as.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,as.key=e,n),us(t,e,n))}function us(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function ds(t,e,n){return gs(t,e,n,!1),ds}function hs(t,e){return gs(t,e,null,!0),hs}function ps(t){!function(t,e,n,r){const o=zt(),i=te(2);o.firstUpdatePass&&ms(o,null,i,!0);const s=Bt();if(n!==Cr&&ki(s,i,n)){const r=o.data[ue()+19];if(Ss(r,!0)&&!bs(o,i)){let t=r.classes;"string"==typeof n&&(n=P(t,n)),Ui(o,r,s,n,!0)}else!function(t,e,n,r,o,i,s,a){o===Cr&&(o=os);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;null!==u||null!==d;){const s=c<o.length?o[c+1]:void 0,h=l<i.length?i[l+1]:void 0;let p=null,f=void 0;u===d?(c+=2,l+=2,s!==h&&(p=d,f=h)):null===d||null!==u&&u<d?(c+=2,p=u):(l+=2,p=d,f=h),null!==p&&_s(t,e,n,r,p,f,!0,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}(o,r,s,s[11],s[i+1],s[i+1]=function(t,e,n){if(null==n||""===n)return os;const r=[];if(Array.isArray(n))for(let o=0;o<n.length;o++)t(r,n[o],!0);else if("object"==typeof n)if(n instanceof Map)n.forEach((e,n)=>t(r,n,e));else if(n instanceof Set)n.forEach(e=>t(r,e,!0));else for(const o in n)n.hasOwnProperty(o)&&t(r,o,n[o]);else"string"==typeof n&&e(r,n);return r}(t,e,n),0,i)}}(ht,fs,t)}function fs(t,e){for(let n=function(t){return function(t){as.key=0,as.keyEnd=0,as.value=0,as.valueEnd=0,as.textEnd=t.length}(t),ls(t,us(t,0,as.textEnd))}(e);n>=0;n=ls(e,n))ht(t,cs(e),!0)}function gs(t,e,n,r){const o=Bt(),i=zt(),s=te(2);if(i.firstUpdatePass&&ms(i,t,s,r),e!==Cr&&ki(o,s,e)){let a;null==n&&(a=function(){const t=Ft.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),_s(i,i.data[ue()+19],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=x(pn(t)))),t}(e,n),r,s)}}function bs(t,e){return e>=t.expandoStartIndex}function ms(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[ue()+19],s=bs(t,n);Ss(i,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const o=function(t){const e=Ft.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=ys(n=vs(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=vs(o,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Ar(r))return t[Tr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=vs(null,t,e,n[1],r),n=ys(n,e.attrs,r),function(t,e,n,r){t[Tr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++)r=ys(r,t[i].hostAttrs,n);return(ys(r,e.attrs,n))}(t,e,r)}return void 0!==i&&(r?e.residualClasses=i:e.residualStyles=i),n}(o,i,e,r),function(t,e,n,r,o,i){let s=i?e.classBindings:e.styleBindings,a=Tr(s),c=Ar(s);t[r]=n;let l,u=!1;if(Array.isArray(n)){const t=n;l=t[1],(null===l||ft(t,l)>0)&&(u=!0)}else l=n;if(o)if(0!==c){const e=Tr(t[a+1]);t[r+1]=Ir(e,a),0!==e&&(t[e+1]=Dr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Ir(a,0),0!==a&&(t[a+1]=Dr(t[a+1],r)),a=r;else t[r+1]=Ir(c,0),0===a?a=r:t[c+1]=Dr(t[c+1],r),c=r;u&&(t[r+1]=kr(t[r+1])),is(t,l,r,!0),is(t,l,r,!1),function(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&ft(i,e)>=0&&(n[r+1]=Rr(n[r+1]))}(e,l,t,r,i),s=Ir(a,c),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}function vs(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=e[a],r=ys(r,i.hostAttrs,o),i!==t);)a++;return null!==t&&(n.directiveStylingLast=a),r}function ys(t,e,n){const r=n?1:2;let o=-1;if(null!==e)for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s?o=s:o===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ht(t,s,!!n||e[++i]))}return void 0===t?null:t}function _s(t,e,n,r,o,i,s,a){if(3!==e.type)return;const c=t.data,l=c[a+1];Os(1==(1&l)?ws(c,e,n,o,Ar(l),s):void 0)||(Os(i)||function(t){return 2==(2&t)}
1(l)&&(i=ws(c,null,n,o,a,s)),function(t,e,n,r,o){const i=Ee(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{const e=-1==r.indexOf("-")?void 0:2;null==o?i?t.removeStyle(n,r,e):n.style.removeProperty(r):i?t.setStyle(n,r,o,e):n.style.setProperty(r,o)}}(r,s,nr(ue(),n),o,i))}function ws(t,e,n,r,o,i){const s=null===e;let a=void 0;for(;o>0;){const e=t[o],i=Array.isArray(e),c=i?e[1]:e,l=null===c;let u=n[o+1];u===Cr&&(u=l?os:void 0);let d=l?pt(u,r):c===r?u:void 0;if(i&&!Os(d)&&(d=pt(e,r)),Os(d)&&(a=d,s))return a;const h=t[o+1];o=s?Tr(h):Ar(h)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,r))}return a}function Os(t){return void 0!==t}function Ss(t,e){return 0!=(t.flags&(e?16:32))}function Es(t,e=""){const n=Bt(),r=zt(),o=t+19,i=r.firstCreatePass?Lr(r,n[6],t,3,null,null):r.data[o],s=n[o]=function(t,e){return Ee(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Vo(r,n,s,i),qt(i,!1)}function Cs(t){return js("",t,""),Cs}function js(t,e,n){const r=Bt(),o=Di(r,t,e,n);return o!==Cr&&So(r,ue(),o),js}function xs(t,e,n,r,o){const i=Bt(),s=Ri(i,t,e,n,r,o);return s!==Cr&&So(i,ue(),s),xs}function Ps(t,e,n){const r=Bt();if(ki(r,Jt(),e)){const o=ue();Kr(zt(),r,o,t,e,n,!0)}return Ps}function Is(t,e){const n=ar(t)[1],r=n.data.length-1;fe(n,{directiveStart:r,directiveEnd:r+1})}function Ts(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let o=void 0;if(Lt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");o=e.\u0275dir}if(o){if(n){r.push(o);const e=t;e.inputs=ks(t.inputs),e.declaredInputs=ks(t.declaredInputs),e.outputs=ks(t.outputs);const n=o.hostBindings;n&&Rs(t,n);const i=o.viewQuery,s=o.contentQueries;i&&As(t,i),s&&Ds(t,s),g(t.inputs,o.inputs),g(t.declaredInputs,o.declaredInputs),g(t.outputs,o.outputs),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 r=0;r<e.length;r++){const o=e[r];o&&o.ngInherit&&o(t),o===Ts&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Ie(o.hostAttrs,n=Ie(n,o.hostAttrs))}}(r)}function ks(t){return t===vt?{}:t===yt?[]:t}function As(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Ds(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,o)=>{e(t,r,o),n(t,r,o)}:e}function Rs(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Ms{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ns(){return $s.ngInherit=!0,$s}function $s(t){t.type.prototype.ngOnChanges&&(t.setInput=Ls,t.onChanges=function(){const t=Vs(this),e=t&&t.current;if(e){const n=t.previous;if(n===vt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Ls(t,e,n,r){const o=Vs(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:vt,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],c=s[a];i[a]=new Ms(c&&c.currentValue,e,s===vt),t[r]=e}function Vs(t){return t.__ngSimpleChanges__||null}function Fs(t,e,n,r,o){if(t=k(t),Array.isArray(t))for(let i=0;i<t.length;i++)Fs(t[i],e,n,r,o);else{const i=zt(),s=Bt();let a=gi(t)?t:k(t.provide),c=hi(t);const l=Gt(),u=65535&l.providerIndexes,d=l.directiveStart,h=l.providerIndexes>>16;if(t.useClass||gi(t)){const n=(t.useClass||t).prototype.ngOnDestroy;n&&(i.destroyHooks||(i.destroyHooks=[])).push(e.length,n)}if(gi(t)||!t.multi){const t=new _e(c,o,$i),r=Bs(a,e,o?u:u+h,d);-1==r?(qe(Be(l,s),i,a),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=65536),n.push(t),s.push(t)):(n[r]=t,s[r]=t)}else{const t=Bs(a,e,u+h,d),p=Bs(a,e,u,u+h),f=t>=0&&n[t],g=p>=0&&n[p];if(o&&!g||!o&&!f){qe(Be(l,s),i,a);const t=function(t,e,n,r,o){const i=new _e(t,n,$i);return i.multi=[],i.index=e,i.componentProviders=0,Us(i,o,r&&!n),i}(o?Hs:zs,n.length,o,r,c);!o&&g&&(n[p].providerFactory=t),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=65536),n.push(t),s.push(t)}else Us(n[o?p:t],c,!o&&r);!o&&r&&g&&n[p].componentProviders++}}}function Us(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Bs(t,e,n,r){for(let o=n;o<r;o++)if(e[o]===t)return o;return-1}function zs(t,e,n,r){return Gs(this.multi,[])}function Hs(t,e,n,r){const o=this.multi;let i;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=Ze(n,n[1],this.providerFactory.index,r);i=e.slice(0,t),Gs(o,i);for(let n=t;n<e.length;n++)i.push(e[n])}else i=[],Gs(o,i);return i}function Gs(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function qs(t,e=[]){return n=>{n.providersResolver=(n,r)=>function(t,e,n){const r=zt();if(r.firstCreatePass){const o=Lt(t);Fs(n,r.data,r.blueprint,o,!0),Fs(e,r.data,r.blueprint,o,!1)}}(n,r?r(t):t,e)}}class Ws{}
vendor: 8,587 bytes, line 1
1class Xs{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${x(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Ks=(()=>{class t{}return t.NULL=new Xs,t})(),Ys=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Zs(t),t})();const Zs=function(t){return Zo(t,Gt(),Bt())};class Qs{}const Js=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ea(),t})();const ea=function(){const t=Bt(),e=sr(Gt().index,t);return function(t){const e=t[11];if(Ee(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Dt(e)?e:t)};let na=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class ra{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const oa=new ra("9.0.1");class ia{constructor(){}supports(t){return xi(t)}create(t){return new aa(t)}}const sa=(t,e)=>e;class aa{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||sa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const i=!n||e&&e.currentIndex<da(n,r,o)?e:n,s=da(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<o.length?o[n]:o[n]=0,i=r+n;e<=i&&i<t&&(o[n]=r+1)}o[i.previousIndex]=e-t}}s!==a&&t(i,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=[]),!xi(t))throw new Error(`Error trying to diff '${x(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,o=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==o&&Ci(o.trackById,r)?(i&&(o=this._verifyReinsertion(o,n,r,e)),Ci(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,r,e),i=!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[Ei()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==o&&Ci(o.trackById,r)?(i&&(o=this._verifyReinsertion(o,t,r,e)),Ci(o.item,t)||this._addIdentityChange(o,t)):(o=this._mismatch(o,t,r,e),i=!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,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ci(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ci(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new ca(e,n),o,r),t}_verifyReinsertion(t,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),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 r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,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 r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ua),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?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ua),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 ca{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 la{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)&&Ci(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 ua{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new la,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 da(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}class ha{constructor(){}supports(t){return t instanceof Map||Pi(t)}create(){return new pa}}class pa{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;
1e=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||Pi(t)))throw new Error(`Error trying to diff '${x(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 r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),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 r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}const n=new fa(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){Ci(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 fa{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 ga=(()=>{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 h,new u]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new ia])}),t})(),ba=(()=>{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 h,new u]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new ha])}),t})();const ma=[new ha],va=new ga([new ia]),ya=new ba(ma);let _a=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wa(t,Ys),t})();const wa=function(t,e){return Qo(t,e,Gt(),Bt())};let Oa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(t,Ys),t})();const Sa=function(t,e){return Jo(t,e,Gt(),Bt())},Ea={};function Ca(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const ja=new G("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>$e});class xa extends Ws{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Er).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ca(this.componentDef.inputs)}get outputs(){return Ca(this.componentDef.outputs)}create(t,e,n,r){const o=(r=r||this.ngModule)?function(t,e){return{get:(n,r,o)=>{const i=t.get(n,Ea,o);return i!==Ea||r===Ea?i:e.get(n,r,o)}}}(t,r.injector):t,i=o.get(Qs,Ce),s=o.get(na,null),a=i.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(Ee(t))return t.selectRootElement(e,n===bt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Nr(c,i.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}(c)),u=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),h={components:[],scheduler:$e,clean:vo,playerHandler:null,flags:0},p=qr(0,-1,null,1,0,null,null,null,null,null),f=$r(null,p,h,u,null,null,i,a,s,o),g=n&&l?oa.full:null;let b,m;se(f,null);try{const t=function(t,e,n,r,o,i,s){const a=n[1];n[19]=t;const c=Lr(a,null,0,3,null,null),l=c.mergedAttrs=e.hostAttrs;null!==l&&(Oi(c,l),null!==t&&(je(o,t,l),null!==c.classes&&Go(o,t,c.classes),null!==c.styles&&Ho(o,t,c.styles)));const u=r.createRenderer(t,e);null!==t&&i&&(Ee(o)?o.setAttribute(t,"ng-version",i):t.setAttribute("ng-version",i));const d=$r(n,Gr(e),null,e.onPush?64:16,n[19],c,r,u,null);
1return a.firstCreatePass&&(qe(Be(c,n),a,e.type),eo(a,c),ro(c,n.length,1)),po(n,d),n[19]=d}(l,this.componentDef,f,i,a,g);m=or(f[1],0),e&&(m.projection=e.map(t=>Array.from(t))),b=function(t,e,n,r,o){const i=n[1],s=function(t,e,n){const r=Gt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),to(t,r,1),oo(t,e,n));const o=Ze(e,t,e.length-1,r);hr(o,e);const i=rr(r,e);return i&&hr(i,e),o}(i,n,e);r.components.push(s),t[8]=s,o&&o.forEach(t=>t(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=Gt();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){de(a.index-19);const t=n[1];Zr(t,e),Qr(t,n,e.hostVars),Jr(e,s)}return s}(t,this.componentDef,f,h,[Is]),Vr(p,f,null)}finally{le()}const v=new Pa(this.componentType,b,Zo(Ys,m,f),f,m);return n&&!d||(v.hostView._tViewNode.child=m),v}}class Pa extends class{}{constructor(t,e,n,r,o){super(),this.location=n,this._rootLView=r,this._tNode=o,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Wo(r),this.hostView._tViewNode=function(t,e,n,r){let o=t.node;return null==o&&(t.node=o=Wr(0,null,2,-1,null,null)),r[6]=o}(r[1],0,0,r),this.componentType=t}get injector(){return new tn(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 Ia=void 0;var Ta=["en",[["a","p"],["AM","PM"],Ia],[["AM","PM"],Ia,Ia],[["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"]],Ia,[["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"]],Ia,[["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}",Ia,"{1} 'at' {0}",Ia],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ka={};function Aa(t,e,n){"string"!=typeof e&&(n=e,e=t[$a.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ka[e]=t,n&&(ka[e][$a.ExtraData]=n)}function Da(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Na(e);if(n)return n;const r=e.split("-")[0];if(n=Na(r),n)return n;if("en"===r)return Ta;throw new Error(`Missing locale data for the locale "${t}".`)}function Ra(t){return Da(t)[$a.CurrencyCode]||null}function Ma(t){return Da(t)[$a.PluralCase]}function Na(t){return t in ka||(ka[t]=$.ng&&$.ng.common&&$.ng.common.locales&&$.ng.common.locales[t]),ka[t]}const $a=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,PluralCase:19,ExtraData:20};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.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let La="en-US";function Va(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(La=t.toLowerCase().replace(/_/g,"-"))}const Fa=new Map,Ua={provide:Ks,useClass:class extends Ks{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Tt(t);return new xa(e,this.ngModule)}},deps:[st]};class Ba extends st{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[];const n=At(t),r=t[B]||null;r&&Va(r),this._bootstrapComponents=Le(n.bootstrap),this._r3Injector=li(t,e,[{provide:st,useValue:this},Ua],x(t)),this.instance=this.get(t)}get(t,e=mi.THROW_IF_NOT_FOUND,n=p.Default){return t===mi||t===st||t===q?this:this._r3Injector.get(t,e,n)}get componentFactoryResolver(){return this.get(Ks)}destroy(){const t=this._r3Injector;
1!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class za extends at{constructor(t){super(),this.moduleType=t,null!==At(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} - ${x(e)} vs ${x(e.name)}`)})(t,Fa.get(t),e),Fa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ba(this.moduleType,t)}}function Ha(t,e,n){const r=Zt()+t,o=Bt();return o[r]===Cr?Ii(o,r,n?e.call(n):e()):Ti(o,r)}function Ga(t,e,n,r){return qa(Bt(),Zt(),t,e,n,r)}function qa(t,e,n,r,o,i){const s=e+n;return ki(t,s,o)?Ii(t,s+1,i?r.call(i,o):r(o)):Ti(t,s+1)}function Wa(t,e){const n=zt();let r;const o=t+19;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=(r.factory||(r.factory=kt(r.type)))();return function(t,e,n,r){const o=n+19;o>=t.data.length&&(t.data[o]=null,t.blueprint[o]=null),e[o]=r}(n,Bt(),t,i),i}function Xa(t,e,n){const r=Bt(),o=ir(r,t);return function(t,e){return ji.isWrapped(e)&&(e=ji.unwrap(e),t[Qt()]=Cr),e}(r,function(t,e){return t[1].data[e+19].pure}(r,t)?qa(r,Zt(),e,o.transform,n,o):o.transform(n))}class Ka extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,s=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(s=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,s);return t instanceof o.a&&t.add(a),a}}function Ya(){return this._results[Ei()]()}class Za{constructor(){this.dirty=!0,this._results=[],this.changes=new Ka,this.length=0;const t=Ei(),e=Za.prototype;e[t]||(e[t]=Ya)}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 r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?(n===e&&(n=e.slice(0,r)),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 Qa{constructor(t){this.queryList=t,this.matches=null}clone(){return new Qa(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ja{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);r.push(this.queries[n.indexInDeclarationView].clone())}return new Ja(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==fc(t,e).matches&&this.queries[e].setDirty()}}class tc{constructor(t,e,n,r=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=r}}class ec{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 r=null!==e?e.length:0,o=this.getByIndex(n).embeddedTView(t,r);o&&(o.indexInDeclarationView=n,null!==e?e.push(o):e=[o])}return null!==e?new ec(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 nc{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 nc(this.metadata)):null}isApplyingToNode(t){return this._appliesToNextNode&&!1===this.metadata.descendants?this._declarationNodeIndex===(t.parent?t.parent.index:-1):this._appliesToNextNode}
1matchTNode(t,e){if(Array.isArray(this.metadata.predicate)){const n=this.metadata.predicate;for(let r=0;r<n.length;r++)this.matchTNodeWithReadOption(t,e,rc(e,n[r]))}else{const n=this.metadata.predicate;n===_a?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,Ye(e,t,n,!1,!1))}}matchTNodeWithReadOption(t,e,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===Ys||r===Oa||r===_a&&0===e.type)this.addMatch(e.index,-2);else{const n=Ye(e,t,r,!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 rc(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function oc(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?Zo(Ys,t,e):0===t.type?Qo(_a,Ys,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ys?Zo(Ys,e,t):n===_a?Qo(_a,Ys,e,t):n===Oa?Jo(Oa,Ys,e,t):void 0}(t,e,r):Ze(t,t[1],n,e)}function ic(t,e,n,r){const o=e[5].queries[r];if(null===o.matches){const r=t.data,i=n.matches,s=[];for(let t=0;t<i.length;t+=2){const o=i[t];s.push(o<0?null:oc(e,r[o],i[t+1],n.metadata.read))}o.matches=s}return o.matches}function sc(t){const e=Bt(),n=zt(),r=ne();re(r+1);const o=fc(n,r);if(t.dirty&&cr(e)===o.metadata.isStatic){if(null===o.matches)t.reset([]);else{const i=o.crossesNgTemplate?function t(e,n,r,o){const i=e.queries.getByIndex(r),s=i.matches;if(null!==s){const a=ic(e,n,i,r);for(let e=0;e<s.length;e+=2){const r=s[e];if(r>0)o.push(a[e/2]);else{const i=s[e+1],a=n[-r];for(let e=9;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,i,o)}if(null!==a[5]){const e=a[5];for(let n=0;n<e.length;n++){const r=e[n];t(r[1],r,i,o)}}}}}return o}(n,e,r,[]):ic(n,e,o,r);t.reset(i),t.notifyOnChanges()}return!0}return!1}function ac(t,e,n){lc(zt(),Bt(),t,e,n,!0)}function cc(t,e,n){lc(zt(),Bt(),t,e,n,!1)}function lc(t,e,n,r,o,i){t.firstCreatePass&&(pc(t,new tc(n,r,i,o),-1),i&&(t.staticViewQueries=!0)),hc(t,e)}function uc(t,e,n,r){!function(t,e,n,r,o,i,s,a){t.firstCreatePass&&(pc(t,new tc(n,r,!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)),hc(t,e)}(zt(),Bt(),e,n,r,0,Gt(),t)}function dc(){return t=Bt(),e=ne(),t[5].queries[e].queryList;var t,e}function hc(t,e){const n=new Za;!function(t,e,n,r){const o=yo(e);o.push(n),t.firstCreatePass&&_o(t).push(r,o.length-1)}(t,e,n,n.destroy),null===e[5]&&(e[5]=new Ja),e[5].queries.push(new Qa(n))}function pc(t,e,n){null===t.queries&&(t.queries=new ec),t.queries.track(new nc(e,n))}function fc(t,e){return t.queries.getByIndex(e)}function gc(t=p.Default){const e=ti(!0);if(null!=e||t&p.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}const bc=new G("Application Initializer");let mc=(()=>{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]();qi(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)(et(bc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const vc=new G("AppId"),yc={provide:vc,useFactory:function(){return`${_c()}${_c()}${_c()}`},deps:[]};function _c(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const wc=new G("Platform Initializer"),Oc=new G("Platform ID"),Sc=new G("appBootstrapListener");let Ec=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Cc=new G("LocaleId"),jc=new G("DefaultCurrencyCode");class xc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Pc=function(t){return new za(t)},Ic=Pc,Tc=function(t){return Promise.resolve(Pc(t))},kc=function(t){const e=Pc(t),n=Le(At(t).declarations).reduce((t,e)=>{const n=Tt(e);
1return n&&t.push(new xa(n)),t},[]);return new xc(e,n)},Ac=kc,Dc=function(t){return Promise.resolve(kc(t))};let Rc=(()=>{class t{constructor(){this.compileModuleSync=Ic,this.compileModuleAsync=Tc,this.compileModuleAndAllComponentsSync=Ac,this.compileModuleAndAllComponentsAsync=Dc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const Mc=new G("compilerOptions"),Nc=(()=>Promise.resolve(0))();function $c(t){"undefined"==typeof Zone?Nc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Lc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ka(!1),this.onMicrotaskEmpty=new Ka(!1),this.onStable=new Ka(!1),this.onError=new Ka(!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=$.requestAnimationFrame,e=$.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call($,()=>{t.lastRequestAnimationFrameId=-1,Bc(t),Uc(t)}),Bc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,o,i,s,a)=>{try{return zc(t),n.invokeTask(o,i,s,a)}finally{e&&"eventTask"===i.type&&e(),Hc(t)}},onInvoke:(e,n,r,o,i,s,a)=>{try{return zc(t),e.invoke(r,o,i,s,a)}finally{Hc(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Bc(t),Uc(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Lc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Lc.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,r){const o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,t,Fc,Vc,Vc);try{return o.runTask(i,e,n)}finally{o.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Vc(){}const Fc={};function Uc(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 Bc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function zc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Hc(t){t._nesting--,Uc(t)}class Gc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ka,this.onMicrotaskEmpty=new Ka,this.onStable=new Ka,this.onError=new Ka}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,r){return t.apply(e,n)}}let qc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZ
1oneStable=!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:()=>{Lc.assertNotInAngularZone(),$c(()=>{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())$c(()=>{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 r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,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)(et(Lc))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),Wc=(()=>{class t{constructor(){this._applications=new Map,Zc.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 Zc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class Xc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Kc(t){Zc=t}let Yc,Zc=new Xc,Qc=function(t,e,n){const r=new za(n);if(0===yi.size)return Promise.resolve(r);const o=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(t.get(Mc,[]).concat(e).map(t=>t.providers));if(0===o.length)return Promise.resolve(r);const i=function(){const t=$.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}(),s=mi.create({providers:o}).get(i.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(s.get(t)))(t);n.set(t,e=r.then(wi))}return e}return yi.forEach((t,n)=>{const o=[];t.templateUrl&&o.push(r(t.templateUrl).then(e=>{t.template=e}));const i=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;i&&i.forEach((e,n)=>{s.push(""),o.push(r(e).then(r=>{s[a+n]=r,i.splice(i.indexOf(e),1),0==i.length&&(t.styleUrls=void 0)}))});const c=Promise.all(o).then(()=>function(t){_i.delete(t)}(n));e.push(c)}),yi=new Map,Promise.all(e).then(()=>{})}().then(()=>r)};const Jc=new G("AllowMultipleToken");class tl{constructor(t,e){this.name=t,this.token=e}}function el(t,e,n=[]){const r=`Platform: ${e}`,o=new G(r);return(e=[])=>{let i=nl();if(!i||i.injector.get(Jc,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{const t=n.concat(e).concat({provide:o,useValue:!0},{provide:ri,useValue:"platform"});!function(t){if(Yc&&!Yc.destroyed&&!Yc.injector.get(Jc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yc=t.get(rl);const e=t.get(wc,null);e&&e.forEach(t=>t())}(mi.create({providers:t,name:r}))}return function(t){const e=nl();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different c
1onfiguration has been created. Please destroy it first.");return e}(o)}}function nl(){return Yc&&!Yc.destroyed?Yc:null}let rl=(()=>{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 Gc:("zone.js"===t?void 0:t)||new Lc({enableLongStackTrace:Sn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Lc,useValue:n}];return n.run(()=>{const e=mi.create({providers:r,parent:this.injector,name:t.moduleType.name}),o=t.create(e),i=o.injector.get(sn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>sl(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return qi(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=o.injector.get(mc);return t.runInitializers(),t.donePromise.then(()=>(Va(o.injector.get(Cc,"en-US")||"en-US"),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=ol({},e);return Qc(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(il);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${x(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)(et(mi))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function ol(t,e){return Array.isArray(e)?e.reduce(ol,t):Object.assign(Object.assign({},t),e)}let il=(()=>{class t{constructor(t,e,n,r,o,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Sn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Lc.assertNotInAngularZone(),$c(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Lc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return(()=>{e.unsubscribe(),n.unsubscribe()})});this.isStable=Object(s.a)(l,u.pipe(Object(a.a)()))}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 Ws?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(st),o=n.create(mi.NULL,[],e||n.selector,r);o.onDestroy(()=>{this._unloadComponent(o)});const i=o.injector.get(qc,null);return i&&o.injector.get(Wc).registerApplication(o.location.nativeElement,i),this._loadComponent(o),Sn()&&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;sl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sc,[]).concat(this._bootstrapListeners).forEac
1h(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),sl(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)(et(Lc),et(Ec),et(mi),et(sn),et(Ks),et(mc))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function sl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class al{}class cl{}const ll={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let ul=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||ll}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("crnd")(e).then(t=>t[r]).then(t=>dl(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+o]).then(t=>dl(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(et(Rc),et(cl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function dl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const hl=function(t){return null},pl=el(null,"core",[{provide:Oc,useValue:"unknown"},{provide:rl,deps:[mi]},{provide:Wc,deps:[]},{provide:Ec,deps:[]}]),fl=[{provide:il,useClass:il,deps:[Lc,Ec,mi,sn,Ks,mc]},{provide:ja,deps:[Lc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:mc,useClass:mc,deps:[[new u,bc]]},{provide:Rc,useClass:Rc,deps:[]},yc,{provide:ga,useFactory:function(){return va},deps:[]},{provide:ba,useFactory:function(){return ya},deps:[]},{provide:Cc,useFactory:function(t){return Va(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new l(Cc),new u,new h]]},{provide:jc,useValue:"USD"}];let gl=(()=>{class t{constructor(t){}}return t.\u0275mod=Ct({type:t}),t.\u0275inj=v({factory:function(e){return new(e||t)(et(il))},providers:fl}),t})()},fYWy:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return w})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return l}));var r=n("A36C");const o="ionViewWillEnter",i="ionViewDidEnter",s="ionViewWillLeave",a="ionViewDidLeave",c="ionViewWillUnload",l=t=>new Promise((e,n)=>{Object(r.f)(()=>{u(t),d(t).then(n=>{n.animation&&n.animation.destroy(),h(t),e(n)},e=>{h(t),n(e)})})}),u=t=>{const e=t.enteringEl,n=t.leavingEl;C(e,n,t.direction),t.showGoBack?e.classList.add("can-go-back"):e.classList.remove("can-go-back"),E(e,!1),n&&E(n,!1)},d=async t=>{const e=await p(t);return e&&r.a.isBrowser?f(e,t):g(t)},h=t=>{const e=t.leavingEl;t.enteringEl.classList.remove("ion-page-invisible"),void 0!==e&&e.classList.remove("ion-page-invisible")},p=async t=>{if(t.leavingEl&&t.animated&&0!==t.duration)return t.animationBuilder?t.animationBuilder:"ios"===t.mode?(await Promise.resolve().then(n.bind(null,"k9ne"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"6pL8"))).mdTransitionAnimation},f=async(t,e)=>{await b(e,!0);const n=t(e.baseEl,e);y(e.enteringEl,e.leavingEl);const r=await v(n,e);return e.progressCallback&&e.progressCallback(void 0),r&&_(e.enteringEl,e.leavingEl),{hasCompleted:r,animation:n}},g=async t=>{const e=t.enteringEl,n=t.leavingEl;return await b(t,!1),y(e,n),_(e,n),{hasCompleted:!0}},b=async(t,e)=>{const n=(void 0!==t.deepWait?t.deepWait:e)?[S(t.enteringEl),S(t.leavingEl)]:[O(t.enteringEl),O(t.leavingEl)];await Promise.all(n),await m(t.viewIsReady,t.enteringEl)},m=async(t,e)=>{t&&await t(e)},v=(t,e)=>{const n=e.progressCallback,r=new Promise(e=>{t.onFinish(t=>e(1===t))});return n?(t.progressStart(!0),n(t)):t.play(),r},y=(t,e)=>{w(e,s),w(t,o)},_=(t,e)=>{w(t,i),w(e,a)},w=(t,e)=>{if(t){const n=new CustomEvent(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}},O=t=>t&&t.componentOnReady?t.componentOnReady():Promise.resolve(),S=async t=>{const e=t;if(e){if(null!=e.componentOnReady&&null!=await e.componentOnReady())return;await Promise.all(Array.from(e.children).map(S))}},E=(t,e)=>{e?(t.setAttribute("aria-hidden","true"),t.classList.add("ion-page-hidden")):(t.hidden=!1,t.removeAttribute("aria-hidden"),t.classList.remove("ion-page-hidden"))},C=(t,e,n)=>{void 0!==t&&(t.style.zIndex="back"===n?"99":"101"),void 0!==e&&(e.style.zIndex="100")},j=t=>t.classList.contains("ion-page")?t:t.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||t},g7DU:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.alert=function(t,e,n){return Object(o.cordova)(this,"alert",{successIndex:1,errorIndex:4},arguments)},e.prototype.confirm=function(t,e,n){return Object(o.cordova)(this,"confirm",{successIndex:1,errorIndex:4},arguments)},e.prototype.prompt=function(t,e,n,r){return Object(o.cordova)(this,"prompt",{successIndex:1,errorIndex:5},arguments)},e.prototype.beep=function(t){return Object(o.cordova)(this,"beep",{sync:!0},arguments)},e.pluginName="Dialogs",e.plugin="cordova-plugin-dialogs",e.pluginRef="navigator.notification",e.repo="https://github.com/apache/cordova-plugin-dialogs",e.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},gGGD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("yR3O");function o(t,e,n,o){return o=Array.from(o),Object(r.f)(t,e,n).apply(this,o)}},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("2fFW"),o=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(o.a)(t)},complete(){}}},gZlD:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("B4Mn"),i=n("tk/3"),s=n("fXoL"),a=n("e8h1");let c=(()=>{class t{constructor(t){this.storage=t,this.userLogin=new o.a,this.forceLogin=new o.a,this.wp_reset_password_url=""}getLoginData(){return Object(r.a)(this,void 0,void 0,(function*(){return this.loginData||(this.loginData=yield this._getLoginDataFromStorage()),this.loginData}))}_getLoginDataFromStorage(){return this.storage.get("user_login")}deleteLoginData(){this.storage.remove("user_login"),delete this.loginData}setLoginStatus(t){this.storage.set("user_login",t),this.loginData=t,this.userLogin.next(!0)}removeLoginStatus(){this.storage.remove("user_login"),delete this.loginData,this.userLogin.next(!1)}loginStatus(){return this.userLogin}getPasswordResetUrl(){if(!this.wp_reset_password_url){let t=this.storage.get("myappp");this.wp_reset_password_url=this.appendUrlModalLogin(t.wordpress_url)}return this.wp_reset_password_url}appendUrlModalLogin(t){let e=new i.c,n=t.split("#");n=n[0].split("?");let r=n[0],o=n[1];return e=o&&t.indexOf("appp=3")>=0?new i.c({fromString:o}):new i.c({fromString:o?o+"&appp=3":"appp=3"}),(t=r+"?"+e.toString()+"#app-lost-password").replace("&=&","&")}forceLoginObservable(){return this.forceLogin}yieldLogin(t){return!!(t&&t.extra_classes&&t.extra_classes.indexOf("yieldlogin")>=0)&&!this.loginData}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(a.b))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},h6Uw:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("ZL19"),o=n("fXoL");let i=(()=>{class t{constructor(t){this.admobFree=t}setOptions(){}createBanner(t){console.log("create banner "+t),this.admobFree.banner.config({id:t,isTesting:!1,autoShow:!0,overlap:!1}),this.admobFree.banner.prepare().then(()=>{console.log("show banner")}).catch(t=>console.log(t))}hideAll(){console.log("hiding ads"),this.admobFree.banner.hide()}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(r.a))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},iTUp:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("fXoL");let o=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},iVjj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("fXoL");let o=(()=>{class t{constructor(){this.data=[]}setData(t){this.data=t}getData(){return this.data}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},iWo5:function(t,e,n){"use strict";n.r(e),n.d(e,"createGesture",(function(){return c}));var r=n("y08P");n.d(e,"GESTURE_CONTROLLER",(function(){return r.a}));const o=(t,e,n,r)=>{const o=i(t)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;let s,a;return t.__zone_symbol__addEventListener?(s="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(s="addEventListener",a="removeEventListener"),t[s](e,n,o),()=>{t[a](e,n,o)}},i=t=>{if(void 0===s)try{const e=Object.defineProperty({},"passive",{get:()=>{s=!0}});t.addEventListener("optsTest",()=>{},e)}catch(e){s=!1}return!!s};let s;const a=t=>t instanceof Document?t:t.ownerDocument,c=t=>{let e=!1,n=!1,i=!0,s=!1;const c=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},t),h=c.canStart,p=c.onWillStart,f=c.onStart,g=c.onEnd,b=c.notCaptured,m=c.onMove,v=c.threshold,y=c.passive,_=c.blurOnStart,w={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},O=((t,e,n)=>{const r=n*(Math.PI/180),o="x"===t,i=Math.cos(r),s=e*e;let a=0,c=0,l=!1,u=0;return{start(t,e){a=t,c=e,u=0,l=!0},detect(t,e){if(!l)return!1;
1const n=t-a,r=e-c,d=n*n+r*r;if(d<s)return!1;const h=Math.sqrt(d),p=(o?n:r)/h;return u=p>i?1:p<-i?-1:0,l=!1,!0},isGesture:()=>0!==u,getDirection:()=>u}})(c.direction,c.threshold,c.maxAngle),S=r.a.createGesture({name:t.gestureName,priority:t.gesturePriority,disableScroll:t.disableScroll}),E=()=>{e&&(s=!1,m&&m(w))},C=()=>!(S&&!S.capture()||(e=!0,i=!1,w.startX=w.currentX,w.startY=w.currentY,w.startTime=w.currentTime,p?p(w).then(j):j(),0)),j=()=>{_&&(()=>{if("undefined"!=typeof document){const t=document.activeElement;null!==t&&t.blur&&t.blur()}})(),f&&f(w),i=!0},x=()=>{e=!1,n=!1,s=!1,i=!0,S.release()},P=t=>{const n=e,r=i;x(),r&&(l(w,t),n?g&&g(w):b&&b(w))},I=((t,e,n,r,i)=>{let s,c,l,u,d,h,p,f=0;const g=r=>{f=Date.now()+2e3,e(r)&&(!c&&n&&(c=o(t,"touchmove",n,i)),l||(l=o(t,"touchend",m,i)),u||(u=o(t,"touchcancel",m,i)))},b=r=>{f>Date.now()||e(r)&&(!h&&n&&(h=o(a(t),"mousemove",n,i)),p||(p=o(a(t),"mouseup",v,i)))},m=t=>{y(),r&&r(t)},v=t=>{_(),r&&r(t)},y=()=>{c&&c(),l&&l(),u&&u(),c=l=u=void 0},_=()=>{h&&h(),p&&p(),h=p=void 0},w=()=>{y(),_()},O=(e=!0)=>{e?(s||(s=o(t,"touchstart",g,i)),d||(d=o(t,"mousedown",b,i))):(s&&s(),d&&d(),s=d=void 0,w())};return{enable:O,stop:w,destroy:()=>{O(!1),r=n=e=void 0}}})(c.el,t=>{const e=d(t);return!(n||!i)&&(u(t,w),w.startX=w.currentX,w.startY=w.currentY,w.startTime=w.currentTime=e,w.velocityX=w.velocityY=w.deltaX=w.deltaY=0,w.event=t,(!h||!1!==h(w))&&(S.release(),!!S.start()&&(n=!0,0===v?C():(O.start(w.startX,w.startY),!0))))},t=>{e?!s&&i&&(s=!0,l(w,t),requestAnimationFrame(E)):(l(w,t),O.detect(w.currentX,w.currentY)&&(O.isGesture()&&C()||T()))},P,{capture:!1,passive:y}),T=()=>{x(),I.stop(),b&&b(w)};return{enable(t=!0){t||(e&&P(void 0),x()),I.enable(t)},destroy(){S.destroy(),I.destroy()}}},l=(t,e)=>{if(!e)return;const n=t.currentX,r=t.currentY,o=t.currentTime;u(e,t);const i=t.currentX,s=t.currentY,a=(t.currentTime=d(e))-o;if(a>0&&a<100){const e=(s-r)/a;t.velocityX=(i-n)/a*.7+.3*t.velocityX,t.velocityY=.7*e+.3*t.velocityY}t.deltaX=i-t.startX,t.deltaY=s-t.startY,t.event=e},u=(t,e)=>{let n=0,r=0;if(t){const e=t.changedTouches;if(e&&e.length>0){const t=e[0];n=t.clientX,r=t.clientY}else void 0!==t.pageX&&(n=t.pageX,r=t.pageY)}e.currentX=n,e.currentY=r},d=t=>t.timeStamp||Date.now()},jJkw:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("Zgba"),o=n("btv9"),i=n("8RMS");const s=t=>Object(o.a)().duration(t?400:300),a=t=>{let e,n;
1const i=t.width+8,a=Object(o.a)(),c=Object(o.a)();t.isEndSide?(e=i+"px",n="0px"):(e=-i+"px",n="0px"),a.addElement(t.menuInnerEl).fromTo("transform",`translateX(${e})`,`translateX(${n})`);const l="ios"===Object(r.b)(t),u=l?.2:.25;return c.addElement(t.backdropEl).fromTo("opacity",.01,u),s(l).addAnimation([a,c])},c=t=>{let e,n;const i=Object(r.b)(t),a=t.width;t.isEndSide?(e=-a+"px",n=a+"px"):(e=a+"px",n=-a+"px");const c=Object(o.a)().addElement(t.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),l=Object(o.a)().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${e})`),u=Object(o.a)().addElement(t.backdropEl).fromTo("opacity",.01,.32);return s("ios"===i).addAnimation([c,l,u])},l=t=>{const e=Object(r.b)(t),n=t.width*(t.isEndSide?-1:1)+"px",i=Object(o.a)().addElement(t.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return s("ios"===e).addAnimation(i)},u=(()=>{const t=new Map,e=[],n=async t=>(await p(),"start"===t||"end"===t?h(e=>e.side===t&&!e.disabled)||h(e=>e.side===t):null!=t?h(e=>e.menuId===t):h(t=>!t.disabled)||(e.length>0?e[0].el:void 0)),r=async()=>(await p(),u()),o=(e,n)=>{t.set(e,n)},s=t=>{const n=t.side;e.filter(e=>e.side===n&&e!==t).forEach(t=>t.disabled=!0)},u=()=>h(t=>t._isOpen),d=()=>e.some(t=>t.isAnimating),h=t=>{const n=e.find(t);if(void 0!==n)return n.el},p=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(t=>t.componentOnReady()));return o("reveal",l),o("push",c),o("overlay",a),"undefined"!=typeof document&&document.addEventListener("ionBackButton",t=>{const e=u();e&&t.detail.register(i.MENU_BACK_BUTTON_PRIORITY,()=>e.close())}),{registerAnimation:o,get:n,getMenus:async()=>(await p(),e.map(t=>t.el)),getOpen:r,isEnabled:async t=>{const e=await n(t);return!!e&&!e.disabled},swipeGesture:async(t,e)=>{const r=await n(e);return r&&(r.swipeGesture=t),r},isAnimating:async()=>(await p(),d()),isOpen:async t=>{if(null!=t){const e=await n(t);return void 0!==e&&e.isOpen()}return void 0!==await r()},enable:async(t,e)=>{const r=await n(e);return r&&(r.disabled=!t),r},toggle:async t=>{const e=await n(t);return!!e&&e.toggle()},close:async t=>{const e=await(void 0!==t?n(t):r());return void 0!==e&&e.close()},open:async t=>{const e=await n(t);return!!e&&e.open()},_getOpenSync:u,_createAnimation:(e,n)=>{const r=t.get(e);if(!r)throw new Error("animation not registered");return r(n)},_register:t=>{e.indexOf(t)<0&&(t.disabled||s(t),e.push(t))},_unregister:t=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_setOpen:async(t,e,n)=>{if(d())return!1;if(e){const e=await r();e&&t.el!==e&&await e.setOpen(!1,!1)}return t._setOpen(e,n)},_setActiveMenu:s}})()},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC"),o=n("quSY");function i(t,e){return new r.a(n=>{const r=new o.a;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return $})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return M}));var r=n("ofXK"),o=n("fXoL");class i extends r.t{constructor(){super()}supportsDOMEvents(){return!0}}class s extends i{static makeCurrent(){Object(r.x)(new s)}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=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=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 Object(r.w)(document.cookie,t)}}let a,c=null;const l=new o.q("TRANSITION_ID"),u=[{provide:o.d,useFactory:function(t,e,n){return()=>{n.get(o.e).donePromise.then(()=>{const n=Object(r.v)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,r.c,o.r],multi:!0}];class d{static init(){Object(o.X)(new d)}addToWindow(t){o.pb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},o.pb.getAllAngularTestabilities=()=>t.getAllTestabilities(),o.pb.getAllAngularRootElements=()=>t.getAllRootElements(),o.pb.frameworkStabilizers||(o.pb.frameworkStabilizers=[]),o.pb.frameworkStabilizers.push(t=>{const e=o.pb.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const o=t.getTestability(e);return null!=o?o:n?Object(r.v)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const h=new o.q("EventManagerPlugins");let p=(()=>{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 r=0;r<n.length;r++){const e=n[r];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)(o.Tb(h),o.Tb(o.z))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();class f{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const o=Object(r.v)().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${e}`);return this.addEventListener(o,e,n)}}let g=(()=>{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=o.Ib({token:t,factory:t.\u0275fac}),t})(),b=(()=>{class t extends g{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)}
1onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.v)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(r.c))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();const m={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/"},v=/%COMP%/g;function y(t,e,n){for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?y(t,o,n):(o=o.replace(v,t),n.push(o))}return n}function _(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new O(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case o.O.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new S(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case o.O.Native:case o.O.ShadowDom:return new E(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(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)(o.Tb(p),o.Tb(b),o.Tb(o.c))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();class O{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(m[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,r){if(r){e=r+":"+e;const o=m[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=m[n];r?t.removeAttributeNS(r,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,r){r&o.F.DashCase?t.style.setProperty(e,n,r&o.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&o.F.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,_(n)):this.eventManager.addEventListener(t,e,_(n))}}class S extends O{constructor(t,e,n,r){super(t),this.component=n;const o=y(r+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(v,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(v,t)}(r+"-"+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 E extends O{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===o.O.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=y(r.id,r.styles,[]);for(let o=0;o<i.length;o++){const t=document.createElement("style");t.textContent=i[o],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 C=(()=>{class t extends f{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)(o.Tb(r.c))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();const j=["alt","control","meta","shift"],x={"\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"},P={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"},I={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let T=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,o){const i=t.parseEventName(n),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.v)().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(n.pop());let i="";if(j.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;const s={};return s.domEventName=r,s.fullKey=i,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&&P.hasOwnProperty(e)&&(e=P[e]))}return x[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),j.forEac
1h(r=>{r!=n&&(0,I[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return o=>{t.getEventFullKey(o)===e&&r.runGuarded(()=>n(o))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(r.c))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Ib)({factory:function(){return Object(o.Tb)(D)},token:t,providedIn:"root"}),t})();function A(t){return new D(t.get(r.c))}let D=(()=>{class t extends k{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case o.H.NONE:return e;case o.H.HTML:return Object(o.eb)(e,"HTML")?Object(o.xb)(e):Object(o.bb)(this._doc,String(e));case o.H.STYLE:return Object(o.eb)(e,"Style")?Object(o.xb)(e):Object(o.cb)(e);case o.H.SCRIPT:if(Object(o.eb)(e,"Script"))return Object(o.xb)(e);throw new Error("unsafe value used in a script context");case o.H.URL:return Object(o.ob)(e),Object(o.eb)(e,"URL")?Object(o.xb)(e):Object(o.db)(String(e));case o.H.RESOURCE_URL:if(Object(o.eb)(e,"ResourceURL"))return Object(o.xb)(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 Object(o.fb)(t)}bypassSecurityTrustStyle(t){return Object(o.ib)(t)}bypassSecurityTrustScript(t){return Object(o.hb)(t)}bypassSecurityTrustUrl(t){return Object(o.jb)(t)}bypassSecurityTrustResourceUrl(t){return Object(o.gb)(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(r.c))},t.\u0275prov=Object(o.Ib)({factory:function(){return A(Object(o.Tb)(o.o))},token:t,providedIn:"root"}),t})();const R=[{provide:o.B,useValue:r.u},{provide:o.C,useValue:function(){s.makeCurrent(),d.init()},multi:!0},{provide:r.c,useFactory:function(){return Object(o.vb)(document),document},deps:[]}],M=Object(o.Q)(o.W,"browser",R),N=[[],{provide:o.Z,useValue:"root"},{provide:o.m,useFactory:function(){return new o.m},deps:[]},{provide:h,useClass:C,multi:!0,deps:[r.c,o.z,o.B]},{provide:h,useClass:T,multi:!0,deps:[r.c]},[],{provide:w,useClass:w,deps:[p,b,o.c]},{provide:o.E,useExisting:w},{provide:g,useExisting:b},{provide:b,useClass:b,deps:[r.c]},{provide:o.L,useClass:o.L,deps:[o.z]},{provide:p,useClass:p,deps:[h,o.z]},[]];let $=(()=>{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:o.c,useValue:e.appId},{provide:l,useExisting:o.c},u]}}}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)(o.Tb(t,12))},providers:N,imports:[r.b,o.f]}),t})();"undefined"!=typeof window&&window},k9ne:function(t,e,n){"use strict";n.r(e),n.d(e,"iosTransitionAnimation",(function(){return d})),n.d(e,"shadow",(function(){return s})),n("A36C"),n("OMvp");var r=n("btv9"),o=n("fYWy");const i=t=>document.querySelector(`${t}.ion-cloned-element`),s=t=>t.shadowRoot||t,a=t=>{const e="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=e){const t=e.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},c=(t,e)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let r=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(r=t.querySelectorAll("ion-buttons"))}else r=t.querySelectorAll("ion-buttons");for(const o of r){const t=o.closest("ion-header"),n=t&&!t.classList.contains("header-collapse-condense-inactive"),r=o.querySelector("ion-back-button"),i=o.classList.contains("buttons-collapse"),s="start"===o.slot||""===o.slot;if(null!==r&&s&&(i&&n&&e||!i))return r}return null},l=(t,e,n,o,a,c)=>{const l=e?`calc(100% - ${c.right+4}px)`:`${c.left-4}px`,u=e?"7px":"-7px",d=e?"-4px":"4px",h=e?"-4px":"4px",p=e?"right":"left",f=e?"left"
1:"right",g=n?[{offset:0,opacity:1,transform:`translate3d(${d}, ${c.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${u}, ${a.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${d}, ${c.top-46}px, 0) scale(1)`}],b=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${c.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${h}, ${c.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${h}, ${c.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${h}, ${c.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${h}, ${c.top-46}px, 0) scale(1)`}],m=Object(r.a)(),v=Object(r.a)(),y=i("ion-back-button"),_=s(y).querySelector(".button-text"),w=s(y).querySelector("ion-icon");y.text=o.text,y.mode=o.mode,y.icon=o.icon,y.color=o.color,y.disabled=o.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),v.addElement(w),m.addElement(_),m.beforeStyles({"transform-origin":`${p} center`}).beforeAddWrite(()=>{o.style.setProperty("display","none"),y.style.setProperty(p,l)}).afterAddWrite(()=>{o.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(g),v.beforeStyles({"transform-origin":`${f} center`}).keyframes(b),t.addAnimation([m,v])},u=(t,e,n,o,s,a)=>{const c=e?`calc(100% - ${s.right}px)`:`${s.left}px`,l=e?"-18px":"18px",u=e?"right":"left",d=n?[{offset:0,opacity:0,transform:`translate3d(${l}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${s.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${s.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${l}, ${a.top-4}px, 0) scale(0.5)`}],h=i("ion-title"),p=Object(r.a)();h.innerText=o.innerText,h.size=o.size,h.color=o.color,p.addElement(h),p.beforeStyles({"transform-origin":`${u} center`,height:"46px",display:"",position:"relative",[u]:c}).beforeAddWrite(()=>{o.style.setProperty("display","none")}).afterAddWrite(()=>{o.style.setProperty("display",""),h.style.setProperty("display","none")}).keyframes(d),t.addAnimation(p)},d=(t,e)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",i="opacity",d="transform",h="0%",p=.8,f="rtl"===t.ownerDocument.dir,g=f?"-99.5%":"99.5%",b=f?"33%":"-33%",m=e.enteringEl,v=e.leavingEl,y="back"===e.direction,_=m.querySelector(":scope > ion-content"),w=m.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),O=m.querySelectorAll(":scope > ion-header > ion-toolbar"),S=Object(r.a)(),E=Object(r.a)();if(S.addElement(m).duration(e.duration||540).easing(e.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),v&&t){const e=Object(r.a)();e.addElement(t),S.addAnimation(e)}if(_||0!==O.length||0!==w.length?(E.addElement(_),E.addElement(w)):E.addElement(m.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(E),y?E.beforeClearStyles([i]).fromTo("transform",`translateX(${b})`,`translateX(${h})`).fromTo(i,p,1):E.beforeClearStyles([i]).fromTo("transform",`translateX(${g})`,`translateX(${h})`),_){const t=s(_).querySelector(".transition-effect");if(t){const e=t.querySelector(".transition-cover"),n=t.querySelector(".transition-shadow"),o=Object(r.a)(),s=Object(r.a)(),a=Object(r.a)();o.addElement(t).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),s.addElement(e).beforeClearStyles([i]).fromTo(i,0,.1),a.addElement(n).beforeClearStyles([i]).fromTo(i,.03,.7),o.addAnimation([s,a]),E.addAnimation([o])}}const C=m.querySelector("ion-header.header-collapse-condense"),{forward:j,backward:x}=((t,e,n,r,o)=>{const i=c(r,n),s=a(o),d=a(r),h=c(o,n),p=null!==i&&null!==s&&!n,f=null!==d&&null!==h&&n;if(p){const r=s.getBoundingClientRect(),o=i.getBoundingClientRect();u(t,e,n,s,r,o),l(t,e,n,i,r,o)}else if(f){const r=d.getBoundingClientRect(),o=h.getBoundingClientRect();u(t,e,n,d,r,o),l(t,e,n,h,r,o)}return{forward:p,backward:f}}
1)(S,f,y,m,v);if(O.forEach(t=>{const e=Object(r.a)();e.addElement(t),S.addAnimation(e);const n=Object(r.a)();n.addElement(t.querySelector("ion-title"));const o=Object(r.a)(),a=Array.from(t.querySelectorAll("ion-buttons,[menuToggle]")),c=t.closest("ion-header"),l=c&&c.classList.contains("header-collapse-condense-inactive");let u;u=a.filter(y?t=>{const e=t.classList.contains("buttons-collapse");return e&&!l||!e}:t=>!t.classList.contains("buttons-collapse")),o.addElement(u);const d=Object(r.a)();d.addElement(t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(r.a)();p.addElement(s(t).querySelector(".toolbar-background"));const m=Object(r.a)(),v=t.querySelector("ion-back-button");if(v&&m.addElement(v),e.addAnimation([n,o,d,p,m]),o.fromTo(i,.01,1),d.fromTo(i,.01,1),y)l||n.fromTo("transform",`translateX(${b})`,`translateX(${h})`).fromTo(i,.01,1),d.fromTo("transform",`translateX(${b})`,`translateX(${h})`),m.fromTo(i,.01,1);else if(C||n.fromTo("transform",`translateX(${g})`,`translateX(${h})`).fromTo(i,.01,1),d.fromTo("transform",`translateX(${g})`,`translateX(${h})`),p.beforeClearStyles([i,"transform"]),(null==c?void 0:c.translucent)?p.fromTo("transform",f?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(i,.01,"var(--opacity)"),j||m.fromTo(i,.01,1),v&&!j){const t=Object(r.a)();t.addElement(s(v).querySelector(".button-text")).fromTo("transform",f?"translateX(-100px)":"translateX(100px)","translateX(0px)"),e.addAnimation(t)}}),v){const t=Object(r.a)(),e=v.querySelector(":scope > ion-content"),n=v.querySelectorAll(":scope > ion-header > ion-toolbar"),a=v.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(e||0!==n.length||0!==a.length?(t.addElement(e),t.addElement(a)):t.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(t),y){t.beforeClearStyles([i]).fromTo("transform",`translateX(${h})`,f?"translateX(-100%)":"translateX(100%)");const e=Object(o.g)(v);S.afterAddWrite(()=>{"normal"===S.getDirection()&&e.style.setProperty("display","none")})}else t.fromTo("transform",`translateX(${h})`,`translateX(${b})`).fromTo(i,1,p);if(e){const n=s(e).querySelector(".transition-effect");if(n){const e=n.querySelector(".transition-cover"),o=n.querySelector(".transition-shadow"),s=Object(r.a)(),a=Object(r.a)(),c=Object(r.a)();s.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(e).beforeClearStyles([i]).fromTo(i,.1,0),c.addElement(o).beforeClearStyles([i]).fromTo(i,.7,.03),s.addAnimation([a,c]),t.addAnimation([s])}}n.forEach(t=>{const e=Object(r.a)();e.addElement(t);const n=Object(r.a)();n.addElement(t.querySelector("ion-title"));const o=Object(r.a)(),a=t.querySelectorAll("ion-buttons,[menuToggle]"),c=t.closest("ion-header"),l=c&&c.classList.contains("header-collapse-condense-inactive"),u=Array.from(a).filter(t=>{const e=t.classList.contains("buttons-collapse");return e&&!l||!e});o.addElement(u);const p=Object(r.a)(),g=t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");g.length>0&&p.addElement(g);const m=Object(r.a)();m.addElement(s(t).querySelector(".toolbar-background"));const v=Object(r.a)(),_=t.querySelector("ion-back-button");if(_&&v.addElement(_),e.addAnimation([n,o,p,v,m]),S.addAnimation(e),v.fromTo(i,.99,0),o.fromTo(i,.99,0),p.fromTo(i,.99,0),y){if(l||n.fromTo("transform",`translateX(${h})`,f?"translateX(-100%)":"translateX(100%)").fromTo(i,.99,0),p.fromTo("transform",`translateX(${h})`,f?"translateX(-100%)":"translateX(100%)"),m.beforeClearStyles([i,"transform"]),(null==c?void 0:c.translucent)?m.fromTo("transform","translateX(0px)",f?"translateX(-100%)":"translateX(100%)"):m.fromTo(i,"var(--opacity)",0),_&&!x){const t=Object(r.a)();t.addElement(s(_).querySelector(".button-text")).fromTo("transform",`translateX(${h})`,`translateX(${(f?-124:124)+"px"})`),e.addAnimation(t)}}else l||n.fromTo("transform",`translateX(${h})`,`translateX(${b})`).fromTo(i,.99,0).afterClearStyles([d,i]),p.fromTo("transform",`translateX(${h}
1)`,`translateX(${b})`).afterClearStyles([d,i]),v.afterClearStyles([i]),n.afterClearStyles([i]),o.afterClearStyles([i])})}return S}catch(n){throw n}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kLfG:function(t,e,n){var r={"./ion-action-sheet.entry.js":["dUtr",0,50],"./ion-alert.entry.js":["Q8AI",0,51],"./ion-app_8.entry.js":["hgI1",0,52],"./ion-avatar_3.entry.js":["CfoV",0,53],"./ion-back-button.entry.js":["Nt02",0,54],"./ion-backdrop.entry.js":["Q2Bp",55],"./ion-button_2.entry.js":["0Pbj",0,56],"./ion-card_5.entry.js":["ydQj",0,57],"./ion-checkbox.entry.js":["4fMi",0,58],"./ion-chip.entry.js":["czK9",0,59],"./ion-col_3.entry.js":["/CAe",60],"./ion-datetime_3.entry.js":["WgF3",0,61],"./ion-fab_3.entry.js":["uQcF",0,62],"./ion-img.entry.js":["wHD8",63],"./ion-infinite-scroll_2.entry.js":["2lz6",64],"./ion-input.entry.js":["ercB",0,65],"./ion-item-option_3.entry.js":["MGMP",0,66],"./ion-item_8.entry.js":["9bur",0,67],"./ion-loading.entry.js":["cABk",0,68],"./ion-menu_3.entry.js":["kyFE",0,69],"./ion-modal.entry.js":["TvZU",0,70],"./ion-nav_2.entry.js":["vnES",0,71],"./ion-popover.entry.js":["qCuA",0,72],"./ion-progress-bar.entry.js":["0tOe",0,73],"./ion-radio_2.entry.js":["h11V",0,74],"./ion-range.entry.js":["XGij",0,75],"./ion-refresher_2.entry.js":["nYbb",0,76],"./ion-reorder_2.entry.js":["smMY",0,77],"./ion-ripple-effect.entry.js":["STjf",78],"./ion-route_4.entry.js":["k5eQ",0,79],"./ion-searchbar.entry.js":["OR5t",0,80],"./ion-segment_2.entry.js":["fSgp",0,81],"./ion-select_3.entry.js":["lfGF",0,82],"./ion-slide_2.entry.js":["5xYT",83],"./ion-spinner.entry.js":["nI0H",0,84],"./ion-split-pane.entry.js":["NAQR",85],"./ion-tab-bar_2.entry.js":["knkW",0,86],"./ion-tab_2.entry.js":["TpdJ",0,87],"./ion-text.entry.js":["ISmu",0,88],"./ion-textarea.entry.js":["U7LX",0,89],"./ion-toast.entry.js":["L3sA",0,90],"./ion-toggle.entry.js":["IUOf",0,91],"./ion-virtual-scroll.entry.js":["8Mb5",92]};function o(t){if(!n.o(r,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=r[t],o=e[0];return Promise.all(e.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(r)},o.id="kLfG",t.exports=o},kLqA:function(t,e,n){"use strict";e.__esModule=!0;var r=function(){function t(e){if(!e)throw new TypeError("Invalid argument; `value` has no value.");this.value=t.EMPTY,e&&t.isGuid(e)&&(this.value=e)}return t.isGuid=function(e){var n=e.toString();return e&&(e instanceof t||t.validator.test(n))},t.create=function(){return new t([t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-"))},t.createEmpty=function(){return new t("emptyguid")},t.parse=function(e){return new t(e)},t.raw=function(){return[t.gen(2),t.gen(1),t.gen(1),t.gen(1),t.gen(3)].join("-")},t.gen=function(t){for(var e="",n=0;n<t;n++)e+=(65536*(1+Math.random())|0).toString(16).substring(1);return e},t.prototype.equals=function(e){return t.isGuid(e)&&this.value===e.toString()},t.prototype.isEmpty=function(){return this.value===t.EMPTY},t.prototype.toString=function(){return this.value},t.prototype.toJSON=function(){return{value:this.value}},t.validator=new RegExp("^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$","i"),t.EMPTY="00000000-0000-0000-0000-000000000000",t}();e.Guid=r},kwrG:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("C6fG"),i=n("VRyK"),s=n("fXoL"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Connection={UNKNOWN:"unknown",ETHERNET:"ethernet",WIFI:"wifi",CELL_2G:"2g",CELL_3G:"3g",CELL_4G:"4g",CELL:"cellular",NONE:"none"},e}Object(r.c)(e,t),e.prototype.onChange=function(){var t=this;return function(){if(!0===Object(o.checkAvailability)(t))return Object(i.a)(t.onConnect(),t.onDisconnect())}()},e.prototype.onDisconnect=function(){return Object(o.cordova)(this,"onDisconnect",{eventObservable:!0,event:"offline",element:"document"},arguments)},e.prototype.onConnect=function(){return Object(o.cordova)(this,"onConnect",{eventObservable:!0,event:"online",element:"document"},arguments)}
1,Object.defineProperty(e.prototype,"type",{get:function(){return Object(o.cordovaPropertyGet)(this,"type")},set:function(t){Object(o.cordovaPropertySet)(this,"type",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"downlinkMax",{get:function(){return Object(o.cordovaPropertyGet)(this,"downlinkMax")},set:function(t){Object(o.cordovaPropertySet)(this,"downlinkMax",t)},enumerable:!0,configurable:!0}),e.pluginName="Network",e.plugin="cordova-plugin-network-information",e.pluginRef="navigator.connection",e.repo="https://github.com/apache/cordova-plugin-network-information",e.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Rb(e);return e}(o.IonicNativePlugin)},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q");function o(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 i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.project,this.thisArg))}}class s extends r.a{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)}}},"m/P+":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("C6fG"),i=n("HDdC"),s=n("fXoL"),a=function(){function t(t,e,n){try{n&&"string"!=typeof n&&(n=Object.keys(n).map((function(t){return t+"="+n[t]})).join(",")),this._objectInstance=cordova.InAppBrowser.open(t,e,n)}catch(r){"undefined"!=typeof window&&window.open(t,e),console.warn("Native: InAppBrowser is not installed or you are running on a browser. Falling back to window.open.")}}return t.prototype._loadAfterBeforeload=function(t){return Object(o.cordovaInstance)(this,"_loadAfterBeforeload",{sync:!0},arguments)},t.prototype.show=function(){return Object(o.cordovaInstance)(this,"show",{sync:!0},arguments)},t.prototype.close=function(){return Object(o.cordovaInstance)(this,"close",{sync:!0},arguments)},t.prototype.hide=function(){return Object(o.cordovaInstance)(this,"hide",{sync:!0},arguments)},t.prototype.executeScript=function(t){return Object(o.cordovaInstance)(this,"executeScript",{},arguments)},t.prototype.insertCSS=function(t){return Object(o.cordovaInstance)(this,"insertCSS",{},arguments)},t.prototype.on=function(t){var e=this;return function(){if(!0===Object(o.instanceAvailability)(e))return new i.a((function(n){return e._objectInstance.addEventListener(t,n.next.bind(n)),function(){return e._objectInstance.removeEventListener(t,n.next.bind(n))}}))}()},t.prototype.on=function(t){var e=this;return function(){if(!0===Object(o.instanceAvailability)(e))return new i.a((function(n){return e._objectInstance.addEventListener(t,n.next.bind(n)),function(){return e._objectInstance.removeEventListener(t,n.next.bind(n))}}))}()},t}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.create=function(t,e,n){return new a(t,e,n)},e.pluginName="InAppBrowser",e.plugin="cordova-plugin-inappbrowser",e.pluginRef="cordova.InAppBrowser",e.repo="https://github.com/apache/cordova-plugin-inappbrowser",e.platforms=["AmazonFire OS","Android","Browser","iOS","macOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=s.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=s.Rb(e);return e}(o.IonicNativePlugin)},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n("SpAZ");function o(...t){return i(t)}function i(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}},mrSG:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return s}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;
1a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function s(t,e,n,r){return new(n||(n=Promise))((function(o,i){function s(t){try{c(r.next(t))}catch(e){i(e)}}function a(t){try{c(r.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((r=r.apply(t,e||[])).next())}))}},msQ9:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("ofXK"),o=n("TEn/"),i=n("fXoL");let s=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.kb]]}),t})()},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}},oAJy:function(t,e,n){t.exports=function t(e,n,r){function o(s,a){if(!n[s]){if(!e[s]){if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,(function(t){return o(e[s][1][t]||t)}),l,l.exports,t,e,n,r)}return n[s].exports}for(var i=!1,s=0;s<r.length;s++)o(r[s]);return o}({1:[function(t,e,n){(function(t){"use strict";var n,r,o=t.MutationObserver||t.WebKitMutationObserver;if(o){var i=0,s=new o(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=i=++i%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var c=new t.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var t,e;r=!0;for(var n=l.length;n;){for(e=l,l=[],t=-1;++t<n;)e[t]();n=l.length}r=!1}e.exports=function(t){1!==l.push(t)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){"use strict";var r=t(1);function o(){}var i={},s=["REJECTED"],a=["FULFILLED"],c=["PENDING"];function l(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,t!==o&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){r((function(){var r;try{r=e(n)}catch(o){return i.reject(t,o)}r===t?i.reject(t,new TypeError("Cannot resolve promise with itself")):i.resolve(t,r)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function r(e){n||(n=!0,i.reject(t,e))}function o(e){n||(n=!0,i.resolve(t,e))}var s=f((function(){e(o,r)}));"error"===s.status&&r(s.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(r){n.status="error",n.value=r}return n}e.exports=l,l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var n=new this.constructor(o);return this.state!==c?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){i.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){i.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},i.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return i.reject(t,n.value);var r=n.value;if(r)p(t,r);else{t.state=a,t.outcome=e;for(var o=-1,s=t.queue.length;++o<s;)t.queue[o].callFulfilled(e)}return t},i.reject=function(t,e){t.state=s,t.outcome=e;for(var n=-1,r=t.queue.length;++n<r;)t.queue[n].callRejected(e);return t},l.resolve=function(t){return t instanceof this?t:i.resolve(new this(o),t)},l.reject=function(t){var e=new this(o);return i.reject(e,t)},l.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,r=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,c=-1,l=new this(o);++c<n;)u(t[c],c);return l;function u(t,o){e.resolve(t).then((function(t){s[o]=t,++a!==n||r||(r=!0,i.resolve(l,s))}),(function(t){r||(r=!0,i.reject(l,t))}))}},l.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var r=-1,s=new this(o);++r<e;)this.resolve(t[r]).then((function(t){n||(n=!0,i.resolve(s,t))}),(function(t){n||(n=!0,i.reject(s,t))}));return s}},{1:1}],3:[function(t,e,n){(function(e){"use strict";"function"!=typeof e.Promise&&(e.Promise=t(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(t){return}}();function i(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<t.length;r+=1)n.append(t[r]);return n.getBlob(e.type)}}"undefined"==typeof Promise&&t(3);var s=Promise;function a(t,e){e&&t.then((function(t){e(null,t)}),(function(t){e(t)}))}function c(t,e,n){"function"==typeof e&&t.then(e),"function"==typeof n&&t.catch(n)}function l(t){return"string"!=typeof t&&(console.warn(t+" used as a key, but it is not a string."),t=String(t)),t}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var d=void 0,h={},p=Object.prototype.toString;function f(t){var e=h[t.name],n={};n.promise=new s((function(t,e){n.resolve=t,n.reject=e})),e.deferredOperations.push(n),e.dbReady=e.dbReady?e.dbReady.then((function(){return n.promise})):n.promise}function g(t){var e=h[t.name].deferredOperations.pop();if(e)return e.resolve(),e.promise}function b(t,e){var n=h[t.name].deferredOperations.pop();if(n)return n.reject(e),n.promise}function m(t,e){return new s((function(n,r){if(h[t.name]=h[t.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},t.db){if(!e)return n(t.db);f(t),t.db.close()}var i=[t.name];e&&i.push(t.version);var s=o.open.apply(o,i);e&&(s.onupgradeneeded=function(e){var n=s.result;try{n.createObjectStore(t.storeName),e.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+t.name+'" has been upgraded from version '+e.oldVersion+" to version "+e.newVersion+', but the storage "'+t.storeName+'" already exists.')}}),s.onerror=function(t){t.preventDefault(),r(s.error)},s.onsuccess=function(){n(s.result),g(t)}}))}function v(t){return m(t,!1)}function y(t){return m(t,!0)}function _(t,e){if(!t.db)return!0;var n=!t.db.objectStoreNames.contains(t.storeName),r=t.version>
vendor: 4,319 bytes, line 1
1t.db.version;if(t.version<t.db.version&&(t.version!==e&&console.warn('The database "'+t.name+"\" can't be downgraded from version "+t.db.version+" to version "+t.version+"."),t.version=t.db.version),r||n){if(n){var o=t.db.version+1;o>t.version&&(t.version=o)}return!0}return!1}function w(t){return i([function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n),o=0;o<e;o++)r[o]=t.charCodeAt(o);return n}(atob(t.data))],{type:t.type})}function O(t){return t&&t.__local_forage_encoded_blob}function S(t){var e=this,n=e._initReady().then((function(){var t=h[e._dbInfo.name];if(t&&t.dbReady)return t.dbReady}));return c(n,t,t),n}function E(t,e,n,r){void 0===r&&(r=1);try{var o=t.db.transaction(t.storeName,e);n(null,o)}catch(i){if(r>0&&(!t.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return s.resolve().then((function(){if(!t.db||"NotFoundError"===i.name&&!t.db.objectStoreNames.contains(t.storeName)&&t.version<=t.db.version)return t.db&&(t.version=t.db.version+1),y(t)})).then((function(){return function(t){f(t);for(var e=h[t.name],n=e.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return t.db=null,v(t).then((function(e){return t.db=e,_(t)?y(t):e})).then((function(r){t.db=e.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(e){throw b(t,e),e}))}(t).then((function(){E(t,e,n,r-1)}))})).catch(n);n(i)}}var C={_driver:"asyncStorage",_initStorage:function(t){var e=this,n={db:null};if(t)for(var r in t)n[r]=t[r];var o=h[n.name];o||(h[n.name]=o={forages:[],db:null,dbReady:null,deferredOperations:[]}),o.forages.push(e),e._initReady||(e._initReady=e.ready,e.ready=S);var i=[];function a(){return s.resolve()}for(var c=0;c<o.forages.length;c++){var l=o.forages[c];l!==e&&i.push(l._initReady().catch(a))}var u=o.forages.slice(0);return s.all(i).then((function(){return n.db=o.db,v(n)})).then((function(t){return n.db=t,_(n,e._defaultConfig.version)?y(n):t})).then((function(t){n.db=o.db=t,e._dbInfo=n;for(var r=0;r<u.length;r++){var i=u[r];i!==e&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))},_support:function(){try{if(!o)return!1;var t="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),e="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!t||e)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(t,e){var n=this,r=new s((function(e,r){n.ready().then((function(){E(n._dbInfo,"readonly",(function(o,i){if(o)return r(o);try{var s=i.objectStore(n._dbInfo.storeName).openCursor(),a=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;O(r)&&(r=w(r));var o=t(r,n.key,a++);void 0!==o?e(o):n.continue()}else e()},s.onerror=function(){r(s.error)}}catch(c){r(c)}}))})).catch(r)}));return a(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=new s((function(e,r){n.ready().then((function(){E(n._dbInfo,"readonly",(function(o,i){if(o)return r(o);try{var s=i.objectStore(n._dbInfo.storeName).get(t);s.onsuccess=function(){var t=s.result;void 0===t&&(t=null),O(t)&&(t=w(t)),e(t)},s.onerror=function(){r(s.error)}}catch(a){r(a)}}))})).catch(r)}));return a(r,e),r},setItem:function(t,e,n){var r=this;t=l(t);var o=new s((function(n,o){var a;r.ready().then((function(){return a=r._dbInfo,"[object Blob]"===p.call(e)?function(t){return"boolean"==typeof d?s.resolve(d):function(t){return new s((function(e){var n=t.transaction("local-forage-detect-blob-support","readwrite"),r=i([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(t){t.preventDefault(),t.stopPropagation(),e(!1)},n.oncomplete=function(){var t=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);e(n||!t||parseInt(t[1],10)>=43)}})).catch((function(){return!1}))}(t).then((function(t){return d=t}))}(a.db).then((function(t){return t?e:(n=e,new s((function(t,e){var r=new FileReader;r.onerror=e,r.onloadend=function(e){var r=btoa(e.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):e})).then((function(e){E(r._dbInfo,"readwrite",(function(i,s){if(i)return o(i);try{var a=s.objectStore(r._dbInfo.storeName);null===e&&(e=void 0);var c=a.put(e,t);
vendor: 4,709 bytes, line 1
1s.oncomplete=function(){void 0===e&&(e=null),n(e)},s.onabort=s.onerror=function(){o(c.error?c.error:c.transaction.error)}}catch(l){o(l)}}))})).catch(o)}));return a(o,n),o},removeItem:function(t,e){var n=this;t=l(t);var r=new s((function(e,r){n.ready().then((function(){E(n._dbInfo,"readwrite",(function(o,i){if(o)return r(o);try{var s=i.objectStore(n._dbInfo.storeName).delete(t);i.oncomplete=function(){e()},i.onerror=function(){r(s.error)},i.onabort=function(){r(s.error?s.error:s.transaction.error)}}catch(a){r(a)}}))})).catch(r)}));return a(r,e),r},clear:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){E(e._dbInfo,"readwrite",(function(r,o){if(r)return n(r);try{var i=o.objectStore(e._dbInfo.storeName).clear();o.oncomplete=function(){t()},o.onabort=o.onerror=function(){n(i.error?i.error:i.transaction.error)}}catch(s){n(s)}}))})).catch(n)}));return a(n,t),n},length:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){E(e._dbInfo,"readonly",(function(r,o){if(r)return n(r);try{var i=o.objectStore(e._dbInfo.storeName).count();i.onsuccess=function(){t(i.result)},i.onerror=function(){n(i.error)}}catch(s){n(s)}}))})).catch(n)}));return a(n,t),n},key:function(t,e){var n=this,r=new s((function(e,r){t<0?e(null):n.ready().then((function(){E(n._dbInfo,"readonly",(function(o,i){if(o)return r(o);try{var s=i.objectStore(n._dbInfo.storeName),a=!1,c=s.openCursor();c.onsuccess=function(){var n=c.result;n?0===t?e(n.key):a?e(n.key):(a=!0,n.advance(t)):e(null)},c.onerror=function(){r(c.error)}}catch(l){r(l)}}))})).catch(r)}));return a(r,e),r},keys:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){E(e._dbInfo,"readonly",(function(r,o){if(r)return n(r);try{var i=o.objectStore(e._dbInfo.storeName).openCursor(),s=[];i.onsuccess=function(){var e=i.result;e?(s.push(e.key),e.continue()):t(s)},i.onerror=function(){n(i.error)}}catch(a){n(a)}}))})).catch(n)}));return a(n,t),n},dropInstance:function(t,e){e=u.apply(this,arguments);var n=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||n.name,t.storeName=t.storeName||n.storeName);var r,i=this;if(t.name){var c=t.name===n.name&&i._dbInfo.db,l=c?s.resolve(i._dbInfo.db):v(t).then((function(e){var n=h[t.name],r=n.forages;n.db=e;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=e;return e}));r=l.then(t.storeName?function(e){if(e.objectStoreNames.contains(t.storeName)){var n=e.version+1;f(t);var r=h[t.name],i=r.forages;e.close();for(var a=0;a<i.length;a++){var c=i[a];c._dbInfo.db=null,c._dbInfo.version=n}return new s((function(e,r){var i=o.open(t.name,n);i.onerror=function(t){i.result.close(),r(t)},i.onupgradeneeded=function(){i.result.deleteObjectStore(t.storeName)},i.onsuccess=function(){var t=i.result;t.close(),e(t)}})).then((function(t){r.db=t;for(var e=0;e<i.length;e++){var n=i[e];n._dbInfo.db=t,g(n._dbInfo)}})).catch((function(e){throw(b(t,e)||s.resolve()).catch((function(){})),e}))}}:function(e){f(t);var n=h[t.name],r=n.forages;e.close();for(var i=0;i<r.length;i++)r[i]._dbInfo.db=null;return new s((function(e,n){var r=o.deleteDatabase(t.name);r.onerror=r.onblocked=function(t){var e=r.result;e&&e.close(),n(t)},r.onsuccess=function(){var t=r.result;t&&t.close(),e(t)}})).then((function(t){n.db=t;for(var e=0;e<r.length;e++)g(r[e]._dbInfo)})).catch((function(e){throw(b(t,e)||s.resolve()).catch((function(){})),e}))})}else r=s.reject("Invalid arguments");return a(r,e),r}},j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=/^~~local_forage_type~([^~]+)~/,P="__lfsc__:".length,I=P+"arbf".length,T=Object.prototype.toString;function k(t){var e,n,r,o,i,s=.75*t.length,a=t.length,c=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),u=new Uint8Array(l);for(e=0;e<a;e+=4)n=j.indexOf(t[e]),r=j.indexOf(t[e+1]),o=j.indexOf(t[e+2]),i=j.indexOf(t[e+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|o>>2,u[c++]=(3&o)<<6|63&i;return l}function A(t){var e,n=new Uint8Array(t),r="";for(e=0;e<n.length;e+=3)r+=j[n[e]>>2],r+=j[(3&n[e])<<4|n[e+1]>>4],r+=j[(15&n[e+1])<<2|n[e+2]>>6],r+=j[63&n[e+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}var D={serialize:function(t,e){var n="";if(t&&(n=T.call(t)),t&&("[object ArrayBuffer]"===n||t.buffer&&"[object ArrayBuffer]"===T.call(t.buffer))){var r,o="__lfsc__:";t instanceof ArrayBuffer?(r=t,o+="arbf"):(r=t.buffer,"[object Int8Array]"===n?o+="si08":"[object Uint8Array]"===n?o+="ui08":"[object Uint8ClampedArray]"===n?o+="uic8":"[object Int16Array]"===n?o+="si16":"[object Uint16Array]"===n?o+="ur16":"[object Int32Array]"===n?o+="si32":"[object Uint32Array]"===n?o+="ui32":"[object Float32Array]"===n?o+="fl32":"[object Float64Array
1]"===n?o+="fl64":e(new Error("Failed to get type for BinaryArray"))),e(o+A(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n="~~local_forage_type~"+t.type+"~"+A(this.result);e("__lfsc__:blob"+n)},i.readAsArrayBuffer(t)}else try{e(JSON.stringify(t))}catch(s){console.error("Couldn't convert value into a JSON string: ",t),e(null,s)}},deserialize:function(t){if("__lfsc__:"!==t.substring(0,P))return JSON.parse(t);var e,n=t.substring(I),r=t.substring(P,I);if("blob"===r&&x.test(n)){var o=n.match(x);e=o[1],n=n.substring(o[0].length)}var s=k(n);switch(r){case"arbf":return s;case"blob":return i([s],{type:e});case"si08":return new Int8Array(s);case"ui08":return new Uint8Array(s);case"uic8":return new Uint8ClampedArray(s);case"si16":return new Int16Array(s);case"ur16":return new Uint16Array(s);case"si32":return new Int32Array(s);case"ui32":return new Uint32Array(s);case"fl32":return new Float32Array(s);case"fl64":return new Float64Array(s);default:throw new Error("Unkown type: "+r)}},stringToBuffer:k,bufferToString:A};function R(t,e,n,r){t.executeSql("CREATE TABLE IF NOT EXISTS "+e.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function M(t,e,n,r,o,i){t.executeSql(n,r,o,(function(t,s){s.code===s.SYNTAX_ERR?t.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[name],(function(t,a){a.rows.length?i(t,s):R(t,e,(function(){t.executeSql(n,r,o,i)}),i)}),i):i(t,s)}),i)}function N(t,e,n,r){var o=this;t=l(t);var i=new s((function(i,s){o.ready().then((function(){void 0===e&&(e=null);var a=e,c=o._dbInfo;c.serializer.serialize(e,(function(e,l){l?s(l):c.db.transaction((function(n){M(n,c,"INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[t,e],(function(){i(a)}),(function(t,e){s(e)}))}),(function(e){if(e.code===e.QUOTA_ERR){if(r>0)return void i(N.apply(o,[t,a,n,r-1]));s(e)}}))}))})).catch(s)}));return a(i,n),i}function $(t){return new s((function(e,n){t.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);e({db:t,storeNames:o})}),(function(t,e){n(e)}))}),(function(t){n(t)}))}))}var L={_driver:"webSQLStorage",_initStorage:function(t){var e=this,n={db:null};if(t)for(var r in t)n[r]="string"!=typeof t[r]?t[r].toString():t[r];var o=new s((function(t,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction((function(o){R(o,n,(function(){e._dbInfo=n,t()}),(function(t,e){r(e)}))}),r)}));return n.serializer=D,o},_support:"function"==typeof openDatabase,iterate:function(t,e){var n=this,r=new s((function(e,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){M(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,s=i.length,a=0;a<s;a++){var c=i.item(a),l=c.value;if(l&&(l=o.serializer.deserialize(l)),void 0!==(l=t(l,c.key,a+1)))return void e(l)}e()}),(function(t,e){r(e)}))}))})).catch(r)}));return a(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=new s((function(e,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){M(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[t],(function(t,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),e(r)}),(function(t,e){r(e)}))}))})).catch(r)}));return a(r,e),r},setItem:function(t,e,n){return N.apply(this,[t,e,n,1])},removeItem:function(t,e){var n=this;t=l(t);var r=new s((function(e,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){M(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[t],(function(){e()}),(function(t,e){r(e)}))}))})).catch(r)}));return a(r,e),r},clear:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){var r=e._dbInfo;r.db.transaction((function(e){M(e,r,"DELETE FROM "+r.storeName,[],(function(){t()}),(function(t,e){n(e)}))}))})).catch(n)}));return a(n,t),n},length:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){var r=e._dbInfo;r.db.transaction((function(e){M(e,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(e,n){var r=n.rows.item(0).c;t(r)}),(function(t,e){n(e)}))}))})).catch(n)}));return a(n,t),n},key:function(t,e){var n=this,r=new s((function(e,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){M(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? L
1IMIT 1",[t+1],(function(t,n){var r=n.rows.length?n.rows.item(0).key:null;e(r)}),(function(t,e){r(e)}))}))})).catch(r)}));return a(r,e),r},keys:function(t){var e=this,n=new s((function(t,n){e.ready().then((function(){var r=e._dbInfo;r.db.transaction((function(e){M(e,r,"SELECT key FROM "+r.storeName,[],(function(e,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);t(r)}),(function(t,e){n(e)}))}))})).catch(n)}));return a(n,t),n},dropInstance:function(t,e){e=u.apply(this,arguments);var n=this.config();(t="function"!=typeof t&&t||{}).name||(t.name=t.name||n.name,t.storeName=t.storeName||n.storeName);var r,o=this;return a(r=t.name?new s((function(e){var r;r=t.name===n.name?o._dbInfo.db:openDatabase(t.name,"","",0),e(t.storeName?{db:r,storeNames:[t.storeName]}:$(r))})).then((function(t){return new s((function(e,n){t.db.transaction((function(r){function o(t){return new s((function(e,n){r.executeSql("DROP TABLE IF EXISTS "+t,[],(function(){e()}),(function(t,e){n(e)}))}))}for(var i=[],a=0,c=t.storeNames.length;a<c;a++)i.push(o(t.storeNames[a]));s.all(i).then((function(){e()})).catch((function(t){n(t)}))}),(function(t){n(t)}))}))})):s.reject("Invalid arguments"),e),r}};function V(t,e){var n=t.name+"/";return t.storeName!==e.storeName&&(n+=t.storeName+"/"),n}var F={_driver:"localStorageWrapper",_initStorage:function(t){var e={};if(t)for(var n in t)e[n]=t[n];return e.keyPrefix=V(t,this._defaultConfig),!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(t){return!0}}()||localStorage.length>0?(this._dbInfo=e,e.serializer=D,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(t){return!1}}(),iterate:function(t,e){var n=this,r=n.ready().then((function(){for(var e=n._dbInfo,r=e.keyPrefix,o=r.length,i=localStorage.length,s=1,a=0;a<i;a++){var c=localStorage.key(a);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=e.serializer.deserialize(l)),void 0!==(l=t(l,c.substring(o),s++)))return l}}}));return a(r,e),r},getItem:function(t,e){var n=this;t=l(t);var r=n.ready().then((function(){var e=n._dbInfo,r=localStorage.getItem(e.keyPrefix+t);return r&&(r=e.serializer.deserialize(r)),r}));return a(r,e),r},setItem:function(t,e,n){var r=this;t=l(t);var o=r.ready().then((function(){void 0===e&&(e=null);var n=e;return new s((function(o,i){var s=r._dbInfo;s.serializer.serialize(e,(function(e,r){if(r)i(r);else try{localStorage.setItem(s.keyPrefix+t,e),o(n)}catch(a){"QuotaExceededError"!==a.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==a.name||i(a),i(a)}}))}))}));return a(o,n),o},removeItem:function(t,e){var n=this;t=l(t);var r=n.ready().then((function(){localStorage.removeItem(n._dbInfo.keyPrefix+t)}));return a(r,e),r},clear:function(t){var e=this,n=e.ready().then((function(){for(var t=e._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(t)&&localStorage.removeItem(r)}}));return a(n,t),n},length:function(t){var e=this.keys().then((function(t){return t.length}));return a(e,t),e},key:function(t,e){var n=this,r=n.ready().then((function(){var e,r=n._dbInfo;try{e=localStorage.key(t)}catch(o){e=null}return e&&(e=e.substring(r.keyPrefix.length)),e}));return a(r,e),r},keys:function(t){var e=this,n=e.ready().then((function(){for(var t=e._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(t.keyPrefix)&&r.push(i.substring(t.keyPrefix.length))}return r}));return a(n,t),n},dropInstance:function(t,e){if(e=u.apply(this,arguments),!(t="function"!=typeof t&&t||{}).name){var n=this.config();t.name=t.name||n.name,t.storeName=t.storeName||n.storeName}var r,o=this;return a(r=t.name?new s((function(e){e(t.storeName?V(t,o._defaultConfig):t.name+"/")})).then((function(t){for(var e=localStorage.length-1;e>=0;e--){var n=localStorage.key(e);0===n.indexOf(t)&&localStorage.removeItem(n)}})):s.reject("Invalid arguments"),e),r}},U=function(t,e){for(var n,r,o=t.length,i=0;i<o;){if((n=t[i])===(r=e)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;
vendor: 4,256 bytes, line 1
1i++}return!1},B=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},z={},H={},G={INDEXEDDB:C,WEBSQL:L,LOCALSTORAGE:F},q=[G.INDEXEDDB._driver,G.WEBSQL._driver,G.LOCALSTORAGE._driver],W=["dropInstance"],X=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(W),K={description:"",driver:q.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Y(t,e){t[e]=function(){var n=arguments;return t.ready().then((function(){return t[e].apply(t,n)}))}}function Z(){for(var t=1;t<arguments.length;t++){var e=arguments[t];if(e)for(var n in e)e.hasOwnProperty(n)&&(arguments[0][n]=B(e[n])?e[n].slice():e[n])}return arguments[0]}var Q=new(function(){function t(e){for(var n in function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),G)if(G.hasOwnProperty(n)){var r=G[n],o=r._driver;this[n]=o,z[o]||this.defineDriver(r)}this._defaultConfig=Z({},K),this._config=Z({},this._defaultConfig,e),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return t.prototype.config=function(t){if("object"===(void 0===t?"undefined":r(t))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var e in t){if("storeName"===e&&(t[e]=t[e].replace(/\W/g,"_")),"version"===e&&"number"!=typeof t[e])return new Error("Database version must be a number.");this._config[e]=t[e]}return!("driver"in t&&t.driver)||this.setDriver(this._config.driver)}return"string"==typeof t?this._config[t]:this._config},t.prototype.defineDriver=function(t,e,n){var r=new s((function(e,n){try{var r=t._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!t._driver)return void n(o);for(var i=X.concat("_initStorage"),c=0,l=i.length;c<l;c++){var u=i[c];if((!U(W,u)||t[u])&&"function"!=typeof t[u])return void n(o)}!function(){for(var e=function(t){return function(){var e=new Error("Method "+t+" is not implemented by the current driver"),n=s.reject(e);return a(n,arguments[arguments.length-1]),n}},n=0,r=W.length;n<r;n++){var o=W[n];t[o]||(t[o]=e(o))}}();var d=function(n){z[r]&&console.info("Redefining LocalForage driver: "+r),z[r]=t,H[r]=n,e()};"_support"in t?t._support&&"function"==typeof t._support?t._support().then(d,n):d(!!t._support):d(!0)}catch(h){n(h)}}));return c(r,e,n),r},t.prototype.driver=function(){return this._driver||null},t.prototype.getDriver=function(t,e,n){var r=z[t]?s.resolve(z[t]):s.reject(new Error("Driver not found."));return c(r,e,n),r},t.prototype.getSerializer=function(t){var e=s.resolve(D);return c(e,t),e},t.prototype.ready=function(t){var e=this,n=e._driverSet.then((function(){return null===e._ready&&(e._ready=e._initDriver()),e._ready}));return c(n,t,t),n},t.prototype.setDriver=function(t,e,n){var r=this;B(t)||(t=[t]);var o=this._getSupportedDrivers(t);function i(){r._config.driver=r.driver()}function a(t){return r._extend(t),i(),r._ready=r._initStorage(r._config),r._ready}var l=null!==this._driverSet?this._driverSet.catch((function(){return s.resolve()})):s.resolve();return this._driverSet=l.then((function(){var t=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(t).then((function(t){r._driver=t._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(t){return function(){var e=0;return function n(){for(;e<t.length;){var o=t[e];return e++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(a).catch(n)}i();var c=new Error("No available storage method found.");return r._driverSet=s.reject(c),r._driverSet}()}}(o)}))})).catch((function(){i();var t=new Error("No available storage method found.");return r._driverSet=s.reject(t),r._driverSet})),c(this._driverSet,e,n),this._driverSet},t.prototype.supports=function(t){return!!H[t]},t.prototype._extend=function(t){Z(this,t)},t.prototype._getSupportedDrivers=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];this.supports(o)&&e.push(o)}return e},t.prototype._wrapLibraryMethodsWithReady=function(){for(var t=0,e=X.length;t<e;t++)Y(this,X[t])},t.prototype.createInstance=function(e){return new t(e)},t}());e.exports=Q},{3:3}]},{},[4])(4)}
1,oB13:function(t,e,n){"use strict";var r=n("XNiG"),o=n("HDdC"),i=(n("7o/Q"),n("quSY")),s=n("x+ZX");class a extends o.a{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 i.a,t.add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=i.a.EMPTY)),t}refCount(){return Object(s.a)()(this)}}const c=(()=>{const t=a.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 l extends r.b{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 u(t,e){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new d(r,e));const o=Object.create(n,c);return o.source=n,o.subjectFactory=r,o}}n.d(e,"a",(function(){return u}));class d{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o}}},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return bt})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return gt})),n.d(e,"e",(function(){return O})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return S})),n.d(e,"h",(function(){return v})),n.d(e,"i",(function(){return rt})),n.d(e,"j",(function(){return it})),n.d(e,"k",(function(){return at})),n.d(e,"l",(function(){return ft})),n.d(e,"m",(function(){return dt})),n.d(e,"n",(function(){return ht})),n.d(e,"o",(function(){return pt})),n.d(e,"p",(function(){return w})),n.d(e,"q",(function(){return l})),n.d(e,"r",(function(){return yt})),n.d(e,"s",(function(){return vt})),n.d(e,"t",(function(){return a})),n.d(e,"u",(function(){return mt})),n.d(e,"v",(function(){return i})),n.d(e,"w",(function(){return nt})),n.d(e,"x",(function(){return s}));var r=n("fXoL");let o=null;function i(){return o}function s(t){o||(o=t)}class a{}const c=new r.q("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.Tb)(h)}const d=new r.q("Location Initialized");let h=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().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){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?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)(r.Tb(c))},t.\u0275prov=Object(r.Ib)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new h(Object(r.Tb)(c))}function g(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 b(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 m(t){return t&&"?"!==t[0]?"?"+t:t}let v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Ib)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(r.Tb)(c).location;return new w(Object(r.Tb)(l),e&&e.origin||"")}const _=new r.q("appBaseHref");let w=(()=>{class t extends v{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.on
1HashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+m(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const o=this.prepareExternalUrl(n+m(r));this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,r){const o=this.prepareExternalUrl(n+m(r));this._platformLocation.replaceState(t,e,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(l),r.Tb(_,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t extends v{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=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let o=this.prepareExternalUrl(n+m(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)}replaceState(t,e,n,r){let o=this.prepareExternalUrl(n+m(r));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)(r.Tb(l),r.Tb(_,8))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t{constructor(t,e){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=b(C(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+m(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,C(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+m(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+m(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)(r.Tb(v),r.Tb(l))},t.normalizeQueryParams=m,t.joinWithSlash=g,t.stripTrailingSlash=b,t.\u0275prov=Object(r.Ib)({factory:E,token:t,providedIn:"root"}),t})();function E(){return new S(Object(r.Tb)(v),Object(r.Tb)(l))}function C(t){return t.replace(/\/index.html$/,"")}const j=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}(),x=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),P=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}(),I=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}(),T=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 k(t,e){return $(Object(r.kb)(t)[r.ab.DateFormat],e)}function A(t,e){return $(Object(r.kb)(t)[r.ab.TimeFormat],e)}function D(t,e){return $(Object(r.kb)(t)[r.ab.DateTimeFormat],e)}function R(t,e){const n=Object(r.kb)(t),o=n[r.ab.NumberSymbols][e];if(void 0===o){if(e===T.CurrencyDecimal)return n[r.ab.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return n[r.ab.NumberSymbols][T.Group]}return o}const M=r.nb;function N(t){if(!t[r.ab.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.ab.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function $(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 L(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const V=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,F={},U=/((?:[^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]*)/,B=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}(),z=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}(),H=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 G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function q(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.substr(s.length-e)),i+s}function W(t,e,n=0,r=!1,o=!1){return function(i,s){let a=function(t,e){switch(t){case z.FullYear:return e.getFullYear();case z.Month:return e.getMonth();case z.Date:return e.getDate();case z.Hours:return e.getHours();case z.Minutes:return e.getMinutes();case z.Seconds:return e.getSeconds();case z.FractionalSeconds:return e.getMilliseconds();case z.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,i);if((n>0||a>-n)&&(a+=n),t===z.Hours)0===a&&-12===n&&(a=12);else if(t===z.FractionalSeconds)return c=e,q(a,3).substr(0,c);var c;const l=R(s,T.MinusSign);return q(a,e,l,r,o)}}function X(t,e,n=x.Format,o=!1){return function(i,s){return function(t,e,n,o,i,s){switch(n){case H.Months:return function(t,e,n){const o=Object(r.kb)(t),i=$([o[r.ab.MonthsFormat],o[r.ab.MonthsStandalone]],e);return $(i,n)}(e,i,o)[t.getMonth()];case H.Days:return function(t,e,n){const o=Object(r.kb)(t),i=$([o[r.ab.DaysFormat],o[r.ab.DaysStandalone]],e);return $(i,n)}(e,i,o)[t.getDay()];case H.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(s){const t=function(t){const e=Object(r.kb)(t);return N(e),(e[r.ab.ExtraData][2]||[]).map(t=>"string"==typeof t?L(t):[L(t[0]),L(t[1])])}(e),n=function(t,e,n){const o=Object(r.kb)(t);N(o);const i=$([o[r.ab.ExtraData][0],o[r.ab.ExtraData][1]],e)||[];return $(i,n)||[]}(e,i,o);let s;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:r,minutes:o}=t[0],{hours:i,minutes:l}=t[1];a>=r&&c>=o&&(a<i||a===i&&c<l)&&(s=n[e])}else{const{hours:r,minutes:o}=t;r===a&&o===c&&(s=n[e])}}),s)return s}return function(t,e,n){const o=Object(r.kb)(t),i=$([o[r.ab.DayPeriodsFormat],o[r.ab.DayPeriodsStandalone]],e);return $(i,n)}(e,i,o)[a<12?0:1];case H.Eras:return function(t,e){return $(Object(r.kb)(t)[r.ab.Eras],e)}(e,o)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${n}`)}}(i,s,t,e,n,o)}}function K(t){return function(e,n,r){const o=-1*r,i=R(n,T.MinusSign),s=o>0?Math.floor(o/60):Math.ceil(o/60);switch(t){case B.Short:return(o>=0?"+":"")+q(s,2,i)+q(Math.abs(o%60),2,i);case B.ShortGMT:return"GMT"+(o>=0?"+":"")+q(s,1,i);case B.Long:return"GMT"+(o>=0?"+":"")+q(s,2,i)+":"+q(Math.abs(o%60),2,i);case B.Extended:return 0===r?"Z":(o>=0?"+":"")+q(s,2,i)+":"+q(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Y(t,e=!1){return function(n,r){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=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))).getTime()-t.getTime();o=1+Math.round(e/6048e5)}var i;return q(o,t,R(r,T.MinusSign))}}const Z={};function Q(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function J(t){return t instanceof Date&&!isNaN(t.valueOf())}class tt{}let et=(()=>{class t extends tt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(M(e||this.locale)(t)){case j.Zero:return"zero";case j.One:return"one";case j.Two:return"two";case j.Few:return"few";case j.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(r.u))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();function nt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,o]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}let rt=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,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&&(Object(r.qb)(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=>
1{if("string"!=typeof t.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(r.wb)(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)(r.Mb(r.s),r.Mb(r.t),r.Mb(r.l),r.Mb(r.D))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ot{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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 it=(()=>{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){Object(r.V)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. `+"See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#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,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ot(null,this._ngForOf,-1,-1),null===r?void 0:r),o=new st(t,n);e.push(o)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,r);const i=new st(t,o);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);
vendor: 4,523 bytes, line 1
1t.context.index=n,t.context.count=r,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)(r.Mb(r.N),r.Mb(r.K),r.Mb(r.s))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class st{constructor(t,e){this.record=t,this.view=e}}let at=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ct,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){lt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){lt("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)(r.Mb(r.N),r.Mb(r.K))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ct{constructor(){this.$implicit=null,this.ngIf=null}}function lt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.wb)(e)}'.`)}class ut{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 dt=(()=>{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=r.Hb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),ht=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new ut(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.K),r.Mb(dt,1))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),pt=(()=>{class t{constructor(t,e,n){n._addDefault(new ut(t,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.K),r.Mb(dt,1))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),ft=(()=>{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,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`: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)(r.Mb(r.l),r.Mb(r.t),r.Mb(r.D))},t.\u0275dir=r.Hb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1),t})(),gt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",o,i){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,o){let i=function(t){if(J(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,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(V))return function(t){const e=new Date(0);let n=0,r=0;const o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=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)-r,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,c,l),e}(n)}const e=new Date(t);if(!J(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const o=function(t){return Object(r.kb)(t)[r.ab.LocaleId]}(e);if(F[o]=F[o]||{},F[o][n])return F[o][n];let i="";switch(n){case"shortDate":i=k(e,I.Short);break;case"mediumDate":i=k(e,I.Medium);break;case"longDate":i=k(e,I.Long);break;case"fullDate":i=k(e,I.Full);break;case"shortTime":i=A(e,I.Short);break;case"mediumTime":i=A(e,I.Medium);break;case"longTime":i=A(e,I.Long);break;case"fullTime":i=A(e,I.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");i=G(D(e,I.Short),[n,r]);break;case"medium":const o=t(e,"mediumTime"),s=t(e,"mediumDate");i=G(D(e,I.Medium),[o,s]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");i=G(D(e,I.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),u=t(e,"fullDate");i=G(D(e,I.Full),[l,u])}return i&&(F[o][n]=i),i}(n,e)||e;let s,a=[];for(;e;){if(s=U.exec(e),!s){a.push(e);break}{a=a.concat(s.slice(1));const t=a.pop();if(!t)break;e=t}}let c=i.getTimezoneOffset();o&&(c=Q(o,c),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Q(e,r)-r))}(i,o));let l="";return a.forEach(t=>{const e=function(t){if(Z[t])return Z[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(H.Eras,P.Abbreviated);break;case"GGGG":e=X(H.Eras,P.Wide);break;case"GGGGG":e=X(H.Eras,P.Narrow);break;case"y":e=W(z.FullYear,1,0,!1,!0);break;case"yy":e=W(z.FullYear,2,0,!0,!0);break;case"yyy":e=W(z.FullYear,3,0,!1,!0);break;case"yyyy":e=W(z.FullYear,4,0,!1,!0);break;case"M":case"L":e=W(z.Month,1,1);break;case"MM":case"LL":e=W(z.Month,2,1);break;case"MMM":e=X(H.Months,P.Abbreviated);break;case"MMMM":e=X(H.Months,P.Wide);break;case"MMMMM":e=X(H.Months,P.Narrow);break;case"LLL":e=X(H.Months,P.Abbreviated,x.Standalone);break;case"LLLL":e=X(H.Months,P.Wide,x.Standalone);break;case"LLLLL":e=X(H.Months,P.Narrow,x.Standalone);break;case"w":e=Y(1);break;case"ww":e=Y(2);break;case"W":e=Y(1,!0);break;case"d":e=W(z.Date,1);break;case"dd":e=W(z.Date,2);break;case"E":case"EE":case"EEE":e=X(H.Days,P.Abbreviated);break;case"EEEE":e=X(H.Days,P.Wide);break;case"EEEEE":e=X(H.Days,P.Narrow);break;case"EEEEEE":e=X(H.Days,P.Short);break;case"a":case"aa":case"aaa":e=X(H.DayPeriods,P.Abbreviated);break;case"aaaa":e=X(H.DayPeriods,P.Wide);break;case"aaaaa":e=X(H.DayPeriods,P.Narrow);break;case"b":case"bb":case"bbb":e=X(H.DayPeriods,P.Abbreviated,x.Standalone,!0);break;case"bbbb":e=X(H.DayPeriods,P.Wide,x.Standalone,!0);break;case"bbbbb":e=X(H.DayPeriods,P.Narrow,x.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(H.DayPeriods,P.Abbreviated,x.Format,!0);break;case"BBBB":e=X(H.DayPeriods,P.Wide,x.Format,!0);break;case"BBBBB":e=X(H.DayPeriods,P.Narrow,x.Format,!0);break;case"h":e=W(z.Hours,1,-12);break;case"hh":e=W(z.Hours,2,-12);break;case"H":e=W(z.Hours,1);break;case"HH":e=W(z.Hours,2);break;case"m":e=W(z.Minutes,1);break;case"mm":e=W(z.Minutes,2);break;case"s":e=W(z.Seconds,1);break;case"ss":e=W(z.Seconds,2);break;case"S":e=W(z.FractionalSeconds,1);break;case"SS":e=W(z.FractionalSeconds,2);break;case"SSS":e=W(z.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=K(B.Short);break;case"ZZZZZ":e=K(B.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=K(B.ShortGMT);break;
1case"OOOO":case"ZZZZ":case"zzzz":e=K(B.Long);break;default:return null}return Z[t]=e,e}(t);l+=e?e(i,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,n,i||this.locale,o)}catch(s){throw function(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.wb)(t)}'`)}(t,s.message)}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.u))},t.\u0275pipe=r.Lb({name:"date",type:t,pure:!0}),t})(),bt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[{provide:tt,useClass:et}]}),t})();const mt="browser";function vt(t){return t===mt}let yt=(()=>{class t{}return t.\u0275prov=Object(r.Ib)({token:t,providedIn:"root",factory:()=>new _t(Object(r.Tb)(c),window,Object(r.Tb)(r.m))}),t})();class _t{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,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],r-o[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q");function o(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))}}class s extends r.a{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)}}},qjYk:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("AytR"),o=n("4Ckt"),i=n("A1Tq"),s=n("fXoL");let a=(()=>{class t{constructor(t,e){this.remoteData=t,this.httpService=e,this.initialized=!1,this.loggingEnabled=!1,this.apiUrl=r.a.apiUrl,this.appId=r.a.appId}init(t){this.initialized=!0,t&&t.error_logs?(this.enableLogging(t.error_logs.timestamp,t.error_logs.token),this.remoteData.sendStoredData("log-app-push",this.token)):(console.log("logging is [DISABLED] for myapppresser.com"),this.clearRemoteDataLogs())}enableLogging(t,e){let n=new Date(1e3*parseInt(t)),r=new Date;n.setHours(n.getHours()+2),n.getTime()>r.getTime()?(this.token=e,this.loggingEnabled=!0,console.log("logging is [ENABLED] for myapppresser.com")):console.log("logging has [EXPIRED] for myapppresser.com")}addLog(t,e,n=null){if(!1===this.initialized&&!n)return console.log("NOT initialized"),this.remoteData.createRemoteData(this.apiUrl+`/wp-json/ap3/v1/error/add/app-${e}/${this.appId}`,{error_msg:t},{type:"app-"+e,isLog:!0}),!0;if(this.loggingEnabled||n){const r=`wp-json/ap3/v1/error/add/app-${e}/${this.appId}`,o=Object.assign({},{error_msg:t,token:this.token});return n&&Object.assign(o,{force:!0}),this.httpService.post(this.apiUrl+r,o,null).then(e=>{console.log(t,e),e.logging_disabled&&(this.loggingEnabled=!1,console.log("Logging for myapppresser.com is being disabled"))}).catch(t=>{console.warn("error in error log service post",t)}),!0}return console.log("logging NOT enabled"),!1}clearRemoteDataLogs(){this.remoteData.removeLogs("app-push")}getLogs(){}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(o.a),s.Tb(i.a))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},qs5o:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("A1Tq"),i=n("fXoL"),s=n("tk/3");let a=(()=>{class t{constructor(t,e){this.httpService=t,this.httpClient=e,this.url="assets/header-logo.png"}checkLogo(){return Object(r.a)(this,void 0,void 0,(function*(){if(this.logoExists)return this.url;if(!1===this.logoExists)throw new Error("Logo does not exists, we already checked");try{return yield this.httpClient.get("./assets/header-logo.png",{responseType:"blob"}).toPromise()}catch(t){throw this.logoExists=!1,t}}))}}return t.\u0275fac=function(e){return new(e||t)(i.Tb(o.a),i.Tb(s.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},quSY:function(t,e,n){"use strict";var r=n("DH7j"),o=n("XoHu"),i=n("n6bG");const s=(()=>{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})();n.d(e,"a",(function(){return a}));let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=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(Object(i.a)(l)){a&&(this._unsubscribe=void 0);try{l.call(this)}catch(d){e=d instanceof s?c(d.errors):[d]}}if(Object(r.a)(u)){let t=-1,n=u.length;for(;++t<n;){const n=u[t];if(Object(o.a)(n))try{n.unsubscribe()}catch(d){e=e||[],d instanceof s?e=e.concat(c(d.errors)):e.push(d)}}}if(e)throw new s(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:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.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)}}}var e;return t.EMPTY=((e=new t).closed=!0,e),t})();function c(t){return t.reduce((t,e)=>t.concat(e instanceof s?e.errors:e),[])}},rjpK:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("Bfh1"),o=n("A1Tq"),i=n("fXoL");let s=(()=>{class t{constructor(t,e){this.geolocation=t,this.httpService=e,this.geolocation_options={},this.position_options=null,this.url="",this.beacon_started=!1,this.interval_id=0,this.wordpress_url=""}startBeacon(t){console.log("start geolocation beacon"),t.interval&&t.wordpress_url?(null===this.position_options&&this.setCurrentPositionOptions(t),this.position_options&&!1===this.beacon_started&&(this.beacon_started=!0,this.wordpress_url=t.wordpress_url,this.geoLocate_user(),this.interval_id=this.start_userInterval(t.interval),console.log("start interval_id",this.interval_id))):this.stopBeacon("No interval or wordpress_url supplied")}stopBeacon(t){console.log("stop interval_id",this.interval_id),clearInterval(this.interval_id),console.log("geouser beacon stopped",t),this.beacon_started=!1}start_userInterval(t){if(t)return window.setInterval(()=>{this.geoLocate_user()},t);console.log("geouserpref interval not set")}geoLocate_user(){this.geolocation.getCurrentPosition().then(t=>{this.onSuccessGeoUser(t)}).catch(t=>{this.stopBeacon(t.message)})}getCurrentPositionOptions(){return this.position_options}setCurrentPositionOptions(t){let e,n,r,o={timeout:5e3,maximumAge:3e3,enableHighAccuracy:!0}
1,i=t.options;void 0!==i&&(void 0!==i.timeout&&(e=parseInt(i.timeout),e&&e>=1e3&&(o.timeout=e)),void 0!==i.maximumAge&&(n=parseInt(i.maximumAge),n&&n>=1e3&&(o.maximumAge=n)),void 0!==i.enableHighAccuracy&&(r=parseInt(i.enableHighAccuracy),o.enableHighAccuracy=r)),this.position_options=o}onSuccessGeoUser(t){console.log("longitude",t.coords.longitude),console.log("latitude",t.coords.latitude),this.httpService.post(this.wordpress_url+"wp-admin/admin-ajax.php?action=appp_geo_user",{position:{accuracy:t.coords.accuracy,altitude:t.coords.altitude,altitudeAccuracy:t.coords.altitudeAccuracy,heading:t.coords.heading,latitude:t.coords.latitude,longitude:t.coords.longitude,speed:t.coords.speed},longitude:t.coords.longitude,latitude:t.coords.latitude}).then(t=>{let e=t.json();!1===e.success&&this.stopBeacon(e.data)},t=>{console.log(JSON.stringify(t.json()))})}}return t.\u0275fac=function(e){return new(e||t)(i.Tb(r.a),i.Tb(o.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},sYmb:function(t,e,n){"use strict";var r=n("fXoL"),o=n("LRne"),i=n("VRyK"),s=n("HDdC"),a=n("GyhO"),c=n("IzEk"),l=n("w1tV"),u=n("lJxs"),d=n("128B");function h(t,e,n){return 0===n?[e]:(t.push(e),t)}var p=n("eIep");n.d(e,"c",(function(){return D})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return k})),n.d(e,"a",(function(){return m})),n.d(e,"d",(function(){return A}));class f{}let g=(()=>{class t extends f{getTranslation(t){return Object(o.a)({})}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const b=r.Rb(g);class m{}let v=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class y{}let _=(()=>{class t extends y{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return w(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const w=r.Rb(_);function O(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,o,i=typeof t;if(i==typeof e&&"object"==i){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in o=Object.create(null),t){if(!O(t[r],e[r]))return!1;o[r]=!0}for(r in e)if(!(r in o)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!O(t[r],e[r]))return!1;return!0}}return!1}function S(t){return null!=t}function E(t){return t&&"object"==typeof t&&!Array.isArray(t)}class C{}let j=(()=>{class t extends C{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n=e.split(".");e="";do{e+=n.shift(),!S(t)||!S(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return S(r)?r:t}):t}}return t.\u0275fac=function(e){return x(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const x=r.Rb(j);class P{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.n,this.onLangChange=new r.n,this.onDefaultLangChange=new r.n}}const I=new r.q("USE_STORE"),T=new r.q("USE_DEFAULT_LANG");let k=(()=>{class t{constructor(t,e,n,o,i,s=!0,a=!1){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=o,this.missingTranslationHandler=i,this.useDefaultLang=s,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.n,this._onLangChange=new r.n,this._onDefaultLangChange=new r.n,this._langs=[],this._translations={},this._translationRequests={}}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}
1get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(this.defaultLang||(this.defaultLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(o.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(c.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(o.a)(this.translations[t]))}retrieveTranslations(t){let e;return void 0===this.translations[t]&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(Object(l.a)());return this.loadingTranslations=e.pipe(Object(c.a)(1),Object(u.a)(e=>this.compiler.compileTranslations(e,t)),Object(l.a)()),this.loadingTranslations.subscribe(e=>{this.translations[t]=e,this.updateLangs(),this.pending=!1},t=>{this.pending=!1}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=n&&this.translations[t]?function t(e,n){let r=Object.assign({},e);return E(e)&&E(n)&&Object.keys(n).forEach(o=>{E(n[o])&&o in e?r[o]=t(e[o],n[o]):Object.assign(r,{[o]:n[o]})}),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},s=!1;for(let o of e)r[o]=this.getParsedResult(t,o,n),"function"==typeof r[o].subscribe&&(s=!0);if(s){let t;for(let n of e){let e="function"==typeof r[n].subscribe?r[n]:Object(o.a)(r[n]);t=void 0===t?e:Object(i.a)(t,e)}return t.pipe(Object(d.a)(h,[]),Object(u.a)(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n}))}return r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return s.a.create(n=>{let r=t=>{n.next(t),n.complete()},o=t=>{n.error(t)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,t,e)).subscribe?n.subscribe(r,o):r(n)},o)});{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return"function"==typeof n.subscribe?n:Object(o.a)(n)}}stream(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');return Object(a.a)(this.get(t,e),this.onLangChange.pipe(Object(p.a)(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:Object(o.a)(r)})))}instant(t,e){if(!S(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(void 0!==n.subscribe){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),this.defaultLang||this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==t.indexOf("-")&&(t=t.
1split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(P),r.Tb(f),r.Tb(y),r.Tb(C),r.Tb(m),r.Tb(T),r.Tb(I))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),A=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let o=this.translate.getParsedResult(n,t,e);"function"==typeof o.subscribe?o.subscribe(r):r(o)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||0===t.length)return t;if(O(t,this.lastKey)&&O(e,this.lastParams))return this.value;let n;if(S(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${e[0]}`)}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(k),r.Vb())},t.\u0275pipe=r.Lb({name:"translate",type:t,pure:!1}),t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:y,useClass:_},e.parser||{provide:C,useClass:j},e.missingTranslationHandler||{provide:m,useClass:v},P,{provide:I,useValue:e.isolate},{provide:T,useValue:e.useDefaultLang},k]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:y,useClass:_},e.parser||{provide:C,useClass:j},e.missingTranslationHandler||{provide:m,useClass:v},{provide:I,useValue:e.isolate},{provide:T,useValue:e.useDefaultLang},k]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})()},te5A:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.open=function(t,e){return Object(o.cordova)(this,"open",{callbackStyle:"object",successName:"success",errorName:"error"},arguments)},e.prototype.uninstall=function(t){return Object(o.cordova)(this,"uninstall",{callbackStyle:"object",successName:"success",errorName:"error"},arguments)},e.prototype.appIsInstalled=function(t){return Object(o.cordova)(this,"appIsInstalled",{callbackStyle:"object",successName:"success",errorName:"error"},arguments)},e.prototype.showOpenWithDialog=function(t,e){return Object(o.cordova)(this,"showOpenWithDialog",{callbackStyle:"object",successName:"success",errorName:"error"},arguments)},e.pluginName="FileOpener",e.plugin="cordova-plugin-file-opener2",e.pluginRef="cordova.plugins.fileOpener2",e.repo="https://github.com/pwlin/cordova-plugin-file-opener2",e.platforms=["Android","iOS","Windows","Windows Phone 8"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return j})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return g}));var r=n("fXoL"),o=n("LRne"),i=n("HDdC"),s=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class d{}class h{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),r=n.toLowerCase(),o=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(o):this.headers.set(r,[o])}})}:()=>
vendor: 10,587 bytes, line 1
1{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}: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 h?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 h;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof h?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 r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);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 p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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 g{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,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 r=t.indexOf("="),[o,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(o)||[];s.push(i),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 g({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 b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function m(t){return"undefined"!=typeof Blob&&t instanceof Blob}function v(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,r){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)||r?(this.body=void 0!==n?n:null,o=r):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 h),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 g,this.urlWithParams=e}serializeBody(){return null===this.body?null:b(this.body)||m(this.body)||v(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?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?null:v(this.body)?null:m(this.body)?this.body.type||null:b(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"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,r=t.responseType||this.responseType,o=void 0!==t.body?t.body:this.body,i=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,c=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&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new y(e,n,o,{params:c,headers:a,reportProgress:s,responseType:r,withCredentials:i})}}const _=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 w{constructor(t,e=200,n="OK"){this.headers=t.headers||new h,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 O extends w{constructor(t={}){super(t),this.type=_.ResponseHeader}clone(t={}){return new O({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 S extends w{constructor(t={}){super(t),this.type=_.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({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 E extends w{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 C(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let j=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof y)r=t;else{let o=void 0;o=n.headers instanceof h?n.headers:new h(n.headers);let i=void 0;n.params&&(i=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new y(t,e,void 0!==n.body?n.body:null,{headers:o,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(o.a)(r).pipe(Object(s.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return i;const l=i.pipe(Object(a.a)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;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 g).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,C(n,e))}post(t,e,n={}){return this.request("POST",t,C(n,e))}put(t,e,n={}){return this.request("PUT",t,C(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(u))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const P=new r.q("HTTP_INTERCEPTORS");let I=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const T=/^\)\]\}',?\n/;class k{}let A=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),D=(()=>{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 i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEac
1h((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 r=t.serializeBody();let o=null;const i=()=>{if(null!==o)return o;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new h(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 O({headers:i,status:e,statusText:r,url:s}),o},s=()=>{let{headers:r,status:o,statusText:s,url:a}=i(),c=null;204!==o&&(c=void 0===n.response?n.responseText:n.response),0===o&&(o=c?200:0);let l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(T,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new S({body:c,headers:r,status:o,statusText:s,url:a||void 0})),e.complete()):e.error(new E({error:c,headers:r,status:o,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=i(),o=new E({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(o)};let c=!1;const l=r=>{c||(e.next(i()),c=!0);let o={type:_.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(o.total=r.total),"text"===t.responseType&&n.responseText&&(o.partialText=n.responseText),e.next(o)},u=t=>{let n={type:_.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",l),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:_.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",l),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(k))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();const R=new r.q("XSRF_COOKIE_NAME"),M=new r.q("XSRF_HEADER_NAME");class N{}let $=(()=>{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=Object(l.w)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(l.c),r.Tb(r.B),r.Tb(R))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),L=(()=>{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 r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(N),r.Tb(M))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),V=(()=>{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(P,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(d),r.Tb(r.r))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:I}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:M,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[L,{provide:P,useExisting:L,multi:!0},{provide:N,useClass:$},{provide:R,useValue:"XSRF-TOKEN"},{provide:M,useValue:"X-XSRF-TOKEN"}]}),t})(),U=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[j,{provide:u,useClass:V},D,{provide:d,useExisting:D},A,{provide:k,useExisting:A}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";var r=n("ofXK"),o=n("fXoL"),i=n("LRne"),s=n("Cfvw"),a=n("2Vo4"),c=n("HDdC");const l=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();var u=n("z+Ro"),d=n("DH7j"),h=n("7o/Q");class p extends h.a{notifyNext(t,e,n,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class f extends h.a{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()}}var g=n("SeVD");function b(t,e,n,r,o=new f(t,n,r)){if(!o.closed)return e instanceof c.a?e.
1subscribe(o):Object(g.a)(e)(o)}var m=n("yCtX");const v={};class y{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new _(t,this.resultSelector))}}class _ extends p{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(v),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++)this.add(b(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const r=this.values,o=this.toRespond?r[n]===v?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(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)}}var w=n("NXyV"),O=n("XNiG"),S=n("EY2u"),E=n("lJxs"),C=n("0EUg"),j=n("pLZG"),x=n("BFxc");function P(t=k){return e=>e.lift(new I(t))}class I{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new T(t,this.errorFactory))}}class T extends h.a{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 k(){return new l}var A=n("xbPD"),D=n("SpAZ");function R(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(j.a)((e,n)=>t(e,n,r)):D.a,Object(x.a)(1),n?Object(A.a)(e):P(()=>new l))}var M=n("zx2A");function N(t){return function(e){const n=new $(t),r=e.lift(n);return n.caught=r}}class ${constructor(t){this.selector=t}call(t,e){return e.subscribe(new L(t,this.selector,this.caught))}}class L extends M.b{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 r=new M.a(this);this.add(r);const o=Object(M.c)(n,r);o!==r&&this.add(o)}}}var V=n("IzEk");function F(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(j.a)((e,n)=>t(e,n,r)):D.a,Object(V.a)(1),n?Object(A.a)(e):P(()=>new l))}var U=n("5+tZ");class B{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new z(t,this.predicate,this.thisArg,this.source))}}class z extends h.a{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,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)}}var H=n("eIep"),G=n("GyhO"),q=n("Kqap"),W=n("bOdf"),X=n("128B"),K=n("vkgz"),Y=n("quSY");class Z{constructor(t){this.callback=t}call(t,e){return e.subscribe(new Q(t,this.callback))}}class Q extends h.a{constructor(t,e){super(t),this.add(new Y.a(e))}}var J=n("bHdf");n.d(e,"a",(function(){return ce})),n.d(e,"b",(function(){return On})),n.d(e,"c",(function(){return nt})),n.d(e,"d",(function(){return et})),n.d(e,"e",(function(){return vt})),n.d(e,"f",(function(){return jn})),n.d(e,"g",(function(){return un})),n.d(e,"h",(function(){return vn})),n.d(e,"i",(function(){return yn})),n.d(e,"j",(function(){return Rn})),n.d(e,"k",(function(){return Ft}));class tt{constructor(t,e){this.id=t,this.url=e}}class et extends tt{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class nt extends tt{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class rt extends tt{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ot extends tt{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class it extends tt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class st extends tt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class at extends tt{constructor(t,e,n,r,o){super(t,e),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ct extends tt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class lt extends tt{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ut{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class dt{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ht{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pt{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ft{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gt{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{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 mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=o.Gb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&o.Nb(0,"router-outlet")},directives:function(){return[Sn]},encapsulation:2}),t})();const vt="primary";class yt{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 _t(t){return new yt(t)}function wt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ot(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const o={};for(let i=0;i<r.length;i++){const e=r[i],n=t[i];if(e.startsWith(":"))o[e.substring(1)]=n;else if(e!==n.path)return null}return{consumed:t.slice(0,r.length),posParams:o}}class St{constructor(t,e){this.routes=t,this.module=e}}function Et(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];Ct(r,jt(e,r))}}function Ct(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&&t.outlet!==vt)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&&Et(t.children,e)}function jt(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function xt(t){const e=t.children&&t.children.map(xt),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==vt&&(n.component=mt),n}function Pt(t,e){const n=Object.keys(t),r=Object.keys(e);if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!It(t[o],e[o]))return!1;return!0}function It(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every(t=>e.indexOf(t)>-1):t===e}function Tt(t){return Array.prototype.concat.apply([],t)}function kt(t){return t.length>0?t[t.length-1]:null}function At(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Dt(t){return Object(o.rb)(t)?t:Object(o.sb)(t)?Object(s.a)(Prom
vendor: 15,733 bytes, line 1
1ise.resolve(t)):Object(i.a)(t)}function Rt(t,e,n){return n?function(t,e){return Pt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Lt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))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=>It(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!Lt(n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!Lt(n.segments,o))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=o.slice(0,n.segments.length),i=o.slice(n.segments.length);return!!Lt(n.segments,t)&&!!n.children[vt]&&e(n.children[vt],r,i)}}(e,n,n.segments)}(t.root,e.root)}class Mt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return Bt.serialize(this)}}class Nt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,At(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return zt(this)}}class $t{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=_t(this.parameters)),this._parameterMap}toString(){return Kt(this)}}function Lt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Vt(t,e){let n=[];return At(t.children,(t,r)=>{r===vt&&(n=n.concat(e(t,r)))}),At(t.children,(t,r)=>{r!==vt&&(n=n.concat(e(t,r)))}),n}class Ft{}class Ut{parse(t){const e=new te(t);return new Mt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){var e;return`${`/${function t(e,n){if(!e.hasChildren())return zt(e);if(n){const n=e.children[vt]?t(e.children[vt],!1):"",r=[];return At(e.children,(e,n)=>{n!==vt&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Vt(e,(n,r)=>r===vt?[t(e.children[vt],!1)]:[`${r}:${t(n,!1)}`]);return`${zt(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=>`${Gt(e)}=${Gt(t)}`).join("&"):`${Gt(e)}=${Gt(n)}`});return e.length?`?${e.join("&")}`:""}(t.queryParams)}${"string"==typeof t.fragment?`#${e=t.fragment,encodeURI(e)}`:""}`}}const Bt=new Ut;function zt(t){return t.segments.map(t=>Kt(t)).join("/")}function Ht(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gt(t){return Ht(t).replace(/%3B/gi,";")}function qt(t){return Ht(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wt(t){return decodeURIComponent(t)}function Xt(t){return Wt(t.replace(/\+/g,"%20"))}function Kt(t){return`${qt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${qt(t)}=${qt(e[t])}`).join("")}`;var e}const Yt=/^[^\/()?;=#]+/;function Zt(t){const e=t.match(Yt);return e?e[0]:""}const Qt=/^[^=?&#]+/,Jt=/^[^?&#]+/;class te{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Nt([],{}):new Nt([],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[vt]=new Nt(t,e)),n}parseSegment(){const t=Zt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new $t(Wt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Zt(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Zt(this.remaining);t&&(n=t,this.capture(n))}t[Wt(e)]=Wt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Qt);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(Jt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=Xt(e),o=Xt(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Zt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)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=vt);const i=this.parseChildren();e[o]=1===Object.keys(i).length?i[vt]:new Nt([],i),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 ee{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=ne(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=ne(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=re(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return re(t,this._root).map(t=>t.value)}}function ne(t,e){if(t===e.value)return e;for(const n of e.children){const e=ne(t,n);if(e)return e}return null}function re(t,e){if(t===e.value)return[e];for(const n of e.children){const r=re(t,n);if(r.length)return r.unshift(e),r}return[]}class oe{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function ie(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class se extends ee{constructor(t,e){super(t),this.snapshot=e,he(this,t)}toString(){return this.snapshot.toString()}}function ae(t,e){const n=function(t,e){const n=new ue([],{},{},"",{},vt,e,null,t.root,-1,{});return new de("",new oe(n,[]))}(t,e),r=new a.a([new $t("",{})]),o=new a.a({}),i=new a.a({}),s=new a.a({}),c=new a.a(""),l=new ce(r,o,s,c,i,vt,e,n.root);return l.snapshot=n.root,new se(new oe(l,[]),n)}class ce{constructor(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,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(Object(E.a)(t=>_t(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(E.a)(t=>_t(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function le(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}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(r))}class ue{constructor(t,e,n,r,o,i,s,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,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=_t(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=_t(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class de extends ee{constructor(t,e){super(e),this.url=t,he(this,e)}toString(){return pe(this._root)}}function he(t,e){e.value._routerState=t,e.children.forEach(e=>he(t,e))}function pe(t){const e=t.children.length>0?` { ${t.children.map(pe).join(", ")} } `:"";return`${t.value}${e}`}function fe(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Pt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Pt(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(!Pt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),Pt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ge(t,e){var n,r;return Pt(t.params,e.params)&&Lt(n=t.url,r=e.url)&&n.every((t,e)=>Pt(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||ge(t.parent,e.parent))}function be(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function me(t,e,n,r,o){let i={};return r&&At(r,(t,e)=>{i[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new Mt(n.root===t?e:function t(e,n,r){const o={};return At(e.children,(e,i)=>{o[i]=e===n?r:t(e,n,r)}),new Nt(e.segments,o)}(n.root,t,e),i,o)}class ve{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&be(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==kt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ye{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function _e(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[vt]:`${t}`}function we(t,e,n){if(t||(t=new Nt([],{})),0===t.segments.length&&t.hasChildren())return Oe(t,e,n);const r=function(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(r>=n.length)return i;const e=t.segments[o],s=_e(n[r]),a=r<n.length-1?n[r+1]:null;if(o>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!je(s,a,e))return i;r+=2}else{if(!je(s,{},e))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const e=new Nt(t.segments.slice(0,r.pathIndex),{});return e.children[vt]=new Nt(t.segments.slice(r.pathIndex),t.children),Oe(e,0,o)}return r.match&&0===o.length?new Nt(t.segments,{}):r.match&&!t.hasChildren()?Se(t,e,n):r.match?Oe(t,0,o):Se(t,e,n)}function Oe(t,e,n){if(0===n.length)return new Nt(t.segments,{});{const r=function(t){return"object"!=typeof t[0]?{[vt]:t}:void 0===t[0].outlets?{[vt]:t}:t[0].outlets}(n),o={};return At(r,(n,r)=>{null!==n&&(o[r]=we(t.children[r],e,n))}),At(t.children,(t,e)=>{void 0===r[e]&&(o[e]=t)}),new Nt(t.segments,o)}}function Se(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){const t=Ee(n[o].outlets);return new Nt(r,t)}if(0===o&&be(n[0])){r.push(new $t(t.segments[e].path,n[0])),o++;continue}const i=_e(n[o]),s=o<n.length-1?n[o+1]:null;i&&s&&be(s)?(r.push(new $t(i,Ce(s))),o+=2):(r.push(new $t(i,{})),o++)}return new Nt(r,{})}function Ee(t){const e={};return At(t,(t,n)=>{null!==t&&(e[n]=Se(new Nt([],{}),0,t))}),e}function Ce(t){const e={};return At(t,(t,n)=>e[n]=`${t}`),e}function je(t,e,n){return t==n.path&&Pt(e,n.parameters)}class xe{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),fe(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=ie(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),At(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const o=n.getContext(r.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(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=ie(t),o=t.value.component?n.children:e;At(r,(t,e)=>this.deactivateRouteAndItsChildren(t,o)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=ie(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new gt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new pt(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,o=e?e.value:null;if(fe(r),r===o)if(r.component){const o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),Pe(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}(r.snapshot),o=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=o,e.outlet&&e.outlet.activateWith(r,o),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function Pe(t){fe(t.value),t.children.forEach(Pe)}function Ie(t){return"function"==typeof t}function Te(t){return t instanceof Mt}class ke{constructor(t){this.segmentGroup=t||null}}class Ae{constructor(t){this.urlTree=t}}function De(t){return new c.a(e=>e.error(new ke(t)))}function Re(t){return new c.a(e=>e.error(new Ae(t)))}function Me(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ne{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer
1=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(o.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,vt).pipe(Object(E.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(N(t=>{if(t instanceof Ae)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ke)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,vt).pipe(Object(E.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(N(t=>{if(t instanceof ke)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Nt([],{[vt]:t}):t;return new Mt(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(E.a)(t=>new Nt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],o={};return At(t,(t,i)=>{const s=e(i,t).pipe(Object(E.a)(t=>o[i]=t));i===vt?n.push(s):r.push(s)}),i.a.apply(null,n.concat(r)).pipe(Object(C.a)(),R(),Object(E.a)(()=>o))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,o,s){return Object(i.a)(...n).pipe(Object(E.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,o,s).pipe(N(t=>{if(t instanceof ke)return Object(i.a)(null);throw t}))),Object(C.a)(),F(t=>!!t),N((t,n)=>{if(t instanceof l||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,o))return Object(i.a)(new Nt([],{}));throw new ke(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,o,i,s){return Fe(r)!==i?De(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):De(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Re(o):this.lineralizeSegments(n,o).pipe(Object(U.a)(n=>{const o=new Nt(n,{});return this.expandSegment(t,o,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i){const{matched:s,consumedSegments:a,lastChild:c,positionalParamSegments:l}=$e(e,r,o);if(!s)return De(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?Re(u):this.lineralizeSegments(r,u).pipe(Object(U.a)(r=>this.expandSegment(t,e,n,r.concat(o.slice(c)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(E.a)(t=>(n._loadedConfig=t,new Nt(r,{})))):Object(i.a)(new Nt(r,{}));const{matched:o,consumedSegments:s,lastChild:a}=$e(e,n,r);if(!o)return De(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(U.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:o,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>Ve(t,e,n)&&Fe(n)!==vt)}(t,n,r)?{segmentGroup:Le(new Nt(e,function(t,e){const n={};n[vt]=e;for(const r of t)""===r.path&&Fe(r)!==vt&&(n[Fe(r)]=new Nt([],{}));return n}(r,new Nt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ve(t,e,n))}(t,n,r)?{segmentGroup:Le(new Nt(t.segments,function(t,e,n,r){const o={};for(const i of n)Ve(t,e,i)&&!r[Fe(i)]&&(o[Fe(i)]=new Nt([],{}));return Object.assign(Object.assign({},r),o)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,c,r);return 0===a.length&&o.hasChildren()?this.expandChildren(n,r,o).pipe(Object(E.a)(t=>new Nt(s,t))):0===r.length&&0===a.length?Object(i.a)(new Nt(s,{})):this.expandSegment(n,o,r,a,vt,!0).pipe(Object(E.a)(t=>new Nt(s.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new St(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?Object(s.a)(r).pipe(Object(E.a)(r=>{const o=t.get(r);let i;if(function(t){return t&&Ie(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Ie(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return Dt(i)})).pipe(Object(C.a)(),(o=t=>!0===t,t=>t.lift(new B(o,void 0,t)))):Object(i.a)(!0);var o}(t.injector,e,n).pipe(Object(U.a)(n=>
1n?this.configLoader.load(t.injector,e).pipe(Object(E.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(wt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new St([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children[vt])return Me(t.redirectTo);r=r.children[vt]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const o=this.createSegmentGroup(t,e.root,n,r);return new Mt(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return At(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const o=t.substring(1);n[r]=e[o]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const o=this.createSegments(t,e.segments,n,r);let i={};return At(e.children,(e,o)=>{i[o]=this.createSegmentGroup(t,e,n,r)}),new Nt(o,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function $e(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 r=(e.matcher||Ot)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Le(t){if(1===t.numberOfChildren&&t.children[vt]){const e=t.children[vt];return new Nt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Fe(t){return t.outlet||vt}class Ue{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Be{constructor(t,e){this.component=t,this.route=e}}function ze(t,e,n){const r=t._root;return function t(e,n,r,o,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=ie(n);return e.children.forEach(e=>{!function(e,n,r,o,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,c=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Lt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lt(t.url,e.url)||!Pt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ge(t,e)||!Pt(t.queryParams,e.queryParams);case"paramsChange":default:return!ge(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new Ue(o)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?c?c.children:null:r,o,i),l&&i.canDeactivateChecks.push(new Be(c&&c.outlet&&c.outlet.component||null,a))}else a&&Ge(n,c,i),i.canActivateChecks.push(new Ue(o)),t(e,null,s.component?c?c.children:null:r,o,i)}(e,s[e.value.outlet],r,o.concat([e.value]),i),delete s[e.value.outlet]}),At(s,(t,e)=>Ge(t,r.getContext(e),i)),i}(r,e?e._root:null,n,[r.value])}function He(t,e,n){const r=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(r?r.module.injector:n).get(t)}function Ge(t,e,n){const r=ie(t),o=t.value;At(r,(t,r)=>{Ge(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Be(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}const qe=Symbol("INITIAL_VALUE");function We(){return Object(H.a)(t=>function(...t){let e=void 0,n=void 0;return Object(u.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(d.a)(t[0])&&(t=t[0]),Object(m.a)(t,n).lift(new y(e))}(...t.map(t=>t.pipe(Object(V.a)(1),function(...t){const e=t[t.length-1];return Object(u.a)(e)?(t.pop(),n=>Object(G.a)(t,n,e)):e=>Object(G.a)(t,e)}(qe)))).pipe(Object(q.a)((t,e)=>{let n=!1;return e.reduce((t,r,o)=>{if(t!==qe)return t;if(r===qe&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||Te(r))return r}return t},t)},qe),Object(j.a)(t=>t!==qe),Object(E.a)(t=>Te(t)?t:!0===t),Object(V.a)(1)))}function Xe(t,e){return null!==t&&e&&e(new ft(t)),Object(i.a)(!0)}function Ke(t,e){return null!==t&&e&&e(new ht(t)),Object(i.a)(!0)}function Ye(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const o=r.map(r=>Object(w.a)(()=>{const o=He(r,e,n);let i;if(function(t){return t&&Ie(t.canActivate)}(o))i=Dt(o.canActivate(e,t));else{if(!Ie(o))throw new Error("Invalid CanActivate guard");i=Dt(o(e,t))}return i.pipe(F())}));return Object(i.a)(o).pipe(We())}function Ze(t,e,n){const r=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=>Object(w.a)(()=>{const o=e.guards.map(o=>{const i=He(o,e.node,n);let s;if(function(t){return t&&Ie(t.canActivateChild)}(i))s=Dt(i.canActivateChild(r,t));else{if(!Ie(i))throw new Error("Invalid CanActivateChild guard");s=Dt(i(r,t))}return s.pipe(F())});return Object(i.a)(o).pipe(We())}));return Object(i.a)(o).pipe(We())}class Qe{}class Je{constructor(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}recognize(){try{const t=nn(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,vt),n=new ue([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},vt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new oe(n,e),o=new de(this.url,r);return this.inheritParamsAndData(o._root),Object(i.a)(o)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=le(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEac
1h(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=Vt(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("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===vt?-1:e.value.outlet===vt?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(o){if(!(o instanceof Qe))throw o}if(this.noLeftoversInUrl(e,n,r))return[];throw new Qe}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Qe;if((t.outlet||vt)!==r)throw new Qe;let o,i=[],s=[];if("**"===t.path){const i=n.length>0?kt(n).parameters:{};o=new ue(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),r,t.component,t,tn(e),en(e)+n.length,an(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Qe;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||Ot)(n,t,e);if(!r)throw new Qe;const o={};At(r.posParams,(t,e)=>{o[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,s=n.slice(a.lastChild),o=new ue(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sn(t),r,t.component,t,tn(e),en(e)+i.length,an(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=nn(e,i,s,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new oe(o,t)]}if(0===a.length&&0===l.length)return[new oe(o,[])];const u=this.processSegment(a,c,l,vt);return[new oe(o,u)]}}function tn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function en(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 nn(t,e,n,r,o){if(n.length>0&&function(t,e,n){return n.some(n=>rn(t,e,n)&&on(n)!==vt)}(t,n,r)){const o=new Nt(e,function(t,e,n,r){const o={};o[vt]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&on(i)!==vt){const n=new Nt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,o[on(i)]=n}return o}(t,e,r,new Nt(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=>rn(t,e,n))}(t,n,r)){const i=new Nt(t.segments,function(t,e,n,r,o,i){const s={};for(const a of r)if(rn(t,n,a)&&!o[on(a)]){const n=new Nt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[on(a)]=n}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new Nt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function rn(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function on(t){return t.outlet||vt}function sn(t){return t.data||{}}function an(t){return t.resolve||{}}function cn(t,e,n,r){const o=He(t,e,r);return Dt(o.resolve?o.resolve(e,n):o(e,n))}function ln(t){return function(e){return e.pipe(Object(H.a)(e=>{const n=t(e);return n?Object(s.a)(n).pipe(Object(E.a)(()=>e)):Object(s.a)([e])}))}}class un{}class dn{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const hn=new o.q("ROUTES");class pn{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(E.a)(n=>
1{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new St(Tt(r.injector.get(hn)).map(xt),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(s.a)(this.loader.load(t)):Dt(t()).pipe(Object(U.a)(t=>t instanceof o.v?Object(i.a)(t):Object(s.a)(this.compiler.compileModuleAsync(t))))}}class fn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function gn(t){throw t}function bn(t,e,n){return e.parse("/")}function mn(t,e){return Object(i.a)(null)}let vn=(()=>{class t{constructor(t,e,n,r,i,s,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new O.a,this.errorHandler=gn,this.malformedUriErrorHandler=bn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mn,afterPreactivation:mn},this.urlHandlingStrategy=new fn,this.routeReuseStrategy=new dn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(o.x),this.console=i.get(o.Y);const u=i.get(o.z);this.isNgZoneEnabled=u instanceof o.z,this.resetConfig(l),this.currentUrlTree=new Mt(new Nt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new pn(s,c,t=>this.triggerEvent(new ut(t)),t=>this.triggerEvent(new dt(t))),this.routerState=ae(this.currentUrlTree,this.rootComponentType),this.transitions=new a.a({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(Object(j.a)(t=>0!==t.id),Object(E.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(H.a)(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(K.a)(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}}),Object(H.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(H.a)(t=>{const n=this.transitions.getValue();return e.next(new et(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?S.a:[t]}),Object(H.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,o=this.configLoader,s=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(H.a)(t=>function(t,e,n,r,o){return new Ne(t,e,n,r,o).apply()}(r,o,s,t.extractedUrl,a).pipe(Object(E.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(K.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,o){return function(i){return i.pipe(Object(U.a)(i=>function(t,e,n,r,o="emptyOnly",i="legacy"){return new Je(t,e,n,r,o,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(Object(E.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(K.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(K.a)(t=>{const n=new it(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,o,s,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:o,restoredState:s,extras:a}=t,c=new et(n,this.serializeUrl(r),o,s);e.next(c);const l=ae(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}
1))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),S.a}),ln(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:o,extras:{skipLocationChange:i,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!i,replaceUrl:!!s})}),Object(K.a)(t=>{const e=new st(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(E.a)(t=>Object.assign(Object.assign({},t),{guards:ze(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(U.a)(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(s.a)(t).pipe(Object(U.a)(t=>function(t,e,n,r,o){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||0===s.length)return Object(i.a)(!0);const a=s.map(i=>{const s=He(i,e,o);let a;if(function(t){return t&&Ie(t.canDeactivate)}(s))a=Dt(s.canDeactivate(t,e,n,r));else{if(!Ie(s))throw new Error("Invalid CanDeactivate guard");a=Dt(s(t,e,n,r))}return a.pipe(F())});return Object(i.a)(a).pipe(We())}(t.component,t.route,n,e,r)),F(t=>!0!==t,!0))}(c,r,o,t).pipe(Object(U.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(s.a)(e).pipe(Object(W.a)(e=>Object(s.a)([Ke(e.route.parent,r),Xe(e.route,r),Ze(t,e.path,n),Ye(t,e.route,n)]).pipe(Object(C.a)(),F(t=>!0!==t,!0))),F(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(E.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(K.a)(t=>{if(Te(t.guardsResult)){const e=wt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(K.a)(t=>{const e=new at(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(j.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new rt(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),ln(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(K.a)(t=>{const e=new ct(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(Object(U.a)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;return o.length?Object(s.a)(o).pipe(Object(W.a)(t=>function(t,e,n,r){return function(t,e,n,r){const o=Object.keys(t);if(0===o.length)return Object(i.a)({});if(1===o.length){const i=o[0];return cn(t[i],e,n,r).pipe(Object(E.a)(t=>({[i]:t})))}const a={};return Object(s.a)(o).pipe(Object(U.a)(o=>cn(t[o],e,n,r).pipe(Object(E.a)(t=>(a[o]=t,t))))).pipe(R(),Object(E.a)(()=>a))}(t._resolve,t,e,r).pipe(Object(E.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),le(t,n).resolve),null)))}(t.route,r,e,n)),Object(X.a)((t,e)=>t),Object(E.a)(e=>t)):Object(i.a)(t)}))}),Object(K.a)(t=>{const e=new lt(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),ln(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:o,extras:{skipLocationChange:i,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:o,skipLocationChange:!!i,replaceUrl:!!s})}),Object(E.a)(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const o=r.value;o._futureSnapshot=n.value;const i=function(e,n,r){return n.children.map(n=>{for(const o of r.children)if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o);return t(e,n)})}(e,n,r);return new oe(o,i)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(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 r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,t),t}{const r=new ce(new a.a((o=n.value).url),new a.a(o.params),new a.a(o.queryParams),new a.a(o.fragment),new a.a(o.data),o.outlet,o.component,o),i=n.children.map(n=>t(e,n));return new oe(r,i)}}var o}(t,e._root,n?n._root:void 0);return new se(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(K.a)(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)}),(c=this.rootContexts,l=this.routeReuseStrategy,u=t=>this.triggerEvent(t),Object(E.a)(t=>(new xe(l,t.targetRouterState,t.currentRouterState,u).activate(c),t))),Object(K.a)({next(){n=!0},complete(){n=!0}}),(o=()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new rt(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 Z(o))),N(n=>{if(r=!0,(o=n)&&o.ngNavigationCancelingError){const r=Te(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const o=new rt(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(o),r?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 r=new ot(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var o;return S.a}));var o,c,l,u})))}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",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Et(t),this.config=t.map(xt),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:r,fragment:i,preserveQueryParams:s,queryParamsHandling:a,preserveFragment:c}=e;Object(o.V)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:i;let d=null;if(a)switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=r||null}else d=s?this.currentUrlTree.queryParams:r||null;return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,o){if(0===n.length)return me(e.root,e.root,e,r,o);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ve(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,o)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return At(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===o?(r.split("/").forEach((r,o)=>{0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new ve(n,e,r)}(n);if(i.toRoot())return me(e.root,new Nt([],{}),e,r,o);const s=function(t,e,n){if(t.isAbsolute)return new ye(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new ye(n.snapshot._urlSegment,!0,0);const r=be(t.commands[0])?0:1;return function(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new ye(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?Oe(s.segmentGroup,s.index,i.commands):we(s.segmentGroup,s.index,i.commands);return me(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,t,d,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(o.V)()&&this.isNgZoneEnabled&&!o.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
1you forget to call 'ngZone.run()'?");const n=Te(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"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(Te(t))return Rt(this.currentUrlTree,t,e);const n=this.parseUrl(t);return Rt(this.currentUrlTree,n,e)}removeEmptyProps(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new nt(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,r,o){const i=this.getTransition();if(i&&"imperative"!==e&&"imperative"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"hashchange"==e&&"popstate"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(i&&"popstate"==e&&"hashchange"===i.source&&i.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,c;o?(s=o.resolve,a=o.reject,c=o.promise):c=new Promise((t,e)=>{s=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:s,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const o=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(o)||e?this.location.replaceState(o,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(o,"",Object.assign(Object.assign({},r),{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){o.Wb()},t.\u0275dir=o.Hb({type:t}),t})(),yn=(()=>{class t{constructor(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(o.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(o.V)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:_n(this.skipLocationChange),replaceUrl:_n(this.replaceUrl)};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:_n(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:_n(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(vn),o.Mb(ce),o.Ub("tabindex"),o.Mb(o.D),o.Mb(o.l))},t.\u0275dir=o.Hb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&o.Xb("click",(function(t){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})();function _n(t){return""===t||!!t}class wn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new On,this.attachRef=null}}class On{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 wn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let Sn=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new o.n,this.deactivateEvents=new o.n,this.name=r||vt,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;
1const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,o=new En(t,r,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)(o.Mb(On),o.Mb(o.N),o.Mb(o.j),o.Ub("name"),o.Mb(o.h))},t.\u0275dir=o.Hb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class En{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===ce?this.route:t===On?this.childContexts:this.parent.get(t,e)}}class Cn{}class jn{preload(t,e){return e().pipe(N(()=>Object(i.a)(null)))}}class xn{preload(t,e){return Object(i.a)(null)}}let Pn=(()=>{class t{constructor(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=new pn(e,n,e=>t.triggerEvent(new ut(e)),e=>t.triggerEvent(new dt(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(j.a)(t=>t instanceof nt),Object(W.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(o.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(s.a)(n).pipe(Object(J.a)(),Object(E.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(U.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(o.Tb(vn),o.Tb(o.w),o.Tb(o.i),o.Tb(o.r),o.Tb(Cn))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})(),In=(()=>{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 et?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof nt&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof bt&&(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 bt(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){o.Wb()},t.\u0275dir=o.Hb({type:t}),t})();const Tn=new o.q("ROUTER_CONFIGURATION"),kn=new o.q("ROUTER_FORROOT_GUARD"),An=[r.g,{provide:Ft,useClass:Ut},{provide:vn,useFactory:function(t,e,n,o,i,s,a,c,l={},u,d){const h=new vn(null,e,n,o,i,s,a,Tt(c));if(u&&(h.urlHandlingStrategy=u),d&&(h.routeReuseStrategy=d),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const t=Object(r.v)();h.events.subscribe(e=>{t.logGroup(`Router Event: ${e.constructor.name}`),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return l.onSameUrlNavigation&&(h.onSameUrlNavigation=l.onSameUrlNavigation),l.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=l.paramsInheritanceStrategy),l.urlUpdateStrategy&&(h.urlUpdateStrategy=l.urlUpdateStrategy),l.relativeLinkResolution&&(h.relativeLinkResolution=l.relativeLinkResolution),h},deps:[o.g,Ft,On,r.g,o.r,o.w,o.i,hn,Tn,[class{},new o.A],[un,new o.A]]},On,{provide:ce,useFactory:function(t){return t.routerState.root},deps:[vn]},{provide:o.w,useClass:o.J},Pn,xn,jn,{provide:Tn,useValue:{enableTracing:!1}}];function Dn(){return new o.y("Router",vn)}let Rn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[An,Ln(e),{provide:kn,useFactory:$n,deps:[[vn,new o.A,new o.I]]},{provide:Tn,useValue:n||{}},{provide:r.h,useFactory:Nn,deps:[r.q,[new o.p(r.a),new o.A],Tn]},{provide:In,useFactory:Mn,deps:[vn,r.r,Tn]},{provide:Cn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:xn},{provide:o.y,multi:!0,useFactory:Dn},[Vn,{provide:o.d,multi:!0,useFactory:Fn,deps:[Vn]},{provide:Bn,useFactory:Un,deps:[Vn]},{provide:o.b,multi:!0,useExisting:Bn}]]}}static forChild(e){return{ngModule:t,providers:[Ln(e)]}}}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)(o.Tb(kn,8),o.Tb(vn,8))}}),t})();function Mn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new In(t,e,n)}function Nn(t,e,n={}){return n.useHash?new r.e(t,e):new r.p(t,e)}function $n(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ln(t){return[{provide:o.a,multi:!0,useValue:t},{provide:hn,multi:!0,useValue:t}]}let Vn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new O.a}appInitializer(){return this.injector.get(r.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>
1t=e),n=this.injector.get(vn),r=this.injector.get(Tn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Tn),n=this.injector.get(Pn),r=this.injector.get(In),i=this.injector.get(vn),s=this.injector.get(o.g);t===s.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(s.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)(o.Tb(o.r))},t.\u0275prov=o.Ib({token:t,factory:t.\u0275fac}),t})();function Fn(t){return t.appInitializer.bind(t)}function Un(t){return t.bootstrapListener.bind(t)}const Bn=new o.q("Router Initializer")},uC2i:function(t,e){},"up+p":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),e.prototype.login=function(t){return Object(o.cordova)(this,"login",{successIndex:1,errorIndex:2},arguments)},e.prototype.trySilentLogin=function(t){return Object(o.cordova)(this,"trySilentLogin",{},arguments)},e.prototype.logout=function(){return Object(o.cordova)(this,"logout",{},arguments)},e.prototype.disconnect=function(){return Object(o.cordova)(this,"disconnect",{},arguments)},e.prototype.getSigningCertificateFingerprint=function(){return Object(o.cordova)(this,"getSigningCertificateFingerprint",{},arguments)},e.pluginName="GooglePlus",e.plugin="cordova-plugin-googleplus",e.pluginRef="window.plugins.googleplus",e.repo="https://github.com/EddyVerbruggen/cordova-plugin-googleplus",e.install="ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid",e.installVariables=["REVERSED_CLIENT_ID"],e.platforms=["Android","iOS"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},uzCt:function(t,e,n){t.exports=function(){"use strict";function t(e){return t.result?t.result:e&&"function"==typeof e.getSerializer?t.result=e.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function e(t,n){return(e.result=e.result||{})[n]?e.result[n]:t&&"function"==typeof t.getDriver?e.result[n]=t.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(t){return e(t,t.WEBSQL)}var r=new Promise((function(t,e){"undefined"!=typeof sqlitePlugin?t():"undefined"==typeof cordova?e(new Error("cordova is not defined.")):document.addEventListener("deviceready",(function(){return t()}),!1)})).catch((function(){return Promise.resolve()}));function o(){return r.then((function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")}))}var i={_driver:"cordovaSQLiteDriver",_initStorage:function(e){var r=this,i={db:null};if(e)for(var s in e)i[s]="string"!=typeof e[s]?e[s].toString():e[s];var a=o().then((function(t){return new Promise((function(e,n){try{i.location=i.location||"default",i.db=t({name:i.name,version:String(i.version),description:i.description,size:i.size,key:i.dbKey,location:i.location})}catch(o){n(o)}i.db.transaction((function(t){t.executeSql("CREATE TABLE IF NOT EXISTS "+i.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){r._dbInfo=i,e()}),(function(t,e){n(e)}))}))}))})),c=t(r),l=n(r);return Promise.all([c,l,a]).then((function(t){return i.serializer
1=t[0],a}))},_support:function(){return o().then((function(t){return!!t})).catch((function(){return!1}))}};return function(t){var e=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function r(t,e){t[e]=function(){var t=this,r=arguments;return n(t).then((function(n){return n[e].apply(t,r)}))}}for(var o=0,i=e.length;o<i;o++)r(t,e[o])}(i),i}()},vOzp:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("gZlD"),i=n("fXoL");let s=(()=>{class t{constructor(t){this.loginService=t}test_user_role(t){return Object(r.a)(this,void 0,void 0,(function*(){if(t&&t.indexOf("role-")>=0){const e=yield this.loginService.getLoginData();if(!e)return!1;let n=t.split(" "),r=!!(e&&e.roles&&e.roles.length)&&e.roles;if(!r)return!1;let o="";for(let t=0;t<n.length;t++)if(0===n[t].indexOf("role-"))return o=n[t].replace("role-",""),!!r.includes(o);return!1}return!0}))}hasRole(t){return this.loginService.user&&this.loginService.user.hasRole(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Tb(o.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},vf9s:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("mrSG"),o=n("A1Tq"),i=n("gZlD"),s=n("fXoL"),a=n("e8h1");let c=(()=>{class t{constructor(t,e,n){this.httpService=t,this.storage=e,this.loginService=n}download(t,e){return Object(r.a)(this,void 0,void 0,(function*(){Object.assign(e,{appp:"3"});const n=yield this.storage.get("app_language");let r;n&&"object"==typeof n?r=n.code:n&&"string"==typeof n&&(r=n),r&&Object.assign(e,{lang:r});const o=yield this.loginService.getLoginData();let i={};return o&&o.access_token&&Object.assign(i,{Authorization:"Bearer "+o.access_token}),this.httpService.get(t,e,i)}))}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(o.a),s.Tb(a.b),s.Tb(i.a))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("7o/Q"),o=n("KqfI"),i=n("n6bG");function s(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.a{constructor(t,e,n,r){super(t),this._tapNext=o.a,this._tapError=o.a,this._tapComplete=o.a,this._tapError=n||o.a,this._tapComplete=r||o.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||o.a,this._tapError=e.error||o.a,this._tapComplete=e.complete||o.a)}_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()}}},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("oB13"),o=n("x+ZX"),i=n("XNiG");function s(){return new i.a}function a(){return t=>Object(o.a)()(Object(r.a)(s)(t))}},wDu7:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("mrSG"),o=n("AytR"),i=n("A1Tq"),s=n("fXoL"),a=n("e8h1"),c=n("TEn/");let l=(()=>{class t{constructor(t,e,n){this.storage=t,this.httpService=e,this.navCtrl=n,this.apiParams={auth:"@ppp"},o.a.production&&Object.assign(this.apiParams,{production:"true"}),this.api_url=o.a.apiUrl+o.a.endpoint+o.a.appId}fetchAppData(){return Object(r.a)(this,void 0,void 0,(function*(){return this.appData=yield this._getAppdataFromApi(),this.appData||(this.appData=yield this.getAppdata()),this.appData}))}getAppdata(){return Object(r.a)(this,void 0,void 0,(function*(){return this.appData||(this.appData=yield this._getAppdataFromStorage(),this.appData||(this.appData=yield this._getAppdataFromApi(),this.appData||(this.appData=yield this._getAppDataFromJsonFile()))),this.appData}))}_getAppdataFromStorage(){return Object(r.a)(this,void 0,void 0,(function*(){return yield this.storage.get("myappp")}))}_getAppdataFromApi(){return Object(r.a)(this,void 0,void 0,(function*(){let t={headers:new Headers({"Cache-Control":"no-cache, no-store, must-revalidate, post-check=0, pre-check=0",Pragma:"no-cache",Expires:"0"})};try{let e=Math.floor(1e3*Math.random())+1;Object.assign(this.apiParams,{cacheBust:e});const n=yield this.httpService.get(this.api_url,this.apiParams,t);return this.storage.set("myappp",n),n}catch(e){return void console.warn(e)}}))}_getAppDataFromJsonFile(){return Object(r.a)(this,void 0,void 0,(function*(){return console.log("getting local json file"),yield this.httpService.getLocalFile("app-data.json")}))}getPageBySlug(t){let e=[];return this.appData.menus.side_menu.items&&this.appData.menus.side_menu.items.forEac
1h(t=>{e.push(t)}),this.appData.menus.tab_menu.items&&this.appData.menus.tab_menu.items.forEach(t=>{e.push(t)}),e.filter(e=>e.slug===t)[0]}getPageBySideMenuIndex(t){let e=[];return this.appData.menus.side_menu.items&&this.appData.menus.side_menu.items.forEach(t=>{e.push(t)}),e[t]}getPageByTabMenuIndex(t){let e=[];return this.appData.menus.tab_menu.items&&this.appData.menus.tab_menu.items.forEach(t=>{e.push(t)}),e[t]}getRoute(t,e){let n=e?"/tabs/":"/";if("list"===t.page_type)return n+"post-list/"+t.page_id;if("media-list"===t.page_type)return n+"media-list/"+t.page_id;if("bp-list"!==t.page_type)return"app-blocks"===t.page_type?n+"app-blocks/"+t.page_id:"html"===t.page_type||"appcommerce"===t.page_type?n+"custom-"+t.slug:t.url&&!t.root?n+"iframe/"+t.page_id:(console.error("Page type missing, defaulting to custom page."),n+"custom-"+t.slug);switch(t.list_route){case"activity":return n+"bp-activity-list/"+t.page_id;case"members":return n+"bp-member-list/"+t.page_id;case"groups":return n+"bp-group-list/"+t.page_id;case"messages":return n+"bp-message-list/"+t.page_id;case"profile":return n+"bp-profile"}}navigateToPageAsRoot(t){return Object(r.a)(this,void 0,void 0,(function*(){let e=!!(yield this.getAppdata()).menus.tab_menu.items,n=this.getRoute(t,e);return console.log(n,e),this.navCtrl.navigateRoot(n,{state:{page:t}})}))}navigateToRouteAsRoot(t){return this.navCtrl.navigateRoot(t)}navigateForwardToPage(t){let e=this.getRoute(t);return this.navCtrl.navigateForward(e,{state:{page:t}})}navigateForwardToRoute(t,e){return this.navCtrl.navigateForward(t,e)}maybeLogInOutRedirect(t){let e;if(console.log("maybeloginoutredirect",t),t.login_redirect?e=t.login_redirect:t.logout_redirect&&(e=t.logout_redirect),e){let t;console.log("redirecting to ",e);let n="",r="";if("string"==typeof e?r=e:"object"==typeof e&&(n=e.title,r=e.url),!r)return;-1===r.indexOf("http")?(t=this.getPageBySlug(r),t?setTimeout(()=>{this.navigateForwardToPage(t)},5001):console.log("Error: redirect page not found")):(t={title:n,url:r,classes:null,target:"",extra_classes:""},this.navigateForwardToPage(t))}}}return t.\u0275fac=function(e){return new(e||t)(s.Tb(a.b),s.Tb(i.a),s.Tb(c.pb))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},wQXg:function(t,e,n){"use strict";var r=n("fXoL"),o=n("2Vo4"),i=n("XNiG"),s=n("3N8a");class a extends s.a{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)}}var c=n("IjjT");class l extends c.a{}const u=new l(a);var d=n("quSY"),h=n("7o/Q"),p=n("WMd4");class f extends h.a{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(f.dispatch,this.delay,new g(t,this.destination)))}_next(t){this.scheduleMessage(p.a.createNext(t))}_error(t){this.scheduleMessage(p.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(p.a.createComplete()),this.unsubscribe()}}class g{constructor(t,e){this.notification=t,this.destination=e}}var b=n("9ppp"),m=n("Ylt2");class v extends i.a{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){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new y(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;let i;if(this.closed)throw new b.a;if(this.isStopped||this.hasError?i=d.a.EMPTY:(this.observers.push(t),i=new m.a(this,t)),r&&t.add(t=new f(t,r)),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(),i}_getNow(){return(this.scheduler||u).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length;let i=0;for(;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r}}class y{constructor(t,e){this.time=t,this.value=e}}var _=n("pLZG"),w=n("lJxs"),O=n("3E0/"),S=n("ofXK"),E=n("tyNb");n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return A}));class C{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const j=new r.q("ANGULARTICS2");class x{trackLocation(t){return new o.a({url:"/"})}prepareExternalUrl(t){return t}}let P=(()=>{let t=class{constructor(t,e){this.tracker=t,this.pageTrack=new v(10),this.eventTrack=new v(10),this.exceptionTrack=new v(10),this.setAlias=new v(10),this.setUsername=new v(10),this.setUserProperties=new v(10),this.setUserPropertiesOnce=new v(10),this.setSuperProperties=new v(10),this.setSuperPropertiesOnce=new v(10),this.userTimings=new v(10);const n=new C;this.settings=Object.assign({},n,e.settings),this.settings.pageTracking=Object.assign({},n.pageTracking,e.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(t=>this.trackUrlChange(t.url))}filterDeveloperMode(){return Object(_.a)((t,e)=>!this.settings.developerMode)}trackUrlChange(t){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(t)){const e=this.clearUrl(t);let n;n=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+e:this.tracker.prepareExternalUrl(e),this.pageTrack.next({path:n})}}matchesExcludedRoute(t){for(const e of this.settings.pageTracking.excludedRoutes)if(e instanceof RegExp&&e.test(t)||-1!==t.indexOf(e))return!0;return!1}clearUrl(t){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?t.split("/").map(t=>this.settings.pageTracking.clearQueryParams?t.split("?")[0]:t).map(t=>this.settings.pageTracking.clearHash?t.split("#")[0]:t).filter(t=>!this.settings.pageTracking.clearIds||!t.match(this.settings.pageTracking.idsRegExp)).join("/"):t}};return t.\u0275fac=function(e){return new(e||t)(r.Tb(x),r.Tb(j))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(r.R)({factory:function(){return new t(Object(r.U)(x),Object(r.U)(j))},token:t,providedIn:"root"}),t})(),I=(()=>{let t=class{constructor(t,e){this.router=t,this.location=e}trackLocation(t){return this.router.events.pipe(Object(_.a)(t=>t instanceof E.c),Object(_.a)(()=>!t.developerMode),Object(w.a)(t=>({url:t.urlAfterRedirects})),Object(O.a)(0))}prepareExternalUrl(t){return this.location.prepareExternalUrl(t)}
1};return t.\u0275fac=function(e){return new(e||t)(r.Tb(E.h),r.Tb(S.g))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(r.R)({factory:function(){return new t(Object(r.U)(E.h),Object(r.U)(S.g))},token:t,providedIn:"root"}),t})(),T=(()=>{let t=class{};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)}}),t})();var k;let A=(()=>{let t=k=class{static forRoot(t={}){return{ngModule:k,providers:[{provide:j,useValue:{settings:t}},{provide:x,useClass:I},P]}}};return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[T]]}),t})()},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q");function o(){return function(t){return t.lift(new i(t))}}class i{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new s(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class s extends r.a{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,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},xJoM:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("mrSG"),o=n("FAH8"),i=n("fXoL"),s=n("TEn/");let a=(()=>{class t{constructor(t,e){this.platform=t,this.file=e}getDirectoryPath(){let t="";return this.platform.is("ios")?t=this.file.dataDirectory:this.platform.is("android")&&(t=this.file.dataDirectory),t}checkDirectory(t,e){return Object(r.a)(this,void 0,void 0,(function*(){try{return yield this.file.checkDir(t,e),!0}catch(n){return console.error(n),!1}}))}removeFile(t,e){return this.file.removeFile(t,e)}createDirectory(t,e,n){return this.file.createDir(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Tb(s.rb),i.Tb(o.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},xS7M:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("mrSG"),o=n("C6fG"),i=n("fXoL"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(r.c)(e,t),Object.defineProperty(e.prototype,"cordova",{get:function(){return Object(o.cordovaPropertyGet)(this,"cordova")},set:function(t){Object(o.cordovaPropertySet)(this,"cordova",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return Object(o.cordovaPropertyGet)(this,"model")},set:function(t){Object(o.cordovaPropertySet)(this,"model",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"platform",{get:function(){return Object(o.cordovaPropertyGet)(this,"platform")},set:function(t){Object(o.cordovaPropertySet)(this,"platform",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uuid",{get:function(){return Object(o.cordovaPropertyGet)(this,"uuid")},set:function(t){Object(o.cordovaPropertySet)(this,"uuid",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return Object(o.cordovaPropertyGet)(this,"version")},set:function(t){Object(o.cordovaPropertySet)(this,"version",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"manufacturer",{get:function(){return Object(o.cordovaPropertyGet)(this,"manufacturer")},set:function(t){Object(o.cordovaPropertySet)(this,"manufacturer",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVirtual",{get:function(){return Object(o.cordovaPropertyGet)(this,"isVirtual")},set:function(t){Object(o.cordovaPropertySet)(this,"isVirtual",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serial",{get:function(){return Object(o.cordovaPropertyGet)(this,"serial")},set:function(t){Object(o.cordovaPropertySet)(this,"serial",t)},enumerable:!0,configurable:!0}),e.pluginName="Device",e.plugin="cordova-plugin-device",e.pluginRef="device",e.repo="https://github.com/apache/cordova-plugin-device",e.platforms=["Android","Browser","iOS","macOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=i.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=i.Rb(e);return e}(o.IonicNativePlugin)},xaHH:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("ofXK"),o=n("TEn/"),i=n("3Pt+"),s=n("sYmb"),a=n("iTUp"),c=n("fXoL");let l=(()=>{class t{}return t.\u0275mod=c.Kb({type:t}),t.\u0275inj=c.Jb({factory:function(e){return new(e||t)},imports:[[r.b,o.kb,i.e,s.c.forChild(),a.a]]}),t})()},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("7o/Q");function o(t=null){return e=>e.lift(new i(t))}class i{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new s(t,this.defaultValue))}}class s extends r.a{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()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),o=n("DH7j"),i=n("n6bG"),s=n("lJxs");function a(t,e,n,c){return Object(i.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(s.a)(t=>Object(o.a)(t)?c(...t):c(t))):new r.a(r=>{!function t(e,n,r,o,i){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,i),s=()=>t.removeEventListener(n,r,i)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),s=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),s=()=>t.removeListener(n,r)}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,r,o,i)}o.add(s)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)})}},y08P:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));class r{constructor(t,e,n,r,o){this.id=e,this.name=n,this.disableScroll=o,this.priority=1e6*r+e,this.ctrl=t}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const t=this.ctrl.capture(this.name,this.id,this.priority);return t&&this.disableScroll&&this.ctrl.disableScroll(this.id),t}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class o{constructor(t,e,n,r){this.id=e,this.disable=n,this.disableScroll=r,this.ctrl=t}block(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.disableGesture(t,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const t of this.disable)this.ctrl.enableGesture(t,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const i=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(t){return new r(this,this.newID(),t.name,t.priority||0,!!t.disableScroll)}createBlocker(t={}){return new o(this,this.newID(),t.disable,!!t.disableScroll)}start(t,e,n){return this.canStart(t)?(this.requestedStart.set(e,n),!0):(this.requestedStart.delete(e),!1)}capture(t,e,n){if(!this.start(t,e,n))return!1;const r=this.requestedStart;let o=-1e4;if(r.forEach(t=>{o=Math.max(o,t)}),o===n){this.capturedId=e,r.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:t}});return document.dispatchEvent(n),!0}return r.delete(e),!1}release(t){this.requestedStart.delete(t),this.capturedId===t&&(this.capturedId=void 0)}disableGesture(t,e){let n=this.disabledGestures.get(t);void 0===n&&(n=new Set,this.disabledGestures.set(t,n)),n.add(e)}enableGesture(t,e){const n=this.disabledGestures.get(t);void 0!==n&&n.delete(e)}disableScroll(t){this.disabledScroll.add(t),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(t){this.disabledScroll.delete(t),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(t){return void 0===this.capturedId&&!this.isDisabled(t)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(t){const e=this.disabledGestures.get(t);return!!(e&&e.size>0)}newID(){return this.gestureId++,this.gestureId}}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),o=n("ngJS"),i=n("jZKg");function s(t,e){return e?Object(i.a)(t,e):new r.a(Object(o.a)(t))}},yR3O:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"b",(function(){return m})),n.d(e,"e",(function(){return y}
1)),n.d(e,"f",(function(){return _}));var r=n("HDdC"),o=n("xgIS"),i={error:"cordova_not_available"},s={error:"plugin_not_installed"};function a(t){if("undefined"!=typeof window&&window.angular){var e=window.document,n=window.angular.element(e.querySelector("[ng-app]")||e.body).injector();if(n)return n.get("$q")((function(e,n){t(e,n)}));console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise((function(e,n){t(e,n)}));console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function c(t,e,n,r){var o,i;void 0===r&&(r={});var s=a((function(s,a){o=r.destruct?g(t,e,n,r,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s(t)}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a(t)})):g(t,e,n,r,s,a),i=a}));return o&&o.error&&(s.catch((function(){})),"function"==typeof i&&i(o.error)),s}function l(t,e,n,r){return void 0===r&&(r={}),a((function(o,i){var s=g(t,e,n,r);s?s.error?i(s.error):s.then&&s.then(o).catch(i):i({error:"unexpected_error"})}))}function u(t,e,n,o){return void 0===o&&(o={}),new r.a((function(r){var i;return(i=o.destruct?g(t,e,n,o,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(t)}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.error(t)})):g(t,e,n,o,r.next.bind(r),r.error.bind(r)))&&i.error&&(r.error(i.error),r.complete()),function(){try{if(o.clearFunction)return o.clearWithArgs?g(t,o.clearFunction,n,o,r.next.bind(r),r.error.bind(r)):g(t,o.clearFunction,[])}catch(i){console.warn("Unable to clear the previous observable watch for",t.constructor.getPluginName(),e),console.warn(i)}}}))}function d(t,e){return e="undefined"!=typeof window&&e?v(window,e):e||("undefined"!=typeof window?window:{}),Object(o.a)(e,t)}function h(t,e,n){var r,o,a;return"string"==typeof t?r=t:(r=t.constructor.getPluginRef(),n=t.constructor.getPluginName(),a=t.constructor.getPluginInstallName()),!(!(o=m(r))||e&&void 0===o[e])||("undefined"!=typeof window&&window.cordova?(function(t,e,n){n?console.warn("Native: tried calling "+t+"."+n+", but the "+t+" plugin is not installed."):console.warn("Native: tried accessing the "+t+" plugin but it's not installed."),e&&console.warn("Install the "+t+" plugin: 'ionic cordova plugin add "+e+"'")}(n,a,e),s):(function(t,e){"undefined"==typeof process&&(e?console.warn("Native: tried calling "+t+"."+e+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+t+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n,e),i))}function p(t,e){return t._objectInstance&&(!e||void 0!==t._objectInstance[e])}function f(t,e,n,r){if(void 0===e&&(e={}),e.sync)return t;if("reverse"===e.callbackOrder)t.unshift(r),t.unshift(n);else if("node"===e.callbackStyle)t.push((function(t,e){t?r(t):n(e)}));else if("object"===e.callbackStyle&&e.successName&&e.errorName){var o={};o[e.successName]=n,o[e.errorName]=r,t.push(o)}else if(void 0!==e.successIndex||void 0!==e.errorIndex){var i=function(){e.successIndex>t.length?t[e.successIndex]=n:t.splice(e.successIndex,0,n)},s=function(){e.errorIndex>t.length?t[e.errorIndex]=r:t.splice(e.errorIndex,0,r)};e.successIndex>e.errorIndex?(s(),i()):(i(),s())}else t.push(n),t.push(r);return t}function g(t,e,n,r,o,i){void 0===r&&(r={}),n=f(n,r,o,i);var s=h(t,e);if(!0===s){var a=m(t.constructor.getPluginRef());return a[e].apply(a,n)}return s}function b(t,e,n,r,o,i){if(void 0===r&&(r={}),n=f(n,r,o,i),p(t,e))return t._objectInstance[e].apply(t._objectInstance,n)}function m(t){return"undefined"!=typeof window?v(window,t):null}function v(t,e){for(var n=e.split("."),r=t,o=0;o<n.length;o++){if(!r)return null;r=r[n[o]]}return r}var y=function(t,e,n){return void 0===n&&(n={}),function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n.sync?g(t,e,r,n):n.observable?u(t,e,r,n):n.eventObservable&&n.event?d(n.event,n.element):n.otherPromise?l(t,e,r,n):c(t,e,r,n)}};function _(t,e,n){return void 0===n&&(n={}),function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n.sync)return b(t,e,o,n);if(n.observable)return new r.a((function(r){var i;return(i=n.destruct?b(t,e,o,n,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.next(t)}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r.error(t)})):b(t,e,o,n,r.next.bind(r),r.error.bind(r)))&&i.error&&r.error(i.error),function(){try{return n.clearWithArgs?b(t,n.clearFunction,o,n,r.next.bind(r),r.error.bind(r)):b(t,n.clearFunction,[])}catch(i){console.warn("Unable to clear the previous observable watch for",t.constructor.getPluginName(),e),console.warn(i)}}}));if(n.otherPromise)return a((function(r,i){var s;(s=n.destruct?b(t,e,o,n,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t)}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(t)})):b(t,e,o,n,r,i))&&s.then?s.then(r,i):i()}));var s,c,l=a((function(r,i){s=n.destruct?b(t,e,o,n,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r(t)}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i(t)})):b(t,e,o,n,r,i),c=i}));return s&&s.error&&(l.catch((function(){})),"function"==typeof c&&c(s.error)),l}}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("HDdC");function o(t,e){return new r.a(e?n=>e.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var r=n("fXoL"),o=n("AytR"),i=n("JHRn"),s=n("jhN1"),a=n("tyNb"),c=n("TEn/"),l=n("mrSG"),u=n("h6Uw"),d=n("LuFN"),h=n("41xA"),p=n("rjpK"),f=n("1ZqY"),g=n("6SG/"),b=n("SduN"),m=n("Dm8P"),v=n("C6fG"),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.prototype.overlaysWebView=function(t){return Object(v.cordova)(this,"overlaysWebView",{sync:!0},arguments)},e.prototype.styleDefault=function(){return Object(v.cordova)(this,"styleDefault",{sync:!0},arguments)},e.prototype.styleLightContent=function(){return Object(v.cordova)(this,"styleLightContent",{sync:!0},arguments)},e.prototype.styleBlackTranslucent=function(){return Object(v.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},e.prototype.styleBlackOpaque=function(){return Object(v.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},e.prototype.backgroundColorByName=function(t){return Object(v.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},e.prototype.backgroundColorByHexString=function(t){return Object(v.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},e.prototype.hide=function(){return Object(v.cordova)(this,"hide",{sync:!0},arguments)},e.prototype.show=function(){return Object(v.cordova)(this,"show",{sync:!0},arguments)},Object.defineProperty(e.prototype,"isVisible",{get:function(){return Object(v.cordovaPropertyGet)(this,"isVisible")},set:function(t){Object(v.cordovaPropertySet)(this,"isVisible",t)},enumerable:!0,configurable:!0}),e.pluginName="StatusBar",e.plugin="cordova-plugin-statusbar",e.pluginRef="StatusBar",e.repo="https://github.com/apache/cordova-plugin-statusbar",e.platforms=["Android","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Rb(e);return e}(v.IonicNativePlugin),_=n("xS7M"),w=n("m/P+"),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.prototype.show=function(){return Object(v.cordova)(this,"show",{sync:!0},arguments)},e.prototype.hide=function(){return Object(v.cordova)(this,"hide",{sync:!0},arguments)},e.pluginName="SplashScreen",e.plugin="cordova-plugin-splashscreen",e.pluginRef="navigator.splashscreen",e.repo="https://github.com/apache/cordova-plugin-splashscreen",e.platforms=["Amazon Fire OS","Android","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Rb(e);return e}(v.IonicNativePlugin),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(l.c)(e,t),e.prototype.init=function(t){return new E(t)},e.prototype.hasPermission=function(){return Object(v.cordova)(this,"hasPermission",{},arguments)},e.prototype.createChannel=function(t){return Object(v.cordova)(this,"createChannel",{callbackOrder:"reverse"},arguments)},e.prototype.deleteChannel=function(t){return Object(v.cordova)(this,"deleteChannel",{callbackOrder:"reverse"},arguments)},e.prototype.listChannels=function(){return Object(v.cordova)(this,"listChannels",{},arguments)},e.pluginName="Push",e.plugin="phonegap-plugin-push",e.pluginRef="PushNotification",e.repo="https://github.com/phonegap/phonegap-plugin-push",e.install="ionic cordova plugin add phonegap-plugin-push",e.platforms=["Android","Browser","iOS","Windows"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Rb(e);return e}(v.IonicNativePlugin),E=function(){function t(t){!0===Object(v.checkAvailability)("PushNotification","init","PushNotification")&&"undefined"!=typeof window&&(this._objectInstance=window.PushNotification.init(t))}return t.prototype.on=function(t){return Object(v.cordovaInstance)(this,"on",{observable:!0,clearFunction:"off",clearWithArgs:!0},arguments)},t.prototype.unregister=function(){return Object(v.cordovaInstance)(this,"unregister",{},arguments)},t.prototype.setApplicationIconBadgeNumber=function(t){return Object(v.cordovaInstance)(this,"setApplicationIconBadgeNumber",{callbackOrder:"reverse"},arguments)},t.prototype.getApplicationIconBadgeNumber=function(){return Object(v.cordovaInstance)(this,"getApplicationIconBadgeNumber",{},arguments)},t.prototype.finish=function(t){return Object(v.cordovaInstance)(this,"finish",{callbackOrder:"reverse"},arguments)},t.prototype.clearAllNotifications=function(){return Object(v.cordovaInstance)(this,"clearAllNotifications",{},arguments)},t.prototype.subscribe=function(t){return Object(v.cordovaInstance)(this,"subscribe",{},arguments)},t.prototype.unsubscribe=function(t){return Object(v.cordovaInstance)(this,"unsubscribe",{},arguments)},t.pluginName="Push",t.plugin="phonegap-plugin-push",t.pluginRef="PushNotification",t}(),C=n("g7DU"),j=n("kwrG"),x=n("PLH8"),P=n("gZlD"),I=n("5RWN"),T=n("sYmb");let k=(()=>{class t{constructor(t){this.translate=t,this.menu=[],this.tabs=[]}getMenuItem(t,e){return"tab"==e?this.getTab(t):this.getMenu(t)}getMenu(t){return!!this.menu[t]&&this.menu[t]}
1getTab(t){return!!this.tabs[t]&&this.tabs[t]}getMenuItemById(t,e){let n=[];return e.side_menu&&e.side_menu.items&&n.push(e.side_menu.items),e.tab_menu&&e.tab_menu.items&&n.push(e.tab_menu.items),n[0].filter(e=>e.page_id===t)[0]}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(T.e))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var A=n("YplK"),D=n("8lHB"),R=n("qjYk"),M=n("4Ckt"),N=n("V8p1"),$=n("vOzp"),L=n("iVjj"),V=n("wDu7"),F=n("ofXK"),U=n("3Pt+");function B(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ion-fab",2),r.Pb(1,"ion-fab-button",3),r.Xb("click",(function(e){return r.oc(t),r.bc().expand()})),r.Nb(2,"ion-icon",4),r.Ob(),r.Ob()}}function z(t,e){if(1&t&&(r.Pb(0,"ion-card",26),r.Nb(1,"img",27),r.Ob()),2&t){const t=r.bc(2);r.Bb(1),r.gc("src",t.image,r.rc)}}function H(t,e){if(1&t&&r.Nb(0,"h1",28),2&t){const t=r.bc(2);r.gc("innerHTML",t.title,r.pc)}}function G(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ion-button",29),r.Xb("click",(function(e){return r.oc(t),r.bc(2).toggleSpeed()})),r.wc(1),r.Ob()}if(2&t){const t=r.bc(2);r.Bb(1),r.yc(" ",t.rate,"x ")}}function q(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ion-button",30),r.Xb("click",(function(e){return r.oc(t),r.bc(2).back()})),r.Nb(1,"ion-icon",31),r.Ob()}}function W(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ion-button",32),r.Xb("click",(function(e){return r.oc(t),r.bc(2).forward()})),r.Nb(1,"ion-icon",33),r.Ob()}}function X(t,e){if(1&t){const t=r.Qb();r.Pb(0,"div"),r.Pb(1,"div",5),r.Pb(2,"ion-button",6),r.Xb("click",(function(e){return r.oc(t),r.bc().close()})),r.Nb(3,"ion-icon",7),r.Ob(),r.Pb(4,"ion-button",8),r.Xb("click",(function(e){return r.oc(t),r.bc().collapse()})),r.Nb(5,"ion-icon",9),r.Ob(),r.Ob(),r.vc(6,z,2,1,"ion-card",10),r.Pb(7,"div",11),r.Pb(8,"ion-item",12),r.vc(9,H,1,1,"h1",13),r.Ob(),r.Pb(10,"ion-item",14),r.vc(11,G,2,1,"ion-button",15),r.vc(12,q,2,0,"ion-button",16),r.Pb(13,"ion-button",17),r.Xb("click",(function(e){return r.oc(t),r.bc().playPause()})),r.Nb(14,"ion-icon",18),r.Ob(),r.vc(15,W,2,0,"ion-button",19),r.Pb(16,"ion-button",20),r.Xb("click",(function(e){return r.oc(t),r.bc().toggleLoop()})),r.Nb(17,"ion-icon",21),r.Ob(),r.Ob(),r.Pb(18,"ion-item",22),r.Pb(19,"ion-range",23),r.Xb("ngModelChange",(function(e){return r.oc(t),r.bc().progress=e}))("touchend",(function(e){return r.oc(t),r.bc().seek()})),r.Ob(),r.Ob(),r.Pb(20,"ion-grid"),r.Pb(21,"ion-row"),r.Pb(22,"ion-col",24),r.wc(23),r.Ob(),r.Pb(24,"ion-col",25),r.wc(25),r.Ob(),r.Ob(),r.Ob(),r.Ob(),r.Ob()}if(2&t){const t=r.bc();r.Bb(6),r.gc("ngIf",t.image),r.Bb(3),r.gc("ngIf",t.title),r.Bb(2),r.gc("ngIf",t.isIos),r.Bb(1),r.gc("ngIf",t.isPlaylist),r.Bb(2),r.hc("name",t.isPlaying?"pause":"play"),r.Bb(1),r.gc("ngIf",t.isPlaylist),r.Bb(1),r.hc("color",t.loop?"success":""),r.Bb(3),r.gc("ngModel",t.progress),r.Bb(4),r.yc(" ",t.position," "),r.Bb(2),r.yc(" ",t.duration," ")}}let K=(()=>{class t{constructor(t,e,n,r){this.navParams=t,this.streamingMedia=e,this.popoverController=n,this.platform=r,this.progress=null,this.image=null,this.playerExpanded=!0,this.title=null,this.duration=null,this.position=null,this.subscriptions=[],this.loop=!1,this.isPlaylist=!1,this.isPlaying=!0,this.rate=1,this.isIos=!1}ngAfterViewInit(){setTimeout(()=>{this._startSubscriptions(),this.image=this.navParams&&this.navParams.get("image")?this.navParams.get("image"):null,this.title=this.navParams&&this.navParams.get("title")?this.navParams.get("title"):null,this.navParams&&this.navParams.get("has_playlist")&&(this.isPlaylist=!0),this.platform.is("ios")&&(this.isIos=!0)})}_startSubscriptions(){this.subscriptions.push(this.streamingMedia.audioPlayerProgress().subscribe(t=>{this.progress=t.percent,t.duration&&(this.duration=this.numToTime(t.duration)),t.position&&(this.position=this.numToTime(t.position))})),this.subscriptions.push(this.streamingMedia.playerFinished().subscribe(t=>{if(console.log("player finished",t),t&&this.loop)return this.progress=0,this.seek(),void this.play()}))}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}playPause(){this.isPlaying?this.pause():this.play()}play(){this.isPlaying=!0,this.streamingMedia.play()}pause(){this.isPlaying=!1,this.streamingMedia.pause()}back(){this.streamingMedia.playPrevious()}forward(){this.streamingMedia.playNext()}toggleSpeed(){console.log("first",this.rate),this.rate=this.rate>=2?.5:this.rate+.5,console.log(this.rate),this.streamingMedia.toggleSpeed(this.rate)}expand(){this.playerExpanded=!0,this.streamingMedia.expandCollapse.next(!1)}seek(){this.streamingMedia.seek(this.progress)}toggleLoop(){this.loop=!this.loop}collapse(){this.playerExpanded=!1,this.streamingMedia.expandCollapse.next(!0)}close(){this.streamingMedia.cleanup(),this.popoverController.dismiss()}
1numToTime(t){let e=parseInt(t,10),n=Math.floor(e/3600),r=Math.floor((e-3600*n)/60),o=e-3600*n-60*r,i="",s="",a="";return 0===n||(n>10?i=n.toString()+":":n<10&&(i="0"+n+":")),s=r<10?"0"+r+":":r.toString()+":",a=o<10?"0"+o:o.toString(),i+s+a}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(c.qb),r.Mb(b.a),r.Mb(c.sb),r.Mb(c.rb))},t.\u0275cmp=r.Gb({type:t,selectors:[["audio-player"]],decls:2,vars:2,consts:[["vertical","center","horizontal","end","slot","fixed",4,"ngIf"],[4,"ngIf"],["vertical","center","horizontal","end","slot","fixed"],["color","dark","mini","",3,"click"],["name","options"],[1,"close-buttons"],["fill","clear",1,"close-button",3,"click"],["name","close","slot","icon-only"],["fill","clear",1,"collapse-button",3,"click"],["name","arrow-down","slot","icon-only"],["class","audio-player-image","lines","none",4,"ngIf"],[1,"audio-player-inside"],["lines","none",1,"ion-text-wrap","player-title-wrap","ion-no-padding"],["class","player-title ion-text-center",3,"innerHTML",4,"ngIf"],["lines","none",1,"player-buttons","ion-no-padding"],["class","speed-button","fill","clear",3,"click",4,"ngIf"],["class","skip-backward-button","fill","clear",3,"click",4,"ngIf"],["fill","clear","size","large",1,"play-button",3,"click"],["slot","icon-only",3,"name"],["class","forward-button","fill","clear",3,"click",4,"ngIf"],["fill","clear",1,"loop-button",3,"color","click"],["slot","icon-only","name","repeat"],["lines","none",1,"player-progress","ion-no-padding"],["min","0","max","100","color","primary",3,"ngModel","ngModelChange","touchend"],["size","6",1,"player-duration-left"],["size","6",1,"player-duration-right"],["lines","none",1,"audio-player-image"],[3,"src"],[1,"player-title","ion-text-center",3,"innerHTML"],["fill","clear",1,"speed-button",3,"click"],["fill","clear",1,"skip-backward-button",3,"click"],["slot","icon-only","name","play-skip-back"],["fill","clear",1,"forward-button",3,"click"],["slot","icon-only","name","play-skip-forward"]],template:function(t,e){1&t&&(r.vc(0,B,3,0,"ion-fab",0),r.vc(1,X,26,10,"div",1)),2&t&&(r.gc("ngIf",!e.playerExpanded),r.Bb(1),r.gc("ngIf",e.playerExpanded))},directives:[F.k,c.s,c.t,c.x,c.j,c.C,c.N,c.ub,U.h,U.k,c.v,c.R,c.q,c.l],styles:[".audio-player-minimized[_ngcontent-%COMP%] .audio-player-wrapper[_ngcontent-%COMP%]{left:unset;bottom:75px;top:unset;height:100px;width:100px}.audio-player-minimized[_ngcontent-%COMP%] .audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%]{width:100px;height:100px;top:unset;background:none}.audio-player-minimized[_ngcontent-%COMP%] .audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .audio-player-inside[_ngcontent-%COMP%]{display:none}.audio-player-wrapper[_ngcontent-%COMP%]{height:100%}.audio-player-wrapper[_ngcontent-%COMP%] .list-ios[_ngcontent-%COMP%], .audio-player-wrapper[_ngcontent-%COMP%] .list-md[_ngcontent-%COMP%], .audio-player-wrapper[_ngcontent-%COMP%] ion-item[_ngcontent-%COMP%], .audio-player-wrapper[_ngcontent-%COMP%] ion-list[_ngcontent-%COMP%]{background:none;--background:none;--color:#fff}.audio-player-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-left:0}.audio-player-wrapper[_ngcontent-%COMP%] .item.md[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{padding:13px 0}.audio-player-wrapper[_ngcontent-%COMP%] .item.player-progress[_ngcontent-%COMP%]{padding:0 15px}.audio-player-wrapper[_ngcontent-%COMP%] .player-title-wrap[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{padding:2px}.audio-player-wrapper[_ngcontent-%COMP%] .player-title-wrap[_ngcontent-%COMP%] .player-title[_ngcontent-%COMP%]{text-align:center;font-size:2.2rem;width:100%;padding:0 20px}.audio-player-wrapper[_ngcontent-%COMP%] .audio-player-image[_ngcontent-%COMP%]{max-height:40vh;margin:100px 20px 0;overflow:hidden;width:calc(100% - 40px);box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);transition:all .2s}.audio-player-wrapper[_ngcontent-%COMP%] .audio-player-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;width:100%;height:auto}.audio-player-wrapper[_ngcontent-%COMP%] .popover-content[_ngcontent-%COMP%]{bottom:0;max-height:100%;top:0!important;width:100%;left:0!important;right:0;background:transparent;box-shadow:none;border-radius:0;min-height:80px;transform-origin:bottom!important}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%]{background:#2d3748;display:block;overflow:hidden;height:100%;width:100%;top:0;bottom:0;position:absolute}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .audio-player-inside[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .close-buttons[_ngcontent-%COMP%]{top:40px;position:absolute;
1left:0;right:0}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .popover-md[_ngcontent-%COMP%] .close-buttons[_ngcontent-%COMP%]{top:30px}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%], .audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .collapse-button[_ngcontent-%COMP%]{position:absolute;top:0;z-index:1;color:#fff}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .collapse-button[_ngcontent-%COMP%]{left:0}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{right:0}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{background:transparent;color:#fff}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item-range[_ngcontent-%COMP%] ion-range[_ngcontent-%COMP%]{padding:0 8px}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%]{padding-left:0;padding-top:5px;height:100px;display:flex;flex-direction:row}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%] .item-inner[_ngcontent-%COMP%]{border-bottom:none}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%] .button[_ngcontent-%COMP%]{height:100%;flex:1;margin:0;color:#fff}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%] .button.play-button[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{left:2px;position:relative}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%] .button.big-circle[_ngcontent-%COMP%]{border-radius:100%;border:2px solid hsla(0,0%,100%,.5);height:60px;width:60px}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .item.player-buttons[_ngcontent-%COMP%] .button.big-circle[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:2.2em}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .player-buttons[_ngcontent-%COMP%]{text-align:center}.audio-player-wrapper[_ngcontent-%COMP%] audio-player[_ngcontent-%COMP%] .range-ios[_ngcontent-%COMP%] .range-knob[_ngcontent-%COMP%]{left:7px;top:11px;width:20px;height:20px}.audio-player-wrapper[_ngcontent-%COMP%] .player-duration-left[_ngcontent-%COMP%], .audio-player-wrapper[_ngcontent-%COMP%] .player-duration-right[_ngcontent-%COMP%]{color:#999;font-size:12px;font-weight:700;padding:5px 15px;margin-bottom:20px;min-height:25px}.audio-player-wrapper[_ngcontent-%COMP%] .player-duration-right[_ngcontent-%COMP%]{text-align:right}body[_ngcontent-%COMP%] .disable-scroll[_ngcontent-%COMP%] .ion-page[_ngcontent-%COMP%]{pointer-events:auto;touch-action:auto}"]}),t})();var Y=n("e8h1");function Z(t,e){1&t&&(r.Pb(0,"div",10),r.Nb(1,"ion-skeleton-text",11),r.Nb(2,"ion-skeleton-text",11),r.Nb(3,"ion-skeleton-text",11),r.Nb(4,"ion-skeleton-text",11),r.Ob())}function Q(t,e){if(1&t&&(r.Pb(0,"ion-avatar"),r.Nb(1,"ion-img",15),r.Ob()),2&t){const t=r.bc(3);r.Bb(1),r.gc("src",t.loginData.avatar)}}function J(t,e){if(1&t&&(r.Pb(0,"div",12),r.vc(1,Q,2,1,"ion-avatar",13),r.Pb(2,"p",14),r.wc(3),r.cc(4,"translate"),r.Ob(),r.Ob()),2&t){const t=r.bc(2);r.Bb(1),r.gc("ngIf",t.loginData.avatar),r.Bb(2),r.xc(r.dc(4,2,t.loginData.message))}}function tt(t,e){if(1&t&&r.Nb(0,"ion-icon",18),2&t){const t=r.bc().$implicit;r.gc("name",t.class)}}function et(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ion-item",16),r.Xb("click",(function(n){r.oc(t);const o=e.$implicit;return r.bc(2).menuClick(o,n)})),r.vc(1,tt,1,1,"ion-icon",17),r.Pb(2,"ion-label"),r.wc(3),r.cc(4,"translate"),r.Ob(),r.Ob()}if(2&t){const t=e.$implicit;r.gc("ngClass",t.extra_classes)("hidden",!1===t.show),r.Bb(1),r.gc("ngIf",t.class),r.Bb(2),r.yc("",r.dc(4,4,t.title)," ")}}function nt(t,e){1&t&&(r.Pb(0,"ion-label"),r.wc(1),r.cc(2,"translate"),r.Ob()),2&t&&(r.Bb(1),r.xc(r.dc(2,1,"L
1ogout")))}function rt(t,e){1&t&&(r.Pb(0,"ion-label"),r.wc(1),r.cc(2,"translate"),r.Ob()),2&t&&(r.Bb(1),r.xc(r.dc(2,1,"Login")))}function ot(t,e){if(1&t){const t=r.Qb();r.Pb(0,"div",19),r.Pb(1,"ion-button",20),r.Xb("click",(function(e){return r.oc(t),r.bc(2).openLoginModal()})),r.Nb(2,"ion-icon",21),r.vc(3,nt,3,3,"ion-label",13),r.vc(4,rt,3,3,"ion-label",13),r.Ob(),r.Ob()}if(2&t){const t=r.bc(2);r.Bb(3),r.gc("ngIf",t.loginData),r.Bb(1),r.gc("ngIf",!t.loginData)}}function it(t,e){if(1&t&&(r.Pb(0,"ion-menu",4),r.Pb(1,"ion-header"),r.Pb(2,"ion-toolbar"),r.Nb(3,"ion-title"),r.Ob(),r.Ob(),r.Pb(4,"ion-content",5),r.vc(5,Z,5,0,"div",6),r.Pb(6,"ion-list"),r.vc(7,J,5,4,"div",7),r.vc(8,et,5,6,"ion-item",8),r.vc(9,ot,5,2,"div",9),r.Ob(),r.Ob(),r.Ob()),2&t){const t=r.bc();r.gc("side",t.menu_side),r.Bb(5),r.gc("ngIf",!(null!=t.pages&&t.pages.length)),r.Bb(2),r.gc("ngIf",t.loginData),r.Bb(1),r.gc("ngForOf",t.pages),r.Bb(1),r.gc("ngIf",t.showLogin)}}let st=(()=>{class t{constructor(t,e,n,r,o,i,s,a,c,l,u,d,h,p,f,g,b,m,v,y,_,w,O,S,E,C,j,x,P,I,T,k,A,D,R,M,N,$){this.router=t,this.platform=e,this.myapppsettings=n,this.menuCtrl=r,this.appads=o,this.appgeo=i,this.loginService=s,this.rolesService=a,this.languageService=c,this.sanitizer=l,this.pushService=u,this.appwoo=d,this.appdataService=h,this.toastCtrl=p,this.storage=f,this.modalController=g,this.popoverController=b,this.translate=m,this.keyboard=v,this.splashScreen=y,this.StatusBar=_,this.network=w,this.Device=O,this.Push=S,this.Dialogs=E,this.zone=C,this.config=j,this.menuservice=x,this.analyticsservice=P,this.download=I,this.iab=T,this.iap=k,this.errorlogs=A,this.remoteData=D,this.sendParams=R,this.navCtrl=M,this.streamingMediaPlayer=N,this.wplogin=$,this.navparams=[],this.showmenu=!1,this.bothMenus=!1,this.myLoginModal_open=!1,this.showLogin=!0,this.menu_side="start",this.rtl=!1,this.iphoneX=!1,this.stopTabReset=!1,this.menu_all_pages=!1,this.app_recently_started=!0,this.purchases=[],this.subscriptions=[],this.bodyTag=document.getElementsByTagName("body")[0]}ngOnInit(){this._initializeApp()}_initializeSubscriptions(){return Object(l.a)(this,void 0,void 0,(function*(){this.subscriptions.push(this.network.onDisconnect().subscribe(()=>{this.presentToast("You appear to be offline, app functionality may be limited.")})),this.subscriptions.push(this.loginService.loginStatus().subscribe(t=>{!0===t?(this._handleLogin(),this.menuCtrl.close(),this.analyticsservice.trackEvent("user:login")):(this.userLogout(),this.loginData=null,this.menuCtrl.close(),this.analyticsservice.trackEvent("user:logout")),this._addLoggedinClassToBodyTag(t)})),this.subscriptions.push(this.streamingMediaPlayer.maybeShowPlayer().subscribe(t=>{t?this.showAudioPlayer(t):this.closeAudioPlayer()})),this.subscriptions.push(this.streamingMediaPlayer.expandCollapseEvent().subscribe(t=>{console.log("audio player expand collapse event",t),t?this.bodyTag.classList.add("audio-player-minimized"):this.bodyTag.classList.remove("audio-player-minimized")}))}))}ngOnDestroy(){this.subscriptions.forEach(t=>{t.unsubscribe()})}_checkForcedLogin(t=null){return Object(l.a)(this,void 0,void 0,(function*(){const e=yield this.loginService.getLoginData();return t||(t=yield this.appdataService.getAppdata()),!e&&"on"===t.side_menu_force_login}))}_getHomePage(t){let e;if(t.menus.tab_menu.items)e=t.menus.tab_menu.items[0];else if(t.menus.side_menu.items){let n=0;for(;t.menus.side_menu.items[n].extra_classes.indexOf("submenu-parent")>=0||t.menus.side_menu.items[n].extra_classes.indexOf("divider")>=0||"Intro"===t.menus.side_menu.items[n].title;)n++;e=t.menus.side_menu.items[n]}return e}_addLoggedinClassToBodyTag(t){t?this.bodyTag.classList.add("loggedin"):this.bodyTag.classList.remove("loggedin")}_initializeApp(){this.platform.ready().then(()=>{this.keyboard.hideFormAccessoryBar(!1),this._initializeSubscriptions(),this._fetchData(),this._maybeDoPush(),this._startAnalytics()})}_startAnalytics(){const{analytics:t}=o.a;t&&this.analyticsservice.beginTracking(t.tracking_id,t.basename)}_fetchData(){this.appdataService.fetchAppData().then(t=>{console.log("fetch data",t),this._loadCustomStyles(t),this.languageService.initTranslate(t),this._setHomePage(t),this.errorlogs.init(t),this._checkLoginOnLoad().then(e=>{this._loadMenus(t)}),this._doStatusBar(t),this.storage.get("purchased_ad_removal").then(e=>{e||this._maybeDoAds(t)}),"on"===t.show_registration_link?this.storage.set("api_register_setting",{registration:!0,url:t.registration_url}):this.storage.remove("api_register_setting"),t.side_menu_login||(this.showLogin=!1),this._getPurchases(),this._checkForcedLogin().then(t=>{t&&this.openLoginModal(!0)}),this.splashScreen.hide()}).catch(t=>console.error("fetch data error",JSON.stringify(t)))}_setHomePage(t){let e=this._getHomePage(t);this.appdataService.navigateToPageAsRoot(e).then(()=>this._handleIntroPage(t))}_handleIntroPage(t){return Object(l.a)(this,void 0,void 0,(function*(){const e=yield this._getIntroPage(t);e&&this.appdataService.navigateForwardToPage(e)}
1))}_loadMenus(t){t.menus.menu_right&&(this.menu_side="end"),t.menus.side_menu.items&&this._getValidMenuItems(t.menus.side_menu.items).then(t=>{this.pages=t})}_getValidMenuItems(t){return Object(l.a)(this,void 0,void 0,(function*(){let e=[],n=!!this.loginData;return t&&t.length&&t.forEach(t=>{t.extra_classes&&t.extra_classes.indexOf("hide")>=0||"html"===t.page_type&&!1===this.routeExists(t.slug)||"appcommerce"===t.page_type&&!1===this.routeExists(t.slug)||e.push(t)}),yield this.setMenuItemVisibility(n,e)}))}routeExists(t){for(var e=0;e<this.router.config.length;e++)if("custom-"+t===this.router.config[e].path)return!0;return!1}_getIntroPage(t){return Object(l.a)(this,void 0,void 0,(function*(){if(t.meta.intro_page&&!(yield this.storage.get("app-intro-shown"))){const e=this.menuservice.getMenuItemById(t.meta.intro_page.page_id,t.menus);if(e)return this.storage.set("app-intro-shown",!0),e}}))}menuClick(t,e){return Object(l.a)(this,void 0,void 0,(function*(){if(this._menuIsDivider(t))return;if(this._hasSubMenus(t))return void this._toogleSubMenus(e);this.menuCtrl.close();const n=yield this.loginService.getLoginData();this._checkForcedLogin().then(t=>{t&&this.openLoginModal(!0)}),this._shouldOpenLoginModal(t,n)?this.openLoginModal():this._shouldOpenInAppBrowser(t)?this._openInAppBrowser(t):this._shouldPushPage(t)?this.appdataService.navigateForwardToPage(t):this.appdataService.navigateToPageAsRoot(t)}))}_menuIsDivider(t){return!!(t.extra_classes&&t.extra_classes.indexOf("divider")>=0)}_hasSubMenus(t){return!!(t.extra_classes&&t.extra_classes.indexOf("submenu-parent")>=0)}_toogleSubMenus(t){let e;if(t.target.classList&&t.target.classList.contains("submenu-parent")?e=t.target:t.target.classList&&(e=t.target.closest(".submenu-parent")),e.classList&&e.classList.contains("submenu-parent")){e.classList.contains("open-menu")?e.classList.remove("open-menu"):e.classList.add("open-menu");let t=e.nextSibling;for(;t&&t.classList&&t.classList.contains("submenu-child");)t.classList.contains("open")?t.classList.remove("open"):t.classList.add("open"),t=t.nextSibling}}_shouldOpenLoginModal(t,e){if(t.extra_classes&&t.extra_classes.indexOf("yieldlogin")>=0){if(!e)return!0}else if(t.extra_classes&&(t.extra_classes.indexOf("loginmodal")>=0||t.extra_classes.indexOf("logoutmodal")>=0))return!0;return!1}_shouldOpenInAppBrowser(t){return"_blank"===t.target}_openInAppBrowser(t){t.extra_classes&&t.extra_classes.indexOf("system")>=0?this.iab.create(t.url,"_system"):this.iab.create(t.url,"_blank")}_shouldPushPage(t){return!!(t.extra_classes&&t.extra_classes.indexOf("push-page")>=0)}_loadCustomStyles(t){t.meta.design.app_design&&this.bodyTag.classList.add(t.meta.design.app_design),t.meta.design.fonts&&t.meta.design.fonts.body&&this.bodyTag.classList.add("body-font-"+t.meta.design.fonts.body),t.meta.design.fonts&&t.meta.design.fonts.headings&&this.bodyTag.classList.add("headings-font-"+t.meta.design.fonts.headings);let e="<style>";t.meta.design.fonts&&t.meta.design.fonts.custom_font&&(e+="@import url('"+t.meta.design.fonts.custom_font+"');"),t.meta.design.button_background&&(e+=":root { --appp-button-background-color: "+t.meta.design.button_background+"; }"),t.meta.design.button_text&&(e+=":root { --appp-button-text-color: "+t.meta.design.button_text+"; }"),e+=t.meta.design.toolbar_background?":root { --appp-toolbar-background-color: "+t.meta.design.toolbar_background+"; }":"",e+=":root { --appp-toolbar-text-color: "+t.meta.design.toolbar_color+"; }",e+=":root { --appp-menu-background-color: "+t.meta.design.left_menu_bg+"; }",e+=":root { --appp-menu-text-color: "+t.meta.design.left_menu_text+"; }",e+=":root { --appp-menu-icon-color: "+t.meta.design.left_menu_icons+"; }",e+=t.meta.design.body_bg?":root { --appp-content-background-color: "+t.meta.design.body_bg+"; }":"",e+=":root { --appp-content-text-color: "+t.meta.design.text_color+"; }",e+=":root { --appp-link-color: "+t.meta.design.link_color+"; }",e+=":root { --appp-heading-color: "+t.meta.design.headings_color+"; }",t.meta.design.custom_css&&(e+=t.meta.design.custom_css),e+="</style>",this.styles=this.sanitizer.bypassSecurityTrustHtml(e)}_doStatusBar(t){this.StatusBar&&(1==t.meta.light_status_bar?this.StatusBar.styleLightContent():this.StatusBar.styleDefault(),this.platform.is("android")&&t.meta.design&&t.meta.design.status_bar_bkg&&this.StatusBar.backgroundColorByHexString(t.meta.design.status_bar_bkg))}_checkLoginOnLoad(){return Object(l.a)(this,void 0,void 0,(function*(){const t=yield this.loginService.getLoginData();if(t)try{(yield this.wplogin.validateToken(t))?(this.loginData=t,this.maybeSendPushId(),this._addLoggedinClassToBodyTag(!0)):(this.loginService.removeLoginStatus(),this._addLoggedinClassToBodyTag(!1))}catch(e){console.log(e),this.loginService.removeLoginStatus(),this._addLoggedinClassToBodyTag(!1)}else this._addLoggedinClassToBodyTag(!1);return t}))}_handleLogin(){return Object(l.a)(this,void 0,void 0,(function*(){this.loginData=this.loginService.loginData,console.log("loginData",this.loginData),this.maybeSendPushId(),this.pages&&(this.pages=yield this.setMenuItemVisibility(!0,this.pages)),this.appdataService.maybeLogInOutRedirect(this.loginData)}))}userLogout(){return Object(l.a)(this,void 0,void 0,(function*(){console.log("loginData",this.loginData),this.loginData=null,this.pages&&(this.pages=yield this.setMenuItemVisibility(!1,this.pages)),this.translate.get("Logout successful").subscribe(t=>{this.presentToast(t)}),this._checkForcedLogin().then(t=>{t&&this.openLoginModal(!0)})}))}setMenuItemVisibility(t,e){return Object(l.a)(this,void 0,void 0,(function*(){let n=[];for(let r of e){if(!0===t&&r.extra_classes.indexOf("loggedin")>=0?r.show=!0:!1===t&&r.extra_classes.indexOf("loggedin")>=0?r.show=!1:!0===t&&r.extra_classes.indexOf("loggedout")>=0?r.show=!1:!1===t&&r.extra_classes.indexOf("loggedout")>=0&&(r.show=!0),r.extra_classes&&r.extra_classes.indexOf("role-")>=0){let t=yield this.rolesService.test_user_role(r.extra_classes);r.show=!!t}n.push(r)}return n}))}maybeSendPushId(t){return Object(l.a)(this,void 0,void 0,(function*(){if(this.errorlogs.addLog("Trying to send push id.","push"),!t){const e=yield this.appdataService.getAppdata();t=e.wordpress_url+"wp-admin/admin-ajax.php",console.log(t)}if(!t)return console.log("Not able to send endpointArn, missing ajaxurl"),void this.errorlogs.addLog("Missing ajax url. "+t,"push");this.storage.get("endpointArn").then(e=>{e?this.pushService.sendDeviceToWp(e,t).then(t=>{console.log(t),this.errorlogs.addLog("Subscribe to WP result: "+JSON.stringify(t),"push")}):this.errorlogs.addLog("No endpointArn saved, cant send to WP.","push")})}))}openLoginModal(t=!1){return Object(l.a)(this,void 0,void 0,(function*(){try{let e=this.translate.instant("Login"),n={component:D.a,swipeToClose:!0,backdropDismiss:!0,componentProps:{modalTitle:e}};t&&(n={component:D.a,swipeToClose:!1,backdropDismiss:!1,componentProps:{modalTitle:e}});const r=yield this.modalController.create(n);r.present();const{data:o}=yield r.onWillDismiss();if("logged_in"===o.closed||"logged_out"===o.closed){yield this.appdataService.navigateToRouteAsRoot("/");const t=yield this.appdataService.getAppdata();this._setHomePage(t)}}catch(e){console.error(e)}}))}_maybeDoAds(t){this.Device.platform&&t.config.admob&&("ios"===this.Device.platform.toLowerCase()&&""!=t.config.admob.
1ios_banner&&this.appads.createBanner(t.config.admob.ios_banner),"android"===this.Device.platform.toLowerCase()&&""!=t.config.admob.android_banner&&this.appads.createBanner(t.config.admob.android_banner))}_maybeDoPush(){return Object(l.a)(this,void 0,void 0,(function*(){let t=null;try{t=this.Push.init({android:{},ios:{alert:"true",badge:!0,clearBadge:!0,sound:"true"},windows:{}})}catch(e){return alert("Error "+JSON.stringify(e)),void console.log(e)}t.error||(t.on("registration").subscribe(t=>this._onPushRegistration(t)),t.on("notification").subscribe(t=>{let e="notification received: "+JSON.stringify(t);this.errorlogs.addLog(e,"push"),setTimeout(()=>{this._redirectPage(t)},1e3)}),t.on("error").subscribe(t=>{this.presentToast("Push on error: "+t.message),this.errorlogs.addLog("notification error: "+t.message,"push"),console.log(t.message)}))}))}_onPushRegistration(t){return Object(l.a)(this,void 0,void 0,(function*(){if(this.storage.set("deviceToken",t.registrationId),!t.registrationId)return void this.errorlogs.addLog(`Cant subscribe to push, no registrationId: ${this.Device.uuid}, deviceToken: ${t.registrationId}`,"push");if(this.regId=t.registrationId,yield this.storage.get("endpointArn")){const t=yield this.appdataService.getAppdata(),e=yield this.storage.get("version_when_last_subscribed");if(t.meta.app_update_version&&t.meta.app_update_version===e)return}const e=yield this.pushService.subscribeDevice(this.regId);try{var n=JSON.parse(e);this.storage.set("endpointArn",n.endpointArn);const t=yield this.appdataService.getAppdata();t.meta.app_update_version&&this.storage.set("version_when_last_subscribed",t.meta.app_update_version),this.remoteData.createRemoteData(o.a.apiUrl+"/wp-json/ap3/v1/remote/data/push/",{uuid:this.Device.uuid,endpointArn:n.endpointArn},{type:"push",isLog:!0})}catch(r){this.errorlogs.addLog("Error subscribing device. "+JSON.stringify(r),"push"),console.warn(r)}}))}_redirectPage(t){let e=t.additionalData&&t.additionalData.url&&0==t.additionalData.url.indexOf("http")&&t.additionalData.target&&"_self"==t.additionalData.target,n=t.additionalData&&t.additionalData.url&&0==t.additionalData.url.indexOf("http"),r=t.additionalData&&t.additionalData.page;(e||n||r)&&(this.stopTabReset=!0),this.Dialogs.alert(t.message,t.title,this.translate.instant("Continue")).then(()=>{if(this.stopTabReset=!1,e)this.appdataService.navigateForwardToPage({title:t.title,url:t.additionalData.url,page_id:null,page_type:null,list_route:null,slug:"wp-link",type:"custom",content:null});else{if(n)return this.errorlogs.addLog("custom url "+t.additionalData.url,"push"),void this._openInAppBrowser({url:t.additionalData.url,target:"_blank"});if(r){let e=t.additionalData.page;if("_blank"===e.target)return this.errorlogs.addLog("page url "+e.url,"push"),void this._openInAppBrowser(e);this.errorlogs.addLog("page slug "+t.additionalData.page,"push"),this.appdataService.navigateForwardToPage(t.additionalData.page)}t.additionalData.url&&!n&&this.appdataService.navigateForwardToPage(t.additionalData.url)}}).catch(t=>{console.warn(t)})}presentPopover(t){return Object(l.a)(this,void 0,void 0,(function*(){let e="audio-player-wrapper";const n=yield this.appdataService.getAppdata();return(n.menus.tab_menu&&n.menus.tab_menu.items||n.config.admob&&n.config.admob.ios_banner||n.config.admob&&n.config.admob.android_banner)&&(e="audio-player-wrapper move-up"),this.audioPlayer&&this.audioPlayer.dismiss(),this.audioPlayer=yield this.popoverController.create({component:K,showBackdrop:!1,cssClass:e,backdropDismiss:!1,componentProps:t}),yield this.audioPlayer.present()}))}_getPurchases(){return Object(l.a)(this,void 0,void 0,(function*(){if(!this.platform.is("cordova"))return;let t=yield this.iap.registerSubscriptions();console.log("get purchases",t),setTimeout(()=>{this.checkSubscriptions()},3e3)}))}checkSubscriptions(){var t;return Object(l.a)(this,void 0,void 0,(function*(){let e;if((null===(t=this.appdataService.appData.config)||void 0===t?void 0:t.iap_settings)&&(console.log("check purchases",this.appdataService.appData.config),e=this.platform.is("ios")?this.appdataService.appData.config.iap_settings.ids_ios:this.appdataService.appData.config.iap_settings.ids_android,e))for(let t of e){let e=yield this.iap.getProduct(t);e&&(console.log("got product",e),yield this.iap.addSubscriptionToStorage(e),!0!==e.isExpired&&!1!==e.owned||this.purchaseExpired(e.id))}}))}purchaseExpired(t){return Object(l.a)(this,void 0,void 0,(function*(){console.log(t+" has expired")}))}showAudioPlayer(t){this.audioPlayer&&this.audioPlayer.dismiss(),this.presentPopover(t)}closeAudioPlayer(){this.audioPlayer&&this.audioPlayer.dismiss()}presentToast(t){this.translate.get(t).subscribe(t=>{this.showToast(t)})}showToast(t){return Object(l.a)(this,void 0,void 0,(function*(){let e=yield this.toastCtrl.create({message:t,duration:3e3,position:"bottom"});yield e.present()}
1))}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(a.h),r.Mb(c.rb),r.Mb(N.a),r.Mb(c.nb),r.Mb(u.a),r.Mb(p.a),r.Mb(P.a),r.Mb($.a),r.Mb(I.a),r.Mb(s.b),r.Mb(d.a),r.Mb(h.a),r.Mb(V.a),r.Mb(c.wb),r.Mb(Y.b),r.Mb(c.ob),r.Mb(c.sb),r.Mb(T.e),r.Mb(x.a),r.Mb(O),r.Mb(y),r.Mb(j.a),r.Mb(_.a),r.Mb(S),r.Mb(C.a),r.Mb(r.z),r.Mb(c.d),r.Mb(k),r.Mb(g.a),r.Mb(f.a),r.Mb(w.a),r.Mb(A.a),r.Mb(R.a),r.Mb(M.a),r.Mb(L.a),r.Mb(c.pb),r.Mb(b.a),r.Mb(m.a))},t.\u0275cmp=r.Gb({type:t,selectors:[["app-root"]],decls:5,vars:2,consts:[[3,"innerHTML"],["contentId","main-content"],["contentId","main-content","type","overlay",3,"side",4,"ngIf"],["id","main-content"],["contentId","main-content","type","overlay",3,"side"],["id","side-menu"],["class","skeleton-item",4,"ngIf"],["class","login-info",4,"ngIf"],[3,"ngClass","hidden","click",4,"ngFor","ngForOf"],["class","ion-padding",4,"ngIf"],[1,"skeleton-item"],["animated","",2,"height","24px","margin","10px","width","auto"],[1,"login-info"],[4,"ngIf"],[1,"ion-text-wrap"],[3,"src"],[3,"ngClass","hidden","click"],["slot","start",3,"name",4,"ngIf"],["slot","start",3,"name"],[1,"ion-padding"],["expand","block",1,"menu-login-button",3,"click"],["slot","start","name","log-in"]],template:function(t,e){1&t&&(r.Pb(0,"ion-app"),r.Nb(1,"div",0),r.Pb(2,"ion-split-pane",1),r.vc(3,it,10,5,"ion-menu",2),r.Nb(4,"ion-router-outlet",3),r.Ob(),r.Ob()),2&t&&(r.Bb(1),r.gc("innerHTML",e.styles,r.pc),r.Bb(2),r.gc("ngIf",e.pages))},directives:[c.e,c.bb,F.k,c.Q,c.I,c.w,c.jb,c.hb,c.r,c.H,F.j,c.X,c.f,c.y,c.C,F.i,c.G,c.x,c.j],pipes:[T.d],encapsulation:2}),t})();var at=n("JH8L"),ct=n("DXD9");let lt=[{path:"",loadChildren:()=>n.e(47).then(n.bind(null,"JCp7")).then(t=>t.TabsPageModule)}];lt=[...lt,...at.a,...ct.a];let ut=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[a.j.forRoot(lt,{preloadingStrategy:a.f})],a.j]}),t})();var dt=n("tk/3");class ht{constructor(t,e="/assets/i18n/",n=".json"){this.http=t,this.prefix=e,this.suffix=n}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}}var pt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ANDROID_THEMES={THEME_TRADITIONAL:1,THEME_HOLO_DARK:2,THEME_HOLO_LIGHT:3,THEME_DEVICE_DEFAULT_DARK:4,THEME_DEVICE_DEFAULT_LIGHT:5},e}Object(l.c)(e,t),e.prototype.show=function(t){return Object(v.cordova)(this,"show",{},arguments)},e.prototype.hide=function(t){return Object(v.cordova)(this,"hide",{},arguments)},e.pluginName="ActionSheet",e.plugin="cordova-plugin-actionsheet",e.pluginRef="plugins.actionsheet",e.repo="https://github.com/EddyVerbruggen/cordova-plugin-actionsheet",e.platforms=["Android","Browser","iOS","Windows","Windows Phone 8"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Rb(e);return e}(v.IonicNativePlugin),ft=n("a/9d"),gt=n("FAH8"),bt=n("ZL19"),mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.EVENTS={EVENT_NAME_ACTIVATED_APP:"fb_mobile_activate_app",EVENT_NAME_DEACTIVATED_APP:"fb_mobile_deactivate_app",EVENT_NAME_SESSION_INTERRUPTIONS:"fb_mobile_app_interruptions",EVENT_NAME_TIME_BETWEEN_SESSIONS:"fb_mobile_time_between_sessions",EVENT_NAME_COMPLETED_REGISTRATION:"fb_mobile_complete_registration",EVENT_NAME_VIEWED_CONTENT:"fb_mobile_content_view",EVENT_NAME_SEARCHED:"fb_mobile_search",EVENT_NAME_RATED:"fb_mobile_rate",EVENT_NAME_COMPLETED_TUTORIAL:"fb_mobile_tutorial_completion",EVENT_NAME_PUSH_TOKEN_OBTAINED:"fb_mobile_obtain_push_token",EVENT_NAME_ADDED_TO_CART:"fb_mobile_add_to_cart",EVENT_NAME_ADDED_TO_WISHLIST:"fb_mobile_add_to_wishlist",EVENT_NAME_INITIATED_CHECKOUT:"fb_mobile_initiated_checkout",EVENT_NAME_ADDED_PAYMENT_INFO:"fb_mobile_add_payment_info",EVENT_NAME_PURCHASED:"fb_mobile_purchase",EVENT_NAME_ACHIEVED_LEVEL:"fb_mobile_level_achieved",EVENT_NAME_UNLOCKED_ACHIEVEMENT:"fb_mobile_achievement_unlocked",EVENT_NAME_SPENT_CREDITS:"fb_mobile_spent_credits",EVENT_PARAM_CURRENCY:"fb_currency",EVENT_PARAM_REGISTRATION_METHOD:"fb_registration_method",EVENT_PARAM_CONTENT_TYPE:"fb_content_type",EVENT_PARAM_CONTENT_ID:"fb_content_id",EVENT_PARAM_SEARCH_STRING:"fb_search_string",EVENT_PARAM_SUCCESS:"fb_success",EVENT_PARAM_MAX_RATING_VALUE:"fb_max_rating_value",EVENT_PARAM_PAYMENT_INFO_AVAILABLE:"fb_payment_info_available",EVENT_PARAM_NUM_ITEMS:"fb_num_items",EVENT_PARAM_LEVEL:"fb_level",EVENT_PARAM_DESCRIPTION:"fb_description",EVENT_PARAM_SOURCE_APPLICATION:"fb_mobile_launch_source",EVENT_PARAM_VALUE_YES:"1",EVENT_PARAM_VALUE_NO:"0"},e}Object(l.c)(e,t),e.prototype.login=function(t){return Object(v.cordova)(this,"login",{},arguments)},e.prototype.logout=function(){return Object(v.cordova)(this,"logout",{},arguments)},e.prototype.getLoginStatus=function(){return Object(v.cordova)(this,"getLoginStatus",{},arguments)},e.prototype.getAccessToken=function(){return Object(v.cordova)(this,"getAccessToken",{},arguments)},e.prototype.showDialog=function(t){return Object(v.cordova)(this,"showDialog",{},arguments)},e.prototype.api=function(t,e){return Object(v.cordova)(this,"api",{},arguments)},e.prototype.logEvent=function(t,e,n){return Object(v.cordova)(this,"logEvent",{successIndex:3,errorIndex:4},arguments)},e.prototype.logPurchase=function(t,e){return Object(v.cordova)(this,"logPurchase",{},arguments)},e.prototype.getDeferredApplink=function(){return Object(v.cordova)(this,"getDeferredApplink",{},arguments)},e.prototype.activateApp=function(){return Object(v.cordova)(this,"activateApp",{},arguments)},e.pluginName="Facebook",e.plugin="cordova-plugin-facebook4",e.pluginRef="facebookConnectPlugin",e.repo="https://github.com/jeduan/cordova-plugin-facebook4",e.install='ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"',e.installVariables=["APP_ID","APP_NAME"],e.platforms=["Android","iOS","Browser"],e.\u0275fac=function(t){return n(t||e)},e.\u0275prov=r.Ib({token:e,factory:function(t){return e.\u0275fac(t)}});var n=r.Rb(e);return e}(v.IonicNativePlugin),vt=n("/XPu"),yt=n("Bfh1"),_t=n("7DPu"),wt=n("XSEc"),Ot=n("te5A"),St=n("RU0F"),Et=n("9YJ4"),Ct=n("eHpL"),jt=n("/sJY"),xt=n("3EM6"),Pt=n("up+p"),It=n("vf9s"),Tt=n("qs5o");let kt=(()=>{class t{constructor(t){this.platform=t}killVideos(t){this.platform.pause.subscribe(()=>{let e,n=t.nativeElement.getElementsByTagName("iframe");for(let t in n)/youtube|wistia|vimeo/.test(n[t].src)&&(e=n[t].src,n[t].src="",setTimeout((function(){n[t].src=e}),500))})}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(c.rb))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var At=n("B4Mn");let Dt=(()=>{class t{constructor(t,e){this.network=t,this.platform=e,this.connectionObs=new At.a,this.currentStatus=null,window.location&&window.location.href&&window.location.href.indexOf("localhost")>=0||(this.platform.is("ios")||this.platform.is("android"))&&this.initNetworkWatch()}networkStatus(){return this.connectionObs}initNetworkWatch(t){t=t||3e3,this.network&&("none"===this.network.type?(this.connectionObs.next(!1),this.currentStatus=!1):(this.connectionObs.next(!0),this.currentStatus=!0),this.network.onChange().subscribe(()=>{console.log("networkstatusservice: network type",this.network.type);let e=this.network.type;setTimeout(()=>{"none"==this.network.type&&this.network.type==e?(this.connectionObs.next(!1),this.currentStatus=!1):"none"!=this.network.type&&this.network.type==e&&(this.connectionObs.next(!0),this.currentStatus=!0)},t)},t=>{console.warn(t)}))}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(j.a),r.Tb(c.rb))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var Rt=n("wQXg"),Mt=n("61py"),Nt=n("6dXU"),$t=n("WYOK");let Lt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[F.b,c.kb,U.e]]}),t})();var Vt=n("EbaP"),Ft=n("S1+K"),Ut=n("xaHH"),Bt=n("SltN"),zt=n("NXyV"),Ht=n("z6cu"),Gt=n("xgIS"),qt=n("LRne"),Wt=n("GyhO"),Xt=n("XNiG"),Kt=n("HDdC"),Yt=n("KqfI");const Zt=new Kt.a(Yt.a);var Qt=n("VRyK"),Jt=n("lJxs"),te=n("pLZG"),ee=n("eIep"),ne=n("oB13"),re=n("IzEk"),oe=n("vkgz"),ie=n("3E0/");const se="Service workers are disabled or not supported by this browser";class ae{constructor(t){if(this.serviceWorker=t,t){const e=Object(Gt.a)(t,"controllerchange").pipe(Object(Jt.a)(()=>t.controller)),n=Object(zt.a)(()=>Object(qt.a)(t.controller)),r=Object(Wt.a)(n,e);this.worker=r.pipe(Object(te.a)(t=>!!t)),this.registration=this.worker.pipe(Object(ee.a)(()=>t.getRegistration()));const o=Object(Gt.a)(t,"message").pipe(Object(Jt.a)(t=>t.data)).pipe(Object(te.a)(t=>t&&t.type)).pipe(Object(ne.a)(new Xt.a));o.connect(),this.events=o}else this.worker=this.events=this.registration=Object(zt.a)(()=>Object(Ht.a)(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(Object(re.a)(1),Object(oe.a)(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const r=this.waitForStatus(n),o=this.postMessage(t,e);return Promise.all([r,o]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Object(te.a)(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(Object(re.a)(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Object(te.a)(e=>e.nonce===t),Object(re.a)(1),Object(Jt.a)(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let ce=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new Xt.a,!t.isEnabled)return this.messages=Zt,this.notificationClicks=Zt,void(this.subscription=Zt);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(Jt.a)(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(Jt.a)(t=>t.data)),this.pushManager=this.sw.registration.pipe(Object(Jt.a)(t=>t.pushManager));const e=this.pushManager.pipe(Object(ee.a)(t=>t.getSubscription()));this.subscription=Object(Qt.a)(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(se));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new
1Uint8Array(new ArrayBuffer(n.length));for(let o=0;o<n.length;o++)r[o]=n.charCodeAt(o);return e.applicationServerKey=r,this.pushManager.pipe(Object(ee.a)(t=>t.subscribe(e)),Object(re.a)(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(Object(re.a)(1),Object(ee.a)(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(se))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(ae))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),le=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=Zt,void(this.activated=Zt);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(se));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(se));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(r.Tb(ae))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})();class ue{}const de=new r.q("NGSW_REGISTER_SCRIPT");function he(t,e,n,o){return()=>{if(!(Object(F.s)(o)&&"serviceWorker"in navigator&&!1!==n.enabled))return;let i;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)i=n.registrationStrategy();else{const[e,...o]=(n.registrationStrategy||"registerWhenStable").split(":");switch(e){case"registerImmediately":i=Object(qt.a)(null);break;case"registerWithDelay":i=Object(qt.a)(null).pipe(Object(ie.a)(+o[0]||0));break;case"registerWhenStable":i=t.get(r.g).isStable.pipe(Object(te.a)(t=>t));break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${n.registrationStrategy}`)}}i.pipe(Object(re.a)(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t)))}}function pe(t,e){return new ae(Object(F.s)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let fe=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:de,useValue:e},{provide:ue,useValue:n},{provide:ae,useFactory:pe,deps:[ue,r.B]},{provide:r.d,useFactory:he,deps:[r.r,de,ue,r.B],multi:!0}]}}}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[ce,le]}),t})();function ge(t){return new ht(t,"assets/i18n/",".json")}class be{handle(t){return t.key}}let me=(()=>{class t{}return t.\u0275mod=r.Kb({type:t,bootstrap:[st]}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[{provide:a.g,useClass:c.lb},{provide:T.a,useClass:be},N.a,It.a,g.a,u.a,d.a,h.a,p.a,P.a,I.a,R.a,M.a,Mt.a,St.a,Et.a,b.a,$.a,m.a,Tt.a,pt,ft.a,_.a,gt.a,bt.a,mt,w.a,x.a,O,y,j.a,vt.a,S,C.a,yt.a,kt,A.a,_t.a,wt.a,f.a,k,Dt,$t.a,Ot.a,Ct.a,jt.a,xt.b,Pt.a],imports:[[s.a,c.kb.forRoot(),Y.a.forRoot(),ut,dt.b,Lt,Vt.a,Ft.a,Ut.a,Bt.a,Rt.b.forRoot(),T.c.forRoot({loader:{provide:T.b,useFactory:ge,deps:[dt.a]}}),Nt.LoginModalPageModule,fe.register("ngsw-worker.js",{enabled:o.b.production})]]}),t})();o.a.production&&Object(r.S)(),s.c().bootstrapModule(me).catch(t=>console.log(t)),window,Object(i.b)().then(()=>{Object(i.c)([["pwa-action-sheet",[[1,"pwa-action-sheet",{header:[1],cancelable:[4],options:[16],open:[32]}]]],["pwa-camera-modal-instance",[[1,"pwa-camera-modal-instance",null,[[32,"keyup","handleBackdropKeyUp"]]]]],["pwa-camera-modal",[[1,"pwa-camera-modal",{present:[64],dismiss:[64]}]]],["pwa-toast",[[1,"pwa-toast",{message:[1],duration:[2],closing:[32]}]]],["pwa-camera",[[1,"pwa-camera",{facingMode:[1,"facing-mode"],onPhoto:[16],photo:[32],photoSrc:[32],showShutterOverlay:[32],flashIndex:[32]}]]]],void 0)})},zx2A:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n("7o/Q"),o=n("HDdC"),i=n("SeVD");class s extends r.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(!e.closed)return t instanceof o.a?t.subscribe(e):Object(i.a)(t)(e)}}},[[0,2]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.