404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.116.21.127: ~ $
/*! For license information please see main-es2015.bcae6e4bf509ab06a11e.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"++lw":function(e,t,n){"use strict";n("sSFc");var r=n("GAbP"),i=(n("t8sF"),n("MF7w")),s=n("sZkV");class o{constructor(e){this.archiveMgr=e,this.wordsMgr=this.archiveMgr.injector.get(i.a),this.platform=this.archiveMgr.injector.get(s.Jb),this.platform.is("cordova")&&this.initSuggestions()}initSuggestions(){this.fileName="sggstns.by",this.filePath=this.archiveMgr.file.applicationDirectory+"www/assets/archive/suggestions/",this.isAlreadyInitialized().then(e=>{1==e||this.archiveMgr.file.checkFile(this.filePath,this.fileName).then(e=>{this.copyExtractImportSuggestions()}).catch(e=>{console.log("error of file existance",e)})})}isAlreadyInitialized(){return new Promise((e,t)=>{this.wordsMgr.hasEnoughWordsSuggestions().then(t=>{e(t)})})}copyExtractImportSuggestions(){let e="suggestions.sql",t=this;this.archiveMgr.file.copyFile(this.filePath,this.fileName,this.archiveMgr.file.cacheDirectory,this.fileName).then(n=>{t.archiveMgr.zip.unzip(t.archiveMgr.file.cacheDirectory+t.fileName,t.archiveMgr.file.applicationStorageDirectory+"suggestions").then(n=>{0===n&&(console.log("SUCCESS"),t.archiveMgr.file.checkFile(t.archiveMgr.file.applicationStorageDirectory+"suggestions/",e).then(n=>{t.archiveMgr.file.readAsText(t.archiveMgr.file.applicationStorageDirectory+"suggestions",e).then(e=>{t.archiveMgr.databaseMgr.importSQL(e)}).catch(n=>{console.log("err on reading file",t.archiveMgr.file.cacheDirectory,e)})}).catch(e=>{console.log(e)})),-1===n&&console.log("FAILED")})}).catch(e=>{console.log("error in copy",e)})}}class a{constructor(e){this.archiveMgr=e,this.platform=this.archiveMgr.injector.get(s.Jb)}initSuggestions(){this.fileName="sggstns.by",this.filePath=this.archiveMgr.file.applicationDirectory+"www/assets/archive/suggestions/"}import(e,t){let n=t.replace(".zip",".sql"),r=this;this.archiveMgr.file.checkFile(e,t).then(()=>{r.archiveMgr.zip.unzip(e+t,r.archiveMgr.file.cacheDirectory+"itemsData/").then(e=>{0===e&&(console.log("SUCCESS"),r.archiveMgr.file.checkFile(r.archiveMgr.file.cacheDirectory+"itemsData//",n).then(e=>{r.archiveMgr.file.readAsText(r.archiveMgr.file.cacheDirectory+"itemsData/",n).then(e=>{r.archiveMgr.databaseMgr.importSQL(e)}).catch(e=>{console.log("err on reading file",r.archiveMgr.file.cacheDirectory,n)})}).catch(e=>{console.log(e)})),-1===e&&console.log("FAILED")})}).catch(e=>{console.log("file not exists",e)})}}n.d(t,"a",(function(){return l}));class l{constructor(e,t,n,i){this.zip=e,this.file=t,this.http=n,this.injector=i,this.databaseMgr=i.get(r.a),this.unzipSuggestions=new o(this),this.unzipItemData=new a(this)}readAsText(e){return this.http.get(e)}}},"+her":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("p74H"),n("xNyf"),n("J20c"),n("EGUZ"),n("sk1z"),n("Zr1d"),n("neAe"),n("++lw"),n("0+M4");class r{constructor(e,t,n,r,i,s,o,a,l,c,u){this.navCtrl=e,this.events=t,this.messagesManager=n,this.chatsManager=r,this.statusBar=i,this.storageManager=s,this.adsManager=o,this.keyboard=a,this.archiveManager=l,this.route=c,this.router=u,this.scrolled=!1,this.lastPageReached=!1,this.loading=!1,this.allowDescription=!0,this.infiniteCompleted=!0,this.messageMenuOpened=!1,this.infiniteBottomCompleted=!0,this.segments="Study",this.messagesManager.messages=[],this.route.queryParams.subscribe(()=>{this.router.getCurrentNavigation().extras.state&&(this.chat=this.router.getCurrentNavigation().extras.state.chat,null!=this.chat&&(this.title=this.chat.title),this.chat.readAllMessages(),this.messages=[],this.members=[])}),this.statusBar.overlaysWebView(!1),this.keyboard.disableScroll(!1),this.registerEvents()}registerEvents(){this.events.subscribe("adLoaded",e=>{this.chat.messages.push(e.message)}),this.events.subscribe("scrollDown",()=>{this.scrollDown()}),this.events.subscribe("scrollToLastMarkedMessage",()=>{this.scrollToLastMarkedMessage()})}ionViewDidLoad(){this.chat.isLeitner()&&this.adsManager.showBannerAd()}ionViewDidLeave(){this.adsManager.isAdsNeeded()&&this.adsManager.showInterstitialAdAfterBack()}ionViewDidEnter(){}ngAfterContentInit(){}objectKeys(e){return Object.keys(e)}ngAfterViewInit(){console.log(" HELLO  chatComponent")}getClass(e){let t="";return 1==e.received&&(t+=" received "),1==e.showOptionMenu&&(t+=" zindex1 "),t+=" easeInAnimation",t}allowEaseIn(e){return e.isDictionaryMessage()&&e.possibleStatuses.pushedToServer&&!e.hasStatus(e.possibleStatuses.downloadedContent)}ngAfterViewChecked(){}ngAfterContentChecked(){}ngOnChanges(){this.read()}read(){this.chat.readAllMessages(),this.chatsManager.save(this.chat)}findStuffs(){return this.loading=!0,new Promise(e=>{console.log("add new messages"),e(!0)})}onPageScrolled(e){if(!e)return!1}onDidDismiss(){}onWillDismiss(){}closeModal(){}isViewLoaded(){return this.chat.isViewLoaded()}isType(e){return this.chat.type==e}openDay(e){this.chat.changeSegment(e),this.chat.getSortedMesages(e)}showDetails(){this.router.navigate(["chat/membersPage"],{state:{chat:this.chat}})}isCompletedInfinite(){return this.infiniteCompleted}isCompletedInfiniteBottom(){return this.infiniteBottomCompleted}doInfinite(e){const t=this;return!this.isCompletedInfinite()||this.chat.searching||this.scrollingForSavingPosition?new Promise(e=>{e(0)}):(this.infiniteCompleted=!1,new Promise(n=>{t.lastMarketMessageComponent=t.messageComp,this.chatsManager.loadMoreMessages(this.chat).then(()=>{e.complete(),this.infiniteCompleted=!0,n(!0)})}))}doInfiniteBottom(e){if(this.chat.isLeitner()&&e.enable(!1),this.chat.searching)return!1;this.chat.isDictionary()&&this.chatsManager.synchronizer.getNewMessages(this.chat)}getTitle(){return this.chat.title}isMessageMenuOpened(){return this.messageMenuOpened}showKeyboard(){this.keyboard.disableScroll(!1),this.keyboard.hideFormAccessoryBar(!1),this.keyboard.show()}ngOnDestroy(){this.chat.isLeitner()&&this.adsManager.removeBannerAd()}scrollTo(e){this.scrollingForSavingPosition=!0;const t=e.msgElement.nativeElement.getBoundingClientRect().top;this.content.scrollToPoint(0,t,4e3).then(()=>{this.scrollingForSavingPosition=!1})}scrollToLastMarkedMessage(){this.content&&this.scrollTo(this.lastMarketMessageComponent)}scrollDown(){this.content&&this.content.scrollToBottom()}}},"+mLH":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.points=100,this.frgpass=!0,null!=e&&(this.joinedChats=[],this.joined=!1,this.checked=!1,this.imageUrl="",null!=e.status&&(this.fbStatus=e.status),this.initUser(e))}initUser(e){this.isFacebookUser()?(this.fbAuthResponse=e.authResponse,this.userID=e.authResponse.userID,this.facebookID=e.authResponse.userID,this.accessToken=e.authResponse.accessToken):(this.name=e.name,this.lastname=e.lastname,this.role=e.role,this.phone=e.phone,this.credit=100,this.accessToken=e.accessToken,this.userID=e.userID,this.googleID=e.googleID,this.displayName=e.displayName,this.familyName=e.familyName,this.givenName=e.givenName,this.imageUrl=e.imageUrl,e.email&&(this.email=e.email.toLowerCase()),this.phone=e.phone,null!=e.points&&(this.points=e.points)),this.mainAccessToken=e.mainAccessToken}setMainAccessToken(e){this.mainAccessToken=e}isFacebookUser(){return"connected"==this.fbStatus}hasAccessToken(){return""!=this.mainAccessToken&&null!=this.mainAccessToken}hasImage(){return null!=this.imageUrl}getFirstChars(){return null!=this.name&&null!=this.lastname?this.name.slice(0,1)+this.lastname.slice(0,1):null!=this.email?this.email.slice(0,1):":)"}getMainAccessToken(){return this.mainAccessToken}getSimpleModel(){let e=Object.assign({},this);return new r(e)}setPassword(e){this.password=e}setLoginMethode(e){this.loginMethode=e}setTestData(e="google"){this.lastname="Muserman",this.role="user",this.phone="9843454353453",this.credit=100,this.accessToken="fsdfsdfsdf",this.userID="11470245734204",this.displayName="saeed zahedi",this.name="saeed",this.familyName="zahedi",this.givenName="saeed","google"==e?this.googleID="12312414":this.facebookID="35345345400",this.imageUrl="blablabla.jpg",this.fbStatus="connected",this.fbAuthResponse={accessToken:"342fjsef",expiresIn:"534534",session_key:!0,sig:"...",userID:"10211033569062277"},this.email="saeedzhd@gmail.com",this.phone="4915735219124",this.hashKey="blablabla"}}},"/HVE":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return u}));var r=n("8Y7J"),i=n("SVse");let s;try{s="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(f){s=!1}let o,a=(()=>{class e{constructor(e){this._platformId=e,this.isBrowser=this._platformId?Object(i.s)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!s)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return e.ngInjectableDef=Object(r.Qb)({factory:function(){return new e(Object(r.Rb)(r.z,8))},token:e,providedIn:"root"}),e})();class l{}function c(e){return function(){if(null==o&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>o=!0}))}finally{o=o||!1}return o}()?e:!!e.capture}const u=function(){var e={NORMAL:0,NEGATED:1,INVERTED:2};return e[e.NORMAL]="NORMAL",e[e.NEGATED]="NEGATED",e[e.INVERTED]="INVERTED",e}();let h;function d(){return!("object"!=typeof document||!("scrollBehavior"in document.documentElement.style))}function p(){if("object"!=typeof document||!document)return u.NORMAL;if(!h){const e=document.createElement("div"),t=e.style;e.dir="rtl",t.height="1px",t.width="1px",t.overflow="auto",t.visibility="hidden",t.pointerEvents="none",t.position="absolute";const n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",e.appendChild(n),document.body.appendChild(e),h=u.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,h=0===e.scrollLeft?u.NEGATED:u.INVERTED),e.parentNode.removeChild(e)}return h}},"/qZA":function(e,t,n){"use strict";var r=n("olg3");n("EGUZ");class i{constructor(e,t){this.canBeResolved=!1,this.id=Math.floor(100001*Math.random())+0,this.data=e,this.action=t}registerOwner(e){this.owner=e}registerMessage(e){this.message=e}setResolvable(e){this.canBeResolved=e}isResolvable(){return this.canBeResolved}}var s=n("sUqe"),o=(n("2IJ5"),n("sk1z"),n("2XxT"),n("gCtI"),n("AjPc"));class a{constructor(e){this.allow=!1,this._params=[],this.msg=e.msg,this._responseData=e;let t={};t=o.a.isJson(e.msg)?JSON.parse(e.msg):e.msg,console.log("this is jsonResponse",t);for(let n in t)this.setParam(n,t[n]);this.allow=this.getParam("allow")}getResponseData(){return this._responseData}setParam(e,t){this._params[e]=t}getParam(e){return this._params[e]}isAllowed(){return this.allow}}n("xoVG"),n("0+M4"),n.d(t,"a",(function(){return l}));let l=(()=>{class e{constructor(e,t,n,i,s,o,a,l,c){this.injector=e,this.storageManager=t,this.adsManager=n,this.network=i,this.platform=s,this.appStateManager=o,this.timeManager=a,this.consoleDialog=l,this.events=c,this.message="connecting...",this.triedConnectionTimes=10,this.adsTimePeriod=60,this.allowReconnect=!0,this.actionDownloadContent="downloadContent",this.addressServerTest="wss://server1.bayadic.com/ssw",this.addressServerOriginal="wss://server1.bayadic.com/wss",this.insecureSocketAddress="ws://server1.bayadic.com/wss",this.addressServerIP="ws://46.101.215.5:4321",this.c=0,this.timer_is_on=0,this.debug=!0,this.userManager=this.injector.get(r.a),this.debug?(this.webserverAddress=this.addressServerTest,this.insecureSocket=this.addressServerTest):(this.webserverAddress=this.addressServerOriginal,this.insecureSocket=this.insecureSocketAddress),this.queries=[],this.que=[],this.connected=!1,this.setNetwork(!0),this.registerEvents(),this.storageManager.get("webserver").then(e=>{null!=e&&(this.webserverAddress=e),this.connect()}),this.storageManager.get("adsTimePeriod").then(e=>{null!=e&&(this.adsTimePeriod=e)})}registerEvents(){var e=this;this.events.subscribe("checkOnline",(function(){e.isNetwork()&&e.checkOnline(e)})),this.events.subscribe("ping",()=>{this.sendMsg("ping",this)}),this.subscribeConnect()}subscribeDisconnect(){this.disconnectSubscription=this.network.onDisconnect().subscribe(()=>{this.setNetwork(!1),this.message="No Network...",this.subscribeConnect(),this.unsubscribeDisconnect()})}unsubscribeDisconnect(){this.disconnectSubscription.unsubscribe()}setNetwork(e){this.networkAvailability=e}isNetwork(){return this.networkAvailability}subscribeConnect(){this.platform.is("cordova")?this.connectSubscription=this.network.onConnect().subscribe(()=>{this.message="connecting...",this.setNetwork(!0),this.unsubscribeConnection(),this.subscribeDisconnect(),this.getOnlinePrime(),setTimeout(()=>{"wifi"===this.network.type&&console.log("we got a wifi connection, woohoo!")},3e3)}):this.getOnlinePrime()}unsubscribeConnection(){this.connectSubscription.unsubscribe()}ping(){this.sendMsg("ping",this)}checkOnline(t){e.isOnline||t.connect()}static getOnline(t){e.isOnline||t.connect()}getOnlinePrime(){e.isOnline||this.connect()}onOpen(){this.isConnected(),this.userManager.loggedIn().then(()=>{this.queryPro("register",{},this,this.userManager.user.getMainAccessToken())}),this.flushQue(),this.events.publish(s.c.Connected)}onError(){this.allowReconnect=!0,this.isConnected()}onClose(t){this.events.publish(s.c.SocketDisconnected),console.log("cloosed socket",t,this.timeManager.seconds),this.allowReconnect=!0,e.isOnline=!1,this.isConnected()}connect(){if(!this.allowReconnect||this.isConnected())return!1;this.allowReconnect=!1,this.websocket_server=new WebSocket(this.webserverAddress),this.websocket_server_insecure=new WebSocket(this.insecureSocket),this.websocket_server.onopen=e=>{this.onOpen()},this.websocket_server.onerror=e=>{this.onError()},this.websocket_server.onclose=e=>{this.onClose(e)},this.websocket_server.onmessage=e=>{this.handleMessages(e)},this.websocket_server_insecure.onopen=e=>{this.onOpen()},this.websocket_server_insecure.onerror=e=>{this.onError()},this.websocket_server_insecure.onclose=e=>{this.onClose(e)},this.websocket_server_insecure.onmessage=e=>{this.handleMessages(e)}}changeServerAndConnect(){this.webserverAddress==this.addressServerOriginal?this.webserverAddress=this.addressServerIP:this.webserverAddress==this.addressServerIP&&(this.webserverAddress=this.addressServerOriginal)}flushQue(){let e=this.userManager.user.getMainAccessToken();for(let t of this.que){let n=this.que.indexOf(t);this.que.splice(n,1),t.isResolvable()?this.asyncQuery(t.action,t.data,t.run).then(()=>{t.run===Function&&t.run()}):this.queryPro(t.action,t.data,t.owner,e,t.message)}}keepLive(){}addQuery(e){this.que.push(e)}setConnected(){this.connected=!0}hanldeMessage(e){console.log(e,"is recevied data is")}handleMessage(){this.consoleDialog.log("socketmanager","Im just responsible to socketmanager events like connect and disconnect and so ...")}handleMessages(e){let t=e.data;if(t==s.b.CheckEvents)return this.events.publish(s.b.CheckEvents,{},Date.now()),!0;let n=JSON.parse(t);if("EventsManager"==n.owner)return this.events.publish(n.action,n.data,Date.now()),!0;let r=this.findOriginalSQuery(n.query);if(null!=r)if(r.isResolvable()){let e=new a(n);if(null!=e.allow){let t=this.queries.indexOf(r);r.resolve(e),this.queries.splice(t,1)}}else{r.owner.handleMessage(t,r);let e=this.queries.indexOf(r);this.queries.splice(e,1)}}findOriginalSQuery(e){for(let t of this.queries)if(t.id==e.id)return t}init(){}tryConnect(){}timedCount(){var e=this;this.c=this.c+1,this.isConnected(),this.reconnect(),this.t=setTimeout((function(){e.timedCount()}),1e4)}isConnected(){return!!e.isOnline||(null!=this.websocket_server||null!=this.websocket_server_insecure)&&(this.websocket_server.readyState===this.websocket_server.OPEN||this.websocket_server_insecure.readyState===this.websocket_server_insecure.OPEN?(this.connected=!0,e.isOnline=!0,!0):(this.connected=!1,e.isOnline=!1,!1))}setMessage(e){this.message=e}disconnect(){this.websocket_server.close(),this.isConnected()}reconnect(){}getMessage(){return this.message}queryPro(e,t,n,r,s){return new Promise(o=>{let a=new i(t,e);if(!this.isConnected())return a.registerOwner(n),s&&a.registerMessage(s),this.addQuery(a),!0;if(this.isConnected()){let i=JSON.stringify({type:"request",action:e,user_id:this.userManager.user.userID,data:t,query:a,accessToken:r});this.send(i),a.registerOwner(n),s&&a.registerMessage(s),this.queries.push(a),o(!0)}})}send(e){return this.websocket_server.readyState===this.websocket_server.OPEN?(this.websocket_server.send(e),!0):this.websocket_server_insecure.readyState===this.websocket_server_insecure.OPEN&&(this.websocket_server_insecure.send(e),!0)}asyncQuery(e,t,n){return new Promise((r,s)=>{let o=new i(t,e);if(o.setResolvable(!0),o.run=n,this.isConnected()){let n={type:"request",action:e,user_id:this.userManager.user.userID,data:t,query:o,accessToken:this.userManager.user.getMainAccessToken()},i=JSON.stringify(n);this.send(i),this.queries.push(o),o.resolve=r}else this.addQuery(o),s("no internet connection :((")})}download(e){return this.asyncQuery(this.actionDownloadContent,{url:e})}sendMsg(e,t){if(this.parent=t,!this.connected)return this.reconnect(),!1;let n=JSON.stringify({type:"transl",user_id:"34",chat_msg:e});this.send(n)}}return e.timer=0,e.isOnline=!1,e})()},"/uUt":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return n=>n.lift(new s(e,t))}class s{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends r.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},"0+M4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("8Y7J");let i=(()=>{class e{constructor(){this._channels=[]}subscribe(e,...t){this._channels[e]||(this._channels[e]=[]),t.forEach(t=>{this._channels[e].push(t)})}unsubscribe(e,t=null){let n=this._channels[e];if(!n)return!1;if(!t)return delete this._channels[e],!0;let r=n.indexOf(t);return!(r<0||(n.splice(r,1),n.length||delete this._channels[e],0))}publish(e,...t){var n=this._channels[e];if(!n)return null;let r=[];return n.forEach(e=>{r.push(e(...t))}),r}}return e.ngInjectableDef=r.Qb({factory:function(){return new e},token:e,providedIn:"root"}),e})()},"0EUg":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bHdf");function i(){return Object(r.a)(1)}},"0FpF":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("D2Vb"),n("EGUZ");class r{constructor(e,t,n,r){this.http=e,this.appRate=t,this.translateService=n,this.storageManager=r,console.log("Hello AppRateManagerProvider Provider")}init(){this.isAppRateNeeded()&&this.initFa()}initFa(){let e=this;this.appRate.preferences={displayAppName:"Bayadic",usesUntilPrompt:5,promptAgainForEachNewVersion:!1,inAppReview:!1,storeAppURL:{ios:"1333051510",android:"market://details?id=com.sinzed.bayadic"},customLocale:{title:"\u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0686\u0646\u062f \u062a\u0627 \u0644\u0627\u06cc\u06a9 \u062f\u0627\u0631\u0647\u061f",message:"\u0627\u06af\u0647 \u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0644\u0630\u062a \u0645\u06cc \u0628\u0631\u06cc\u0646 \u0648 \u0645\u0641\u06cc\u062f\u0647 \u0628\u0647 \u0645\u0627 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0628\u062f\u06cc\u0646. \u0642\u0648\u0644 \u0645\u06cc \u062f\u0645 \u0628\u06cc\u0634\u062a\u0631 \u0627\u0632 \u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647 \u0648\u0642\u062a\u062a\u0648\u0646 \u0631\u0648 \u0646\u06af\u06cc\u0631\u0647",cancelButtonLabel:"\u0646\u0647 \u0647\u06cc\u0686 \u0648\u0642\u062a",laterButtonLabel:"\u0628\u0639\u062f\u0627 \u06cc\u0627\u062f\u0622\u0648\u0631\u06cc \u06a9\u0646",rateButtonLabel:"\u0627\u0644\u0627\u0646 \u0627\u0645\u062a\u06cc\u0627\u0632 \u0645\u06cc \u062f\u0645",yesButtonLabel:"\u0628\u0644\u0647!",noButtonLabel:"\u0646\u0647 \u0648\u0627\u0642\u0639\u0627",appRatePromptTitle:"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u0631\u0648 \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u0646\u061f",feedbackPromptTitle:"\u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u0646 \u0646\u0638\u0631 \u0628\u062f\u06cc\u0646\u061f?"},callbacks:{handleNegativeFeedback:function(){},onRateDialogShow:function(e){},onButtonClicked:function(t){2==t?e.later():e.finish(),console.log("onButtonClicked -> "+t)}}},this.appRate.promptForRating(!0)}finish(){this.storageManager.set("rated","ratedOrNever")}later(){this.storageManager.set("rated","later")}initEn(){this.appRate.preferences={displayAppName:"Bayadic",usesUntilPrompt:5,promptAgainForEachNewVersion:!1,inAppReview:!1,storeAppURL:{ios:"1333051510",android:"market://details?id=com.sinzed.bayadic"},customLocale:{title:"Would you mind rating %@?",message:"It won\u2019t take more than a minute and helps to promote our app. Thanks for your support!",cancelButtonLabel:"No, Thanks",laterButtonLabel:"Remind Me Later",rateButtonLabel:"Rate It Now",yesButtonLabel:"Yes!",noButtonLabel:"Not really",appRatePromptTitle:"Do you like using %@",feedbackPromptTitle:"Mind giving us some feedback?"},callbacks:{handleNegativeFeedback:function(){},onRateDialogShow:function(e){},onButtonClicked:function(e){}}},this.appRate.promptForRating(!0)}setAppRateNeeded(e){this.appRateNeeded=e}isAppRateNeeded(){return this.appRateNeeded}checkForRating(){this.storageManager.get("rated").then(e=>{null!=e&&"later"!=e||this.initFa()})}}},"0K09":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.importSqlToDb=function(e,t){return Object(i.cordova)(this,"importSqlToDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.exportDbToSql=function(e){return Object(i.cordova)(this,"exportDbToSql",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.importJsonToDb=function(e,t){return Object(i.cordova)(this,"importJsonToDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.exportDbToJson=function(e){return Object(i.cordova)(this,"exportDbToJson",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.prototype.wipeDb=function(e){return Object(i.cordova)(this,"wipeDb",{callbackStyle:"object",successName:"successFn",errorName:"errorFn"},arguments)},t.pluginName="SQLitePorter",t.plugin="uk.co.workingedge.cordova.plugin.sqliteporter",t.pluginRef="cordova.plugins.sqlitePorter",t.repo="https://github.com/dpa99c/cordova-sqlite-porter",t.platforms=["Amazon Fire OS","Android","BlackBerry 10","Browser","iOS","Tizen","Windows","Windows Phone"],t}(i.IonicNativePlugin)},"0NL6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+mLH"),i=n("sUqe"),s=n("AjPc");class o{constructor(e){if(this.maxWordToShow=2,this.showOptionMenu=!1,this.statusHistory=[],e.statusHistory&&(this.statusHistory=e.statusHistory),this.received=!1,this.minimized=!1,this.repetittion=0,void 0!==e.repettition&&(this.text=e.text),void 0!==e.text?this.text=e.text:void 0!==e.message&&(this.text=e.message),void 0!==e.sentTime&&(this.receivedTime=e.sentTime),this.receivedTime=null==this.receivedTime&&void 0!==e.timeSent?e.timeSent:e.receivedTime,this.reviewTime=null!=e.reviewTime?e.reviewTime:s.d.getToday(),this.lastReviewedTime=null!=e.lastReviewedTime?e.lastReviewedTime:s.d.getToday(),this.easinessFactor=null!=e.easinessFactor?e.easinessFactor:2.5,this.messageID=e.messageID,e.received&&(this.received=e.received),this.from=null!=e.from?e.from:new r.a([]),this.content=[],null!=e.content&&null!=e.content)for(let t of e.content)this.content.push(t);null!=e.minmized&&(this.minimized=e.minmized),this.type="dictionary",null!=e.type&&(this.type=e.type)}get possibleStatuses(){return i.f}hasContent(){return this.content?0!=this.content.length:(this.content=[],!1)}hasFooter(){return this.isDictionaryMessage()}setContent(e){null!=e&&null!=e&&(this.content=e)}setUser(e){this.from=e}setMessageID(e){this.messageID=e}setShowOptionMenu(e){this.showOptionMenu=e}isFrom(e){return this.from.userID==e.userID}isShowOptionMenu(){return this.showOptionMenu}isShowAvatar(){}setMessageTimeSent(e){this.receivedTime=e}minmize(){this.minimized=!0}maximize(){this.minimized=!1}setType(e){switch(this.type=e,e){case"idiom":this.content.push("hi")}}getSimpleModel(){let e=Object.assign({},this),t=new o(e);return t.content.length=0,t}getModel(e){}getModelTypeID(){return{type:this.type,messageID:this.messageID}}needContent(){return!this.hasContent()&&!this.isChatMessage()}isChatMessage(){return this.type.toLowerCase()==i.d.Chat}isLeitnerMessage(){return this.type.toLowerCase()==i.d.Leitner}isQuizMessage(){return this.type.toLowerCase()==i.d.Quiz}isDictionaryMessage(){return this.type.toLowerCase()==i.d.Dictionary}isAdsMessage(){return"adsMessage"==this.type}isQuiz(){return this.type.toLowerCase().includes("quiz")}setMaxWordToShow(e){this.maxWordToShow=e}isDictionary(){return this.type.toLowerCase().includes("dictionary")}isLocalType(){return"leitenr"==this.type}getReceivedInt(){return this.received?1:0}getSummary(){return this.text.slice(0,15)}setStatus(e){this.status=e,this.addStatusHistory()}isStatus(e){return this.status==e}hasStatus(e){return-1!=this.statusHistory.indexOf(e)}addStatusHistory(){this.statusHistory.push(this.status)}setReceivedTime(e){this.receivedTime=e}setReceivedFromInt(e){this.received=0!=e}setFoldingFromInt(e){this.minimized=1==e}static getExistedStatuses(){return new i.f}getFoldedInt(){return this.minimized?1:0}hasBeenSeenByMe(){return this.statusHistory.indexOf(this.possibleStatuses.seenByMe)>=0}getReceivedTimeSqlLiteFormat(){return this.receivedTime.replace(/\//g,"-")}getReviewTimeSqlLiteFormat(){return this.reviewTime.replace(/\//g,"-")}getLastReviewTimeSqlLiteFormat(){return this.lastReviewedTime.replace(/\//g,"-")}getReviewDate(){return this.reviewTime.split(" ")[0]}getAction(){let e;switch(this.type){case"dictionary":e="transl";break;case"puzzle":e="getPuzzle";break;case"news":e="getNews";break;case i.d.Chat:e=i.e.SendMsg}return e}getData(){let e;switch(this.type){case"dictionary":e={word:this.text,lang:this.getLang(),type:this.type};break;case"puzzle":e={puzzle:this.text,type:this.type};break;case"news":e={news:this.text,type:this.type};break;case i.d.Chat:e={word:this.text,type:this.type}}return e}setReviewTime(e){if(!e)return this.reviewTime="2050/12/12 12:12:12",!0;this.reviewTime=e.replace(/-/g,"/")}setRepetitions(e){if(!e)return this.repetittion=0,!0;this.repetittion=e}getRepetitions(){return this.repetittion}getEasinessFactor(){return this.easinessFactor}getInterval(){var e=new Date(this.lastReviewedTime);let t=(new Date(this.reviewTime).getTime()-e.getTime())/864e5;return t<1?1:t}setLastReviewedTime(e){this.lastReviewedTime=null!=this.lastReviewedTime&&null!=this.lastReviewedTime&&null!=e?e.replace(/-/g,"/"):s.d.getToday()}setEasinessFactor(e){if(!e)return this.easinessFactor=0,!0;this.easinessFactor=e}getLang(){return this.isArabic()?"fa":"de"}isArabic(){return/[\u0600-\u06FF]/.test(this.text)}isPersian(){return this.isArabic()}isGerman(){this.isArabic()}isSent(){return this.status==this.possibleStatuses.receivedByServer}isDelivered(){return this.status==this.possibleStatuses.deliveredToUser}}},"128B":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("Kqap"),i=n("BFxc"),s=n("xbPD"),o=n("mCNh");function a(e,t){return arguments.length>=2?function(n){return Object(o.a)(Object(r.a)(e,t),Object(i.a)(1),Object(s.a)(t))(n)}:function(t){return Object(o.a)(Object(r.a)((t,n,r)=>e(t,n,r+1)),Object(i.a)(1))(t)}}},"1G5W":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("l7GE"),i=n("ZUHj");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.notifier=e}call(e,t){const n=new a(e),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n}}class a extends r.a{constructor(e){super(e),this.seenValue=!1}notifyNext(e,t,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1Zg0":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("EVdn"),s=n("pJ1N");class o{constructor(e){this.modalCtrl=e,this.tips=[]}introduceChatDictionary(){}introduceMoreContent(){return new Promise(e=>{this.isReady()&&(this.initHasMoreContentTipps(),this.guide().then(t=>{e(!!t)}))})}isReady(){return 0==this.tips.length}getTip(){return this.tips.pop()}createTip(e,t,n,r){return{text:e,element:t,width:n,height:r}}initSendTips(){this.tips.push(this.createTip("\u062d\u0627\u0644\u0627 \u062f\u06a9\u0645\u0647 \u0627\u0631\u0633\u0627\u0644 \u0631\u0648 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f",i(".inputBtn")))}initInputChatTips(){let e="\u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc \u0634\u0647 \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u06cc\u0627 \u0622\u0644\u0645\u0627\u0646\u06cc \u06cc\u0647 \u0644\u063a\u062a \u0646\u0648\u0634\u062a \u0645\u062b\u0644\u0627 \u0645\u06cc \u062e\u0648\u0627\u06cc\u0645 \u0628\u062f\u0648\u0646\u06cc\u0645 \u0645\u0639\u0646\u06cc \u06a9\u0644\u0645\u0647 ";e+=" buch ",e+=" \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u0686\u06cc \u0645\u06cc \u0634\u0647 ",this.tips.push(this.createTip("\u0627\u06cc\u0646\u062c\u0627 \u0645\u06cc \u0634\u0647 \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u06cc\u0627 \u0622\u0644\u0645\u0627\u0646\u06cc \u06cc\u0647 \u0644\u063a\u062a \u0646\u0648\u0634\u062a \u0645\u062b\u0644\u0627 \u0645\u06cc \u062e\u0648\u0627\u06cc\u0645 \u0628\u062f\u0648\u0646\u06cc\u0645 \u0645\u0639\u0646\u06cc \u06a9\u0644\u0645\u0647  buch  \u0628\u0647 \u0641\u0627\u0631\u0633\u06cc \u0686\u06cc \u0645\u06cc \u0634\u0647 ",i("chat-input"))),this.tips.push(this.createTip("\u0628\u0647 \u0641\u0631\u0647\u0646\u06af \u0644\u063a\u062a \u0628\u0627\u06cc\u0627\u062f\u06cc\u06a9 \u062e\u0648\u0634 \u0627\u0648\u0645\u062f\u06cc\u0646\u060c \u0631\u0648\u06cc \u0635\u0641\u062d\u0647 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0646\u062d\u0648\u0647 \u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0631\u0648 \u0628\u0647\u062a\u0648\u0646 \u0622\u0645\u0648\u0632\u0634 \u0628\u062f\u0645"))}initMessageTips(){this.tips.push(this.createTip("\u0648\u0642\u062a\u06cc \u0631\u0648\u06cc \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u060c \u0645\u06cc \u062a\u0648\u0646\u06cc \u0627\u06cc\u0646 \u06a9\u0644\u0645\u0647 \u0631\u0648 \u062d\u0630\u0641 \u06a9\u0646\u06cc \u06cc\u0627 \u0628\u0647 \u062c\u0639\u0628\u0647 \u0644\u0627\u06cc\u062a\u0646\u0631 \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0630\u062e\u06cc\u0631\u0647 \u0648 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0644\u063a\u0627\u062a \u0647\u0633\u062a \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc",i(".moreBtn"))),this.tips.push(this.createTip("\u0628\u0627 \u0641\u0634\u0627\u0631\u062f\u0627\u062f\u0646 \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u0647\u0645 \u062a\u0644\u0641\u0638 \u0644\u063a\u062a \u0631\u0648 \u0645\u06cc \u0634\u0647 \u0634\u0646\u06cc\u062f",i(".speechIcon"))),this.tips.push(this.createTip("\u0628\u06cc\u0634\u062a\u0631 \u06a9\u0644\u0645\u0647 \u0647\u0627 \u0645\u062b\u0627\u0644 \u062f\u0627\u0631\u0646 \u06a9\u0647 \u0628\u0627 \u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0646 \u0631\u0648\u06cc \u0627\u06cc\u0646 \u062f\u06a9\u0645\u0647 \u0645\u06cc \u062a\u0648\u0646\u06cc \u0628\u0628\u06cc\u0646\u06cc\u0634\u0648\u0646",i(".conjugateNow"),30,30)),this.tips.push(this.createTip("\u0647\u0645\u06cc\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc\u0634\u0647 \u062f\u06cc\u062f\u060c \u06a9\u0644\u0645\u0647 \u0628\u0627 \u0622\u0631\u062a\u06cc\u06a9\u0644 \u062c\u0646\u0633\u06cc\u062a \u062e\u0648\u062f\u0634 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0648\u0634\u062a\u0647 \u0645\u06cc \u0634\u0647",i(".artikel").first())),this.tips.push(this.createTip("\u0647\u0648\u0631\u0627 \u0644\u063a\u062a\u06cc \u06a9\u0647 \u0646\u0648\u0634\u062a\u06cc\u0645 \u062a\u0631\u062c\u0645\u0647 \u0634\u062f. \u062d\u0627\u0644\u0627 \u0633\u0639\u06cc \u0645\u06cc \u06a9\u0646\u0645 \u062c\u0632\u0626\u06cc\u0627\u062a \u062a\u0631\u062c\u0645\u0647 \u0631\u0648 \u0628\u0647\u062a \u0628\u06af\u0645",i("message").last()))}initHasMoreContentTipps(){this.tips.length=0,this.tips.push(this.createTip("\u0648\u0642\u062a\u06cc \u0627\u06cc\u0646 \u062c\u0627 \u0631\u0648 \u0644\u0645\u0633 \u06a9\u0646\u06cc \u0647\u0645\u0647 \u06cc \u0644\u063a\u0627\u062a \u062f\u06cc\u062f\u0647 \u0645\u06cc \u0634\u0646",i(".openMoreHandle").last())),this.tips.push(this.createTip("\u06cc\u0647 \u0646\u06a9\u062a\u0647 \u0628\u06af\u0645\u061f \u0628\u0639\u0636\u06cc \u0644\u063a\u0627\u062a \u062a\u0639\u062f\u0627\u062f \u0645\u0639\u0646\u06cc \u0647\u0627\u06cc \u0632\u06cc\u0627\u062f\u06cc \u062f\u0627\u0631\u0646\u060c \u0648\u0644\u06cc \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0627\u0648\u0644 \u0647\u0645\u06af\u06cc \u0628\u0627 \u0647\u0645 \u062f\u06cc\u062f\u0647 \u0646\u0645\u06cc \u0634\u0646"))}guide(){return new Promise(e=>r.a(this,void 0,void 0,(function*(){let t=yield this.modalCtrl.create({component:s.a});t.present(),t.onDidDismiss().then(()=>{e(!0)})})))}}},"2IJ5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(){this.devMode=!1,this.messages=[]}log(e,t){(new Date).toTimeString()}log2(e,t){let n={msg:e,data:t,time:(new Date).toTimeString()};this.messages.unshift(n)}}},"2QA8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2TGb":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.speak=function(e){return Object(i.cordova)(this,"speak",{successIndex:1,errorIndex:2},arguments)},t.prototype.stop=function(){return Object(i.cordova)(this,"stop",{},arguments)},t.pluginName="Text To Speech",t.plugin="cordova-plugin-tts",t.pluginRef="TTS",t.repo="https://github.com/vilic/cordova-plugin-tts",t.platforms=["Android","iOS","Windows Phone 8"],t}(i.IonicNativePlugin)},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("XNiG"),i=n("9ppp");class s extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2XxT":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("sk1z");n("0+M4");class i{constructor(e,t){this.http=e,this.events=t,this.seconds=0,console.log("Hello TimeManagerProvider Provider")}startTimer(){var e=this;this.stopTimer(),e.stopTimer(),console.log("timer activated"),i.timeHolder=setInterval((function(){e.seconds+=3,e.events.publish("checkOnline"),e.seconds%r.a.adsTimePeriod==0&&(e.events.publish("presentAd"),e.events.publish("ping"))}),1500)}stopTimer(){console.log("timer paused"),clearInterval(i.timeHolder)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"2y6Z":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("mrSG"),i=n("zI0Y"),s=(n("olg3"),n("sUqe")),o=n("AjPc");class a{constructor(e,t,n,r){this.view=e,this.toastCtrl=t,this.translate=n,this.userManager=r,this.wordType="",this.selectArtikel=!1,this.artikel="",this.actionAddNewWord="addNewWord"}get possibleErrors(){return s.h}handleMessage(e){console.log("message of add new message","sent",e)}ngAfterContentInit(){console.log("this.message  ngAfterContentInit is :",this.message),console.log("this.wordType ngAfterContentInit is :",this.wordType),console.log("this. artikel ngAfterContentInit is:",this.artikel),this.findOutWord()}getWordArtikel(e){switch(console.log("getWordArtikel(artikelSignal) is :",e),e){case"m":this.wordArtikel="Der";break;case"f":this.wordArtikel="Die";break;case"n":this.wordArtikel="Das"}return this.wordArtikel}findOutWordArtikel(){console.log("message in findOutWordArtikel()",this.message),this.message.hasContent()&&null!=this.message.content[0]&&null!=this.message.content[0].artikel&&this.word.toLowerCase()==this.message.content[0].word.toLowerCase()&&this.getWordArtikel(this.message.content[0].artikel)}findOutWord(){console.log("message in findOutWord()",this.message),console.log("this.message.text in findOutWord():",this.message.text),null!=this.message&&(this.word=this.message.text)}addWord(){if(this.isFormValid()){console.log("this.message in addword",this.message),console.log("this.message.content in addword",this.message.content),console.log("this.artikel in addword",this.artikel);let e={name:"",word:this.word,artikel:this.wordArtikel,plural:"",translation:this.translation,wordType:this.wordType,userID:this.userManager.user.userID};console.log("wordObject in addWord() :",e);let t=new i.a(e);console.log("word in addWord() = new Word(wordObject):",t),t.setMessageID(this.message.messageID),t.setUserID(this.userManager.user.userID),this.message.content.push(t),console.log("this.message.content.push(word); ",this.message),this.messageComp.dictionaryComp.putWord(e),this.messageComp.saveContent(),this.sendNewWord(t),this.close()}else this.showToastError()}setToastError(e){this.formValidationErrorEnum=e}getToastError(){return this.translate.get("CONTENT.AddNewWord.FormValidation."+this.formValidationErrorEnum)}showToastError(){this.getToastError().subscribe(e=>r.a(this,void 0,void 0,(function*(){let t=yield this.toastCtrl.create({message:e,duration:3e3,position:"middle"});t.onDidDismiss().then(()=>{console.log("Dismissed toast")}),t.present()})))}sendNewWord(e){console.log("this.messageComp in sendNewWord(word: Word) :",this.messageComp),console.log("word is sendNewWord(word: Word): ",e),this.messageComp.socketManager.queryPro(this.actionAddNewWord,{messageID:this.message.messageID,word:e},this,this.userManager.user.getMainAccessToken())}isFormValid(){return console.log("this.isDifferentLanguages():",this.isDifferentLanguages()),console.log(" this.isTypeSelected() :",this.isTypeSelected()),console.log("this.isGrammaticValid():",this.isGrammaticValid()),console.log("this.isNotAddedBeforeInThisMessage():",this.isNotAddedBeforeInThisMessage()),!!(this.isDifferentLanguages()&&this.isTypeSelected()&&this.isGrammaticValid()&&this.isNotAddedBeforeInThisMessage())}isNotAddedBeforeInThisMessage(){return 0==this.messageComp.dictionaryComp.getAllWords().filter(e=>{if(e.translation.toLowerCase().trim()==this.translation.toLowerCase().trim()||e.word.toLowerCase().trim()==this.translation.toLowerCase().trim())return e}).length||(this.setToastError(s.h.translationHasBeenAlreadyAdded),!1)}isGrammaticValid(){let e=!1;switch(this.wordType){case"noun":e=this.isArtikelSelected();break;case"verb":e=this.isValidVerb();break;case"adverb":default:e=!0}return e}isArtikelSelected(){console.log("this.wordArtikel in isArtikelSelected():",this.wordArtikel);const e=null!=this.wordArtikel;return e||this.setToastError(this.possibleErrors.nounHasNoArtikel),e}artikelChanged(e){console.log("$event:",e),this.artikel=e.detail.value,console.log("artikel in artikelChanged:",this.artikel),this.wordArtikel=this.getWordArtikel(this.artikel),console.log("this.wordArtikel=this.getWordArtikel in artikelChanged:",this.wordArtikel)}isValidVerb(){const e="n"==this.word.slice(-1)&&"\u0646"==this.translation.slice(-1);return e||this.setToastError(this.possibleErrors.verbFormatIsWorng),e}isTypeSelected(){console.log("this.wordType in  isTypeSelected():",this.wordType);const e=null!=this.wordType;return e||this.setToastError(this.possibleErrors.wordTypeIsNotDefined),e}isDifferentLanguages(){console.log("this.word in isDifferentLanguages()",this.word);const e=o.c.isArabic(this.word)!=o.c.isArabic(this.translation);return e||this.setToastError(this.possibleErrors.translationInSameLanguage),e}close(){this.view.dismiss()}selected(){console.log("this selected",this.wordType),this.setSelectArticle("noun"==this.wordType.toLowerCase())}setSelectArticle(e){console.log("setSelectArticle(enable : boolean):",e),this.selectArtikel=e}isSelectArticle(){return this.selectArtikel}}},"33wr":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GAbP");n("6GXZ"),n("2IJ5");class i extends r.a{constructor(e,t,n,r){super(e,t,n,r),this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=r}setReview(e,t){this.updateMessageReview(e,t)}}},"3MOV":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("W2O4");n("EGUZ");class s{constructor(e,t,n){this.http=e,this.storageManager=t,this.loadingCtrl=n,this.ajaxControllerServerUrl="http://server1.bayadic.com/site/loghatnameh/autoPost/bayadicapi/controllers.php",this.ajaxRescueUrl="http://bayadic.com/rescue/system/RescueLeader.php",this.ajaxResetPassUrl="http://bayadic.com/rescue/system/security/ResetPassword.php",this.storageManager.get("ajaxUrl").then(e=>{null!=e&&(this.ajaxControllerServerUrl=e)})}queryPro(e,t,n="public"){return r.a(this,void 0,void 0,(function*(){let r=yield this.loadingCtrl.create({message:"\u0644\u0637\u0641\u0627 \u06a9\u0645\u06cc \u0635\u0628\u0631 \u06a9\u0646\u06cc\u062f ...."});return r.present(),new Promise((s,o)=>{let a,l,c={action:e,data:t,accessToken:n};var u=new i.d;u.append("Accept","application/json"),u.append("Content-Type","application/json");let h=new i.h({headers:u,method:i.g.Post});this.http.post(this.ajaxControllerServerUrl,c,h).subscribe(e=>{a=e._body,a=a.trim(),l=JSON.parse(a),s(l),r.dismiss()},e=>{console.log(e),l=e,o(l)})})}))}rescue(e){return new Promise((t,n)=>{let r,s={version:e};var o=new i.d;o.append("Accept","application/json"),o.append("Content-Type","application/json");let a=new i.h({headers:o,method:i.g.Post});this.http.post(this.ajaxRescueUrl,s,a).subscribe(e=>{r=e._body,r=r.trim(),t(r)},e=>{n(e)})})}resetPassword(e){return new Promise((t,n)=>{let r,s={email:e};var o=new i.d;o.append("Accept","application/json"),o.append("Content-Type","application/json");let a=new i.h({headers:o,method:i.g.Post});this.http.post(this.ajaxResetPassUrl,s,a).subscribe(e=>{r=e._body,r=r.trim(),t(r)},e=>{n(e)})})}query(e,t,n){let r,s,o={action:e,data:n};var a=new i.d;a.append("Accept","application/json"),a.append("Content-Type","application/json");let l=new i.h({headers:a});return this.http.post(this.ajaxControllerServerUrl,o,l).subscribe(e=>{r=e._body,s=JSON.parse(r),t&&t(s)},e=>{console.log(e),s=e}),s}}},"3N8a":function(e,t,n){"use strict";var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}n.d(t,"a",(function(){return s}));class s extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3UND":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=(n("h4wn"),n("HKEL"));n("2IJ5"),n("J20c"),n("LKtr");class s{constructor(e,t,n,r,i,s,o){this.navCtrl=e,this.router=t,this.consoleDialog=n,this.friendsManager=r,this.chatsManager=i,this.tabsManager=s,this.modalCtrl=o}openAddDialog(){return r.a(this,void 0,void 0,(function*(){(yield this.modalCtrl.create({component:i.a,swipeToClose:!0,cssClass:"friend-modal"})).present()}))}swipeEvent(e){console.log(e,"swip event"),4==e.direction&&(this.tabsManager.selectedTab=2,this.router.navigate(["items"]))}openChat(e){this.chatsManager.initChat(e.item).then(e=>(console.log("lets see chat ID from initchat",e),this.chatsManager.synchronizer.getNewMessages(e),e)).then(e=>{this.router.navigate(["chat"],{state:{chat:e}}).then(()=>{e.setViewLoaded(!0)})})}ngOnChanges(){this.friendsManager.clearFriendsNotification()}}},"4I5i":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},"4pTB":function(e,t){},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("ZUHj"),i=n("l7GE"),s=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function l(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?r=>r.pipe(l((n,r)=>Object(a.a)(e(n,r)).pipe(Object(o.a)((e,i)=>t(n,e,r,i))),n)):("number"==typeof t&&(n=t),t=>t.lift(new c(e,n)))}class c{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new u(e,this.project,this.concurrent))}}class u extends i.a{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const i=new s.a(this,t,n),o=this.destination;o.add(i);const a=Object(r.a)(this,e,void 0,void 0,i);a!==i&&o.add(a)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");class i extends r.a{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},"5GAg":function(e,t,n){"use strict";var r=n("SVse"),i=n("8Y7J");n("XNiG"),n("quSY"),n("LRne"),n("dvZr"),n("vkgz"),n("7o/Q"),n("D0XW"),n("pLZG"),n("lJxs");var s=n("IzEk"),o=n("/HVE");n("KCVW"),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));let a=(()=>{class e{constructor(e){this._platform=e}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}isTabbable(e){if(!this._platform.isBrowser)return!1;const t=function(e){try{return e.frameElement}catch(t){return null}}((n=e).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(t){const e=t&&t.nodeName.toLowerCase();if(-1===c(t))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===e)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(t))return!1}let r=e.nodeName.toLowerCase(),i=c(e);if(e.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){let t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}isFocusable(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){let t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||l(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(o.a))},token:e,providedIn:"root"}),e})();function l(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;let t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function c(e){if(!l(e))return null;const t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}class u{constructor(e,t,n,r,i=!1){this._element=e,this._checker=t,this._ngZone=n,this._document=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,i||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement()))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);for(let n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn(`Found use of deprecated attribute 'cdk-focus-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${e}', use 'cdkFocusRegion${e}' instead. The deprecated attribute will be removed in 8.0.0.`,t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(){const e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),Object(i.W)()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}focusFirstTabbableElement(){const e=this._getRegionBoundary("start");return e&&e.focus(),!!e}focusLastTabbableElement(){const e=this._getRegionBoundary("end");return e&&e.focus(),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=0;n<t.length;n++){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(e)return e}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children||e.childNodes;for(let n=t.length-1;n>=0;n--){let e=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(e)return e}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Object(s.a)(1)).subscribe(e)}}let h=(()=>{class e{constructor(e,t,n){this._checker=e,this._ngZone=t,this._document=n}create(e,t=!1){return new u(e,this._checker,this._ngZone,this._document,t)}}return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(a),Object(i.Rb)(i.x),Object(i.Rb)(r.d))},token:e,providedIn:"root"}),e})();function d(e){return 0===e.buttons}},"6GXZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),s=function(){function e(e){this._objectInstance=e}return e.prototype.addTransaction=function(e){return Object(i.cordovaInstance)(this,"addTransaction",{sync:!0},arguments)},e.prototype.transaction=function(e){return Object(i.cordovaInstance)(this,"transaction",{successIndex:2,errorIndex:1},arguments)},e.prototype.readTransaction=function(e){return Object(i.cordovaInstance)(this,"readTransaction",{},arguments)},e.prototype.startNextTransaction=function(){return Object(i.cordovaInstance)(this,"startNextTransaction",{sync:!0},arguments)},e.prototype.open=function(){return Object(i.cordovaInstance)(this,"open",{},arguments)},e.prototype.close=function(){return Object(i.cordovaInstance)(this,"close",{},arguments)},e.prototype.executeSql=function(e,t){return Object(i.cordovaInstance)(this,"executeSql",{},arguments)},e.prototype.sqlBatch=function(e){return Object(i.cordovaInstance)(this,"sqlBatch",{},arguments)},e.prototype.abortallPendingTransactions=function(){return Object(i.cordovaInstance)(this,"abortallPendingTransactions",{sync:!0},arguments)},Object.defineProperty(e.prototype,"databaseFeatures",{get:function(){return Object(i.instancePropertyGet)(this,"databaseFeatures")},set:function(e){Object(i.instancePropertySet)(this,"databaseFeatures",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openDBs",{get:function(){return Object(i.instancePropertyGet)(this,"openDBs")},set:function(e){Object(i.instancePropertySet)(this,"openDBs",e)},enumerable:!0,configurable:!0}),e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.create=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return new Promise((function(t,n){sqlitePlugin.openDatabase(e,(function(e){return t(new s(e))}),n)}))}()},t.prototype.echoTest=function(){return Object(i.cordova)(this,"echoTest",{},arguments)},t.prototype.selfTest=function(){return Object(i.cordova)(this,"selfTest",{},arguments)},t.prototype.deleteDatabase=function(e){return Object(i.cordova)(this,"deleteDatabase",{},arguments)},t.pluginName="SQLite",t.pluginRef="sqlitePlugin",t.plugin="cordova-sqlite-storage",t.repo="https://github.com/litehelpers/Cordova-sqlite-storage",t.platforms=["Android","iOS","macOS","Windows"],t}(i.IonicNativePlugin)},"6cfT":function(e,t,n){"use strict";n.r(t),n.d(t,"iosTransitionAnimation",(function(){return h})),n.d(t,"shadow",(function(){return o})),n("ePDZ"),n("gHap");var r=n("XnfD"),i=n("tNMG");const s=e=>document.querySelector(e+".ion-cloned-element"),o=e=>e.shadowRoot||e,a=e=>{const t="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs"),n="ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=t){const e=t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(n):null}return e.querySelector(n)},l=(e,t)=>{const n="ION-TABS"===e.tagName?e:e.querySelector("ion-tabs");let r=[];if(null!=n){const e=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=e&&(r=e.querySelectorAll("ion-buttons"))}else r=e.querySelectorAll("ion-buttons");for(const i of r){const e=i.closest("ion-header"),n=e&&!e.classList.contains("header-collapse-condense-inactive"),r=i.querySelector("ion-back-button"),s=i.classList.contains("buttons-collapse"),o="start"===i.slot||""===i.slot;if(null!==r&&o&&(s&&n&&t||!s))return r}return null},c=(e,t,n,i,a,l)=>{const c=t?`calc(100% - ${l.right+4}px)`:l.left-4+"px",u=t?"7px":"-7px",h=t?"-4px":"4px",d=t?"-4px":"4px",p=t?"right":"left",f=t?"left":"right",g=n?[{offset:0,opacity:1,transform:`translate3d(${h}, ${l.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(${h}, ${l.top-46}px, 0) scale(1)`}],m=n?[{offset:0,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${d}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${d}, ${l.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${d}, ${l.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${d}, ${l.top-46}px, 0) scale(1)`}],b=Object(r.a)(),v=Object(r.a)(),y=s("ion-back-button"),w=o(y).querySelector(".button-text"),_=o(y).querySelector("ion-icon");y.text=i.text,y.mode=i.mode,y.icon=i.icon,y.color=i.color,y.disabled=i.disabled,y.style.setProperty("display","block"),y.style.setProperty("position","fixed"),v.addElement(_),b.addElement(w),b.beforeStyles({"transform-origin":p+" center"}).beforeAddWrite(()=>{i.style.setProperty("display","none"),y.style.setProperty(p,c)}).afterAddWrite(()=>{i.style.setProperty("display",""),y.style.setProperty("display","none"),y.style.removeProperty(p)}).keyframes(g),v.beforeStyles({"transform-origin":f+" center"}).keyframes(m),e.addAnimation([b,v])},u=(e,t,n,i,o,a)=>{const l=t?`calc(100% - ${o.right}px)`:o.left+"px",c=t?"-18px":"18px",u=t?"right":"left",h=n?[{offset:0,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${o.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${c}, ${a.top-4}px, 0) scale(0.5)`}],d=s("ion-title"),p=Object(r.a)();d.innerText=i.innerText,d.size=i.size,d.color=i.color,p.addElement(d),p.beforeStyles({"transform-origin":u+" center",height:"46px",display:"",position:"relative",[u]:l}).beforeAddWrite(()=>{i.style.setProperty("display","none")}).afterAddWrite(()=>{i.style.setProperty("display",""),d.style.setProperty("display","none")}).keyframes(h),e.addAnimation(p)},h=(e,t)=>{try{const n="cubic-bezier(0.32,0.72,0,1)",s="opacity",h="transform",d="0%",p=.8,f="rtl"===e.ownerDocument.dir,g=f?"-99.5%":"99.5%",m=f?"33%":"-33%",b=t.enteringEl,v=t.leavingEl,y="back"===t.direction,w=b.querySelector(":scope > ion-content"),_=b.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),C=b.querySelectorAll(":scope > ion-header > ion-toolbar"),x=Object(r.a)(),O=Object(r.a)();if(x.addElement(b).duration(t.duration||540).easing(t.easing||n).fill("both").beforeRemoveClass("ion-page-invisible"),v&&e){const t=Object(r.a)();t.addElement(e),x.addAnimation(t)}if(w||0!==C.length||0!==_.length?(O.addElement(w),O.addElement(_)):O.addElement(b.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),x.addAnimation(O),y?O.beforeClearStyles([s]).fromTo("transform",`translateX(${m})`,`translateX(${d})`).fromTo(s,p,1):O.beforeClearStyles([s]).fromTo("transform",`translateX(${g})`,`translateX(${d})`),w){const e=o(w).querySelector(".transition-effect");if(e){const t=e.querySelector(".transition-cover"),n=e.querySelector(".transition-shadow"),i=Object(r.a)(),o=Object(r.a)(),a=Object(r.a)();i.addElement(e).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),o.addElement(t).beforeClearStyles([s]).fromTo(s,0,.1),a.addElement(n).beforeClearStyles([s]).fromTo(s,.03,.7),i.addAnimation([o,a]),O.addAnimation([i])}}const S=b.querySelector("ion-header.header-collapse-condense"),{forward:E,backward:k}=((e,t,n,r,i)=>{const s=l(r,n),o=a(i),h=a(r),d=l(i,n),p=null!==s&&null!==o&&!n,f=null!==h&&null!==d&&n;if(p){const r=o.getBoundingClientRect(),i=s.getBoundingClientRect();u(e,t,n,o,r,i),c(e,t,n,s,r,i)}else if(f){const r=h.getBoundingClientRect(),i=d.getBoundingClientRect();u(e,t,n,h,r,i),c(e,t,n,d,r,i)}return{forward:p,backward:f}})(x,f,y,b,v);if(C.forEach(e=>{const t=Object(r.a)();t.addElement(e),x.addAnimation(t);const n=Object(r.a)();n.addElement(e.querySelector("ion-title"));const i=Object(r.a)(),a=Array.from(e.querySelectorAll("ion-buttons,[menuToggle]")),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive");let u;u=a.filter(y?e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t}:e=>!e.classList.contains("buttons-collapse")),i.addElement(u);const h=Object(r.a)();h.addElement(e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const p=Object(r.a)();p.addElement(o(e).querySelector(".toolbar-background"));const b=Object(r.a)(),v=e.querySelector("ion-back-button");if(v&&b.addElement(v),t.addAnimation([n,i,h,p,b]),i.fromTo(s,.01,1),h.fromTo(s,.01,1),y)c||n.fromTo("transform",`translateX(${m})`,`translateX(${d})`).fromTo(s,.01,1),h.fromTo("transform",`translateX(${m})`,`translateX(${d})`),b.fromTo(s,.01,1);else if(S||n.fromTo("transform",`translateX(${g})`,`translateX(${d})`).fromTo(s,.01,1),h.fromTo("transform",`translateX(${g})`,`translateX(${d})`),p.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?p.fromTo("transform",f?"translateX(-100%)":"translateX(100%)","translateX(0px)"):p.fromTo(s,.01,"var(--opacity)"),E||b.fromTo(s,.01,1),v&&!E){const e=Object(r.a)();e.addElement(o(v).querySelector(".button-text")).fromTo("transform",f?"translateX(-100px)":"translateX(100px)","translateX(0px)"),t.addAnimation(e)}}),v){const e=Object(r.a)(),t=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(t||0!==n.length||0!==a.length?(e.addElement(t),e.addElement(a)):e.addElement(v.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),x.addAnimation(e),y){e.beforeClearStyles([s]).fromTo("transform",`translateX(${d})`,f?"translateX(-100%)":"translateX(100%)");const t=Object(i.g)(v);x.afterAddWrite(()=>{"normal"===x.getDirection()&&t.style.setProperty("display","none")})}else e.fromTo("transform",`translateX(${d})`,`translateX(${m})`).fromTo(s,1,p);if(t){const n=o(t).querySelector(".transition-effect");if(n){const t=n.querySelector(".transition-cover"),i=n.querySelector(".transition-shadow"),o=Object(r.a)(),a=Object(r.a)(),l=Object(r.a)();o.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(t).beforeClearStyles([s]).fromTo(s,.1,0),l.addElement(i).beforeClearStyles([s]).fromTo(s,.7,.03),o.addAnimation([a,l]),e.addAnimation([o])}}n.forEach(e=>{const t=Object(r.a)();t.addElement(e);const n=Object(r.a)();n.addElement(e.querySelector("ion-title"));const i=Object(r.a)(),a=e.querySelectorAll("ion-buttons,[menuToggle]"),l=e.closest("ion-header"),c=l&&l.classList.contains("header-collapse-condense-inactive"),u=Array.from(a).filter(e=>{const t=e.classList.contains("buttons-collapse");return t&&!c||!t});i.addElement(u);const p=Object(r.a)(),g=e.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");g.length>0&&p.addElement(g);const b=Object(r.a)();b.addElement(o(e).querySelector(".toolbar-background"));const v=Object(r.a)(),w=e.querySelector("ion-back-button");if(w&&v.addElement(w),t.addAnimation([n,i,p,v,b]),x.addAnimation(t),v.fromTo(s,.99,0),i.fromTo(s,.99,0),p.fromTo(s,.99,0),y){if(c||n.fromTo("transform",`translateX(${d})`,f?"translateX(-100%)":"translateX(100%)").fromTo(s,.99,0),p.fromTo("transform",`translateX(${d})`,f?"translateX(-100%)":"translateX(100%)"),b.beforeClearStyles([s,"transform"]),(null==l?void 0:l.translucent)?b.fromTo("transform","translateX(0px)",f?"translateX(-100%)":"translateX(100%)"):b.fromTo(s,"var(--opacity)",0),w&&!k){const e=Object(r.a)();e.addElement(o(w).querySelector(".button-text")).fromTo("transform",`translateX(${d})`,`translateX(${(f?-124:124)+"px"})`),t.addAnimation(e)}}else c||n.fromTo("transform",`translateX(${d})`,`translateX(${m})`).fromTo(s,.99,0).afterClearStyles([h,s]),p.fromTo("transform",`translateX(${d})`,`translateX(${m})`).afterClearStyles([h,s]),v.afterClearStyles([s]),n.afterClearStyles([s]),i.afterClearStyles([s])})}return x}catch(n){throw n}}},"7BDe":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.autoInit=!0,this.title=e.title||e.itemTitle,this.name=e.name,this.type=e.type||e.itemType,this.itemID=e.itemID,this.storageID=e.storageID,this.localCount=e.localCount,this.userID=e.userID,this.status=e.status,null==e.localCount&&(this.localCount=0)}setStorageID(e){this.storageID=e}setUserID(e){this.userID=e}setAutoInit(e){this.autoInit=e}isAutoInit(){return this.autoInit}getSimpleModel(){let e=Object.assign({},this),t=new r(e);return t.chat=null,t}}},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),s=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c extends s.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!e){this.destination=i.a;break}if("object"==typeof e){e instanceof c?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new c(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends c{constructor(e,t,n,s){let o;super(),this._parentSubscriber=e;let a=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,s=t.complete,t!==i.a&&(a=Object.create(t),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}__tryOrSetError(e,t,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(l.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8LZa":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.iconName="add",this.text=e,this.textKey=e}click(){this.clickFunction()}onClick(e){console.log(e,"function :D"),this.clickFunction=e}translate(){return this.optionMenuComp.headerComp.translateService.get(this.textKey).subscribe(e=>{this.text=e}),this}setChatOptionMenu(e){this.optionMenuComp=e}getIcon(){return this.iconName}setIcon(e){return this.iconName=e,this}}},"8Y7J":function(e,t,n){"use strict";n.d(t,"kb",(function(){return Go})),n.d(t,"lb",(function(){return Xo})),n.d(t,"mb",(function(){return Jo})),n.d(t,"nb",(function(){return Qo})),n.d(t,"jb",(function(){return Us})),n.d(t,"ib",(function(){return As})),n.d(t,"g",(function(){return Po})),n.d(t,"R",(function(){return Mo})),n.d(t,"w",(function(){return To})),n.d(t,"S",(function(){return Ue})),n.d(t,"W",(function(){return ze})),n.d(t,"c",(function(){return zs})),n.d(t,"A",(function(){return Ws})),n.d(t,"z",(function(){return Gs})),n.d(t,"b",(function(){return Xs})),n.d(t,"d",(function(){return Vs})),n.d(t,"e",(function(){return qs})),n.d(t,"U",(function(){return Uo})),n.d(t,"M",(function(){return _o})),n.d(t,"Y",(function(){return Oo})),n.d(t,"s",(function(){return Qs})),n.d(t,"f",(function(){return Zo})),n.d(t,"m",(function(){return Fs})),n.d(t,"l",(function(){return Mt})),n.d(t,"G",(function(){return ft})),n.d(t,"H",(function(){return pt})),n.d(t,"a",(function(){return X})),n.d(t,"P",(function(){return Q})),n.d(t,"N",(function(){return gr})),n.d(t,"Qb",(function(){return g})),n.d(t,"T",(function(){return w})),n.d(t,"p",(function(){return B})),n.d(t,"Rb",(function(){return N})),n.d(t,"V",(function(){return j})),n.d(t,"o",(function(){return k})),n.d(t,"n",(function(){return c})),n.d(t,"y",(function(){return u})),n.d(t,"I",(function(){return d})),n.d(t,"x",(function(){return fo})),n.d(t,"C",(function(){return ur})),n.d(t,"D",(function(){return pr})),n.d(t,"E",(function(){return hr})),n.d(t,"F",(function(){return dr})),n.d(t,"i",(function(){return no})),n.d(t,"j",(function(){return nr})),n.d(t,"k",(function(){return lr})),n.d(t,"t",(function(){return or})),n.d(t,"v",(function(){return sr})),n.d(t,"u",(function(){return jo})),n.d(t,"B",(function(){return Bs})),n.d(t,"J",(function(){return Fo})),n.d(t,"K",(function(){return Ro})),n.d(t,"L",(function(){return Nr})),n.d(t,"O",(function(){return Rr})),n.d(t,"h",(function(){return Mr})),n.d(t,"q",(function(){return kr})),n.d(t,"r",(function(){return Tr})),n.d(t,"Q",(function(){return $n})),n.d(t,"X",(function(){return Wo})),n.d(t,"xb",(function(){return Bn})),n.d(t,"bb",(function(){return Js})),n.d(t,"Z",(function(){return F})),n.d(t,"ab",(function(){return rr})),n.d(t,"eb",(function(){return ht})),n.d(t,"fb",(function(){return bt})),n.d(t,"gb",(function(){return Xe})),n.d(t,"vb",(function(){return E})),n.d(t,"Ab",(function(){return Ln})),n.d(t,"Kb",(function(){return v})),n.d(t,"yb",(function(){return Qn})),n.d(t,"zb",(function(){return Jn})),n.d(t,"ub",(function(){return js})),n.d(t,"tb",(function(){return Rs})),n.d(t,"cb",(function(){return Is})),n.d(t,"db",(function(){return Ds})),n.d(t,"Pb",(function(){return oe})),n.d(t,"Tb",(function(){return qn})),n.d(t,"Sb",(function(){return Un})),n.d(t,"Ob",(function(){return Hn})),n.d(t,"Ub",(function(){return Wn})),n.d(t,"hb",(function(){return Yo})),n.d(t,"ob",(function(){return zi})),n.d(t,"pb",(function(){return Cl})),n.d(t,"qb",(function(){return Kr})),n.d(t,"rb",(function(){return ps})),n.d(t,"sb",(function(){return Ko})),n.d(t,"wb",(function(){return ki})),n.d(t,"Bb",(function(){return Ni})),n.d(t,"Cb",(function(){return Pi})),n.d(t,"Db",(function(){return ca})),n.d(t,"Eb",(function(){return es})),n.d(t,"Fb",(function(){return fs})),n.d(t,"Ib",(function(){return gs})),n.d(t,"Gb",(function(){return da})),n.d(t,"Hb",(function(){return ha})),n.d(t,"Jb",(function(){return ia})),n.d(t,"Lb",(function(){return fa})),n.d(t,"Mb",(function(){return Yr})),n.d(t,"Nb",(function(){return ba}));var r=n("XNiG"),i=n("quSY"),s=n("HDdC"),o=n("VRyK"),a=n("w1tV");function l(e,t,n){const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}const c=l("Inject",e=>({token:e})),u=l("Optional"),h=l("Self"),d=l("SkipSelf");var p=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function f(e){for(let t in e)if(e[t]===f)return t;throw Error("Could not find renamed property on target object.")}function g(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function m(e){const t=e[b];return t&&t.token===e?t:null}const b=f({ngInjectableDef:f});function v(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(v).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}const y=f({__forward_ref__:f});function w(e){return e.__forward_ref__=w,e.toString=function(){return v(this())},e}function _(e){const t=e;return"function"==typeof t&&t.hasOwnProperty(y)&&t.__forward_ref__===w?t():e}const C="undefined"!=typeof globalThis&&globalThis,x="undefined"!=typeof window&&window,O="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,S="undefined"!=typeof global&&global,E=C||S||x||O;class k{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.ngInjectableDef=g({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const T=new k("INJECTOR",-1),M=new Object,A=/\n/gm,I=f({provide:String,useValue:f});let D=void 0;function P(e){const t=D;return D=e,t}function N(e,t=p.Default){return function(e,t=p.Default){if(void 0===D)throw new Error("inject() must be called from an injection context");return null===D?function(e,t,n){const r=m(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&p.Optional)return null;throw new Error(`Injector: NOT_FOUND [${v(e)}]`)}(e,0,t):D.get(e,t&p.Optional?null:void 0,t)}(e,t)}const j=N;class R{get(e,t=M){if(t===M){const t=new Error(`NullInjectorError: No provider for ${v(e)}!`);throw t.name="NullInjectorError",t}return t}}function L(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=v(t);if(t instanceof Array)i=t.map(v).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):v(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(A,"\n  ")}`}const F=new k("The presence of this token marks an injector as being the root injector."),$=function(e,t,n){return new H(e,t,n)};let B=(()=>{class e{static create(e,t){return Array.isArray(e)?$(e,t,""):$(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=M,e.NULL=new R,e.ngInjectableDef=g({token:e,providedIn:"any",factory:()=>N(T)}),e.__NG_ELEMENT_ID__=-1,e})();const V=function(e){return e},q=[],z=V,U=function(){return Array.prototype.slice.call(arguments)};class H{constructor(e,t=B.NULL,n=null){this.parent=t,this.source=n;const r=this._records=new Map;r.set(B,{token:B,fn:V,deps:q,value:this,useNew:!1}),r.set(T,{token:T,fn:V,deps:q,value:this,useNew:!1}),function e(t,n){if(n)if((n=_(n))instanceof Array)for(let r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw G("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw G("Unexpected provider",n);{let e=_(n.provide);const r=function(e){const t=function(e){let t=q;const n=e.deps;if(n&&n.length){t=[];for(let e=0;e<n.length;e++){let r=6,i=_(n[e]);if(i instanceof Array)for(let e=0,t=i;e<t.length;e++){const n=t[e];n instanceof u||n==u?r|=1:n instanceof d||n==d?r&=-3:n instanceof h||n==h?r&=-5:i=n instanceof c?n.token:_(n)}t.push({token:i,options:r})}}else if(e.useExisting)t=[{token:_(e.useExisting),options:6}];else if(!n&&!(I in e))throw G("'deps' required",e);return t}(e);let n=V,r=q,i=!1,s=_(e.provide);if(I in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=_(e.useClass);else{if("function"!=typeof s)throw G("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=s}return{deps:t,fn:n,useNew:i,value:r}}(n);if(!0===n.multi){let r=t.get(e);if(r){if(r.fn!==U)throw W(e)}else t.set(e,r={token:n.provide,deps:[],useNew:!1,fn:U,value:q});e=n,r.deps.push({token:e,options:6})}const i=t.get(e);if(i&&i.fn==U)throw W(e);t.set(e,r)}}}(r,e)}get(e,t,n=p.Default){const r=this._records.get(e);try{return function e(t,n,r,i,s,o){try{return function(t,n,r,i,s,o){let a;if(!n||o&p.SkipSelf)o&p.Self||(a=i.get(t,s,p.Default));else{if(a=n.value,a==z)throw Error("\u0275Circular dependency");if(a===q){n.value=z;let t=void 0,s=n.useNew,o=n.fn,l=n.deps,c=q;if(l.length){c=[];for(let t=0;t<l.length;t++){const n=l[t],s=n.options,o=2&s?r.get(n.token):void 0;c.push(e(n.token,o,r,o||4&s?i:B.NULL,1&s?null:B.THROW_IF_NOT_FOUND,p.Default))}}n.value=a=s?new o(...c):o.apply(t,c)}}return a}(t,n,r,i,s,o)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==z&&(n.value=q),a}}(e,r,this._records,this.parent,t,n)}catch(i){return function(e,t,n,r){const i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=L("\n"+e.message,i,"StaticInjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(i,e,0,this.source)}}toString(){const e=[];return this._records.forEach((t,n)=>e.push(v(n))),`StaticInjector[${e.join(", ")}]`}}function W(e){return G("Cannot mix multi providers and regular providers",e)}function G(e,t){return new Error(L(e,t,"StaticInjectorError"))}const X=new k("AnalyzeForEntryComponents"),J=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Q=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),Z={},Y=[],K=f({ngComponentDef:f}),ee=f({ngDirectiveDef:f}),te=f({ngPipeDef:f});let ne=0;function re(e){return function(e){return e[K]||null}(e)||function(e){return e[ee]||null}(e)}function ie(e){return function(e){return e[te]||null}(e)}function se(e,t){if(null==e)return Z;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const oe=function(e){const t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,consts:e.consts,vars:e.vars,factory:e.factory,template:e.template||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.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:e.changeDetection===J.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Q.Emulated,id:"c",styles:e.styles||Y,_:null,setInput:null,schemas:e.schemas||null,tView:null};return i._=""+{toString:()=>{const n=e.directives,s=e.features,o=e.pipes;i.id+=ne++,i.inputs=se(e.inputs,r),i.outputs=se(e.outputs),s&&s.forEach(e=>e(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(re):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(ie):null,t.hasOwnProperty(b)||(t[b]=g({token:t,factory:e.factory}))}},i},ae=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(E))();function le(e){for(;Array.isArray(e);)e=e[0];return e}function ce(e){return Array.isArray(e)&&"object"==typeof e[1]}function ue(e){return Array.isArray(e)&&!0===e[1]}function he(e,t){return t[1].data[e+20]}function de(e){const t=function(e){return e.__ngContext__}(e);return t?Array.isArray(t)?t:t.lView:null}function pe(e){e[18]=0}function fe(e,t,n,r){n||ge(e,t.preOrderHooks,t.preOrderCheckHooks,n,0,void 0!==r?r:null)}function ge(e,t,n,r,i,s){if(r)return;const o=(3&e[2])===i?t:n;o&&function(e,t,n,r){const i=null!=r?r:-1;let s=0;for(let o=void 0!==r?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(s=t[o],null!=r&&s>=r)break}else t[o]<0&&(e[18]+=65536),(s<i||-1==i)&&(me(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}(e,o,i,s),null==s&&(3&e[2])===i&&3!==i&&(e[2]&=1023,e[2]+=1)}function me(e,t,n,r){const i=n[r]<0,s=n[r+1],o=e[i?-n[r]:n[r]];i?e[2]>>10<e[18]>>16&&(3&e[2])===t&&(e[2]+=1024,s.call(o)):s.call(o)}let be=null;function ve(e){be=e}function ye(){return Ce}let we,_e,Ce,xe=1,Oe=0,Se=0;function Ee(e=null){Le!==e&&($e(null==e?-1:e),xe=null==e?0:1,Oe=0,Se=0)}function ke(){return we}function Te(e,t){we=e,_e=t}function Me(e=Ce){return 4==(4&e[2])}let Ae=null,Ie=-1;function De(e){Ie=e}let Pe=0;function Ne(e){Pe=e}function je(e,t){const n=Ce;return e&&(Ie=e[1].bindingStartIndex),we=t,_e=!0,Ce=Ae=e,n}function Re(e,t){const n=Ce[1];if(Me(Ce))Ce[2]&=-5;else try{pe(Ce),t&&ge(Ce,n.viewHooks,n.viewCheckHooks,!1,2,void 0)}finally{Ce[2]&=-73,Ce[7]=n.bindingStartIndex}ve(null),je(e,null)}let Le=-1;function Fe(){return Le}function $e(e){Le=e,ve(null)}let Be=null,Ve=!0,qe=!1;function ze(){return qe=!0,Ve}function Ue(){if(qe)throw new Error("Cannot enable prod mode after platform setup.");Ve=!1}class He{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e),this.inertBodyElement=this.inertDocument.createElement("body"),e.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}const t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);const n=t.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(e){e="<body><remove></remove>"+e+"</body>";try{const t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(t){return null}}getInertBodyElement_InertDocument(e){const t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)}stripCustomNsAttrs(e){const t=e.attributes;for(let r=t.length-1;0<r;r--){const n=t.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||e.removeAttribute(n)}let n=e.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const We=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ge=/^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 Xe(e){return(e=String(e)).match(We)||e.match(Ge)?e:(ze()&&console.warn(`WARNING: sanitizing unsafe URL value ${e} (see http://g.co/ng/security#xss)`),"unsafe:"+e)}function Je(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Qe(...e){const t={};for(const n of e)for(const e in n)n.hasOwnProperty(e)&&(t[e]=!0);return t}const Ze=Je("area,br,col,hr,img,wbr"),Ye=Je("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ke=Je("rp,rt"),et=Qe(Ke,Ye),tt=Qe(Ze,Qe(Ye,Je("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")),Qe(Ke,Je("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")),et),nt=Je("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rt=Je("srcset"),it=Qe(nt,rt,Je("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"),Je("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")),st=Je("script,style,template");class ot{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,n=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let e=this.checkClobberedElement(t,t.nextSibling);if(e){t=e;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!tt.hasOwnProperty(t))return this.sanitizedSomething=!0,!st.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const n=e.attributes;for(let i=0;i<n.length;i++){const e=n.item(i),t=e.name,s=t.toLowerCase();if(!it.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let o=e.value;nt[s]&&(o=Xe(o)),rt[s]&&(r=o,o=(r=String(r)).split(",").map(e=>Xe(e.trim())).join(", ")),this.buf.push(" ",t,'="',ct(o),'"')}var r;return this.buf.push(">"),!0}endElement(e){const t=e.nodeName.toLowerCase();tt.hasOwnProperty(t)&&!Ze.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(e){this.buf.push(ct(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t}}const at=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lt=/([^\#-~ |!])/g;function ct(e){return e.replace(/&/g,"&amp;").replace(at,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(lt,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ut;function ht(e,t){let n=null;try{ut=ut||new He(e);let r=t?String(t):"";n=ut.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=ut.getInertBodyElement(r)}while(r!==s);const o=new ot,a=o.sanitizeChildren(dt(n)||n);return ze()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const e=dt(n)||n;for(;e.firstChild;)e.removeChild(e.firstChild)}}}function dt(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}const pt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}();class ft{}const gt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),mt=/^url\(([^)]+)\)$/;function bt(e){if(!(e=String(e).trim()))return"";const t=e.match(mt);return t&&Xe(t[1])===t[1]||e.match(gt)&&function(e){let t=!0,n=!0;for(let r=0;r<e.length;r++){const i=e.charAt(r);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(ze()&&console.warn(`WARNING: sanitizing unsafe style value ${e} (see http://g.co/ng/security#xss).`),"unsafe")}const vt=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();function yt(e){return!!e.listen}class wt{constructor(){this._players=[]}flushPlayers(){for(let e=0;e<this._players.length;e++){const t=this._players[e];t.parent||0!==t.state||t.play()}this._players.length=0}queuePlayer(e){this._players.push(e)}}function _t(e,t,n,r){const i=[e||null,0,[],n||[null,null],r||[null,null],[0,0],[0],[0],null,null];return Ct(i,0),i}function Ct(e,t,n=-1,r){const i=e[2],s=2*t,o=s+2;for(let l=i.length;l<o;l+=2)i.push(-1,null);const a=s+0;n>=0&&-1===i[a]&&(i[a]=n,i[s+1]=r||null)}function xt(e,t,n,r,i,s){return s=s||n,i?e[i]=r:e.push(r),!!r&&(r.addEventListener(200,()=>{const t=e.indexOf(r);t&&(t<e[0]?e[t]=null:e.splice(t,1)),r.destroy()}),(t.playerHandler||(t.playerHandler=new wt)).queuePlayer(r,s),!0)}function Ot(e){const t=e[3];return ue(t)?t[3]:t}function St(e){return function(e){let t=ce(e)?e:de(e);for(;t&&!(512&t[2]);)t=Ot(t);return t}(e)[9]}function Et(e){return e.ngDebugContext}function kt(e){return e.ngOriginalError}function Tt(e,...t){e.error(...t)}class Mt{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Tt}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?Et(e)?Et(e):this._findContext(kt(e)):null}_findOriginalError(e){let t=kt(e);for(;t&&kt(t);)t=kt(t);return t}}function At(e){return"ng-reflect-"+e.replace(/[$@]/g,"_").replace(It,(...e)=>"-"+e[1].toLowerCase())}const It=/([A-Z])/g;function Dt(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Pt={};function Nt(e,t,n,r){const i=e[8];if(null!=i){const e=function(e,t){for(let n=1;n<e.length;n+=3)if(e[n+0]>t)return n;return e.length}(i,t);i.splice(e,0,t,n,r)}}function jt(e,t,n,r){for(let i=n;i<r;i+=4)if(on(e,i)===t)return i;return-1}function Rt(e,t,n=0){Ft(e,t,!0,n)}function Lt(e,t,n=0){Ft(e,t,!1,n)}function Ft(e,t,n,r=0){if(function(e,t,n,r){return!e[t?6:7][1+4*n+0]&&(r===Pt||_n(e,t,n)===r)}(e,n,r,t))return;const i=(t=t===Pt?_n(e,n,r):t)instanceof class{constructor(e,t){this.fn=e,this.value=t}}?new gn(t,e[0],n?1:2):null,s=i?t.value:t,o=n?1:3;let a,l,c,u=i?o:0,h=!1;(function(e,t,n){const r=e[9];if(t){if(!r||0===n)return!0}else if(!r)return!1;return r[n]!==t})(e,i,o)&&(function(e,t,n){let r=e[9]||(e[9]=[5,null,null,null,null]);n>0?r[n]=t:(r.splice(n=r[0],0,t,null),r[0]+=2)}(e,i,o),h=!0);let d=!1;n?("string"==typeof s?(c=s.split(/\s+/),d=!0):c=s?Object.keys(s):Y,a=Jt(e),l=e.length):(a=Qt(e),l=Jt(e),c=s?Object.keys(s):Y),function(e,t,n,r,i,s,o,a,l){let c=!1;const u=1+4*t,h=e[l?6:7],d=h[u+1],p=h[u+3];let f=1===h[u+0]||!(h[u+2]||!a),g=0,m=0;const b=!0===o;let v=r,y=s.length;for(;v<d;){const r=on(e,v);if(y)for(let i=0;i<s.length;i++){const a=s[i],u=a?l?a:Cn(a):null;if(u&&r===u){const r=sn(e,v),a=mn(e,v),l=!!b||o[u],h=rn(e,v);fn(h,r,l)&&yn(r,l,a,t)&&(Yt(e,v,l),Kt(e,v,n,t),pn(e,h,l)&&(Vt(e,v,!0),c=!0)),s[i]=null,y--;break}}v+=4}if(y){const r=l?null:vn(e,t);e:for(let a=0;a<s.length;a++){const u=s[a];if(!u)continue;const h=!!b||o[u],p=l?u:Cn(u),y=v>=d;for(let r=v;r<i;r+=4)if(on(e,r)===p){const i=mn(e,r),s=en(e,r),o=sn(e,r),a=rn(e,r);yn(o,h,i,t)&&(y&&(cn(e,v,r),g++),fn(a,o,h)&&((null===h||void 0===h&&h!==o)&&(f=!0),Yt(e,v,h),(null!==o||pn(e,a,h))&&(Vt(e,v,!0),c=!0)),i===t&&n===s||Kt(e,v,n,t)),v+=4;continue e}null!=h&&(f=!0,g++,un(e,y?v:d+4*m,l,p,1|dn(e,p,l,r),h,t,n),m++,i+=4,v+=4,c=!0)}}for(;v<i;){f=!0;const r=sn(e,v),i=rn(e,v);mn(e,v),null!=r&&(f=!0),fn(i,r,null)&&(Yt(e,v,null),pn(e,i,r)&&(Vt(e,v,!0),c=!0),Kt(e,v,n,t)),v+=4}f=f||p!==g,function(e,t,n,r,i,s,o,a){const l=e[n?6:7],c=1+4*t;if(a){const e=i+4*o;for(let t=c+4;t<l.length;t+=4)l[t+1]=e,l[t+0]=1}l[c+0]=0,l[c+1]=i,l[c+2]=r,l[c+3]=o;let u=o;for(let h=1;h<c;h+=4)u+=l[h+3];if(!n){const t=e[6],n=s-t[2];for(let e=1;e<t.length;e+=4)t[e+1]+=n}l[0]=u}(e,t,l,a,d,i,g,f),c&&an(e,!0)}(e,r,u,a,l,c,d||s||Z,t,n),h&&ln(e,!0)}function $t(e,t,n,r,i,s,o){n=i&&n?i(t,n,3):n,s||o?(s&&s.setValue(t,n),o&&o.setValue(t,n)):n?(n=n.toString(),yt(r)?r.setStyle(e,t,n,vt.DashCase):e.style.setProperty(t,n)):yt(r)?r.removeStyle(e,t,vt.DashCase):e.style.removeProperty(t)}function Bt(e,t,n,r,i,s){i||s?(i&&i.setValue(t,n),s&&s.setValue(t,n)):""!==t&&(n?yt(r)?r.addClass(e,t):e.classList.add(t):yt(r)?r.removeClass(e,t):e.classList.remove(t))}function Vt(e,t,n){const r=t>=10?t+0:t;n?e[r]|=1:e[r]&=-2}function qt(e,t){return 1==(1&e[t>=10?t+0:t])}function zt(e,t){return 2==(2&e[t>=10?t+0:t])}function Ut(e,t){return 4==(4&e[t>=10?t+0:t])}function Ht(e,t,n){return 31&e|t<<5|n<<19}function Wt(e,t){const n=Gt(t);return(2&t?e[4]:e[3])[n]}function Gt(e){return e>>5&16383}function Xt(e){const t=e>>19&16383;return t>=10?t:-1}function Jt(e){return e[6][2]}function Qt(e){return e[7][2]}function Zt(e,t,n){e[t+1]=n}function Yt(e,t,n){e[t+2]=n}function Kt(e,t,n,r){const i=function(e,t){return t<<16|e}(r,n);e[t+3]=i}function en(e,t){return e[t+3]>>16&65535}function tn(e,t){const n=en(e,t);if(n){const t=e[9];if(t)return t[n]}return null}function nn(e,t,n){e[1===t?t:t+0]=n}function rn(e,t){return e[1===t?t:t+0]}function sn(e,t){return e[t+2]}function on(e,t){return e[t+1]}function an(e,t){Vt(e,1,t)}function ln(e,t){t?e[1]|=8:e[1]&=-9}function cn(e,t,n){if(t===n)return;const r=sn(e,t),i=on(e,t),s=rn(e,t),o=en(e,t),a=mn(e,t);let l=s,c=rn(e,n);const u=Xt(l);if(u>=0){const t=rn(e,u);nn(e,u,Ht(t,Gt(t),n))}const h=Xt(c);if(h>=0){const n=rn(e,h);nn(e,h,Ht(n,Gt(n),t))}Yt(e,t,sn(e,n)),Zt(e,t,on(e,n)),nn(e,t,rn(e,n)),Kt(e,t,en(e,n),mn(e,n)),Yt(e,n,r),Zt(e,n,i),nn(e,n,s),Kt(e,n,o,a)}function un(e,t,n,r,i,s,o,a){const l=t<e.length;e.splice(t,0,1|i|(n?2:0),r,s,0),Kt(e,t,a,o),l&&function(e,t){for(let n=t;n<e.length;n+=4){const t=Xt(rn(e,n));if(t>0){const r=Gt(rn(e,t));nn(e,t,Ht((qt(e,t)?1:0)|(zt(e,t)?2:0)|(Ut(e,t)?4:0),r,n))}}}(e,t+4)}function hn(e,t){return null!==e}function dn(e,t,n,r){let i,s=r&&r(t,null,1)?4:0;return n?(s|=2,i=bn(e[4],t)):i=bn(e[3],t),i=i>0?i+1:0,Ht(s,i,0)}function pn(e,t,n){const r=Wt(e,t);return!r||fn(t,r,n)}function fn(e,t,n){return!(2&e)&&t&&n&&4&e?t.toString()!==n.toString():t!==n}class gn{constructor(e,t,n){this._element=t,this._type=n,this._values={},this._dirty=!1,this._factory=e}setValue(e,t){this._values[e]!==t&&(this._values[e]=t,this._dirty=!0)}buildPlayer(e,t){if(this._dirty){const n=this._factory.fn(this._element,this._type,this._values,t,e||null);return this._values={},this._dirty=!1,n}}}function mn(e,t){return 65535&e[t+3]}function bn(e,t){for(let n=2;n<e.length;n+=3)if(e[n]===t)return n;return-1}function vn(e,t){const n=e[2];return n[2*t+1]||n[1]||null}function yn(e,t,n,r){return null==e||(null!=t?r<=n:n===r)}function wn(e){const t=e[4];let n=t[1];if(null===n){n="";for(let e=2;e<t.length;e+=3)t[e+1]&&(n+=(n.length?" ":"")+t[e]);t[1]=n}return n}function _n(e,t,n){return e[t?6:7][1+4*n+2]||null}function Cn(e){return e.replace(/[a-z][A-Z]/g,e=>`${e.charAt(0)}-${e.charAt(1).toLowerCase()}`)}function xn(e,t,n,r,i=0){const s=e[n?6:7];if(t>0){const e=1+4*t;for(;s.length<e;)s.push(0,r,null,0)}s.push(0,r,null,i)}const On=(()=>Promise.resolve(null))();function Sn(e){const t=e[1],n=Me(e);if(t.firstTemplatePass=!1,e[7]=t.bindingStartIndex,!n){const n=!1;fe(e,t,n,void 0),function(e){for(let t=e[14];null!==t;t=t[4])if(-1===t[2]&&ue(t))for(let e=9;e<t.length;e++){const n=t[e];kn(n,n[1],n[9])}}(e),En(t,e),pe(e),ge(e,t.contentHooks,t.contentCheckHooks,n,1,void 0),function(e,t){const n=Fe();try{if(e.expandoInstructions){let n=t[7]=e.expandoStartIndex;De(n);let r=-1,i=-1;for(let s=0;s<e.expandoInstructions.length;s++){const o=e.expandoInstructions[s];"number"==typeof o?(o<=0?(i=-o,Ee(i),n+=9+e.expandoInstructions[++s],r=n):n+=o,De(n)):(null!==o&&(t[7]=n,o(2,le(t[r]),i),xe+=1+Se,Oe=0,Se=0),r++)}}}finally{Ee(n)}}(t,e)}n&&t.staticContentQueries&&En(t,e),function(e){if(null!=e)for(let t=0;t<e.length;t++)In(e[t])}(t.components)}function En(e,t){if(null!=e.contentQueries){Ne(0);for(let n=0;n<e.contentQueries.length;n++){const r=e.contentQueries[n];e.data[r].contentQueries(2,t[r],r)}}}function kn(e,t,n){const r=_e,i=ke();let s;if(512&e[2])Dn(St(e));else{let o=!1;try{Te(null,!0),s=je(e,e[6]),pe(e),Mn(e,t.template,An(e),n),e[1].firstTemplatePass=!1,Sn(e),o=!0}finally{Re(s,o),Te(i,r)}}}function Tn(e,t,n){const r=e[11],i=je(e,e[6]),s=Me(e);let o=!1;try{!s&&r.begin&&r.begin(),s&&(n&&Mn(e,n,1,t),Sn(e),e[2]&=-5),pe(e),n&&Mn(e,n,2,t),Sn(e),o=!0}finally{!s&&r.end&&r.end(),Re(i,o)}}function Mn(e,t,n,r){Be=null;const i=Fe();try{Ee(null),2&n&&function(e,t){fe(e,e[1],!1,0),$e(0)}(e),t(n,r)}finally{$e(i)}}function An(e){return Me(e)?1:2}function In(e){const t=ye(),n=function(e,t){const n=t[e];return ce(n)?n:n[0]}(e,t);(128==(128&n[2])||Me(t))&&80&n[2]&&(function(e){const t=e[1];for(let n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),function(e,t){const n=e[1],r=je(e,e[6]),i=n.template,s=Me(e);let o=!1;try{pe(e),s&&Pn(1,n,t),Mn(e,i,An(e),t),Sn(e),s&&!n.staticViewQueries||Pn(2,n,t),o=!0}finally{Re(r,o)}}(n,n[9]))}function Dn(e){for(let t=0;t<e.components.length;t++){const n=e.components[t];Tn(de(n),n)}}function Pn(e,t,n){const r=t.viewQuery;r&&(Ne(t.viewQueryStartIndex),r(e,n))}function Nn(e,t,n){const r=e[1];for(let i=0;i<t.length;){const s=t[i++],o=t[i++],a=t[i++],l=e[s],c=r.data[s];c.setInput?c.setInput(l,n,o,a):l[a]=n}}let jn=null;function Rn(){if(!jn){const e=E.Symbol;if(e&&e.iterator)jn=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(jn=n)}}}return jn}function Ln(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function Fn(e,t){const n=Bn(e),r=Bn(t);if(n&&r)return function(e,t,n){const r=e[Rn()](),i=t[Rn()]();for(;;){const e=r.next(),t=i.next();if(e.done&&t.done)return!0;if(e.done||t.done)return!1;if(!n(e.value,t.value))return!1}}(e,t,Fn);{const i=e&&("object"==typeof e||"function"==typeof e),s=t&&("object"==typeof t||"function"==typeof t);return!(n||!i||r||!s)||Ln(e,t)}}class $n{constructor(e){this.wrapped=e}static wrap(e){return new $n(e)}static unwrap(e){return $n.isWrapped(e)?e.wrapped:e}static isWrapped(e){return e instanceof $n}}function Bn(e){return!!Vn(e)&&(Array.isArray(e)||!(e instanceof Map)&&Rn()in e)}function Vn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qn(e,t,n){const r=ke();r.stylingTemplate||(r.stylingTemplate=_t());const i=Gn();i?(Ct(r.stylingTemplate,i),(r.onElementCreationFns=r.onElementCreationFns||[]).push(()=>{zn(r,e,t,n,i),function(e,t){let n=e[8];n||(n=e[8]=[0]),n[0]=t}(r.stylingTemplate,i)})):zn(r,e,t,n,0)}function zn(e,t,n,r,i){!function(e,t,n,r,i){if(16&e[1])return;if(!function(e,t,n,r){const i=e[2],s=2*t;return!(s<i.length&&i[s+0]>=0||(Ct(e,t,e[5].length,r),0))}(e,t,0,i))return;r&&(r=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(Cn(e[n]));return t}(r));const s=e[5],o=s[1],a=s[0],l=e[6],c=e[7],u=4*a;let h=10+u,d=h+4*o,p=d+u;const f=s.length;s.push(r?r.length:0,n?n.length:0);let g=0;const m=[];if(r&&r.length)for(let I=0;I<r.length;I++){const t=r[I];let n=jt(e,t,10,h);-1==n&&(n=h+g,g+=4,m.push(t)),s.push(n)}const b=[];if(n&&n.length)for(let I=0;I<n.length;I++){const t=n[I];let r=jt(e,t,h,d);-1==r?(r=d+g,g+=4,b.push(t)):r+=4*m.length,s.push(r)}let v=2;if(m.length)for(;v<f;){const e=s[v+0],t=s[v+1];if(t){const n=v+2+e;for(let e=n;e<n+t;e++)s[e]+=4*m.length}v+=2+(e+t)}const y=b.length+m.length;for(let I=10;I<e.length;I+=4){const t=I>=d,n=I>=(t?p:h),r=rn(e,I),i=Gt(r);let s=Xt(r);s+=t?n?4*m.length:0:4*y+4*(n?m.length:0),nn(e,I,Ht(r,i,s))}for(let I=0;I<4*m.length;I++)e.splice(p,0,null),e.splice(h,0,null),h++,d++,p+=2;for(let I=0;I<4*b.length;I++)e.splice(d,0,null),e.push(null),d++,p++;const w=e[4],_=e[3];for(let I=0;I<y;I++){const n=I>=m.length,r=n?I-m.length:I,s=n?b[r]:m[r];let l,c;n?(l=p+4*(o+r),c=h+4*(o+r)):(l=d+4*(a+r),c=10+4*(a+r));let u=n?w:_,f=bn(u,s);-1===f?(x=u,O=s,S=!n&&null,E=t,null===(C=null)&&(C=x.length,x.push(null,null,null),x[C+0]=O),x[C+1]=S,x[C+2]=E,f=C+1):f+=1;const g=dn(e,s,n,i||null);nn(e,c,Ht(g,f,l)),Zt(e,c,s),Yt(e,c,null),Kt(e,c,0,t),nn(e,l,Ht(g,f,c)),Zt(e,l,s),Yt(e,l,null),Kt(e,l,0,t)}var C,x,O,S,E;s[1]=o+b.length,s[0]=a+m.length,l[0]+=b.length,c[0]+=m.length;const k=4*m.length,T=4*b.length,M=c.length;xn(e,t,!1,d+4*a,m.length);for(let I=1;I<M;I+=4)c[I+1]+=T+k;const A=l.length;xn(e,t,!0,p+4*o,b.length);for(let I=1;I<A;I+=4)l[I+1]+=2*k+T;nn(e,1,Ht(0,0,d))}(e.stylingTemplate,i,t,n,r)}function Un(e){const t=Fe(),n=ye(),r=Xn(t,n),i=Gn();if(i)Nt(r,i,Lt,[r,e,i]);else{const i=he(t,n);if(function(e){return 0!=(16&e.flags)}(i)&&e!==Pt){const t=wn(r),s=(t.length?t+" ":"")+function(e){let t="";if(e){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];t+=(r?";":"")+`${i}:${e[i]}`}}return t}(e);Nn(n,i.inputs.style,s),e=Pt}Lt(r,e)}}function Hn(e){const t=Fe(),n=ye(),r=Xn(t,n),i=Gn();if(i)Nt(r,i,Rt,[r,e,i]);else{const i=he(t,n);if(function(e){return 0!=(8&e.flags)}(i)&&e!==Pt){const t=wn(r),s=(t.length?t+" ":"")+function(e){return e&&"string"!=typeof e&&(e=Object.keys(e).join(" ")),e||""}(e);Nn(n,i.inputs.class,s),e=Pt}Rt(r,e)}}function Wn(){const e=Fe(),t=Gn()||0,n=ye(),r=3===he(e,n).type?n[12]:null,i=0!=(8&n[2]);(function(e,t,n,r,i,s,o=0){let a=0;if(function(e,t){const n=e[8];return!n||n[0]===t}(e,o)&&(function(e){const t=e[8];if(t){for(let e=1;e<t.length;e+=3)t[e+1].apply(this,t[e+2]);t.length=1}}(e),function(e){return qt(e,1)}(e))){const o=e[0],l=8&e[1],c=Qt(e);for(let n=10;n<e.length;n+=4)if(qt(e,n)){const a=rn(e,n),l=mn(e,n),u=on(e,n),h=sn(e,n),d=4&a?vn(e,l):null,p=tn(e,n),f=!!(2&a);let g=h;n<c&&!hn(g)&&(g=sn(e,Xt(a))),hn(g)||(g=Wt(e,a)),t&&(!r||g)&&(f?Bt(o,u,!!g,t,i,p):$t(o,u,g,t,d,s,p)),Vt(e,n,!1)}if(l){const t=Array.isArray(n)?St(n):n,i=function(e){return e[9]}(e),s=i[0];for(let e=1;e<s;e+=2){const n=i[e],s=e+1,l=i[s];if(n){const e=n.buildPlayer(l,r);void 0!==e&&(null!=e&&xt(i,t,o,e,s)&&a++,l&&l.destroy())}else l&&l.destroy()}ln(e,!1)}an(e,!1)}return a})(Xn(e,n),r,n,i,null,null,t)>0&&function(e,t){const n=0===e.flags;if(e.flags|=2,n&&e.clean==On){let t;e.clean=new Promise(e=>t=e),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Dn(e)),2&e.flags){e.flags&=-3;const t=e.playerHandler;t&&t.flushPlayers()}e.clean=On,t(null)})}}(St(n)),ve(null)}function Gn(){return xe+Oe}function Xn(e,t){let n=be;return n||(n=function(e,t){let n=e,r=t[n],i=t;for(;Array.isArray(r);)i=r,r=r[0];if(s=i,Array.isArray(s)&&"number"==typeof s[1])return i;var s;{const s=he(e-20,t).stylingTemplate;return i!==t&&(n=0),i[n]=s?function(e,t){const n=t.slice();for(let r=0;r<10;r++){const e=t[r];Array.isArray(e)&&(n[r]=e.slice())}return n[0]=e,n[1]|=16,n}(r,s):_t(r)}}(e+20,t),ve(n)),n}function Jn(e){return!!e&&"function"==typeof e.then}function Qn(e){return!!e&&"function"==typeof e.subscribe}class Zn{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}class Yn{}function Kn(e){const t=Error(`No component factory found for ${v(e)}. Did you add it to @NgModule.entryComponents?`);return t[er]=e,t}const er="ngComponent";class tr{resolveComponentFactory(e){throw Kn(e)}}let nr=(()=>{class e{}return e.NULL=new tr,e})();class rr{constructor(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(let r=0;r<e.length;r++){const t=e[r];this._factories.set(t.componentType,t)}}resolveComponentFactory(e){let t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Kn(e);return new ir(t,this._ngModule)}}class ir extends Yn{constructor(e,t){super(),this.factory=e,this.ngModule=t,this.selector=e.selector,this.componentType=e.componentType,this.ngContentSelectors=e.ngContentSelectors,this.inputs=e.inputs,this.outputs=e.outputs}create(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)}}class sr{}class or{}function ar(...e){}let lr=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>cr(e),e})();const cr=ar;class ur{}class hr{}const dr=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}();let pr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>fr(),e})();const fr=ar;class gr{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const mr=new gr("8.1.3");class br{constructor(){}supports(e){return Bn(e)}create(e){return new yr(e)}}const vr=(e,t)=>t;class yr{constructor(e){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=e||vr}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex<xr(n,r,i)?t:n,o=xr(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;t<=s&&s<e&&(i[n]=r+1)}i[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Bn(e))throw new Error(`Error trying to diff '${v(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Ln(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,n,r,t)),Ln(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),s=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Rn()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Ln(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Ln(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ln(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ln(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new wr(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Cr),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Cr),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class wr{constructor(e,t){this.item=e,this.trackById=t,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 _r{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Ln(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class Cr{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new _r,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xr(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Or{constructor(){}supports(e){return e instanceof Map||Vn(e)}create(){return new Sr}}class Sr{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Vn(e)))throw new Error(`Error trying to diff '${v(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new Er(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Ln(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class Er{constructor(e){this.key=e,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 kr=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new d,new u]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.ngInjectableDef=g({token:e,providedIn:"root",factory:()=>new e([new br])}),e})(),Tr=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new d,new u]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.ngInjectableDef=g({token:e,providedIn:"root",factory:()=>new e([new Or])}),e})(),Mr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Ar(),e})();const Ar=(...e)=>{},Ir=[new Or],Dr=new kr([new br]),Pr=new Tr(Ir);let Nr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>jr(e,lr),e})();const jr=ar;let Rr=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Lr(e,lr),e})();const Lr=ar;function Fr(e,t,n,r){let i=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return $r(n,t),n}(i,e)}function $r(e,t){e.ngDebugContext=t,e.ngErrorLogger=t.logError.bind(t)}function Br(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}function Vr(e,t,n){const r=e.state,i=1792&r;return i===t?(e.state=-1793&r|n,e.initIndex=-1,!0):i===n}function qr(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zr(e,t){return e.nodes[t]}function Ur(e,t){return e.nodes[t]}function Hr(e,t){return e.nodes[t]}function Wr(e,t){return e.nodes[t]}function Gr(e,t){return e.nodes[t]}const Xr={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Jr=()=>{},Qr=new Map;function Zr(e){let t=Qr.get(e);return t||(t=v(e)+"_"+Qr.size,Qr.set(e,t)),t}function Yr(e,t,n,r){if($n.isWrapped(r)){r=$n.unwrap(r);const i=e.def.nodes[t].bindingIndex+n,s=$n.unwrap(e.oldValues[i]);e.oldValues[i]=new $n(s)}return r}function Kr(e){return{id:"$$undefined",styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let ei=0;function ti(e,t,n,r){return!(!(2&e.state)&&Ln(e.oldValues[t.bindingIndex+n],r))}function ni(e,t,n,r){return!!ti(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ri(e,t,n,r){const i=e.oldValues[t.bindingIndex+n];if(1&e.state||!Fn(i,r)){const s=t.bindings[n].name;throw Fr(Xr.createDebugContext(e,t.nodeIndex),`${s}: ${i}`,`${s}: ${r}`,0!=(1&e.state))}}function ii(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function si(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function oi(e,t,n,r){try{return ii(33554432&e.def.nodes[t].flags?Ur(e,t).componentView:e),Xr.handleEvent(e,t,n,r)}catch(i){e.root.errorHandler.handleError(i)}}function ai(e){return e.parent?Ur(e.parent,e.parentNodeDef.nodeIndex):null}function li(e){return e.parent?e.parentNodeDef.parent:null}function ci(e,t){switch(201347067&t.flags){case 1:return Ur(e,t.nodeIndex).renderElement;case 2:return zr(e,t.nodeIndex).renderText}}function ui(e,t){return e?`${e}:${t}`:t}function hi(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function di(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function pi(e){return 1<<e%32}function fi(e){const t={};let n=0;const r={};return e&&e.forEach(([e,i])=>{"number"==typeof e?(t[e]=i,n|=pi(e)):r[e]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function gi(e,t){return e.map(e=>{let n,r;return Array.isArray(e)?[r,n]=e:(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,"__source",{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Zr(n)}})}function mi(e,t,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Q.Native?Ur(e,n.renderParent.nodeIndex).renderElement:void 0:t}const bi=new WeakMap;function vi(e){let t=bi.get(e);return t||(t=e(()=>Jr),t.factory=e,bi.set(e,t)),t}function yi(e,t,n,r,i){3===t&&(n=e.renderer.parentNode(ci(e,e.def.lastRenderRootNode))),wi(e,t,0,e.def.nodes.length-1,n,r,i)}function wi(e,t,n,r,i,s,o){for(let a=n;a<=r;a++){const n=e.def.nodes[a];11&n.flags&&Ci(e,n,t,i,s,o),a+=n.childCount}}function _i(e,t,n,r,i,s){let o=e;for(;o&&!hi(o);)o=o.parent;const a=o.parent,l=li(o),c=l.nodeIndex+l.childCount;for(let u=l.nodeIndex+1;u<=c;u++){const e=a.def.nodes[u];e.ngContentIndex===t&&Ci(a,e,n,r,i,s),u+=e.childCount}if(!a.parent){const o=e.root.projectableNodes[t];if(o)for(let t=0;t<o.length;t++)xi(e,o[t],n,r,i,s)}}function Ci(e,t,n,r,i,s){if(8&t.flags)_i(e,t.ngContent.index,n,r,i,s);else{const o=ci(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&xi(e,o,n,r,i,s),32&t.bindingFlags&&xi(Ur(e,t.nodeIndex).componentView,o,n,r,i,s)):xi(e,o,n,r,i,s),16777216&t.flags){const o=Ur(e,t.nodeIndex).viewContainer._embeddedViews;for(let e=0;e<o.length;e++)yi(o[e],n,r,i,s)}1&t.flags&&!t.element.name&&wi(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,i,s)}}function xi(e,t,n,r,i,s){const o=e.renderer;switch(n){case 1:o.appendChild(r,t);break;case 2:o.insertBefore(r,t,i);break;case 3:o.removeChild(r,t);break;case 0:s.push(t)}}const Oi=/^:([^:]+):(.+)$/;function Si(e){if(":"===e[0]){const t=e.match(Oi);return[t[1],t[2]]}return["",e]}function Ei(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function ki(e,t,n,r,i,s,o,a,l,c,u,h,d,p,f,g,m,b,v,y){switch(e){case 1:return t+Ti(n)+r;case 2:return t+Ti(n)+r+Ti(i)+s;case 3:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a;case 4:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c;case 5:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c+Ti(u)+h;case 6:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c+Ti(u)+h+Ti(d)+p;case 7:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c+Ti(u)+h+Ti(d)+p+Ti(f)+g;case 8:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c+Ti(u)+h+Ti(d)+p+Ti(f)+g+Ti(m)+b;case 9:return t+Ti(n)+r+Ti(i)+s+Ti(o)+a+Ti(l)+c+Ti(u)+h+Ti(d)+p+Ti(f)+g+Ti(m)+b+Ti(v)+y;default:throw new Error("Does not support more than 9 expressions")}}function Ti(e){return null!=e?e.toString():""}const Mi=new Object,Ai=Zr(B),Ii=Zr(T),Di=Zr(sr);function Pi(e,t,n,r){return n=_(n),{index:-1,deps:gi(r,v(t)),flags:e,token:t,value:n}}function Ni(e){const t={},n=[];let r=!1;for(let i=0;i<e.length;i++){const s=e[i];s.token===F&&!0===s.value&&(r=!0),1073741824&s.flags&&n.push(s.token),s.index=i,t[Zr(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}function ji(e,t,n=B.THROW_IF_NOT_FOUND){const r=P(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const o=t.tokenKey;switch(o){case Ai:case Ii:case Di:return e}const a=e._def.providersByKey[o];let l;if(a){let t=e._providers[a.index];return void 0===t&&(t=e._providers[a.index]=Ri(e,a)),t===Mi?void 0:t}if((l=m(t.token))&&(i=e,null!=(s=l).providedIn&&(function(e,t){return e._def.modules.indexOf(t)>-1}(i,s.providedIn)||"root"===s.providedIn&&i._def.isRoot))){const n=e._providers.length;return e._def.providers[n]=e._def.providersByKey[t.tokenKey]={flags:5120,value:l.factory,deps:[],index:n,token:t.token},e._providers[n]=Mi,e._providers[n]=Ri(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{P(r)}var i,s}function Ri(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const r=n.length;switch(r){case 0:return new t;case 1:return new t(ji(e,n[0]));case 2:return new t(ji(e,n[0]),ji(e,n[1]));case 3:return new t(ji(e,n[0]),ji(e,n[1]),ji(e,n[2]));default:const i=new Array(r);for(let t=0;t<r;t++)i[t]=ji(e,n[t]);return new t(...i)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const r=n.length;switch(r){case 0:return t();case 1:return t(ji(e,n[0]));case 2:return t(ji(e,n[0]),ji(e,n[1]));case 3:return t(ji(e,n[0]),ji(e,n[1]),ji(e,n[2]));default:const i=Array(r);for(let t=0;t<r;t++)i[t]=ji(e,n[t]);return t(...i)}}(e,t.value,t.deps);break;case 2048:n=ji(e,t.deps[0]);break;case 256:n=t.value}return n===Mi||null===n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?Mi:n}function Li(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const r=n[t];return r.viewContainerParent=null,Vi(n,t),Xr.dirtyParentQueries(r),$i(r),r}function Fi(e,t,n){const r=t?ci(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),s=n.renderer.nextSibling(r);yi(n,2,i,s,void 0)}function $i(e){yi(e,3,null,null,void 0)}function Bi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Vi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}const qi=new Object;function zi(e,t,n,r,i,s){return new Ui(e,t,n,r,i,s)}class Ui extends Yn{constructor(e,t,n,r,i,s){super(),this.selector=e,this.componentType=t,this._inputs=r,this._outputs=i,this.ngContentSelectors=s,this.viewDefFactory=n}get inputs(){const e=[],t=this._inputs;for(let n in t)e.push({propName:n,templateName:t[n]});return e}get outputs(){const e=[];for(let t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e}create(e,t,n,r){if(!r)throw new Error("ngModule should be provided");const i=vi(this.viewDefFactory),s=i.nodes[0].element.componentProvider.nodeIndex,o=Xr.createRootView(e,t||[],n,i,r,qi),a=Hr(o,s).instance;return n&&o.renderer.setAttribute(Ur(o,0).renderElement,"ng-version",mr.full),new Hi(o,new Ji(o),a)}}class Hi extends class{}{constructor(e,t,n){super(),this._view=e,this._viewRef=t,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=t,this.changeDetectorRef=t,this.instance=n}get location(){return new lr(Ur(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Ki(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(e){this._viewRef.onDestroy(e)}}function Wi(e,t,n){return new Gi(e,t,n)}class Gi{constructor(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}get element(){return new lr(this._data.renderElement)}get injector(){return new Ki(this._view,this._elDef)}get parentInjector(){let e=this._view,t=this._elDef.parent;for(;!t&&e;)t=li(e),e=e.parent;return e?new Ki(e,t):new Ki(this._view,null)}clear(){for(let e=this._embeddedViews.length-1;e>=0;e--){const t=Li(this._data,e);Xr.destroyView(t)}}get(e){const t=this._embeddedViews[e];if(t){const e=new Ji(t);return e.attachToViewContainerRef(this),e}return null}get length(){return this._embeddedViews.length}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;i||e instanceof ir||(i=s.get(sr));const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=e;return function(e,t,n,r){let i=t.viewContainer._embeddedViews;null==n&&(n=i.length),r.viewContainerParent=e,Bi(i,n,r),function(e,t){const n=ai(t);if(!n||n===e||16&t.state)return;t.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,r),Xr.dirtyParentQueries(r),Fi(t,n>0?i[n-1]:null,r)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(e._view);return function(e,t,n){const r=e.viewContainer._embeddedViews,i=r[t];Vi(r,t),null==n&&(n=r.length),Bi(r,n,i),Xr.dirtyParentQueries(i),$i(i),Fi(e,n>0?r[n-1]:null,i)}(this._data,n,t),e}indexOf(e){return this._embeddedViews.indexOf(e._view)}remove(e){const t=Li(this._data,e);t&&Xr.destroyView(t)}detach(e){const t=Li(this._data,e);return t?new Ji(t):null}}function Xi(e){return new Ji(e)}class Ji{constructor(e){this._view=e,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return yi(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){ii(this._view)}detach(){this._view.state&=-5}detectChanges(){const e=this._view.root.rendererFactory;e.begin&&e.begin();try{Xr.checkAndUpdateView(this._view)}finally{e.end&&e.end()}}checkNoChanges(){Xr.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Xr.destroyView(this._view)}detachFromAppRef(){this._appRef=null,$i(this._view),Xr.dirtyParentQueries(this._view)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}}function Qi(e,t){return new Zi(e,t)}class Zi extends Nr{constructor(e,t){super(),this._parentView=e,this._def=t}createEmbeddedView(e){return new Ji(Xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))}get elementRef(){return new lr(Ur(this._parentView,this._def.nodeIndex).renderElement)}}function Yi(e,t){return new Ki(e,t)}class Ki{constructor(e,t){this.view=e,this.elDef=t}get(e,t=B.THROW_IF_NOT_FOUND){return Xr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Zr(e)},t)}}function es(e,t){const n=e.def.nodes[t];if(1&n.flags){const t=Ur(e,n.nodeIndex);return n.element.template?t.template:t.renderElement}if(2&n.flags)return zr(e,n.nodeIndex).renderText;if(20240&n.flags)return Hr(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ts(e){return new ns(e.renderer)}class ns{constructor(e){this.delegate=e}selectRootElement(e){return this.delegate.selectRootElement(e)}createElement(e,t){const[n,r]=Si(t),i=this.delegate.createElement(r,n);return e&&this.delegate.appendChild(e,i),i}createViewRoot(e){return e}createTemplateAnchor(e){const t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t}createText(e,t){const n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n}projectNodes(e,t){for(let n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])}attachViewAfter(e,t){const n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e);for(let i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],r)}detachView(e){for(let t=0;t<e.length;t++){const n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}}destroyView(e,t){for(let n=0;n<t.length;n++)this.delegate.destroyNode(t[n])}listen(e,t,n){return this.delegate.listen(e,t,n)}listenGlobal(e,t,n){return this.delegate.listen(e,t,n)}setElementProperty(e,t,n){this.delegate.setProperty(e,t,n)}setElementAttribute(e,t,n){const[r,i]=Si(t);null!=n?this.delegate.setAttribute(e,i,n,r):this.delegate.removeAttribute(e,i,r)}setBindingDebugInfo(e,t,n){}setElementClass(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)}setElementStyle(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)}invokeElementMethod(e,t,n){e[t].apply(e,n)}setText(e,t){this.delegate.setValue(e,t)}animate(){throw new Error("Renderer.animate is no longer supported!")}}function rs(e,t,n,r){return new is(e,t,n,r)}class is{constructor(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=new Array(t.providers.length);for(let r=0;r<t.providers.length;r++){const i=t.providers[r];4096&i.flags||void 0===n[r]&&(n[r]=Ri(e,i))}}(this)}get(e,t=B.THROW_IF_NOT_FOUND,n=p.Default){let r=0;return n&p.SkipSelf?r|=1:n&p.Self&&(r|=4),ji(this,{token:e,tokenKey:Zr(e),flags:r},t)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(nr)}destroy(){if(this._destroyed)throw new Error(`The ng module ${v(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,r=new Set;for(let i=0;i<n.providers.length;i++)if(131072&n.providers[i].flags){const t=e._providers[i];if(t&&t!==Mi){const e=t.ngOnDestroy;"function"!=typeof e||r.has(t)||(e.apply(t),r.add(t))}}}(this),this._destroyListeners.forEach(e=>e())}onDestroy(e){this._destroyListeners.push(e)}}const ss=Zr(ur),os=Zr(pr),as=Zr(lr),ls=Zr(Rr),cs=Zr(Nr),us=Zr(Mr),hs=Zr(B),ds=Zr(T);function ps(e,t,n,r,i,s,o,a){const l=[];if(o)for(let u in o){const[e,t]=o[u];l[e]={flags:8,name:u,nonMinifiedName:t,ns:null,securityContext:null,suffix:null}}const c=[];if(a)for(let u in a)c.push({type:1,propName:u,target:null,eventName:a[u]});return ms(e,t|=16384,n,r,i,i,s,l,c)}function fs(e,t,n){return ms(-1,e|=16,null,0,t,t,n)}function gs(e,t,n,r,i){return ms(-1,e,t,0,n,r,i)}function ms(e,t,n,r,i,s,o,a,l){const{matchedQueries:c,references:u,matchedQueryIds:h}=fi(n);l||(l=[]),a||(a=[]),s=_(s);const d=gi(o,v(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:u,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:Ei(a),outputs:l,element:null,provider:{token:i,value:s,deps:d},text:null,query:null,ngContent:null}}function bs(e,t){return _s(e,t)}function vs(e,t){let n=e;for(;n.parent&&!hi(n);)n=n.parent;return Cs(n.parent,li(n),!0,t.provider.value,t.provider.deps)}function ys(e,t){const n=Cs(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const i=t.outputs[r],s=n[i.propName];if(!Qn(s))throw new Error(`@Output ${i.propName} not initialized in '${n.constructor.name}'.`);{const n=s.subscribe(ws(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function ws(e,t,n){return r=>oi(e,t,n,r)}function _s(e,t){const n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Cs(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,i){const s=i.length;switch(s){case 0:return r();case 1:return r(Os(e,t,n,i[0]));case 2:return r(Os(e,t,n,i[0]),Os(e,t,n,i[1]));case 3:return r(Os(e,t,n,i[0]),Os(e,t,n,i[1]),Os(e,t,n,i[2]));default:const o=Array(s);for(let r=0;r<s;r++)o[r]=Os(e,t,n,i[r]);return r(...o)}}(e,t.parent,n,r.value,r.deps);case 2048:return Os(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Cs(e,t,n,r,i){const s=i.length;switch(s){case 0:return new r;case 1:return new r(Os(e,t,n,i[0]));case 2:return new r(Os(e,t,n,i[0]),Os(e,t,n,i[1]));case 3:return new r(Os(e,t,n,i[0]),Os(e,t,n,i[1]),Os(e,t,n,i[2]));default:const o=new Array(s);for(let r=0;r<s;r++)o[r]=Os(e,t,n,i[r]);return new r(...o)}}const xs={};function Os(e,t,n,r,i=B.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const s=e;2&r.flags&&(i=null);const o=r.tokenKey;o===us&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);let a=e;for(;a;){if(t)switch(o){case ss:return ts(Ss(a,t,n));case os:return Ss(a,t,n).renderer;case as:return new lr(Ur(a,t.nodeIndex).renderElement);case ls:return Ur(a,t.nodeIndex).viewContainer;case cs:if(t.element.template)return Ur(a,t.nodeIndex).template;break;case us:return Xi(Ss(a,t,n));case hs:case ds:return Yi(a,t);default:const e=(n?t.element.allProviders:t.element.publicProviders)[o];if(e){let t=Hr(a,e.nodeIndex);return t||(t={instance:_s(a,e)},a.nodes[e.nodeIndex]=t),t.instance}}n=hi(a),t=li(a),a=a.parent,4&r.flags&&(a=null)}const l=s.root.injector.get(r.token,xs);return l!==xs||i===xs?l:s.root.ngModule.injector.get(r.token,i)}function Ss(e,t,n){let r;if(n)r=Ur(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!hi(r);)r=r.parent;return r}function Es(e,t,n,r,i,s){if(32768&n.flags){const t=Ur(e,n.parent.nodeIndex).componentView;2&t.def.flags&&(t.state|=8)}if(t.instance[n.bindings[r].name]=i,524288&n.flags){s=s||{};const t=$n.unwrap(e.oldValues[n.bindingIndex+r]);s[n.bindings[r].nonMinifiedName]=new Zn(t,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=i,s}function ks(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let r=0;for(let i=0;i<n.length;i++){const s=n[i];let o=s.parent;for(!o&&s.flags&t&&Ms(e,i,s.flags&t,r++),0==(s.childFlags&t)&&(i+=s.childCount);o&&1&o.flags&&i===o.nodeIndex+o.childCount;)o.directChildFlags&t&&(r=Ts(e,o,t,r)),o=o.parent}}function Ts(e,t,n,r){for(let i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){const t=e.def.nodes[i];t.flags&n&&Ms(e,i,t.flags&n,r++),i+=t.childCount}return r}function Ms(e,t,n,r){const i=Hr(e,t);if(!i)return;const s=i.instance;s&&(Xr.setCurrentNode(e,t),1048576&n&&qr(e,512,r)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&qr(e,768,r)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}const As=new k("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>ae}),Is={},Ds=function(){var e={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,CurrencySymbol:15,CurrencyName:16,Currencies:17,PluralCase:18,ExtraData:19};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}(),Ps=void 0;var Ns=["en",[["a","p"],["AM","PM"],Ps],[["AM","PM"],Ps,Ps],[["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"]],Ps,[["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"]],Ps,[["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}",Ps,"{1} 'at' {0}",Ps],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];function js(e){return Rs(e)[Ds.PluralCase]}function Rs(e){const t=e.toLowerCase().replace(/_/g,"-");let n=Is[t];if(n)return n;const r=t.split("-")[0];if(n=Is[r],n)return n;if("en"===r)return Ns;throw new Error(`Missing locale data for the locale "${e}".`)}let Ls="en-US";class Fs extends r.a{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,s=e=>null,o=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(s=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(o=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,s,o);return e instanceof i.a&&e.add(a),a}}function $s(){return this._results[Rn()]()}class Bs{constructor(){this.dirty=!0,this._results=[],this.changes=new Fs,this.length=0;const e=Rn(),t=Bs.prototype;t[e]||(t[e]=$s)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),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()}}const Vs=new k("Application Initializer");class qs{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Jn(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}const zs=new k("AppId");function Us(){return`${Hs()}${Hs()}${Hs()}`}function Hs(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ws=new k("Platform Initializer"),Gs=new k("Platform ID"),Xs=new k("appBootstrapListener");class Js{log(e){console.log(e)}warn(e){console.warn(e)}}const Qs=new k("LocaleId");function Zs(){throw new Error("Runtime compiler is not loaded")}const Ys=Zs,Ks=Zs,eo=Zs,to=Zs;class no{constructor(){this.compileModuleSync=Ys,this.compileModuleAsync=Ks,this.compileModuleAndAllComponentsSync=eo,this.compileModuleAndAllComponentsAsync=to}clearCache(){}clearCacheFor(e){}getModuleId(e){}}class ro{}let io,so;function oo(){const e=E.wtf;return!(!e||(io=e.trace,!io)||(so=io.events,0))}const ao=oo();function lo(e,t){return null}const co=ao?function(e,t=null){return so.createScope(e,t)}:(e,t)=>lo,uo=ao?function(e,t){return io.leaveScope(e,t),t}:(e,t)=>t,ho=(()=>Promise.resolve(0))();function po(e){"undefined"==typeof Zone?ho.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class fo{constructor({enableLongStackTrace:e=!1}){if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fs(!1),this.onMicrotaskEmpty=new Fs(!1),this.onStable=new Fs(!1),this.onError=new Fs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");var t;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)),e&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,n,r,i,s,o)=>{try{return vo(t),e.invokeTask(r,i,s,o)}finally{yo(t)}},onInvoke:(e,n,r,i,s,o,a)=>{try{return vo(t),e.invoke(r,i,s,o,a)}finally{yo(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,bo(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,mo,go,go);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function go(){}const mo={};function bo(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function vo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yo(e){e._nesting--,bo(e)}class wo{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fs,this.onMicrotaskEmpty=new Fs,this.onStable=new Fs,this.onError=new Fs}run(e){return e()}runGuarded(e){return e()}runOutsideAngular(e){return e()}runTask(e){return e()}}class _o{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.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:()=>{fo.assertNotInAngularZone(),po(()=>{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())po(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,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(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}class Co{constructor(){this._applications=new Map,Eo.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return Eo.findTestabilityInTree(this,e,t)}}class xo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}function Oo(e){Eo=e}let So,Eo=new xo;const ko=new k("AllowMultipleToken");class To{constructor(e,t){this.name=e,this.token=t}}function Mo(e,t,n=[]){const r="Platform: "+t,i=new k(r);return(t=[])=>{let s=Ao();if(!s||s.injector.get(ko,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0});!function(e){if(So&&!So.destroyed&&!So.injector.get(ko,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");So=e.get(Io);const t=e.get(Ws,null);t&&t.forEach(e=>e())}(B.create({providers:e,name:r}))}return function(e){const t=Ao();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ao(){return So&&!So.destroyed?So:null}class Io{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e){let t;return t="noop"===e?new wo:("zone.js"===e?void 0:e)||new fo({enableLongStackTrace:ze()}),t}(t?t.ngZone:void 0),r=[{provide:fo,useValue:n}];return n.run(()=>{const t=B.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(Mt,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o=i.injector.get(Qs,"en-US"),Ls=o.toLowerCase().replace(/_/g,"-"),i.onDestroy(()=>No(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return Jn(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(qs);return e.runInitializers(),e.donePromise.then(()=>(this._moduleDoBootstrap(i),i))});var o})}bootstrapModule(e,t=[]){const n=Do({},t);return function(e,t,n){return e.get(ro).createCompiler([t]).compileModuleAsync(n)}(this.injector,n,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(Po);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${v(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}function Do(e,t){return Array.isArray(t)?t.reduce(Do,e):Object.assign({},e,t)}let Po=(()=>{class e{constructor(e,t,n,r,i,l){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ze(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new s.a(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),u=new s.a(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{fo.assertNotInAngularZone(),po(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{fo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}bootstrap(e,t){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=e instanceof Yn?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n instanceof ir?null:this._injector.get(sr),i=n.create(B.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(_o,null);return s&&i.injector.get(Co).registerApplication(i.location.nativeElement,s),this._loadComponent(i),ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");const t=e._tickScope();try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1,uo(t)}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;No(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Xs,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),No(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e._tickScope=co("ApplicationRef#tick()"),e})();function No(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class jo{}class Ro{}const Lo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};class Fo{constructor(e,t){this._compiler=e,this._config=t||Lo}load(e){return this._compiler instanceof no?this.loadFactory(e):this.loadAndCompile(e)}loadAndCompile(e){let[t,r]=e.split("#");return void 0===r&&(r="default"),n("zn8P")(t).then(e=>e[r]).then(e=>$o(e,t,r)).then(e=>this._compiler.compileModuleAsync(e))}loadFactory(e){let[t,r]=e.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+t+this._config.factoryPathSuffix).then(e=>e[r+i]).then(e=>$o(e,t,r))}}function $o(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Bo{constructor(e,t){this.name=e,this.callback=t}}class Vo{constructor(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof qo&&t.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class qo extends Vo{constructor(e,t,n){super(e,t,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=e}addChild(e){e&&(this.childNodes.push(e),e.parent=this)}removeChild(e){const t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))}insertChildrenAfter(e,t){const n=this.childNodes.indexOf(e);-1!==n&&(this.childNodes.splice(n+1,0,...t),t.forEach(t=>{t.parent&&t.parent.removeChild(t),e.parent=this}))}insertBefore(e,t){const n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))}query(e){return this.queryAll(e)[0]||null}queryAll(e){const t=[];return function e(t,n,r){t.childNodes.forEach(t=>{t instanceof qo&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t}queryAllNodes(e){const t=[];return function e(t,n,r){t instanceof qo&&t.childNodes.forEach(t=>{n(t)&&r.push(t),t instanceof qo&&e(t,n,r)})}(this,e,t),t}get children(){return this.childNodes.filter(e=>e instanceof qo)}triggerEventHandler(e,t){this.listeners.forEach(n=>{n.name==e&&n.callback(t)})}}const zo=new Map,Uo=function(e){return zo.get(e)||null};function Ho(e){zo.set(e.nativeNode,e)}const Wo=Mo(null,"core",[{provide:Gs,useValue:"unknown"},{provide:Io,deps:[B]},{provide:Co,deps:[]},{provide:Js,deps:[]}]);function Go(){return Dr}function Xo(){return Pr}function Jo(e){return e||"en-US"}function Qo(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}class Zo{constructor(e){}}function Yo(e,t,n,r,i,s){e|=1;const{matchedQueries:o,references:a,matchedQueryIds:l}=fi(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:o,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?vi(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Jr},provider:null,text:null,query:null,ngContent:null}}function Ko(e,t,n,r,i,s,o=[],a,l,c,u,h){c||(c=Jr);const{matchedQueries:d,references:p,matchedQueryIds:f}=fi(n);let g=null,m=null;s&&([g,m]=Si(s)),a=a||[];const b=new Array(a.length);for(let w=0;w<a.length;w++){const[e,t,n]=a[w],[r,i]=Si(t);let s=void 0,o=void 0;switch(15&e){case 4:o=n;break;case 1:case 8:s=n}b[w]={flags:e,ns:r,name:i,nonMinifiedName:i,securityContext:s,suffix:o}}l=l||[];const v=new Array(l.length);for(let w=0;w<l.length;w++){const[e,t]=l[w];v[w]={type:0,target:e,eventName:t,propName:null}}const y=(o=o||[]).map(([e,t])=>{const[n,r]=Si(e);return[n,r,t]});return h=function(e){if(e&&"$$undefined"===e.id){const t=null!=e.encapsulation&&e.encapsulation!==Q.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+ei++:"$$empty"}return e&&"$$empty"===e.id&&(e=null),e||null}(h),u&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:f,references:p,ngContentIndex:r,childCount:i,bindings:b,bindingFlags:Ei(b),outputs:v,element:{ns:g,name:m,attrs:y,template:null,componentProvider:null,componentView:u||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Jr},provider:null,text:null,query:null,ngContent:null}}function ea(e,t,n){const r=n.element,i=e.root.selectorOrNode,s=e.renderer;let o;if(e.parent||!i){o=r.name?s.createElement(r.name,r.ns):s.createComment("");const i=mi(e,t,n);i&&s.appendChild(i,o)}else o=s.selectRootElement(i,!!r.componentRendererType&&r.componentRendererType.encapsulation===Q.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[e,t,n]=r.attrs[a];s.setAttribute(o,t,n,e)}return o}function ta(e,t,n,r){for(let i=0;i<n.outputs.length;i++){const s=n.outputs[i],o=na(e,n.nodeIndex,ui(s.target,s.eventName));let a=s.target,l=e;"component"===s.target&&(a=null,l=t);const c=l.renderer.listen(a||r,s.eventName,o);e.disposables[n.outputIndex+i]=c}}function na(e,t,n){return r=>oi(e,t,n,r)}function ra(e,t,n,r){if(!ni(e,t,n,r))return!1;const i=t.bindings[n],s=Ur(e,t.nodeIndex),o=s.renderElement,a=i.name;switch(15&i.flags){case 1:!function(e,t,n,r,i,s){const o=t.securityContext;let a=o?e.root.sanitizer.sanitize(o,s):s;a=null!=a?a.toString():null;const l=e.renderer;null!=s?l.setAttribute(n,i,a,r):l.removeAttribute(n,i,r)}(e,i,o,i.ns,a,r);break;case 2:!function(e,t,n,r){const i=e.renderer;r?i.addClass(t,n):i.removeClass(t,n)}(e,o,a,r);break;case 4:!function(e,t,n,r,i){let s=e.root.sanitizer.sanitize(pt.STYLE,i);if(null!=s){s=s.toString();const e=t.suffix;null!=e&&(s+=e)}else s=null;const o=e.renderer;null!=s?o.setStyle(n,r,s):o.removeStyle(n,r)}(e,i,o,a,r);break;case 8:!function(e,t,n,r,i){const s=t.securityContext;let o=s?e.root.sanitizer.sanitize(s,i):i;e.renderer.setProperty(n,r,o)}(33554432&t.flags&&32&i.flags?s.componentView:e,i,o,a,r)}return!0}function ia(e,t,n){let r=[];for(let i in n)r.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:pi(t),bindings:r},ngContent:null}}function sa(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&di(e);){let n=e.parentNodeDef;e=e.parent;const r=n.nodeIndex+n.childCount;for(let i=0;i<=r;i++){const r=e.def.nodes[i];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Gr(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const t=e.def.nodes[n];134217728&t.flags&&536870912&t.flags&&Gr(e,n).setDirty(),n+=t.childCount}}function oa(e,t){const n=Gr(e,t.nodeIndex);if(!n.dirty)return;let r,i=void 0;if(67108864&t.flags){const n=t.parent.parent;i=aa(e,n.nodeIndex,n.nodeIndex+n.childCount,t.query,[]),r=Hr(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=aa(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(i);const s=t.query.bindings;let o=!1;for(let a=0;a<s.length;a++){const e=s[a];let t;switch(e.bindingType){case 0:t=n.first;break;case 1:t=n,o=!0}r[e.propName]=t}o&&n.notifyOnChanges()}function aa(e,t,n,r,i){for(let s=t;s<=n;s++){const t=e.def.nodes[s],n=t.matchedQueries[r.id];if(null!=n&&i.push(la(e,t,n)),1&t.flags&&t.element.template&&(t.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Ur(e,s);if((t.childMatchedQueries&r.filterId)===r.filterId&&(aa(e,s+1,s+t.childCount,r,i),s+=t.childCount),16777216&t.flags){const e=n.viewContainer._embeddedViews;for(let t=0;t<e.length;t++){const s=e[t],o=ai(s);o&&o===n&&aa(s,0,s.def.nodes.length-1,r,i)}}const o=n.template._projectedViews;if(o)for(let e=0;e<o.length;e++){const t=o[e];aa(t,0,t.def.nodes.length-1,r,i)}}(t.childMatchedQueries&r.filterId)!==r.filterId&&(s+=t.childCount)}return i}function la(e,t,n){if(null!=n)switch(n){case 1:return Ur(e,t.nodeIndex).renderElement;case 0:return new lr(Ur(e,t.nodeIndex).renderElement);case 2:return Ur(e,t.nodeIndex).template;case 3:return Ur(e,t.nodeIndex).viewContainer;case 4:return Hr(e,t.nodeIndex).instance}}function ca(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ua(e,t,n){const r=mi(e,t,n);r&&_i(e,n.ngContent.index,1,r,null,void 0)}function ha(e,t){return pa(128,e,new Array(t+1))}function da(e,t){const n=Object.keys(t),r=n.length,i=new Array(r);for(let s=0;s<r;s++){const e=n[s];i[t[e]]=e}return pa(64,e,i)}function pa(e,t,n){const r=new Array(n.length);for(let i=0;i<n.length;i++){const e=n[i];r[i]={flags:8,name:e,ns:null,nonMinifiedName:e,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:Ei(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function fa(e,t,n){const r=new Array(n.length-1);for(let i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function ga(e,t,n){let r;const i=e.renderer;r=i.createText(n.text.prefix);const s=mi(e,t,n);return s&&i.appendChild(s,r),{renderText:r}}function ma(e,t){return(null!=e?e.toString():"")+t.suffix}function ba(e,t,n,r){let i=0,s=0,o=0,a=0,l=0,c=null,u=null,h=!1,d=!1,p=null;for(let f=0;f<t.length;f++){const e=t[f];if(e.nodeIndex=f,e.parent=c,e.bindingIndex=i,e.outputIndex=s,e.renderParent=u,o|=e.flags,l|=e.matchedQueryIds,e.element){const t=e.element;t.publicProviders=c?c.element.publicProviders:Object.create(null),t.allProviders=t.publicProviders,h=!1,d=!1,e.element.template&&(l|=e.element.template.nodeMatchedQueries)}if(ya(c,e,t.length),i+=e.bindings.length,s+=e.outputs.length,!u&&3&e.flags&&(p=e),20224&e.flags){h||(h=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);const t=0!=(32768&e.flags);0==(8192&e.flags)||t?c.element.publicProviders[Zr(e.provider.token)]=e:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Zr(e.provider.token)]=e),t&&(c.element.componentProvider=e)}if(c?(c.childFlags|=e.flags,c.directChildFlags|=e.flags,c.childMatchedQueries|=e.matchedQueryIds,e.element&&e.element.template&&(c.childMatchedQueries|=e.element.template.nodeMatchedQueries)):a|=e.flags,e.childCount>0)c=e,va(e)||(u=e);else for(;c&&f===c.nodeIndex+c.childCount;){const e=c.parent;e&&(e.childFlags|=c.childFlags,e.childMatchedQueries|=c.childMatchedQueries),c=e,u=c&&va(c)?c.renderParent:c}}return{factory:null,nodeFlags:o,rootNodeFlags:a,nodeMatchedQueries:l,flags:e,nodes:t,updateDirectives:n||Jr,updateRenderer:r||Jr,handleEvent:(e,n,r,i)=>t[n].element.handleEvent(e,r,i),bindingCount:i,outputCount:s,lastRenderRootNode:p}}function va(e){return 0!=(1&e.flags)&&null===e.element.name}function ya(e,t,n){const r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function wa(e,t,n,r){const i=xa(e.root,e.renderer,e,t,n);return Oa(i,e.component,r),Sa(i),i}function _a(e,t,n){const r=xa(e,e.renderer,null,null,t);return Oa(r,n,n),Sa(r),r}function Ca(e,t,n,r){const i=t.element.componentRendererType;let s;return s=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,xa(e.root,s,e,t.element.componentProvider,n)}function xa(e,t,n,r,i){const s=new Array(i.nodes.length),o=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:o,initIndex:-1}}function Oa(e,t,n){e.component=t,e.context=n}function Sa(e){let t;hi(e)&&(t=Ur(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,r=e.nodes;for(let i=0;i<n.nodes.length;i++){const s=n.nodes[i];let o;switch(Xr.setCurrentNode(e,i),201347067&s.flags){case 1:const n=ea(e,t,s);let a=void 0;if(33554432&s.flags){const t=vi(s.element.componentView);a=Xr.createComponentView(e,s,t,n)}ta(e,a,s,n),o={renderElement:n,componentView:a,viewContainer:null,template:s.element.template?Qi(e,s):void 0},16777216&s.flags&&(o.viewContainer=Wi(e,s,o));break;case 2:o=ga(e,t,s);break;case 512:case 1024:case 2048:case 256:o=r[i],o||4096&s.flags||(o={instance:bs(e,s)});break;case 16:o={instance:vs(e,s)};break;case 16384:o=r[i],o||(o={instance:ys(e,s)}),32768&s.flags&&Oa(Ur(e,s.parent.nodeIndex).componentView,o.instance,o.instance);break;case 32:case 64:case 128:o={value:void 0};break;case 67108864:case 134217728:o=new Bs;break;case 8:ua(e,t,s),o=void 0}r[i]=o}Na(e,Pa.CreateViewNodes),Fa(e,201326592,268435456,0)}function Ea(e){Ma(e),Xr.updateDirectives(e,1),ja(e,Pa.CheckNoChanges),Xr.updateRenderer(e,1),Na(e,Pa.CheckNoChanges),e.state&=-97}function ka(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Vr(e,0,256),Ma(e),Xr.updateDirectives(e,0),ja(e,Pa.CheckAndUpdate),Fa(e,67108864,536870912,0);let t=Vr(e,256,512);ks(e,2097152|(t?1048576:0)),Xr.updateRenderer(e,0),Na(e,Pa.CheckAndUpdate),Fa(e,134217728,536870912,0),t=Vr(e,512,768),ks(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Vr(e,768,1024)}function Ta(e,t,n,r,i,s,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,i,s,o,a,l,c,u,h){switch(201347067&t.flags){case 1:return function(e,t,n,r,i,s,o,a,l,c,u,h){const d=t.bindings.length;let p=!1;return d>0&&ra(e,t,0,n)&&(p=!0),d>1&&ra(e,t,1,r)&&(p=!0),d>2&&ra(e,t,2,i)&&(p=!0),d>3&&ra(e,t,3,s)&&(p=!0),d>4&&ra(e,t,4,o)&&(p=!0),d>5&&ra(e,t,5,a)&&(p=!0),d>6&&ra(e,t,6,l)&&(p=!0),d>7&&ra(e,t,7,c)&&(p=!0),d>8&&ra(e,t,8,u)&&(p=!0),d>9&&ra(e,t,9,h)&&(p=!0),p}(e,t,n,r,i,s,o,a,l,c,u,h);case 2:return function(e,t,n,r,i,s,o,a,l,c,u,h){let d=!1;const p=t.bindings,f=p.length;if(f>0&&ni(e,t,0,n)&&(d=!0),f>1&&ni(e,t,1,r)&&(d=!0),f>2&&ni(e,t,2,i)&&(d=!0),f>3&&ni(e,t,3,s)&&(d=!0),f>4&&ni(e,t,4,o)&&(d=!0),f>5&&ni(e,t,5,a)&&(d=!0),f>6&&ni(e,t,6,l)&&(d=!0),f>7&&ni(e,t,7,c)&&(d=!0),f>8&&ni(e,t,8,u)&&(d=!0),f>9&&ni(e,t,9,h)&&(d=!0),d){let d=t.text.prefix;f>0&&(d+=ma(n,p[0])),f>1&&(d+=ma(r,p[1])),f>2&&(d+=ma(i,p[2])),f>3&&(d+=ma(s,p[3])),f>4&&(d+=ma(o,p[4])),f>5&&(d+=ma(a,p[5])),f>6&&(d+=ma(l,p[6])),f>7&&(d+=ma(c,p[7])),f>8&&(d+=ma(u,p[8])),f>9&&(d+=ma(h,p[9]));const g=zr(e,t.nodeIndex).renderText;e.renderer.setValue(g,d)}return d}(e,t,n,r,i,s,o,a,l,c,u,h);case 16384:return function(e,t,n,r,i,s,o,a,l,c,u,h){const d=Hr(e,t.nodeIndex),p=d.instance;let f=!1,g=void 0;const m=t.bindings.length;return m>0&&ti(e,t,0,n)&&(f=!0,g=Es(e,d,t,0,n,g)),m>1&&ti(e,t,1,r)&&(f=!0,g=Es(e,d,t,1,r,g)),m>2&&ti(e,t,2,i)&&(f=!0,g=Es(e,d,t,2,i,g)),m>3&&ti(e,t,3,s)&&(f=!0,g=Es(e,d,t,3,s,g)),m>4&&ti(e,t,4,o)&&(f=!0,g=Es(e,d,t,4,o,g)),m>5&&ti(e,t,5,a)&&(f=!0,g=Es(e,d,t,5,a,g)),m>6&&ti(e,t,6,l)&&(f=!0,g=Es(e,d,t,6,l,g)),m>7&&ti(e,t,7,c)&&(f=!0,g=Es(e,d,t,7,c,g)),m>8&&ti(e,t,8,u)&&(f=!0,g=Es(e,d,t,8,u,g)),m>9&&ti(e,t,9,h)&&(f=!0,g=Es(e,d,t,9,h,g)),g&&p.ngOnChanges(g),65536&t.flags&&qr(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),f}(e,t,n,r,i,s,o,a,l,c,u,h);case 32:case 64:case 128:return function(e,t,n,r,i,s,o,a,l,c,u,h){const d=t.bindings;let p=!1;const f=d.length;if(f>0&&ni(e,t,0,n)&&(p=!0),f>1&&ni(e,t,1,r)&&(p=!0),f>2&&ni(e,t,2,i)&&(p=!0),f>3&&ni(e,t,3,s)&&(p=!0),f>4&&ni(e,t,4,o)&&(p=!0),f>5&&ni(e,t,5,a)&&(p=!0),f>6&&ni(e,t,6,l)&&(p=!0),f>7&&ni(e,t,7,c)&&(p=!0),f>8&&ni(e,t,8,u)&&(p=!0),f>9&&ni(e,t,9,h)&&(p=!0),p){const p=Wr(e,t.nodeIndex);let g;switch(201347067&t.flags){case 32:g=new Array(d.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=i),f>3&&(g[3]=s),f>4&&(g[4]=o),f>5&&(g[5]=a),f>6&&(g[6]=l),f>7&&(g[7]=c),f>8&&(g[8]=u),f>9&&(g[9]=h);break;case 64:g={},f>0&&(g[d[0].name]=n),f>1&&(g[d[1].name]=r),f>2&&(g[d[2].name]=i),f>3&&(g[d[3].name]=s),f>4&&(g[d[4].name]=o),f>5&&(g[d[5].name]=a),f>6&&(g[d[6].name]=l),f>7&&(g[d[7].name]=c),f>8&&(g[d[8].name]=u),f>9&&(g[d[9].name]=h);break;case 128:const e=n;switch(f){case 1:g=e.transform(n);break;case 2:g=e.transform(r);break;case 3:g=e.transform(r,i);break;case 4:g=e.transform(r,i,s);break;case 5:g=e.transform(r,i,s,o);break;case 6:g=e.transform(r,i,s,o,a);break;case 7:g=e.transform(r,i,s,o,a,l);break;case 8:g=e.transform(r,i,s,o,a,l,c);break;case 9:g=e.transform(r,i,s,o,a,l,c,u);break;case 10:g=e.transform(r,i,s,o,a,l,c,u,h)}}p.value=g}return p}(e,t,n,r,i,s,o,a,l,c,u,h);default:throw"unreachable"}}(e,t,r,i,s,o,a,l,c,u,h,d):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let r=!1;for(let i=0;i<n.length;i++)ra(e,t,i,n[i])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)ni(e,t,s,n[s])&&(i=!0);if(i){let i="";for(let e=0;e<n.length;e++)i+=ma(n[e],r[e]);i=t.text.prefix+i;const s=zr(e,t.nodeIndex).renderText;e.renderer.setValue(s,i)}return i}(e,t,n);case 16384:return function(e,t,n){const r=Hr(e,t.nodeIndex),i=r.instance;let s=!1,o=void 0;for(let a=0;a<n.length;a++)ti(e,t,a,n[a])&&(s=!0,o=Es(e,r,t,a,n[a],o));return o&&i.ngOnChanges(o),65536&t.flags&&qr(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const r=t.bindings;let i=!1;for(let s=0;s<n.length;s++)ni(e,t,s,n[s])&&(i=!0);if(i){const i=Wr(e,t.nodeIndex);let s;switch(201347067&t.flags){case 32:s=n;break;case 64:s={};for(let i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:const e=n[0],t=n.slice(1);s=e.transform(...t)}i.value=s}return i}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Ma(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const r=t.nodes[n];if(4&r.flags){const t=Ur(e,n).template._projectedViews;if(t)for(let n=0;n<t.length;n++){const r=t[n];r.state|=32,si(r,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Aa(e,t,n,r,i,s,o,a,l,c,u,h,d){return 0===n?function(e,t,n,r,i,s,o,a,l,c,u,h){const d=t.bindings.length;d>0&&ri(e,t,0,n),d>1&&ri(e,t,1,r),d>2&&ri(e,t,2,i),d>3&&ri(e,t,3,s),d>4&&ri(e,t,4,o),d>5&&ri(e,t,5,a),d>6&&ri(e,t,6,l),d>7&&ri(e,t,7,c),d>8&&ri(e,t,8,u),d>9&&ri(e,t,9,h)}(e,t,r,i,s,o,a,l,c,u,h,d):function(e,t,n){for(let r=0;r<n.length;r++)ri(e,t,r,n[r])}(e,t,r),!1}function Ia(e,t){if(Gr(e,t.nodeIndex).dirty)throw Fr(Xr.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Da(e){if(!(128&e.state)){if(ja(e,Pa.Destroy),Na(e,Pa.Destroy),ks(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(!(16&e.state))return;const t=ai(e);if(t){const n=t.template._projectedViews;n&&(Vi(n,n.indexOf(e)),Xr.dirtyParentQueries(e))}}(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const t=e.def.nodes[n];1&t.flags?e.renderer.destroyNode(Ur(e,n).renderElement):2&t.flags?e.renderer.destroyNode(zr(e,n).renderText):(67108864&t.flags||134217728&t.flags)&&Gr(e,n).destroy()}}(e),hi(e)&&e.renderer.destroy(),e.state|=128}}const Pa=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function Na(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];33554432&i.flags?Ra(Ur(e,r).componentView,t):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function ja(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const i=n.nodes[r];if(16777216&i.flags){const n=Ur(e,r).viewContainer._embeddedViews;for(let e=0;e<n.length;e++)Ra(n[e],t)}else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Ra(e,t){const n=e.state;switch(t){case Pa.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ea(e):64&n&&La(e,Pa.CheckNoChangesProjectedViews));break;case Pa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ea(e):64&n&&La(e,t));break;case Pa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?ka(e):64&n&&La(e,Pa.CheckAndUpdateProjectedViews));break;case Pa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?ka(e):64&n&&La(e,t));break;case Pa.Destroy:Da(e);break;case Pa.CreateViewNodes:Sa(e)}}function La(e,t){ja(e,t),Na(e,t)}function Fa(e,t,n,r){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const i=e.def.nodes.length;for(let s=0;s<i;s++){const i=e.def.nodes[s];if(i.flags&t&&i.flags&n)switch(Xr.setCurrentNode(e,i.nodeIndex),r){case 0:oa(e,i);break;case 1:Ia(e,i)}i.childFlags&t&&i.childFlags&n||(s+=i.childCount)}}let $a=!1;function Ba(e,t,n,r,i,s){const o=i.injector.get(hr);return _a(qa(e,i,o,t,n),r,s)}function Va(e,t,n,r,i,s){const o=i.injector.get(hr),a=qa(e,i,new wl(o),t,n),l=Ya(r);return vl(il.create,_a,null,[a,l,s])}function qa(e,t,n,r,i){const s=t.injector.get(ft),o=t.injector.get(Mt),a=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:i,sanitizer:s,rendererFactory:n,renderer:a,errorHandler:o}}function za(e,t,n,r){const i=Ya(n);return vl(il.create,wa,null,[e,t,i,r])}function Ua(e,t,n,r){return n=Xa.get(t.element.componentProvider.provider.token)||Ya(n),vl(il.create,Ca,null,[e,t,n,r])}function Ha(e,t,n,r){return rs(e,t,n,function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(e){let t=!1,n=!1;return 0===Wa.size||(e.providers.forEach(e=>{const r=Wa.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(e=>{Ga.forEach((r,i)=>{m(i).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:t,hasDeprecatedOverrides:n}}(e);return t?(function(e){for(let t=0;t<e.providers.length;t++){const r=e.providers[t];n&&(r.flags|=4096);const i=Wa.get(r.token);i&&(r.flags=-3841&r.flags|i.flags,r.deps=gi(i.deps),r.value=i.value)}if(Ga.size>0){let t=new Set(e.modules);Ga.forEach((r,i)=>{if(t.has(m(i).providedIn)){let t={token:i,flags:r.flags|(n?4096:0),deps:gi(r.deps),value:r.value,index:e.providers.length};e.providers.push(t),e.providersByKey[Zr(i)]=t}})}}(e=e.factory(()=>Jr)),e):e}(r))}const Wa=new Map,Ga=new Map,Xa=new Map;function Ja(e){let t;Wa.set(e.token,e),"function"==typeof e.token&&(t=m(e.token))&&"function"==typeof t.providedIn&&Ga.set(e.token,e)}function Qa(e,t){const n=vi(t.viewDefFactory),r=vi(n.nodes[0].element.componentView);Xa.set(e,r)}function Za(){Wa.clear(),Ga.clear(),Xa.clear()}function Ya(e){if(0===Wa.size)return e;const t=function(e){const t=[];let n=null;for(let r=0;r<e.nodes.length;r++){const i=e.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Wa.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(()=>Jr);for(let r=0;r<t.length;r++)n(e,t[r]);return e;function n(e,t){for(let n=t+1;n<e.nodes.length;n++){const t=e.nodes[n];if(1&t.flags)return;if(3840&t.flags){const e=t.provider,n=Wa.get(e.token);n&&(t.flags=-3841&t.flags|n.flags,e.deps=gi(n.deps),e.value=n.value)}}}}function Ka(e,t,n,r,i,s,o,a,l,c,u,h,d){const p=e.def.nodes[t];return Ta(e,p,n,r,i,s,o,a,l,c,u,h,d),224&p.flags?Wr(e,t).value:void 0}function el(e,t,n,r,i,s,o,a,l,c,u,h,d){const p=e.def.nodes[t];return Aa(e,p,n,r,i,s,o,a,l,c,u,h,d),224&p.flags?Wr(e,t).value:void 0}function tl(e){return vl(il.detectChanges,ka,null,[e])}function nl(e){return vl(il.checkNoChanges,Ea,null,[e])}function rl(e){return vl(il.destroy,Da,null,[e])}const il=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();let sl,ol,al;function ll(e,t){ol=e,al=t}function cl(e,t,n,r){return ll(e,t),vl(il.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function ul(e,t){if(128&e.state)throw Br(il[sl]);return ll(e,fl(e,0)),e.def.updateDirectives((function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?dl(e,s,r,i):pl(e,s,r,i),16384&s.flags&&ll(e,fl(e,n)),224&s.flags?Wr(e,s.nodeIndex).value:void 0}),e)}function hl(e,t){if(128&e.state)throw Br(il[sl]);return ll(e,gl(e,0)),e.def.updateRenderer((function(e,n,r,...i){const s=e.def.nodes[n];return 0===t?dl(e,s,r,i):pl(e,s,r,i),3&s.flags&&ll(e,gl(e,n)),224&s.flags?Wr(e,s.nodeIndex).value:void 0}),e)}function dl(e,t,n,r){if(Ta(e,t,n,...r)){const i=1===n?r[0]:r;if(16384&t.flags){const n={};for(let e=0;e<t.bindings.length;e++){const r=t.bindings[e],s=i[e];8&r.flags&&(n[At(r.nonMinifiedName)]=Dt(s))}const r=t.parent,s=Ur(e,r.nodeIndex).renderElement;if(r.element.name)for(let t in n){const r=n[t];null!=r?e.renderer.setAttribute(s,t,r):e.renderer.removeAttribute(s,t)}else e.renderer.setValue(s,"bindings="+JSON.stringify(n,null,2))}}}function pl(e,t,n,r){Aa(e,t,n,...r)}function fl(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(16384&t.flags&&t.bindings&&t.bindings.length)return n}return null}function gl(e,t){for(let n=t;n<e.def.nodes.length;n++){const t=e.def.nodes[n];if(3&t.flags&&t.bindings&&t.bindings.length)return n}return null}class ml{constructor(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];let n=this.nodeDef,r=e;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=li(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Ur(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return Yi(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const e=[];if(this.elDef)for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e}get references(){const e={};if(this.elDef){bl(this.elView,this.elDef,e);for(let t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){const n=this.elView.def.nodes[t];20224&n.flags&&bl(this.elView,n,e),t+=n.childCount}}return e}get componentRenderElement(){const e=function(e){for(;e&&!hi(e);)e=e.parent;return e.parent?Ur(e.parent,li(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?ci(this.view,this.nodeDef):ci(this.elView,this.elDef)}logError(e,...t){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const i=function(e,t){let n=-1;for(let r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(n,r);let s=-1;n.factory(()=>(s++,s===i?e.error.bind(e,...t):Jr)),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error(...t))}}function bl(e,t,n){for(let r in t.references)n[r]=la(e,t,t.references[r])}function vl(e,t,n,r){const i=sl,s=ol,o=al;try{sl=e;const a=t.apply(n,r);return ol=s,al=o,sl=i,a}catch(a){if(Et(a)||!ol)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),$r(e,t),e}(a,yl())}}function yl(){return ol?new ml(ol,al):null}class wl{constructor(e){this.delegate=e}createRenderer(e,t){return new _l(this.delegate.createRenderer(e,t))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class _l{constructor(e){this.delegate=e,this.debugContextFactory=yl,this.data=this.delegate.data}createDebugContext(e){return this.debugContextFactory(e)}destroyNode(e){!function(e){zo.delete(e.nativeNode)}(Uo(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)}destroy(){this.delegate.destroy()}createElement(e,t){const n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){const t=new qo(n,null,r);t.name=e,Ho(t)}return n}createComment(e){const t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&Ho(new Vo(t,null,n)),t}createText(e){const t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&Ho(new Vo(t,null,n)),t}appendChild(e,t){const n=Uo(e),r=Uo(t);n&&r&&n instanceof qo&&n.addChild(r),this.delegate.appendChild(e,t)}insertBefore(e,t,n){const r=Uo(e),i=Uo(t),s=Uo(n);r&&i&&r instanceof qo&&r.insertBefore(s,i),this.delegate.insertBefore(e,t,n)}removeChild(e,t){const n=Uo(e),r=Uo(t);n&&r&&n instanceof qo&&n.removeChild(r),this.delegate.removeChild(e,t)}selectRootElement(e,t){const n=this.delegate.selectRootElement(e,t),r=yl();return r&&Ho(new qo(n,null,r)),n}setAttribute(e,t,n,r){const i=Uo(e);i&&i instanceof qo&&(i.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){const r=Uo(e);r&&r instanceof qo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)}addClass(e,t){const n=Uo(e);n&&n instanceof qo&&(n.classes[t]=!0),this.delegate.addClass(e,t)}removeClass(e,t){const n=Uo(e);n&&n instanceof qo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)}setStyle(e,t,n,r){const i=Uo(e);i&&i instanceof qo&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){const r=Uo(e);r&&r instanceof qo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){const r=Uo(e);r&&r instanceof qo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)}listen(e,t,n){if("string"!=typeof e){const r=Uo(e);r&&r.listeners.push(new Bo(t,n))}return this.delegate.listen(e,t,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setValue(e,t){return this.delegate.setValue(e,t)}}function Cl(e,t,n){return new xl(e,t,n)}class xl extends or{constructor(e,t,n){super(),this.moduleType=e,this._bootstrapComponents=t,this._ngModuleDefFactory=n}create(e){!function(){if($a)return;$a=!0;const e=ze()?{setCurrentNode:ll,createRootView:Va,createEmbeddedView:za,createComponentView:Ua,createNgModuleRef:Ha,overrideProvider:Ja,overrideComponentView:Qa,clearOverrides:Za,checkAndUpdateView:tl,checkNoChangesView:nl,destroyView:rl,createDebugContext:(e,t)=>new ml(e,t),handleEvent:cl,updateDirectives:ul,updateRenderer:hl}:{setCurrentNode:()=>{},createRootView:Ba,createEmbeddedView:wa,createComponentView:Ca,createNgModuleRef:rs,overrideProvider:Jr,overrideComponentView:Jr,clearOverrides:Jr,checkAndUpdateView:ka,checkNoChangesView:Ea,destroyView:Da,createDebugContext:(e,t)=>new ml(e,t),handleEvent:(e,t,n,r)=>e.def.handleEvent(e,t,n,r),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?Ka:el,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?Ka:el,e)};Xr.setCurrentNode=e.setCurrentNode,Xr.createRootView=e.createRootView,Xr.createEmbeddedView=e.createEmbeddedView,Xr.createComponentView=e.createComponentView,Xr.createNgModuleRef=e.createNgModuleRef,Xr.overrideProvider=e.overrideProvider,Xr.overrideComponentView=e.overrideComponentView,Xr.clearOverrides=e.clearOverrides,Xr.checkAndUpdateView=e.checkAndUpdateView,Xr.checkNoChangesView=e.checkNoChangesView,Xr.destroyView=e.destroyView,Xr.resolveDep=Os,Xr.createDebugContext=e.createDebugContext,Xr.handleEvent=e.handleEvent,Xr.updateDirectives=e.updateDirectives,Xr.updateRenderer=e.updateRenderer,Xr.dirtyParentQueries=sa}();const t=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),r={};for(const i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(vi(this._ngModuleDefFactory));return Xr.createNgModuleRef(this.moduleType,e||B.NULL,this._bootstrapComponents,t)}}},"9ppp":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},ASgS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("EGUZ"),n("iunF");class r{constructor(e,t,n){this.navCtrl=e,this.storageManager=t,this.settingsManager=n,this.notification=!0,this.autoNightMode=!1,this.bubbleCopyStatus=!0,this.settingsManager.getNotificationsStatus().then(e=>{null!=e&&(this.notification=e)}),this.settingsManager.getAutoNightMode().then(e=>{null!=e&&(this.autoNightMode=e)}),this.settingsManager.getBubbleCopyStatus().then(e=>{null!=e&&(this.bubbleCopyStatus=e)})}ionViewDidLoad(){console.log("ionViewDidLoad SettingsPage")}activateNotification(){this.notification?this.settingsManager.notificationsManager.init():this.settingsManager.disableNotifications()}toggleAutoNightMode(){this.settingsManager.setAutoNightMode(!!this.autoNightMode)}toggleBubbleCopy(){this.settingsManager.setBubbleCopyStatus(this.bubbleCopyStatus)}}},AcVp:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.enable=function(){return Object(i.cordova)(this,"enable",{sync:!0},arguments)},t.prototype.disable=function(){return Object(i.cordova)(this,"disable",{sync:!0},arguments)},t.prototype.setEnabled=function(e){return Object(i.cordova)(this,"setEnabled",{sync:!0},arguments)},t.prototype.fireEvent=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object(i.cordova)(this,"fireEvent",{sync:!0},arguments)},t.prototype.isEnabled=function(){return Object(i.cordova)(this,"isEnabled",{sync:!0},arguments)},t.prototype.isActive=function(){return Object(i.cordova)(this,"isActive",{sync:!0},arguments)},t.prototype.setDefaults=function(e){return Object(i.cordova)(this,"setDefaults",{platforms:["Android"]},arguments)},t.prototype.configure=function(e){return Object(i.cordova)(this,"configure",{platforms:["Android"],sync:!0},arguments)},t.prototype.on=function(e){return Object(i.cordova)(this,"on",{observable:!0,clearFunction:"un",clearWithArgs:!0},arguments)},t.prototype.un=function(e,t){return Object(i.cordova)(this,"un",{},arguments)},t.prototype.moveToBackground=function(){return Object(i.cordova)(this,"moveToBackground",{platforms:["Android"],sync:!0},arguments)},t.prototype.disableWebViewOptimizations=function(){return Object(i.cordova)(this,"disableWebViewOptimizations",{platforms:["Android"],sync:!0},arguments)},t.prototype.moveToForeground=function(){return Object(i.cordova)(this,"moveToForeground",{platforms:["Android"],sync:!0},arguments)},t.prototype.overrideBackButton=function(){return Object(i.cordova)(this,"overrideBackButton",{platforms:["Android"],sync:!0},arguments)},t.prototype.excludeFromTaskList=function(){return Object(i.cordova)(this,"excludeFromTaskList",{platforms:["Android"],sync:!0},arguments)},t.prototype.isScreenOff=function(e){return Object(i.cordova)(this,"isScreenOff",{platforms:["Android"]},arguments)},t.prototype.wakeUp=function(){return Object(i.cordova)(this,"wakeUp",{platforms:["Android"],sync:!0},arguments)},t.prototype.unlock=function(){return Object(i.cordova)(this,"unlock",{platforms:["Android"],sync:!0},arguments)},t.prototype.disableBatteryOptimizations=function(){return Object(i.cordova)(this,"disableBatteryOptimizations",{platforms:["Android"],sync:!0},arguments)},t.pluginName="BackgroundMode",t.plugin="cordova-plugin-background-mode",t.pluginRef="cordova.plugins.backgroundMode",t.repo="https://github.com/katzer/cordova-plugin-background-mode",t.platforms=["AmazonFire OS","Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin)},AjPc:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return o}));class r{static isJson(e){try{JSON.parse(e)}catch(t){return!1}return!0}}class i{static isArabic(e){return/[\u0600-\u06FF]/.test(e)}static isGerman(e){return!this.isArabic(e)}}class s{static addCssClass(e){let t=document.getElementsByTagName("ion-app")[0];console.log(e),t.className+=" "+e}static removeCssClass(e){let t=document.getElementsByTagName("ion-app")[0];t.className=t.className.replace(e,"")}}class o{static pad2(e){return e<10?"0"+e:e}static getTimeString(e=new Date){return e.getFullYear().toString()+"/"+o.pad2(e.getMonth()+1)+"/"+o.pad2(e.getDate())+" "+o.pad2(e.getHours())+":"+o.pad2(e.getMinutes())+":"+o.pad2(e.getSeconds())}static getToday(){var e=new Date;return e.getFullYear().toString()+"/"+o.pad2(e.getMonth()+1)+"/"+o.pad2(e.getDate())+" 00:00:00"}static getTodayForSqlLite(){var e=new Date;return e.getFullYear().toString()+"-"+o.pad2(e.getMonth()+1)+"-"+o.pad2(e.getDate())+" 23:59:59"}static getHour(){return(new Date).getHours()}static getTodayNight(){var e=new Date;return e.getFullYear().toString()+"/"+o.pad2(e.getMonth()+1)+"/"+o.pad2(e.getDate())+" 24:00:00"}}},AyaB:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("GAbP"),i=(n("6GXZ"),n("2IJ5"),n("nAxv"));class s extends r.a{constructor(e,t,n,r){super(e,t,n,r),this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=r,this.init().then(()=>{this.createFriendsTable()})}add(e){console.log("adding friend to database"),this.databaseObj.executeSql('INSERT OR IGNORE INTO friends (friendID,chatID,email,name,family) VALUES ("'+e.userID+'","'+e.chatID+'","'+e.email+'","'+e.name+'","'+e.familyName+'")').then(e=>{console.log("friend has beend added successfully")}).catch(e=>{console.log(" there was  an error adding friend to database",e)})}getFriends(){return new Promise((e,t)=>{let n=[];this.init().then(()=>{this.databaseObj.executeSql("select * from friends",[]).then(t=>{if(t.rows.length>0)for(var r=0;r<t.rows.length;r++)n.push(new i.a(t.rows.item(r)));e(n)}).catch(e=>{console.log("error table of friends",e)})})})}init(){return new Promise((e,t)=>{null!=this.databaseObj?e(this.databaseObj):super.init(this.userManager.user).then(t=>{e(t)})})}createFriendsTable(){this.databaseObj.executeSql("create table  IF NOT EXISTS friends \n    (friendID  VARCHAR(32),chatID  VARCHAR(32),email VARCHAR(32) UNIQUE,name VARCHAR(32),family VARCHAR(32))",[]).then(()=>{console.log("Executed SQLL")}).catch(e=>{console.log(e)})}}},"B/Pu":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),s=n("sZkV"),o=n("SVse"),a=n("ds6b"),l=n("J20c"),c=n("iunF"),u=n("TSSN");n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return v}));var h=r.qb({encapsulation:0,styles:[[".closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:0 0;position:fixed;left:0;top:0;z-index:-1}.optionMenuen[_ngcontent-%COMP%], .optionMenufa[_ngcontent-%COMP%]{background:#fff;width:53vw;right:31px;position:absolute;z-index:3;border-radius:10px;height:auto;top:39px;padding-top:10px;box-shadow:0 -2px 4px #efefef}.menuButton[_ngcontent-%COMP%]{height:5vh;color:#000;display:block;top:31px;right:20px;z-index:2;margin-bottom:10px}.menuButton[_ngcontent-%COMP%]   .menuText[_ngcontent-%COMP%]{float:left;padding-left:1.1rem;width:80%;padding-top:3px;color:#000;direction:ltr}.menuButton[_ngcontent-%COMP%]   .buttnsIcon[_ngcontent-%COMP%]{float:right;width:20%;line-height:35px;position:absolute;right:10px;direction:rtl;color:#000}"]],data:{}});function d(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["class","menuButton"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.context.$implicit.click()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"div",[["class","menuText"]],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),(e()(),r.sb(3,0,null,null,2,"div",[["class","buttnsIcon"]],null,null,null,null,null)),(e()(),r.sb(4,0,null,null,1,"ion-icon",[],null,null,null,i.fb,i.q)),r.rb(5,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=r.wb(1,"",t.context.$implicit.getIcon(),"");e(t,5,0,n)}),(function(e,t){e(t,2,0,t.context.$implicit.text)}))}function p(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","optionMenufa"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,d)),r.rb(2,278528,null,0,o.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.chatOptionMenu.buttons)}),null)}function f(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["class","menuButton"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.context.$implicit.click()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"div",[["class","menuText"]],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),(e()(),r.sb(3,0,null,null,2,"div",[["class","buttnsIcon"]],null,null,null,null,null)),(e()(),r.sb(4,0,null,null,1,"ion-icon",[],null,null,null,i.fb,i.q)),r.rb(5,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=r.wb(1,"",t.context.$implicit.getIcon(),"");e(t,5,0,n)}),(function(e,t){e(t,2,0,t.context.$implicit.text)}))}function g(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","optionMenuen"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,f)),r.rb(2,278528,null,0,o.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){e(t,2,0,t.component.chatOptionMenu.buttons)}),null)}function m(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.chatOptionMenu.close()&&r),r}),null,null)),(e()(),r.hb(16777216,null,null,1,null,p)),r.rb(2,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.hb(0,[["cond1",2]],null,0,null,g))],(function(e,t){e(t,2,0,"fa"==t.component.tolang,r.Eb(t,3))}),null)}function b(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"chat-option-menu",[],null,null,null,m,h)),r.rb(1,5292032,null,0,a.a,[l.a,s.Fb,c.a,u.j],null,null)],null,null)}var v=r.ob("chat-option-menu",a.a,b,{chat:"chat",headerComp:"parent"},{},[])},BFxc:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return function(t){return 0===e?Object(s.b)():t.lift(new a(e))}}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e}_complete(){const e=this.destination;let t=this.count;if(t>0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i<n;i++){const i=t++%n;e.next(r[i])}}e.complete()}}},BNVH:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("/qZA"),i=n("iunF");class s{constructor(e,t,n){this.http=e,this.injector=t,this.navCtrl=n,console.log("Hello AccountManagerProvider Provider"),this.socketMgr=this.injector.get(r.a),this.settingsMgr=this.injector.get(i.a),this.checkUserAccount()}getSubscriptionsStatus(){this.socketMgr.userManager.getUser().then(e=>{this.socketMgr.asyncQuery("GetSubscriptionStatus",{}).then(e=>{console.log(e)})})}checkUserAccount(){this.socketMgr.userManager.getUser().then(e=>{this.socketMgr.asyncQuery("getUserStatus",{}).then(e=>{let t=e.getParam("status");"Enabled"==t?this.settingsMgr.getPrimarySettings().then(e=>{e.setBayaPlus(!1),this.settingsMgr.savePrimarySetting()}):"Disabled"==t?this.navCtrl.navigateRoot("profile"):"BayaPlus"==t&&this.settingsMgr.getPrimarySettings().then(e=>{e.setBayaPlus(!0),this.settingsMgr.savePrimarySetting()})})})}}},BzsH:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return a}));var r=n("8Y7J"),i=n("Xd0L");class s{constructor(e){this._elementRef=e}}const o=Object(i.c)(s);class a extends o{constructor(e,t,n){super(e),this._platform=t,this._document=n}ngAfterViewInit(){Object(r.W)()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter(e=>!(e.classList&&e.classList.contains("mat-toolbar-row"))).filter(e=>e.nodeType!==(this._document?this._document.COMMENT_NODE:8)).some(e=>!(!e.textContent||!e.textContent.trim()))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}()}}class l{}},CDm8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("kbZ1");var r=n("7BDe");n("iunF");class i{constructor(e,t,n,r,i){this.itemsManager=e,this.navCtrl=t,this.settingsManager=n,this.viewCtrl=r,this.router=i,this.public=!1,this.allowedItemsNumber=15,this.itemName=""}addItem(){0==this.itemName.length&&(this.itemName=this.collection.getTitle());let e=new r.a({name:this.itemName,title:this.itemName,status:this.public?"public":"private"});this.hasAccess().then(t=>{1==t?this.viewCtrl.dismiss({item:e}):this.navCtrl.navigateForward("BayaPlusPage")}),this.router.navigate(["items"])}close(){this.viewCtrl.dismiss()}hasAccess(){return new Promise(e=>{let t=!1;this.settingsManager.getPrimarySettings().then(n=>{n.isBayaPlus()&&(t=!0),this.itemsManager.items.length<this.allowedItemsNumber&&(t=!0),e(t)})})}isAllowPublic(){return this.collection.isDictionary()}}},Cfvw:function(e,t,n){"use strict";var r=n("HDdC"),i=n("SeVD"),s=n("quSY"),o=n("kJWO"),a=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function h(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>{const i=e[o.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a(n=>{const r=new s.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(a.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new s.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[l.a](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}n.d(t,"a",(function(){return h}))},CjQN:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.share=function(e,t,n,r){return Object(i.cordova)(this,"share",{successIndex:4,errorIndex:5},arguments)},t.prototype.shareWithOptions=function(e){return Object(i.cordova)(this,"shareWithOptions",{platforms:["iOS","Android"]},arguments)},t.prototype.canShareVia=function(e,t,n,r,s){return Object(i.cordova)(this,"canShareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaTwitter=function(e,t,n){return Object(i.cordova)(this,"shareViaTwitter",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaFacebook=function(e,t,n){return Object(i.cordova)(this,"shareViaFacebook",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaFacebookWithPasteMessageHint=function(e,t,n,r){return Object(i.cordova)(this,"shareViaFacebookWithPasteMessageHint",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaInstagram=function(e,t){return Object(i.cordova)(this,"shareViaInstagram",{platforms:["iOS","Android"]},arguments)},t.prototype.shareViaWhatsApp=function(e,t,n){return Object(i.cordova)(this,"shareViaWhatsApp",{successIndex:3,errorIndex:4,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaWhatsAppToReceiver=function(e,t,n,r){return Object(i.cordova)(this,"shareViaWhatsAppToReceiver",{successIndex:4,errorIndex:5,platforms:["iOS","Android"]},arguments)},t.prototype.shareViaSMS=function(e,t){return Object(i.cordova)(this,"shareViaSMS",{platforms:["iOS","Android"]},arguments)},t.prototype.canShareViaEmail=function(){return Object(i.cordova)(this,"canShareViaEmail",{platforms:["iOS","Android"]},arguments)},t.prototype.shareViaEmail=function(e,t,n,r,s,o){return Object(i.cordova)(this,"shareViaEmail",{platforms:["iOS","Android"],successIndex:6,errorIndex:7},arguments)},t.prototype.shareVia=function(e,t,n,r,s){return Object(i.cordova)(this,"shareVia",{successIndex:5,errorIndex:6,platforms:["iOS","Android"]},arguments)},t.prototype.setIPadPopupCoordinates=function(e){return Object(i.cordova)(this,"setIPadPopupCoordinates",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.saveToPhotoAlbum=function(e){return Object(i.cordova)(this,"saveToPhotoAlbum",{platforms:["iOS"]},arguments)},t.pluginName="SocialSharing",t.plugin="cordova-plugin-x-socialsharing",t.pluginRef="plugins.socialsharing",t.repo="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin",t.platforms=["Android","Browser","iOS","Windows","Windows Phone"],t}(i.IonicNativePlugin)},D0XW:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("3N8a");const i=new(n("IjjT").a)(r.a)},D2Vb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.promptForRating=function(e){return Object(i.cordova)(this,"promptForRating",{},arguments)},t.prototype.navigateToAppStore=function(){return Object(i.cordova)(this,"navigateToAppStore",{},arguments)},Object.defineProperty(t.prototype,"preferences",{get:function(){return Object(i.cordovaPropertyGet)(this,"preferences")},set:function(e){Object(i.cordovaPropertySet)(this,"preferences",e)},enumerable:!0,configurable:!0}),t.pluginName="AppRate",t.plugin="cordova-plugin-apprate",t.pluginRef="AppRate",t.repo="https://github.com/pushandplay/cordova-plugin-apprate",t.platforms=["Android","BlackBerry 10","iOS","Windows"],t}(i.IonicNativePlugin)},DH7j:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},EGUZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e,t){this.http=e,this.storage=t}static get accountAcctivated(){return"accountActivated"}get(e,t={returnArray:!1}){return new Promise((n,r)=>{let i=!1,s=null;this.storage.ready().then(()=>{this.storage.get(e).then(e=>{try{i=JSON.parse(e),1==t.returnArray&&(s=Object.keys(i).map((function(e){return[Number(e),i[e]]})))}catch(r){i=e}n(1==t.returnArray?s:i)})})})}set(e,t){var n=this;this.storage.ready().then(()=>{n.storage.set(e,t)})}isAccountActivated(){return new Promise(e=>{e(this.get(r.accountAcctivated))})}activateAccount(){return this.set(r.accountAcctivated,!0)}deactivateAccount(){return this.set(r.accountAcctivated,!1)}getAccount(){this.getSetting("account"),this.account=null!=this.settings.account?this.settings.account:{activated:!1}}loadDefaultSettingsFor(e){this.settings[e]={intialized:!1}}setSetting(e,t){this.settings[e]=t}setKeyData(e,t){this.settings[e]=t}getSetting(e){this.storage.get("settings").then(e=>{null!=e&&JSON.parse(e)})}}},EVdn:function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},c=s.push,u=s.indexOf,h={},d=h.toString,p=h.hasOwnProperty,f=p.toString,g=f.call(Object),m={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,i,s=(n=n||y).createElement("script");if(s.text=e,t)for(r in w)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,i);n.head.appendChild(s).parentNode.removeChild(s)}function C(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)};function O(e){var t=!!e&&"length"in e&&e.length,n=C(e);return!b(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.5.1",constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:s.sort,splice:s.splice},x.extend=x.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||b(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&o!==r&&(c&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],s=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,o[t]=x.extend(c,s,r)):void 0!==r&&(o[t]=r));return o},x.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e)||(t=o(e))&&("function"!=typeof(n=p.call(t,"constructor")&&t.constructor)||f.call(n)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){_(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(O(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(O(Object(e))?x.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,s=e.length,o=!n;i<s;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,s=0,o=[];if(O(e))for(r=e.length;s<r;s++)null!=(i=t(e[s],s,n))&&o.push(i);else for(s in e)null!=(i=t(e[s],s,n))&&o.push(i);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=s[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,i,s,o,a,l,c,u,h,d,p,f,g,m,b,v,y,w="sizzle"+1*new Date,_=e.document,C=0,x=0,O=le(),S=le(),E=le(),k=le(),T=function(e,t){return e===t&&(h=!0),0},M={}.hasOwnProperty,A=[],I=A.pop,D=A.push,P=A.push,N=A.slice,j=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",F="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",$="\\["+L+"*("+F+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+L+"*\\]",B=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+$+")*)|.*)\\)|)",V=new RegExp(L+"+","g"),q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),z=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),H=new RegExp(L+"|>"),W=new RegExp(B),G=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+$),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){d()},oe=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(A=N.call(_.childNodes),_.childNodes)}catch(Se){P={apply:A.length?function(e,t){D.apply(e,N.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var s,a,c,u,h,f,b,v=t&&t.ownerDocument,_=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return r;if(!i&&(d(t),t=t||p,g)){if(11!==_&&(h=K.exec(e)))if(s=h[1]){if(9===_){if(!(c=t.getElementById(s)))return r;if(c.id===s)return r.push(c),r}else if(v&&(c=v.getElementById(s))&&y(t,c)&&c.id===s)return r.push(c),r}else{if(h[2])return P.apply(r,t.getElementsByTagName(e)),r;if((s=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(s)),r}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))&&(1!==_||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===_&&(H.test(e)||U.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=w)),a=(f=o(e)).length;a--;)f[a]=(u?"#"+u:":scope")+" "+ye(f[a]);b=f.join(",")}try{return P.apply(r,v.querySelectorAll(b)),r}catch(C){k(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[w]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(Se){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,r){for(var i,s=e([],n.length,t),o=s.length;o--;)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},s=ae.isXML=function(e){var t=(e.ownerDocument||e).documentElement;return!J.test(e.namespaceURI||t&&t.nodeName||"HTML")},d=ae.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:_;return o!=p&&9===o.nodeType&&o.documentElement?(f=(p=o).documentElement,g=!s(p),_!=p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",se,!1):i.attachEvent&&i.attachEvent("onunload",se)),n.scope=ue((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Y.test(p.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(i=t.getElementsByName(e),r=0;s=i[r++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[i++];)1===n.nodeType&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},b=[],m=[],(n.qsa=Y.test(p.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Y.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",B)})),m=m.length&&new RegExp(m.join("|")),b=b.length&&new RegExp(b.join("|")),t=Y.test(f.compareDocumentPosition),y=t||Y.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==p||e.ownerDocument==_&&y(_,e)?-1:t==p||t.ownerDocument==_&&y(_,t)?1:u?j(u,e)-j(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!i||!s)return e==p?-1:t==p?1:i?-1:s?1:u?j(u,e)-j(u,t):0;if(i===s)return de(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;o[r]===a[r];)r++;return r?de(o[r],a[r]):o[r]==_?-1:a[r]==_?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!k[t+" "]&&(!b||!b.test(t))&&(!m||!m.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Se){k(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var i=r.attrHandle[t.toLowerCase()],s=i&&M.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==s?s:n.attributes||!g?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ae.escape=function(e){return(e+"").replace(re,ie)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,s=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),h){for(;t=e[s++];)t===e[s]&&(i=r.push(s));for(;i--;)e.splice(r[i],1)}return u=null,e},i=ae.getText=function(e){var t,n="",r=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=O[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&O(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,p,f,g=s!==o?"nextSibling":"previousSibling",m=t.parentNode,b=a&&t.nodeName.toLowerCase(),v=!l&&!a,y=!1;if(m){if(s){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&v){for(y=(p=(c=(u=(h=(d=m)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(y=p=0)||f.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[C,p,y];break}}else if(v&&(y=p=(c=(u=(h=(d=t)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===y)for(;(d=++p&&d&&d[g]||(y=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++y||(v&&((u=(h=d[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[C,y]),d!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,s=i(e,t),o=s.length;o--;)e[r=j(e,s[o])]=!(n[r]=s[o])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ce((function(e){var t=[],n=[],r=a(e.replace(q,"$1"));return r[w]?ce((function(e,t,n,i){for(var s,o=r(e,null,i,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))})):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ce((function(e){return G.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,i=t.next,s=i||r,o=n&&"parentNode"===s,a=x++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var c,u,h,d=[C,a];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(u=(h=t[w]||(t[w]={}))[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[s])&&c[0]===C&&c[1]===a)return d[2]=c[2];if(u[s]=d,d[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ce(e,t,n,r,i){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,r,i)||(o.push(s),c&&t.push(a)));return o}function xe(e,t,n,r,i,s){return r&&!r[w]&&(r=xe(r)),i&&!i[w]&&(i=xe(i,s)),ce((function(s,o,a,l){var c,u,h,d=[],p=[],f=o.length,g=s||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!s&&t?g:Ce(g,d,e,a,l),b=n?i||(s?e:f||r)?[]:o:m;if(n&&n(m,b,a,l),r)for(c=Ce(b,p),r(c,[],a,l),u=c.length;u--;)(h=c[u])&&(b[p[u]]=!(m[p[u]]=h));if(s){if(i||e){if(i){for(c=[],u=b.length;u--;)(h=b[u])&&c.push(m[u]=h);i(null,b=[],c,l)}for(u=b.length;u--;)(h=b[u])&&(c=i?j(s,h):d[u])>-1&&(s[c]=!(o[c]=h))}}else b=Ce(b===o?b.splice(f,b.length):b),i?i(null,o,b,l):P.apply(o,b)}))}function Oe(e){for(var t,n,i,s=e.length,o=r.relative[e[0].type],a=o||r.relative[" "],l=o?1:0,u=we((function(e){return e===t}),a,!0),h=we((function(e){return j(t,e)>-1}),a,!0),d=[function(e,n,r){var i=!o&&(r||n!==c)||((t=n).nodeType?u(e,n,r):h(e,n,r));return t=null,i}];l<s;l++)if(n=r.relative[e[l].type])d=[we(_e(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(i=++l;i<s&&!r.relative[e[i].type];i++);return xe(l>1&&_e(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<i&&Oe(e.slice(l,i)),i<s&&Oe(e=e.slice(i)),i<s&&ye(e))}d.push(n)}return _e(d)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,o=ae.tokenize=function(e,t){var n,i,s,o,a,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=r.preFilter;a;){for(o in n&&!(i=z.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(s=[])),n=!1,(i=U.exec(a))&&(n=i.shift(),s.push({value:n,type:i[0].replace(q," ")}),a=a.slice(n.length)),r.filter)!(i=X[o].exec(a))||c[o]&&!(i=c[o](i))||(n=i.shift(),s.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):S(e,l).slice(0)},a=ae.compile=function(e,t){var n,i=[],s=[],a=E[e+" "];if(!a){for(t||(t=o(e)),n=t.length;n--;)(a=Oe(t[n]))[w]?i.push(a):s.push(a);(a=E(e,function(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,a,l,u){var h,f,m,b=0,v="0",y=s&&[],w=[],_=c,x=s||i&&r.find.TAG("*",u),O=C+=null==_?1:Math.random()||.1,S=x.length;for(u&&(c=o==p||o||u);v!==S&&null!=(h=x[v]);v++){if(i&&h){for(f=0,o||h.ownerDocument==p||(d(h),a=!g);m=e[f++];)if(m(h,o||p,a)){l.push(h);break}u&&(C=O)}n&&((h=!m&&h)&&b--,s&&y.push(h))}if(b+=v,n&&v!==b){for(f=0;m=t[f++];)m(y,w,o,a);if(s){if(b>0)for(;v--;)y[v]||w[v]||(w[v]=I.call(l));w=Ce(w)}P.apply(l,w),u&&!s&&w.length>0&&b+t.length>1&&ae.uniqueSort(l)}return u&&(C=O,c=_),y};return n?ce(s):s}(s,i))).selector=e}return a},l=ae.select=function(e,t,n,i){var s,l,c,u,h,d="function"==typeof e&&e,p=!i&&o(e=d.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=X.needsContext.test(e)?0:l.length;s--&&!r.relative[u=(c=l[s]).type];)if((h=r.find[u])&&(i=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&be(t.parentNode)||t))){if(l.splice(s,1),!(e=i.length&&ye(l)))return P.apply(n,i),n;break}}return(d||a(e,p))(i,t,!g,n,!t||ee.test(e)&&be(t.parentNode)||t),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ae}(n);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},T=x.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,t,n){return b(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&T.test(e)?x(e):e||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(x.merge(this,x.parseHTML(r[1],(t=t instanceof x?t[0]:t)&&t.nodeType?t.ownerDocument||t:y,!0)),A.test(r[1])&&x.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,D=x(y);var N=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,s=[],o="string"!=typeof e&&x(e);if(!T.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?x.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(j[e]||x.uniqueSort(i),N.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function F(e){return e}function $(e){throw e}function B(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,r,i,s=[],o=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,i&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,o.push(n)),function t(n){x.each(n,(function(n,r){b(r)?e.unique&&c.has(r)||s.push(r):r&&r.length&&"string"!==C(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(e){return e?x.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],n||t||(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,r){var i=b(e[r[4]])&&e[r[4]];s[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var s=0;function o(e,t,r,i){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e<s)){if((n=r.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");b(c=n&&("object"==typeof n||"function"==typeof n)&&n.then)?i?c.call(n,o(s,t,F,i),o(s,t,$,i)):(s++,c.call(n,o(s,t,F,i),o(s,t,$,i),o(s,t,F,t.notifyWith))):(r!==F&&(a=void 0,l=[n]),(i||t.resolveWith)(a,l))}},u=i?c:function(){try{c()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,u.stackTrace),e+1>=s&&(r!==$&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),n.setTimeout(u))}}return x.Deferred((function(n){t[0][3].add(o(0,n,b(i)?i:F,n.notifyWith)),t[1][3].add(o(0,n,b(e)?e:F)),t[2][3].add(o(0,n,b(r)?r:$))})).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},s={};return x.each(t,(function(e,n){var o=n[2],a=n[5];i[n[1]]=o.add,a&&o.add((function(){r=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=o.fireWith})),i.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),s=x.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(r,i)}};if(t<=1&&(B(e,s.done(o(n)).resolve,s.reject,!t),"pending"===s.state()||b(i[n]&&i[n].then)))return s.then();for(;n--;)B(i[n],o(n),s.reject);return s.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&V.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout((function(){throw e}))};var q=x.Deferred();function z(){y.removeEventListener("DOMContentLoaded",z),n.removeEventListener("load",z),x.ready()}x.fn.ready=function(e){return q.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||q.resolveWith(y,[x]))}}),x.ready.then=q.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",z),n.addEventListener("load",z));var U=function(e,t,n,r,i,s,o){var a=0,l=e.length,c=null==n;if("object"===C(n))for(a in i=!0,n)U(e,t,a,n[a],!0,s,o);else if(void 0!==r&&(i=!0,b(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;a<l;a++)t(e[a],n,o?r:r.call(e[a],a,t(e[a],n)));return i?e:c?t.call(e):l?t(e[0],n):s},H=/^-ms-/,W=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function X(e){return e.replace(H,"ms-").replace(W,G)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=x.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var Z=new Q,Y=new Q,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:K.test(e)?JSON.parse(e):e)}(n)}catch(i){}Y.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Y.hasData(e)||Z.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(i=Y.get(s),1===s.nodeType&&!Z.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=X(r.slice(5)),te(s,r,i[r]));Z.set(s,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Y.set(this,e)})):U(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=Y.get(s,e))||void 0!==(n=te(s,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var r;if(e)return r=Z.get(e,t=(t||"fx")+"queue"),n&&(!r||Array.isArray(n)?r=Z.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=x.queue(e,t=t||"fx"),r=n.length,i=n.shift(),s=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete s.stop,i.call(e,(function(){x.dequeue(e,t)}),s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:x.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),s=this,o=this.length,a=function(){--r||i.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Z.get(s[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],se=y.documentElement,oe=function(e){return x.contains(e.ownerDocument,e)},ae={composed:!0};se.getRootNode&&(oe=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===x.css(e,"display")};function ce(e,t,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=a(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&re.exec(x.css(e,t));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;o--;)x.style(e,t,u+c),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),u/=s;x.style(e,t,(u*=2)+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var ue={};function he(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=x.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function de(e,t){for(var n,r,i=[],s=0,o=e.length;s<o;s++)(r=e[s]).style&&(n=r.style.display,t?("none"===n&&(i[s]=Z.get(r,"display")||null,i[s]||(r.style.display="")),""===r.style.display&&le(r)&&(i[s]=he(r))):"none"!==n&&(i[s]="none",Z.set(r,"display",n)));for(s=0;s<o;s++)null!=i[s]&&(e[s].style.display=i[s]);return e}x.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?x(this).show():x(this).hide()}))}});var pe,fe,ge=/^(?:checkbox|radio)$/i,me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(fe=y.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?x.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,m.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var _e=/<|&#?\w+;/;function Ce(e,t,n,r,i){for(var s,o,a,l,c,u,h=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((s=e[p])||0===s)if("object"===C(s))x.merge(d,s.nodeType?[s]:s);else if(_e.test(s)){for(o=o||h.appendChild(t.createElement("div")),a=(me.exec(s)||["",""])[1].toLowerCase(),o.innerHTML=(l=ve[a]||ve._default)[1]+x.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;x.merge(d,o.childNodes),(o=h.firstChild).textContent=""}else d.push(t.createTextNode(s));for(h.textContent="",p=0;s=d[p++];)if(r&&x.inArray(s,r)>-1)i&&i.push(s);else if(c=oe(s),o=ye(h.appendChild(s),"script"),c&&we(o),n)for(u=0;s=o[u++];)be.test(s.type||"")&&n.push(s);return h}var xe=/^key/,Oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Te(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Me(e,t,n,r,i,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)Me(e,a,n,r,t[a],s);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===s&&(o=i,(i=function(e){return x().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),e.each((function(){x.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(Z.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,i,s=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=a.call(arguments),Z.set(this,t,s),r=n(this,t),this[t](),s!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},s!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else s.length&&(Z.set(this,t,{value:x.event.trigger(x.extend(s[0],x.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&x.event.add(e,t,Ee)}x.event={global:{},add:function(e,t,n,r,i){var s,o,a,l,c,u,h,d,p,f,g,m=Z.get(e);if(J(e))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&x.find.matchesSelector(se,i),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(L)||[""]).length;c--;)p=g=(a=Se.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=x.event.special[p]||{},h=x.event.special[p=(i?h.delegateType:h.bindType)||p]||{},u=x.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:f.join(".")},s),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,r,f,o)||e.addEventListener&&e.addEventListener(p,o)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),x.event.global[p]=!0)},remove:function(e,t,n,r,i){var s,o,a,l,c,u,h,d,p,f,g,m=Z.hasData(e)&&Z.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(p=g=(a=Se.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=x.event.special[p]||{},d=l[p=(r?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)u=d[s],!i&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(s,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));o&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,f,m.handle)||x.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],n,r,!0);x.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,s,o,a=new Array(arguments.length),l=x.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=x.event.handlers.call(this,l,c),t=0;(i=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(r=((x.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,s,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?x(i,this).index(c)>-1:x.find(i,this,null,[c]).length),o[i]&&s.push(r);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click",Ee),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&M(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&M(t,"input")&&Z.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Oe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Ae(this,e,Te),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;return i&&(i===r||x.contains(r,i))||(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Me(this,e,t,n,r)},one:function(e,t,n,r){return Me(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each((function(){x.event.remove(this,e,n,t)}))}});var Ie=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,s,o,a;if(1===t.nodeType){if(Z.hasData(e)&&(a=Z.get(e).events))for(i in Z.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)x.event.add(t,i,a[i][n]);Y.hasData(e)&&(s=Y.access(e),o=x.extend({},s),Y.set(t,o))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,r){t=l(t);var i,s,o,a,c,u,h=0,d=e.length,p=d-1,f=t[0],g=b(f);if(g||d>1&&"string"==typeof f&&!m.checkClone&&De.test(f))return e.each((function(i){var s=e.eq(i);g&&(t[0]=f.call(this,i,s.html())),$e(s,t,n,r)}));if(d&&(s=(i=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=x.map(ye(i,"script"),je)).length;h<d;h++)c=i,h!==p&&(c=x.clone(c,!0,!0),a&&x.merge(o,ye(c,"script"))),n.call(e[h],c,h);if(a)for(u=o[o.length-1].ownerDocument,x.map(o,Re),h=0;h<a;h++)be.test((c=o[h]).type||"")&&!Z.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):_(c.textContent.replace(Pe,""),c,u))}return e}function Be(e,t,n){for(var r,i=t?x.filter(t,e):e,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||x.cleanData(ye(r)),r.parentNode&&(n&&oe(r)&&we(ye(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,s,o,a=e.cloneNode(!0),l=oe(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=ye(a),r=0,i=(s=ye(e)).length;r<i;r++)Fe(s[r],o[r]);if(t)if(n)for(s=s||ye(e),o=o||ye(a),r=0,i=s.length;r<i;r++)Le(s[r],o[r]);else Le(e,a);return(o=ye(a,"script")).length>0&&we(o,!l&&ye(e,"script")),a},cleanData:function(e){for(var t,n,r,i=x.event.special,s=0;void 0!==(n=e[s]);s++)if(J(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return U(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return $e(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)}))},prepend:function(){return $e(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!ve[(me.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],i=x(e),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),x(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ve=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},ze=function(e,t,n){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=s[i];return r},Ue=new RegExp(ie.join("|"),"i");function He(e,t,n){var r,i,s,o,a=e.style;return(n=n||qe(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||oe(e)||(o=x.style(e,t)),!m.pixelBoxStyles()&&Ve.test(o)&&Ue.test(t)&&(r=a.width,i=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=r,a.minWidth=i,a.maxWidth=s)),void 0!==o?o+"":o}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),se.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,s,o,a,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,r,i;return null==a&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",se.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),a=parseInt(i.height)>3,se.removeChild(e)),a}}))}();var Ge=["Webkit","Moz","ms"],Xe=y.createElement("div").style,Je={};function Qe(e){return x.cssProps[e]||Je[e]||(e in Xe?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Xe)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ke={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,s){var o="width"===t?1:0,a=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=x.css(e,n+ie[o],!0,i)),r?("content"===n&&(l-=x.css(e,"padding"+ie[o],!0,i)),"margin"!==n&&(l-=x.css(e,"border"+ie[o]+"Width",!0,i))):(l+=x.css(e,"padding"+ie[o],!0,i),"padding"!==n?l+=x.css(e,"border"+ie[o]+"Width",!0,i):a+=x.css(e,"border"+ie[o]+"Width",!0,i));return!r&&s>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l}function rt(e,t,n){var r=qe(e),i=(!m.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),s=i,o=He(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(o)){if(!n)return o;o="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&M(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,r),(s=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+nt(e,t,n||(i?"border":"content"),s,r,o)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,o,a=X(t),l=Ye.test(t),c=e.style;if(l||(t=Qe(a)),o=x.cssHooks[t]||x.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:c[t];"string"==(s=typeof n)&&(i=re.exec(n))&&i[1]&&(n=ce(e,t,i),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=i&&i[3]||(x.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,s,o,a=X(t);return Ye.test(t)||(t=Qe(a)),(o=x.cssHooks[t]||x.cssHooks[a])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=He(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(s=parseFloat(i),!0===n||isFinite(s)?s||0:i):i}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):ze(e,Ke,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,s=qe(e),o=!m.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===x.css(e,"boxSizing",!1,s),l=r?nt(e,t,r,a,s):0;return a&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-nt(e,t,"border",!1,s)-.5)),l&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),tt(0,n,l)}}})),x.cssHooks.marginLeft=We(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=s[r]||s[r-2]||s[0];return i}},"margin"!==e&&(x.cssHooks[e+t].set=tt)})),x.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,s={},o=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;o<i;o++)s[t[o]]=x.css(e,t[o],!1,r);return s}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=it,(it.prototype={constructor:it,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}}).init.prototype=it.prototype,(it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var st,ot,at=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){ot&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,x.fx.interval),x.fx.tick())}function ut(){return n.setTimeout((function(){st=void 0})),st=Date.now()}function ht(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function dt(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),s=0,o=i.length;s<o;s++)if(r=i[s].call(n,t,e))return r}function pt(e,t,n){var r,i,s=0,o=pt.prefilters.length,a=x.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=st||ut(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(r);return a.notifyWith(e,[c,r,n]),r<1&&o?n:(o||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,r,i,s,o;for(n in e)if(i=t[r=X(n)],s=e[n],Array.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),(o=x.cssHooks[r])&&"expand"in o)for(n in s=o.expand(s),delete e[r],s)n in e||(e[n]=s[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);s<o;s++)if(r=pt.prefilters[s].call(c,e,u,c.opts))return b(r.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,dt,c),b(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)(pt.tweeners[n=e[r]]=pt.tweeners[n]||[]).unshift(t)},prefilters:[function(e,t,n){var r,i,s,o,a,l,c,u,h="width"in t||"height"in t,d=this,p={},f=e.style,g=e.nodeType&&le(e),m=Z.get(e,"fxshow");for(r in n.queue||(null==(o=x._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,x.queue(e,"fx").length||o.empty.fire()}))}))),t)if(at.test(i=t[r])){if(delete t[r],s=s||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||x.style(e,r)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(r in h&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=Z.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=x.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(c="none"===(u=f.display)?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Z.access(e,"fxshow",{display:c}),s&&(m.hidden=!g),g&&de([e],!0),d.done((function(){for(r in g||de([e]),Z.remove(e,"fxshow"),p)x.style(e,r,p[r])}))),l=dt(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration=r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),s=x.speed(t,n,r),o=function(){var t=pt(this,x.extend({},e),s);(i||Z.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",s=x.timers,o=Z.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&lt.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=x.timers,o=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ht(t,!0),e,r,i)}})),x.each({slideDown:ht("show"),slideUp:ht("hide"),slideToggle:ht("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),st=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ot||(ot=!0,ct())},x.fx.stop=function(){ot=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,this.queue(t=t||"fx",(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var ft,gt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return U(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&M(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=gt[t]||x.find.attr;gt[t]=function(e,t,r){var i,s,o=t.toLowerCase();return r||(s=gt[o],gt[o]=i,i=null!=n(e,t,r)?o:null,gt[o]=s),i}}));var mt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function vt(e){return(e.match(L)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}x.fn.extend({prop:function(e,t){return U(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,i,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&x.isXMLDoc(e)||(i=x.propHooks[t=x.propFix[t]||t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(x.propHooks.selected={get:function(e){return null},set:function(e){}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,i,s,o,a,l=0;if(b(e))return this.each((function(t){x(this).addClass(e.call(this,t,yt(this)))}));if((t=wt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(o=0;s=t[o++];)r.indexOf(" "+s+" ")<0&&(r+=s+" ");i!==(a=vt(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,s,o,a,l=0;if(b(e))return this.each((function(t){x(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){for(o=0;s=t[o++];)for(;r.indexOf(" "+s+" ")>-1;)r=r.replace(" "+s+" "," ");i!==(a=vt(r))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):b(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,s,o;if(r)for(i=0,s=x(this),o=wt(e);t=o[i++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+vt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_t,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:vt(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?s+1:i.length;for(r=s<0?l:o?s:0;r<l;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!M(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,s=x.makeArray(t),o=i.length;o--;)((r=i[o]).selected=x.inArray(x.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},m.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var Ct=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,r,i){var s,o,a,l,c,u,h,d,f=[r||y],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(o=d=a=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!Ct.test(g+x.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[x.expando]?e:new x.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:x.makeArray(t,[e]),h=x.event.special[g]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){if(!i&&!h.noBubble&&!v(r)){for(Ct.test((l=h.delegateType||g)+g)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(r.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||n)}for(s=0;(o=f[s++])&&!e.isPropagationStopped();)d=o,e.type=s>1?l:h.bindType||g,(u=(Z.get(o,"events")||Object.create(null))[e.type]&&Z.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&J(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!J(r)||c&&b(r[g])&&!v(r)&&((a=r[c])&&(r[c]=null),x.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,xt),r[g](),e.isPropagationStopped()&&d.removeEventListener(g,xt),x.event.triggered=void 0,a&&(r[c]=a)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),m.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}}));var Ot=n.location,St={guid:Date.now()},Et=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var kt=/\[\]$/,Tt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function It(e,t,n,r){var i;if(Array.isArray(t))x.each(t,(function(t,i){n||kt.test(e)?r(e,i):It(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==C(t))r(e,t);else for(i in t)It(e+"["+i+"]",t[i],n,r)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(n in e)It(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&At.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}});var Dt=/%20/g,Pt=/#.*$/,Nt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ft={},$t={},Bt="*/".concat("*"),Vt=y.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(L)||[];if(b(n))for(;r=s[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function zt(e,t,n,r){var i={},s=e===$t;function o(a){var l;return i[a]=!0,x.each(e[a]||[],(function(e,a){var c=a(t,n,r);return"string"!=typeof c||s||i[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Ut(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Vt.href=Ot.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ot.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,x.ajaxSettings),t):Ut(x.ajaxSettings,e)},ajaxPrefilter:qt(Ft),ajaxTransport:qt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var r,i,s,o,a,l,c,u,h,d,p=x.ajaxSetup({},t=t||{}),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?x(f):x.event,m=x.Deferred(),b=x.Callbacks("once memory"),v=p.statusCode||{},w={},_={},C="canceled",O={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=jt.exec(s);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)O.always(e[O.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),S(0,t),this}};if(m.promise(O),p.url=((e||p.url||Ot.href)+"").replace(Lt,Ot.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(L)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Vt.protocol+"//"+Vt.host!=l.protocol+"//"+l.host}catch(E){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),zt(Ft,p,t,O),c)return O;for(h in(u=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Rt.test(p.type),i=p.url.replace(Pt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Et.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(Nt,"$1"),d=(Et.test(i)?"&":"?")+"_="+St.guid+++d),p.url=i+d),p.ifModified&&(x.lastModified[i]&&O.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&O.setRequestHeader("If-None-Match",x.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&O.setRequestHeader("Content-Type",p.contentType),O.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Bt+"; q=0.01":""):p.accepts["*"]),p.headers)O.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,O,p)||c))return O.abort();if(C="abort",b.add(p.complete),O.done(p.success),O.fail(p.error),r=zt($t,p,t,O)){if(O.readyState=1,u&&g.trigger("ajaxSend",[O,p]),c)return O;p.async&&p.timeout>0&&(a=n.setTimeout((function(){O.abort("timeout")}),p.timeout));try{c=!1,r.send(w,S)}catch(E){if(c)throw E;S(-1,E)}}else S(-1,"No Transport");function S(e,t,o,l){var h,d,y,w,_,C=t;c||(c=!0,a&&n.clearTimeout(a),r=void 0,s=l||"",O.readyState=e>0?4:0,h=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var r,i,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)s=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,O,o)),!h&&x.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),w=function(e,t,n,r){var i,s,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(i in c)if((a=i.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[i]:!0!==c[i]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(E){return{state:"parsererror",error:o?E:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,w,O,h),h?(p.ifModified&&((_=O.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=_),(_=O.getResponseHeader("etag"))&&(x.etag[i]=_)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=w.state,d=w.data,h=!(y=w.error))):(y=C,!e&&C||(C="error",e<0&&(e=0))),O.status=e,O.statusText=(t||C)+"",h?m.resolveWith(f,[d,C,O]):m.rejectWith(f,[O,C,y]),O.statusCode(v),v=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[O,p,h?d:y]),b.fireWith(f,[O,C]),u&&(g.trigger("ajaxComplete",[O,p]),--x.active||x.event.trigger("ajaxStop")))}return O},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Wt=x.ajaxSettings.xhr();m.cors=!!Wt&&"withCredentials"in Wt,m.ajax=Wt=!!Wt,x.ajaxTransport((function(e){var t,r;if(m.cors||Wt&&!e.crossDomain)return{send:function(i,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Ht[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),r=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=r:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Gt,Xt=[],Jt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||x.expando+"_"+St.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,r){var i,s,o,a=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||x.error(i+" was not called"),o[0]},e.dataTypes[0]="json",s=n[i],n[i]=function(){o=arguments},r.always((function(){void 0===s?x(n).removeProp(i):n[i]=s,e[i]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(i)),o&&b(s)&&s(o[0]),o=s=void 0})),"script"})),m.createHTMLDocument=((Gt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Gt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),s=!n&&[],(i=A.exec(e))?[t.createElement(i[1])]:(i=Ce([e],t,s),s&&s.length&&x(s).remove(),x.merge([],i.childNodes)));var r,i,s},x.fn.load=function(e,t,n){var r,i,s,o=this,a=e.indexOf(" ");return a>-1&&(r=vt(e.slice(a)),e=e.slice(0,a)),b(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){s=arguments,o.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,i,s,o,a,l,c=x.css(e,"position"),u=x(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(r=u.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,x.extend({},a))),null!=t.top&&(h.top=t.top-a.top+o),null!=t.left&&(h.left=t.left-a.left+i),"using"in t?t.using.call(e,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),u.css(h))}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?{top:(t=r.getBoundingClientRect()).top+(n=r.ownerDocument.defaultView).pageYOffset,left:t.left+n.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||se}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return U(this,(function(e,r,i){var s;if(v(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===i)return s?s[t]:e[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):e[r]=i}),e,r,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=We(m.pixelPosition,(function(e,n){if(n)return n=He(e,t),Ve.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.fn[r]=function(i,s){var o=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===s?"margin":"border");return U(this,(function(t,n,i){var s;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===i?x.css(t,n,a):x.style(t,n,i,a)}),t,o?i:void 0,o)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),b(e))return r=a.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(a.call(arguments)))}).guid=e.guid=e.guid||x.guid++,i},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=M,x.isFunction=b,x.isWindow=v,x.camelCase=X,x.type=C,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=(function(){return x}).apply(t,[]))||(e.exports=r);var Zt=n.jQuery,Yt=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=Yt),e&&n.jQuery===x&&(n.jQuery=Zt),x},void 0===i&&(n.jQuery=n.$=x),x}))},EY2u:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("HDdC");const i=new r.a(e=>e.complete());function s(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},F9l0:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.isRecognitionAvailable=function(){return Object(i.cordova)(this,"isRecognitionAvailable",{},arguments)},t.prototype.startListening=function(e){return Object(i.cordova)(this,"startListening",{callbackOrder:"reverse",observable:!0},arguments)},t.prototype.stopListening=function(){return Object(i.cordova)(this,"stopListening",{},arguments)},t.prototype.getSupportedLanguages=function(){return Object(i.cordova)(this,"getSupportedLanguages",{},arguments)},t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.requestPermission=function(){return Object(i.cordova)(this,"requestPermission",{},arguments)},t.pluginName="SpeechRecognition",t.plugin="cordova-plugin-speechrecognition",t.pluginRef="plugins.speechRecognition",t.repo="https://github.com/pbakondy/cordova-plugin-speechrecognition",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},FUig:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.slide=function(e){return Object(i.cordova)(this,"slide",{},arguments)},t.prototype.flip=function(e){return Object(i.cordova)(this,"flip",{},arguments)},t.prototype.fade=function(e){return Object(i.cordova)(this,"fade",{platforms:["iOS","Android"]},arguments)},t.prototype.drawer=function(e){return Object(i.cordova)(this,"drawer",{platforms:["iOS","Android"]},arguments)},t.prototype.curl=function(e){return Object(i.cordova)(this,"curl",{platforms:["iOS"]},arguments)},t.prototype.executePendingTransition=function(){return Object(i.cordova)(this,"executePendingTransition",{},arguments)},t.prototype.cancelPendingTransition=function(){return Object(i.cordova)(this,"cancelPendingTransition",{},arguments)},t.pluginName="NativePageTransitions",t.plugin="com.telerik.plugins.nativepagetransitions",t.pluginRef="plugins.nativepagetransitions",t.repo="https://github.com/Telerik-Verified-Plugins/NativePageTransitions",t.platforms=["Android","iOS","Windows Phone 8"],t}(i.IonicNativePlugin)},FbN9:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("8Y7J"),i=(n("BzsH"),n("IP0z"),n("Xd0L"),n("cUpR"),n("/HVE"),n("SVse"),r.qb({encapsulation:2,styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}}));function s(e){return r.Nb(2,[r.Db(null,0),r.Db(null,1)],null,null)}},Ff54:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("LKtr"),n("2IJ5"),n("h4wn"),n("kbZ1");class r{constructor(e,t,n,r,i){this.navCtrl=e,this.tabsManager=t,this.friendsManager=n,this.itemsManager=r,this.consoleDialog=i,this.bayaTab="bayaTab",null==this.tabsManager.selectedTab&&(this.tabsManager.selectedTab=2),this.highlightTab()}highlightTab(){switch(this.tabsManager.selectedTab){case 1:this.friendsClass="notSelected",this.itemsClass="notSelected",this.collectionsClass="selected";break;case 2:this.friendsClass="notSelected",this.itemsClass="selected",this.collectionsClass="notSelected";break;case 3:this.friendsClass="selected",this.itemsClass="notSelected",this.collectionsClass="notSelected"}}selectTab(e){switch(e){case 1:this.openCollections();break;case 2:this.openItems();break;case 3:this.openFriends()}}openCollections(){if(1==this.tabsManager.selectedTab)return!0;this.tabsManager.selectedTab=1,this.navCtrl.navigateRoot("collections")}openItems(){this.tabsManager.selectedTab=2,this.itemsManager.clearNotification(),this.navCtrl.navigateRoot("items")}openFriends(){this.tabsManager.selectedTab=3,this.friendsManager.clearFriendsNotification(),this.navCtrl.navigateRoot("contact")}getCollectionsNotificationsNumber(){return""}getItemsNotificationsNumber(){let e=this.itemsManager.getNotificationsNumber();return e>0?e:""}getFriendsNotificationsNumber(){let e=this.friendsManager.getNotificationsNumber();return e>0?e:""}}},FpXt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{}},FxvK:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("zI0Y");class i extends r.a{constructor(e){super(e),this.artikel=e.artikel,this.plural=e.plural}}},GAbP:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n("6GXZ");var r=n("0K09"),i=n("oCF6"),s=n("0NL6"),o=n("p9zK"),a=n("olg3"),l=(n("2IJ5"),n("AjPc"));class c{constructor(e,t,n,i){this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=i,this.userManager=this.injector.get(a.a),this._PORTER=this.injector.get(r.a),this.userManager.isLoggedIn().then(e=>{e&&this.userManager.getUser().then(e=>{this.init(e)})})}importSQL(e){return new Promise((t,n)=>{this.platform.is("cordova")?this.userManager.getUser().then(r=>{this.init(r).then(()=>{this._PORTER.importSqlToDb(this.databaseObj,e).then(e=>{t(e)}).catch(e=>{n(e)})})}):t("no cordvoa")})}initialNotUsed(e){return new Promise((t,n)=>{this.databaseName=e+"data.db",this.platform.ready().then(()=>{this.platform.is("cordova")&&(console.log("going to create database sql"),this.sqlite.create({name:this.databaseName,location:"default"}).then(e=>{this.databaseObj=e,this.createTables(),t(!0)}).catch(e=>console.log(e)))})})}createTables(){this.databaseObj.executeSql("create table  IF NOT EXISTS items \n                                  (itemID  VARCHAR(32) UNIQUE,userID  VARCHAR(32),title  VARCHAR(32),name VARCHAR(32),type  VARCHAR(32),localCount  INT(10),description  text NOT NULL )",[]).then(()=>{this.databaseObj.executeSql("ALTER TABLE items ADD COLUMN userID VARCHAR(32)").then(()=>{console.log("altered table items")}).catch(e=>{console.log("error on create db",e)}),console.log("db items created")}).catch(e=>{}),this.databaseObj.executeSql("create table  IF NOT EXISTS messages \n                      (itemID  VARCHAR(32),messageID  VARCHAR(32) UNIQUE,\n                       status  VARCHAR(16),data text NOT NULL,\n                       content text,received INTEGER,folded INTEGER, \n                       repetittion INTEGER, receivedTime text, \n                       lastReviewedTime text, easinessFactor REAL, reviewTime text)",[]).then(()=>{console.log("Tables are created")}).catch(e=>{console.log("oooooooooooh no there waaaas an error"),console.log(e)}),this.createWordsTable()}createWordsTable(){this.databaseObj.executeSql("create table IF NOT EXISTS wordsSuggestion \n              (_id  integer primary key autoincrement, word text not null unique) \n               ",[]).then(()=>{console.log("Executed SQLL")}).catch(e=>{console.log(e)})}setDatabaseName(e){this.databaseName=e.userID+"data.db"}init(e){return this.setDatabaseName(e),new Promise((e,t)=>{null!=this.databaseObj?e(this.databaseObj):this.platform.ready().then(()=>{this.platform.is("cordova")&&this.sqlite.create({name:this.databaseName,location:"default"}).then(t=>{this.databaseObj=t,this.createTables(),e(this.databaseObj)}).catch(e=>{console.log(e," err on db")})})})}getFutureMessages(){return new Promise((e,t)=>{let n=[],r="select messageID, data,content, received, receivedTime, reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages";r+=" WHERE reviewTime >= Datetime('"+l.d.getToday()+"')",r+=" GROUP BY reviewTime",console.log("sqlLiteQuery",r),this.databaseObj.executeSql(r,[]).then(t=>{if(t.rows.length>0)for(var r=t.rows.length-1;r>=0;r--){this.consoleDialog.log2("futrue message",t.rows.item(r));let e=new s.a(JSON.parse(t.rows.item(r).data));e.content||(e.content=JSON.parse(t.rows.item(r).content)),e.setReceivedFromInt(t.rows.item(r).received),e.setEasinessFactor(t.rows.item(r).easinessFactor),e.setRepetitions(t.rows.item(r).repetittion),e.setLastReviewedTime(t.rows.item(r).lastReviewedTime),e.setMessageID(t.rows.item(r).messageID),n.push(e)}e(n)}).catch(e=>{console.log("error from get leitner messages",e)})})}getItemsTableName(){return"items"}getMessagesTableName(){return"messages"}copyMessages(e,t){let n=t.itemID.substr(t.itemID.length-4,t.itemID.length),r="INSERT INTO "+this.getMessagesTableName()+" SELECT  '"+t.itemID+"' as itemID, '"+n+'\' || messageID as messageID,\n    status,replace(replace(data, \'"type":"dictionary"\',\'"type":"leitner"\'),messageID, \''+n+"' || messageID) as data ,\n    content,received,folded, \n    repetittion, receivedTime, \n    lastReviewedTime, easinessFactor, reviewTime FROM "+this.getMessagesTableName()+" where itemID ='"+e.itemID+"'";this.databaseObj.executeSql(r,[]).then(e=>{console.log("convert done",e)}).catch(e=>{console.log("convert failed",e)})}updateMessageContent(e,t){let n="UPDATE messages SET content = '"+JSON.stringify(t.content)+"' where itemID = '"+e+"' and messageID = '"+t.messageID+"' ";this.databaseObj.executeSql(n,[]).then(e=>{console.log("content of message",t,"updated",e)}).catch(e=>{console.log("error content of message 2",t,"not updated")}),n="UPDATE messages SET data = '"+JSON.stringify(t)+"' where itemID = '"+e+"' and messageID = '"+t.messageID+"' ",this.databaseObj.executeSql(n,[]).then(e=>{console.log("message",t,"updated",e)}).catch(e=>{console.log("error updating of message",t,"not updated")})}updateChatTitle(e){if(!this.platform.is("cordova"))return!1;let t="UPDATE items SET title = '"+e.title+"' where itemID = '"+e.chatID+"'";console.log(t),this.databaseObj.executeSql(t,[]).then(e=>{console.log("chat title saved in db")}).catch(e=>{console.log("error database chat title",e)})}showDatabases(){this.sqlite.echoTest()}deleteItem(e){this.databaseObj.executeSql("delete from items where itemID='"+e.itemID+"'",[]).then(()=>console.log("deleted")).catch(e=>{console.log(e,"error from database delete item")})}removeMessage(e){this.databaseObj.executeSql("delete from messages where messageID='"+e.messageID+"'",[]).then(()=>console.log("deleted")).catch(e=>{console.log(e,"error from database delete item")})}addItem(e){this.databaseObj.executeSql("insert OR IGNORE into items (itemID,userID,name,title,type, localCount, description) values('"+e.itemID+"', '"+e.userID+"', '"+e.name+"', '"+e.title+"', '"+e.type+"', "+e.localCount+", '"+e.description+"')",[]).then(e=>{console.log("executed",e)}).catch(e=>{console.log("error add item to database",e)})}updateMessageFolding(e,t){let n="UPDATE messages SET folded = "+t.getFoldedInt()+" where itemID = '"+e.chatID+"' and messageID = '"+t.messageID+"' ";this.databaseObj.executeSql(n,[]).then(e=>{console.log("sqlstring",n)}).catch(e=>{console.log("error content of message 2",t,"not folded")})}updateMessageReview(e,t){return new Promise((n,r)=>{let i="UPDATE messages SET  reviewTime = '"+t.getReviewTimeSqlLiteFormat()+"', lastReviewedTime = '"+t.getLastReviewTimeSqlLiteFormat()+"', repetittion = "+t.repetittion+" ,  easinessFactor = "+t.easinessFactor+" where itemID = '"+e.chatID+"' and messageID = '"+t.messageID+"' ";this.databaseObj.executeSql(i,[]).then(e=>{n(!0),console.log("sqlstring",i),console.log("review of message",t,"updated",e)}).catch(e=>{console.log("error review of message 2",t,"not updated",e,i)})})}addMessage(e,t){if(!this.platform.is("cordova"))return!1;if(null==t.messageID)return console.log("messages cant be saved because message id is undefined",t),!1;let n="";t.hasContent()&&(n=JSON.stringify(t.content));let r="insert OR IGNORE INTO messages (itemID,messageID,received,folded, status,content, receivedTime, reviewTime,repetittion ,data ) values('"+e.chatID+"', '"+t.messageID+"',"+t.getReceivedInt()+", "+t.getFoldedInt()+", '"+t.status+"', '"+n+"', '"+t.getReceivedTimeSqlLiteFormat()+"', '"+t.getReviewTimeSqlLiteFormat()+"', "+t.repetittion+", '"+JSON.stringify(t)+"')";this.databaseObj.executeSql(r,[]).then(e=>{this.consoleDialog.log("message added to db",e)}).catch(e=>{console.log("error database in add message",e)}),this.getMessages(e,5)}prependMessage(e,t){if(!this.platform.is("cordova"))return console.log("platform is not cordova"),!1;if(null==t.messageID)return console.log("messages cant be saved because message id is undefined",t),!1;let n="insert into messages (itemID,messageID,received,folded, status, receivedTime, reviewTime ,data ) values('"+e.chatID+"', '"+t.messageID+"',"+t.getReceivedInt()+", "+t.getFoldedInt()+", '"+t.status+"', '"+t.getReceivedTimeSqlLiteFormat()+"', '"+t.getReviewTimeSqlLiteFormat()+"', '"+JSON.stringify(t)+"')";this.consoleDialog.log2("added msg",n),this.databaseObj.executeSql(n,[]).then(e=>{console.log("executed",e),this.consoleDialog.log("message added to db",e)}).catch(e=>{console.log("error database in add message",e)})}truncrate(){this.databaseObj.executeSql("delete from items",[]).then(()=>{console.log("all deleted")}).catch(e=>{console.log("error from truncrate",e)}),this.databaseObj.executeSql("delete from messages",[]).then(()=>{console.log("all deleted")}).catch(e=>{console.log("error from truncrate",e)}),this.databaseObj.executeSql("drop Table items",[]).then(()=>{console.log("database dropped")}).catch(e=>{console.log("error on drop database")}),this.databaseObj.executeSql("drop Table messages",[]).then(()=>{console.log("database dropped")}).catch(e=>{console.log("error on drop database")}),this.createTables()}getItems(e){return new Promise((t,n)=>{let r=[];this.init(e).then(()=>{this.databaseObj.executeSql("select * from items",[]).then(e=>{if(e.rows.length>0)for(var n=0;n<e.rows.length;n++)r.push(e.rows.item(n));t(r)}).catch(e=>{console.log("error database",e)})})})}getLeitnerMessages(e,t){return new Promise((n,r)=>{let o=[],a="select data,content, received,folded, receivedTime, reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"'";a+=" AND reviewTime <= Datetime('"+l.d.getTodayForSqlLite()+"')",e.messages.length>0&&(a+=" AND receivedTime < Datetime('"+e.messages[0].getReceivedTimeSqlLiteFormat()+"')"),a+=" ORDER BY rowid DESC limit "+t,console.log("sqlLiteQuery lite",a),this.databaseObj.executeSql(a,[]).then(e=>{if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){let n=new s.a(JSON.parse(e.rows.item(t).data));n.content||(n.content=JSON.parse(e.rows.item(t).content)),n.setReceivedFromInt(e.rows.item(t).received),n.setFoldingFromInt(e.rows.item(t).folded),n.setEasinessFactor(e.rows.item(t).easinessFactor),n.setRepetitions(e.rows.item(t).repetittion),n.setLastReviewedTime(e.rows.item(t).lastReviewedTime),n.type=i.a.typeLeitner,o.push(n)}console.log("look at leitner messages ",o),n(o)}).catch(e=>{console.log("error from get leitner messages",e)})})}getMessageContent(e){return new Promise((t,n)=>{this.databaseObj.executeSql('select content from messages where data like \'%"text":"'+e.text+"\"%' limit 1",[]).then(n=>{if(null!=n&&null!=n.rows&&null!=n.rows&&n.rows.length>0)for(let r=n.rows.length-1;r>=0;r--){let i=n.rows.item(r).content;null!=i&&i.length>0&&null!=i&&"null"!=i?(e.content=JSON.parse(n.rows.item(r).content),t(!0)):t(!1)}else t(!1)}).catch(e=>{console.log("error from get messages",e)})})}getMessages(e,t){return e.showNewWords()?this.getLeitnerMessages(e,t):this.getNormalMessages(e,t)}getNormalMessages(e,t){return new Promise((n,r)=>{let i=[],s="select data,content, received,folded, receivedTime,reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"'";e.messages.length>0&&(s+=" AND receivedTime < Datetime('"+e.messages[0].getReceivedTimeSqlLiteFormat()+"')"),s+=" ORDER BY rowid DESC limit "+t,this.databaseObj.executeSql(s,[]).then(e=>{if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){let n=e.rows.item(t),r=this.createMessageWithMessageObject(JSON.parse(n.data));r.hasContent()||(r.content=JSON.parse(n.content)),r.setReceivedTime(n.receivedTime),r.setReceivedFromInt(n.received),r.setReviewTime(n.reviewTime),r.setFoldingFromInt(n.folded),r.setEasinessFactor(n.easinessFactor),r.setRepetitions(n.repetittion),r.setLastReviewedTime(n.lastReviewedTime),i.push(r)}n(i)}).catch(e=>{console.log("error from get messages",e)})})}createMessageWithMessageObject(e){let t;switch(null==e.type&&(e.type=e.messageType),e.type){case"chat":case"dictionary":case"leitner":t=new s.a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new o.a(e)}return t}selectMessagesFromChat(e,t){return new Promise((n,r)=>{let i=[];this.databaseObj.executeSql("select data,content, received,folded, receivedTime,reviewTime,lastReviewedTime,easinessFactor ,repetittion from messages where itemID='"+e.chatID+"' AND content like '%"+t+"%' limit 6",[]).then(e=>{if(e.rows.length>0)for(var t=e.rows.length-1;t>=0;t--){let n=this.createMessageWithMessageObject(JSON.parse(e.rows.item(t).data));n.hasContent()||(n.content=JSON.parse(e.rows.item(t).content)),n.setReceivedTime(e.rows.item(t).receivedTime),n.setReceivedFromInt(e.rows.item(t).received),n.setReviewTime(e.rows.item(t).reviewTime),n.setFoldingFromInt(e.rows.item(t).folded),n.setEasinessFactor(e.rows.item(t).easinessFactor),n.setRepetitions(e.rows.item(t).repetittion),n.setLastReviewedTime(e.rows.item(t).lastReviewedTime),i.push(n)}n(i)}).catch(e=>{console.log("error from get messages",e)})})}}},Gi4r:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("SVse"),n("IheW"),n("8Y7J"),n("cUpR"),n("LRne"),n("z6cu"),n("cp0P"),n("vkgz"),n("lJxs"),n("JIr8"),n("nYR2"),n("w1tV"),n("IzEk"),n("KCVW"),n("Xd0L");class r{}},GyhO:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("LRne"),i=n("0EUg");function s(...e){return Object(i.a)()(Object(r.a)(...e))}},HDdC:function(e,t,n){"use strict";var r=n("7o/Q"),i=n("2QA8"),s=n("gRHU"),o=n("kJWO"),a=n("mCNh"),l=n("2fFW");n.d(t,"a",(function(){return c}));let c=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,a=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(s.a)}(e,t,n);if(a.add(o?o.call(a,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),l.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(t){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:Object(a.b)(e)(this)}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=l.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HKEL:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("h4wn");class r{constructor(e,t,n){this.friendsManager=e,this.viewCtrl=t,this.translateService=n,this.email="",this.toknow=this.translateService.currentLang}addFriend(){this.friendsManager.add(this.email),this.viewCtrl.dismiss()}close(){this.viewCtrl.dismiss()}}},HPGL:function(e,t,n){"use strict";function r(){if("undefined"==typeof process){var e="undefined"!=typeof window?window:{},t=Date.now(),n=!1;e.document.addEventListener("deviceready",(function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-t)+" ms"),n=!0})),setTimeout((function(){!n&&e.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(t,"a",(function(){return r}))},HcDZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("2IJ5"),n("kbZ1"),n("h4wn"),n("J20c"),n("sk1z"),n("olg3"),n("/qZA"),n("oCF6");var r=n("sUqe");n("0+M4");class i{constructor(e,t,n,r,i,s,o,a,l,c,u,h,d,p){this.navCtrl=e,this.location=t,this.itemsManager=n,this.chatsManager=r,this.consoleDialog=i,this.userManager=s,this.view=o,this.translateService=a,this.friendsManager=l,this.adsManager=c,this.menu=u,this.events=h,this.socketManager=d,this.router=p,this.socketMgrConnected=!1,this.searchInputVisible=!1,this.registerEvents()}registerEvents(){this.events.subscribe(r.c.updatedTitle,e=>{this.chatPage&&(this.text=e.title)}),this.events.subscribe("resumeApp",()=>{this.search(),this.closeInput()}),this.registerConnectedSocket(),this.registerResume()}ngOnInit(){}registerConnectedSocket(){this.events.subscribe(r.c.Connected,()=>{this.socketMgrConnected=!0,this.ngOnInit()}),this.events.subscribe(r.c.SocketDisconnected,()=>{this.socketMgrConnected=!1})}registerResume(){}ngAfterViewInit(){this.userManager.loggedIn().then(()=>{this.text=this.textToUse,this.chatPage&&(this.text=this.chat.title)}).catch(e=>{this.consoleDialog.log("login error",e)})}ionViewDidEnter(){this.navBar.backButtonClick=()=>{console.log("hallo back button"),this.backButtonClick()}}connectAgain(){console.log("connect again"),this.socketManager.connect()}disconnect(){console.log("serve disconnect"),this.socketManager.disconnect()}openFirst(){this.menu.enable(!0,"first"),this.menu.open("first")}openEnd(){this.menu.open("end")}openCustom(){this.menu.enable(!0,"custom"),this.menu.open("custom")}search(){this.openInput()}cancel(){this.closeInput()}hasSearchBtn(){return this.chatPage||this.itemsPage||this.friendsPage}closeInput(){this.chatPage&&(this.chat.searching=!1,this.chat.endSearch()),this.itemsPage&&this.itemsManager.endSearch(),this.friendsPage&&this.friendsManager.endSearch(),this.searchInputVisible=!1,this.needle=""}openInput(){this.chatPage&&(this.chat.searching=!0),this.itemsPage&&this.itemsManager.searchBackUp(),this.friendsPage&&this.friendsManager.searchBackUp(),this.searchInputVisible=!0}backButtonClick(){console.log("lets see some ads def")}isQuiz(){if(this.chat)return this.chat.isQuiz()}goBack(){this.chatsManager.clearCurrentChat(),this.itemsManager.save(),this.location.back(),1==this.userManager.user.frgpass?"/profile/signup"!==this.router.url&&"/profile/forgotpassword"!==this.router.url||this.router.navigateByUrl("/profile/login"):"/profile/signup"!==this.router.url&&"/profile/forgotpassword"!==this.router.url||(this.router.navigateByUrl("/profile"),this.userManager.user.frgpass=!0),this.chat.isLeitner()&&this.adsManager.removeBannerAd()}onInput(e){if(this.chatPage)return!1;this.itemsPage&&this.itemsManager.search(this.needle),this.friendsPage&&this.friendsManager.search(this.needle)}searchInDatabase(){this.chatPage&&this.needle.length>0&&this.chatsManager.searchInChat(this.needle)}showDetails(){this.chat.item.userID==this.userManager.user.userID&&this.chat.isDictionary()&&(console.log("this.chat",this.chat),this.router.navigate(["chat/membersPage"],{state:{chat:this.chat}}))}isChatPage(){return this.chatPage}showChatOptionMenu(){this.chat.setShowOptionMenu(!0)}isConnected(){return this.socketManager.isConnected()}isShowOptionMenu(){if(this.chat)return this.chat.isShowOptionMenu()}showMenu(){this.menu.open()}}},Hceu:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("QA36"),n("LKtr");class r{constructor(e,t,n,r,i,s){this.navCtrl=e,this.router=t,this.collectionsManager=n,this.menuCtrl=r,this.tabsManager=i,this.cd=s,this.loaded=!1}ngOnInit(){}ionViewDidLoad(){}ionViewDidEnter(){}ngAfterContentInit(){}ngAfterViewInit(){this.cd.detectChanges()}ngAfterViewChecked(){}ngAfterContentChecked(){}getPlugin(){}swipeEvent(e){2==e.direction&&(this.tabsManager.selectedTab=2,this.router.navigate(["items"]))}}},I55L:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IP0z:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n("SVse"),i=n("8Y7J");const s=new i.o("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.V)(r.d)}});let o=(()=>{class e{constructor(e){if(this.value="ltr",this.change=new i.m,e){const t=e.documentElement?e.documentElement.dir:null,n=(e.body?e.body.dir:null)||t;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(s,8))},token:e,providedIn:"root"}),e})();class a{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new i.m}get dir(){return this._dir}set dir(e){const t=this._dir,n=e?e.toLowerCase():e;this._rawDir=e,this._dir="ltr"===n||"rtl"===n?n:"ltr",t!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}class l{}},IheW:function(e,t,n){"use strict";n.d(t,"k",(function(){return D})),n.d(t,"n",(function(){return L})),n.d(t,"o",(function(){return F})),n.d(t,"l",(function(){return N})),n.d(t,"m",(function(){return j})),n.d(t,"b",(function(){return h})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return V})),n.d(t,"e",(function(){return B})),n.d(t,"j",(function(){return $})),n.d(t,"g",(function(){return P})),n.d(t,"i",(function(){return I})),n.d(t,"h",(function(){return R}));var r=n("8Y7J"),i=n("LRne"),s=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("SVse");class u{}class h{}class d{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(e=>{const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),r=n.toLowerCase(),i=e.slice(t+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(i):this.headers.set(r,[i])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let n=e[t];const r=t.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(t,r))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new d;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);const r=("a"===e.op?this.headers.get(t):void 0)||[];r.push(...n),this.headers.set(t,r);break;case"d":const i=e.value;if(i){let e=this.headers.get(t);if(!e)return;e=e.filter(e=>-1===i.indexOf(e)),0===e.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,e)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class p{encodeKey(e){return f(e)}encodeValue(e){return f(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}function f(e){return encodeURIComponent(e).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(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new p,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(e,t){const n=new Map;return e.length>0&&e.split("&").forEach(e=>{const r=e.indexOf("="),[i,s]=-1==r?[t.decodeKey(e),""]:[t.decodeKey(e.slice(0,r)),t.decodeValue(e.slice(r+1))],o=n.get(i)||[];o.push(s),n.set(i,o)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const n=e.fromObject[t];this.map.set(t,Array.isArray(n)?n:[n])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(e=>t+"="+this.encoder.encodeValue(e)).join("&")}).join("&")}clone(e){const t=new g({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat([e]),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(e.value),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let t=this.map.get(e.param)||[];const n=t.indexOf(e.value);-1!==n&&t.splice(n,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}function m(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function v(e){return"undefined"!=typeof FormData&&e instanceof FormData}class y{constructor(e,t,n,r){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(e){switch(e){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,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new d),this.params){const e=this.params.toString();if(0===e.length)this.urlWithParams=t;else{const n=t.indexOf("?");this.urlWithParams=t+(-1===n?"?":n<t.length-1?"&":"")+e}}else this.params=new g,this.urlWithParams=t}serializeBody(){return null===this.body?null:m(this.body)||b(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||v(this.body)?null:b(this.body)?this.body.type||null:m(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(e={}){const t=e.method||this.method,n=e.url||this.url,r=e.responseType||this.responseType,i=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,o=void 0!==e.reportProgress?e.reportProgress:this.reportProgress;let a=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(a=Object.keys(e.setHeaders).reduce((t,n)=>t.set(n,e.setHeaders[n]),a)),e.setParams&&(l=Object.keys(e.setParams).reduce((t,n)=>t.set(n,e.setParams[n]),l)),new y(t,n,i,{params:l,headers:a,reportProgress:o,responseType:r,withCredentials:s})}}const w=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}();class _{constructor(e,t=200,n="OK"){this.headers=e.headers||new d,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class C extends _{constructor(e={}){super(e),this.type=w.ResponseHeader}clone(e={}){return new C({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class x extends _{constructor(e={}){super(e),this.type=w.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new x({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class O extends _{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function S(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}class E{constructor(e){this.handler=e}request(e,t,n={}){let r;if(e instanceof y)r=e;else{let i=void 0;i=n.headers instanceof d?n.headers:new d(n.headers);let s=void 0;n.params&&(s=n.params instanceof g?n.params:new g({fromObject:n.params})),r=new y(e,t,void 0!==n.body?n.body:null,{headers:i,params:s,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const s=Object(i.a)(r).pipe(Object(o.a)(e=>this.handler.handle(e)));if(e instanceof y||"events"===n.observe)return s;const c=s.pipe(Object(a.a)(e=>e instanceof x));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return c.pipe(Object(l.a)(e=>{if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));case"json":default:return c.pipe(Object(l.a)(e=>e.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,n={}){return this.request("PATCH",e,S(n,t))}post(e,t,n={}){return this.request("POST",e,S(n,t))}put(e,t,n={}){return this.request("PUT",e,S(n,t))}}class k{constructor(e,t){this.next=e,this.interceptor=t}handle(e){return this.interceptor.intercept(e,this.next)}}const T=new r.o("HTTP_INTERCEPTORS");class M{intercept(e,t){return t.handle(e)}}const A=/^\)\]\}',?\n/;class I{}class D{constructor(){}build(){return new XMLHttpRequest}}class P{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new s.a(t=>{const n=this.xhrFactory.build();if(n.open(e.method,e.urlWithParams),e.withCredentials&&(n.withCredentials=!0),e.headers.forEach((e,t)=>n.setRequestHeader(e,t.join(","))),e.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const t=e.detectContentTypeHeader();null!==t&&n.setRequestHeader("Content-Type",t)}if(e.responseType){const t=e.responseType.toLowerCase();n.responseType="json"!==t?t:"text"}const r=e.serializeBody();let i=null;const s=()=>{if(null!==i)return i;const t=1223===n.status?204:n.status,r=n.statusText||"OK",s=new d(n.getAllResponseHeaders()),o=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(n)||e.url;return i=new C({headers:s,status:t,statusText:r,url:o}),i},o=()=>{let{headers:r,status:i,statusText:o,url:a}=s(),l=null;204!==i&&(l=void 0===n.response?n.responseText:n.response),0===i&&(i=l?200:0);let c=i>=200&&i<300;if("json"===e.responseType&&"string"==typeof l){const e=l;l=l.replace(A,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=e,c&&(c=!1,l={error:u,text:l})}}c?(t.next(new x({body:l,headers:r,status:i,statusText:o,url:a||void 0})),t.complete()):t.error(new O({error:l,headers:r,status:i,statusText:o,url:a||void 0}))},a=e=>{const{url:r}=s(),i=new O({error:e,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});t.error(i)};let l=!1;const c=r=>{l||(t.next(s()),l=!0);let i={type:w.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===e.responseType&&n.responseText&&(i.partialText=n.responseText),t.next(i)},u=e=>{let n={type:w.UploadProgress,loaded:e.loaded};e.lengthComputable&&(n.total=e.total),t.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),e.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),t.next({type:w.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),e.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}const N=new r.o("XSRF_COOKIE_NAME"),j=new r.o("XSRF_HEADER_NAME");class R{}class L{constructor(e,t,n){this.doc=e,this.platform=t,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.A)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}class F{constructor(e,t){this.tokenService=e,this.headerName=t}intercept(e,t){const n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);const r=this.tokenService.getToken();return null===r||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,r)})),t.handle(e)}}class ${constructor(e,t){this.backend=e,this.injector=t,this.chain=null}handle(e){if(null===this.chain){const e=this.injector.get(T,[]);this.chain=e.reduceRight((e,t)=>new k(e,t),this.backend)}return this.chain.handle(e)}}class B{static disable(){return{ngModule:B,providers:[{provide:F,useClass:M}]}}static withOptions(e={}){return{ngModule:B,providers:[e.cookieName?{provide:N,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}class V{}},IjjT:function(e,t,n){"use strict";let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();n.d(t,"a",(function(){return i}));class i extends r{constructor(e,t=r.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}},ItpF:function(e,t,n){"use strict";n.r(t),n.d(t,"createGesture",(function(){return l}));var r=n("rxGk");n.d(t,"GESTURE_CONTROLLER",(function(){return r.a}));const i=(e,t,n,r)=>{const i=s(e)?{capture:!!r.capture,passive:!!r.passive}:!!r.capture;let o,a;return e.__zone_symbol__addEventListener?(o="__zone_symbol__addEventListener",a="__zone_symbol__removeEventListener"):(o="addEventListener",a="removeEventListener"),e[o](t,n,i),()=>{e[a](t,n,i)}},s=e=>{if(void 0===o)try{const t=Object.defineProperty({},"passive",{get:()=>{o=!0}});e.addEventListener("optsTest",()=>{},t)}catch(t){o=!1}return!!o};let o;const a=e=>e instanceof Document?e:e.ownerDocument,l=e=>{let t=!1,n=!1,s=!0,o=!1;const l=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},e),d=l.canStart,p=l.onWillStart,f=l.onStart,g=l.onEnd,m=l.notCaptured,b=l.onMove,v=l.threshold,y=l.passive,w=l.blurOnStart,_={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},C=((e,t,n)=>{const r=n*(Math.PI/180),i="x"===e,s=Math.cos(r),o=t*t;let a=0,l=0,c=!1,u=0;return{start(e,t){a=e,l=t,u=0,c=!0},detect(e,t){if(!c)return!1;const n=e-a,r=t-l,h=n*n+r*r;if(h<o)return!1;const d=Math.sqrt(h),p=(i?n:r)/d;return u=p>s?1:p<-s?-1:0,c=!1,!0},isGesture:()=>0!==u,getDirection:()=>u}})(l.direction,l.threshold,l.maxAngle),x=r.a.createGesture({name:e.gestureName,priority:e.gesturePriority,disableScroll:e.disableScroll}),O=()=>{t&&(o=!1,b&&b(_))},S=()=>!(x&&!x.capture()||(t=!0,s=!1,_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime,p?p(_).then(E):E(),0)),E=()=>{w&&(()=>{if("undefined"!=typeof document){const e=document.activeElement;null!==e&&e.blur&&e.blur()}})(),f&&f(_),s=!0},k=()=>{t=!1,n=!1,o=!1,s=!0,x.release()},T=e=>{const n=t,r=s;k(),r&&(c(_,e),n?g&&g(_):m&&m(_))},M=((e,t,n,r,s)=>{let o,l,c,u,h,d,p,f=0;const g=r=>{f=Date.now()+2e3,t(r)&&(!l&&n&&(l=i(e,"touchmove",n,s)),c||(c=i(e,"touchend",b,s)),u||(u=i(e,"touchcancel",b,s)))},m=r=>{f>Date.now()||t(r)&&(!d&&n&&(d=i(a(e),"mousemove",n,s)),p||(p=i(a(e),"mouseup",v,s)))},b=e=>{y(),r&&r(e)},v=e=>{w(),r&&r(e)},y=()=>{l&&l(),c&&c(),u&&u(),l=c=u=void 0},w=()=>{d&&d(),p&&p(),d=p=void 0},_=()=>{y(),w()},C=(t=!0)=>{t?(o||(o=i(e,"touchstart",g,s)),h||(h=i(e,"mousedown",m,s))):(o&&o(),h&&h(),o=h=void 0,_())};return{enable:C,stop:_,destroy:()=>{C(!1),r=n=t=void 0}}})(l.el,e=>{const t=h(e);return!(n||!s)&&(u(e,_),_.startX=_.currentX,_.startY=_.currentY,_.startTime=_.currentTime=t,_.velocityX=_.velocityY=_.deltaX=_.deltaY=0,_.event=e,(!d||!1!==d(_))&&(x.release(),!!x.start()&&(n=!0,0===v?S():(C.start(_.startX,_.startY),!0))))},e=>{t?!o&&s&&(o=!0,c(_,e),requestAnimationFrame(O)):(c(_,e),C.detect(_.currentX,_.currentY)&&(C.isGesture()&&S()||A()))},T,{capture:!1,passive:y}),A=()=>{k(),M.stop(),m&&m(_)};return{enable(e=!0){e||(t&&T(void 0),k()),M.enable(e)},destroy(){x.destroy(),M.destroy()}}},c=(e,t)=>{if(!t)return;const n=e.currentX,r=e.currentY,i=e.currentTime;u(t,e);const s=e.currentX,o=e.currentY,a=(e.currentTime=h(t))-i;if(a>0&&a<100){const t=(o-r)/a;e.velocityX=(s-n)/a*.7+.3*e.velocityX,e.velocityY=.7*t+.3*e.velocityY}e.deltaX=s-e.startX,e.deltaY=o-e.startY,e.event=t},u=(e,t)=>{let n=0,r=0;if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];n=e.clientX,r=e.clientY}else void 0!==e.pageX&&(n=e.pageX,r=e.pageY)}t.currentX=n,t.currentY=r},h=e=>e.timeStamp||Date.now()},IzEk:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("7o/Q"),i=n("4I5i"),s=n("EY2u");function o(e){return t=>0===e?Object(s.b)():t.lift(new a(e))}class a{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new l(e,this.total))}}class l extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},J20c:function(e,t,n){"use strict";var r=n("7BDe"),i=(n("EGUZ"),n("GAbP"),n("3MOV"),n("/qZA"),n("olg3"),n("kbZ1"),n("h4wn"),n("sk1z"),n("oCF6")),s=n("+mLH"),o=n("o/Pg"),a=n("0NL6"),l=n("p9zK"),c=n("sUqe"),u=n("AjPc");n("2IJ5");let h=(()=>{class e{constructor(e){this.syncing=!1,this.chatMgr=e}showYourself(){console.log("hey im there",this.chatMgr)}handleMessage(t,n){let r=JSON.parse(t);if(r.owner==e.getNewMessages)for(let e of r.msg)this.chatMgr.appendMessageToChat(e,this.chatMgr.findChat(e.itemID));else if(r.owner==e.loadMoreMessages)for(let e of r.msg)this.chatMgr.prependMessageToChat(e,this.chatMgr.findChat(e.itemID));else r.owner==e.removeMessage&&this.onMessageRemoved(n);this.chatMgr.events.publish("scrollDown"),this.setSyncing(!1)}loadMoreMessages(t){let n=this;return new Promise((r,i)=>{this.isLoadingMessages?r(!0):(this.isLoadingMessages=!0,this.chatMgr.socketManager.asyncQuery(e.getMoreMessages,{item:t.item.getSimpleModel(),length:3,lastMessage:t.messages[0].getModelTypeID()}).then(e=>{if(e.isAllowed()){let n=e.getParam("response");for(let e of n)this.chatMgr.prependMessageToChat(e,t)}n.isLoadingMessages=!1,r(!0)}))})}getChatNewMessagesLength(){}getNewMessages(t){this.setSyncing(!0);let n=t.getLastMessageID(),r={lastMessageID:n,itemID:t.chatID,type:t.type};if(!n)return this.setSyncing(!1),!1;this.chatMgr.socketManager.asyncQuery(e.getNewMessages,r).then(e=>{const n=JSON.parse(e.msg);for(const r of n.response){const e=this.chatMgr.createMessageWithMessageObject(r);console.log("new messages in",e),t.item.chat.messages.push(e)}})}isSyncing(){return this.syncing}setSyncing(e){this.syncing=e}removeMessage(t,n){let r={message:t.getSimpleModel(),chat:n.item.getSimpleModel()};t.isFrom(this.chatMgr.userManager.user)&&this.chatMgr.socketManager.queryPro(e.removeMessage,r,this,this.chatMgr.userManager.user.getMainAccessToken(),t);let i=n.messages.indexOf(t);n.messages.splice(i,1),this.chatMgr.save(n)}onMessageRemoved(e){console.log("hura should remove"),this.chatMgr.platform.is("cordova")&&this.chatMgr.databaseManager.removeMessage(e.message)}}return e.getNewMessages="getNewMessages",e.loadMoreMessages="loadMoreMessages",e.getMoreMessages="getMoreMessages",e.removeMessage="removeMessage",e.action1="",e.action2="",e})();n("0FpF"),n("wZ9J"),n("0+M4"),n.d(t,"a",(function(){return d}));class d{constructor(e,t,n,r,i,s,o,a,l,c,u,d,p,f,g){this.http=e,this.storageManager=t,this.databaseManager=n,this.ajaxBridge=r,this.itemsManager=i,this.friendsManager=s,this.membersManager=o,this.adsManager=a,this.platform=l,this.consoleDialog=c,this.socketManager=u,this.modalCtrl=d,this.appRateManager=p,this.events=f,this.userManager=g,this.items=[],this.chats=[],this.addedMessagesNumber=0,this.registerEvents(),this.synchronizer=new h(this),this.clearCurrentChat()}static get updateChatTitleAction(){return"updateChatTitle"}initItems(){}leaveGroup(e){console.log("itemLeave.chat is",e.chat),this.socketManager.asyncQuery("leaveChat",{chat:e.chat.getSimpleModel()}).then(t=>{if(t.isAllowed()){this.itemsManager.deleteItemLocally(e);let t=new o.a(this.userManager.user);console.log("member is:",t),this.membersManager.removeMember(t,e.chat)}})}setAllChatsView(e){this.chats.forEach((function(t){t.setViewLoaded(e)}))}searchInChat(e){this.databaseManager.selectMessagesFromChat(this.currentChat,e).then(t=>{this.currentChat.searchIn(t,e)})}registerEvents(){this.events.subscribe(c.b.UpdateMessages,e=>{let t=new r.a(e.item),n=this.findChat(t.itemID);n&&n.item&&this.updateChat(n.item)}),this.events.subscribe(c.c.DeliverMessage,e=>{this.consoleDialog.log("delivered",e);let t=new a.a(e.message),n=new r.a(e.item),i=this.findChat(n.itemID);if(!i.messages)return!1;i.messages.forEach((function(e){e.messageID==t.messageID&&e.setStatus(e.possibleStatuses.deliveredToUser)})),this.save(i)})}handleMessage(e){let t=JSON.parse(e);if(u.a.isJson(t.msg)){let e=JSON.parse(t.msg);"getMembers"==t.owner?this.consoleDialog.log2("do you know gememebrs",t):"getMessage"==t.owner?this.getChat(t.query.data.item.itemID).then(t=>{let n=this.createMessageWithMessageObject(e);n.received=n.from.userID!=this.userManager.user.userID,this.platform.is("cordova")&&this.databaseManager.addMessage(t,n),t.addMessage(n),this.events.publish("scrollDown"),this.save(t)}):this.consoleDialog.log("loadMessages"==t.owner||"checkAndUpdateChat"==t.owner?"loading messages":"not recognized request",t)}else this.consoleDialog.log("not json methode",t)}initChat(e){return new Promise(t=>{e.chat?(e.chat.item=e,t(e.chat)):this.platform.is("cordova")?(e.chat=new i.a(e),null==e.chat.creatorID&&e.chat.setCreatorID(e.userID),this.databaseManager.getMessages(e.chat,10).then(n=>{e.chat.setMessages(n),this.events.publish("scrollDown"),e.chat.item=e,this.membersManager.getAdmins(e.chat).then(t=>{for(let n of t)e.chat.admins.push(n)}).then(()=>{this.membersManager.getMeAsMember(e.chat).then(()=>{t(e.chat)})})})):(null==e.storageID&&(e.storageID=e.itemID),this.storageManager.get(e.storageID).then(n=>{null==n?(this.storageManager.set(e.storageID,e.chat),e.chat=new i.a(e)):e.chat=new i.a(n),e.chat.chatID=e.storageID,e.chat.item=e,null==e.chat.creatorID&&e.chat.setCreatorID(e.userID),t(e.chat),this.getMembers(e.chat,this)}))})}updateChatTitle(e,t){this.socketManager.queryPro(d.updateChatTitleAction,e.getSimpleModel(),t,this.userManager.user.getMainAccessToken())}updateChat(e){return new Promise(t=>{this.initChat(e).then(e=>{this.synchronizer.getNewMessages(e),t(e)})})}findChat(e){let t=null;for(let n of this.itemsManager.items)n.chat&&n.chat.chatID==e&&(t=n.chat);for(let n of this.itemsManager.publicItems)n.chat&&n.chat.chatID==e&&(t=n.chat);for(let n of this.friendsManager.friends)if(n.item.chat){let r=n.item;r.chat.chatID==e&&(t=r.chat)}return t}reload(e){if(this.platform.is("cordova"))return this.databaseManager.getMessages(e,10).then(t=>{e.setMessages(t)});this.storageManager.get(e.chatID).then(t=>{let n=new i.a(t);e=n}),e.isReviewWords()&&console.log("hallo")}getMessageContent(e){return this.platform.is("cordova")?this.databaseManager.getMessageContent(e):new Promise(e=>{e(!1)})}saveMessageContent(e,t){this.platform.is("cordova")&&this.databaseManager.updateMessageContent(e.chatID,t)}updateFolding(e,t){if(this.platform.is("cordova")&&(this.databaseManager.updateMessageFolding(e,t),t.isAdsMessage())){let e=t;e.minimized?e.placemenet.hideClickableArea():e.placemenet.initClickableArea()}}addMember(e,t){console.log("chatsManager addmember:",t),e.members.push(t);let n={chat:e.getSimpleModel(),member:t.getSimpleModel()};console.log("chat: chat.getSimpleModel() V member: friend.getSimpleModel() :",n),this.socketManager.queryPro("addMember",n,this,this.userManager.user.getMainAccessToken()),this.save(e)}removeMember(e,t){let n=e.members.indexOf(t);e.members.splice(n,1);let r={chat:e.getSimpleModel(),member:t.getSimpleModel()};this.save(e),this.socketManager.queryPro("removeMember",r,this,this.userManager.user.getMainAccessToken()),this.membersManager.removeMember(t,e)}removeMessage(e,t){if(e.isAdsMessage()){e.placemenet.release();let n=t.messages.indexOf(e);t.messages.splice(n,1)}else this.synchronizer.removeMessage(e,t)}shareMessage(e,t){}getMembersAjax(e){return new Promise((t,n)=>{this.ajaxBridge.queryPro("getMembers",e,this.userManager.user.getMainAccessToken()).then(n=>{for(let t in n.members){let r=new o.a(n.members[t]);e.members.push(r)}t(e)}).catch(e=>{n(e)})})}getMembers(e,t){this.socketManager.queryPro("getMembers",e.getSimpleModel(),t,this.userManager.user.getMainAccessToken())}getChat(e){return new Promise(t=>{let n;this.findChat(e)?t(this.findChat(e)):this.storageManager.get(e).then(e=>{n=new i.a(e),t(n)})})}getLeitnerChat(){return new Promise(e=>{let t,n;this.itemsManager.items.forEach((function(e){"leitner"==e.type&&(t=e)})),this.storageManager.get(t.storageID).then(t=>{n=new i.a(t),e(n)})})}loadMoreMessages(e){return new Promise(t=>{this.platform.is("cordova")&&(e.hasMessagesInDatabase()?this.databaseManager.getMessages(e,3).then(n=>{e.messages=n.concat(e.messages),e.searchedMessages=n.concat(e.searchedMessages),e.remainedMessagesLength=n.length,0==n.length?(this.getMessagesFromOnlineDatabase(e),t(0)):t(0)}):(this.getMessagesFromOnlineDatabase(e),t(0)))})}getMessagesFromOnlineDatabase(e){return new Promise(t=>{e.hasMessagesOnline()&&this.synchronizer.loadMoreMessages(e).then(e=>{t(e)})})}appendMessageToChat(e,t){if(null==t)return!1;let n=this.createMessageWithMessageObject(e);n.setMessageTimeSent(e.timeSent),n.received=n.from.userID!=this.userManager.user.userID,n.receivedTime=u.d.getTimeString(),t.addMessage(n),this.currentChat.chatID==t.chatID||n.hasBeenSeenByMe()||t.unreadMessagesNumber++,this.platform.is("cordova")&&this.databaseManager.addMessage(t,n),this.save(t),this.events.publish("scrollDown")}prependMessageToChat(e,t){let n=this.createMessageWithMessageObject(e);n.setMessageTimeSent(e.timeSent),n.received=!0,this.platform.is("cordova")&&this.databaseManager.prependMessage(t,n),n.receivedTime=u.d.getTimeString(),t.prependMessage(n),this.currentChat.chatID==t.chatID||n.hasBeenSeenByMe()||t.unreadMessagesNumber++,this.save(t)}clearCurrentChat(){this.currentChat=new i.a({}),this.currentChat.id=123}setCurrentChat(e){this.currentChat=e}save(e){console.log("hiiiii im in save"),this.databaseManager.updateChatTitle(e),this.storageManager.set(e.chatID,e.getSimpleModelWithMessages())}onMessageAdded(){this.addedMessagesNumber++,3!=this.addedMessagesNumber&&8!=this.addedMessagesNumber&&this.addedMessagesNumber%14!=0||this.adsManager.setAdsNeeded(!0),55==this.addedMessagesNumber&&this.appRateManager.checkForRating()}runAds(){this.adsManager.isAdsNeeded()&&this.adsManager.prepareInterstitialAd()}createMessageWithMessageObject(e){let t;if(void 0!==e.messageType&&(e.type=e.messageType),null==e.type)return console.error("message has no type but wanted to create a message",e),new a.a("");switch(e.type){case"chat":case"dictionary":case"leitner":t=new a.a(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new l.a(e);break;case"":t=new a.a(e)}return t.setUser(new s.a(e)),t}}},JIr8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("l7GE"),i=n("51Dv"),s=n("ZUHj");function o(e){return function(t){const n=new a(e),r=t.lift(n);return n.caught=r}}class a{constructor(e){this.selector=e}call(e,t){return t.subscribe(new l(e,this.selector,this.caught))}}class l extends r.a{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const r=new i.a(this,void 0,void 0);this.add(r);const o=Object(s.a)(this,n,void 0,void 0,r);o!==r&&this.add(o)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("GyhO"),i=n("z+Ro");function s(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),n=>Object(r.a)(e,n,t)):t=>Object(r.a)(e,t)}},Ji5e:function(e,t,n){"use strict";function r(e,t){return e._objectInstance&&e._objectInstance[t]?e._objectInstance[t]:null}function i(e,t,n){e._objectInstance&&(e._objectInstance[t]=n)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},KCVW:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l}));var r=n("8Y7J");function i(e){return null!=e&&""+e!="false"}function s(e,t=0){return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function o(e){return Array.isArray(e)?e:[e]}function a(e){return null==e?"":"string"==typeof e?e:e+"px"}function l(e){return e instanceof r.k?e.nativeElement:e}},"KOl+":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return y}));var r=n("HDdC"),i=n("xgIS"),s={error:"cordova_not_available"},o={error:"plugin_not_installed"};function a(e){if("undefined"!=typeof window&&window.angular){var t=window.document,n=window.angular.element(t.querySelector("[ng-app]")||t.body).injector();if(n)return n.get("$q")((function(t,n){e(t,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(t,n){e(t,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 l(e,t,n,r){var i,s;void 0===r&&(r={});var o=a((function(o,a){i=r.destruct?f(e,t,n,r,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a(e)})):f(e,t,n,r,o,a),s=a}));return i&&i.error&&(o.catch((function(){})),"function"==typeof s&&s(i.error)),o}function c(e,t,n,r){return void 0===r&&(r={}),a((function(i,s){var o=f(e,t,n,r);o?o.error?s(o.error):o.then&&o.then(i).catch(s):s({error:"unexpected_error"})}))}function u(e,t,n,i){return void 0===i&&(i={}),new r.a((function(r){var s;return(s=i.destruct?f(e,t,n,i,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.error(e)})):f(e,t,n,i,r.next.bind(r),r.error.bind(r)))&&s.error&&(r.error(s.error),r.complete()),function(){try{if(i.clearFunction)return i.clearWithArgs?f(e,i.clearFunction,n,i,r.next.bind(r),r.error.bind(r)):f(e,i.clearFunction,[])}catch(s){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(s)}}}))}function h(e,t){return t="undefined"!=typeof window&&t?b(window,t):t||("undefined"!=typeof window?window:{}),Object(i.a)(t,e)}function d(e,t,n){var r,i,a;return"string"==typeof e?r=e:(r=e.constructor.getPluginRef(),n=e.constructor.getPluginName(),a=e.constructor.getPluginInstallName()),!(!(i=m(r))||t&&void 0===i[t])||("undefined"!=typeof window&&window.cordova?(function(e,t,n){n?console.warn("Native: tried calling "+e+"."+n+", but the "+e+" plugin is not installed."):console.warn("Native: tried accessing the "+e+" plugin but it's not installed."),t&&console.warn("Install the "+e+" plugin: 'ionic cordova plugin add "+t+"'")}(n,a,t),o):(function(e,t){"undefined"==typeof process&&(t?console.warn("Native: tried calling "+e+"."+t+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"):console.warn("Native: tried accessing the "+e+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator"))}(n,t),s))}function p(e,t,n,r){if(void 0===t&&(t={}),t.sync)return e;if("reverse"===t.callbackOrder)e.unshift(r),e.unshift(n);else if("node"===t.callbackStyle)e.push((function(e,t){e?r(e):n(t)}));else if("object"===t.callbackStyle&&t.successName&&t.errorName){var i={};i[t.successName]=n,i[t.errorName]=r,e.push(i)}else if(void 0!==t.successIndex||void 0!==t.errorIndex){var s=function(){t.successIndex>e.length?e[t.successIndex]=n:e.splice(t.successIndex,0,n)},o=function(){t.errorIndex>e.length?e[t.errorIndex]=r:e.splice(t.errorIndex,0,r)};t.successIndex>t.errorIndex?(o(),s()):(s(),o())}else e.push(n),e.push(r);return e}function f(e,t,n,r,i,s){void 0===r&&(r={}),n=p(n,r,i,s);var o=d(e,t);if(!0===o){var a=m(e.constructor.getPluginRef());return a[t].apply(a,n)}return o}function g(e,t,n,r,i,s){if(void 0===r&&(r={}),n=p(n,r,i,s),function(e,t){return e._objectInstance&&(!t||void 0!==e._objectInstance[t])}(e,t))return e._objectInstance[t].apply(e._objectInstance,n)}function m(e){return"undefined"!=typeof window?b(window,e):null}function b(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}var v=function(e,t,n){return void 0===n&&(n={}),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n.sync?f(e,t,r,n):n.observable?u(e,t,r,n):n.eventObservable&&n.event?h(n.event,n.element):n.otherPromise?c(e,t,r,n):l(e,t,r,n)}};function y(e,t,n){return void 0===n&&(n={}),function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(n.sync)return g(e,t,i,n);if(n.observable)return new r.a((function(r){var s;return(s=n.destruct?g(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.next(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.error(e)})):g(e,t,i,n,r.next.bind(r),r.error.bind(r)))&&s.error&&r.error(s.error),function(){try{return n.clearWithArgs?g(e,n.clearFunction,i,n,r.next.bind(r),r.error.bind(r)):g(e,n.clearFunction,[])}catch(s){console.warn("Unable to clear the previous observable watch for",e.constructor.getPluginName(),t),console.warn(s)}}}));if(n.otherPromise)return a((function(r,s){var o;(o=n.destruct?g(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)})):g(e,t,i,n,r,s))&&o.then?o.then(r,s):s()}));var o,l,c=a((function(r,s){o=n.destruct?g(e,t,i,n,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)})):g(e,t,i,n,r,s),l=s}));return o&&o.error&&(c.catch((function(){})),"function"==typeof l&&l(o.error)),c}}},"KX/v":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),s=n("xgIS"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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"},t.banner=new a,t.interstitial=new l,t.rewardVideo=new c,t}return Object(r.c)(t,e),t.prototype.on=function(e){return Object(s.a)(document,e)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob",t.repo="https://github.com/ratson/cordova-plugin-admob-free",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.remove=function(){return Object(i.cordova)(this,"remove",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.banner",t}(i.IonicNativePlugin),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.isReady=function(){return Object(i.cordova)(this,"isReady",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.interstitial",t}(i.IonicNativePlugin),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.config=function(e){return Object(i.cordova)(this,"config",{sync:!0},arguments)},t.prototype.isReady=function(){return Object(i.cordova)(this,"isReady",{otherPromise:!0},arguments)},t.prototype.prepare=function(){return Object(i.cordova)(this,"prepare",{otherPromise:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{otherPromise:!0},arguments)},t.pluginName="AdMobFree",t.plugin="cordova-plugin-admob-free",t.pluginRef="admob.rewardvideo",t}(i.IonicNativePlugin)},KnF1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("mrSG");n("h4wn"),n("kbZ1"),n("J20c");class i{constructor(e,t,n,r,i,s,o){this.navCtrl=e,this.friendsManager=t,this.itemsManager=n,this.chatsManager=r,this.view=i,this.alertCtrl=s,this.navParams=o,this.filter="",this.filter=this.navParams.get("filter"),this.message=this.navParams.get("message"),console.log("catchedmessage0",this.message),this.availableItems=this.itemsManager.items.filter(e=>"leitner"==e.type)}closeModal(){this.view.dismiss()}ionViewDidLoad(){}askAdd(e,t){return r.a(this,void 0,void 0,(function*(){let e=this;(yield this.alertCtrl.create({subHeader:"confirm",message:"Add "+this.message.text+" to item "+t.title,buttons:[{text:"cancel",role:"cancel",handler:()=>{console.log("Cancel clicked")}},{text:"yes",handler:()=>{e.chatsManager.initChat(t).then(t=>{let n=t.addMessageToLeitner(e.message);this.chatsManager.databaseManager.addMessage(t,n),t.unreadMessagesNumber++,this.message.setShowOptionMenu(!1),this.chatsManager.save(t)}).then(()=>{this.view.dismiss()})}}]})).present()}))}}},Kqap:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new s(e,t,n))}}class s{constructor(e,t,n=!1){this.accumulator=e,this.seed=t,this.hasSeed=n}call(e,t){return t.subscribe(new o(e,this.accumulator,this.seed,this.hasSeed))}}class o extends r.a{constructor(e,t,n,r){super(e),this.accumulator=t,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let n;try{n=this.accumulator(this.seed,e,t)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}},L8C7:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{}},LKtr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.http=e,this.selectedTab=0,console.log("Hello TabsManagerProvider Provider")}}},LRne:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("z+Ro"),i=n("yCtX"),s=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(s.a)(e,t)):Object(i.a)(e)}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",(function(){return i}));const i=r()},Lq6m:function(e,t,n){"use strict";var r=n("KOl+");n.d(t,"a",(function(){return i}));var i=function(){function e(){}return e.installed=function(){return!0===Object(r.a)(this.pluginRef)},e.getPlugin=function(){return"undefined"!=typeof window?function(e,t){for(var n=t.split("."),r=e,i=0;i<n.length;i++){if(!r)return null;r=r[n[i]]}return r}(window,this.pluginRef):null},e.getPluginName=function(){return this.pluginName},e.getPluginRef=function(){return this.pluginRef},e.getPluginInstallName=function(){return this.plugin},e.getSupportedPlatforms=function(){return this.platforms},e.pluginName="",e.pluginRef="",e.plugin="",e.repo="",e.platforms=[],e.install="",e}()},MF7w:function(e,t,n){"use strict";n("W7t7");var r=n("zI0Y"),i=n("FxvK"),s=n("i9lY");class o extends r.a{constructor(e){super(e)}}class a extends r.a{constructor(e){super(e)}}n.d(t,"a",(function(){return l}));class l{constructor(e){this.wordsDatabaseMgr=e,this.words=[],this.words=[]}getSuggestions(e){return this.wordsDatabaseMgr.getSuggestions(e)}saveWord(e){this.wordsDatabaseMgr.insert(e)}hasEnoughWordsSuggestions(){return new Promise(e=>{this.wordsDatabaseMgr.getRowNumbers().then(t=>{e(t>1e3)})})}createWord(e){let t;switch(e.wordType){case r.a.possibleTypes.noun:t=new i.a(e);break;case r.a.possibleTypes.verb:t=new s.a(e);break;case r.a.possibleTypes.adverb:t=new a(e);break;case r.a.possibleTypes.adjective:t=new o(e)}return t.setWordType(e.wordType),t}findWordType(e){let t;return t=this.isNoun(e)?new i.a(e):this.isVerb()?new s.a(e):new r.a(e),t.setUserID(e.userID),t}isNoun(e){return this.hasArtikel(e)&&this.hasPlural(e)&&!this.isNotFound(e)}hasArtikel(e){return"n"==e.artikel||"m"==e.artikel||"f"==e.artikel}hasPlural(e){return e.plural&&e.plural.length>2}isNotFound(e){return e.translation&&0==e.translation.length}isPhrase(){}isVerb(){return!0}}},MKJQ:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"P",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"Q",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"R",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"S",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"T",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"V",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"U",(function(){return b})),n.d(t,"h",(function(){return v})),n.d(t,"W",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"X",(function(){return _})),n.d(t,"j",(function(){return C})),n.d(t,"Y",(function(){return x})),n.d(t,"k",(function(){return O})),n.d(t,"bb",(function(){return S})),n.d(t,"l",(function(){return E})),n.d(t,"Z",(function(){return k})),n.d(t,"m",(function(){return T})),n.d(t,"ab",(function(){return M})),n.d(t,"n",(function(){return A})),n.d(t,"cb",(function(){return I})),n.d(t,"o",(function(){return D})),n.d(t,"db",(function(){return P})),n.d(t,"p",(function(){return N})),n.d(t,"eb",(function(){return j})),n.d(t,"q",(function(){return R})),n.d(t,"fb",(function(){return L})),n.d(t,"r",(function(){return F})),n.d(t,"hb",(function(){return $})),n.d(t,"s",(function(){return B})),n.d(t,"gb",(function(){return V})),n.d(t,"t",(function(){return q})),n.d(t,"ib",(function(){return z})),n.d(t,"u",(function(){return U})),n.d(t,"jb",(function(){return H})),n.d(t,"v",(function(){return W})),n.d(t,"kb",(function(){return G})),n.d(t,"w",(function(){return X})),n.d(t,"mb",(function(){return J})),n.d(t,"x",(function(){return Q})),n.d(t,"lb",(function(){return Z})),n.d(t,"y",(function(){return Y})),n.d(t,"nb",(function(){return K})),n.d(t,"z",(function(){return ee})),n.d(t,"pb",(function(){return te})),n.d(t,"A",(function(){return ne})),n.d(t,"ob",(function(){return re})),n.d(t,"B",(function(){return ie})),n.d(t,"qb",(function(){return se})),n.d(t,"C",(function(){return oe})),n.d(t,"sb",(function(){return ae})),n.d(t,"D",(function(){return le})),n.d(t,"rb",(function(){return ce})),n.d(t,"E",(function(){return ue})),n.d(t,"ub",(function(){return he})),n.d(t,"F",(function(){return de})),n.d(t,"tb",(function(){return pe})),n.d(t,"G",(function(){return fe})),n.d(t,"vb",(function(){return ge})),n.d(t,"H",(function(){return me})),n.d(t,"wb",(function(){return be})),n.d(t,"I",(function(){return ve})),n.d(t,"xb",(function(){return ye})),n.d(t,"J",(function(){return we})),n.d(t,"yb",(function(){return _e})),n.d(t,"K",(function(){return Ce})),n.d(t,"zb",(function(){return xe})),n.d(t,"L",(function(){return Oe})),n.d(t,"Ab",(function(){return Se})),n.d(t,"M",(function(){return Ee})),n.d(t,"Bb",(function(){return ke})),n.d(t,"N",(function(){return Te})),n.d(t,"Cb",(function(){return Me})),n.d(t,"O",(function(){return Ae})),n.d(t,"Db",(function(){return Ie}));var r=n("8Y7J");n("sZkV"),n("SVse"),n("iInd");var i=r.qb({encapsulation:2,styles:[],data:{}});function s(e){return r.Nb(2,[r.Db(null,0)],null,null)}var o=r.qb({encapsulation:2,styles:[],data:{}});function a(e){return r.Nb(2,[r.Db(null,0)],null,null)}var l=r.qb({encapsulation:2,styles:[],data:{}});function c(e){return r.Nb(2,[r.Db(null,0)],null,null)}var u=r.qb({encapsulation:2,styles:[],data:{}});function h(e){return r.Nb(2,[r.Db(null,0)],null,null)}var d=r.qb({encapsulation:2,styles:[],data:{}});function p(e){return r.Nb(2,[r.Db(null,0)],null,null)}var f=r.qb({encapsulation:2,styles:[],data:{}});function g(e){return r.Nb(2,[r.Db(null,0)],null,null)}var m=r.qb({encapsulation:2,styles:[],data:{}});function b(e){return r.Nb(2,[r.Db(null,0)],null,null)}var v=r.qb({encapsulation:2,styles:[],data:{}});function y(e){return r.Nb(2,[r.Db(null,0)],null,null)}var w=r.qb({encapsulation:2,styles:[],data:{}});function _(e){return r.Nb(2,[r.Db(null,0)],null,null)}var C=r.qb({encapsulation:2,styles:[],data:{}});function x(e){return r.Nb(2,[r.Db(null,0)],null,null)}var O=r.qb({encapsulation:2,styles:[],data:{}});function S(e){return r.Nb(2,[r.Db(null,0)],null,null)}var E=r.qb({encapsulation:2,styles:[],data:{}});function k(e){return r.Nb(2,[r.Db(null,0)],null,null)}var T=r.qb({encapsulation:2,styles:[],data:{}});function M(e){return r.Nb(2,[r.Db(null,0)],null,null)}var A=r.qb({encapsulation:2,styles:[],data:{}});function I(e){return r.Nb(2,[r.Db(null,0)],null,null)}var D=r.qb({encapsulation:2,styles:[],data:{}});function P(e){return r.Nb(2,[r.Db(null,0)],null,null)}var N=r.qb({encapsulation:2,styles:[],data:{}});function j(e){return r.Nb(2,[r.Db(null,0)],null,null)}var R=r.qb({encapsulation:2,styles:[],data:{}});function L(e){return r.Nb(2,[r.Db(null,0)],null,null)}var F=r.qb({encapsulation:2,styles:[],data:{}});function $(e){return r.Nb(2,[r.Db(null,0)],null,null)}var B=r.qb({encapsulation:2,styles:[],data:{}});function V(e){return r.Nb(2,[r.Db(null,0)],null,null)}var q=r.qb({encapsulation:2,styles:[],data:{}});function z(e){return r.Nb(2,[r.Db(null,0)],null,null)}var U=r.qb({encapsulation:2,styles:[],data:{}});function H(e){return r.Nb(2,[r.Db(null,0)],null,null)}var W=r.qb({encapsulation:2,styles:[],data:{}});function G(e){return r.Nb(2,[r.Db(null,0)],null,null)}var X=r.qb({encapsulation:2,styles:[],data:{}});function J(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Q=r.qb({encapsulation:2,styles:[],data:{}});function Z(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Y=r.qb({encapsulation:2,styles:[],data:{}});function K(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ee=r.qb({encapsulation:2,styles:[],data:{}});function te(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ne=r.qb({encapsulation:2,styles:[],data:{}});function re(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ie=r.qb({encapsulation:2,styles:[],data:{}});function se(e){return r.Nb(2,[r.Db(null,0)],null,null)}var oe=r.qb({encapsulation:2,styles:[],data:{}});function ae(e){return r.Nb(2,[r.Db(null,0)],null,null)}var le=r.qb({encapsulation:2,styles:[],data:{}});function ce(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ue=r.qb({encapsulation:2,styles:[],data:{}});function he(e){return r.Nb(2,[r.Db(null,0)],null,null)}var de=r.qb({encapsulation:2,styles:[],data:{}});function pe(e){return r.Nb(2,[r.Db(null,0)],null,null)}var fe=r.qb({encapsulation:2,styles:[],data:{}});function ge(e){return r.Nb(2,[r.Db(null,0)],null,null)}var me=r.qb({encapsulation:2,styles:[],data:{}});function be(e){return r.Nb(2,[r.Db(null,0)],null,null)}var ve=r.qb({encapsulation:2,styles:[],data:{}});function ye(e){return r.Nb(2,[r.Db(null,0)],null,null)}var we=r.qb({encapsulation:2,styles:[],data:{}});function _e(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Ce=r.qb({encapsulation:2,styles:[],data:{}});function xe(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Oe=r.qb({encapsulation:2,styles:[],data:{}});function Se(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Ee=r.qb({encapsulation:2,styles:[],data:{}});function ke(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Te=r.qb({encapsulation:2,styles:[],data:{}});function Me(e){return r.Nb(2,[r.Db(null,0)],null,null)}var Ae=r.qb({encapsulation:2,styles:[],data:{}});function Ie(e){return r.Nb(2,[r.Db(null,0)],null,null)}},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",(function(){return r}))},NXyV:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("HDdC"),i=n("Cfvw"),s=n("EY2u");function o(e){return new r.a(t=>{let n;try{n=e()}catch(r){return void t.error(r)}return(n?Object(i.a)(n):Object(s.b)()).subscribe(t)})}},PJj0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("k82s"),n("GAbP");class r{constructor(e,t,n,r,i){this.http=e,this.platform=t,this.databaseManagerProvider=n,this.translateService=r,this.localNotifications=i,this.platform.is("cordova")&&this.localNotifications.hasPermission().then(e=>{console.log("permission",e),this.initLocalNotifications()})}initLocalNotifications(){this.localNotifications.clear(300).then(e=>{this.setNotoficationToUseApp()})}updateLeitnerNotificationsSchedule(){this.localNotifications.clearAll().then(()=>{this.databaseManagerProvider.getFutureMessages().then(e=>{this.translateService.get("NOTIFICATIONS.Leitner.remember").subscribe(t=>{let n=t;for(let r of e)r.reviewTime=this.refineMessageReviewTime(r.reviewTime),n+=r.text+"\n",this.localNotifications.schedule({id:1,text:n,led:"00FF99",trigger:{at:new Date(r.reviewTime)},icon:"res://img/icon.png",sound:"file://sound.mp3",data:{secret:r.messageID}})}),this.setNotoficationToUseApp()})})}refineMessageReviewTime(e){return e.split(" ")[0]+" 15:16:00"}setNotoficationToUseApp(){this.translateService.get("NOTIFICATIONS.App.remember").subscribe(e=>{this.localNotifications.schedule({id:300,text:e,led:"00FF99",trigger:{at:new Date((new Date).getTime()+210900200)},icon:"file://assets/img/icon.png",smallIcon:"res://iconfree",data:{secret:"2222"}})})}setNotificationForOneMinute(){this.localNotifications.schedule({id:1,text:"there are new words like \u0633\u0639\u06cc\u062f",led:"00FF99",trigger:{at:new Date((new Date).getTime()+9e3)},smallIcon:"res://img/icon.png",data:{secret:"2222"}})}setEveryMinuteNotification(){this.localNotifications.schedule({text:"Delayed ILocalNotification",trigger:{at:new Date((new Date).getTime()+16e3)},led:"FF0000",sound:null}),console.log("local notification set for next 3 seconds")}initLocalNotificationsExamples(){this.localNotifications.schedule({id:1,text:"Single ILocalNotification",sound:"file://sound.mp3",data:{secret:"2222"}}),this.localNotifications.schedule([{id:1,text:"Multi ILocalNotification 1",sound:"file://sound.mp3",data:{secret:"2222"}},{id:2,title:"Local ILocalNotification Example",text:"Multi ILocalNotification 2",icon:"http://example.com/icon.png"}]),this.localNotifications.schedule({text:"Delayed ILocalNotification",led:"FF0000",sound:"file://sound.mp3"})}}},PLvT:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(e,t,n,r,o)=>s(e[1],t[1],n[1],r[1],o).map(s=>i(e[0],t[0],n[0],r[0],s)),i=(e,t,n,r,i)=>i*(3*t*Math.pow(i-1,2)+i*(-3*n*i+3*n+r*i))-e*Math.pow(i-1,3),s=(e,t,n,r,i)=>o((r-=i)-3*(n-=i)+3*(t-=i)-(e-=i),3*n-6*t+3*e,3*t-3*e,e).filter(e=>e>=0&&e<=1),o=(e,t,n,r)=>{if(0===e)return((e,t,n)=>{const r=t*t-4*e*n;return r<0?[]:[(-t+Math.sqrt(r))/(2*e),(-t-Math.sqrt(r))/(2*e)]})(t,n,r);const i=(3*(n/=e)-(t/=e)*t)/3,s=(2*t*t*t-9*t*n+27*(r/=e))/27;if(0===i)return[Math.pow(-s,1/3)];if(0===s)return[Math.sqrt(-i),-Math.sqrt(-i)];const o=Math.pow(s/2,2)+Math.pow(i/3,3);if(0===o)return[Math.pow(s/2,.5)-t/3];if(o>0)return[Math.pow(-s/2+Math.sqrt(o),1/3)-Math.pow(s/2+Math.sqrt(o),1/3)-t/3];const a=Math.sqrt(Math.pow(-i/3,3)),l=Math.acos(-s/(2*Math.sqrt(Math.pow(-i/3,3)))),c=2*Math.pow(a,1/3);return[c*Math.cos(l/3)-t/3,c*Math.cos((l+2*Math.PI)/3)-t/3,c*Math.cos((l+4*Math.PI)/3)-t/3]}},PQ8F:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>{try{if(e instanceof class{constructor(e){this.value=e}})return e.value;if(!o()||"string"!=typeof e||""===e)return e;const t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),n.innerHTML=e,l.forEach(e=>{const n=t.querySelectorAll(e);for(let r=n.length-1;r>=0;r--){const e=n[r];e.parentNode?e.parentNode.removeChild(e):t.removeChild(e);const o=s(e);for(let t=0;t<o.length;t++)i(o[t])}});const r=s(t);for(let e=0;e<r.length;e++)i(r[e]);const a=document.createElement("div");a.appendChild(t);const c=a.querySelector("div");return null!==c?c.innerHTML:a.innerHTML}catch(t){return console.error(t),""}},i=e=>{if(e.nodeType&&1!==e.nodeType)return;for(let n=e.attributes.length-1;n>=0;n--){const t=e.attributes.item(n),r=t.name;if(!a.includes(r.toLowerCase())){e.removeAttribute(r);continue}const i=t.value;null!=i&&i.toLowerCase().includes("javascript:")&&e.removeAttribute(r)}const t=s(e);for(let n=0;n<t.length;n++)i(t[n])},s=e=>null!=e.children?e.children:e.childNodes,o=()=>{const e=window,t=e&&e.Ionic&&e.Ionic.config;return!t||(t.get?t.get("sanitizerEnabled",!0):!0===t.sanitizerEnabled||void 0===t.sanitizerEnabled)},a=["class","id","href","src","name","slot"],l=["script","style","iframe","meta","link","object","embed"]},QA36:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=(n("/qZA"),n("EGUZ"),n("tAnt")),s=(n("olg3"),n("2IJ5"),n("sUqe"));n("0+M4");class o{constructor(e,t,n,r,i,o,a){this.socketManager=e,this.consoleDialog=t,this.storageManager=n,this.userManager=r,this.alertCtrl=i,this.events=o,this.translateService=a,this.collectionStorageName="collectionStorage",this.lang="fa",this.collections=[],o.subscribe(s.b.UpdateCollections,(e,t)=>{this.socketManager.queryPro(s.a.GetCollections,{},this,this.userManager.user.getMainAccessToken())}),this.storageManager.get("lang").then(e=>{null!=e&&(this.lang=e),this.loadCollectionsFromStorage()}),o.subscribe(s.c.Connected,(e,t)=>{this.storageManager.get("lang").then(e=>{this.lang=e,this.loadCollectionsFromInternet()})})}handleMessage(e){let t=JSON.parse(e).msg;this.collections.length=0,this.storageManager.get("lang").then(e=>{for(let n of t){n.cloud=!0;let t=new i.a(n,e);t.setLang(e),this.collections.push(t)}this.save()})}changeLanguage(e){for(let t of this.collections)t.setLang(e)}save(){this.storageManager.set(this.collectionStorageName,this.collections)}loadCollectionsFromInternet(){this.socketManager.queryPro(s.a.GetCollections,{},this,this.userManager.user.getMainAccessToken()),console.log("try loading from internet",this.socketManager.isConnected())}loadCollectionsFromStorage(){var e=this;this.storageManager.get(this.collectionStorageName).then(t=>{if(null==t||0==t.length||null===t)this.loadCollectionsFromInternet();else try{Object.keys(t).forEach((function(n){let r=new i.a(t[n]);r.setLang(e.lang),e.collections.push(r)}))}catch(n){console.log(n),this.loadCollectionsFromInternet()}})}addConfirm(e){let t,n,i,s;return this.translateService.get("TITLE.confirm").subscribe(e=>{t=e}),this.translateService.get("BUTTONS.cancel").subscribe(e=>{n=e}),this.translateService.get("BUTTONS.yes").subscribe(e=>{i=e}),this.translateService.get("CONTENT.Collection.addMessage").subscribe(e=>{s=e}),new Promise((e,o)=>r.a(this,void 0,void 0,(function*(){(yield this.alertCtrl.create({subHeader:t,message:s,buttons:[{text:n,role:"cancel",handler:()=>{e(!1)}},{text:i,handler:()=>{e(!0)}}]})).present()})))}}},QQfA:function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"c",(function(){return M})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return j})),n.d(t,"b",(function(){return x})),n.d(t,"g",(function(){return C})),n.d(t,"e",(function(){return B})),n.d(t,"h",(function(){return F})),n.d(t,"i",(function(){return $}));var r=n("KCVW"),i=n("hOhj"),s=n("SVse"),o=n("8Y7J"),a=n("XNiG"),l=n("quSY"),c=n("HDdC"),u=n("VRyK"),h=n("IzEk"),d=n("1G5W"),p=n("/HVE"),f=n("zMNK");n("dvZr");class g{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Object(r.c)(-this._previousScrollPosition.left),e.style.top=Object(r.c)(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,t=e.style,n=this._document.body.style,r=t.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=r,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}function m(){return Error("Scroll strategy has already been attached.")}class b{constructor(e,t,n,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){if(this._overlayRef)throw m();this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class v{enable(){}disable(){}attach(){}}function y(e,t){return t.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function w(e,t){return t.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class _{constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){if(this._overlayRef)throw m();this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:n}=this._viewportRuler.getViewportSize();y(e,[{width:t,height:n,bottom:n,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let C=(()=>{class e{constructor(e,t,n,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this.noop=()=>new v,this.close=e=>new b(this._scrollDispatcher,this._ngZone,this._viewportRuler,e),this.block=()=>new g(this._viewportRuler,this._document),this.reposition=e=>new _(this._scrollDispatcher,this._viewportRuler,this._ngZone,e),this._document=r}}return e.ngInjectableDef=Object(o.Qb)({factory:function(){return new e(Object(o.Rb)(i.a),Object(o.Rb)(i.d),Object(o.Rb)(o.x),Object(o.Rb)(s.d))},token:e,providedIn:"root"}),e})();class x{constructor(e){if(this.scrollStrategy=new v,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const n of t)void 0!==e[n]&&(this[n]=e[n])}}}class O{constructor(e,t,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=e.originX,this.originY=e.originY,this.overlayX=t.overlayX,this.overlayY=t.overlayY}}class S{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}function E(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". Expected "top", "bottom" or "center".`)}function k(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error(`ConnectedPosition: Invalid ${e} "${t}". Expected "start", "end" or "center".`)}let T=(()=>{class e{constructor(e){this._attachedOverlays=[],this._keydownListener=e=>{const t=this._attachedOverlays;for(let n=t.length-1;n>-1;n--)if(t[n]._keydownEventSubscriptions>0){t[n]._keydownEvents.next(e);break}},this._document=e}ngOnDestroy(){this._detach()}add(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}remove(e){const t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}_detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return e.ngInjectableDef=Object(o.Qb)({factory:function(){return new e(Object(o.Rb)(s.d))},token:e,providedIn:"root"}),e})(),M=(()=>{class e{constructor(e){this._document=e}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const e=this._document.getElementsByClassName("cdk-overlay-container");for(let n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);const t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t}}return e.ngInjectableDef=Object(o.Qb)({factory:function(){return new e(Object(o.Rb)(s.d))},token:e,providedIn:"root"}),e})();class A{constructor(e,t,n,r,i,s,o,u){this._portalOutlet=e,this._host=t,this._pane=n,this._config=r,this._ngZone=i,this._keyboardDispatcher=s,this._document=o,this._location=u,this._backdropElement=null,this._backdropClick=new a.a,this._attachments=new a.a,this._detachments=new a.a,this._locationChanges=l.a.EMPTY,this._backdropClickHandler=e=>this._backdropClick.next(e),this._keydownEventsObservable=new c.a(e=>{const t=this._keydownEvents.subscribe(e);return this._keydownEventSubscriptions++,()=>{t.unsubscribe(),this._keydownEventSubscriptions--}}),this._keydownEvents=new a.a,this._keydownEventSubscriptions=0,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(h.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}dispose(){const e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick.asObservable()}attachments(){return this._attachments.asObservable()}detachments(){return this._detachments.asObservable()}keydownEvents(){return this._keydownEventsObservable}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign({},this._config,e),this._updateElementSize()}setDirection(e){this._config=Object.assign({},this._config,{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=Object(r.c)(this._config.width),e.height=Object(r.c)(this._config.height),e.minWidth=Object(r.c)(this._config.minWidth),e.minHeight=Object(r.c)(this._config.minHeight),e.maxWidth=Object(r.c)(this._config.maxWidth),e.maxHeight=Object(r.c)(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e,t=this._backdropElement;if(!t)return;let n=()=>{t&&(t.removeEventListener("click",this._backdropClickHandler),t.removeEventListener("transitionend",n),t.parentNode&&t.parentNode.removeChild(t)),this._backdropElement==t&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(t,this._config.backdropClass,!1),clearTimeout(e)};t.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{t.addEventListener("transitionend",n)}),t.style.pointerEvents="none",e=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(e,t,n){const i=e.classList;Object(r.a)(t).forEach(e=>{e&&(n?i.add(e):i.remove(e))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.asObservable().pipe(Object(d.a)(Object(u.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}class I{constructor(e,t,n,r,i){this._viewportRuler=t,this._document=n,this._platform=r,this._overlayContainer=i,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new a.a,this._resizeSubscription=l.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const e=this._originRect,t=this._overlayRect,n=this._viewportRect,r=[];let i;for(let s of this._preferredPositions){let o=this._getOriginPoint(e,s),a=this._getOverlayPoint(o,t,s),l=this._getOverlayFit(a,t,n,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,o);this._canFitWithFlexibleDimensions(l,a,n)?r.push({position:s,origin:o,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(o,s)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:s,overlayRect:t})}if(r.length){let e=null,t=-1;for(const n of r){const r=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);r>t&&(t=r,e=n)}return this._isPushed=!1,void this._applyPosition(e.position,e.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&D(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t){let n,r;if("center"==t.originX)n=e.left+e.width/2;else{const r=this._isRtl()?e.right:e.left,i=this._isRtl()?e.left:e.right;n="start"==t.originX?r:i}return r="center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom,{x:n,y:r}}_getOverlayPoint(e,t,n){let r,i;return r="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,i="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+r,y:e.y+i}}_getOverlayFit(e,t,n,r){let{x:i,y:s}=e,o=this._getOffset(r,"x"),a=this._getOffset(r,"y");o&&(i+=o),a&&(s+=a);let l=0-s,c=s+t.height-n.height,u=this._subtractOverflows(t.width,0-i,i+t.width-n.width),h=this._subtractOverflows(t.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:t.width*t.height===d,fitsInViewportVertically:h===t.height,fitsInViewportHorizontally:u==t.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){const r=n.bottom-t.y,i=n.right-t.x,s=this._overlayRef.getConfig().minHeight,o=this._overlayRef.getConfig().minWidth,a=e.fitsInViewportHorizontally||null!=o&&o<=i;return(e.fitsInViewportVertically||null!=s&&s<=r)&&a}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=this._viewportRect,i=Math.max(e.x+t.width-r.right,0),s=Math.max(e.y+t.height-r.bottom,0),o=Math.max(r.top-n.top-e.y,0),a=Math.max(r.left-n.left-e.x,0);let l=0,c=0;return l=t.width<=r.width?a||-i:e.x<this._viewportMargin?r.left-n.left-e.x:0,c=t.height<=r.height?o||-s:e.y<this._viewportMargin?r.top-n.top-e.y:0,this._previousPushAmount={x:l,y:c},{x:e.x+l,y:e.y+c}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const t=this._getScrollVisibility(),n=new S(e,t);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,r=e.overlayY;n="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let i=0;i<t.length;i++)t[i].style.transformOrigin=`${n} ${r}`}_calculateBoundingBoxRect(e,t){const n=this._viewportRect,r=this._isRtl();let i,s,o,a,l,c;if("top"===t.overlayY)s=e.y,i=n.height-s+this._viewportMargin;else if("bottom"===t.overlayY)o=n.height-e.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const t=Math.min(n.bottom-e.y+n.top,e.y),r=this._lastBoundingBoxSize.height;i=2*t,s=e.y-t,i>r&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-r/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)c=n.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)l=e.x,a=n.right-e.x;else{const t=Math.min(n.right-e.x+n.left,e.x),r=this._lastBoundingBoxSize.width;a=2*t,l=e.x-t,a>r&&!this._isInitialRender&&!this._growAfterOpen&&(l=e.x-r/2)}return{top:s,left:l,bottom:o,right:c,width:a,height:i}}_setBoundingBoxStyles(e,t){const n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{const e=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(r.c)(n.height),i.top=Object(r.c)(n.top),i.bottom=Object(r.c)(n.bottom),i.width=Object(r.c)(n.width),i.left=Object(r.c)(n.left),i.right=Object(r.c)(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",e&&(i.maxHeight=Object(r.c)(e)),s&&(i.maxWidth=Object(r.c)(s))}this._lastBoundingBoxSize=n,D(this._boundingBox.style,i)}_resetBoundingBoxStyles(){D(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){D(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const n={};if(this._hasExactPosition()){const r=this._viewportRuler.getViewportScrollPosition();D(n,this._getExactOverlayY(t,e,r)),D(n,this._getExactOverlayX(t,e,r))}else n.position="static";let r="",i=this._getOffset(t,"x"),s=this._getOffset(t,"y");i&&(r+=`translateX(${i}px) `),s&&(r+=`translateY(${s}px)`),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),D(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:null,bottom:null},s=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=o,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=Object(r.c)(s.y),i}_getExactOverlayX(e,t,n){let i,s={left:null,right:null},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),i=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":s.left=Object(r.c)(o.x),s}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(e=>e.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:w(e,n),isOriginOutsideView:y(e,n),isOverlayClipped:w(t,n),isOverlayOutsideView:y(t,n)}}_subtractOverflows(e,...t){return t.reduce((e,t)=>e-Math.max(t,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(e=>{k("originX",e.originX),E("originY",e.originY),k("overlayX",e.overlayX),E("overlayY",e.overlayY)})}_addPanelClasses(e){this._pane&&Object(r.a)(e).forEach(e=>{""!==e&&-1===this._appliedPanelClasses.indexOf(e)&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof o.k)return e.nativeElement.getBoundingClientRect();if(e instanceof HTMLElement)return e.getBoundingClientRect();const t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}function D(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}class P{constructor(e,t,n,r,i,s,o){this._preferredPositions=[],this._positionStrategy=new I(n,r,i,s,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,t)}get _isRtl(){return"rtl"===this._overlayRef.getDirection()}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(e){this._positionStrategy.withScrollableContainers(e)}withFallbackPosition(e,t,n,r){const i=new O(e,t,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}withOffsetX(e){return this._positionStrategy.withDefaultOffsetX(e),this}withOffsetY(e){return this._positionStrategy.withDefaultOffsetY(e),this}withLockedPosition(e){return this._positionStrategy.withLockedPosition(e),this}withPositions(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(e){return this._positionStrategy.setOrigin(e),this}}class N{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig();e.position=this._cssPosition,e.marginLeft="100%"===n.width?"0":this._leftOffset,e.marginTop="100%"===n.height?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,"100%"===n.width?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems="100%"===n.height?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let j=(()=>{class e{constructor(e,t,n,r){this._viewportRuler=e,this._document=t,this._platform=n,this._overlayContainer=r}global(){return new N}connectedTo(e,t,n){return new P(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(e){return new I(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return e.ngInjectableDef=Object(o.Qb)({factory:function(){return new e(Object(o.Rb)(i.d),Object(o.Rb)(s.d),Object(o.Rb)(p.a),Object(o.Rb)(M))},token:e,providedIn:"root"}),e})(),R=0;class L{constructor(e,t,n,r,i,s,o,a,l,c){this.scrollStrategies=e,this._overlayContainer=t,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=s,this._ngZone=o,this._document=a,this._directionality=l,this._location=c}create(e){const t=this._createHostElement(),n=this._createPaneElement(t),r=this._createPortalOutlet(n),i=new x(e);return i.direction=i.direction||this._directionality.value,new A(r,t,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}position(){return this._positionBuilder}_createPaneElement(e){const t=this._document.createElement("div");return t.id="cdk-overlay-"+R++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){const e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(o.g)),new f.d(e,this._componentFactoryResolver,this._appRef,this._injector)}}const F=new o.o("cdk-connected-overlay-scroll-strategy");function $(e){return()=>e.scrollStrategies.reposition()}class B{}},"Rt+L":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("KOl+");function i(e,t,n,i){return i=Array.from(i),Object(r.e)(e,t,n).apply(this,i)}},SVse:function(e,t,n){"use strict";n.d(t,"z",(function(){return f})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"A",(function(){return b})),n.d(t,"c",(function(){return $})),n.d(t,"i",(function(){return _})),n.d(t,"j",(function(){return x})),n.d(t,"k",(function(){return S})),n.d(t,"n",(function(){return I})),n.d(t,"d",(function(){return B})),n.d(t,"b",(function(){return L})),n.d(t,"q",(function(){return F})),n.d(t,"y",(function(){return V})),n.d(t,"s",(function(){return q})),n.d(t,"t",(function(){return z})),n.d(t,"r",(function(){return U})),n.d(t,"v",(function(){return y})),n.d(t,"u",(function(){return v})),n.d(t,"x",(function(){return M})),n.d(t,"w",(function(){return T})),n.d(t,"p",(function(){return i})),n.d(t,"f",(function(){return s})),n.d(t,"h",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return u})),n.d(t,"o",(function(){return h})),n.d(t,"g",(function(){return l}));var r=n("8Y7J");class i{}const s=new r.o("Location Initialized");class o{}const a=new r.o("appBaseHref");class l{constructor(e,t){this._subject=new r.m,this._urlChangeListeners=[],this._platformStrategy=e;const n=this._platformStrategy.getBaseHref();this._platformLocation=t,this._baseHref=l.stripTrailingSlash(c(n)),this._platformStrategy.onPopState(e=>{this._subject.emit({url:this.path(!0),pop:!0,state:e.state,type:e.type})})}path(e=!1){return this.normalize(this._platformStrategy.path(e))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+l.normalizeQueryParams(t))}normalize(e){return l.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}go(e,t="",n=null){this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l.normalizeQueryParams(t)),n)}replaceState(e,t="",n=null){this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+l.normalizeQueryParams(t)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(e){this._urlChangeListeners.push(e),this.subscribe(e=>{this._notifyUrlChangeListeners(e.url,e.state)})}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(n=>n(e,t))}subscribe(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}static normalizeQueryParams(e){return e&&"?"!==e[0]?"?"+e:e}static joinWithSlash(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}static stripTrailingSlash(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}}function c(e){return e.replace(/\/index.html$/,"")}class u extends o{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",null!=t&&(this._baseHref=t)}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}prepareExternalUrl(e){const t=l.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,n,r){let i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){let i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}class h extends o{constructor(e,t){if(super(),this._platformLocation=e,null==t&&(t=this._platformLocation.getBaseHrefFromDOM()),null==t)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=t}onPopState(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return l.joinWithSlash(this._baseHref,e)}path(e=!1){const t=this._platformLocation.pathname+l.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${t}${n}`:t}pushState(e,t,n,r){const i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)}replaceState(e,t,n,r){const i=this.prepareExternalUrl(n+l.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}const d=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),p=r.ub,f=new r.o("UseV4Plurals");class g{}class m extends g{constructor(e,t){super(),this.locale=e,this.deprecatedPluralFn=t}getPluralCategory(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):p(t||this.locale)(e)){case d.Zero:return"zero";case d.One:return"one";case d.Two:return"two";case d.Few:return"few";case d.Many:return"many";default:return"other"}}}function b(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}class v{}class y{constructor(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}getValue(){return null}setClass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}setNgClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(r.xb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}applyChanges(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachChangedItem(e=>this._toggleClass(e.key,e.currentValue)),e.forEachRemovedItem(e=>{e.previousValue&&this._toggleClass(e.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(e=>{if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.Kb)(e.item));this._toggleClass(e.item,!0)}),e.forEachRemovedItem(e=>this._toggleClass(e.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!0)):Object.keys(e).forEach(t=>this._toggleClass(t,!!e[t])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(e=>this._toggleClass(e,!1)):Object.keys(e).forEach(e=>this._toggleClass(e,!1)))}_toggleClass(e,t){(e=e.trim())&&e.split(/\s+/g).forEach(e=>{t?this._renderer.addClass(this._ngEl.nativeElement,e):this._renderer.removeClass(this._ngEl.nativeElement,e)})}}let w=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class _ extends w{constructor(e){super(e)}set klass(e){this._delegate.setClass(e)}set ngClass(e){this._delegate.setNgClass(e)}ngDoCheck(){this._delegate.applyChanges()}}class C{constructor(e,t,n,r){this.$implicit=e,this.ngForOf=t,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}}class x{constructor(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){Object(r.W)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(e)}. See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information.`),this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}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(t){throw new Error(`Cannot find a differ supporting object '${n}' of type '${e=n,e.name||typeof e}'. NgFor only supports binding to Iterables such as Arrays.`)}}var e;if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const t=[];e.forEachOperation((e,n,r)=>{if(null==e.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new C(null,this._ngForOf,-1,-1),r),i=new O(e,n);t.push(i)}else if(null==r)this._viewContainer.remove(n);else{const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const s=new O(e,i);t.push(s)}});for(let n=0;n<t.length;n++)this._perViewChange(t[n].view,t[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const e=this._viewContainer.get(n);e.context.index=n,e.context.count=r,e.context.ngForOf=this._ngForOf}e.forEachIdentityChange(e=>{this._viewContainer.get(e.currentIndex).context.$implicit=e.item})}_perViewChange(e,t){e.context.$implicit=t.item}static ngTemplateContextGuard(e,t){return!0}}class O{constructor(e,t){this.record=e,this.view=t}}class S{constructor(e,t){this._viewContainer=e,this._context=new E,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){k("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){k("ngIfElse",e),this._elseTemplateRef=e,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)))}}class E{constructor(){this.$implicit=null,this.ngIf=null}}function k(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Object(r.Kb)(t)}'.`)}class T{}class M{constructor(e,t,n){this._ngEl=e,this._differs=t,this._renderer=n}getValue(){return null}setNgStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}applyChanges(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_applyChanges(e){e.forEachRemovedItem(e=>this._setStyle(e.key,null)),e.forEachAddedItem(e=>this._setStyle(e.key,e.currentValue)),e.forEachChangedItem(e=>this._setStyle(e.key,e.currentValue))}_setStyle(e,t){const[n,r]=e.split(".");null!=(t=null!=t&&r?`${t}${r}`:t)?this._renderer.setStyle(this._ngEl.nativeElement,n,t):this._renderer.removeStyle(this._ngEl.nativeElement,n)}}let A=(()=>{class e{constructor(e){this._delegate=e}getValue(){return this._delegate.getValue()}}return e.ngDirectiveDef=void 0,e})();class I extends A{constructor(e){super(e)}set ngStyle(e){this._delegate.setNgStyle(e)}ngDoCheck(){this._delegate.applyChanges()}}function D(e,t){return Error(`InvalidPipeArgument: '${t}' for pipe '${Object(r.Kb)(e)}'`)}class P{createSubscription(e,t){return e.subscribe({next:t,error:e=>{throw e}})}dispose(e){e.unsubscribe()}onDestroy(e){e.unsubscribe()}}class N{createSubscription(e,t){return e.then(t,e=>{throw e})}dispose(e){}onDestroy(e){}}const j=new N,R=new P;class L{constructor(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):Object(r.Ab)(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.Q.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(Object(r.zb)(e))return j;if(Object(r.yb)(e))return R;throw D(L,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}class F{transform(e,t,n){if(null==e)return e;if(!this.supports(e))throw D(F,e);return e.slice(t,n)}supports(e){return"string"==typeof e||Array.isArray(e)}}class ${}const B=new r.o("DocumentToken"),V="browser";function q(e){return e===V}function z(e){return"server"===e}let U=(()=>{class e{}return e.ngInjectableDef=Object(r.Qb)({token:e,providedIn:"root",factory:()=>new H(Object(r.Rb)(B),window,Object(r.Rb)(r.l))}),e})();class H{constructor(e,t,n){this.document=e,this.window=t,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);const n=this.document.querySelector(`[name='${e}']`);if(n)return void this.scrollToElement(n)}catch(t){this.errorHandler.handleError(t)}}}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}},SeVD:function(e,t,n){"use strict";var r=n("ngJS"),i=n("NJ4a"),s=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");n.d(t,"a",(function(){return u}));const u=e=>{if(e&&"function"==typeof e[o.a])return u=e,e=>{const t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(a.a)(e))return Object(r.a)(e);if(Object(l.a)(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,i.a),e);if(e&&"function"==typeof e[s.a])return t=e,e=>{const n=t[s.a]();for(;;){const t=n.next();if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=Object(c.a)(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,u}},SpAZ:function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},TBO2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("J20c"),n("++lw"),n("iunF");class r{constructor(e,t,n,r,i,s,o){this.chatsMgr=e,this.archiveMgr=t,this.navParams=n,this.navCtrl=r,this.settingsMgr=i,this.translateService=s,this.viewCtrl=o,this.actionDownloadItem="downloadItem",this.actionPrepareDownloadInformation="prepareDownloadInfo",this.allowedDownloadTimes=3,this.settingsDownloadedTimesKey="downloadedItemsNumber",this._isResult=!1,this.chat=this.navParams.get("chat"),this.prepareDownload(),this.settingsMgr.getPrimarySettings().then(e=>{e.isBayaPlus()&&(this.allowedDownloadTimes=599)})}isRtl(){return this.settingsMgr.isRtl()}prepareDownload(){this.showLoading(),this.chatsMgr.socketManager.asyncQuery(this.actionPrepareDownloadInformation,{chat:this.chat.getSimpleModel()}).then(e=>{this.hideLoading(),this.downloadUrl=e.getParam("downloadUrl"),this.downloadSize=e.getParam("downloadSize"),this.wordsCount=e.getParam("count"),this.time=e.getParam("time")})}showLoading(){this.isLoading=!0}hideLoading(){this.isLoading=!1}close(){this.viewCtrl.dismiss()}download(){this.settingsMgr.getPrimarySettings().then(e=>{let t=e.getParam(this.settingsDownloadedTimesKey);null==t&&(t=0),t<this.allowedDownloadTimes||e.isBayaPlus()?(this.isLoading=!0,this.startDownload().then(n=>{n?(e.setParam(this.settingsDownloadedTimesKey,++t),this.settingsMgr.savePrimarySetting(),this.setResult("\u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0631\u062f\u06cc\u0646"),this.showResult()):(this.setResult("\u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0627\u0648\u0645\u062f"),this.showResult())})):this.askForUpgrade()})}setResult(e){this.result=e}showResult(){this.isLoading=!1,this._isResult=!0}isDetails(){return!this.isLoading&&!this._isResult}isResult(){return!this.isLoading&&this._isResult}askForUpgrade(){this.navCtrl.navigateRoot("BayaPlusPage")}startDownload(){return new Promise(e=>{this.chatsMgr.socketManager.download(this.downloadUrl).then(t=>{let n=t.getParam("content");this.archiveMgr.databaseMgr.importSQL(n).then(()=>{e(!0)}).catch(t=>{console.log("failed to import",t),e(!1)})})})}getIconName(){let e;switch(this.chat.type){case"dictionary":e="ios-bookmarks";break;case"news":e="ios-paper";break;case"partner":e="md-contacts";break;case"puzzle":e="ios-apps";break;case"idiom":e="ios-quote";break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":e="ios-ribbon";break;case"leitner":e="ios-cube"}return e}}},TSSN:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("LRne"),s=n("VRyK"),o=n("HDdC"),a=n("GyhO"),l=n("IzEk"),c=n("w1tV"),u=n("lJxs"),h=n("128B");function d(e,t,n){return 0===n?[t]:(e.push(t),e)}var p=n("eIep");n.d(t,"g",(function(){return A})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return E})),n.d(t,"l",(function(){return k})),n.d(t,"j",(function(){return T})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"h",(function(){return x})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"i",(function(){return M})),n.d(t,"k",(function(){return S}));class f{}class g extends f{getTranslation(e){return Object(i.a)({})}}class m{}class b{handle(e){return e.key}}class v{}class y extends v{compile(e,t){return e}compileTranslations(e,t){return e}}function w(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;let n,r,i,s=typeof e;if(s==typeof t&&"object"==s){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(r in i=Object.create(null),e){if(!w(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&void 0!==t[r])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(r=0;r<n;r++)if(!w(e[r],t[r]))return!1;return!0}}return!1}function _(e){return null!=e}function C(e){return e&&"object"==typeof e&&!Array.isArray(e)}class x{}class O extends x{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,t){let n;return n="string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e,n}getValue(e,t){let n=t.split(".");t="";do{t+=n.shift(),!_(e)||!_(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}interpolateFunction(e,t){return e(t)}interpolateString(e,t){return t?e.replace(this.templateMatcher,(e,n)=>{let r=this.getValue(t,n);return _(r)?r:e}):e}}class S{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.m,this.onLangChange=new r.m,this.onDefaultLangChange=new r.m}}const E=new r.o("USE_STORE"),k=new r.o("USE_DEFAULT_LANG");class T{constructor(e,t,n,i,s,o=!0,a=!1){this.store=e,this.currentLoader=t,this.compiler=n,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=o,this.isolate=a,this.pending=!1,this._onTranslationChange=new r.m,this._onLangChange=new r.m,this._onDefaultLangChange=new r.m,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(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let t=this.retrieveTranslations(e);void 0!==t?(this.defaultLang||(this.defaultLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Object(i.a)(this.translations[e]);let t=this.retrieveTranslations(e);return void 0!==t?(this.currentLang||(this.currentLang=e),t.pipe(Object(l.a)(1)).subscribe(t=>{this.changeLang(e)}),t):(this.changeLang(e),Object(i.a)(this.translations[e]))}retrieveTranslations(e){let t;return void 0===this.translations[e]&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}getTranslation(e){this.pending=!0;const t=this.currentLoader.getTranslation(e).pipe(Object(c.a)());return this.loadingTranslations=t.pipe(Object(l.a)(1),Object(u.a)(t=>this.compiler.compileTranslations(t,e)),Object(c.a)()),this.loadingTranslations.subscribe(t=>{this.translations[e]=t,this.updateLangs(),this.pending=!1},e=>{this.pending=!1}),t}setTranslation(e,t,n=!1){t=this.compiler.compileTranslations(t,e),this.translations[e]=n&&this.translations[e]?function e(t,n){let r=Object.assign({},t);return C(t)&&C(n)&&Object.keys(n).forEach(i=>{C(n[i])?i in t?r[i]=e(t[i],n[i]):Object.assign(r,{[i]:n[i]}):Object.assign(r,{[i]:n[i]})}),r}(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(e=>{-1===this.langs.indexOf(e)&&this.langs.push(e)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,t,n){let r;if(t instanceof Array){let r={},o=!1;for(let i of t)r[i]=this.getParsedResult(e,i,n),"function"==typeof r[i].subscribe&&(o=!0);if(o){let e;for(let n of t){let t="function"==typeof r[n].subscribe?r[n]:Object(i.a)(r[n]);e=void 0===e?t:Object(s.a)(e,t)}return e.pipe(Object(h.a)(d,[]),Object(u.a)(e=>{let n={};return e.forEach((e,r)=>{n[t[r]]=e}),n}))}return r}if(e&&(r=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===r&&this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===r){let e={key:t,translateService:this};void 0!==n&&(e.interpolateParams=n),r=this.missingTranslationHandler.handle(e)}return void 0!==r?r:t}get(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return o.a.create(n=>{let r=e=>{n.next(e),n.complete()},i=e=>{n.error(e)};this.loadingTranslations.subscribe(n=>{"function"==typeof(n=this.getParsedResult(n,e,t)).subscribe?n.subscribe(r,i):r(n)},i)});{let n=this.getParsedResult(this.translations[this.currentLang],e,t);return"function"==typeof n.subscribe?n:Object(i.a)(n)}}stream(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');return Object(a.a)(this.get(e,t),this.onLangChange.pipe(Object(p.a)(n=>{const r=this.getParsedResult(n.translations,e,t);return"function"==typeof r.subscribe?r:Object(i.a)(r)})))}instant(e,t){if(!_(e)||!e.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],e,t);if(void 0!==n.subscribe){if(e instanceof Array){let t={};return e.forEach((n,r)=>{t[e[r]]=e[r]}),t}return e}return n}set(e,t,n=this.currentLang){this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang||this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}class M{constructor(e,t){this.translate=e,this._ref=t,this.value=""}updateValue(e,t,n){let r=t=>{this.value=void 0!==t?t:e,this.lastKey=e,this._ref.markForCheck()};if(n){let i=this.translate.getParsedResult(n,e,t);"function"==typeof i.subscribe?i.subscribe(r):r(i)}this.translate.get(e,t).subscribe(r)}transform(e,...t){if(!e||0===e.length)return e;if(w(e,this.lastKey)&&w(t,this.lastParams))return this.value;let n;if(_(t[0])&&t.length)if("string"==typeof t[0]&&t[0].length){let e=t[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(e)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+t[0])}}else"object"!=typeof t[0]||Array.isArray(t[0])||(n=t[0]);return this.lastKey=e,this.lastParams=t,this.updateValue(e,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(t=>{this.lastKey&&t.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(t=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,n,t.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,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()}}class A{static forRoot(e={}){return{ngModule:A,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:v,useClass:y},e.parser||{provide:x,useClass:O},e.missingTranslationHandler||{provide:m,useClass:b},S,{provide:E,useValue:e.isolate},{provide:k,useValue:e.useDefaultLang},T]}}static forChild(e={}){return{ngModule:A,providers:[e.loader||{provide:f,useClass:g},e.compiler||{provide:v,useClass:y},e.parser||{provide:x,useClass:O},e.missingTranslationHandler||{provide:m,useClass:b},{provide:E,useValue:e.isolate},{provide:k,useValue:e.useDefaultLang},T]}}}},VRyK:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("z+Ro"),s=n("bHdf"),o=n("yCtX");function a(...e){let t=Number.POSITIVE_INFINITY,n=null,a=e[e.length-1];return Object(i.a)(a)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof a&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof r.a?e[0]:Object(s.a)(t)(Object(o.a)(e,n))}},W2O4:function(e,t,n){"use strict";n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return R})),n.d(t,"c",(function(){return s})),n.d(t,"j",(function(){return x})),n.d(t,"a",(function(){return S})),n.d(t,"h",(function(){return O})),n.d(t,"b",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return N})),n.d(t,"f",(function(){return L})),n.d(t,"k",(function(){return p})),n("8Y7J");var r=n("HDdC"),i=n("cUpR");class s{constructor(){}build(){return new XMLHttpRequest}}const o=function(){var e={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};return e[e.Get]="Get",e[e.Post]="Post",e[e.Put]="Put",e[e.Delete]="Delete",e[e.Options]="Options",e[e.Head]="Head",e[e.Patch]="Patch",e}(),a=function(){var e={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};return e[e.Basic]="Basic",e[e.Cors]="Cors",e[e.Default]="Default",e[e.Error]="Error",e[e.Opaque]="Opaque",e}(),l=function(){var e={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};return e[e.NONE]="NONE",e[e.JSON]="JSON",e[e.FORM]="FORM",e[e.FORM_DATA]="FORM_DATA",e[e.TEXT]="TEXT",e[e.BLOB]="BLOB",e[e.ARRAY_BUFFER]="ARRAY_BUFFER",e}(),c=function(){var e={Text:0,Json:1,ArrayBuffer:2,Blob:3};return e[e.Text]="Text",e[e.Json]="Json",e[e.ArrayBuffer]="ArrayBuffer",e[e.Blob]="Blob",e}();class u{constructor(e){this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof u?e.forEach((e,t)=>{e.forEach(e=>this.append(t,e))}):Object.keys(e).forEach(t=>{const n=Array.isArray(e[t])?e[t]:[e[t]];this.delete(t),n.forEach(e=>this.append(t,e))}))}static fromResponseHeaderString(e){const t=new u;return e.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>0){const r=e.slice(0,n),i=e.slice(n+1).trim();t.set(r,i)}}),t}append(e,t){const n=this.getAll(e);null===n?this.set(e,t):n.push(t)}delete(e){const t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)}forEach(e){this._headers.forEach((t,n)=>e(t,this._normalizedNames.get(n),this._headers))}get(e){const t=this.getAll(e);return null===t?null:t.length>0?t[0]:null}has(e){return this._headers.has(e.toLowerCase())}keys(){return Array.from(this._normalizedNames.values())}set(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)}values(){return Array.from(this._headers.values())}toJSON(){const e={};return this._headers.forEach((t,n)=>{const r=[];t.forEach(e=>r.push(...e.split(","))),e[this._normalizedNames.get(n)]=r}),e}getAll(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null}entries(){throw new Error('"entries" method is not implemented on Headers class')}mayBeSetNormalizedName(e){const t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)}}class h{constructor(e={}){const{body:t,status:n,headers:r,statusText:i,type:s,url:o}=e;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=o?o:null}merge(e){return new h({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})}}class d extends h{constructor(){super({status:200,statusText:"Ok",type:a.Default,headers:new u})}}class p{}function f(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return o.Get;case"POST":return o.Post;case"PUT":return o.Put;case"DELETE":return o.Delete;case"OPTIONS":return o.Options;case"HEAD":return o.Head;case"PATCH":return o.Patch}throw new Error(`Invalid request method. The method "${e}" is not supported.`)}class g{encodeKey(e){return m(e)}encodeValue(e){return m(e)}}function m(e){return encodeURIComponent(e).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 b{constructor(e="",t=new g){this.rawParams=e,this.queryEncoder=t,this.paramsMap=function(e=""){const t=new Map;return e.length>0&&e.split("&").forEach(e=>{const n=e.indexOf("="),[r,i]=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],s=t.get(r)||[];s.push(i),t.set(r,s)}),t}(e)}clone(){const e=new b("",this.queryEncoder);return e.appendAll(this),e}has(e){return this.paramsMap.has(e)}get(e){const t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null}getAll(e){return this.paramsMap.get(e)||[]}set(e,t){if(null==t)return void this.delete(e);const n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}setAll(e){e.paramsMap.forEach((e,t)=>{const n=this.paramsMap.get(t)||[];n.length=0,n.push(e[0]),this.paramsMap.set(t,n)})}append(e,t){if(null==t)return;const n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}appendAll(e){e.paramsMap.forEach((e,t)=>{const n=this.paramsMap.get(t)||[];for(let r=0;r<e.length;++r)n.push(e[r]);this.paramsMap.set(t,n)})}replaceAll(e){e.paramsMap.forEach((e,t)=>{const n=this.paramsMap.get(t)||[];n.length=0;for(let r=0;r<e.length;++r)n.push(e[r]);this.paramsMap.set(t,n)})}toString(){const e=[];return this.paramsMap.forEach((t,n)=>{t.forEach(t=>e.push(this.queryEncoder.encodeKey(n)+"="+this.queryEncoder.encodeValue(t)))}),e.join("&")}delete(e){this.paramsMap.delete(e)}}class v{json(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body}text(e="legacy"){if(this._body instanceof b)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(e){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+e)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()}arrayBuffer(){return this._body instanceof ArrayBuffer?this._body:function(e){const t=new Uint16Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=e.charCodeAt(n);return t.buffer}(this.text())}blob(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")}}class y extends v{constructor(e){super(),this._body=e.body,this.status=e.status,this.ok=this.status>=200&&this.status<=299,this.statusText=e.statusText,this.headers=e.headers,this.type=e.type,this.url=e.url}toString(){return`Response with status: ${this.status} ${this.statusText} for URL: ${this.url}`}}const w=/^\)\]\}',?\n/;class _{constructor(e,t,n){this.request=e,this.response=new r.a(r=>{const i=t.build();i.open(o[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(i.withCredentials=e.withCredentials);const s=()=>{let t=1223===i.status?204:i.status,s=null;204!==t&&(s=void 0===i.response?i.responseText:i.response,"string"==typeof s&&(s=s.replace(w,""))),0===t&&(t=s?200:0);const o=u.fromResponseHeaderString(i.getAllResponseHeaders()),a=("responseURL"in(l=i)?l.responseURL:/^X-Request-URL:/m.test(l.getAllResponseHeaders())?l.getResponseHeader("X-Request-URL"):null)||e.url;var l;let c=new h({body:s,status:t,headers:o,statusText:i.statusText||"OK",url:a});null!=n&&(c=n.merge(c));const d=new y(c);if(d.ok=(e=>e>=200&&e<300)(t),d.ok)return r.next(d),void r.complete();r.error(d)},l=e=>{let t=new h({body:e,type:a.Error,status:i.status,statusText:i.statusText});null!=n&&(t=n.merge(t)),r.error(new y(t))};if(this.setDetectedContentType(e,i),null==e.headers&&(e.headers=new u),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach((e,t)=>i.setRequestHeader(t,e.join(","))),null!=e.responseType&&null!=i.responseType)switch(e.responseType){case c.ArrayBuffer:i.responseType="arraybuffer";break;case c.Json:i.responseType="json";break;case c.Text:i.responseType="text";break;case c.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",s),i.addEventListener("error",l),i.send(this.request.getBody()),()=>{i.removeEventListener("load",s),i.removeEventListener("error",l),i.abort()}})}setDetectedContentType(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case l.NONE:break;case l.JSON:t.setRequestHeader("content-type","application/json");break;case l.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case l.TEXT:t.setRequestHeader("content-type","text/plain");break;case l.BLOB:const n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}}}class C{constructor(e="XSRF-TOKEN",t="X-XSRF-TOKEN"){this._cookieName=e,this._headerName=t}configureRequest(e){const t=Object(i.r)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)}}class x{constructor(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}createConnection(e){return this._xsrfStrategy.configureRequest(e),new _(e,this._browserXHR,this._baseResponseOptions)}}class O{get search(){return this.params}set search(e){this.params=e}constructor(e={}){const{method:t,headers:n,body:r,url:i,search:s,params:o,withCredentials:a,responseType:l}=e;this.method=null!=t?f(t):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(o||s),this.withCredentials=null!=a?a:null,this.responseType=null!=l?l:null}merge(e){return new O({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new u(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})}_mergeSearchParams(e){return e?e instanceof b?e.clone():"string"==typeof e?new b(e):this._parseParams(e):this.params}_parseParams(e={}){const t=new b;return Object.keys(e).forEach(n=>{const r=e[n];Array.isArray(r)?r.forEach(e=>this._appendParam(n,e,t)):this._appendParam(n,r,t)}),t}_appendParam(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)}}class S extends O{constructor(){super({method:o.Get,headers:new u})}}class E extends v{constructor(e){super();const t=e.url;this.url=e.url;const n=e.params||e.search;if(n){let e;if(e="object"!=typeof n||n instanceof b?n.toString():function(e){const t=new b;return Object.keys(e).forEach(n=>{const r=e[n];r&&Array.isArray(r)?r.forEach(e=>t.append(n,e.toString())):t.append(n,r.toString())}),t}(n).toString(),e.length>0){let n="?";-1!=this.url.indexOf("?")&&(n="&"==this.url[this.url.length-1]?"":"&"),this.url=t+n+e}}this._body=e.body,this.method=f(e.method),this.headers=new u(e.headers),this.contentType=this.detectContentType(),this.withCredentials=e.withCredentials,this.responseType=e.responseType}detectContentType(){switch(this.headers.get("content-type")){case"application/json":return l.JSON;case"application/x-www-form-urlencoded":return l.FORM;case"multipart/form-data":return l.FORM_DATA;case"text/plain":case"text/html":return l.TEXT;case"application/octet-stream":return this._body instanceof I?l.ARRAY_BUFFER:l.BLOB;default:return this.detectContentTypeFromBody()}}detectContentTypeFromBody(){return null==this._body?l.NONE:this._body instanceof b?l.FORM:this._body instanceof M?l.FORM_DATA:this._body instanceof A?l.BLOB:this._body instanceof I?l.ARRAY_BUFFER:this._body&&"object"==typeof this._body?l.JSON:l.TEXT}getBody(){switch(this.contentType){case l.JSON:case l.FORM:return this.text();case l.FORM_DATA:return this._body;case l.TEXT:return this.text();case l.BLOB:return this.blob();case l.ARRAY_BUFFER:return this.arrayBuffer();default:return null}}}const k=function(){},T="object"==typeof window?window:k,M=T.FormData||k,A=T.Blob||k,I=T.ArrayBuffer||k;function D(e,t){return e.createConnection(t).response}function P(e,t,n,r){return e.merge(new O(t?{method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType}:{method:n,url:r}))}class N{constructor(e,t){this._backend=e,this._defaultOptions=t}request(e,t){let n;if("string"==typeof e)n=D(this._backend,new E(P(this._defaultOptions,t,o.Get,e)));else{if(!(e instanceof E))throw new Error("First argument must be a url string or Request instance.");n=D(this._backend,e)}return n}get(e,t){return this.request(new E(P(this._defaultOptions,t,o.Get,e)))}post(e,t,n){return this.request(new E(P(this._defaultOptions.merge(new O({body:t})),n,o.Post,e)))}put(e,t,n){return this.request(new E(P(this._defaultOptions.merge(new O({body:t})),n,o.Put,e)))}delete(e,t){return this.request(new E(P(this._defaultOptions,t,o.Delete,e)))}patch(e,t,n){return this.request(new E(P(this._defaultOptions.merge(new O({body:t})),n,o.Patch,e)))}head(e,t){return this.request(new E(P(this._defaultOptions,t,o.Head,e)))}options(e,t){return this.request(new E(P(this._defaultOptions,t,o.Options,e)))}}function j(){return new C}function R(e,t){return new N(e,t)}class L{}},W7t7:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("GAbP"),i=(n("6GXZ"),n("zI0Y"));n("2IJ5");class s extends r.a{constructor(e,t,n,r){super(e,t,n,r),this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=r}getSuggestions(e){return this.platform.is("cordova")?new Promise(t=>{let n=[],r="SELECT * FROM wordsSuggestion where word like '"+e+"%' limit 9";this.databaseObj.executeSql(r,[]).then(e=>{if(e.rows.length>0)for(var r=0;r<e.rows.length;r++){let t=e.rows.item(r);n.push(t.word)}t(n)}).catch(e=>{console.log("error cant get word",e,r)})}):new Promise(e=>{e([])})}getRowNumbers(){return new Promise(e=>{this.userManager.getUser().then(t=>{this.init(t).then(()=>{if(this.platform.is("cordova")){let t="SELECT COALESCE(MAX(_id)+1, 0) as count FROM wordsSuggestion ";this.databaseObj.executeSql(t,[]).then(t=>{let n=t.rows.item(0);e(n.count)}).catch(e=>{console.log("error cant get word",e,t)})}else e(0)})})})}createWordWithWordObject(e){return new i.a(e)}insert(e){if(!this.platform.is("cordova"))return new Promise(e=>{e([])});{let t="INSERT OR IGNORE INTO wordsSuggestion(word) VALUES ('"+e+"')";this.databaseObj.executeSql(t,[]).then(()=>{console.log("suggestion added")}).catch(e=>{console.log("error cant insert word",e,t)})}}}},XNiG:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n("HDdC"),i=n("7o/Q"),s=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends i.a{constructor(e){super(e),this.destination=e}}let u=(()=>{class e extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(e){const t=new h(this,this);return t.operator=e,t}next(e){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new o.a;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new o.a;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new a.a(this,e))}asObservable(){const e=new r.a;return e.source=this,e}}return e.create=(e,t)=>new h(e,t),e})();class h extends u{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):s.a.EMPTY}}},Xd0L:function(e,t,n){"use strict";var r=n("8Y7J");n("cUpR");const i=new r.N("8.2.3");n("KCVW"),n("XNiG"),n("HDdC"),n("/HVE"),n("JX91"),n("5GAg"),n("dvZr"),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return l}));const s=new r.N("8.2.3"),o=new r.o("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});class a{constructor(e,t){this._sanityChecksEnabled=e,this._hammerLoader=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_areChecksEnabled(){return this._sanityChecksEnabled&&Object(r.W)()&&!this._isTestEnv()}_isTestEnv(){const e=this._window;return e&&(e.__karma__||e.jasmine)}_checkDoctypeIsDefined(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._document||!this._document.body||"function"!=typeof getComputedStyle)return;const e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);const t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}_checkCdkVersionMatch(){s.full!==i.full&&console.warn("The Angular Material version ("+s.full+") does not match the Angular CDK version ("+i.full+").\nPlease ensure the versions of these two packages exactly match.")}_checkHammerIsAvailable(){!this._hasCheckedHammer&&this._window&&(!this._areChecksEnabled()||this._window.Hammer||this._hammerLoader||console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)}}function l(e,t){return class extends e{get color(){return this._color}set color(e){const n=e||t;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}constructor(...e){super(...e),this.color=t}}}let c;try{c="undefined"!=typeof Intl}catch(u){c=!1}},XnfD:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("gHap");let i;const s=e=>{if(void 0===i){const t=void 0!==e.style.webkitAnimationName;i=void 0===e.style.animationName&&t?"-webkit-":""}return i},o=(e,t,n)=>{const r=t.startsWith("animation")?s(e):"";e.style.setProperty(r+t,n)},a=(e,t)=>{const n=t.startsWith("animation")?s(e):"";e.style.removeProperty(n+t)},l=[],c=(e=[],t)=>{if(void 0!==t){const n=Array.isArray(t)?t:[t];return[...e,...n]}return e},u=e=>{let t,n,i,u,h,d,p,f,g,m,b,v,y,w=[],_=[],C=[],x=!1,O={},S=[],E=[],k={},T=0,M=!1,A=!1,I=!0,D=!1,P=!0;const N=e,j=[],R=[],L=[],F=[],$=[],B=[],V=[],q=[],z=[],U=[],H="function"==typeof AnimationEffect||"function"==typeof window.AnimationEffect,W="function"==typeof Element&&"function"==typeof Element.prototype.animate&&H,G=(e,t)=>((t&&t.oneTimeCallback?R:j).push({c:e,o:t}),y),X=()=>{if(W)U.forEach(e=>{e.cancel()}),U.length=0;else{const e=L.slice();Object(r.l)(()=>{e.forEach(e=>{a(e,"animation-name"),a(e,"animation-duration"),a(e,"animation-timing-function"),a(e,"animation-iteration-count"),a(e,"animation-delay"),a(e,"animation-play-state"),a(e,"animation-fill-mode"),a(e,"animation-direction")})})}},J=()=>{$.forEach(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}),$.length=0},Q=()=>void 0!==h?h:p?p.getFill():"both",Z=()=>void 0!==g?g:void 0!==d?d:p?p.getDirection():"normal",Y=()=>M?"linear":void 0!==i?i:p?p.getEasing():"linear",K=()=>A?0:void 0!==m?m:void 0!==n?n:p?p.getDuration():0,ee=()=>void 0!==u?u:p?p.getIterations():1,te=()=>void 0!==b?b:void 0!==t?t:p?p.getDelay():0,ne=()=>{0!==T&&(T--,0===T&&((()=>{ue(),q.forEach(e=>e()),z.forEach(e=>e());const e=I?1:0,t=S,n=E,r=k;L.forEach(e=>{const i=e.classList;t.forEach(e=>i.add(e)),n.forEach(e=>i.remove(e));for(const t in r)r.hasOwnProperty(t)&&o(e,t,r[t])}),j.forEach(t=>t.c(e,y)),R.forEach(t=>t.c(e,y)),R.length=0,P=!0,I&&(D=!0),I=!0})(),p&&p.animationFinish()))},re=(t=!0)=>{(()=>{B.forEach(e=>e()),V.forEach(e=>e());const e=_,t=C,n=O;L.forEach(r=>{const i=r.classList;e.forEach(e=>i.add(e)),t.forEach(e=>i.remove(e));for(const e in n)n.hasOwnProperty(e)&&o(r,e,n[e])})})(),w.length>0&&(W?(L.forEach(e=>{const t=e.animate(w,{id:N,delay:te(),duration:K(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()});t.pause(),U.push(t)}),U.length>0&&(U[0].onfinish=()=>{ne()})):((t=!0)=>{J();const n=((i=w).forEach(e=>{for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("easing"===t)e["animation-timing-function"]=n,delete e[t];else{const r=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();r!==t&&(e[r]=n,delete e[t])}}}),i);var i;L.forEach(i=>{if(n.length>0){const a=((e=[])=>e.map(e=>{const t=e.offset,n=[];for(const r in e)e.hasOwnProperty(r)&&"offset"!==r&&n.push(`${r}: ${e[r]};`);return`${100*t}% { ${n.join(" ")} }`}).join(" "))(n);v=void 0!==e?e:(e=>{let t=l.indexOf(e);return t<0&&(t=l.push(e)-1),"ion-animation-"+t})(a);const c=((e,t,n)=>{const r=(e=>{const t=e.getRootNode();return t.head||t})(n),i=s(n),o=r.querySelector("#"+e);if(o)return o;const a=(n.ownerDocument||document).createElement("style");return a.id=e,a.textContent=`@${i}keyframes ${e} { ${t} } @${i}keyframes ${e}-alt { ${t} }`,r.appendChild(a),a})(v,a,i);$.push(c),o(i,"animation-duration",K()+"ms"),o(i,"animation-timing-function",Y()),o(i,"animation-delay",te()+"ms"),o(i,"animation-fill-mode",Q()),o(i,"animation-direction",Z());const u=ee()===1/0?"infinite":ee().toString();o(i,"animation-iteration-count",u),o(i,"animation-play-state","paused"),t&&o(i,"animation-name",c.id+"-alt"),Object(r.l)(()=>{o(i,"animation-name",c.id||null)})}})})(t)),x=!0},ie=e=>{if(e=Math.min(Math.max(e,0),.9999),W)U.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+K()*e,t.pause()});else{const t=`-${K()*e}ms`;L.forEach(e=>{w.length>0&&(o(e,"animation-delay",t),o(e,"animation-play-state","paused"))})}},se=e=>{U.forEach(e=>{e.effect.updateTiming({delay:te(),duration:K(),easing:Y(),iterations:ee(),fill:Q(),direction:Z()})}),void 0!==e&&ie(e)},oe=(e=!0,t)=>{Object(r.l)(()=>{L.forEach(n=>{o(n,"animation-name",v||null),o(n,"animation-duration",K()+"ms"),o(n,"animation-timing-function",Y()),o(n,"animation-delay",void 0!==t?`-${t*K()}ms`:te()+"ms"),o(n,"animation-fill-mode",Q()||null),o(n,"animation-direction",Z()||null);const i=ee()===1/0?"infinite":ee().toString();o(n,"animation-iteration-count",i),e&&o(n,"animation-name",v+"-alt"),Object(r.l)(()=>{o(n,"animation-name",v||null)})})})},ae=(e=!1,t=!0,n)=>(e&&F.forEach(r=>{r.update(e,t,n)}),W?se(n):oe(t,n),y),le=()=>{x&&(W?U.forEach(e=>{e.pause()}):L.forEach(e=>{o(e,"animation-play-state","paused")}))},ce=()=>{f=void 0,ne()},ue=()=>{f&&clearTimeout(f)},he=e=>new Promise(t=>{e&&e.sync&&(A=!0,G(()=>A=!1,{oneTimeCallback:!0})),x||re(),D&&(W?(ie(0),se()):oe(),D=!1),P&&(T=F.length+1,P=!1),G(()=>t(),{oneTimeCallback:!0}),F.forEach(e=>{e.play()}),W?(U.forEach(e=>{e.play()}),0!==w.length&&0!==L.length||ne()):(()=>{if(ue(),Object(r.l)(()=>{L.forEach(e=>{w.length>0&&o(e,"animation-play-state","running")})}),0===w.length||0===L.length)ne();else{const e=te()||0,t=K()||0,n=ee()||1;isFinite(n)&&(f=setTimeout(ce,e+t*n+100)),((e,t)=>{let n;const i={passive:!0},s=t=>{e===t.target&&(n&&n(),ue(),Object(r.l)(()=>{L.forEach(e=>{a(e,"animation-duration"),a(e,"animation-delay"),a(e,"animation-play-state")}),Object(r.l)(ne)}))};e&&(e.addEventListener("webkitAnimationEnd",s,i),e.addEventListener("animationend",s,i),n=()=>{e.removeEventListener("webkitAnimationEnd",s,i),e.removeEventListener("animationend",s,i)})})(L[0])}})()}),de=(e,t)=>{const n=w[0];return void 0===n||void 0!==n.offset&&0!==n.offset?w=[{offset:0,[e]:t},...w]:n[e]=t,y};return y={parentAnimation:p,elements:L,childAnimations:F,id:N,animationFinish:ne,from:de,to:(e,t)=>{const n=w[w.length-1];return void 0===n||void 0!==n.offset&&1!==n.offset?w=[...w,{offset:1,[e]:t}]:n[e]=t,y},fromTo:(e,t,n)=>de(e,t).to(e,n),parent:e=>(p=e,y),play:he,pause:()=>(F.forEach(e=>{e.pause()}),le(),y),stop:()=>{F.forEach(e=>{e.stop()}),x&&(X(),x=!1),M=!1,A=!1,P=!0,g=void 0,m=void 0,b=void 0,T=0,D=!1,I=!0},destroy:e=>(F.forEach(t=>{t.destroy(e)}),(e=>{X(),e&&J()})(e),L.length=0,F.length=0,w.length=0,j.length=0,R.length=0,x=!1,P=!0,y),keyframes:e=>(w=e,y),addAnimation:e=>{if(null!=e)if(Array.isArray(e))for(const t of e)t.parent(y),F.push(t);else e.parent(y),F.push(e);return y},addElement:e=>{if(null!=e)if(1===e.nodeType)L.push(e);else if(e.length>=0)for(let t=0;t<e.length;t++)L.push(e[t]);else console.error("Invalid addElement value");return y},update:ae,fill:e=>(h=e,ae(!0),y),direction:e=>(d=e,ae(!0),y),iterations:e=>(u=e,ae(!0),y),duration:e=>(W||0!==e||(e=1),n=e,ae(!0),y),easing:e=>(i=e,ae(!0),y),delay:e=>(t=e,ae(!0),y),getWebAnimations:()=>U,getKeyframes:()=>w,getFill:Q,getDirection:Z,getDelay:te,getIterations:ee,getEasing:Y,getDuration:K,afterAddRead:e=>(q.push(e),y),afterAddWrite:e=>(z.push(e),y),afterClearStyles:(e=[])=>{for(const t of e)k[t]="";return y},afterStyles:(e={})=>(k=e,y),afterRemoveClass:e=>(E=c(E,e),y),afterAddClass:e=>(S=c(S,e),y),beforeAddRead:e=>(B.push(e),y),beforeAddWrite:e=>(V.push(e),y),beforeClearStyles:(e=[])=>{for(const t of e)O[t]="";return y},beforeStyles:(e={})=>(O=e,y),beforeRemoveClass:e=>(C=c(C,e),y),beforeAddClass:e=>(_=c(_,e),y),onFinish:G,progressStart:(e=!1,t)=>(F.forEach(n=>{n.progressStart(e,t)}),le(),M=e,x?ae(!1,!0,t):re(),y),progressStep:e=>(F.forEach(t=>{t.progressStep(e)}),ie(e),y),progressEnd:(e,t,n)=>(M=!1,F.forEach(r=>{r.progressEnd(e,t,n)}),void 0!==n&&(m=n),D=!1,I=!0,0===e?(g="reverse"===Z()?"normal":"reverse","reverse"===g&&(I=!1),W?(ae(),ie(1-t)):(b=(1-t)*K()*-1,ae(!1,!1))):1===e&&(W?(ae(),ie(t)):(b=t*K()*-1,ae(!1,!1))),void 0!==e&&(G(()=>{m=void 0,g=void 0,b=void 0},{oneTimeCallback:!0}),p||he()),y)}}},XoHu:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,"a",(function(){return r}))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("quSY");class i extends r.a{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},ZUHj:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("51Dv"),i=n("SeVD"),s=n("HDdC");function o(e,t,n,o,a=new r.a(e,n,o)){if(!a.closed)return t instanceof s.a?t.subscribe(a):Object(i.a)(t)(a)}},ZZmf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("nfSX"),n("EGUZ"),n("olg3"),n("/qZA");class r{constructor(e,t,n,r,i,s){this.http=e,this.push=t,this.storageManager=n,this.userManager=r,this.socketManager=i,this.platform=s,console.log("Hello NotificationsManagerProvider Provider")}init(){console.log("need to init push"),this.push.hasPermission().then(e=>{e.isEnabled?(console.log("going to init push"),this.initPush()):console.log("We do not have permission to send push notifications")})}handleMessage(){console.log(" truncrated? :D")}initPush(){this.storageManager.get("notificationEnable").then(e=>{console.log("notifications enable process",e),(null==e||1==e)&&(console.log("notifications enable process",e),this.pushObject=this.push.init({android:{senderID:"930306089784",icon:"../assets/img/pushicon.png"},ios:{alert:"true",badge:!0,sound:"false"},windows:{},browser:{pushServiceURL:"http://push.api.phonegap.com/v1/push"}}),this.pushObject.on("notification").subscribe(e=>{e.title.includes("New")}),this.pushObject.on("registration").subscribe(e=>{console.log("going to register online"),this.userManager.loggedIn().then(()=>{this.socketManager.queryPro("saveReg",e,this,this.userManager.user.getMainAccessToken())})}),this.pushObject.on("error").subscribe(e=>console.error("Error with Push plugin",e)))})}disablePush(){this.platform.is("cordova")&&this.pushObject.unregister()}}},ZnZf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(){this.buttons=[]}}},Zr1d:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.hideFormAccessoryBar=function(e){return Object(i.cordova)(this,"hideFormAccessoryBar",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{sync:!0,platforms:["iOS","Android"]},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{sync:!0,platforms:["Android"]},arguments)},t.prototype.setResizeMode=function(e){return Object(i.cordova)(this,"setResizeMode",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.setKeyboardStyle=function(e){return Object(i.cordova)(this,"setKeyboardStyle",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.disableScroll=function(e){return Object(i.cordova)(this,"disableScroll",{sync:!0,platforms:["iOS"]},arguments)},t.prototype.onKeyboardShow=function(){return Object(i.cordova)(this,"onKeyboardShow",{eventObservable:!0,event:"native.keyboardshow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardWillShow=function(){return Object(i.cordova)(this,"onKeyboardWillShow",{eventObservable:!0,event:"keyboardWillShow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardDidShow=function(){return Object(i.cordova)(this,"onKeyboardDidShow",{eventObservable:!0,event:"keyboardDidShow",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardHide=function(){return Object(i.cordova)(this,"onKeyboardHide",{eventObservable:!0,event:"native.keyboardhide",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardWillHide=function(){return Object(i.cordova)(this,"onKeyboardWillHide",{eventObservable:!0,event:"keyboardWillHide",platforms:["iOS","Android"]},arguments)},t.prototype.onKeyboardDidHide=function(){return Object(i.cordova)(this,"onKeyboardDidHide",{eventObservable:!0,event:"keyboardDidHide",platforms:["iOS","Android"]},arguments)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return Object(i.cordovaPropertyGet)(this,"isVisible")},set:function(e){Object(i.cordovaPropertySet)(this,"isVisible",e)},enumerable:!0,configurable:!0}),t.pluginName="Keyboard",t.plugin="cordova-plugin-ionic-keyboard",t.pluginRef="window.Keyboard",t.repo="https://github.com/ionic-team/cordova-plugin-ionic-keyboard",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},a3Cf:function(e,t,n){"use strict";var r=n("HPGL"),i=n("Lq6m");n.d(t,"IonicNativePlugin",(function(){return i.a}));var s=n("KOl+");n.d(t,"checkAvailability",(function(){return s.a})),n.d(t,"getPromise",(function(){return s.c}));var o=n("xSm1");n.d(t,"cordova",(function(){return o.a})),n("hKQe");var a=n("Rt+L");n.d(t,"cordovaInstance",(function(){return a.a}));var l=n("pxS/");n.d(t,"cordovaPropertyGet",(function(){return l.a})),n.d(t,"cordovaPropertySet",(function(){return l.b}));var c=n("Ji5e");n.d(t,"instancePropertyGet",(function(){return c.a})),n.d(t,"instancePropertySet",(function(){return c.b})),n("4pTB"),Object(r.a)()},a6b8:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("iEnR");var r=n("+mLH");n("/qZA");class i{constructor(e,t){this.avatarDatabaseManager=e,this.socketManager=t,console.log("Hello AvatarsManagerProvider Provider")}getUserByUserID(e){return new Promise(t=>{this.avatarDatabaseManager.getUserByUserID(e).then(n=>{null==n.email?this.getUserFromServer(e).then(e=>{t(e)}):t(n)})})}getUserFromServer(e){return new Promise(t=>{this.socketManager.asyncQuery("getUserData",{userID:e.userID}).then(e=>{if(e.isAllowed()){let n=e.getParam("userData"),i=new r.a(n);this.avatarDatabaseManager.save(i),t(i)}})})}}},bHdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("5+tZ"),i=n("SpAZ");function s(e=Number.POSITIVE_INFINITY){return Object(r.a)(i.a,e)}},bOdf:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("5+tZ");function i(e,t){return Object(r.a)(e,t,1)}},"beh+":function(e,t,n){"use strict";n.r(t),n.d(t,"mdTransitionAnimation",(function(){return s})),n("ePDZ"),n("gHap");var r=n("XnfD"),i=n("tNMG");const s=(e,t)=>{const n="back"===t.direction,s=t.enteringEl,o=t.leavingEl,a=Object(i.g)(s),l=a.querySelector("ion-toolbar"),c=Object(r.a)();if(c.addElement(a).fill("both").beforeRemoveClass("ion-page-invisible"),n?c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):c.duration(t.duration||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),l){const e=Object(r.a)();e.addElement(l),c.addAnimation(e)}if(o&&n){c.duration(t.duration||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const e=Object(r.a)();e.addElement(Object(i.g)(o)).onFinish(t=>{1===t&&e.elements.length>0&&e.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),c.addAnimation(e)}return c}},c2HN:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",(function(){return r}))},cUpR:function(e,t,n){"use strict";n.d(t,"p",(function(){return ue})),n.d(t,"q",(function(){return _})),n.d(t,"a",(function(){return he})),n.d(t,"h",(function(){return ce})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return G})),n.d(t,"f",(function(){return X})),n.d(t,"g",(function(){return J})),n.d(t,"b",(function(){return ee})),n.d(t,"r",(function(){return o})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return H})),n.d(t,"m",(function(){return Q})),n.d(t,"n",(function(){return K})),n.d(t,"l",(function(){return E})),n.d(t,"o",(function(){return S})),n.d(t,"k",(function(){return te}));var r=n("SVse"),i=n("8Y7J");let s=null;function o(){return s}const a={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},l={"\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"},c={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"},u=(()=>{if(i.vb.Node)return i.vb.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))}})();class h extends class extends class{constructor(){this.resourceLoaderType=null}get attrToPropMap(){return this._attrToPropMap}set attrToPropMap(e){this._attrToPropMap=e}}{constructor(){super(),this._animationPrefix=null,this._transitionEnd=null;try{const e=this.createElement("div",document);if(null!=this.getStyle(e,"animationName"))this._animationPrefix="";else{const t=["Webkit","Moz","O","ms"];for(let n=0;n<t.length;n++)if(null!=this.getStyle(e,t[n]+"AnimationName")){this._animationPrefix="-"+t[n].toLowerCase()+"-";break}}const t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(t).forEach(n=>{null!=this.getStyle(e,n)&&(this._transitionEnd=t[n])})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}getDistributedNodes(e){return e.getDistributedNodes()}resolveAndSetHref(e,t,n){e.href=null==n?t:t+"/../"+n}supportsDOMEvents(){return!0}supportsNativeShadowDOM(){return"function"==typeof document.body.createShadowRoot}getAnimationPrefix(){return this._animationPrefix?this._animationPrefix:""}getTransitionEnd(){return this._transitionEnd?this._transitionEnd:""}supportsAnimation(){return null!=this._animationPrefix&&null!=this._transitionEnd}}{parse(e){throw new Error("parse not implemented")}static makeCurrent(){var e;e=new h,s||(s=e)}hasProperty(e,t){return t in e}setProperty(e,t,n){e[t]=n}getProperty(e,t){return e[t]}invoke(e,t,n){e[t](...n)}logError(e){window.console&&(console.error?console.error(e):console.log(e))}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}get attrToPropMap(){return a}contains(e,t){return u.call(e,t)}querySelector(e,t){return e.querySelector(t)}querySelectorAll(e,t){return e.querySelectorAll(t)}on(e,t,n){e.addEventListener(t,n,!1)}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}createMouseEvent(e){const t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t}createEvent(e){const t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t}preventDefault(e){e.preventDefault(),e.returnValue=!1}isPrevented(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue}getInnerHTML(e){return e.innerHTML}getTemplateContent(e){return"content"in e&&this.isTemplateElement(e)?e.content:null}getOuterHTML(e){return e.outerHTML}nodeName(e){return e.nodeName}nodeValue(e){return e.nodeValue}type(e){return e.type}content(e){return this.hasProperty(e,"content")?e.content:e}firstChild(e){return e.firstChild}nextSibling(e){return e.nextSibling}parentElement(e){return e.parentNode}childNodes(e){return e.childNodes}childNodesAsList(e){const t=e.childNodes,n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=t[r];return n}clearNodes(e){for(;e.firstChild;)e.removeChild(e.firstChild)}appendChild(e,t){e.appendChild(t)}removeChild(e,t){e.removeChild(t)}replaceChild(e,t,n){e.replaceChild(t,n)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}insertBefore(e,t,n){e.insertBefore(n,t)}insertAllBefore(e,t,n){n.forEach(n=>e.insertBefore(n,t))}insertAfter(e,t,n){e.insertBefore(n,t.nextSibling)}setInnerHTML(e,t){e.innerHTML=t}getText(e){return e.textContent}setText(e,t){e.textContent=t}getValue(e){return e.value}setValue(e,t){e.value=t}getChecked(e){return e.checked}setChecked(e,t){e.checked=t}createComment(e){return this.getDefaultDocument().createComment(e)}createTemplate(e){const t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createElementNS(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)}createTextNode(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)}createScriptTag(e,t,n){const r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r}createStyleElement(e,t){const n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n}createShadowRoot(e){return e.createShadowRoot()}getShadowRoot(e){return e.shadowRoot}getHost(e){return e.host}clone(e){return e.cloneNode(!0)}getElementsByClassName(e,t){return e.getElementsByClassName(t)}getElementsByTagName(e,t){return e.getElementsByTagName(t)}classList(e){return Array.prototype.slice.call(e.classList,0)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}hasClass(e,t){return e.classList.contains(t)}setStyle(e,t,n){e.style[t]=n}removeStyle(e,t){e.style[t]=""}getStyle(e,t){return e.style[t]}hasStyle(e,t,n){const r=this.getStyle(e,t)||"";return n?r==n:r.length>0}tagName(e){return e.tagName}attributeMap(e){const t=new Map,n=e.attributes;for(let r=0;r<n.length;r++){const e=n.item(r);t.set(e.name,e.value)}return t}hasAttribute(e,t){return e.hasAttribute(t)}hasAttributeNS(e,t,n){return e.hasAttributeNS(t,n)}getAttribute(e,t){return e.getAttribute(t)}getAttributeNS(e,t,n){return e.getAttributeNS(t,n)}setAttribute(e,t,n){e.setAttribute(t,n)}setAttributeNS(e,t,n,r){e.setAttributeNS(t,n,r)}removeAttribute(e,t){e.removeAttribute(t)}removeAttributeNS(e,t,n){e.removeAttributeNS(t,n)}templateAwareRoot(e){return this.isTemplateElement(e)?this.content(e):e}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}getBoundingClientRect(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}}getTitle(e){return e.title}setTitle(e,t){e.title=t||""}elementMatches(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))}isTemplateElement(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName}isTextNode(e){return e.nodeType===Node.TEXT_NODE}isCommentNode(e){return e.nodeType===Node.COMMENT_NODE}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}hasShadowRoot(e){return null!=e.shadowRoot&&e instanceof HTMLElement}isShadowRoot(e){return e instanceof DocumentFragment}importIntoDoc(e){return document.importNode(this.templateAwareRoot(e),!0)}adoptNode(e){return document.adoptNode(e)}getHref(e){return e.getAttribute("href")}getEventKey(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&c.hasOwnProperty(t)&&(t=c[t]))}return l[t]||t}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=p||(p=document.querySelector("base"),p)?p.getAttribute("href"):null;return null==t?null:(n=t,d||(d=document.createElement("a")),d.setAttribute("href",n),"/"===d.pathname.charAt(0)?d.pathname:"/"+d.pathname);var n}resetBaseElement(){p=null}getUserAgent(){return window.navigator.userAgent}setData(e,t,n){this.setAttribute(e,"data-"+t,n)}getData(e,t){return this.getAttribute(e,"data-"+t)}getComputedStyle(e){return getComputedStyle(e)}supportsWebAnimation(){return"function"==typeof Element.prototype.animate}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return Object(r.A)(document.cookie,e)}setCookie(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)}}let d,p=null;function f(){return!!window.history.pushState}const g=new i.o("TRANSITION_ID"),m=[{provide:i.d,useFactory:function(e,t,n){return()=>{n.get(i.e).donePromise.then(()=>{const n=o();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(t=>n.getAttribute(t,"ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[g,r.d,i.p],multi:!0}];class b{static init(){Object(i.Y)(new b)}addToWindow(e){i.vb.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.vb.getAllAngularTestabilities=()=>e.getAllTestabilities(),i.vb.getAllAngularRootElements=()=>e.getAllRootElements(),i.vb.frameworkStabilizers||(i.vb.frameworkStabilizers=[]),i.vb.frameworkStabilizers.push(e=>{const t=i.vb.getAllAngularTestabilities();let n=t.length,r=!1;const s=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(s)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?o().isShadowRoot(t)?this.findTestabilityInTree(e,o().getHost(t),!0):this.findTestabilityInTree(e,o().parentElement(t),!0):null}}function v(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.vb.ng=i.vb.ng||{})[e]=t)}const y=(()=>({ApplicationRef:i.g,NgZone:i.x}))();function w(e){return Object(i.U)(e)}function _(e){return v("probe",w),v("coreTokens",Object.assign({},y,(e||[]).reduce((e,t)=>(e[t.name]=t.token,e),{}))),()=>w}const C=new i.o("EventManagerPlugins");class x{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}class O{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=o().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}class S{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}class E extends S{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>o().remove(e))}}const k={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/"},T=/%COMP%/g;function M(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?M(e,i,n):(i=i.replace(T,e),n.push(i))}return n}function A(e){return t=>{!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}class I{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new D(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.P.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new j(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case i.P.Native:case i.P.ShadowDom:return new R(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=M(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class D{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(k[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=k[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=k[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&i.F.DashCase?e.style.setProperty(t,n,r&i.F.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&i.F.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){N(t,"property"),e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return N(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,A(n)):this.eventManager.addEventListener(e,t,A(n))}}const P=(()=>"@".charCodeAt(0))();function N(e,t){if(e.charCodeAt(0)===P)throw new Error(`Found the synthetic ${t} ${e}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`)}class j extends D{constructor(e,t,n,r){super(e),this.component=n;const i=M(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(T,r+"-"+n.id),this.hostAttr=function(e){return"_nghost-%COMP%".replace(T,e)}(r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class R extends D{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===i.P.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const s=M(r.id,r.styles,[]);for(let i=0;i<s.length;i++){const e=document.createElement("style");e.textContent=s[i],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}const L=(()=>"undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e})(),F=L("addEventListener"),$=L("removeEventListener"),B={},V="__zone_symbol__propagationStopped",q=(()=>{const e="undefined"!=typeof Zone&&Zone[L("BLACK_LISTED_EVENTS")];if(e){const t={};return e.forEach(e=>{t[e]=e}),t}})(),z=function(e){return!!q&&q.hasOwnProperty(e)},U=function(e){const t=B[e.type];if(!t)return;const n=this[t];if(!n)return;const r=[e];if(1===n.length){const e=n[0];return e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}{const t=n.slice();for(let n=0;n<t.length&&!0!==e[V];n++){const e=t[n];e.zone!==Zone.current?e.zone.run(e.handler,this,r):e.handler.apply(this,r)}}};class H extends O{constructor(e,t,n){super(e),this.ngZone=t,n&&Object(r.t)(n)||this.patchEvent()}patchEvent(){if("undefined"==typeof Event||!Event||!Event.prototype)return;if(Event.prototype.__zone_symbol__stopImmediatePropagation)return;const e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[V]=!0),e&&e.apply(this,arguments)}}supports(e){return!0}addEventListener(e,t,n){let r=n;if(!e[F]||i.x.isInAngularZone()&&!z(t))e.addEventListener(t,r,!1);else{let n=B[t];n||(n=B[t]=L("ANGULAR"+t+"FALSE"));let i=e[n];const s=i&&i.length>0;i||(i=e[n]=[]);const o=z(t)?Zone.root:Zone.current;if(0===i.length)i.push({zone:o,handler:r});else{let e=!1;for(let t=0;t<i.length;t++)if(i[t].handler===r){e=!0;break}e||i.push({zone:o,handler:r})}s||e[F](t,U,!1)}return()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,n){let r=e[$];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);let i=B[t],s=i&&e[i];if(!s)return e.removeEventListener.apply(e,[t,n,!1]);let o=!1;for(let a=0;a<s.length;a++)if(s[a].handler===n){o=!0,s.splice(a,1);break}o?0===s.length&&r.apply(e,[t,U,!1]):e.removeEventListener.apply(e,[t,n,!1])}}const W={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},G=new i.o("HammerGestureConfig"),X=new i.o("HammerLoader");class J{constructor(){this.events=[],this.overrides={}}buildHammer(e){const t=new Hammer(e,this.options);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(const n in this.overrides)t.get(n).set(this.overrides[n]);return t}}class Q extends O{constructor(e,t,n,r){super(e),this._config=t,this.console=n,this.loader=r}supports(e){return!(!W.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${e}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(e,t,n){const r=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){let r=!1,i=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(i=()=>{});r||(i=this.addEventListener(e,t,n))}).catch(()=>{this.console.warn(`The "${t}" event cannot be bound because the custom Hammer.JS loader failed.`),i=()=>{}}),()=>{i()}}return r.runOutsideAngular(()=>{const i=this._config.buildHammer(e),s=function(e){r.runGuarded((function(){n(e)}))};return i.on(t,s),()=>{i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}const Z=["alt","control","meta","shift"],Y={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};class K extends O{constructor(e){super(e)}supports(e){return null!=K.parseEventName(e)}addEventListener(e,t,n){const r=K.parseEventName(t),i=K.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>o().onAndCancel(e,r.domEventName,i))}static parseEventName(e){const t=e.toLowerCase().split("."),n=t.shift();if(0===t.length||"keydown"!==n&&"keyup"!==n)return null;const r=K._normalizeKey(t.pop());let i="";if(Z.forEach(e=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=r,0!=t.length||0===r.length)return null;const s={};return s.domEventName=n,s.fullKey=i,s}static getEventFullKey(e){let t="",n=o().getEventKey(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Z.forEach(r=>{r!=n&&(0,Y[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(e,t,n){return r=>{K.getEventFullKey(r)===e&&n.runGuarded(()=>t(r))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}class ee{}class te extends ee{constructor(e){super(),this._doc=e}sanitize(e,t){if(null==t)return null;switch(e){case i.H.NONE:return t;case i.H.HTML:return t instanceof re?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),Object(i.eb)(this._doc,String(t)));case i.H.STYLE:return t instanceof ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),Object(i.fb)(t));case i.H.SCRIPT:if(t instanceof se)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case i.H.URL:return t instanceof ae||t instanceof oe?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Object(i.gb)(String(t)));case i.H.RESOURCE_URL:if(t instanceof ae)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see http://g.co/ng/security#xss)`)}}checkNotSafeValue(e,t){if(e instanceof ne)throw new Error(`Required a safe ${t}, got a ${e.getTypeName()} (see http://g.co/ng/security#xss)`)}bypassSecurityTrustHtml(e){return new re(e)}bypassSecurityTrustStyle(e){return new ie(e)}bypassSecurityTrustScript(e){return new se(e)}bypassSecurityTrustUrl(e){return new oe(e)}bypassSecurityTrustResourceUrl(e){return new ae(e)}}class ne{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class re extends ne{getTypeName(){return"HTML"}}class ie extends ne{getTypeName(){return"Style"}}class se extends ne{getTypeName(){return"Script"}}class oe extends ne{getTypeName(){return"URL"}}class ae extends ne{getTypeName(){return"ResourceURL"}}const le=[{provide:i.z,useValue:r.y},{provide:i.A,useValue:function(){h.makeCurrent(),b.init()},multi:!0},{provide:r.p,useClass:class extends r.p{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=o().getLocation(),this._history=o().getHistory()}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}onHashChange(e){o().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!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(e){this.location.pathname=e}pushState(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}replaceState(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}},deps:[r.d]},{provide:r.d,useFactory:function(){return document},deps:[]}],ce=Object(i.R)(i.X,"browser",le);function ue(){return new i.l}class he{constructor(e){if(e)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:he,providers:[{provide:i.c,useValue:e.appId},{provide:g,useExisting:i.c},m]}}}"undefined"!=typeof window&&window},cp0P:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("HDdC"),i=n("DH7j"),s=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function l(...e){if(1===e.length){const t=e[0];if(Object(i.a)(t))return c(t,null);if(Object(o.a)(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return c(e.map(e=>t[e]),e)}}if("function"==typeof e[e.length-1]){const t=e.pop();return c(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(s.a)(e=>t(...e)))}return c(e,null)}function c(e,t){return new r.a(n=>{const r=e.length;if(0===r)return void n.complete();const i=new Array(r);let s=0,o=0;for(let l=0;l<r;l++){const c=Object(a.a)(e[l]);let u=!1;n.add(c.subscribe({next:e=>{u||(u=!0,o++),i[l]=e},error:e=>n.error(e),complete:()=>{s++,s!==r&&u||(o===r&&n.next(t?t.reduce((e,t,n)=>(e[t]=i[n],e),{}):i),n.complete())}}))}})}},d1S0:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("nBaR");class r{}},dIIk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=(n("0+M4"),n("h4wn"),n("J20c"),n("wZ9J"),n("o/Pg"));class s{constructor(e,t,n,r,i,s,o,a){this.modalctrl=e,this.navCtrl=t,this.friendsManager=n,this.membersManager=r,this.chatsManager=i,this.alertCtrl=s,this.navParams=o,this.events=a,this.chat=this.navParams.get("chat")}ionViewDidLoad(){console.log("ionViewDidLoad SelectContactPage")}askAdd(e,t){return r.a(this,void 0,void 0,(function*(){let e=this;(yield this.alertCtrl.create({subHeader:"confirm",message:"Add "+t.email+" to chat "+e.chat.title,buttons:[{text:"cancel",role:"cancel",handler:()=>{console.log("Cancel clicked")}},{text:"yes",handler:()=>{this.modalctrl.dismiss(),e.chatsManager.addMember(e.chat,t);let n=new i.a(t);e.membersManager.addMember(n,e.chat),this.navCtrl.pop()}}]})).present()}))}}},ds6b:function(e,t,n){"use strict";var r=n("mrSG"),i=(n("J20c"),n("oCF6"),n("ZnZf")),s=n("8LZa");class o extends s.a{constructor(e){super(e),this.actionConvertToLeitner="convertToLeitner",this.setIcon("search")}click(){this.execute()}setCompHeader(e){this.headerComp=e}setChat(e){this.chat=e}execute(){this.headerComp.search(),this.chat.setShowOptionMenu(!1),console.log(this.chat)}}class a extends i.a{constructor(e){super(),this.translateService=e}init(){this.addSearchBtn(),this.addConvertBtn()}addConvertBtn(){this.translateService.get("BUTTONS.convertToLeitner").subscribe(()=>{})}addSearchBtn(){let e=this;this.translateService.get("BUTTONS.search").subscribe(t=>{let n=new o(t);n.setCompHeader(e.headerComp),n.setChat(e.chat),this.buttons.push(n)})}addSearchButton(){return new Promise(()=>{})}addBtn(){}setMessage(){}setChat(e){this.chat=e}setHeaderComp(e){this.headerComp=e}close(){this.chat.setShowOptionMenu(!1)}getShareButton(){}}n("HcDZ");var l=n("CDm8"),c=n("tAnt"),u=n("TBO2");n("iunF"),n.d(t,"a",(function(){return h}));class h{constructor(e,t,n,r){this.chatsMgr=e,this.settingsMgr=n,this.translationService=r,this.allowedLeitnerConvertTimes=3,this.settingsLeitnerConvertTimesKey="convertLeitnerNumber",this.chatOptionMenu=new a(r),this.tolang=this.translationService.currentLang,this.settingsMgr.getPrimarySettings().then(e=>{e.isBayaPlus()&&(this.allowedLeitnerConvertTimes=599)})}ngAfterContentInit(){this.chatOptionMenu.setHeaderComp(this.headerComp),this.chatOptionMenu.setChat(this.chat),this.chatOptionMenu.init(),this.addDownloadButton(),this.addLeitnerButton()}addLeitnerButton(){this.chatsMgr.userManager.getUser().then(e=>{if(!this.chat.isDictionary())return"no need to show download button";this.addButton("BUTTONS.convertToLeitner").translate().setIcon("cube").onClick(()=>{this.convertToLeitner()})})}addDownloadButton(){this.chatsMgr.userManager.getUser().then(e=>{if((this.chat.isOwner(e)||!this.chat.isDictionary())&&this.chatsMgr.platform.is("cordova"))return"no need to show download button";this.addButton("BUTTONS.downloadOffline").translate().setIcon("cloud-download").onClick(()=>{this.downloadItem()})})}downloadItem(){return r.a(this,void 0,void 0,(function*(){let e=yield this.chatsMgr.modalCtrl.create({component:u.a,componentProps:{chat:this.chat}});this.chatOptionMenu.close(),e.present(),e.onDidDismiss().then(e=>{e&&this.headerComp.navCtrl.navigateRoot("items")})}))}addButton(e){let t=new s.a(e);return t.setChatOptionMenu(this),this.chatOptionMenu.buttons.push(t),t}ngAfterViewInit(){}convertToLeitner(){return r.a(this,void 0,void 0,(function*(){this.chatOptionMenu.close();let e=new c.a(this.chat.item);e.type=c.a.typeLeitner,e.title=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",e.titleDe=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",e.titleFa=this.chat.title+"-\u0644\u0627\u06cc\u062a\u0646\u0631",e.itemType=c.a.typeLeitner;let t=yield this.chatsMgr.modalCtrl.create({component:l.a,componentProps:{collection:e}});t.present(),t.onDidDismiss().then(t=>{t&&this.settingsMgr.getPrimarySettings().then(n=>{let r=n.getParam(this.settingsLeitnerConvertTimesKey);if(null==r&&(r=0),n.isBayaPlus()||r<this.allowedLeitnerConvertTimes){let i=t.data.item;i.type=e.type,this.chatsMgr.itemsManager.addNewItem(i).then(e=>{this.headerComp.navCtrl.navigateRoot("items")}).then(e=>{this.chatsMgr.databaseManager.copyMessages(this.chat.item,i),n.setParam(this.settingsLeitnerConvertTimesKey,++r),this.settingsMgr.savePrimarySetting()})}else this.headerComp.navCtrl.navigateRoot("BayaPlusPage")})})}))}}},dvZr:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"h",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"l",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"k",(function(){return f})),n.d(t,"m",(function(){return g}));const r=9,i=13,s=27,o=32,a=37,l=38,c=39,u=40,h=48,d=57,p=65,f=90;function g(e,...t){return t.length?t.some(t=>e[t]):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}},eIep:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("l7GE"),i=n("51Dv"),s=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function l(e,t){return"function"==typeof t?n=>n.pipe(l((n,r)=>Object(a.a)(e(n,r)).pipe(Object(o.a)((e,i)=>t(n,e,r,i))))):t=>t.lift(new c(e))}class c{constructor(e){this.project=e}call(e,t){return t.subscribe(new u(e,this.project))}}class u extends r.a{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t,e,n)}_innerSub(e,t,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new i.a(this,t,n),a=this.destination;a.add(o),this.innerSubscription=Object(s.a)(this,e,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(e,t,n,r,i){this.destination.next(t)}}},ePDZ:function(e,t,n){"use strict";n.d(t,"a",(function(){return He})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return L})),n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return Oe})),n.d(t,"g",(function(){return Ue})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return se})),n.d(t,"j",(function(){return ze})),n.d(t,"k",(function(){return A})),n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return ie})),n.d(t,"n",(function(){return pe})),n.d(t,"o",(function(){return Se})),n.d(t,"p",(function(){return m})),n.d(t,"q",(function(){return Te})),n.d(t,"r",(function(){return M})),n.d(t,"s",(function(){return p}));const r="ionic";let i,s,o,a=!1,l=!1,c=!1,u=!1,h=0,d=!1;const p="undefined"!=typeof window?window:{},f=p.CSS,g=p.document||{head:{}},m={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},b=(()=>(g.head.attachShadow+"").indexOf("[native")>-1)(),v=e=>Promise.resolve(e),y=(()=>{try{return new CSSStyleSheet,!0}catch(e){}return!1})(),w=(e,t,n,r)=>{n&&(n=n.filter(r?([e])=>16&e:([e])=>!(16&e))).map(([n,r,i])=>{const s=C(e,n),o=_(t,i),a=x(n);m.ael(s,r,o,a),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(s,r,o,a))})},_=(e,t)=>n=>{256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])},C=(e,t)=>4&t?g:8&t?p:32&t?g.body:16&t?e.parentElement:e,x=e=>0!=(2&e),O="http://www.w3.org/1999/xlink",S=new WeakMap,E=(e,t,n)=>{let r=Ne.get(e);y&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,Ne.set(e,r)},k=(e,t,n,r)=>{let i=T(t,n),s=Ne.get(i);if(e=11===e.nodeType?e:g,s)if("string"==typeof s){let n,o=S.get(e=e.head||e);if(o||S.set(e,o=new Set),!o.has(i)){if(e.host&&(n=e.querySelector(`[sty-id="${i}"]`)))n.innerHTML=s;else{if(m.$cssShim$){n=m.$cssShim$.createHostStyle(r,i,s,!!(10&t.$flags$));const e=n["s-sc"];e&&(i=e,o=null)}else n=g.createElement("style"),n.innerHTML=s;e.insertBefore(n,e.querySelector("link"))}o&&o.add(i)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return i},T=(e,t)=>"sc-"+(t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),M=e=>je.push(e),A=e=>ke(e).$modeName$,I={},D=e=>"object"==(e=typeof e)||"function"===e,P="undefined"!=typeof Deno,N=!(P||"undefined"==typeof global||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),j=(P&&Deno,N?process:P&&Deno,N?process:P&&Deno,(e,t,...n)=>{let r=null,i=null,s=null,o=!1,a=!1,l=[];const c=t=>{for(let n=0;n<t.length;n++)r=t[n],Array.isArray(r)?c(r):null!=r&&"boolean"!=typeof r&&((o="function"!=typeof e&&!D(r))&&(r=String(r)),o&&a?l[l.length-1].$text$+=r:l.push(o?R(null,r):r),a=o)};if(c(n),t){t.key&&(i=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter(t=>e[t]).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,l,F);const u=R(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=i,u.$name$=s,u}),R=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),L={},F={forEach:(e,t)=>e.map($).forEach(t),map:(e,t)=>e.map($).map(t).map(B)},$=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),B=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),j(e.vtag,t,...e.vchildren||[])}const t=R(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},V=(e,t,n,r,i,s)=>{if(n!==r){let a=Ae(e,t),l=t.toLowerCase();if("class"===t){const t=e.classList,i=z(n),s=z(r);t.remove(...i.filter(e=>e&&!s.includes(e))),t.add(...s.filter(e=>e&&!i.includes(e)))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(a||"o"!==t[0]||"n"!==t[1]){const c=D(r);if((a||c&&null!==r)&&!i)try{if(e.tagName.includes("-"))e[t]=r;else{let i=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==i||(e[t]=i)}}catch(o){}let u=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(t=l,u=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(O,t):e.removeAttribute(t)):(!a||4&s||i)&&!c&&(r=!0===r?"":r,u?e.setAttributeNS(O,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):Ae(p,l)?l.slice(2):l[2]+t.slice(3),n&&m.rel(e,t,n,!1),r&&m.ael(e,t,r,!1)}},q=/\s/,z=e=>e?e.split(q):[],U=(e,t,n,r)=>{const i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||I,o=t.$attrs$||I;for(r in s)r in o||V(i,r,s[r],void 0,n,t.$flags$);for(r in o)V(i,r,s[r],o[r],n,t.$flags$)},H=(e,t,n,r)=>{let l,h,d,p=t.$children$[n],f=0;if(a||(c=!0,"slot"===p.$tag$&&(i&&r.classList.add(i+"-s"),p.$flags$|=p.$children$?2:1)),null!==p.$text$)l=p.$elm$=g.createTextNode(p.$text$);else if(1&p.$flags$)l=p.$elm$=g.createTextNode("");else{if(u||(u="svg"===p.$tag$),l=p.$elm$=g.createElementNS(u?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&p.$flags$?"slot-fb":p.$tag$),u&&"foreignObject"===p.$tag$&&(u=!1),U(null,p,u),null!=i&&l["s-si"]!==i&&l.classList.add(l["s-si"]=i),p.$children$)for(f=0;f<p.$children$.length;++f)h=H(e,p,f,l),h&&l.appendChild(h);"svg"===p.$tag$?u=!1:"foreignObject"===l.tagName&&(u=!0)}return l["s-hn"]=o,3&p.$flags$&&(l["s-sr"]=!0,l["s-cr"]=s,l["s-sn"]=p.$name$||"",d=e&&e.$children$&&e.$children$[n],d&&d.$tag$===p.$tag$&&e.$elm$&&W(e.$elm$,!1)),l},W=(e,t)=>{m.$flags$|=1;const n=e.childNodes;for(let r=n.length-1;r>=0;r--){const e=n[r];e["s-hn"]!==o&&e["s-ol"]&&(Z(e).insertBefore(e,Q(e)),e["s-ol"].remove(),e["s-ol"]=void 0,c=!0),t&&W(e,t)}m.$flags$&=-2},G=(e,t,n,r,i,s)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===o&&(l=l.shadowRoot);i<=s;++i)r[i]&&(a=H(null,n,i,e),a&&(r[i].$elm$=a,l.insertBefore(a,Q(t))))},X=(e,t,n,r,i)=>{for(;t<=n;++t)(r=e[t])&&(i=r.$elm$,re(r),l=!0,i["s-ol"]?i["s-ol"].remove():W(i,!0),i.remove())},J=(e,t)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$),Q=e=>e&&e["s-ol"]||e,Z=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Y=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,i=t.$children$,s=t.$tag$,o=t.$text$;let a;null===o?(u="svg"===s||"foreignObject"!==s&&u,"slot"===s||U(e,t,u),null!==r&&null!==i?((e,t,n,r)=>{let i,s,o=0,a=0,l=0,c=0,u=t.length-1,h=t[0],d=t[u],p=r.length-1,f=r[0],g=r[p];for(;o<=u&&a<=p;)if(null==h)h=t[++o];else if(null==d)d=t[--u];else if(null==f)f=r[++a];else if(null==g)g=r[--p];else if(J(h,f))Y(h,f),h=t[++o],f=r[++a];else if(J(d,g))Y(d,g),d=t[--u],g=r[--p];else if(J(h,g))"slot"!==h.$tag$&&"slot"!==g.$tag$||W(h.$elm$.parentNode,!1),Y(h,g),e.insertBefore(h.$elm$,d.$elm$.nextSibling),h=t[++o],g=r[--p];else if(J(d,f))"slot"!==h.$tag$&&"slot"!==g.$tag$||W(d.$elm$.parentNode,!1),Y(d,f),e.insertBefore(d.$elm$,h.$elm$),d=t[--u],f=r[++a];else{for(l=-1,c=o;c<=u;++c)if(t[c]&&null!==t[c].$key$&&t[c].$key$===f.$key$){l=c;break}l>=0?(s=t[l],s.$tag$!==f.$tag$?i=H(t&&t[a],n,l,e):(Y(s,f),t[l]=void 0,i=s.$elm$),f=r[++a]):(i=H(t&&t[a],n,a,e),f=r[++a]),i&&Z(h.$elm$).insertBefore(i,Q(h.$elm$))}o>u?G(e,null==r[p+1]?null:r[p+1].$elm$,n,r,a,p):a>p&&X(t,o,u)})(n,r,t,i):null!==i?(null!==e.$text$&&(n.textContent=""),G(n,null,t,i,0,i.length-1)):null!==r&&X(r,0,r.length-1),u&&"svg"===s&&(u=!1)):(a=n["s-cr"])?a.parentNode.textContent=o:e.$text$!==o&&(n.data=o)},K=e=>{let t,n,r,i,s,o,a=e.childNodes;for(n=0,r=a.length;n<r;n++)if(t=a[n],1===t.nodeType){if(t["s-sr"])for(s=t["s-sn"],t.hidden=!1,i=0;i<r;i++)if(a[i]["s-hn"]!==t["s-hn"])if(o=a[i].nodeType,""!==s){if(1===o&&s===a[i].getAttribute("slot")){t.hidden=!0;break}}else if(1===o||3===o&&""!==a[i].textContent.trim()){t.hidden=!0;break}K(t)}},ee=[],te=e=>{let t,n,r,i,s,o,a=0,c=e.childNodes,u=c.length;for(;a<u;a++){if(t=c[a],t["s-sr"]&&(n=t["s-cr"]))for(r=n.parentNode.childNodes,i=t["s-sn"],o=r.length-1;o>=0;o--)n=r[o],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(ne(n,i)?(s=ee.find(e=>e.$nodeToRelocate$===n),l=!0,n["s-sn"]=n["s-sn"]||i,s?s.$slotRefNode$=t:ee.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&ee.map(e=>{ne(e.$nodeToRelocate$,n["s-sn"])&&(s=ee.find(e=>e.$nodeToRelocate$===n),s&&!e.$slotRefNode$&&(e.$slotRefNode$=s.$slotRefNode$))})):ee.some(e=>e.$nodeToRelocate$===n)||ee.push({$nodeToRelocate$:n}));1===t.nodeType&&te(t)}},ne=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,re=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(re)},ie=e=>ke(e).$hostElement$,se=(e,t,n)=>{const r=ie(e);return{emit:e=>oe(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},oe=(e,t,n)=>{const r=m.ce(t,n);return e.dispatchEvent(r),r},ae=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(t=>e.$onRenderResolve$=t))},le=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return ae(e,e.$ancestorComponent$),Ue(()=>ce(e,t));e.$flags$|=512},ce=(e,t)=>{const n=e.$lazyInstance$;let r;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([e,t])=>ge(n,e,t)),e.$queuedListeners$=null),r=ge(n,"componentWillLoad")),r=me(r,()=>ge(n,"componentWillRender")),me(r,()=>ue(e,n,t))},ue=(e,t,n)=>{const r=e.$hostElement$,u=r["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,i=k(b&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),2&r&&n.classList.add(i+"-s"))})(e),((e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,u=e.$vnode$||R(null,null),h=(d=t)&&d.$tag$===L?t:j(null,null,t);var d;if(o=n.tagName,r.$attrsToReflect$&&(h.$attrs$=h.$attrs$||{},r.$attrsToReflect$.map(([e,t])=>h.$attrs$[t]=n[e])),h.$tag$=null,h.$flags$|=4,e.$vnode$=h,h.$elm$=u.$elm$=n.shadowRoot||n,i=n["s-sc"],s=n["s-cr"],a=b&&0!=(1&r.$flags$),l=!1,Y(u,h),m.$flags$|=1,c){let e,t,n,r,i,s;te(h.$elm$);let o=0;for(;o<ee.length;o++)e=ee[o],t=e.$nodeToRelocate$,t["s-ol"]||(n=g.createTextNode(""),n["s-nr"]=t,t.parentNode.insertBefore(t["s-ol"]=n,t));for(o=0;o<ee.length;o++)if(e=ee[o],t=e.$nodeToRelocate$,e.$slotRefNode$){for(r=e.$slotRefNode$.parentNode,i=e.$slotRefNode$.nextSibling,n=t["s-ol"];n=n.previousSibling;)if(s=n["s-nr"],s&&s["s-sn"]===t["s-sn"]&&r===s.parentNode&&(s=s.nextSibling,!s||!s["s-nr"])){i=s;break}(!i&&r!==t.parentNode||t.nextSibling!==i)&&t!==i&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),r.insertBefore(t,i))}else 1===t.nodeType&&(t.hidden=!0)}l&&K(h.$elm$),m.$flags$&=-2,ee.length=0})(e,he(e,t)),m.$cssShim$&&m.$cssShim$.updateHost(r),u&&(u.map(e=>e()),r["s-rc"]=void 0);{const t=r["s-p"],n=()=>de(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},he=(e,t)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2}catch(n){Ie(n)}return t},de=e=>{const t=e.$hostElement$,n=e.$lazyInstance$,r=e.$ancestorComponent$;64&e.$flags$?ge(n,"componentDidUpdate"):(e.$flags$|=64,be(t),ge(n,"componentDidLoad"),e.$onReadyResolve$(t),r||fe()),e.$onInstanceResolve$(t),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&qe(()=>le(e,!1)),e.$flags$&=-517},pe=e=>{{const t=ke(e),n=t.$hostElement$.isConnected;return n&&2==(18&t.$flags$)&&le(t,!1),n}},fe=e=>{be(g.documentElement),m.$flags$|=2,qe(()=>oe(p,"appload",{detail:{namespace:r}}))},ge=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(r){Ie(r)}},me=(e,t)=>e&&e.then?e.then(t):t(),be=e=>e.classList.add("hydrated"),ve=(e,t,n,r,i,s,o)=>{let a,l,c,u;if(1===s.nodeType){for(a=s.getAttribute("c-id"),a&&(l=a.split("."),l[0]!==o&&"0"!==l[0]||(c={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:s.tagName.toLowerCase(),$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(c),s.removeAttribute("c-id"),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,e=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))),u=s.childNodes.length-1;u>=0;u--)ve(e,t,n,r,i,s.childNodes[u],o);if(s.shadowRoot)for(u=s.shadowRoot.childNodes.length-1;u>=0;u--)ve(e,t,n,r,i,s.shadowRoot.childNodes[u],o)}else if(8===s.nodeType)l=s.nodeValue.split("."),l[1]!==o&&"0"!==l[1]||(a=l[0],c={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:s,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(c.$elm$=s.nextSibling,c.$elm$&&3===c.$elm$.nodeType&&(c.$text$=c.$elm$.textContent,t.push(c),s.remove(),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c,r&&"0"===c.$depth$&&(r[c.$index$]=c.$elm$))):c.$hostId$===o&&("s"===a?(c.$tag$="slot",s["s-sn"]=l[5]?c.$name$=l[5]:"",s["s-sr"]=!0,r&&(c.$elm$=g.createElement(c.$tag$),c.$name$&&c.$elm$.setAttribute("name",c.$name$),s.parentNode.insertBefore(c.$elm$,s),s.remove(),"0"===c.$depth$&&(r[c.$index$]=c.$elm$)),n.push(c),e.$children$||(e.$children$=[]),e.$children$[c.$index$]=c):"r"===a&&(r?s.remove():(i["s-cr"]=s,s["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=R(null,s.textContent);t.$elm$=s,t.$index$="0",e.$children$=[t]}},ye=(e,t)=>{if(1===e.nodeType){let n=0;for(;n<e.childNodes.length;n++)ye(e.childNodes[n],t);if(e.shadowRoot)for(n=0;n<e.shadowRoot.childNodes.length;n++)ye(e.shadowRoot.childNodes[n],t)}else if(8===e.nodeType){const n=e.nodeValue.split(".");"o"===n[0]&&(t.set(n[1]+"."+n[2],e),e.nodeValue="",e["s-en"]=n[3])}},we=(e,t,n)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),i=e.prototype;if(r.map(([e,[r]])=>{31&r||2&n&&32&r?Object.defineProperty(i,e,{get(){return t=e,ke(this).$instanceValues$.get(t);var t},set(n){((e,t,n,r)=>{const i=ke(this),s=i.$instanceValues$.get(t),o=i.$flags$,a=i.$lazyInstance$;var l,c;if(c=r.$members$[t][0],n=null==(l=n)||D(l)?l:4&c?"false"!==l&&(""===l||!!l):2&c?parseFloat(l):1&c?String(l):l,!(8&o&&void 0!==s||n===s)&&(i.$instanceValues$.set(t,n),a)){if(r.$watchers$&&128&o){const e=r.$watchers$[t];e&&e.map(e=>{try{a[e](n,s,t)}catch(r){Ie(r)}})}2==(18&o)&&le(i,!1)}})(0,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&r&&Object.defineProperty(i,e,{value(...t){const n=ke(this);return n.$onInstancePromise$.then(()=>n.$lazyInstance$[e](...t))}})}),1&n){const n=new Map;i.attributeChangedCallback=function(e,t,r){m.jmp(()=>{const t=n.get(e);this[t]=(null!==r||"boolean"!=typeof this[t])&&r})},e.observedAttributes=r.filter(([e,t])=>15&t[0]).map(([e,r])=>{const i=r[1]||e;return n.set(i,e),512&r[0]&&t.$attrsToReflect$.push([e,i]),i})}}return e},_e=e=>{ge(e,"connectedCallback")},Ce=e=>{if(0==(1&m.$flags$)){const t=ke(e),r=t.$cmpMeta$,i=()=>{};if(w(e,t,r.$listeners$,!0),1&t.$flags$)w(e,t,r.$listeners$,!1),_e(t.$lazyInstance$);else{let i;if(t.$flags$|=1,i=e.getAttribute("s-id"),i){if(b&&1&r.$flags$){const t=k(e.shadowRoot,r,e.getAttribute("s-mode"));e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const i=e.shadowRoot,s=[],o=i?[]:null,a=r.$vnode$=R(t,null);m.$orgLocNodes$||ye(g.body,m.$orgLocNodes$=new Map),e["s-id"]=n,e.removeAttribute("s-id"),ve(a,s,[],o,e,e,n),s.map(e=>{const n=e.$hostId$+"."+e.$nodeId$,r=m.$orgLocNodes$.get(n),s=e.$elm$;r&&b&&""===r["s-en"]&&r.parentNode.insertBefore(s,r.nextSibling),i||(s["s-hn"]=t,r&&(s["s-ol"]=r,s["s-ol"]["s-nr"]=s)),m.$orgLocNodes$.delete(n)}),i&&o.map(e=>{e&&i.appendChild(e)})})(e,r.$tagName$,i,t)}i||12&r.$flags$&&xe(e);{let n=e;for(;n=n.parentNode||n.host;)if(1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){ae(t,t.$ancestorComponent$=n);break}}r.$members$&&Object.entries(r.$members$).map(([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}}),qe(()=>(async(e,t,r,i,s)=>{if(0==(32&t.$flags$)){{if(t.$flags$|=32,(s=Pe(r)).then){const e=()=>{};s=await s,e()}s.isProxied||(r.$watchers$=s.watchers,we(s,r,2),s.isProxied=!0);const e=()=>{};t.$flags$|=8;try{new s(t)}catch(l){Ie(l)}t.$flags$&=-9,t.$flags$|=128,e(),_e(t.$lazyInstance$)}if(s.style){let i=s.style;"string"!=typeof i&&(i=i[t.$modeName$=(e=>je.map(t=>t(e)).find(e=>!!e))(e)]);const o=T(r,t.$modeName$);if(!Ne.has(o)){const e=()=>{};8&r.$flags$&&(i=await n.e(64).then(n.bind(null,"/xFy")).then(e=>e.scopeCss(i,o,!1))),E(o,i,!!(1&r.$flags$)),e()}}}const o=t.$ancestorComponent$,a=()=>le(t,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(e,t,r))}i()}},xe=e=>{const t=e["s-cr"]=g.createComment("");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Oe=(e,t={})=>{const n=[],r=t.exclude||[],i=p.customElements,s=g.head,o=s.querySelector("meta[charset]"),a=g.createElement("style"),l=[],c=g.querySelectorAll("[sty-id]");let u,h=!0,d=0;for(Object.assign(m,t),m.$resourcesUrl$=new URL(t.resourcesUrl||"./",g.baseURI).href,t.syncQueue&&(m.$flags$|=4),m.$flags$|=2;d<c.length;d++)E(c[d].getAttribute("sty-id"),c[d].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),!0);e.map(e=>e[1].map(t=>{const s={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};s.$members$=t[2],s.$listeners$=t[3],s.$attrsToReflect$=[],s.$watchers$={},!b&&1&s.$flags$&&(s.$flags$|=8);const o=s.$tagName$,a=class extends HTMLElement{constructor(e){super(e),Me(e=this,s),1&s.$flags$&&(b?e.attachShadow({mode:"open",delegatesFocus:!!(16&s.$flags$)}):"shadowRoot"in e||(e.shadowRoot=e))}connectedCallback(){u&&(clearTimeout(u),u=null),h?l.push(this):m.jmp(()=>Ce(this))}disconnectedCallback(){m.jmp(()=>(e=>{if(0==(1&m.$flags$)){const t=ke(e),n=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0),m.$cssShim$&&m.$cssShim$.removeHost(e),ge(n,"disconnectedCallback"),ge(n,"componentDidUnload")}})(this))}forceUpdate(){pe(this)}componentOnReady(){return ke(this).$onReadyPromise$}};s.$lazyBundleId$=e[0],r.includes(o)||i.get(o)||(n.push(o),i.define(o,we(a,s,1)))})),a.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",a.setAttribute("data-styles",""),s.insertBefore(a,o?o.nextSibling:s.firstChild),h=!1,l.length?l.map(e=>e.connectedCallback()):m.jmp(()=>u=setTimeout(fe,30))},Se=e=>{const t=new URL(e,m.$resourcesUrl$);return t.origin!==p.location.origin?t.href:t.pathname},Ee=new WeakMap,ke=e=>Ee.get(e),Te=(e,t)=>Ee.set(t.$lazyInstance$=e,t),Me=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise(e=>n.$onInstanceResolve$=e),n.$onReadyPromise$=new Promise(e=>n.$onReadyResolve$=e),e["s-p"]=[],e["s-rc"]=[],w(e,n,t.$listeners$,!1),Ee.set(e,n)},Ae=(e,t)=>t in e,Ie=e=>console.error(e),De=new Map,Pe=(e,t,r)=>{const i=e.$tagName$.replace(/-/g,"_"),s=e.$lazyBundleId$,o=De.get(s);return o?o[i]:n("kLfG")(`./${s}.entry.js`).then(e=>(De.set(s,e),e[i]),Ie)},Ne=new Map,je=[],Re=[],Le=[],Fe=[],$e=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&m.$flags$?qe(Ve):m.raf(Ve))},Be=(e,t)=>{let n=0,r=0;for(;n<e.length&&(r=performance.now())<t;)try{e[n++](r)}catch(i){Ie(i)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},Ve=()=>{h++,(e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(t){Ie(t)}e.length=0})(Re);{const e=2==(6&m.$flags$)?performance.now()+14*Math.ceil(.1*h):1/0;Be(Le,e),Be(Fe,e),Le.length>0&&(Fe.push(...Le),Le.length=0),(d=Re.length+Le.length+Fe.length>0)?m.raf(Ve):h=0}},qe=e=>v().then(e),ze=$e(Re,!1),Ue=$e(Le,!0),He={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},f1vJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return x})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return T})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"n",(function(){return A})),n.d(t,"o",(function(){return g}));var r=n("ws0j"),i=n("gHap"),s=n("x/Nk");let o=0;const a=new WeakMap,l=e=>({create:t=>b(e,t),dismiss:(t,n,r)=>w(document,t,n,e,r),getTop:async()=>_(document,e)}),c=l("ion-alert"),u=l("ion-action-sheet"),h=l("ion-loading"),d=l("ion-modal"),p=l("ion-picker"),f=l("ion-popover"),g=l("ion-toast"),m=e=>{"undefined"!=typeof document&&y(document);const t=o++;e.overlayIndex=t,e.hasAttribute("id")||(e.id="ion-overlay-"+t)},b=(e,t)=>"undefined"!=typeof customElements?customElements.whenDefined(e).then(()=>{const n=document.createElement(e);return n.classList.add("overlay-hidden"),Object.assign(n,t),O(document).appendChild(n),n.componentOnReady()}):Promise.resolve(),v='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]), textarea, button, select, .ion-focusable',y=e=>{0===o&&(o=1,e.addEventListener("focus",t=>((e,t)=>{const n=_(t),r=e.target;if(n&&r)if(n===r)n.lastFocus=void 0;else{const e=Object(i.g)(n).querySelector(".ion-overlay-wrapper");if(!e)return;if(e.contains(r))n.lastFocus=r;else{const r=n.lastFocus;((e,t)=>{let n=e.querySelector(v);const r=n&&n.shadowRoot;r&&(n=r.querySelector("input:not([type=hidden]), textarea, button, select")||n),n?n.focus():t.focus()})(e,n),r===t.activeElement&&((e,t)=>{const n=Array.from(e.querySelectorAll(v));let r=n.length>0?n[n.length-1]:null;const i=r&&r.shadowRoot;i&&(r=i.querySelector("input:not([type=hidden]), textarea, button, select")||r),r?r.focus():t.focus()})(e,n),n.lastFocus=t.activeElement}}})(t,e),!0),e.addEventListener("ionBackButton",t=>{const n=_(e);n&&n.backdropDismiss&&t.detail.register(s.OVERLAY_BACK_BUTTON_PRIORITY,()=>n.dismiss(void 0,I))}),e.addEventListener("keyup",t=>{if("Escape"===t.key){const t=_(e);t&&t.backdropDismiss&&t.dismiss(void 0,I)}}))},w=(e,t,n,r,i)=>{const s=_(e,r,i);return s?s.dismiss(t,n):Promise.reject("overlay does not exist")},_=(e,t,n)=>{const r=((e,t)=>(void 0===t&&(t="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(e.querySelectorAll(t)).filter(e=>e.overlayIndex>0)))(e,t);return void 0===n?r[r.length-1]:r.find(e=>e.id===n)},C=async(e,t,n,i,s)=>{if(e.presented)return;e.presented=!0,e.willPresent.emit();const o=Object(r.b)(e),a=e.enterAnimation?e.enterAnimation:r.c.get(t,"ios"===o?n:i);await S(e,a,e.el,s)&&e.didPresent.emit(),e.keyboardClose&&e.el.focus()},x=async(e,t,n,i,s,o,l)=>{if(!e.presented)return!1;e.presented=!1;try{e.el.style.setProperty("pointer-events","none"),e.willDismiss.emit({data:t,role:n});const c=Object(r.b)(e),u=e.leaveAnimation?e.leaveAnimation:r.c.get(i,"ios"===c?s:o);"gesture"!==n&&await S(e,u,e.el,l),e.didDismiss.emit({data:t,role:n}),a.delete(e)}catch(c){console.error(c)}return e.el.remove(),!0},O=e=>e.querySelector("ion-app")||e.body,S=async(e,t,n,i)=>{n.classList.remove("overlay-hidden");const s=t(n.shadowRoot||e.el,i);e.animated&&r.c.getBoolean("animated",!0)||s.duration(0),e.keyboardClose&&s.beforeAddWrite(()=>{const e=n.ownerDocument.activeElement;e&&e.matches("input, ion-input, ion-textarea")&&e.blur()});const o=a.get(e)||[];return a.set(e,[...o,s]),await s.play(),!0},E=(e,t)=>{let n;const r=new Promise(e=>n=e);return k(e,t,e=>{n(e.detail)}),r},k=(e,t,n)=>{const r=i=>{e.removeEventListener(t,r),n(i)};e.addEventListener(t,r)},T=e=>"cancel"===e||e===I,M=e=>e(),A=(e,t)=>{if("function"==typeof e)return r.c.get("_zoneGate",M)(()=>{try{return e(t)}catch(n){console.error(n)}})},I="backdrop"},fILq:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{}},g4Gf:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=(n("kbZ1"),n("J20c"),n("EGUZ"),n("sUqe")),s=n("+mLH");n("2IJ5"),n("0+M4"),n("olg3"),n("wZ9J");class o{constructor(e,t,n,r,s,o,a,l,c,u,h){this.membersManager=e,this.userManager=t,this.navCtrl=n,this.modalCtrl=r,this.itemsManager=s,this.chatsManager=o,this.storageManager=a,this.platform=l,this.consoleDialog=c,this.events=u,this.actionSheetCtrl=h,this.editMode=!1,this.editMode=!1,this.loaded=!1,this.item&&null!=this.item.chat&&(u.subscribe(i.c.NewMessage+this.item.chat.chatID,(e,t)=>{this.chatsManager.findChat(this.item.chat.chatID).messages.push(e)}),u.subscribe("socketmanagerConnected",(e,t)=>{this.initChat()}))}ngAfterContentInit(){this.item=this.itemObject,console.log("this.itemObject:",this.itemObject),this.userId=this.itemObject.userID,this.currentUserId=this.userManager.user.userID,this.chat=this.item.chat,this.loaded=!0,this.chatsManager.socketManager.isConnected()&&this.item.isAutoInit()&&this.chatsManager.updateChat(this.item)}ngAfterViewInit(){}handleMessage(e){let t=JSON.parse(e);if(t.msg){let e=JSON.parse(t.msg);for(let t in e.members){let n=new s.a(e.members[t]);this.chat.members.push(n)}}}getMessagesNumber(){return this.item.chat&&this.item.chat.unreadMessagesNumber>0?this.item.chat.unreadMessagesNumber:""}getLastMessageSummary(){if(this.item.chat)return this.item.chat.getLastMessageSummary()}addPerson(e){e.preventDefault(),e.stopPropagation(),this.initChat().then(e=>{this.chatsManager.getMembers(this.chat,this)})}showOptionsLeave(e){return r.a(this,void 0,void 0,(function*(){(yield this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:()=>{this.deleteItem()}},{text:"leave",handler:()=>{this.groupLeave(),console.log("leave clicked")}},{text:"Cancel",role:"cancel",handler:()=>{console.log("Cancel clicked")}}]})).present()}))}groupLeave(){console.log("this.item is:",this.item),this.chatsManager.leaveGroup(this.item)}showOptions(e){return r.a(this,void 0,void 0,(function*(){(yield this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:()=>{this.deleteItem()}},{text:"Cancel",role:"cancel",handler:()=>{console.log("Cancel clicked")}}]})).present()}))}deleteItem(){this.itemsManager.deleteItem(this.item)}edit(e){this.editMode=!0}save(e){e.stopPropagation(),this.editMode=!1,this.item.title=this.editedTitle,this.itemsManager.save(),console.log("item saved")}getIconName(){let e;switch(this.item.type){case"dictionary":e="bookmarks";break;case"news":e="paper-plane";break;case"partner":e="people";break;case"puzzle":e="apps";break;case"idiom":e="ios-quote";break;case"quiz":e="ios-ribbon";break;case"artikelQuiz":case"imageQuiz":case"translationQuiz":e="ribbon";break;case"leitner":e="cube"}return e}initChat(){return this.chatsManager.initChat(this.item)}isDictionary(){return"dictionary"==this.item.type}openItem(){this.initChat().then(e=>{})}hasMembers(){if(this.item.chat)return this.item.chat.hasMembers()}isItemOwner(){return this.hasMembers()&&this.item.chat.members.filter(e=>e.userID==this.userManager.user.userID).length>0||this.userId==this.currentUserId}}},gCtI:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("2XxT"),n("0+M4");let r=(()=>{class e{constructor(t,n,r){this.http=t,this.timeManager=n,this.events=r,console.log("Hello AppStateManagerProvider Provider"),e.isActive()&&(console.log("lets start timer"),this.timeManager.startTimer());var i=this;document.addEventListener("resume",(function(){i.onResume(i)}),!1),document.addEventListener("pause",(function(){i.onPause(i)}),!1)}onResume(t){e.foreground=!0,console.log("timer should resume"),t.timeManager.startTimer(),this.events.publish("resumeApp")}onPause(t){e.foreground=!1,console.log("timer should pause"),t.timeManager.stopTimer()}static isActive(){return e.foreground}}return e.foreground=!0,e})()},gHap:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return u})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return i}));const r=(e,t=e)=>e.shadowRoot||t,i=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e),s=e=>!!e.shadowRoot&&!!e.attachShadow,o=e=>{const t=e.closest("ion-item");return t?t.querySelector("ion-label"):null},a=(e,t,n,r,i)=>{if(e||s(t)){let e=t.querySelector("input.aux-input");e||(e=t.ownerDocument.createElement("input"),e.type="hidden",e.classList.add("aux-input"),t.appendChild(e)),e.disabled=i,e.name=n,e.value=r||""}},l=(e,t,n)=>Math.max(e,Math.min(t,n)),c=(e,t)=>{if(!e){const e="ASSERT: "+t;throw console.error(e),new Error(e)}},u=e=>e.timeStamp||Date.now(),h=e=>{if(e){const t=e.changedTouches;if(t&&t.length>0){const e=t[0];return{x:e.clientX,y:e.clientY}}if(void 0!==e.pageX)return{x:e.pageX,y:e.pageY}}return{x:0,y:0}},d=e=>{const t="rtl"===document.dir;switch(e){case"start":return t;case"end":return!t;default:throw new Error(`"${e}" is not a valid value for [side]. Use "start" or "end" instead.`)}},p=(e,t)=>{const n=e._original||e;return{_original:e,emit:f(n.emit.bind(n),t)}},f=(e,t=0)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(e,t,...r)}}},gRHU:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("2fFW"),i=n("NJ4a");const s={closed:!0,next(e){},error(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete(){}}},h4wn:function(e,t,n){"use strict";var r=n("nAxv"),i=(n("EGUZ"),n("olg3"),n("3MOV"),n("/qZA"),n("2IJ5"),n("sUqe"));n("AyaB");let s=(()=>{class e{constructor(e){this.syncing=!1,this.friendsMgr=e}setSyncing(e){this.syncing=e}isSyncing(){return this.syncing}sync(){let t=[];for(let e of this.friendsMgr.friends)t.push(e.userID);this.isSyncing()||this.friendsMgr.socketManager.asyncQuery(e.syncFriendsAction,{localFriendsIDs:t}).then(e=>{this.setSyncing(!1);let t=e.getParam("created")||[],n=e.getParam("deleted")||[];for(let r of t)this.friendsMgr.updateFriend(r);for(let r of n)this.friendsMgr.deleteFriendLocally(r)}),this.setSyncing(!0)}deleteFriend(t){this.friendsMgr.socketManager.asyncQuery(e.deleteFriendAction,t.getSimpleModel())}}return e.getNewFriends="getNewFriends",e.loadMyFriends="loadMyFriends",e.syncFriendsAction="syncFriends",e.deleteFriendAction="deleteFriend",e})();n("0+M4"),n.d(t,"a",(function(){return o}));class o{constructor(e,t,n,r,i,s,o,a){this.storageManager=e,this.userManager=t,this.socketManager=n,this.friendsDatabaseManager=r,this.consoleDialog=i,this.platform=s,this.events=o,this.ajaxBridge=a,this.storageFriendNotificationNumber="friendsNotNum",this.friends=[],this.backUpFriends=[],this.init()}init(){this.userManager.loggedIn().then(()=>{console.log("friend storage name logged in",this.userManager.user),this.friendsStorage=this.userManager.user.userID+"friends",this.storageFriendNotificationNumber=this.userManager.user.userID+"friends",console.log("friend storage name",this.friendsStorage,this.storageFriendNotificationNumber),this.newFriendsNumber=0,this.synchronizer=new s(this),this.getLoadFriends().then(()=>{this.synchronizer.sync()}),this.registerEvents()})}registerEvents(){this.events.subscribe(i.b.UpdateFriends,(e,t)=>{this.updateFriend(e)})}updateFriend(e){let t=new r.a(e);for(let n of this.friends)if(n.userID==t.userID)return!1;this.addToDatabase(t),this.friends.push(t),this.newFriendsNumber++,this.save()}addToDatabase(e){return this.platform.is("cordova")&&this.friendsDatabaseManager.add(e),!0}addViaAjaxBridge(e){this.ajaxBridge.queryPro("addFriend",{email:e},this.userManager.user.getMainAccessToken()).then(e=>{if(null==e.found){let t=new r.a(e);this.friends.push(t),this.save()}else console.log("Friend not found")})}handleMessage(e){let t=JSON.parse(e);if(t.msg){let e=JSON.parse(t.msg);if(e.userID){let t=new r.a(e);if(this.userManager.user.email==t.email)return!1;let n=!1;for(let e of this.friends)e.email==t.email&&(n=!0);if(n)return!0;this.friends.push(t),this.friendsDatabaseManager.add(t),this.save()}}else console.log("Friend not found");console.log(" I received this",t)}add(e){this.socketManager.queryPro("addFriend",{email:e},this,this.userManager.user.getMainAccessToken())}searchBackUp(){this.backUpFriends=[];for(let e of this.friends)this.backUpFriends.push(e)}search(e){this.friends=this.backUpFriends.filter(t=>{if(t.email.includes(e)||t.name.includes(e))return t})}endSearch(){this.friends=this.backUpFriends}getSimpleModelOfFriends(){let e=[];for(let t of this.friends)e.push(t.getSimpleModelOfFriend());return console.log("simple model of friends",e),e}save(){this.platform.is("cordova")||this.storageManager.set(this.friendsStorage,this.getSimpleModelOfFriends())}getLoadFriends(){return new Promise((e,t)=>{this.platform.is("cordova")?this.userManager.isLoggedIn().then(t=>{t&&this.friendsDatabaseManager.getFriends().then(t=>{this.friends=t,e(this.friends)})}):this.userManager.loggedIn().then(t=>{this.storageManager.get(this.friendsStorage).then(t=>{this.friends.length=0;for(let e in t)this.friends.push(new r.a(t[e]));e(this.friends)})})})}initFriends(){for(let e of this.friends);}deleteItem(e){this.deleteFriendLocally(e),this.synchronizer.deleteFriend(e)}deleteFriendLocally(e){let t=this.friends.indexOf(e);this.friends.splice(t,1),this.save()}saveNotificationNumber(){this.storageManager.set(this.storageFriendNotificationNumber,this.notficationsNumber)}clearFriendsNotification(){this.newFriendsNumber=0}getNotificationsNumber(){return this.newFriendsNumber}}},hKQe:function(e,t,n){"use strict";n("HDdC"),n("KOl+")},hOhj:function(e,t,n){"use strict";var r=n("8Y7J"),i=(n("KCVW"),n("XNiG")),s=n("LRne"),o=n("HDdC"),a=n("xgIS");n("3N8a"),n("IjjT");var l=n("VRyK"),c=(n("/uUt"),n("D0XW")),u=n("l7GE"),h=n("ZUHj");class d{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new p(e,this.durationSelector))}}class p extends u.a{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:t}=this;n=t(e)}catch(t){return this.destination.error(t)}const r=Object(h.a)(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:e,hasValue:t,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}notifyNext(e,t,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var f=n("DH7j");function g(e){return!Object(f.a)(e)&&e-parseFloat(e)+1>=0}var m=n("z+Ro");function b(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}function v(e,t=c.a){return n=()=>function(e=0,t,n){let r=-1;return g(t)?r=Number(t)<1?1:Number(t):Object(m.a)(t)&&(n=t),Object(m.a)(n)||(n=c.a),new o.a(t=>{const i=g(e)?e:+e-n.now();return n.schedule(b,i,{index:0,period:r,subscriber:t})})}(e,t),function(e){return e.lift(new d(n))};var n}var y=n("pLZG");n("1G5W"),n("JX91"),n("7o/Q"),n("eIep"),n("quSY"),n("EY2u"),n("z6cu"),n("9ppp"),n("Ylt2");var w=n("/HVE");n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return O}));let _=(()=>{class e{constructor(e,t){this._ngZone=e,this._platform=t,this._scrolled=new i.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){const t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=20){return this._platform.isBrowser?new o.a(t=>{this._globalSubscription||this._addGlobalListener();const n=e>0?this._scrolled.pipe(v(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(s.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){const n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Object(y.a)(e=>!e||n.indexOf(e)>-1))}getAncestorScrollContainers(e){const t=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,e)&&t.push(r)}),t}_scrollableContainsElement(e,t){let n=t.nativeElement,r=e.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Object(a.a)(window.document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return e.ngInjectableDef=Object(r.Qb)({factory:function(){return new e(Object(r.Rb)(r.x),Object(r.Rb)(w.a))},token:e,providedIn:"root"}),e})();class C{}let x=(()=>{class e{constructor(e,t){this._platform=e,t.runOutsideAngular(()=>{this._change=e.isBrowser?Object(l.a)(Object(a.a)(window,"resize"),Object(a.a)(window,"orientationchange")):Object(s.a)(),this._invalidateCache=this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){this._invalidateCache.unsubscribe()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:t,height:n}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+t,height:n,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=document.documentElement,t=e.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||e.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||e.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(v(e)):this._change}_updateViewportSize(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}return e.ngInjectableDef=Object(r.Qb)({factory:function(){return new e(Object(r.Rb)(w.a),Object(r.Rb)(r.x))},token:e,providedIn:"root"}),e})();const O={provide:x,deps:[[new r.y,new r.I,x],w.a,r.x],useFactory:function(e,t,n){return e||new x(t,n)}}},hqw5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=(n("h4wn"),n("J20c"),n("kbZ1"),n("2IJ5"),n("nAxv"),n("+her"));class s{constructor(e,t,n,r,i,s){this.actionSheetCtrl=e,this.friendsManager=t,this.chatsManager=n,this.itemsManager=r,this.consoleDialog=i,this.modalCtrl=s,this.unreadMessagesNumber=0}showOptions(e){return r.a(this,void 0,void 0,(function*(){(yield this.actionSheetCtrl.create({subHeader:"Modify this Item",cssClass:"itemActionSheet",buttons:[{cssClass:"deleteBtn",text:"Delete",role:"destructive",handler:()=>{this.deleteItem()}},{cssClass:"editBtn",text:"Edit",handler:()=>{console.log("Archive clicked")}},{text:"Cancel",role:"cancel",handler:()=>{console.log("Cancel clicked")}}]})).present()}))}deleteItem(){this.friendsManager.deleteItem(this.friend)}getMessagesNumber(){return this.friend.item.chat&&this.friend.item.chat.unreadMessagesNumber>0?this.friend.item.chat.unreadMessagesNumber:""}hasImage(){return null!=this.friend.imageUrl}ionViewDidLoad(){this.initChat().then(e=>{this.unreadMessagesNumber=e.unreadMessagesNumber})}ngAfterViewInit(){this.initChat()}ngAfterContentInit(){this.chatsManager.updateChat(this.friend.item)}registerEvents(){}getFirstChars(){return null!=this.friend.name&&null!=this.friend.lastname?this.friend.name.slice(0,1)+this.friend.lastname.slice(0,1):null!=this.friend.email?this.friend.email.slice(0,1):":)"}initChat(){return this.chatsManager.initChat(this.friend.item)}openChat(){this.initChat().then(e=>r.a(this,void 0,void 0,(function*(){let t=yield this.modalCtrl.create({component:i.a,componentProps:{chat:e,allowDescription:!1}});t.present(),t.onDidDismiss().then(e=>{console.log("heeelp"),this.chatsManager.clearCurrentChat()})})))}}},i9lY:function(e,t,n){"use strict";var r=n("zI0Y"),i=n("xijw"),s=n("pfga");class o extends r.a{constructor(e){super(e),this.examples=[],this.name=e.proposition,this.word=e.word,this.example=new s.a({sentence:e.example})}}n.d(t,"a",(function(){return a}));class a extends r.a{constructor(e){super(e),this.perfect=e.perfect;var t=this;this.conjunctions=[],this.propositions=[],e.conjunctions&&Object.keys(e.conjunctions).forEach((function(n){t.conjunctions.push(new i.a(e.conjunctions[n]))}))}hasConjunction(){return this.conjunctions.length>0}addProposition(e){null!=e&&this.propositions.push(new o(e))}}},iEnR:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("+mLH"),i=(n("2IJ5"),n("6GXZ"),n("GAbP"));class s extends i.a{constructor(e,t,n,r){super(e,t,n,r),this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=r,this.init().then(()=>{this.createUsersDataTable()})}getUserByUserID(e){return new Promise((t,n)=>{this.init().then(()=>{this.databaseObj.executeSql("select * from usersdata where userID='"+e.userID+"'",[]).then(e=>{let n;if(e.rows.length>0)for(var i=0;i<e.rows.length;i++)n=new r.a(e.rows.item(i));else n=new r.a({});t(n)}).catch(e=>{console.log("error table of usersdata",e)})})})}init(){return new Promise((e,t)=>{null!=this.databaseObj?e(this.databaseObj):super.init(this.userManager.user).then(t=>{e(t)})})}createUsersDataTable(){this.databaseObj.executeSql("create table  IF NOT EXISTS usersdata \n    (userID  VARCHAR(32),email VARCHAR(32) UNIQUE,name VARCHAR(32),familyName VARCHAR(32))",[]).then(()=>{console.log("Executed SQLL")}).catch(e=>{console.log(e)})}save(e){this.databaseObj.executeSql('INSERT OR IGNORE INTO usersdata (userID,email,name,familyName) VALUES ("'+e.userID+'","'+e.email+'","'+e.name+'","'+e.familyName+'")').then(e=>{console.log("user has beend saved in usersdata successfully")}).catch(e=>{console.log(" there was  an error adding usersdata to database",e)})}}},iInd:function(e,t,n){"use strict";var r=n("SVse"),i=n("8Y7J"),s=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("HDdC");const c=(()=>{function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})();var u=n("z+Ro"),h=n("DH7j"),d=n("l7GE"),p=n("ZUHj"),f=n("yCtX");const g={};class m{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new b(e,this.resultSelector))}}class b extends d.a{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(g),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let n=0;n<t;n++){const t=e[n];this.add(Object(p.a)(this,t,t,n))}}}notifyComplete(e){0==(this.active-=1)&&this.destination.complete()}notifyNext(e,t,n,r,i){const s=this.values,o=this.toRespond?s[n]===g?--this.toRespond:this.toRespond:0;s[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(e){let t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}var v=n("NXyV"),y=n("XNiG"),w=n("EY2u"),_=n("lJxs"),C=n("0EUg"),x=n("pLZG"),O=n("BFxc"),S=n("7o/Q");function E(e=M){return t=>t.lift(new k(e))}class k{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new T(e,this.errorFactory))}}class T extends S.a{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function M(){return new c}var A=n("xbPD"),I=n("SpAZ");function D(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(x.a)((t,n)=>e(t,n,r)):I.a,Object(O.a)(1),n?Object(A.a)(t):E(()=>new c))}var P=n("JIr8"),N=n("IzEk");function j(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Object(x.a)((t,n)=>e(t,n,r)):I.a,Object(N.a)(1),n?Object(A.a)(t):E(()=>new c))}var R=n("5+tZ");class L{constructor(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}call(e,t){return t.subscribe(new F(e,this.predicate,this.thisArg,this.source))}}class F extends S.a{constructor(e,t,n,r){super(e),this.predicate=t,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(e){this.destination.next(e),this.destination.complete()}_next(e){let t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}var $=n("eIep"),B=n("JX91"),V=n("Kqap"),q=n("bOdf"),z=n("128B"),U=n("vkgz"),H=n("nYR2"),W=n("bHdf"),G=n("cUpR");n.d(t,"C",(function(){return he})),n.d(t,"s",(function(){return xn})),n.d(t,"z",(function(){return Pn})),n.d(t,"u",(function(){return kn})),n.d(t,"A",(function(){return Nn})),n.d(t,"B",(function(){return jn})),n.d(t,"w",(function(){return Mn})),n.d(t,"v",(function(){return Tn})),n.d(t,"y",(function(){return Dn})),n.d(t,"t",(function(){return Sn})),n.d(t,"x",(function(){return In})),n.d(t,"D",(function(){return _n})),n.d(t,"o",(function(){return gn})),n.d(t,"d",(function(){return J})),n.d(t,"l",(function(){return nn})),n.d(t,"m",(function(){return dn})),n.d(t,"k",(function(){return sn})),n.d(t,"i",(function(){return Cn})),n.d(t,"j",(function(){return Rn})),n.d(t,"n",(function(){return En})),n.d(t,"b",(function(){return fn})),n.d(t,"e",(function(){return yn})),n.d(t,"g",(function(){return vn})),n.d(t,"h",(function(){return bn})),n.d(t,"p",(function(){return wn})),n.d(t,"a",(function(){return tt})),n.d(t,"f",(function(){return de})),n.d(t,"q",(function(){return an})),n.d(t,"c",(function(){return Ne})),n.d(t,"r",(function(){return Pe}));class X{constructor(e,t){this.id=e,this.url=t}}class J extends X{constructor(e,t,n="imperative",r=null){super(e,t),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Q extends X{constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Z extends X{constructor(e,t,n){super(e,t),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Y extends X{constructor(e,t,n){super(e,t),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class K extends X{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ee extends X{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class te extends X{constructor(e,t,n,r,i){super(e,t),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ne extends X{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class re extends X{constructor(e,t,n,r){super(e,t),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ie{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class se{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oe{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ae{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class le{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ce{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ue{constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}const de="primary";class pe{constructor(e){this.params=e||{}}has(e){return this.params.hasOwnProperty(e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function fe(e){return new pe(e)}function ge(e){const t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function me(e,t,n){const r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length<e.length))return null;const i={};for(let s=0;s<r.length;s++){const t=r[s],n=e[s];if(t.startsWith(":"))i[t.substring(1)]=n;else if(t!==n.path)return null}return{consumed:e.slice(0,r.length),posParams:i}}class be{constructor(e,t){this.routes=e,this.module=t}}function ve(e,t=""){for(let n=0;n<e.length;n++){const r=e[n];ye(r,we(t,r))}}function ye(e,t){if(!e)throw new Error(`\n      Invalid configuration of route '${t}': 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(e))throw new Error(`Invalid configuration of route '${t}': Array cannot be specified`);if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&e.outlet!==de)throw new Error(`Invalid configuration of route '${t}': a componentless route without children or loadChildren cannot have a named outlet set`);if(e.redirectTo&&e.children)throw new Error(`Invalid configuration of route '${t}': redirectTo and children cannot be used together`);if(e.redirectTo&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': redirectTo and loadChildren cannot be used together`);if(e.children&&e.loadChildren)throw new Error(`Invalid configuration of route '${t}': children and loadChildren cannot be used together`);if(e.redirectTo&&e.component)throw new Error(`Invalid configuration of route '${t}': redirectTo and component cannot be used together`);if(e.path&&e.matcher)throw new Error(`Invalid configuration of route '${t}': path and matcher cannot be used together`);if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error(`Invalid configuration of route '${t}'. One of the following must be provided: component, redirectTo, children or loadChildren`);if(void 0===e.path&&void 0===e.matcher)throw new Error(`Invalid configuration of route '${t}': routes must have either a path or a matcher specified`);if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error(`Invalid configuration of route '${t}': path cannot start with a slash`);if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error(`Invalid configuration of route '{path: "${t}", redirectTo: "${e.redirectTo}"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`);if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error(`Invalid configuration of route '${t}': pathMatch can only be set to 'prefix' or 'full'`);e.children&&ve(e.children,t)}function we(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:`${e}/${t.path}`:"":e}function _e(e){const t=e.children&&e.children.map(_e),n=t?Object.assign({},e,{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&n.outlet!==de&&(n.component=he),n}function Ce(e,t){const n=Object.keys(e),r=Object.keys(t);if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],e[i]!==t[i])return!1;return!0}function xe(e){return Array.prototype.concat.apply([],e)}function Oe(e){return e.length>0?e[e.length-1]:null}function Se(e,t){for(const n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ee(e){return Object(i.yb)(e)?e:Object(i.zb)(e)?Object(o.a)(Promise.resolve(e)):Object(s.a)(e)}function ke(e,t,n){return n?function(e,t){return Ce(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Ie(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>t[n]===e[n])}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,r,i){if(n.segments.length>i.length)return!!Ie(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ie(n.segments,i))return!1;for(const t in r.children){if(!n.children[t])return!1;if(!e(n.children[t],r.children[t]))return!1}return!0}{const e=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Ie(n.segments,e)&&!!n.children[de]&&t(n.children[de],r,s)}}(t,n,n.segments)}(e.root,t.root)}class Te{constructor(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fe(this.queryParams)),this._queryParamMap}toString(){return je.serialize(this)}}class Me{constructor(e,t){this.segments=e,this.children=t,this.parent=null,Se(t,(e,t)=>e.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Re(this)}}class Ae{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=fe(this.parameters)),this._parameterMap}toString(){return qe(this)}}function Ie(e,t){return e.length===t.length&&e.every((e,n)=>e.path===t[n].path)}function De(e,t){let n=[];return Se(e.children,(e,r)=>{r===de&&(n=n.concat(t(e,r)))}),Se(e.children,(e,r)=>{r!==de&&(n=n.concat(t(e,r)))}),n}class Pe{}class Ne{parse(e){const t=new Ge(e);return new Te(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){return`${"/"+function e(t,n){if(!t.hasChildren())return Re(t);if(n){const n=t.children[de]?e(t.children[de],!1):"",r=[];return Se(t.children,(t,n)=>{n!==de&&r.push(`${n}:${e(t,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=De(t,(n,r)=>r===de?[e(t.children[de],!1)]:[`${r}:${e(n,!1)}`]);return`${Re(t)}/(${n.join("//")})`}}(e.root,!0)}${function(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?n.map(e=>`${Fe(t)}=${Fe(e)}`).join("&"):`${Fe(t)}=${Fe(n)}`});return t.length?"?"+t.join("&"):""}(e.queryParams)}${"string"==typeof e.fragment?"#"+encodeURI(e.fragment):""}`}}const je=new Ne;function Re(e){return e.segments.map(e=>qe(e)).join("/")}function Le(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Fe(e){return Le(e).replace(/%3B/gi,";")}function $e(e){return Le(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Be(e){return decodeURIComponent(e)}function Ve(e){return Be(e.replace(/\+/g,"%20"))}function qe(e){return`${$e(e.path)}${t=e.parameters,Object.keys(t).map(e=>`;${$e(e)}=${$e(t[e])}`).join("")}`;var t}const ze=/^[^\/()?;=#]+/;function Ue(e){const t=e.match(ze);return t?t[0]:""}const He=/^[^=?&#]+/,We=/^[^?&#]+/;class Ge{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Me([],{}):new Me([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[de]=new Me(e,t)),n}parseSegment(){const e=Ue(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new Ae(Be(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=Ue(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=Ue(this.remaining);e&&(n=e,this.capture(n))}e[Be(t)]=Be(n)}parseQueryParam(e){const t=function(e){const t=e.match(He);return t?t[0]:""}(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){const e=function(e){const t=e.match(We);return t?t[0]:""}(this.remaining);e&&(n=e,this.capture(n))}const r=Ve(t),i=Ve(n);if(e.hasOwnProperty(r)){let t=e[r];Array.isArray(t)||(t=[t],e[r]=t),t.push(i)}else e[r]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ue(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=de);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[de]:new Me([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class Xe{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=Je(e,this._root);return t?t.children.map(e=>e.value):[]}firstChild(e){const t=Je(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=Qe(e,this._root);return t.length<2?[]:t[t.length-2].children.map(e=>e.value).filter(t=>t!==e)}pathFromRoot(e){return Qe(e,this._root).map(e=>e.value)}}function Je(e,t){if(e===t.value)return t;for(const n of t.children){const t=Je(e,n);if(t)return t}return null}function Qe(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Qe(e,n);if(r.length)return r.unshift(t),r}return[]}class Ze{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ye(e){const t={};return e&&e.children.forEach(e=>t[e.value.outlet]=e),t}class Ke extends Xe{constructor(e,t){super(e),this.snapshot=t,st(this,e)}toString(){return this.snapshot.toString()}}function et(e,t){const n=function(e,t){const n=new rt([],{},{},"",{},de,t,null,e.root,-1,{});return new it("",new Ze(n,[]))}(e,t),r=new a.a([new Ae("",{})]),i=new a.a({}),s=new a.a({}),o=new a.a({}),l=new a.a(""),c=new tt(r,i,o,l,s,de,t,n.root);return c.snapshot=n.root,new Ke(new Ze(c,[]),n)}class tt{constructor(e,t,n,r,i,s,o,a){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,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(_.a)(e=>fe(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(_.a)(e=>fe(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function nt(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const e=n[r],t=n[r-1];if(e.routeConfig&&""===e.routeConfig.path)r--;else{if(t.component)break;r--}}return function(e){return e.reduce((e,t)=>({params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class rt{constructor(e,t,n,r,i,s,o,a,l,c,u){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=s,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=fe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(e=>e.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class it extends Xe{constructor(e,t){super(t),this.url=e,st(this,t)}toString(){return ot(this._root)}}function st(e,t){t.value._routerState=e,t.children.forEach(t=>st(e,t))}function ot(e){const t=e.children.length>0?` { ${e.children.map(ot).join(", ")} } `:"";return`${e.value}${t}`}function at(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ce(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ce(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!Ce(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Ce(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function lt(e,t){var n,r;return Ce(e.params,t.params)&&Ie(n=e.url,r=t.url)&&n.every((e,t)=>Ce(e.parameters,r[t].parameters))&&!(!e.parent!=!t.parent)&&(!e.parent||lt(e.parent,t.parent))}function ct(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ut(e,t,n,r,i){let s={};return r&&Se(r,(e,t)=>{s[t]=Array.isArray(e)?e.map(e=>""+e):""+e}),new Te(n.root===e?t:function e(t,n,r){const i={};return Se(t.children,(t,s)=>{i[s]=t===n?r:e(t,n,r)}),new Me(t.segments,i)}(n.root,e,t),s,i)}class ht{constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&ct(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(e=>"object"==typeof e&&null!=e&&e.outlets);if(r&&r!==Oe(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class dt{constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}function pt(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[de]:""+e}function ft(e,t,n){if(e||(e=new Me([],{})),0===e.segments.length&&e.hasChildren())return gt(e,t,n);const r=function(e,t,n){let r=0,i=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(r>=n.length)return s;const t=e.segments[i],o=pt(n[r]),a=r<n.length-1?n[r+1]:null;if(i>0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!yt(o,a,t))return s;r+=2}else{if(!yt(o,{},t))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){const t=new Me(e.segments.slice(0,r.pathIndex),{});return t.children[de]=new Me(e.segments.slice(r.pathIndex),e.children),gt(t,0,i)}return r.match&&0===i.length?new Me(e.segments,{}):r.match&&!e.hasChildren()?mt(e,t,n):r.match?gt(e,0,i):mt(e,t,n)}function gt(e,t,n){if(0===n.length)return new Me(e.segments,{});{const r=function(e){return"object"!=typeof e[0]?{[de]:e}:void 0===e[0].outlets?{[de]:e}:e[0].outlets}(n),i={};return Se(r,(n,r)=>{null!==n&&(i[r]=ft(e.children[r],t,n))}),Se(e.children,(e,t)=>{void 0===r[t]&&(i[t]=e)}),new Me(e.segments,i)}}function mt(e,t,n){const r=e.segments.slice(0,t);let i=0;for(;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){const e=bt(n[i].outlets);return new Me(r,e)}if(0===i&&ct(n[0])){r.push(new Ae(e.segments[t].path,n[0])),i++;continue}const s=pt(n[i]),o=i<n.length-1?n[i+1]:null;s&&o&&ct(o)?(r.push(new Ae(s,vt(o))),i+=2):(r.push(new Ae(s,{})),i++)}return new Me(r,{})}function bt(e){const t={};return Se(e,(e,n)=>{null!==e&&(t[n]=mt(new Me([],{}),0,e))}),t}function vt(e){const t={};return Se(e,(e,n)=>t[n]=""+e),t}function yt(e,t,n){return e==n.path&&Ce(t,n.parameters)}class wt{constructor(e,t,n,r){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=r}activate(e){const t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),at(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){const r=Ye(t);e.children.forEach(e=>{const t=e.value.outlet;this.deactivateRoutes(e,r[t],n),delete r[t]}),Se(r,(e,t)=>{this.deactivateRouteAndItsChildren(e,n)})}deactivateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(e,t,i.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const n=t.getContext(e.value.outlet);if(n&&n.outlet){const t=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:t,route:e,contexts:r})}}deactivateRouteAndOutlet(e,t){const n=t.getContext(e.value.outlet);if(n){const r=Ye(e),i=e.value.component?n.children:t;Se(r,(e,t)=>this.deactivateRouteAndItsChildren(e,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(e,t,n){const r=Ye(t);e.children.forEach(e=>{this.activateRoutes(e,r[e.value.outlet],n),this.forwardEvent(new ce(e.value.snapshot))}),e.children.length&&this.forwardEvent(new ae(e.value.snapshot))}activateRoutes(e,t,n){const r=e.value,i=t?t.value:null;if(at(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,t,i.children)}else this.activateChildRoutes(e,t,n);else if(r.component){const t=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const e=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),t.children.onOutletReAttached(e.contexts),t.attachRef=e.componentRef,t.route=e.route.value,t.outlet&&t.outlet.attach(e.componentRef,e.route.value),_t(e.route)}else{const n=function(e){for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;t.attachRef=null,t.route=r,t.resolver=i,t.outlet&&t.outlet.activateWith(r,i),this.activateChildRoutes(e,null,t.children)}}else this.activateChildRoutes(e,null,n)}}function _t(e){at(e.value),e.children.forEach(_t)}function Ct(e){return"function"==typeof e}function xt(e){return e instanceof Te}class Ot{constructor(e){this.segmentGroup=e||null}}class St{constructor(e){this.urlTree=e}}function Et(e){return new l.a(t=>t.error(new Ot(e)))}function kt(e){return new l.a(t=>t.error(new St(e)))}function Tt(e){return new l.a(t=>t.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${e}'`)))}class Mt{constructor(e,t,n,r,s){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(i.v)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,de).pipe(Object(_.a)(e=>this.createUrlTree(e,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(P.a)(e=>{if(e instanceof St)return this.allowRedirects=!1,this.match(e.urlTree);if(e instanceof Ot)throw this.noMatchError(e);throw e}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,de).pipe(Object(_.a)(t=>this.createUrlTree(t,e.queryParams,e.fragment))).pipe(Object(P.a)(e=>{if(e instanceof Ot)throw this.noMatchError(e);throw e}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,n){const r=e.segments.length>0?new Me([],{[de]:e}):e;return new Te(r,t,n)}expandSegmentGroup(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(_.a)(e=>new Me([],e))):this.expandSegment(e,n,t,n.segments,r,!0)}expandChildren(e,t,n){return function(e,t){if(0===Object.keys(e).length)return Object(s.a)({});const n=[],r=[],i={};return Se(e,(e,s)=>{const o=t(s,e).pipe(Object(_.a)(e=>i[s]=e));s===de?n.push(o):r.push(o)}),s.a.apply(null,n.concat(r)).pipe(Object(C.a)(),D(),Object(_.a)(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(e,t,r,n))}expandSegment(e,t,n,r,i,o){return Object(s.a)(...n).pipe(Object(_.a)(a=>this.expandSegmentAgainstRoute(e,t,n,a,r,i,o).pipe(Object(P.a)(e=>{if(e instanceof Ot)return Object(s.a)(null);throw e}))),Object(C.a)(),j(e=>!!e),Object(P.a)((e,n)=>{if(e instanceof c||"EmptyError"===e.name){if(this.noLeftoversInUrl(t,r,i))return Object(s.a)(new Me([],{}));throw new Ot(t)}throw e}))}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}expandSegmentAgainstRoute(e,t,n,r,i,s,o){return Pt(r)!==s?Et(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s):Et(t)}expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?kt(i):this.lineralizeSegments(n,i).pipe(Object(R.a)(n=>{const i=new Me(n,{});return this.expandSegment(e,i,t,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,s){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:c}=At(t,r,i);if(!o)return Et(t);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?kt(u):this.lineralizeSegments(r,u).pipe(Object(R.a)(r=>this.expandSegment(e,t,n,r.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,t,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(_.a)(e=>(n._loadedConfig=e,new Me(r,{})))):Object(s.a)(new Me(r,{}));const{matched:i,consumedSegments:o,lastChild:a}=At(t,n,r);if(!i)return Et(t);const l=r.slice(a);return this.getChildConfig(e,n,r).pipe(Object(R.a)(e=>{const n=e.module,r=e.routes,{segmentGroup:i,slicedSegments:a}=function(e,t,n,r){return n.length>0&&function(e,t,n){return n.some(n=>Dt(e,t,n)&&Pt(n)!==de)}(e,n,r)?{segmentGroup:It(new Me(t,function(e,t){const n={};n[de]=t;for(const r of e)""===r.path&&Pt(r)!==de&&(n[Pt(r)]=new Me([],{}));return n}(r,new Me(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some(n=>Dt(e,t,n))}(e,n,r)?{segmentGroup:It(new Me(e.segments,function(e,t,n,r){const i={};for(const s of n)Dt(e,t,s)&&!r[Pt(s)]&&(i[Pt(s)]=new Me([],{}));return Object.assign({},r,i)}(e,n,r,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,o,l,r);return 0===a.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(Object(_.a)(e=>new Me(o,e))):0===r.length&&0===a.length?Object(s.a)(new Me(o,{})):this.expandSegment(n,i,r,a,de,!0).pipe(Object(_.a)(e=>new Me(o.concat(e.segments),e.children)))}))}getChildConfig(e,t,n){return t.children?Object(s.a)(new be(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(s.a)(t._loadedConfig):function(e,t,n){const r=t.canLoad;return r&&0!==r.length?Object(o.a)(r).pipe(Object(_.a)(r=>{const i=e.get(r);let s;if(function(e){return e&&Ct(e.canLoad)}(i))s=i.canLoad(t,n);else{if(!Ct(i))throw new Error("Invalid CanLoad guard");s=i(t,n)}return Ee(s)})).pipe(Object(C.a)(),(i=e=>!0===e,e=>e.lift(new L(i,void 0,e)))):Object(s.a)(!0);var i}(e.injector,t,n).pipe(Object(R.a)(n=>n?this.configLoader.load(e.injector,t).pipe(Object(_.a)(e=>(t._loadedConfig=e,e))):function(e){return new l.a(t=>t.error(ge(`Cannot load children because the guard of the route "path: '${e.path}'" returned false`)))}(t))):Object(s.a)(new be([],e))}lineralizeSegments(e,t){let n=[],r=t.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(s.a)(n);if(r.numberOfChildren>1||!r.children[de])return Tt(e.redirectTo);r=r.children[de]}}applyRedirectCommands(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}applyRedirectCreatreUrlTree(e,t,n,r){const i=this.createSegmentGroup(e,t.root,n,r);return new Te(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const n={};return Se(e,(e,r)=>{if("string"==typeof e&&e.startsWith(":")){const i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}createSegmentGroup(e,t,n,r){const i=this.createSegments(e,t.segments,n,r);let s={};return Se(t.children,(t,i)=>{s[i]=this.createSegmentGroup(e,t,n,r)}),new Me(i,s)}createSegments(e,t,n,r){return t.map(t=>t.path.startsWith(":")?this.findPosParam(e,t,r):this.findOrReturn(t,n))}findPosParam(e,t,n){const r=n[t.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return r}findOrReturn(e,t){let n=0;for(const r of t){if(r.path===e.path)return t.splice(n),r;n++}return e}}function At(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(t.matcher||me)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function It(e){if(1===e.numberOfChildren&&e.children[de]){const t=e.children[de];return new Me(e.segments.concat(t.segments),t.children)}return e}function Dt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Pt(e){return e.outlet||de}class Nt{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class jt{constructor(e,t){this.component=e,this.route=t}}function Rt(e,t,n){const r=e._root;return function e(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=Ye(n);return t.children.forEach(t=>{!function(t,n,r,i,s={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,l=r?r.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Ie(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ie(e.url,t.url)||!Ce(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!lt(e,t)||!Ce(e.queryParams,t.queryParams);case"paramsChange":default:return!lt(e,t)}}(a,o,o.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Nt(i)):(o.data=a.data,o._resolvedData=a._resolvedData),e(t,n,o.component?l?l.children:null:r,i,s),c&&s.canDeactivateChecks.push(new jt(l&&l.outlet&&l.outlet.component||null,a))}else a&&Ft(n,l,s),s.canActivateChecks.push(new Nt(i)),e(t,null,o.component?l?l.children:null:r,i,s)}(t,o[t.value.outlet],r,i.concat([t.value]),s),delete o[t.value.outlet]}),Se(o,(e,t)=>Ft(e,r.getContext(t),s)),s}(r,t?t._root:null,n,[r.value])}function Lt(e,t,n){const r=function(e){if(!e)return null;for(let t=e.parent;t;t=t.parent){const e=t.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function Ft(e,t,n){const r=Ye(e),i=e.value;Se(r,(e,r)=>{Ft(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new jt(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}const $t=Symbol("INITIAL_VALUE");function Bt(){return Object($.a)(e=>function(...e){let t=null,n=null;return Object(u.a)(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(t=e.pop()),1===e.length&&Object(h.a)(e[0])&&(e=e[0]),Object(f.a)(e,n).lift(new m(t))}(...e.map(e=>e.pipe(Object(N.a)(1),Object(B.a)($t)))).pipe(Object(V.a)((e,t)=>{let n=!1;return t.reduce((e,r,i)=>{if(e!==$t)return e;if(r===$t&&(n=!0),!n){if(!1===r)return r;if(i===t.length-1||xt(r))return r}return e},e)},$t),Object(x.a)(e=>e!==$t),Object(_.a)(e=>xt(e)?e:!0===e),Object(N.a)(1)))}function Vt(e,t){return null!==e&&t&&t(new le(e)),Object(s.a)(!0)}function qt(e,t){return null!==e&&t&&t(new oe(e)),Object(s.a)(!0)}function zt(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(s.a)(!0);const i=r.map(r=>Object(v.a)(()=>{const i=Lt(r,t,n);let s;if(function(e){return e&&Ct(e.canActivate)}(i))s=Ee(i.canActivate(t,e));else{if(!Ct(i))throw new Error("Invalid CanActivate guard");s=Ee(i(t,e))}return s.pipe(j())}));return Object(s.a)(i).pipe(Bt())}function Ut(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(e=>function(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)).filter(e=>null!==e).map(t=>Object(v.a)(()=>{const i=t.guards.map(i=>{const s=Lt(i,t.node,n);let o;if(function(e){return e&&Ct(e.canActivateChild)}(s))o=Ee(s.canActivateChild(r,e));else{if(!Ct(s))throw new Error("Invalid CanActivateChild guard");o=Ee(s(r,e))}return o.pipe(j())});return Object(s.a)(i).pipe(Bt())}));return Object(s.a)(i).pipe(Bt())}class Ht{}class Wt{constructor(e,t,n,r,i,s){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){try{const e=Jt(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,de),n=new rt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},de,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ze(n,t),i=new it(this.url,r);return this.inheritParamsAndData(i._root),Object(s.a)(i)}catch(e){return new l.a(t=>t.error(e))}}inheritParamsAndData(e){const t=e.value,n=nt(t,this.paramsInheritanceStrategy);t.params=Object.freeze(n.params),t.data=Object.freeze(n.data),e.children.forEach(e=>this.inheritParamsAndData(e))}processSegmentGroup(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}processChildren(e,t){const n=De(t,(t,n)=>this.processSegmentGroup(e,t,n));return function(e){const t={};e.forEach(e=>{const n=t[e.value.outlet];if(n){const t=n.url.map(e=>e.toString()).join("/"),r=e.value.url.map(e=>e.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${t}' and '${r}'.`)}t[e.value.outlet]=e.value})}(n),n.sort((e,t)=>e.value.outlet===de?-1:t.value.outlet===de?1:e.value.outlet.localeCompare(t.value.outlet)),n}processSegment(e,t,n,r){for(const s of e)try{return this.processSegmentAgainstRoute(s,t,n,r)}catch(i){if(!(i instanceof Ht))throw i}if(this.noLeftoversInUrl(t,n,r))return[];throw new Ht}noLeftoversInUrl(e,t,n){return 0===t.length&&!e.children[n]}processSegmentAgainstRoute(e,t,n,r){if(e.redirectTo)throw new Ht;if((e.outlet||de)!==r)throw new Ht;let i,s=[],o=[];if("**"===e.path){const s=n.length>0?Oe(n).parameters:{};i=new rt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yt(e),r,e.component,e,Gt(t),Xt(t)+n.length,Kt(e))}else{const a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Ht;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(t.matcher||me)(n,e,t);if(!r)throw new Ht;const i={};Se(r.posParams,(e,t)=>{i[t]=e.path});const s=r.consumed.length>0?Object.assign({},i,r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s}}(t,e,n);s=a.consumedSegments,o=n.slice(a.lastChild),i=new rt(s,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Yt(e),r,e.component,e,Gt(t),Xt(t)+s.length,Kt(e))}const a=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Jt(t,s,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const e=this.processChildren(a,l);return[new Ze(i,e)]}if(0===a.length&&0===c.length)return[new Ze(i,[])];const u=this.processSegment(a,l,c,de);return[new Ze(i,u)]}}function Gt(e){let t=e;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Xt(e){let t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;for(;t._sourceSegment;)t=t._sourceSegment,n+=t._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Jt(e,t,n,r,i){if(n.length>0&&function(e,t,n){return n.some(n=>Qt(e,t,n)&&Zt(n)!==de)}(e,n,r)){const i=new Me(t,function(e,t,n,r){const i={};i[de]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(const s of n)if(""===s.path&&Zt(s)!==de){const n=new Me([],{});n._sourceSegment=e,n._segmentIndexShift=t.length,i[Zt(s)]=n}return i}(e,t,r,new Me(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(n=>Qt(e,t,n))}(e,n,r)){const s=new Me(e.segments,function(e,t,n,r,i,s){const o={};for(const a of r)if(Qt(e,n,a)&&!i[Zt(a)]){const n=new Me([],{});n._sourceSegment=e,n._segmentIndexShift="legacy"===s?e.segments.length:t.length,o[Zt(a)]=n}return Object.assign({},i,o)}(e,t,n,r,e.children,i));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}const s=new Me(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function Qt(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zt(e){return e.outlet||de}function Yt(e){return e.data||{}}function Kt(e){return e.resolve||{}}function en(e,t,n,r){const i=Lt(e,t,r);return Ee(i.resolve?i.resolve(t,n):i(t,n))}function tn(e){return function(t){return t.pipe(Object($.a)(t=>{const n=e(t);return n?Object(o.a)(n).pipe(Object(_.a)(()=>t)):Object(o.a)([t])}))}}class nn{}class rn{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}const sn=new i.o("ROUTES");class on{constructor(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}load(e,t){return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(_.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(t);const r=n.create(e);return new be(xe(r.injector.get(sn)).map(_e),r)}))}loadModuleFactory(e){return"string"==typeof e?Object(o.a)(this.loader.load(e)):Ee(e()).pipe(Object(R.a)(e=>e instanceof i.t?Object(s.a)(e):Object(o.a)(this.compiler.compileModuleAsync(e))))}}class an{}class ln{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function cn(e){throw e}function un(e,t,n){return t.parse("/")}function hn(e,t){return Object(s.a)(null)}class dn{constructor(e,t,n,r,s,o,l,c){this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new y.a,this.errorHandler=cn,this.malformedUriErrorHandler=un,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:hn,afterPreactivation:hn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new rn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=s.get(i.v),this.console=s.get(i.bb);const u=s.get(i.x);this.isNgZoneEnabled=u instanceof i.x,this.resetConfig(c),this.currentUrlTree=new Te(new Me([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new on(o,l,e=>this.triggerEvent(new ie(e)),e=>this.triggerEvent(new se(e))),this.routerState=et(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(e){const t=this.events;return e.pipe(Object(x.a)(e=>0!==e.id),Object(_.a)(e=>Object.assign({},e,{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl)})),Object($.a)(e=>{let n=!1,r=!1;return Object(s.a)(e).pipe(Object(U.a)(e=>{this.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign({},this.lastSuccessfulNavigation,{previousNavigation:null}):null}}),Object($.a)(e=>{const n=!this.navigated||e.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(s.a)(e).pipe(Object($.a)(e=>{const n=this.transitions.getValue();return t.next(new J(e.id,this.serializeUrl(e.extractedUrl),e.source,e.restoredState)),n!==this.transitions.getValue()?w.a:[e]}),Object($.a)(e=>Promise.resolve(e)),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,a=this.config,function(e){return e.pipe(Object($.a)(e=>function(e,t,n,r,i){return new Mt(e,t,n,r,i).apply()}(r,i,o,e.extractedUrl,a).pipe(Object(_.a)(t=>Object.assign({},e,{urlAfterRedirects:t})))))}),Object(U.a)(e=>{this.currentNavigation=Object.assign({},this.currentNavigation,{finalUrl:e.urlAfterRedirects})}),function(e,t,n,r,i){return function(s){return s.pipe(Object(R.a)(s=>function(e,t,n,r,i="emptyOnly",s="legacy"){return new Wt(e,t,n,r,i,s).recognize()}(e,t,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(Object(_.a)(e=>Object.assign({},s,{targetSnapshot:e})))))}}(this.rootComponentType,this.config,e=>this.serializeUrl(e),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(U.a)(e=>{"eager"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),Object(U.a)(e=>{const n=new K(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.next(n)}));var r,i,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:a}=e,l=new J(n,this.serializeUrl(r),i,o);t.next(l);const c=et(r,this.rootComponentType).snapshot;return Object(s.a)(Object.assign({},e,{targetSnapshot:c,urlAfterRedirects:r,extras:Object.assign({},a,{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=e.rawUrl,this.browserUrlTree=e.urlAfterRedirects,e.resolve(null),w.a}),tn(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.beforePreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(U.a)(e=>{const t=new ee(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),Object(_.a)(e=>Object.assign({},e,{guards:Rt(e.targetSnapshot,e.currentSnapshot,this.rootContexts)})),function(e,t){return function(n){return n.pipe(Object(R.a)(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(s.a)(Object.assign({},n,{guardsResult:!0})):function(e,t,n,r){return Object(o.a)(e).pipe(Object(R.a)(e=>function(e,t,n,r,i){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(s.a)(!0);const a=o.map(s=>{const o=Lt(s,t,i);let a;if(function(e){return e&&Ct(e.canDeactivate)}(o))a=Ee(o.canDeactivate(e,t,n,r));else{if(!Ct(o))throw new Error("Invalid CanDeactivate guard");a=Ee(o(e,t,n,r))}return a.pipe(j())});return Object(s.a)(a).pipe(Bt())}(e.component,e.route,n,t,r)),j(e=>!0!==e,!0))}(l,r,i,e).pipe(Object(R.a)(n=>n&&"boolean"==typeof n?function(e,t,n,r){return Object(o.a)(t).pipe(Object(q.a)(t=>Object(o.a)([qt(t.route.parent,r),Vt(t.route,r),Ut(e,t.path,n),zt(e,t.route,n)]).pipe(Object(C.a)(),j(e=>!0!==e,!0))),j(e=>!0!==e,!0))}(r,a,e,t):Object(s.a)(n)),Object(_.a)(e=>Object.assign({},n,{guardsResult:e})))}))}}(this.ngModule.injector,e=>this.triggerEvent(e)),Object(U.a)(e=>{if(xt(e.guardsResult)){const t=ge(`Redirecting to "${this.serializeUrl(e.guardsResult)}"`);throw t.url=e.guardsResult,t}}),Object(U.a)(e=>{const t=new te(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);this.triggerEvent(t)}),Object(x.a)(e=>{if(!e.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Z(e.id,this.serializeUrl(e.extractedUrl),"");return t.next(n),e.resolve(!1),!1}return!0}),tn(e=>{if(e.guards.canActivateChecks.length)return Object(s.a)(e).pipe(Object(U.a)(e=>{const t=new ne(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}),(t=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(e){return e.pipe(Object(R.a)(e=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=e;return i.length?Object(o.a)(i).pipe(Object(q.a)(e=>function(e,t,n,r){return function(e,t,n,r){const i=Object.keys(e);if(0===i.length)return Object(s.a)({});if(1===i.length){const s=i[0];return en(e[s],t,n,r).pipe(Object(_.a)(e=>({[s]:e})))}const a={};return Object(o.a)(i).pipe(Object(R.a)(i=>en(e[i],t,n,r).pipe(Object(_.a)(e=>(a[i]=e,e))))).pipe(D(),Object(_.a)(()=>a))}(e._resolve,e,t,r).pipe(Object(_.a)(t=>(e._resolvedData=t,e.data=Object.assign({},e.data,nt(e,n).resolve),null)))}(e.route,r,t,n)),Object(z.a)((e,t)=>e),Object(_.a)(t=>e)):Object(s.a)(e)}))}),Object(U.a)(e=>{const t=new re(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);this.triggerEvent(t)}));var t,n}),tn(e=>{const{targetSnapshot:t,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:s,replaceUrl:o}}=e;return this.hooks.afterPreactivation(t,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!s,replaceUrl:!!o})}),Object(_.a)(e=>{const t=function(e,t,n){const r=function e(t,n,r){if(r&&t.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const s=function(t,n,r){return n.children.map(n=>{for(const i of r.children)if(t.shouldReuseRoute(i.value.snapshot,n.value))return e(t,n,i);return e(t,n)})}(t,n,r);return new Ze(i,s)}{const r=t.retrieve(n.value);if(r){const e=r.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(let r=0;r<t.children.length;++r)e(t.children[r],n.children[r])}(n,e),e}{const r=new tt(new a.a((i=n.value).url),new a.a(i.params),new a.a(i.queryParams),new a.a(i.fragment),new a.a(i.data),i.outlet,i.component,i),s=n.children.map(n=>e(t,n));return new Ze(r,s)}}var i}(e,t._root,n?n._root:void 0);return new Ke(r,t)}(this.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign({},e,{targetRouterState:t})}),Object(U.a)(e=>{this.currentUrlTree=e.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl),this.routerState=e.targetRouterState,"deferred"===this.urlUpdateStrategy&&(e.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),this.browserUrlTree=e.urlAfterRedirects)}),(i=this.rootContexts,l=this.routeReuseStrategy,c=e=>this.triggerEvent(e),Object(_.a)(e=>(new wt(l,e.targetRouterState,e.currentRouterState,c).activate(i),e))),Object(U.a)({next(){n=!0},complete(){n=!0}}),Object(H.a)(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Z(e.id,this.serializeUrl(e.extractedUrl),`Navigation ID ${e.id} is not equal to the current navigation id ${this.navigationId}`);t.next(n),e.resolve(!1)}this.currentNavigation=null}),Object(P.a)(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=xt(n.url);r||(this.navigated=!0,this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));const i=new Z(e.id,this.serializeUrl(e.extractedUrl),n.message);t.next(i),e.resolve(!1),r&&this.navigateByUrl(n.url)}else{this.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);const r=new Y(e.id,this.serializeUrl(e.extractedUrl),n);t.next(r);try{e.resolve(this.errorHandler(n))}catch(s){e.reject(s)}}var i;return w.a}));var i,l,c}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}getTransition(){const e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}setTransition(e){this.transitions.next(Object.assign({},this.getTransition(),e))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{let t=this.parseUrl(e.url);const n="popstate"===e.type?"popstate":"hashchange",r=e.state&&e.state.navigationId?e.state:null;setTimeout(()=>{this.scheduleNavigation(t,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){ve(e),this.config=e.map(_e),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(e,t={}){const{relativeTo:n,queryParams:r,fragment:s,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:l}=t;Object(i.W)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let h=null;if(a)switch(a){case"merge":h=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(e,t,n,r,i){if(0===n.length)return ut(t.root,t.root,t,r,i);const s=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ht(!0,0,e);let t=0,n=!1;const r=e.reduce((e,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const t={};return Se(r.outlets,(e,n)=>{t[n]="string"==typeof e?e.split("/"):e}),[...e,{outlets:t}]}if(r.segmentPath)return[...e,r.segmentPath]}return"string"!=typeof r?[...e,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?t++:""!=r&&e.push(r))}),e):[...e,r]},[]);return new ht(n,t,r)}(n);if(s.toRoot())return ut(t.root,new Me([],{}),t,r,i);const o=function(e,t,n){if(e.isAbsolute)return new dt(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new dt(n.snapshot._urlSegment,!0,0);const r=ct(e.commands[0])?0:1;return function(e,t,n){let r=e,i=t,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new dt(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(s,t,e),a=o.processChildren?gt(o.segmentGroup,o.index,s.commands):ft(o.segmentGroup,o.index,s.commands);return ut(o.segmentGroup,a,t,r,i)}(c,this.currentUrlTree,e,h,u)}navigateByUrl(e,t={skipLocationChange:!1}){Object(i.W)()&&this.isNgZoneEnabled&&!i.x.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=xt(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}navigate(e,t={skipLocationChange:!1}){return function(e){for(let t=0;t<e.length;t++){const n=e[t];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${t}`)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}isActive(e,t){if(xt(e))return ke(this.currentUrlTree,e,t);const n=this.parseUrl(e);return ke(this.currentUrlTree,n,t)}removeEmptyProps(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return null!=r&&(t[n]=r),t},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.events.next(new Q(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,e.resolve(!0)},e=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(e,t,n,r){const i=this.getTransition();if(i&&"imperative"!==t&&"imperative"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"hashchange"==t&&"popstate"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(i&&"popstate"==t&&"hashchange"===i.source&&i.rawUrl.toString()===e.toString())return Promise.resolve(!0);let s=null,o=null;const a=new Promise((e,t)=>{s=e,o=t}),l=++this.navigationId;return this.setTransition({id:l,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:s,reject:o,promise:a,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),a.catch(e=>Promise.reject(e))}setBrowserUrl(e,t,n,r){const i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign({},r,{navigationId:n})):this.location.go(i,"",Object.assign({},r,{navigationId:n}))}resetStateAndUrl(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}class pn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new fn,this.attachRef=null}}class fn{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new pn,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class gn{constructor(e,t,n,r,s){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.name=r||de,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;const n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new mn(e,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}class mn{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===tt?this.route:e===fn?this.childContexts:this.parent.get(e,t)}}class bn{}class vn{preload(e,t){return t().pipe(Object(P.a)(()=>Object(s.a)(null)))}}class yn{preload(e,t){return Object(s.a)(null)}}class wn{constructor(e,t,n,r,i){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=new on(t,n,t=>e.triggerEvent(new ie(t)),t=>e.triggerEvent(new se(t)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(x.a)(e=>e instanceof Q),Object(q.a)(()=>this.preload())).subscribe(()=>{})}preload(){const e=this.injector.get(i.v);return this.processRoutes(e,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(e,t){const n=[];for(const r of t)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const e=r._loadedConfig;n.push(this.processRoutes(e.module,e.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children));return Object(o.a)(n).pipe(Object(W.a)(),Object(_.a)(e=>{}))}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>this.loader.load(e.injector,t).pipe(Object(R.a)(e=>(t._loadedConfig=e,this.processRoutes(e.module,e.routes)))))}}class _n{constructor(e,t,n={}){this.router=e,this.viewportScroller=t,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(e=>{e instanceof J?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Q&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof ue&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.router.triggerEvent(new ue(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}const Cn=new i.o("ROUTER_CONFIGURATION"),xn=new i.o("ROUTER_FORROOT_GUARD"),On=[r.g,{provide:Pe,useClass:Ne},{provide:dn,useFactory:In,deps:[i.g,Pe,fn,r.g,i.p,i.u,i.i,sn,Cn,[an,new i.y],[nn,new i.y]]},fn,{provide:tt,useFactory:Dn,deps:[dn]},{provide:i.u,useClass:i.J},wn,yn,vn,{provide:Cn,useValue:{enableTracing:!1}}];function Sn(){return new i.w("Router",dn)}class En{constructor(e,t){}static forRoot(e,t){return{ngModule:En,providers:[On,An(e),{provide:xn,useFactory:Mn,deps:[[dn,new i.y,new i.I]]},{provide:Cn,useValue:t||{}},{provide:r.h,useFactory:Tn,deps:[r.p,[new i.n(r.a),new i.y],Cn]},{provide:_n,useFactory:kn,deps:[dn,r.r,Cn]},{provide:bn,useExisting:t&&t.preloadingStrategy?t.preloadingStrategy:yn},{provide:i.w,multi:!0,useFactory:Sn},[Pn,{provide:i.d,multi:!0,useFactory:Nn,deps:[Pn]},{provide:Rn,useFactory:jn,deps:[Pn]},{provide:i.b,multi:!0,useExisting:Rn}]]}}static forChild(e){return{ngModule:En,providers:[An(e)]}}}function kn(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new _n(e,t,n)}function Tn(e,t,n={}){return n.useHash?new r.e(e,t):new r.o(e,t)}function Mn(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function An(e){return[{provide:i.a,multi:!0,useValue:e},{provide:sn,multi:!0,useValue:e}]}function In(e,t,n,r,i,s,o,a,l={},c,u){const h=new dn(null,t,n,r,i,s,o,xe(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),l.errorHandler&&(h.errorHandler=l.errorHandler),l.malformedUriErrorHandler&&(h.malformedUriErrorHandler=l.malformedUriErrorHandler),l.enableTracing){const e=Object(G.r)();h.events.subscribe(t=>{e.logGroup("Router Event: "+t.constructor.name),e.log(t.toString()),e.log(t),e.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}function Dn(e){return e.routerState.root}class Pn{constructor(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new y.a}appInitializer(){return this.injector.get(r.f,Promise.resolve(null)).then(()=>{let e=null;const t=new Promise(t=>e=t),n=this.injector.get(dn),r=this.injector.get(Cn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))e(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),e(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(s.a)(null):(this.initNavigation=!0,e(!0),this.resultOfPreactivationDone),n.initialNavigation()}return t})}bootstrapListener(e){const t=this.injector.get(Cn),n=this.injector.get(wn),r=this.injector.get(_n),s=this.injector.get(dn),o=this.injector.get(i.g);e===o.components[0]&&(this.isLegacyEnabled(t)?s.initialNavigation():this.isLegacyDisabled(t)&&s.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),s.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}isLegacyDisabled(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}function Nn(e){return e.appInitializer.bind(e)}function jn(e){return e.bootstrapListener.bind(e)}const Rn=new i.o("Router Initializer")},"iV+E":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),s=n("sZkV"),o=n("SVse");n("hqw5"),n("h4wn"),n("J20c"),n("kbZ1"),n("2IJ5"),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return h}));var a=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{height:11vh}[_nghost-%COMP%]   ion-item.item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:15px 0}[_nghost-%COMP%]   ion-item.item[_ngcontent-%COMP%]   p.avatarName[_ngcontent-%COMP%]{border-radius:100%;font-size:30px;font-weight:700;text-align:center;line-height:50px;height:50px;width:50px;background:#fff;color:#000!important}[_nghost-%COMP%]   ion-item.item[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]   ion-avatar[_ngcontent-%COMP%]{width:50px;height:50px}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{flex-grow:7}[_nghost-%COMP%]   ion-badge.badge[_ngcontent-%COMP%]{background-color:#3bec72;font-size:small}"]],data:{}});function l(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,(function(e,t){e(t,0,0,r.wb(1,"",t.component.friend.imageUrl,""))}))}function c(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"p",[["class","avatarName"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" ",""]))],null,(function(e,t){e(t,1,0,t.component.getFirstChars())}))}function u(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,22,"ion-item",[],null,[[null,"press"]],(function(e,t,n){var r=!0;return"press"===t&&(r=!1!==e.component.showOptions(n)&&r),r}),i.jb,i.u)),r.rb(1,49152,null,0,s.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,20,"ion-row",[],null,null,null,i.qb,i.B)),r.rb(3,49152,null,0,s.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,7,"ion-col",[],null,null,null,i.X,i.i)),r.rb(5,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,5,"ion-avatar",[["item-start",""]],null,null,null,i.Q,i.b)),r.rb(7,49152,null,0,s.g,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,l)),r.rb(9,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,c)),r.rb(11,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(12,0,null,0,5,"ion-col",[["class","title"]],null,null,null,i.X,i.i)),r.rb(13,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(14,0,null,0,1,"h5",[],null,null,null,null,null)),(e()(),r.Lb(15,null,[" ",""])),(e()(),r.sb(16,0,null,0,1,"h6",[],null,null,null,null,null)),(e()(),r.Lb(17,null,[" "," "])),(e()(),r.sb(18,0,null,0,4,"ion-col",[],null,null,null,i.X,i.i)),r.rb(19,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(20,0,null,0,2,"ion-badge",[],null,null,null,i.R,i.c)),r.rb(21,49152,null,0,s.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(22,0,["",""]))],(function(e,t){var n=t.component;e(t,9,0,n.hasImage()),e(t,11,0,!n.hasImage())}),(function(e,t){var n=t.component;e(t,15,0,n.friend.name),e(t,17,0,n.friend.email),e(t,22,0,n.getMessagesNumber())}))}function h(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,u)),r.rb(1,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){e(t,1,0,t.component.friend.userID)}),null)}},iunF:function(e,t,n){"use strict";var r=n("sUqe");class i extends class{constructor(e){this._parameters={},null==e&&(e={_parameters:{}}),this.init(e)}init(e){this._parameters=e._parameters}setParam(e,t){this._parameters[e]=t}setBayaPlus(e){this.setParam("bayaPlus",e)}isBayaPlus(){return this.getParam("bayaPlus")}getParam(e){return this._parameters[e]}}{constructor(e){super(e),this.hasSeenMoreContent="hasSeenMoreContent"}hasSeenContent(){return this.getParam(this.hasSeenContent)}setSeenMoreContent(e=!0){this.setParam(this.hasSeenContent,e)}}n("EGUZ"),n("ZZmf");var s=n("2Vo4");n.d(t,"a",(function(){return o}));class o{constructor(e,t,n){this.http=e,this.storageManager=t,this.notificationsManager=n,this.currentLang="en",this.theme=new s.a(r.g.light)}setActiveTheme(e){this.theme.next(e)}getActiveTheme(){return this.theme.asObservable()}isRtl(){return"fa"==this.currentLang}get currentLanguage(){return this.currentLang}setCurrentLang(e){this.currentLang=e}disableNotifications(){this.storageManager.set("notificationEnable",!1),this.notificationsManager.disablePush()}getNotificationsStatus(){return this.storageManager.get("notificationEnable")}getAutoNightMode(){return this.storageManager.get("autoNightMode")}getBubbleCopyStatus(){return this.storageManager.get("bubbleCopyEnable")}setBubbleCopyStatus(e){console.log("bubble copy status",e),this.storageManager.set("bubbleCopyEnable",e)}setAutoNightMode(e){this.storageManager.set("autoNightMode",e)}getPrimarySettings(){return new Promise((e,t)=>{null!=this._primarySettings?e(this._primarySettings):this.storageManager.get("primarySettings").then(t=>{this._primarySettings=new i(t),e(this._primarySettings)})})}savePrimarySetting(){this.storageManager.set("primarySettings",this._primarySettings)}}},jZKg:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("HDdC"),i=n("quSY");function s(e,t){return new r.a(n=>{const r=new i.a;let s=0;return r.add(t.schedule((function(){s!==e.length?(n.next(e[s++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}},ja1e:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("SVse"),s=n("MKJQ"),o=n("sZkV"),a=n("TSSN"),l=n("Ff54"),c=n("LKtr"),u=n("h4wn"),h=n("kbZ1"),d=n("2IJ5");n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return m}));var p=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{display:flex;width:100%;background:linear-gradient(to top,#7d7e7d 0,#0e0e0e 100%);bottom:0;color:rgba(60,60,60,.7);z-index:99}.label[_ngcontent-%COMP%]{margin:-8px 0 0}ion-icon[_ngcontent-%COMP%]{color:wheat;min-width:2.4rem;font-size:1.8rem;text-align:center;margin-top:15px}.bayaTab[_ngcontent-%COMP%]{height:100%;border-radius:0;margin-bottom:0;width:33.333%;float:left;position:relative;text-align:center}.bayaTab[_ngcontent-%COMP%]   ion-badge[_ngcontent-%COMP%]{position:absolute;top:7px;font-size:.8rem;padding:3px 6px;background-color:#de5151}.bayaTab[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:2px}.selected[_ngcontent-%COMP%]{color:wheat;font-weight:700}a[_ngcontent-%COMP%]:link{text-decoration:none;color:#f5f5f5}a[_ngcontent-%COMP%]:visited{text-decoration:none}debug-dialog[_ngcontent-%COMP%]{position:absolute;top:-500px}"]],data:{}});function f(e){return r.Nb(0,[(e()(),r.Lb(0,null,[" ","\n"])),(e()(),r.sb(1,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(2,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(1)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(4,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(5,0,null,null,1,"ion-icon",[["name","aperture"]],null,null,null,s.fb,s.q)),r.rb(6,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(7,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(8,null,["",""])),r.Fb(131072,a.i,[a.j,r.h]),(e()(),r.sb(10,0,null,null,2,"ion-badge",[],null,null,null,s.R,s.c)),r.rb(11,49152,null,0,o.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(12,0,["",""])),(e()(),r.sb(13,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(14,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(2)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(16,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(17,0,null,null,1,"ion-icon",[["name","copy"]],null,null,null,s.fb,s.q)),r.rb(18,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(19,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(20,null,["",""])),r.Fb(131072,a.i,[a.j,r.h]),(e()(),r.sb(22,0,null,null,2,"ion-badge",[],null,null,null,s.R,s.c)),r.rb(23,49152,null,0,o.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(24,0,["",""])),(e()(),r.sb(25,0,null,null,11,"div",[["class","bayaTab"]],null,null,null,null,null)),(e()(),r.sb(26,0,null,null,10,"div",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.selectTab(3)&&r),r}),null,null)),r.Ib(512,null,i.u,i.v,[r.q,r.r,r.k,r.D]),r.rb(28,278528,null,0,i.i,[i.u],{ngClass:[0,"ngClass"]},null),(e()(),r.sb(29,0,null,null,1,"ion-icon",[["name","people"]],null,null,null,s.fb,s.q)),r.rb(30,49152,null,0,o.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(31,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(32,null,["",""])),r.Fb(131072,a.i,[a.j,r.h]),(e()(),r.sb(34,0,null,null,2,"ion-badge",[],null,null,null,s.R,s.c)),r.rb(35,49152,null,0,o.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(36,0,["",""]))],(function(e,t){var n=t.component;e(t,4,0,n.collectionsClass),e(t,6,0,"aperture"),e(t,16,0,n.itemsClass),e(t,18,0,"copy"),e(t,28,0,n.friendsClass),e(t,30,0,"people")}),(function(e,t){var n=t.component;e(t,0,0,n.text),e(t,8,0,r.Mb(t,8,0,r.Eb(t,9).transform("TABS.collections"))),e(t,12,0,n.getCollectionsNotificationsNumber()),e(t,20,0,r.Mb(t,20,0,r.Eb(t,21).transform("TABS.myItems"))),e(t,24,0,n.getItemsNotificationsNumber()),e(t,32,0,r.Mb(t,32,0,r.Eb(t,33).transform("TABS.friends"))),e(t,36,0,n.getFriendsNotificationsNumber())}))}function g(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"comp-footer",[],null,null,null,f,p)),r.rb(1,49152,null,0,l.a,[o.Gb,c.a,u.a,h.a,d.a],null,null)],null,null)}var m=r.ob("comp-footer",l.a,g,{},{},[])},k82s:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.requestPermission=function(){return Object(i.cordova)(this,"requestPermission",{},arguments)},t.prototype.schedule=function(e){return Object(i.cordova)(this,"schedule",{sync:!0},arguments)},t.prototype.update=function(e){return Object(i.cordova)(this,"update",{sync:!0},arguments)},t.prototype.clear=function(e){return Object(i.cordova)(this,"clear",{},arguments)},t.prototype.clearAll=function(){return Object(i.cordova)(this,"clearAll",{},arguments)},t.prototype.cancel=function(e){return Object(i.cordova)(this,"cancel",{},arguments)},t.prototype.cancelAll=function(){return Object(i.cordova)(this,"cancelAll",{},arguments)},t.prototype.isPresent=function(e){return Object(i.cordova)(this,"isPresent",{},arguments)},t.prototype.isScheduled=function(e){return Object(i.cordova)(this,"isScheduled",{},arguments)},t.prototype.isTriggered=function(e){return Object(i.cordova)(this,"isTriggered",{},arguments)},t.prototype.hasType=function(e,t){return Object(i.cordova)(this,"hasType",{},arguments)},t.prototype.getType=function(e){return Object(i.cordova)(this,"getType",{},arguments)},t.prototype.getIds=function(){return Object(i.cordova)(this,"getIds",{},arguments)},t.prototype.getScheduledIds=function(){return Object(i.cordova)(this,"getScheduledIds",{},arguments)},t.prototype.getTriggeredIds=function(){return Object(i.cordova)(this,"getTriggeredIds",{},arguments)},t.prototype.get=function(e){return Object(i.cordova)(this,"get",{},arguments)},t.prototype.getAll=function(){return Object(i.cordova)(this,"getAll",{},arguments)},t.prototype.getScheduled=function(e){return Object(i.cordova)(this,"getScheduled",{},arguments)},t.prototype.getTriggered=function(e){return Object(i.cordova)(this,"getTriggered",{},arguments)},t.prototype.addActions=function(e,t){return Object(i.cordova)(this,"addActions",{},arguments)},t.prototype.removeActions=function(e){return Object(i.cordova)(this,"removeActions",{},arguments)},t.prototype.hasActions=function(e){return Object(i.cordova)(this,"hasActions",{},arguments)},t.prototype.getDefaults=function(){return Object(i.cordova)(this,"getDefaults",{sync:!0},arguments)},t.prototype.setDefaults=function(e){return Object(i.cordova)(this,"setDefaults",{sync:!0},arguments)},t.prototype.getAllScheduled=function(){return Object(i.cordova)(this,"getAllScheduled",{},arguments)},t.prototype.getAllTriggered=function(){return Object(i.cordova)(this,"getAllTriggered",{},arguments)},t.prototype.on=function(e){return Object(i.cordova)(this,"on",{observable:!0,clearFunction:"un",clearWithArgs:!0},arguments)},t.prototype.fireEvent=function(e,t){return Object(i.cordova)(this,"fireEvent",{sync:!0},arguments)},t.prototype.fireQueuedEvents=function(){return Object(i.cordova)(this,"fireQueuedEvents",{},arguments)},t.pluginName="LocalNotifications",t.plugin="cordova-plugin-local-notification",t.pluginRef="cordova.plugins.notification.local",t.repo="https://github.com/katzer/cordova-plugin-local-notifications",t.platforms=["Android","iOS","Windows"],t}(i.IonicNativePlugin)},kJWO:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kLfG:function(e,t,n){var r={"./ion-action-sheet.entry.js":["dUtr",0,20],"./ion-alert.entry.js":["Q8AI",0,21],"./ion-app_8.entry.js":["hgI1",0,22],"./ion-avatar_3.entry.js":["CfoV",0,23],"./ion-back-button.entry.js":["Nt02",0,24],"./ion-backdrop.entry.js":["Q2Bp",25],"./ion-button_2.entry.js":["0Pbj",0,26],"./ion-card_5.entry.js":["ydQj",0,27],"./ion-checkbox.entry.js":["4fMi",0,28],"./ion-chip.entry.js":["czK9",0,29],"./ion-col_3.entry.js":["/CAe",30],"./ion-datetime_3.entry.js":["WgF3",0,31],"./ion-fab_3.entry.js":["uQcF",0,32],"./ion-img.entry.js":["wHD8",33],"./ion-infinite-scroll_2.entry.js":["2lz6",34],"./ion-input.entry.js":["ercB",0,35],"./ion-item-option_3.entry.js":["MGMP",0,36],"./ion-item_8.entry.js":["9bur",0,37],"./ion-loading.entry.js":["cABk",0,38],"./ion-menu_3.entry.js":["kyFE",0,39],"./ion-modal.entry.js":["TvZU",0,40],"./ion-nav_2.entry.js":["vnES",0,41],"./ion-popover.entry.js":["qCuA",0,42],"./ion-progress-bar.entry.js":["0tOe",0,43],"./ion-radio_2.entry.js":["h11V",0,44],"./ion-range.entry.js":["XGij",0,45],"./ion-refresher_2.entry.js":["nYbb",0,46],"./ion-reorder_2.entry.js":["smMY",0,47],"./ion-ripple-effect.entry.js":["STjf",48],"./ion-route_4.entry.js":["k5eQ",0,49],"./ion-searchbar.entry.js":["OR5t",0,50],"./ion-segment_2.entry.js":["fSgp",0,51],"./ion-select_3.entry.js":["lfGF",0,52],"./ion-slide_2.entry.js":["5xYT",53],"./ion-spinner.entry.js":["nI0H",0,54],"./ion-split-pane.entry.js":["NAQR",55],"./ion-tab-bar_2.entry.js":["knkW",0,56],"./ion-tab_2.entry.js":["TpdJ",0,57],"./ion-text.entry.js":["ISmu",0,58],"./ion-textarea.entry.js":["U7LX",0,59],"./ion-toast.entry.js":["L3sA",0,60],"./ion-toggle.entry.js":["IUOf",0,61],"./ion-virtual-scroll.entry.js":["8Mb5",62]};function i(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(r)},i.id="kLfG",e.exports=i},kNMb:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n("/qZA"),n("olg3");var r=n("sUqe"),i=n("AjPc");n("2IJ5"),n("0+M4");class s{constructor(e,t,n,i){this.socketManager=e,this.userManager=t,this.events=n,this.consoleDialog=i,n.subscribe(r.b.CheckEvents,(e,t)=>{this.checkEvents()})}handleMessage(e){let t=JSON.parse(e);if(i.a.isJson(t.msg)){let e=JSON.parse(t.msg);if(Array.isArray(e.events))for(let t of e.events)this.consoleDialog.log2("push event",t),this.events.publish(t.action,JSON.parse(t.data),Date.now()),this.socketManager.queryPro(r.a.DeleteEvent,e,this,this.userManager.user.getMainAccessToken())}}checkEvents(){null!=this.userManager.user&&this.socketManager.queryPro("checkEvents",{},this,this.userManager.user.getMainAccessToken())}}},kbZ1:function(e,t,n){"use strict";var r=n("7BDe");n("2IJ5");class i extends r.a{constructor(e){super(e),this.words=[],this.relatedWords=[]}setWords(e){}setRelatedWords(e){this.relatedWords=e}getSummary(){return this.title}}class s extends r.a{constructor(e){super(e),this.type=e.type}}var o=n("oCF6"),a=n("sUqe"),l=n("AjPc");let c=(()=>{class e{constructor(e){this.syncing=!1,this.itemsMgr=e}handleMessage(t,n){let r=JSON.parse(t);r.owner==e.syncItems&&this.onSyncResultReceived(r),this.setSyncing(!1)}setSyncing(e){this.syncing=e}onSyncResultReceived(e){if(!l.a.isJson(e.msg))return!0;let t=JSON.parse(e.msg);if(null!=t.created)for(let n of t.created)this.itemsMgr.events.publish(a.b.UpdateItems,{chatID:n});if(t.deleted)for(let n of t.deleted)if(n.deleted){let e=this.itemsMgr.find(n.itemID);this.itemsMgr.deleteItemLocally(e)}}sync(){let t=[];for(let e of this.itemsMgr.items)t.push(e.itemID);this.itemsMgr.socketManager.queryPro(e.syncItems,t,this,this.itemsMgr.userManager.user.getMainAccessToken())}}return e.getNewItems="getNewItems",e.loadMyItems="loadMyItems",e.syncItems="syncItems",e})();n("EGUZ"),n("GAbP"),n("/qZA"),n("olg3"),n("0+M4"),n.d(t,"a",(function(){return u}));let u=(()=>{class e{constructor(e,t,n,r,i,s,o){this.storageManager=e,this.databaseManager=t,this.socketManager=n,this.platform=r,this.consoleDialog=i,this.userManager=s,this.events=o,this.items=[],this.backUpitems=[],this.newItemsNumber=0,this.alreadyCreated=!0,this.publicItems=[],this.userManager.loggedIn().then(()=>{this.itemsStorage=this.userManager.user.userID+"myItems"}),this.synchronizer=new c(this),this.registerEvents(),o.subscribe(a.b.CheckEvents,e=>{this.refresh()})}registerEvents(){this.events.subscribe(a.b.UpdateItems,e=>{this.socketManager.queryPro(a.a.GetItem,e,this,this.userManager.user.getMainAccessToken())}),this.events.subscribe(a.b.UpdateMessages,e=>{this.socketManager.queryPro(a.a.GetMessage,e,this,this.userManager.user.getMainAccessToken())})}allowTutorial(){return 0==this.items.length&&!this.alreadyCreated}handleMessage(e){let t=JSON.parse(e);t.owner==a.a.GetItem&&this.addItemLocally(t)}deleteItem(e){this.socketManager.queryPro("removeItem",e.getSimpleModel(),this,this.userManager.user.getMainAccessToken()),console.log(" item.getSimpleModel() is: ",e.getSimpleModel()),this.deleteItemLocally(e)}deleteItemLocally(e){console.log("hiiiiiiiiiiiiiii in deleteItemLocally");let t=this.items.indexOf(e);console.log("this.items.indexOf(item):",this.items.indexOf(e)),this.items.splice(t,1),this.platform.is("cordova")?(console.log(" if(this.platform.is(cordova)"),this.databaseManager.deleteItem(e)):(console.log(" ELSE--\x3eif(this.platform.is(cordova)"),this.storageManager.set(this.getItemStorageName(),this.getSimpleModelOfItems()),console.log("this.getItemStorageName()",this.getItemStorageName()),console.log("this.getSimpleModelOfItems()",this.getSimpleModelOfItems()),this.storageManager.set(this.getItemStorageName()+e.storageID,null),console.log("this.getItemStorageName() + item.storageID",this.getItemStorageName()+e.storageID))}addItemLocally(e){if(l.a.isJson(e.msg)){let t=JSON.parse(e.msg),n=this.createItem(t);if("chat"==n.type)return!1;if(this.items.push(n),this.newItemsNumber++,this.platform.is("cordova"))this.databaseManager.addItem(new r.a(t));else{n.setStorageID(t.itemID);let e=new o.a(n);this.storageManager.set(e.chatID,e),this.save()}}}addItemWithoutInternet(e){let t=new o.a(e);this.items.push(e),this.storageManager.set(t.chatID,t),this.save()}refresh(){return new Promise(e=>{this.userManager.loggedIn().then(()=>{this.platform.is("cordova")?this.databaseManager.getItems(this.userManager.user).then(t=>{for(let e of t){let t=new r.a(e);this.hasNotItem(t)&&this.items.push(t)}e(this.items)}):this.storageManager.get(this.getItemStorageName()).then(e=>{for(let t in e){let n=new r.a(e[t]);this.hasNotItem(n)&&this.items.push(new r.a(e[t]))}this.sync()})}).catch(e=>{this.consoleDialog.log("login error",e)})})}hasNotItem(e){return 0==this.items.filter(t=>{if(e.itemID==t.itemID)return t}).length}sync(){this.synchronizer.sync()}add(e){this.items.push(e),this.platform.is("cordova")?(console.log('if (this.platform.is("cordova")'),this.databaseManager.init(this.userManager.user).then(()=>{this.databaseManager.addItem(e)})):(console.log("if cordova ->else"),this.save())}getItemStorageName(){return this.itemsStorage=this.userManager.user.userID+"myItems",this.itemsStorage}searchBackUp(){this.backUpitems=[];for(let e of this.items)this.backUpitems.push(e)}search(t){if(!t)return!1;this.items=this.backUpitems.filter(e=>{if(e.title.includes(t))return e}),this.socketManager.asyncQuery(e.actionGetPublicItems,{needle:t}).then(e=>{let t=e.getParam("publicItemsData");if(t){this.publicItems.length=0;for(let e of t){let t=this.createItemByItemData(e);t.setAutoInit(!1),this.publicItems.push(t)}}})}endSearch(){this.publicItems.length=0,this.items=this.backUpitems}save(){this.getSimpleModelOfItems(),this.storageManager.set(this.getItemStorageName(),this.getSimpleModelOfItems())}getSimpleModelOfItems(){let e=[];for(let t of this.items)e.push(t.getSimpleModel());return e}find(e){for(let t of this.items)if(t.itemID==e)return t}addItemViaAjaxBridge(){}addItem(e,t){this.socketManager.queryPro("addItem",e,t,this.userManager.user.getMainAccessToken())}addNewItem(e){return this.socketManager.asyncQuery("addNewItem",{item:e}).then(t=>{t.isAllowed()&&(e.itemID=t.getParam("itemID"),e.setUserID(this.userManager.user.userID),this.add(e))})}clearNotification(){this.newItemsNumber=0}getNotificationsNumber(){return this.newItemsNumber}createItem(e){let t;switch(e.type||e.itemType){case"dictionary":t=new i(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;case"puzzle":t=new s(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":t=new i(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;case"puzzle":t=new i(e);break;case"leitner":t=new i(e);try{t.title=e.getTitle()}catch(n){t.title=e.title,console.log("error",n)}break;default:t=new i(e)}return t}createItemByItemData(e){let t;switch(e.itemType){case"dictionary":t=new i(e);break;case"puzzle":t=new s(e);break;case"quiz":case"artikelQuiz":case"imageQuiz":case"translationQuiz":case"puzzle":case"leitner":default:t=new i(e)}return t}}return e.actionGetPublicItems="getPublicItems",e})()},l7GE:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");class i extends r.a{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}},lJxs:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(e,t))}}class s{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}},"m/40":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("MKJQ"),s=n("sZkV"),o=n("SVse"),a=n("g4Gf"),l=n("wZ9J"),c=n("olg3"),u=n("kbZ1"),h=n("J20c"),d=n("EGUZ"),p=n("2IJ5"),f=n("0+M4");n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return w}));var g=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]{background-color:#e8e8e8}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{color:#585858;margin:0;height:100%}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:50px;height:90px}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{background:#000;border-radius:25px;padding-left:20px;height:38%;float:left}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   ion-col.col.iconArea[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]   ion-col.iconArea[_ngcontent-%COMP%]{flex-grow:3}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]   ion-col.contentArea[_ngcontent-%COMP%]{flex-grow:11;padding-top:11px}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   ion-row[_ngcontent-%COMP%]   ion-col.badgeArea[_ngcontent-%COMP%]{flex-grow:3}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   .titleArea[_ngcontent-%COMP%]{width:60%;overflow:hidden;display:inline-block}[_nghost-%COMP%]   ion-item.item.item-block[_ngcontent-%COMP%]   .titleArea[_ngcontent-%COMP%]   p.subtitleArea[_ngcontent-%COMP%]{margin-top:5px;opacity:.8}[_nghost-%COMP%]   ion-item[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%]   .itemActionSheet[_ngcontent-%COMP%]{background-color:red}[_nghost-%COMP%]   .itemActionSheet[_ngcontent-%COMP%]   .action-sheet-wrapper[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%]   .itemActionSheet[_ngcontent-%COMP%]   .action-sheet-wrapper[_ngcontent-%COMP%]   .action-sheet-container[_ngcontent-%COMP%]{border-radius:20px}[_nghost-%COMP%]   .itemActionSheet[_ngcontent-%COMP%]   .action-sheet-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:red}[_nghost-%COMP%]   ion-badge.badge[_ngcontent-%COMP%]{background-color:#12e1ec;border-radius:100%;height:auto;color:#647976;vertical-align:middle;font-size:1.4rem}[_nghost-%COMP%]   ion-icon.itemMainIcon[_ngcontent-%COMP%]{float:left!important;margin-right:20px;font-size:35px!important;padding-top:10px}.free[_ngcontent-%COMP%]{border-radius:50px;margin:3px}.free[_ngcontent-%COMP%]   .mainRow[_ngcontent-%COMP%]{width:100%}.free[_ngcontent-%COMP%]   .iconArea[_ngcontent-%COMP%]{flex-grow:0}.free[_ngcontent-%COMP%]   .iconArea[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{float:none!important}.free[_ngcontent-%COMP%]   .contentArea[_ngcontent-%COMP%]{flex-grow:11}.subtitleArea[_ngcontent-%COMP%]{margin:0;color:#909090!important;font-weight:400!important}.titleArea[_ngcontent-%COMP%]{font-weight:400!important;color:#000!important}"]],data:{}});function m(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"ion-item",[["class","free"]],[[4,"background-color",null]],null,null,i.jb,i.u)),r.rb(1,49152,null,0,s.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,18,"ion-row",[["class","mainRow"]],null,null,null,i.qb,i.B)),r.rb(3,49152,null,0,s.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-col",[["class","iconArea"]],null,null,null,i.X,i.i)),r.rb(5,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"ion-icon",[["class","itemMainIcon"]],null,null,null,i.fb,i.q)),r.rb(7,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(8,0,null,0,7,"ion-col",[["class","contentArea"]],null,null,null,i.X,i.i)),r.rb(9,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,5,"ion-row",[],null,null,null,i.qb,i.B)),r.rb(11,49152,null,0,s.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(12,0,null,0,3,"div",[["class","titleArea"]],null,[[null,"press"]],(function(e,t,n){var r=!0,i=e.component;return"press"===t&&(r=!1!==(i.isItemOwner()?i.showOptions(n):i.showOptionsLeave(n))&&r),r}),null,null)),(e()(),r.Lb(13,null,[" "," "])),(e()(),r.sb(14,0,null,null,1,"p",[["class","subtitleArea"]],null,null,null,null,null)),(e()(),r.Lb(15,null,[" "," "])),(e()(),r.sb(16,0,null,0,4,"ion-col",[["class","badgeArea"]],null,null,null,i.X,i.i)),r.rb(17,49152,null,0,s.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(18,0,null,0,2,"ion-badge",[],null,null,null,i.R,i.c)),r.rb(19,49152,null,0,s.j,[r.h,r.k,r.x],null,null),(e()(),r.Lb(20,0,["",""]))],(function(e,t){e(t,7,0,r.wb(1,"",t.component.getIconName(),""))}),(function(e,t){var n=t.component;e(t,0,0,n.isItemOwner()?"#ffffff":"#dcddec"),e(t,13,0,n.item.title),e(t,15,0,n.getLastMessageSummary()),e(t,20,0,n.getMessagesNumber())}))}function b(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ion-icon",[["name","md-checkmark-circle"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.save(n)&&r),r}),i.fb,i.q)),r.rb(1,49152,null,0,s.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,1,0,"md-checkmark-circle")}),null)}function v(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,m)),r.rb(1,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,b)),r.rb(3,16384,null,0,o.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.loaded),e(t,3,0,n.editMode)}),null)}function y(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,null,null,v,g)),r.rb(1,5292032,null,0,a.a,[l.a,c.a,s.Gb,s.Fb,u.a,h.a,d.a,s.Jb,p.a,f.a,s.a],null,null)],null,null)}var w=r.ob("item",a.a,y,{itemObject:"itemObject"},{},[])},mCNh:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("SpAZ");function i(...e){return s(e)}function s(e){return 0===e.length?r.a:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)}}},mrSG:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function o(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{l(r.next(e))}catch(t){s(t)}}function a(e){try{l(r.throw(e))}catch(t){s(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))}},n6bG:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,"a",(function(){return r}))},nAxv:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("+mLH"),i=n("7BDe");class s extends r.a{constructor(e){null!=e&&(super(e),null!=e.chatID&&(e.itemID=e.chatID,e.storageID=e.chatID),null!=e.friendID&&(this.userID=e.friendID),this.chatID=e.chatID,e.type="chat",e.title=this.email,this.item=new i.a(e.item?e.item:e))}getSimpleModelOfFriend(){let e=Object.assign({},this),t=new s(e);return this.chat&&(t.chat=this.chat.getSimpleModel()),this.item&&(t.item=this.item.getSimpleModel()),t}}},nBaR:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n("p74H"),n("kbZ1"),n("QA36"),n("kNMb"),n("MF7w"),n("LKtr"),n("EGUZ"),n("GAbP"),n("/qZA"),n("olg3"),n("h4wn"),n("J20c"),n("sk1z"),n("2IJ5"),n("PJj0"),n("ZZmf"),n("0FpF"),n("AcVp"),n("BNVH"),n("FUig"),n("0+M4");class r{constructor(e,t,n,r,i,s,o,a,l,c,u,h,d,p,f,g,m,b,v,y,w,_,C,x,O,S){this.navCtrl=e,this.itemsManager=t,this.collectionsManager=n,this.eventsManager=r,this.tabsManager=i,this.socketManager=s,this.userManager=o,this.friendsManager=a,this.chatsManager=l,this.router=c,this.storageManager=u,this.accountManager=h,this.statusBar=d,this.translateService=p,this.backgroundMode=f,this.localNotificationManager=g,this.wordsManager=m,this.notificationsManager=b,this.consoleDialog=v,this.databaseManager=y,this.adsManager=w,this.appRateManager=_,this.platform=C,this.nativePageTransitions=x,this.modalCtrl=O,this.events=S,this.hasCheckedDatabaseForItems=!1,this.init(),this.events.subscribe("user:created",e=>{console.log("Welcome "),console.log(e)})}divClicked(){this.events.publish("user:created","vahid",new Date)}init(){this.platform.ready().then(()=>{this.platform.is("cordova")?(this.appRateManager.init(),this.notificationsManager.init(),this.platform.is("ios")||(this.backgroundMode.setDefaults({title:"Bayadic",text:"it is here to run faster",resume:!0,hidden:!0,silent:!0}),this.backgroundMode.enable()),this.statusBar.overlaysWebView(!1),this.navCtrl.pop().then(()=>{this.adsManager.isAdsNeeded()&&this.adsManager.showInterstitialAdAfterBack()})):this.backgroundMode.moveToBackground()}),this.tabsManager.selectedTab=2,this.registerEvents()}registerEvents(){this.events.subscribe("watchAdsClosed",()=>{this.navCtrl.pop()})}initChat(e){return this.chatsManager.initChat(e)}isTesting(){return!this.platform.is("cordova")}addNewWord(){let e=this.wordsManager.createWord({name:"",word:"dank",artikel:"f",plural:"dankee",translation:"\u0645\u0645\u0646\u0648\u0646",wordType:"noun"});e.setUserID(this.userManager.user.userID),e.setMessageID("324234234"),this.socketManager.queryPro("addNewWord",{word:e},this,this.userManager.user.getMainAccessToken())}openItem(e){this.initChat(e).then(e=>(this.chatsManager.synchronizer.getNewMessages(e),e)).then(e=>{this.router.navigate(["chat"],{state:{chat:e}}).then(()=>{e.setViewLoaded(!0),console.log("in Items component openitem(item) chat after navigate is:",e)})})}connectAgain(){this.consoleDialog.log("connect again",{}),this.socketManager.connect()}logout(){this.userManager.logOut()}disconnect(){console.log("serve disconnect"),this.socketManager.disconnect()}getItems(){}addItem(){this.databaseManager.addItem(this.itemsManager.items[0])}handleMessage(){console.log(" truncrated? :D")}ionViewDidEnter(){this.hasCheckedDatabaseForItems&&(this.itemsManager.synchronizer.sync(),this.chatsManager.setAllChatsView(!1))}swipeEvent(e){console.log(e,"swip event ")}showConjunction(){}truncrate(e){this.platform.is("cordova")?this.databaseManager.truncrate():(this.storageManager.set(this.itemsManager.itemsStorage,{}),this.itemsManager.items.length=0),this.friendsManager.friends.length=0,this.friendsManager.save(),e.close()}showConsoleDialog(e){this.consoleDialog.devMode=!0,e.close()}getFirstDictionaryItem(){return!1}correctPage(){this.adsManager.mopubManager.createBanner()}toggleDebugDialog(){this.consoleDialog.devMode=!this.consoleDialog.devMode}ngAfterViewInit(){this.itemsManager.refresh().then(()=>{this.platform.is("android")&&(this.hasCheckedDatabaseForItems=!0),this.itemsManager.sync()}),this.eventsManager.checkEvents()}ngOnChanges(){this.itemsManager.clearNotification()}}},nYR2:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("7o/Q"),i=n("quSY");function s(e){return t=>t.lift(new o(e))}class o{constructor(e){this.callback=e}call(e,t){return t.subscribe(new a(e,this.callback))}}class a extends r.a{constructor(e,t){super(e),this.add(new i.a(t))}}},neAe:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("mrSG"),i=(n("F9l0"),n("3MOV"),n("MF7w"),n("xNyf"),n("EGUZ"),n("GAbP"),n("olg3"),n("/qZA"),n("J20c"),n("2IJ5"),n("sk1z"),n("1Zg0"),n("pJ1N")),s=(n("oCF6"),n("0NL6")),o=n("p9zK"),a=n("AjPc");n("Zr1d"),n("wZ9J");class l{constructor(e,t,n,r,i,s,o,a,l,c,u,h,d,p,f,g,m,b,v,y){this.ajaxBridge=e,this.wordsManager=t,this.messagesManager=n,this.storageManager=r,this.databaseManager=i,this.userManager=s,this.socketManager=o,this.consoleDialog=a,this.speechRecognition=l,this.adsManager=c,this.memberManager=u,this.platform=h,this.keyboard=d,this.keyboard2=p,this.renderer=f,this.modalCtrl=g,this.elementRef=m,this.chatsManager=b,this.tourGuideManager=v,this.cdRef=y,this.showWordList=!1,this.textPointerPosition=0,this.fabIconName="keypad",this.micBtnEnabled=!0,this.sendBtnEnabled=!1,this.isReadOnly=!1,this.generatingQuiz=!1,this.similarWords=[],this.similarWordsInLocalDB=[],this.text="Hello World",this.recording=!1,this.keyboard.disableScroll(!0)}static get suggestWordAction(){return"getSuggestion"}handleMessage(e,t){if("addMessage"==t.action){t.message.setStatus(t.message.possibleStatuses.receivedByServer);let n=JSON.parse(e);if(a.a.isJson(n.msg)){let e=JSON.parse(n.msg);t.message.setMessageID(e.messageID),this.databaseManager.addMessage(this.chat,t.message),this.chatsManager.onMessageAdded()}}else if("generateQuiz"==t.action){console.log("let chat = this.chat; in handleMessage()",this.chat);let t=JSON.parse(e);console.log("messageObject in handleMessage()",t);let n=JSON.parse(t.msg);console.log("quiz messages in handleMessage()",n),console.log("let chatsMgr = this.chatsManager:",this.chatsManager),this.chatsManager.synchronizer.getNewMessages(this.chat),this.setGeneratingQuiz(!1)}else if(t.action==l.suggestWordAction){let t=JSON.parse(e),n=JSON.parse(t.msg);if(!this.isTyping())return!1;for(let e of n)null!=e&&(-1==this.similarWordsInLocalDB.indexOf(e.searchedWord)&&this.similarWords.push(e.searchedWord),this.wordsManager.saveWord(e.searchedWord))}this.content.scrollToBottom()}isTyping(){return this.typing}setTyping(e){this.typing=e}hasSuggestion(){return this.similarWords.length>0||this.similarWordsInLocalDB.length>0}ngOnInit(){console.log("this.chat in ngOnInit:",this.chat),console.log("this.content in ngOnInit:",this.content),this.theme()}isIos(){return!!this.platform.is("ios")}suggestWords(){if(this.similarWords=[],this.similarWordsInLocalDB=[],this.msg&&this.msg.length>1){this.showWordList=!0;let e={word:this.msg};this.wordsManager.getSuggestions(this.msg).then(t=>{t.length<3&&this.socketManager.queryPro(l.suggestWordAction,e,this,this.userManager.user.getMainAccessToken()),this.similarWordsInLocalDB=t}),this.setTyping(!0)}}keypress(e){this.resize(),this.chat.isDictionary()&&this.suggestWords(),this.chat.hasPremissionToSendMessage()&&this.switchSendMicButton()}paste(e){this.chat.isDictionary()&&this.suggestWords(),this.enableSendBtn(!0)}switchSendMicButton(){this.enableSendBtn(null!=this.msg&&this.msg.length>0)}enableSendBtn(e){this.micBtnEnabled=!e,this.sendBtnEnabled=e}isMicBtnEnabled(){return this.micBtnEnabled}isSendBtnEnabled(){return this.sendBtnEnabled}select(e){this.msg=e,this.send()}requestQuiz(){let e={data:"",itemID:this.chat.chatID,type:this.chat.type};console.log("this.chat in chat input component is:",this.chat),console.log("this.content in chat input component is:",this.content),console.log("this.chat.type in chat input component is:",this.chat.chatID,"+",this.chat.type),this.generatingQuiz=!0,this.socketManager.queryPro("generateQuiz",e,this,this.userManager.user.getMainAccessToken()),console.log("let requestData in chat input component is:",e),this.adsManager.prepareRewardAd(),this.adsManager.setAdsNeeded(!0),this.chatsManager.runAds()}setGeneratingQuiz(e){this.generatingQuiz=e}isGeneratingQuiz(){return this.generatingQuiz}generate(){this.requestQuiz()}send(){this.chatsManager.runAds(),this.textPointerPosition=0,""!=this.msg.trim()&&(this.setTyping(!1),this.addMessage(),this.enableSendBtn(!1),this.content.scrollToBottom(),this.msg=null,this.resize(),this.similarWords.length=0,this.similarWordsInLocalDB.length=0,this.similarWords.length=0)}createMessageOfType(e){let t;switch(e){case"chat":t=new s.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:a.d.getTimeString()});break;case"dictionary":t=new s.a({text:this.msg.trim(),content:[],type:this.msgType,from:this.userManager.user,receivedTime:a.d.getTimeString()});break;case"leitner":t=new s.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:a.d.getTimeString()});break;case"artikelQuiz":t=new o.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:a.d.getTimeString()}),console.log("message in  createMessageOfType(msgType: string): ",t);break;case"imageQuiz":case"translationQuiz":t=new o.a({text:this.msg,content:[],type:this.msgType,from:this.userManager.user,receivedTime:a.d.getTimeString()})}return t}isQuizType(){return this.msgType.toLowerCase().includes("quiz")}ngAfterContentInit(){}ngAfterViewInit(){return r.a(this,void 0,void 0,(function*(){var e=this;if(this.chat.isChatTutorial()&&this.chat.isFirstUsage()&&!this.chat.isFinishedTutorial()){this.tourGuideManager.initInputChatTips(),e.chat.setFinishedTutorial(!0),e.chat.setFirstUsage(!1);let t=yield this.modalCtrl.create({component:i.a});t.present(),t.onDidDismiss().then(()=>{e.msg="Buch",e.enableSendBtn(!0),e.tourGuideManager.initSendTips(),t.present(),t.onDidDismiss().then((function(){e.send()}))})}else this.chat.hasClipBoardText()&&(e.msg=this.chat.getClipBoardText(),e.enableSendBtn(!0),e.suggestWords())}))}ngAfterViewChecked(){}ionViewDidLoad(){}ngAfterContentChecked(){}ionViewDidEnter(){}addMessage(){null==this.msgType&&(this.msgType=this.chat.type);let e=this.createMessageOfType(this.msgType);e.setStatus(e.possibleStatuses.created);let t={data:e.getData(),itemID:this.chat.chatID};this.socketManager.queryPro("addMessage",t,this,this.userManager.user.getMainAccessToken(),e).then(()=>{e.setStatus(e.possibleStatuses.pushedToServer)}),this.chat.messages.push(e)}saveMessageInDatabase(e){this.platform.is("cordova")?this.databaseManager.addMessage(this.chat,e):this.chatsManager.save(this.chat)}holdMicroPhone(e="de-DE"){this.speechRecognition.isRecognitionAvailable().then(t=>{t&&this.speechRecognition.hasPermission().then(t=>{t?this.startRecognitionProcess(e):this.speechRecognition.requestPermission().then(()=>{this.startRecognitionProcess(e),console.log("Granted")},()=>console.log("Denied"))})})}startRecognitionProcess(e){this.speechRecognition.startListening({language:e,matches:1,showPopup:!0}).subscribe(e=>{e[0].includes("0")||(this.msg=e[0],this.enableSendBtn(!0))},e=>{JSON.stringify(e)})}resize(){return!0}holdMicroPhoneFa(e="fa-IR"){this.speechRecognition.isRecognitionAvailable().then(t=>{t&&this.speechRecognition.hasPermission().then(t=>{t?this.startRecognitionProcess(e):this.speechRecognition.requestPermission().then(()=>{console.log("Granted"),this.startRecognitionProcess(e)},()=>console.log("Denied"))})})}leaveMicroPhone(){this.recording=!1,this.speechRecognition.stopListening()}setMsgType(e,t){this.msgType=e,this.changeFabIconName()}changeFabIconName(){switch(this.msgType){case"chat":this.fabIconName="chatbubble-sharp";break;case"dictionary":this.fabIconName="bookmarks"}}getPlaceHolder(){let e="Wort";switch(this.msgType){case"chat":e="Message";break;case"dictionary":e="Wort"}return e}showKeyboard(e){}isOwner(){return!!this.chat&&(this.chat.item.userID==this.userManager.user.userID||this.isAdmin()||this.chat.isChat()||null==this.chat.getCreatorID())}isAdmin(){return this.chat.admins.filter(e=>{if(e.userID==this.userManager.user.userID)return e}).length>0}isMember(){return this.chat.members.filter(e=>{if(e.userID==this.userManager.user.userID)return e}).length>0}preventBlur(e){e.preventDefault()}join(){this.memberManager.join(this.chat)}theme(){return!0===this.userManager.theme?(this.myval="mood1",!0):(this.myval="mood2",!1)}}},nfSX:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.init=function(e){return new o(e)},t.prototype.hasPermission=function(){return Object(i.cordova)(this,"hasPermission",{},arguments)},t.prototype.createChannel=function(e){return Object(i.cordova)(this,"createChannel",{callbackOrder:"reverse"},arguments)},t.prototype.deleteChannel=function(e){return Object(i.cordova)(this,"deleteChannel",{callbackOrder:"reverse"},arguments)},t.prototype.listChannels=function(){return Object(i.cordova)(this,"listChannels",{},arguments)},t.pluginName="Push",t.plugin="phonegap-plugin-push",t.pluginRef="PushNotification",t.repo="https://github.com/phonegap/phonegap-plugin-push",t.install="ionic cordova plugin add phonegap-plugin-push",t.platforms=["Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin),o=function(){function e(e){!0===Object(i.checkAvailability)("PushNotification","init","PushNotification")&&"undefined"!=typeof window&&(this._objectInstance=window.PushNotification.init(e))}return e.prototype.on=function(e){return Object(i.cordovaInstance)(this,"on",{observable:!0,clearFunction:"off",clearWithArgs:!0},arguments)},e.prototype.unregister=function(){return Object(i.cordovaInstance)(this,"unregister",{},arguments)},e.prototype.setApplicationIconBadgeNumber=function(e){return Object(i.cordovaInstance)(this,"setApplicationIconBadgeNumber",{callbackOrder:"reverse"},arguments)},e.prototype.getApplicationIconBadgeNumber=function(){return Object(i.cordovaInstance)(this,"getApplicationIconBadgeNumber",{},arguments)},e.prototype.finish=function(e){return Object(i.cordovaInstance)(this,"finish",{callbackOrder:"reverse"},arguments)},e.prototype.clearAllNotifications=function(){return Object(i.cordovaInstance)(this,"clearAllNotifications",{},arguments)},e.prototype.subscribe=function(e){return Object(i.cordovaInstance)(this,"subscribe",{},arguments)},e.prototype.unsubscribe=function(e){return Object(i.cordovaInstance)(this,"unsubscribe",{},arguments)},e.pluginName="Push",e.plugin="phonegap-plugin-push",e.pluginRef="PushNotification",e}()},ngJS:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}},"o/Pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("+mLH");class i extends r.a{constructor(e){super(e),this.role=e.role}get role(){return this._role}set role(e){this._role=null==e?"member":e}}},oAJy:function(e,t,n){e.exports=function e(t,n,r){function i(o,a){if(!n[o]){if(!t[o]){if(s)return s(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return i(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var s=!1,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var s=0,o=new i(u),a=e.document.createTextNode("");o.observe(a,{characterData:!0}),n=function(){a.data=s=++s%2}}else if(e.setImmediate||void 0===e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}t.exports=function(e){1!==c.push(e)||r||n()}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var s={},o=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function h(e,t,n){r((function(){var r;try{r=t(n)}catch(i){return s.reject(e,i)}r===e?s.reject(e,new TypeError("Cannot resolve promise with itself")):s.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,s.reject(e,t))}function i(t){n||(n=!0,s.resolve(e,t))}var o=f((function(){t(i,r)}));"error"===o.status&&r(o.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===o)return this;var n=new this.constructor(i);return this.state!==l?h(n,this.state===a?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){s.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){s.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},s.resolve=function(e,t){var n=f(d,t);if("error"===n.status)return s.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=a,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},s.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:s.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return s.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=new Array(n),a=0,l=-1,c=new this(i);++l<n;)u(e[l],l);return c;function u(e,i){t.resolve(e).then((function(e){o[i]=e,++a!==n||r||(r=!0,s.resolve(c,o))}),(function(e){r||(r=!0,s.reject(c,e))}))}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,n=!1;if(!t)return this.resolve([]);for(var r=-1,o=new this(i);++r<t;)this.resolve(e[r]).then((function(e){n||(n=!0,s.resolve(o,e))}),(function(e){n||(n=!0,s.reject(o,e))}));return o}},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=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(e){return}}();function s(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(i){if("TypeError"!==i.name)throw i;for(var n=new("undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"==typeof Promise&&e(3);var o=Promise;function a(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function l(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function c(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function u(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h=void 0,d={},p=Object.prototype.toString;function f(e){var t=d[e.name],n={};n.promise=new o((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady=t.dbReady?t.dbReady.then((function(){return n.promise})):n.promise}function g(e){var t=d[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function m(e,t){var n=d[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function b(e,t){return new o((function(n,r){if(d[e.name]=d[e.name]||{forages:[],db:null,dbReady:null,deferredOperations:[]},e.db){if(!t)return n(e.db);f(e),e.db.close()}var s=[e.name];t&&s.push(e.version);var o=i.open.apply(i,s);t&&(o.onupgradeneeded=function(t){var n=o.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore("local-forage-detect-blob-support")}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),o.onerror=function(e){e.preventDefault(),r(o.error)},o.onsuccess=function(){n(o.result),g(e)}}))}function v(e){return b(e,!1)}function y(e){return b(e,!0)}function w(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version>e.db.version;if(e.version<e.db.version&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),r||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function _(e){return s([function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}(atob(e.data))],{type:e.type})}function C(e){return e&&e.__local_forage_encoded_blob}function x(e){var t=this,n=t._initReady().then((function(){var e=d[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return l(n,e,e),n}function O(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(s){if(r>0&&(!e.db||"InvalidStateError"===s.name||"NotFoundError"===s.name))return o.resolve().then((function(){if(!e.db||"NotFoundError"===s.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),y(e)})).then((function(){return function(e){f(e);for(var t=d[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,v(e).then((function(t){return e.db=t,w(e)?y(e):t})).then((function(r){e.db=t.db=r;for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r})).catch((function(t){throw m(e,t),t}))}(e).then((function(){O(e,t,n,r-1)}))})).catch(n);n(s)}}var S={_driver:"asyncStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=d[n.name];i||(d[n.name]=i={forages:[],db:null,dbReady:null,deferredOperations:[]}),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=x);var s=[];function a(){return o.resolve()}for(var l=0;l<i.forages.length;l++){var c=i.forages[l];c!==t&&s.push(c._initReady().catch(a))}var u=i.forages.slice(0);return o.all(s).then((function(){return n.db=i.db,v(n)})).then((function(e){return n.db=e,w(n,t._defaultConfig.version)?y(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var s=u[r];s!==t&&(s._dbInfo.db=n.db,s._dbInfo.version=n.version)}}))},_support:function(){try{if(!i)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(n){return!1}}(),iterate:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){O(n._dbInfo,"readonly",(function(i,s){if(i)return r(i);try{var o=s.objectStore(n._dbInfo.storeName).openCursor(),a=1;o.onsuccess=function(){var n=o.result;if(n){var r=n.value;C(r)&&(r=_(r));var i=e(r,n.key,a++);void 0!==i?t(i):n.continue()}else t()},o.onerror=function(){r(o.error)}}catch(l){r(l)}}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){O(n._dbInfo,"readonly",(function(i,s){if(i)return r(i);try{var o=s.objectStore(n._dbInfo.storeName).get(e);o.onsuccess=function(){var e=o.result;void 0===e&&(e=null),C(e)&&(e=_(e)),t(e)},o.onerror=function(){r(o.error)}}catch(a){r(a)}}))})).catch(r)}));return a(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var i=new o((function(n,i){var a;r.ready().then((function(){return a=r._dbInfo,"[object Blob]"===p.call(t)?function(e){return"boolean"==typeof h?o.resolve(h):function(e){return new o((function(t){var n=e.transaction("local-forage-detect-blob-support","readwrite"),r=s([""]);n.objectStore("local-forage-detect-blob-support").put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}(e).then((function(e){return h=e}))}(a.db).then((function(e){return e?t:(n=t,new o((function(e,t){var r=new FileReader;r.onerror=t,r.onloadend=function(t){var r=btoa(t.target.result||"");e({__local_forage_encoded_blob:!0,data:r,type:n.type})},r.readAsBinaryString(n)})));var n})):t})).then((function(t){O(r._dbInfo,"readwrite",(function(s,o){if(s)return i(s);try{var a=o.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=a.put(t,e);o.oncomplete=function(){void 0===t&&(t=null),n(t)},o.onabort=o.onerror=function(){i(l.error?l.error:l.transaction.error)}}catch(c){i(c)}}))})).catch(i)}));return a(i,n),i},removeItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){O(n._dbInfo,"readwrite",(function(i,s){if(i)return r(i);try{var o=s.objectStore(n._dbInfo.storeName).delete(e);s.oncomplete=function(){t()},s.onerror=function(){r(o.error)},s.onabort=function(){r(o.error?o.error:o.transaction.error)}}catch(a){r(a)}}))})).catch(r)}));return a(r,t),r},clear:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){O(t._dbInfo,"readwrite",(function(r,i){if(r)return n(r);try{var s=i.objectStore(t._dbInfo.storeName).clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){n(s.error?s.error:s.transaction.error)}}catch(o){n(o)}}))})).catch(n)}));return a(n,e),n},length:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){O(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var s=i.objectStore(t._dbInfo.storeName).count();s.onsuccess=function(){e(s.result)},s.onerror=function(){n(s.error)}}catch(o){n(o)}}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new o((function(t,r){e<0?t(null):n.ready().then((function(){O(n._dbInfo,"readonly",(function(i,s){if(i)return r(i);try{var o=s.objectStore(n._dbInfo.storeName),a=!1,l=o.openCursor();l.onsuccess=function(){var n=l.result;n?0===e||a?t(n.key):(a=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(c){r(c)}}))})).catch(r)}));return a(r,t),r},keys:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){O(t._dbInfo,"readonly",(function(r,i){if(r)return n(r);try{var s=i.objectStore(t._dbInfo.storeName).openCursor(),o=[];s.onsuccess=function(){var t=s.result;t?(o.push(t.key),t.continue()):e(o)},s.onerror=function(){n(s.error)}}catch(a){n(a)}}))})).catch(n)}));return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,s=this;if(e.name){var l=e.name===n.name&&s._dbInfo.db,c=l?o.resolve(s._dbInfo.db):v(e).then((function(t){var n=d[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=c.then(e.storeName?function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;f(e);var r=d[e.name],s=r.forages;t.close();for(var a=0;a<s.length;a++){var l=s[a];l._dbInfo.db=null,l._dbInfo.version=n}return new o((function(t,r){var s=i.open(e.name,n);s.onerror=function(e){s.result.close(),r(e)},s.onupgradeneeded=function(){s.result.deleteObjectStore(e.storeName)},s.onsuccess=function(){var e=s.result;e.close(),t(e)}})).then((function(e){r.db=e;for(var t=0;t<s.length;t++){var n=s[t];n._dbInfo.db=e,g(n._dbInfo)}})).catch((function(t){throw(m(e,t)||o.resolve()).catch((function(){})),t}))}}:function(t){f(e);var n=d[e.name],r=n.forages;t.close();for(var s=0;s<r.length;s++)r[s]._dbInfo.db=null;return new o((function(t,n){var r=i.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}})).then((function(e){n.db=e;for(var t=0;t<r.length;t++)g(r[t]._dbInfo)})).catch((function(t){throw(m(e,t)||o.resolve()).catch((function(){})),t}))})}else r=o.reject("Invalid arguments");return a(r,t),r}},E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=/^~~local_forage_type~([^~]+)~/,T="__lfsc__:".length,M=T+"arbf".length,A=Object.prototype.toString;function I(e){var t,n,r,i,s,o=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var c=new ArrayBuffer(o),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=E.indexOf(e[t]),r=E.indexOf(e[t+1]),i=E.indexOf(e[t+2]),s=E.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&s;return c}function D(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=E[n[t]>>2],r+=E[(3&n[t])<<4|n[t+1]>>4],r+=E[(15&n[t+1])<<2|n[t+2]>>6],r+=E[63&n[t+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 P={serialize:function(e,t){var n="";if(e&&(n=A.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===A.call(e.buffer))){var r,i="__lfsc__:";e instanceof ArrayBuffer?(r=e,i+="arbf"):(r=e.buffer,"[object Int8Array]"===n?i+="si08":"[object Uint8Array]"===n?i+="ui08":"[object Uint8ClampedArray]"===n?i+="uic8":"[object Int16Array]"===n?i+="si16":"[object Uint16Array]"===n?i+="ur16":"[object Int32Array]"===n?i+="si32":"[object Uint32Array]"===n?i+="ui32":"[object Float32Array]"===n?i+="fl32":"[object Float64Array]"===n?i+="fl64":t(new Error("Failed to get type for BinaryArray"))),t(i+D(r))}else if("[object Blob]"===n){var s=new FileReader;s.onload=function(){var n="~~local_forage_type~"+e.type+"~"+D(this.result);t("__lfsc__:blob"+n)},s.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(o){console.error("Couldn't convert value into a JSON string: ",e),t(null,o)}},deserialize:function(e){if("__lfsc__:"!==e.substring(0,T))return JSON.parse(e);var t,n=e.substring(M),r=e.substring(T,M);if("blob"===r&&k.test(n)){var i=n.match(k);t=i[1],n=n.substring(i[0].length)}var o=I(n);switch(r){case"arbf":return o;case"blob":return s([o],{type:t});case"si08":return new Int8Array(o);case"ui08":return new Uint8Array(o);case"uic8":return new Uint8ClampedArray(o);case"si16":return new Int16Array(o);case"ur16":return new Uint16Array(o);case"si32":return new Int32Array(o);case"ui32":return new Uint32Array(o);case"fl32":return new Float32Array(o);case"fl64":return new Float64Array(o);default:throw new Error("Unkown type: "+r)}},stringToBuffer:I,bufferToString:D};function N(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function j(e,t,n,r,i,s){e.executeSql(n,r,i,(function(e,o){o.code===o.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[name],(function(e,a){a.rows.length?s(e,o):N(e,t,(function(){e.executeSql(n,r,i,s)}),s)}),s):s(e,o)}),s)}function R(e,t,n,r){var i=this;e=c(e);var s=new o((function(s,o){i.ready().then((function(){void 0===t&&(t=null);var a=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,c){c?o(c):l.db.transaction((function(n){j(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){s(a)}),(function(e,t){o(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void s(R.apply(i,[e,a,n,r-1]));o(t)}}))}))})).catch(o)}));return a(s,n),s}function L(e){return new o((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],s=0;s<r.rows.length;s++)i.push(r.rows.item(s).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}var F={_driver:"webSQLStorage",_initStorage:function(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new o((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(i){return r(i)}n.db.transaction((function(i){N(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=P,i},_support:"function"==typeof openDatabase,iterate:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var s=r.rows,o=s.length,a=0;a<o;a++){var l=s.item(a),c=l.value;if(c&&(c=i.serializer.deserialize(c)),void 0!==(c=e(c,l.key,a+1)))return void t(c)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},setItem:function(e,t,n){return R.apply(this,[e,t,n,1])},removeItem:function(e,t){var n=this;e=c(e);var r=new o((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},clear:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},length:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},key:function(e,t){var n=this,r=new o((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){j(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return a(r,t),r},keys:function(e){var t=this,n=new o((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){j(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return a(n,e),n},dropInstance:function(e,t){t=u.apply(this,arguments);var n=this.config();(e="function"!=typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return a(r=e.name?new o((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),t(e.storeName?{db:r,storeNames:[e.storeName]}:L(r))})).then((function(e){return new o((function(t,n){e.db.transaction((function(r){function i(e){return new o((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var s=[],a=0,l=e.storeNames.length;a<l;a++)s.push(i(e.storeNames[a]));o.all(s).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):o.reject("Invalid arguments"),t),r}};function $(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}var B={_driver:"localStorageWrapper",_initStorage:function(e){var t={};if(e)for(var n in e)t[n]=e[n];return t.keyPrefix=$(e,this._defaultConfig),!function(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}()||localStorage.length>0?(this._dbInfo=t,t.serializer=P,o.resolve()):o.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,s=localStorage.length,o=1,a=0;a<s;a++){var l=localStorage.key(a);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(i),o++)))return c}}}));return a(r,t),r},getItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return a(r,t),r},setItem:function(e,t,n){var r=this;e=c(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new o((function(i,s){var o=r._dbInfo;o.serializer.serialize(t,(function(t,r){if(r)s(r);else try{localStorage.setItem(o.keyPrefix+e,t),i(n)}catch(a){"QuotaExceededError"!==a.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==a.name||s(a),s(a)}}))}))}));return a(i,n),i},removeItem:function(e,t){var n=this;e=c(e);var r=n.ready().then((function(){localStorage.removeItem(n._dbInfo.keyPrefix+e)}));return a(r,t),r},clear:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return a(n,e),n},length:function(e){var t=this.keys().then((function(e){return e.length}));return a(t,e),t},key:function(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(i){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return a(r,t),r},keys:function(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var s=localStorage.key(i);0===s.indexOf(e.keyPrefix)&&r.push(s.substring(e.keyPrefix.length))}return r}));return a(n,e),n},dropInstance:function(e,t){if(t=u.apply(this,arguments),!(e="function"!=typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return a(r=e.name?new o((function(t){t(e.storeName?$(e,i._defaultConfig):e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):o.reject("Invalid arguments"),t),r}},V=function(e,t){for(var n,r,i=e.length,s=0;s<i;){if((n=e[s])===(r=t)||"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))return!0;s++}return!1},q=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},z={},U={},H={INDEXEDDB:S,WEBSQL:F,LOCALSTORAGE:B},W=[H.INDEXEDDB._driver,H.WEBSQL._driver,H.LOCALSTORAGE._driver],G=["dropInstance"],X=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(G),J={description:"",driver:W.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Q(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function Z(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(arguments[0][n]=q(t[n])?t[n].slice():t[n])}return arguments[0]}var Y=new(function(){function e(t){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),H)if(H.hasOwnProperty(n)){var r=H[n],i=r._driver;this[n]=i,z[i]||this.defineDriver(r)}this._defaultConfig=Z({},J),this._config=Z({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new o((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var s=X.concat("_initStorage"),l=0,c=s.length;l<c;l++){var u=s[l];if((!V(G,u)||e[u])&&"function"!=typeof e[u])return void n(i)}!function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=o.reject(t);return a(n,arguments[arguments.length-1]),n}},n=0,r=G.length;n<r;n++){var i=G[n];e[i]||(e[i]=t(i))}}();var h=function(n){z[r]&&console.info("Redefining LocalForage driver: "+r),z[r]=e,U[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(h,n):h(!!e._support):h(!0)}catch(d){n(d)}}));return l(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=z[e]?o.resolve(z[e]):o.reject(new Error("Driver not found."));return l(r,t,n),r},e.prototype.getSerializer=function(e){var t=o.resolve(P);return l(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return l(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;q(e)||(e=[e]);var i=this._getSupportedDrivers(e);function s(){r._config.driver=r.driver()}function a(e){return r._extend(e),s(),r._ready=r._initStorage(r._config),r._ready}var c=null!==this._driverSet?this._driverSet.catch((function(){return o.resolve()})):o.resolve();return this._driverSet=c.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,s(),r._wrapLibraryMethodsWithReady(),r._initDriver=function(e){return function(){var t=0;return function n(){for(;t<e.length;){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(a).catch(n)}s();var l=new Error("No available storage method found.");return r._driverSet=o.reject(l),r._driverSet}()}}(i)}))})).catch((function(){s();var e=new Error("No available storage method found.");return r._driverSet=o.reject(e),r._driverSet})),l(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!U[e]},e.prototype._extend=function(e){Z(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=X.length;e<t;e++)Q(this,X[e])},e.prototype.createInstance=function(t){return new e(t)},e}());t.exports=Y},{3:3}]},{},[4])(4)},oCF6:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("+mLH"),i=n("0NL6"),s=n("p9zK");let o=(()=>{class e{constructor(e){if(this.tutorial=!1,this.unreadMessagesNumber=0,this.currentSegment=0,this.lastMessageRowID=1e7,this.remainedMessagesLength=10,this.reviewWords=!1,this.searching=!1,this.messageOptionOverlay=!1,this.firstUsage=!1,this.viewLoaded=!1,this.finishedTutorial=!0,this.clipBoardText="",this.remaindMessagesOnline=10,e){if(e&&Object.keys(e).length>0){if(this.members=[],this.admins=[],this.title=e.title,this.name="collection.name",this.type=e.type,this.public=e.public,this.unreadMessagesNumber=e.unreadMessagesNumber?e.unreadMessagesNumber:0,this.storageID=e.storageID,null!=this.storageID&&(this.chatID=this.storageID),null!=e.itemID&&(this.chatID=e.itemID),null!=e.chatID&&(this.chatID=e.chatID),this.messages=[],null!=e.messages)for(let t of e.messages){let e;e="quiz"==t.type?new s.a(t):new i.a(t),this.messages.push(e)}if(this.searchedMessages=[],e.members)for(let t in e.members)this.members.push(new r.a(e.members[t]))}}else this.members=[],this.admins=[],this.messages=[],this.public=!1,this.searchedMessages=[],this.sortedMessages=[],this.unreadMessagesNumber=0,this.sortedMessages={0:[],1:[],2:[],3:[],4:[]};this.isLeitner()&&this.setReviewWords(!0)}setFirstUsage(e){this.firstUsage=e}isFirstUsage(){return this.firstUsage}getTitle(){return this.title}getCreatorID(){return this.creatorID}setCreatorID(e){this.creatorID=e}setReviewWords(e){this.reviewWords=e}hasClipBoardText(){return this.clipBoardText.length>0}setClipBoardText(e){this.clipBoardText=e}getClipBoardText(){return this.clipBoardText}clearMessages(){this.messages.length=0}setMessageOptionOverlay(e){if(this.messageOptionOverlay=e,!e)for(let t of this.messages)t.setShowOptionMenu(!1)}isShowOptionMenu(){return this.optionMenuShow}setShowOptionMenu(e){this.optionMenuShow=e}isMessageOptionOverlay(){return this.messageOptionOverlay}getSortedMesages(e){this.messages.length=0;let t=this.sortedMessages[e];if(t)for(let n in t)this.searchedMessages.push(new i.a(t[n])),this.messages.push(new i.a(t[n]))}readAllMessages(){this.unreadMessagesNumber=0}setMessages(e){this.messages.length=0,this.searchedMessages.length=0;for(let t of e)this.addMessage(t)}setInSortedMessages(){var e=Object.assign({},this.messages);this.sortedMessages[this.currentSegment]=e}changeSegment(e){this.currentSegment=e}getSimpleModel(){let t=Object.assign({},this),n=new e(t);return n.messages=[],n.members=[],n.sortedMessages=[],n.searchedMessages=[],n.item=null,n}getMemberIDs(){let e=[];for(let t of this.members)e.push(t.userID);return e}getSimpleModelWithMessages(){let t=Object.assign({},this),n=new e(t);return n.messages=this.messages,n.sortedMessages=[],n.searchedMessages=[],n.item=null,n}isOwner(e){return this.getCreatorID()==e.userID}isMember(e){return this.getMemberIDs(),this.getMemberIDs().indexOf(e.userID)>=0}hasMembers(){return this.members.length>0}getSegmentLength(e){return 0}search(e){this.messages=this.searchedMessages,this.messages=this.messages.filter(t=>{if(t.text.includes(e))return t})}searchIn(e,t){this.messages=e}endSearch(){this.messages=this.searchedMessages}getLastMessageDate(){return this.messages.length>0?this.messages[this.messages.length-1].receivedTime:"00-00-00 00:00:00"}getLastMessageSummary(){return this.messages.length>0?this.messages[this.messages.length-1].getSummary():""}getLastMessageID(){return this.messages.length>0?this.messages[this.messages.length-1].messageID:"0"}addMessage(e){this.messages.push(e),this.searchedMessages.push(e)}prependMessage(e){this.messages.unshift(e)}addMessageToLeitner(t){let n=Object.assign({},t);n.type=e.typeLeitner;let r=new i.a(n);return r.setMessageID(r.messageID+"leitner"),this.addMessage(r),r}hasMessagesInDatabase(){return this.remainedMessagesLength>0}hasMessagesOnline(){return this.remaindMessagesOnline>0}isLeitner(){return this.type==e.typeLeitner}isDictionary(){return this.type==e.typeDictionary}hasPremissionToSendMessage(){return this.isDictionary()||this.isChat()}isChat(){return this.type==e.typeChat}isQuiz(){return this.type.includes("Quiz")}isReviewWords(){return this.reviewWords}showNewWords(){return this.isLeitner()&&this.isReviewWords()}isChatInputAllowed(){return this.isDictionary()||this.isLeitner()||this.isChat()}isChatTutorial(){return this.tutorial}setFinishedTutorial(e){this.finishedTutorial=e}isFinishedTutorial(){return this.finishedTutorial}setViewLoaded(e){this.viewLoaded=e}isViewLoaded(){return this.viewLoaded}}return e.typeLeitner="leitner",e.typeDictionary="dictionary",e.typeartikelQuiz="artikelQuiz",e.typeChat="chat",e})()},olg3:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("+mLH");n("EGUZ"),n("3MOV");class i{constructor(e,t){this.storageManager=e,this.ajaxBridge=t,this.theme=!0,this.user=new r.a([])}loggedIn(){return new Promise((e,t)=>{null!=this.user&&this.user.hasAccessToken()?e(!0):this.storageManager.get("user").then(t=>{null==t&&e(!1),this.user=new r.a(t),null!=this.user&&this.user.hasAccessToken()?e(!0):e(!1)}).catch(e=>{t(e)})})}isLoggedIn(){return new Promise(e=>this.getUser().then(()=>{e(!0)}).catch(()=>{e(!1)}))}isUser(){return this.isUserValid()}getUser(){return new Promise((e,t)=>{this.isUserValid()?e(this.user):this.getUserFromStorage().then(n=>{this.user=n,this.isUserValid()?e(this.user):t("user is not valid")})})}isUserValid(){return null!=this.user&&this.user.hasAccessToken()}getUserFromStorage(){return new Promise(e=>{this.storageManager.get("user").then(t=>{e(new r.a(t))})})}logOut(){this.storageManager.set("user","")}login(e){return new Promise((t,n)=>{this.user.setLoginMethode(e),this.ajaxBridge.queryPro("login",this.user).then(e=>{console.log("friends storage name login",e),""!=e.mainAccessToken&&null!=e.mainAccessToken&&null!=e.userID?t(e):n("no-access")})})}isFirstUse(){return new Promise(e=>{this.storageManager.get("usedBefore").then(t=>{e(1==t)})}).catch()}signUp(){return new Promise((e,t)=>{this.ajaxBridge.queryPro("signUp",this.user,"public").then(t=>{1==t.created?(this.setMainAccessToken(t.token),e(t)):0==t.created&&(console.log("this user exits"),e(t))}).catch(e=>{console.log("an error occured",e),t(e)})})}setMainAccessToken(e){this.user.setMainAccessToken(e),this.save()}save(){this.storageManager.set("user",this.user)}}},p74H:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.overlaysWebView=function(e){return Object(i.cordova)(this,"overlaysWebView",{sync:!0},arguments)},t.prototype.styleDefault=function(){return Object(i.cordova)(this,"styleDefault",{sync:!0},arguments)},t.prototype.styleLightContent=function(){return Object(i.cordova)(this,"styleLightContent",{sync:!0},arguments)},t.prototype.styleBlackTranslucent=function(){return Object(i.cordova)(this,"styleBlackTranslucent",{sync:!0},arguments)},t.prototype.styleBlackOpaque=function(){return Object(i.cordova)(this,"styleBlackOpaque",{sync:!0},arguments)},t.prototype.backgroundColorByName=function(e){return Object(i.cordova)(this,"backgroundColorByName",{sync:!0},arguments)},t.prototype.backgroundColorByHexString=function(e){return Object(i.cordova)(this,"backgroundColorByHexString",{sync:!0},arguments)},t.prototype.hide=function(){return Object(i.cordova)(this,"hide",{sync:!0},arguments)},t.prototype.show=function(){return Object(i.cordova)(this,"show",{sync:!0},arguments)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return Object(i.cordovaPropertyGet)(this,"isVisible")},set:function(e){Object(i.cordovaPropertySet)(this,"isVisible",e)},enumerable:!0,configurable:!0}),t.pluginName="StatusBar",t.plugin="cordova-plugin-statusbar",t.pluginRef="StatusBar",t.repo="https://github.com/apache/cordova-plugin-statusbar",t.platforms=["Android","iOS","Windows"],t}(i.IonicNativePlugin)},p9zK:function(e,t,n){"use strict";var r=n("0NL6");class i extends class{}{constructor(e){super(),this.selectable=!0,this.selected=!1,this.name="",this.isRight=e.isRight,this.selected=e.selected,this.name=e.name,this.selectable=e.selectable}canSelect(){return this.selectable}setSelected(e){this.selected=e}setSelectable(e){this.selectable=e}}n.d(t,"a",(function(){return s}));class s extends r.a{constructor(e){super(e),this.buttons=[],null==e.buttons&&(e.buttons=e.answers),null==e.buttons&&(e.buttons=e.content.answers),null==e.buttons&&(e.buttons=JSON.parse(e.content).answers),this.initButtons(e)}initButtons(e){let t=this;null!=e.buttons&&Object.keys(e.buttons).forEach((function(n){null==e.buttons[n].selected&&(e.buttons[n].selected=!1),null==e.buttons[n].selectable&&(e.buttons[n].selectable=!0),t.buttons.push(new i(e.buttons[n]))}))}getSummary(){return this.text.slice(28,38)}}},pJ1N:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("EVdn");class i{constructor(e,t){this.viewCtrl=e,this.platform=t,this.width="0px",this.height="0px",this.top="0px",this.left="0px",this.textWidth="84vw",this.textHeight="auto",this.textTop="40vh",this.textLeft="20px",this.buttonLeft="20px",this.buttonTop="20px",console.log("Hello TourGuideComponent Component"),this.next()}next(){0==this.tourGuideMgr.tips.length?this.close():(this.currentTip=this.tourGuideMgr.getTip(),this.text=this.currentTip.text,this.currentTip.element&&this.currentTip.element.length>0&&this.focusOnElement())}clickAndNext(){this.currentTip&&this.currentTip.element&&(this.currentTip.element.click(),0==this.tourGuideMgr.tips.length&&this.setUserLearned(!0)),this.next()}setUserLearned(e){}close(){}focus(e){}gotIt(){this.close()}ionViewDidLoad(){}ngOnChanges(){console.log("text height is",r(".text").css("height")),this.textTop=this.currentTip.element.offset().top-parseInt(r(".text").css("height"))+"px"}canButtonGotShow(){return 0==this.tourGuideMgr.tips.length}focusOnElement(){this.width=this.currentTip.element.width()+5+"px",this.height=this.currentTip.element.height()+5+"px",null!=this.currentTip.width&&(this.width=this.currentTip.width+"px",this.height=this.currentTip.height+"px"),this.top=this.currentTip.element.offset().top-2+"px",this.left=this.currentTip.element.offset().left-2+"px";let e=r("<div style='font-size:19px; font-family: Yekan;font-weight: bold; width:84vw; height:auto; padding:10px'>"+this.text+"</div>");r("body").append(e);let t=this.currentTip.element.offset().top-e.height();this.textTop=t<10?this.currentTip.element.height()+10+"px":-e.height()-20+"px",this.currentTip.element.offset().left+e.width()>this.platform.width()?this.textLeft=this.platform.width()-this.currentTip.element.offset().left-e.width()-10+"px":this.currentTip.element.offset().left<10&&(this.textLeft=this.currentTip.element.offset().left+"px"),this.buttonTop=this.currentTip.element.height+this.top+5+"px"}}},pLZG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e,t){return function(n){return n.lift(new s(e,t))}}class s{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}class o extends r.a{constructor(e,t,n){super(e),this.predicate=t,this.thisArg=n,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}},pMnS:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("8Y7J"),i=n("iInd"),s=r.qb({encapsulation:2,styles:[],data:{}});function o(e){return r.Nb(0,[(e()(),r.sb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),r.rb(1,212992,null,0,i.o,[i.b,r.O,r.j,[8,null],r.h],null,null)],(function(e,t){e(t,1,0)}),null)}function a(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ng-component",[],null,null,null,o,s)),r.rb(1,49152,null,0,i.C,[],null,null)],null,null)}var l=r.ob("ng-component",i.C,a,{},{},[])},pY0Z:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("0NL6");class i extends r.a{static get adsMessageType(){return"adsMessage"}constructor(e){super(e),this.text=e.title,this.init(e),this.type=i.adsMessageType,this.body=e.body,this.coverImage=e.coverImage,this.icon=e.icon,this.received=!1}init(e){var t=this;Object.keys(e).forEach((function(n){t[n]=e[n]}))}setAdsPlacement(e){this.placemenet=e}}},pchL:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("ws0j"),i=n("XnfD"),s=n("x/Nk");const o=e=>Object(i.a)().duration(e?400:300),a=e=>{let t,n;const s=e.width+8,a=Object(i.a)(),l=Object(i.a)();e.isEndSide?(t=s+"px",n="0px"):(t=-s+"px",n="0px"),a.addElement(e.menuInnerEl).fromTo("transform",`translateX(${t})`,`translateX(${n})`);const c="ios"===Object(r.b)(e),u=c?.2:.25;return l.addElement(e.backdropEl).fromTo("opacity",.01,u),o(c).addAnimation([a,l])},l=e=>{let t,n;const s=Object(r.b)(e),a=e.width;e.isEndSide?(t=-a+"px",n=a+"px"):(t=a+"px",n=-a+"px");const l=Object(i.a)().addElement(e.menuInnerEl).fromTo("transform",`translateX(${n})`,"translateX(0px)"),c=Object(i.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${t})`),u=Object(i.a)().addElement(e.backdropEl).fromTo("opacity",.01,.32);return o("ios"===s).addAnimation([l,c,u])},c=e=>{const t=Object(r.b)(e),n=e.width*(e.isEndSide?-1:1)+"px",s=Object(i.a)().addElement(e.contentEl).fromTo("transform","translateX(0px)",`translateX(${n})`);return o("ios"===t).addAnimation(s)},u=(()=>{const e=new Map,t=[],n=async e=>(await p(),"start"===e||"end"===e?d(t=>t.side===e&&!t.disabled)||d(t=>t.side===e):null!=e?d(t=>t.menuId===e):d(e=>!e.disabled)||(t.length>0?t[0].el:void 0)),r=async()=>(await p(),u()),i=(t,n)=>{e.set(t,n)},o=e=>{const n=e.side;t.filter(t=>t.side===n&&t!==e).forEach(e=>e.disabled=!0)},u=()=>d(e=>e._isOpen),h=()=>t.some(e=>e.isAnimating),d=e=>{const n=t.find(e);if(void 0!==n)return n.el},p=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(e=>e.componentOnReady()));return i("reveal",c),i("push",l),i("overlay",a),"undefined"!=typeof document&&document.addEventListener("ionBackButton",e=>{const t=u();t&&e.detail.register(s.MENU_BACK_BUTTON_PRIORITY,()=>t.close())}),{registerAnimation:i,get:n,getMenus:async()=>(await p(),t.map(e=>e.el)),getOpen:r,isEnabled:async e=>{const t=await n(e);return!!t&&!t.disabled},swipeGesture:async(e,t)=>{const r=await n(t);return r&&(r.swipeGesture=e),r},isAnimating:async()=>(await p(),h()),isOpen:async e=>{if(null!=e){const t=await n(e);return void 0!==t&&t.isOpen()}return void 0!==await r()},enable:async(e,t)=>{const r=await n(t);return r&&(r.disabled=!e),r},toggle:async e=>{const t=await n(e);return!!t&&t.toggle()},close:async e=>{const t=await(void 0!==e?n(e):r());return void 0!==t&&t.close()},open:async e=>{const t=await n(e);return!!t&&t.open()},_getOpenSync:u,_createAnimation:(t,n)=>{const r=e.get(t);if(!r)throw new Error("animation not registered");return r(n)},_register:e=>{t.indexOf(e)<0&&(e.disabled||o(e),t.push(e))},_unregister:e=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_setOpen:async(e,t,n)=>{if(h())return!1;if(t){const t=await r();t&&e.el!==t&&await t.setOpen(!1,!1)}return e._setOpen(t,n)},_setActiveMenu:o}})()},pfga:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.sentence=e.sentence,this.translation=e.translation,this.word=e.word}}},"pxS/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}));var r=n("KOl+");function i(e,t){return!0===Object(r.a)(e,t)?Object(r.b)(e.constructor.getPluginRef())[t]:null}function s(e,t,n){!0===Object(r.a)(e,t)&&(Object(r.b)(e.constructor.getPluginRef())[t]=n)}},qu3L:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("m/40"),s=n("g4Gf"),o=n("wZ9J"),a=n("olg3"),l=n("sZkV"),c=n("kbZ1"),u=n("J20c"),h=n("EGUZ"),d=n("2IJ5"),p=n("0+M4"),f=n("MKJQ"),g=n("ri/Y"),m=n("HcDZ"),b=n("SVse"),v=n("TSSN"),y=n("h4wn"),w=n("sk1z"),_=n("/qZA"),C=n("iInd"),x=n("ja1e"),O=n("Ff54"),S=n("LKtr"),E=n("nBaR"),k=n("QA36"),T=n("kNMb"),M=n("BNVH"),A=n("p74H"),I=n("AcVp"),D=n("PJj0"),P=n("MF7w"),N=n("ZZmf"),j=n("GAbP"),R=n("0FpF"),L=n("FUig");n.d(t,"a",(function(){return z}));var F=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   ion-content.content[_ngcontent-%COMP%]   .scroll-content[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}ion-item.item[_ngcontent-%COMP%]{background:green;height:300;border-radius:25px;margin-bottom:2px;color:green}ion-item.item[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{float:right;font-size:30px}.swipLayer[_ngcontent-%COMP%]{width:100%;height:100%}debug-dialog[_ngcontent-%COMP%]{position:absolute;top:-93px;z-index:2;left:40px}debug-dialog[_ngcontent-%COMP%]   ion-card[_ngcontent-%COMP%], debug-dialog[_ngcontent-%COMP%]   ion-card[_ngcontent-%COMP%]   ion-item.item[_ngcontent-%COMP%]{opacity:1}ion-fab[_ngcontent-%COMP%]{left:20px;bottom:80px}"]],data:{}});function $(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openItem(e.context.$implicit)&&r),r}),i.c,i.b)),r.rb(1,5292032,null,0,s.a,[o.a,a.a,l.Gb,l.Fb,c.a,u.a,h.a,l.Jb,d.a,p.a,l.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function B(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[["class","publicItems"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openItem(e.context.$implicit)&&r),r}),i.c,i.b)),r.rb(1,5292032,null,0,s.a,[o.a,a.a,l.Gb,l.Fb,c.a,u.a,h.a,l.Jb,d.a,p.a,l.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function V(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-header",[],null,null,null,f.eb,f.p)),r.rb(1,49152,null,0,l.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,2,"comp-header",[["itemsPage","true"],["showMenuBtn","true"]],null,null,null,g.c,g.b)),r.rb(3,4308992,null,0,m.a,[l.Gb,b.g,c.a,u.a,d.a,a.a,l.Fb,v.j,y.a,w.a,l.Eb,p.a,_.a,C.m],{textToUse:[0,"textToUse"],itemsPage:[1,"itemsPage"],showMenuBtn:[2,"showMenuBtn"]},null),r.Fb(131072,v.i,[v.j,r.h]),(e()(),r.sb(5,0,null,null,6,"ion-content",[["class","ion-padding"]],null,null,null,f.Y,f.j)),r.rb(6,49152,null,0,l.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,4,"div",[],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,$)),r.rb(9,278528,null,0,b.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.hb(16777216,null,null,1,null,B)),r.rb(11,278528,null,0,b.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(12,0,null,null,1,"comp-footer",[],null,null,null,x.c,x.b)),r.rb(13,49152,null,0,O.a,[l.Gb,S.a,y.a,c.a,d.a],null,null)],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,4).transform("TITLE.items")),""),"true","true"),e(t,9,0,n.itemsManager.items),e(t,11,0,n.itemsManager.publicItems)}),null)}function q(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-items",[],null,null,null,V,F)),r.rb(1,4767744,null,0,E.a,[l.Gb,c.a,k.a,T.a,S.a,_.a,a.a,y.a,u.a,C.m,h.a,M.a,A.a,v.j,I.a,D.a,P.a,N.a,d.a,j.a,w.a,R.a,l.Jb,L.a,l.Fb,p.a],null,null)],null,null)}var z=r.ob("page-items",E.a,q,{},{},[])},quSY:function(e,t,n){"use strict";var r=n("DH7j"),i=n("XoHu"),s=n("n6bG");const o=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();n.d(t,"a",(function(){return a}));let a=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:c}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(Object(s.a)(a))try{a.call(this)}catch(u){t=u instanceof o?l(u.errors):[u]}if(Object(r.a)(c)){let e=-1,n=c.length;for(;++e<n;){const n=c[e];if(Object(i.a)(n))try{n.unsubscribe()}catch(u){t=t||[],u instanceof o?t=t.concat(l(u.errors)):t.push(u)}}}if(t)throw new o(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}var t;return e.EMPTY=((t=new e).closed=!0,t),e})();function l(e){return e.reduce((e,t)=>e.concat(t instanceof o?t.errors:t),[])}},"ri/Y":function(e,t,n){"use strict";var r=n("8Y7J"),i=n("B/Pu"),s=n("ds6b"),o=n("J20c"),a=n("sZkV"),l=n("iunF"),c=n("TSSN"),u=n("MKJQ"),h=n("SVse"),d=n("s7LF"),p=n("FbN9"),f=n("BzsH"),g=n("/HVE"),m=n("HcDZ"),b=n("kbZ1"),v=n("2IJ5"),y=n("olg3"),w=n("h4wn"),_=n("sk1z"),C=n("0+M4"),x=n("/qZA"),O=n("iInd");n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return V})),n.d(t,"a",(function(){return z}));var S=r.qb({encapsulation:0,styles:[["ion-title[_ngcontent-%COMP%]{font-size:16px!important;position:relative;margin-right:5px;width:100%;color:#fff}.search-input[_ngcontent-%COMP%]{font-size:14px}.search-icon[_ngcontent-%COMP%]{margin-left:10px;margin-right:-10px;color:#000}.search-col[_ngcontent-%COMP%]{width:100%}ion-icon[_ngcontent-%COMP%]{font-size:25px;font-weight:700;color:#fff}.background[_ngcontent-%COMP%]{background-image:linear-gradient(to right,#71b6f7 0,#a95bd6 150%)}.background[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:transparent;width:100%;height:100%;font-size:25px}ion-col[_ngcontent-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:space-between}ion-badge.badge[_ngcontent-%COMP%]{position:absolute;top:-5px;right:-5px;font-size:13px;border-radius:100%;padding:4px}ion-input[_ngcontent-%COMP%]{border-radius:25px;background-color:#dcdcdc;text-align:center}ion-input[_ngcontent-%COMP%]   input.text-input[_ngcontent-%COMP%]{padding-left:30px;margin:13px 8px}#points[_ngcontent-%COMP%]{color:#fff;float:right;margin-top:20px;position:relative}#points[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:13px!important;color:#fff}"]],data:{}});function E(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"chat-option-menu",[],null,null,null,i.c,i.b)),r.rb(1,5292032,null,0,s.a,[o.a,a.Fb,l.a,c.j],{chat:[0,"chat"],headerComp:[1,"headerComp"]},null)],(function(e,t){var n=t.component;e(t,1,0,n.chat,n)}),null)}function k(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showMenu()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","menu"]],null,null,null,u.fb,u.q)),r.rb(2,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"menu")}),(function(e,t){e(t,0,0,t.component.chatPage)}))}function T(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.goBack()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","arrow-back"]],null,null,null,u.fb,u.q)),r.rb(2,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"arrow-back")}),null)}function M(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[["style","padding-left: 7px;"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showDetails()&&r),r}),u.Bb,u.M)),r.rb(1,49152,null,0,a.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.text)}))}function A(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[["style","padding-left: 7px;"]],null,null,null,u.Bb,u.M)),r.rb(1,49152,null,0,a.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.text)}))}function I(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"ion-title",[],null,null,null,u.Bb,u.M)),r.rb(1,49152,null,0,a.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "]))],null,(function(e,t){e(t,2,0,t.component.socketManager.getMessage())}))}function D(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,6,"div",[],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,M)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,A)),r.rb(4,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,I)),r.rb(6,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.socketManager.connected&&n.isChatPage()),e(t,4,0,n.socketManager.connected&&!n.isChatPage()),e(t,6,0,!n.isConnected())}),null)}function P(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,9,"ion-input",[["class","search-input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,3)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,3)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.needle=n)&&i),"input"===t&&(i=!1!==s.onInput(n)&&i),i}),u.ib,u.t)),r.rb(1,49152,null,0,a.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],value:[1,"value"]},null),r.Fb(131072,c.i,[c.j,r.h]),r.rb(3,4341760,null,0,a.Nb,[r.p,r.k],null,null),r.Ib(1024,null,d.e,(function(e){return[e]}),[a.Nb]),r.rb(5,671744,null,0,d.h,[[8,null],[8,null],[8,null],[6,d.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,d.f,null,[d.h]),r.rb(7,16384,null,0,d.g,[[4,d.f]],null,null),(e()(),r.sb(8,0,null,0,1,"ion-icon",[["class","search-icon"],["name","search"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.searchInDatabase()&&r),r}),u.fb,u.q)),r.rb(9,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=t.component;e(t,1,0,r.wb(1,"",r.Mb(t,1,0,r.Eb(t,2).transform("HEADER.Search.placeHolderChat")),""),n.needle),e(t,5,0,n.needle),e(t,9,0,"search")}),(function(e,t){e(t,0,0,r.Eb(t,7).ngClassUntouched,r.Eb(t,7).ngClassTouched,r.Eb(t,7).ngClassPristine,r.Eb(t,7).ngClassDirty,r.Eb(t,7).ngClassValid,r.Eb(t,7).ngClassInvalid,r.Eb(t,7).ngClassPending)}))}function N(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,9,"ion-input",[["class","search-input"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,3)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,3)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.needle=n)&&i),"input"===t&&(i=!1!==s.onInput(n)&&i),i}),u.ib,u.t)),r.rb(1,49152,null,0,a.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],value:[1,"value"]},null),r.Fb(131072,c.i,[c.j,r.h]),r.rb(3,4341760,null,0,a.Nb,[r.p,r.k],null,null),r.Ib(1024,null,d.e,(function(e){return[e]}),[a.Nb]),r.rb(5,671744,null,0,d.h,[[8,null],[8,null],[8,null],[6,d.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,d.f,null,[d.h]),r.rb(7,16384,null,0,d.g,[[4,d.f]],null,null),(e()(),r.sb(8,0,null,0,1,"ion-icon",[["class","search-icon"],["name","search"]],null,null,null,u.fb,u.q)),r.rb(9,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){var n=t.component;e(t,1,0,r.wb(1,"",r.Mb(t,1,0,r.Eb(t,2).transform("HEADER.Search.placeHolderItems")),""),n.needle),e(t,5,0,n.needle),e(t,9,0,"search")}),(function(e,t){e(t,0,0,r.Eb(t,7).ngClassUntouched,r.Eb(t,7).ngClassTouched,r.Eb(t,7).ngClassPristine,r.Eb(t,7).ngClassDirty,r.Eb(t,7).ngClassValid,r.Eb(t,7).ngClassInvalid,r.Eb(t,7).ngClassPending)}))}function j(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"div",[["class","search-col"]],null,null,null,null,null)),(e()(),r.hb(16777216,null,null,1,null,P)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,null,1,null,N)),r.rb(4,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.isChatPage()),e(t,4,0,!n.isChatPage())}),null)}function R(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"div",[["id","points"]],[[8,"hidden",0]],null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"span",[],null,null,null,null,null)),(e()(),r.Lb(2,null,["",""])),r.Fb(131072,c.i,[c.j,r.h]),(e()(),r.sb(4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r.Lb(5,null,["",""]))],null,(function(e,t){var n=t.component;e(t,0,0,n.searchInputVisible),e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("HEADER.ChatPage.points"))),e(t,5,0,n.userManager.user.points)}))}function L(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showChatOptionMenu()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","ellipsis-vertical"]],null,null,null,u.fb,u.q)),r.rb(2,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"ellipsis-vertical")}),null)}function F(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.search()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","ellipsis-vertical"]],null,null,null,u.fb,u.q)),r.rb(2,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"ellipsis-vertical")}),null)}function $(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancel()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,1,"ion-icon",[["name","close"]],null,null,null,u.fb,u.q)),r.rb(2,49152,null,0,a.C,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,2,0,"close")}),null)}function B(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,7,"ion-buttons",[["class","searchButton"]],null,null,null,u.T,u.e)),r.rb(1,49152,null,0,a.l,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,L)),r.rb(3,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,F)),r.rb(5,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,$)),r.rb(7,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,n.isChatPage()&&!n.searchInputVisible),e(t,5,0,!n.searchInputVisible&&!n.isChatPage()),e(t,7,0,n.searchInputVisible)}),null)}function V(e){return r.Nb(0,[r.Jb(671088640,1,{navBar:0}),(e()(),r.hb(16777216,null,null,1,null,E)),r.rb(2,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(3,0,null,null,26,"mat-toolbar",[["class","background mat-toolbar"]],[[2,"mat-toolbar-multiple-rows",null],[2,"mat-toolbar-single-row",null]],null,null,p.b,p.a)),r.rb(4,4243456,null,1,f.a,[r.k,g.a,h.d],null,null),r.Jb(603979776,2,{_toolbarRows:1}),(e()(),r.sb(6,0,null,0,23,"ion-grid",[],null,null,null,u.db,u.o)),r.rb(7,49152,null,0,a.A,[r.h,r.k,r.x],null,null),(e()(),r.sb(8,0,null,0,21,"ion-row",[["class","ion-align-item-center"]],null,null,null,u.qb,u.B)),r.rb(9,49152,null,0,a.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,7,"ion-col",[["class","ion-align-self-center"],["size","2"]],null,null,null,u.X,u.i)),r.rb(11,49152,null,0,a.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.sb(12,0,null,0,5,"ion-buttons",[["class","menuBtn"],["start",""]],null,null,null,u.T,u.e)),r.rb(13,49152,null,0,a.l,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,k)),r.rb(15,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,T)),r.rb(17,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(18,0,null,0,7,"ion-col",[["class","ion-align-self-center"],["size","9"]],null,null,null,u.X,u.i)),r.rb(19,49152,null,0,a.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.hb(16777216,null,0,1,null,D)),r.rb(21,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,j)),r.rb(23,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,R)),r.rb(25,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(26,0,null,0,3,"ion-col",[["class","ion-align-self-center"],["size","1"]],null,null,null,u.X,u.i)),r.rb(27,49152,null,0,a.t,[r.h,r.k,r.x],{size:[0,"size"]},null),(e()(),r.hb(16777216,null,0,1,null,B)),r.rb(29,16384,null,0,h.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,2,0,n.isShowOptionMenu()),e(t,11,0,"2"),e(t,15,0,n.showMenuBtn),e(t,17,0,n.showBackBtn),e(t,19,0,"9"),e(t,21,0,!n.searchInputVisible),e(t,23,0,n.searchInputVisible),e(t,25,0,n.isQuiz()),e(t,27,0,"1"),e(t,29,0,n.hasSearchBtn())}),(function(e,t){e(t,3,0,r.Eb(t,4)._toolbarRows.length>0,0===r.Eb(t,4)._toolbarRows.length)}))}function q(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"comp-header",[],null,null,null,V,S)),r.rb(1,4308992,null,0,m.a,[a.Gb,h.g,b.a,o.a,v.a,y.a,a.Fb,c.j,w.a,_.a,a.Eb,C.a,x.a,O.m],null,null)],(function(e,t){e(t,1,0)}),null)}var z=r.ob("comp-header",m.a,q,{textToUse:"myText",chatPage:"chatPage",friendsPage:"friendsPage",allowDescription:"allowDescription",itemsPage:"itemsPage",showMenuBtn:"showMenuBtn",showBackBtn:"showBackBtn",chat:"chat"},{},[])},rxGk:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));class r{constructor(e,t,n,r,i){this.id=t,this.name=n,this.disableScroll=i,this.priority=1e6*r+t,this.ctrl=e}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 e=this.ctrl.capture(this.name,this.id,this.priority);return e&&this.disableScroll&&this.ctrl.disableScroll(this.id),e}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class i{constructor(e,t,n,r){this.id=t,this.disable=n,this.disableScroll=r,this.ctrl=e}block(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.disableGesture(e,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const e of this.disable)this.ctrl.enableGesture(e,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const s=new class{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(e){return new r(this,this.newID(),e.name,e.priority||0,!!e.disableScroll)}createBlocker(e={}){return new i(this,this.newID(),e.disable,!!e.disableScroll)}start(e,t,n){return this.canStart(e)?(this.requestedStart.set(t,n),!0):(this.requestedStart.delete(t),!1)}capture(e,t,n){if(!this.start(e,t,n))return!1;const r=this.requestedStart;let i=-1e4;if(r.forEach(e=>{i=Math.max(i,e)}),i===n){this.capturedId=t,r.clear();const n=new CustomEvent("ionGestureCaptured",{detail:{gestureName:e}});return document.dispatchEvent(n),!0}return r.delete(t),!1}release(e){this.requestedStart.delete(e),this.capturedId===e&&(this.capturedId=void 0)}disableGesture(e,t){let n=this.disabledGestures.get(e);void 0===n&&(n=new Set,this.disabledGestures.set(e,n)),n.add(t)}enableGesture(e,t){const n=this.disabledGestures.get(e);void 0!==n&&n.delete(t)}disableScroll(e){this.disabledScroll.add(e),1===this.disabledScroll.size&&document.body.classList.add("backdrop-no-scroll")}enableScroll(e){this.disabledScroll.delete(e),0===this.disabledScroll.size&&document.body.classList.remove("backdrop-no-scroll")}canStart(e){return void 0===this.capturedId&&!this.isDisabled(e)}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(e){const t=this.disabledGestures.get(e);return!!(t&&t.size>0)}newID(){return this.gestureId++,this.gestureId}}},s6ns:function(e,t,n){"use strict";var r=n("8Y7J"),i=n("zMNK"),s=n("dvZr"),o=n("XNiG"),a=n("NXyV"),l=n("LRne"),c=n("pLZG"),u=n("IzEk"),h=n("JX91"),d=n("IP0z"),p=n("QQfA");n.d(t,"g",(function(){return O})),n.d(t,"c",(function(){return C})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return f}));class f{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}function g(){throw Error("Attempting to attach dialog content after content is already attached")}class m extends i.a{constructor(e,t,n,i,s){super(),this._elementRef=e,this._focusTrapFactory=t,this._changeDetectorRef=n,this._document=i,this._config=s,this._elementFocusedBeforeDialogWasOpened=null,this._state="enter",this._animationStateChanged=new r.m,this._ariaLabelledBy=s.ariaLabelledBy||null}attachComponentPortal(e){return this._portalOutlet.hasAttached()&&g(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}attachTemplatePortal(e){return this._portalOutlet.hasAttached()&&g(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}_trapFocus(){const e=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(e)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{const t=this._document.activeElement;t===e||e.contains(t)||e.focus()}}_restoreFocus(){const e=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&e&&"function"==typeof e.focus&&e.focus(),this._focusTrap&&this._focusTrap.destroy()}_savePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(()=>this._elementRef.nativeElement.focus()))}_onAnimationDone(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}_onAnimationStart(e){this._animationStateChanged.emit(e)}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}let b=0;class v{constructor(e,t,n,r="mat-dialog-"+b++){this._overlayRef=e,this._containerInstance=t,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new o.a,this._afterClosed=new o.a,this._beforeClosed=new o.a,this._state=0,t._id=r,t._animationStateChanged.pipe(Object(c.a)(e=>"done"===e.phaseName&&"enter"===e.toState),Object(u.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(Object(c.a)(e=>"done"===e.phaseName&&"exit"===e.toState),Object(u.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._overlayRef.dispose()}),e.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),e.keydownEvents().pipe(Object(c.a)(e=>e.keyCode===s.d&&!this.disableClose&&!Object(s.m)(e))).subscribe(e=>{e.preventDefault(),this.close()})}close(e){this._result=e,this._containerInstance._animationStateChanged.pipe(Object(c.a)(e=>"start"===e.phaseName),Object(u.a)(1)).subscribe(t=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._state=2,this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>{this._overlayRef.dispose()},t.totalTime+100)}),this._containerInstance._startExitAnimation(),this._state=1}afterOpened(){return this._afterOpened.asObservable()}afterClosed(){return this._afterClosed.asObservable()}beforeClosed(){return this._beforeClosed.asObservable()}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(e){let t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(e="",t=""){return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}addPanelClass(e){return this._overlayRef.addPanelClass(e),this}removePanelClass(e){return this._overlayRef.removePanelClass(e),this}afterOpen(){return this.afterOpened()}beforeClose(){return this.beforeClosed()}getState(){return this._state}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}const y=new r.o("MatDialogData"),w=new r.o("mat-dialog-default-options"),_=new r.o("mat-dialog-scroll-strategy");function C(e){return()=>e.scrollStrategies.block()}class x{constructor(e,t,n,r,i,s,l){this._overlay=e,this._injector=t,this._location=n,this._defaultOptions=r,this._parentDialog=s,this._overlayContainer=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new o.a,this._afterOpenedAtThisLevel=new o.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(a.a)(()=>this.openDialogs.length?this._afterAllClosed:this._afterAllClosed.pipe(Object(h.a)(void 0))),this._scrollStrategy=i}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}get afterOpen(){return this.afterOpened}get _afterAllClosed(){const e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}open(e,t){if((t=function(e,t){return Object.assign({},t,e)}(t,this._defaultOptions||new f)).id&&this.getDialogById(t.id))throw Error(`Dialog with id "${t.id}" exists already. The dialog id must be unique.`);const n=this._createOverlay(t),r=this._attachDialogContainer(n,t),i=this._attachDialogContent(e,r,n,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(i),i.afterClosed().subscribe(()=>this._removeOpenDialog(i)),this.afterOpened.next(i),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(e){const t=this._getOverlayConfig(e);return this._overlay.create(t)}_getOverlayConfig(e){const t=new p.b({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachDialogContainer(e,t){const n=new i.e(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[f,t]])),r=new i.c(m,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(r).instance}_attachDialogContent(e,t,n,s){const o=new v(n,t,this._location,s.id);if(s.hasBackdrop&&n.backdropClick().subscribe(()=>{o.disableClose||o.close()}),e instanceof r.L)t.attachTemplatePortal(new i.g(e,null,{$implicit:s.data,dialogRef:o}));else{const n=this._createInjector(s,o,t),r=t.attachComponentPortal(new i.c(e,void 0,n));o.componentInstance=r.instance}return o.updateSize(s.width,s.height).updatePosition(s.position),o}_createInjector(e,t,n){const r=e&&e.viewContainerRef&&e.viewContainerRef.injector,s=new WeakMap([[m,n],[y,e.data],[v,t]]);return!e.direction||r&&r.get(d.c,null)||s.set(d.c,{value:e.direction,change:Object(l.a)()}),new i.e(r||this._injector,s)}_removeOpenDialog(e){const t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((e,t)=>{e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}_hideNonDialogContentFromAssistiveTechnology(){const e=this._overlayContainer.getContainerElement();if(e.parentElement){const t=e.parentElement.children;for(let n=t.length-1;n>-1;n--){let r=t[n];r===e||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}}class O{}},s7LF:function(e,t,n){"use strict";n.d(t,"j",(function(){return Z})),n.d(t,"k",(function(){return S})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return J})),n.d(t,"i",(function(){return Q})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return Y}));var r=n("8Y7J"),i=n("cUpR"),s=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new r.o("NgValueAccessor"),c=new r.o("CompositionEventMode");class u{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.r)()?Object(i.r)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}class h{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(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class d extends h{get formDirective(){return null}get path(){return null}}function p(){throw new Error("unimplemented")}class f extends h{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return p()}get asyncValidator(){return p()}}class g extends class{constructor(e){this._cd=e}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}}{constructor(e){super(e)}}function m(e){return null==e||0===e.length}const b=new r.o("NgValidators"),v=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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 y{static min(e){return t=>{if(m(t.value)||m(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}static max(e){return t=>{if(m(t.value)||m(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}static required(e){return m(e.value)?{required:!0}:null}static requiredTrue(e){return!0===e.value?null:{required:!0}}static email(e){return m(e.value)||v.test(e.value)?null:{email:!0}}static minLength(e){return t=>{if(m(t.value))return null;const n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}static maxLength(e){return t=>{const n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}static pattern(e){if(!e)return y.nullValidator;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(m(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(e){return null}static compose(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){return C(function(e,t){return t.map(t=>t(e))}(e,t))}}static composeAsync(e){if(!e)return null;const t=e.filter(w);return 0==t.length?null:function(e){const n=function(e,t){return t.map(t=>t(e))}(e,t).map(_);return Object(s.a)(n).pipe(Object(a.a)(C))}}}function w(e){return null!=e}function _(e){const t=Object(r.zb)(e)?Object(o.a)(e):e;if(!Object(r.yb)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function C(e){const t=e.reduce((e,t)=>null!=t?Object.assign({},e,t):e,{});return 0===Object.keys(t).length?null:t}function x(e){return e.validate?t=>e.validate(t):e}function O(e){return e.validate?t=>e.validate(t):e}class S{constructor(){this._accessors=[]}add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}const E='\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    });',k='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';function T(e,t){return[...t.path,e]}function M(e,t){e||I(t,"Cannot find control with"),t.valueAccessor||I(t,"No value accessor for form control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&A(e,t)})}(e,t),function(e,t){e.registerOnChange((e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&A(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(e=>{t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())}),t._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(()=>e.updateValueAndValidity())})}function A(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function I(e,t){let n;throw n=e.path.length>1?`path: '${e.path.join(" -> ")}'`:e.path[0]?`name: '${e.path}'`:"unspecified name attribute",new Error(`${t} ${n}`)}function D(e){return null!=e?y.compose(e.map(x)):null}function P(e){return null!=e?y.composeAsync(e.map(O)):null}const N=[class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r.Ab}set compareWith(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},class{constructor(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=r.Ab}set compareWith(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(t.hasOwnProperty("selectedOptions")){const e=t.selectedOptions;for(let t=0;t<e.length;t++){const r=e.item(t),i=this._getOptionValue(r.value);n.push(i)}}else{const e=t.options;for(let t=0;t<e.length;t++){const r=e.item(t);if(r.selected){const e=this._getOptionValue(r.value);n.push(e)}}}this.value=n,e(n)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(e){const t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t)._value,e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},class{constructor(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(f),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}fireUncheck(e){this.writeValue(e)}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_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    ')}}];function j(e){const t=L(e)?e.validators:e;return Array.isArray(t)?D(t):t||null}function R(e,t){const n=L(t)?t.asyncValidators:e;return Array.isArray(n)?P(n):n||null}function L(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class F{constructor(e,t){this.validator=e,this.asyncValidator=t,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(e){this.validator=j(e)}setAsyncValidators(e){this.asyncValidator=R(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(t=>{t.disable(Object.assign({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(t=>{t.enable(Object.assign({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign({},e,{skipPristineCheck:t})),this._onDisabledChange.forEach(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status="PENDING";const t=_(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>this.setErrors(t,{emitEvent:e}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce((e,t)=>e instanceof B?e.controls.hasOwnProperty(t)?e.controls[t]:null:e instanceof V&&e.at(t)||null,e))}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.m,this.statusChanges=new r.m}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){L(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class $ extends F{constructor(e=null,t,n){super(j(t),R(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class B extends F{constructor(e,t,n){super(j(t),R(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof $?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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[e])throw new Error(`Cannot find form control with name: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>e(this.controls[t],t))}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){let t=!1;return this._forEachChild((n,r)=>{t=t||this.contains(r)&&e(n)}),t}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class V extends F{constructor(e,t,n){super(j(t),R(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof $?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(e){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(e))throw new Error("Cannot find form control at index "+e)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const q=(()=>Promise.resolve(null))();class z extends d{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.m,this.form=new B({},D(e),P(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){q.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),M(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){q.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),function(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}(this._directives,e)})}addFormGroup(e){q.then(()=>{const t=this._findContainer(e.path),n=new B({});(function(e,t){null==e&&I(t,"Cannot find control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator])})(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){q.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){q.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}class U{static modelParentException(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      \n    <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    });\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      ${E}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${k}`)}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      ${E}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${k}`)}static ngFormWarning(){console.warn("\n    It looks like you're using 'ngForm'.\n\n    Support for using the 'ngForm' element selector has been deprecated in Angular v6 and will be removed\n    in Angular v9.\n\n    Use 'ng-form' instead.\n\n    Before:\n    <ngForm #myForm=\"ngForm\">\n\n    After:\n    <ng-form #myForm=\"ngForm\">\n    ")}}const H=new r.o("NgFormSelectorWarning");class W extends d{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return T(this.name,this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return D(this._validators)}get asyncValidator(){return P(this._asyncValidators)}_checkParentType(){}}class G extends W{constructor(e,t,n){super(),this._parent=e,this._validators=t,this._asyncValidators=n}_checkParentType(){this._parent instanceof G||this._parent instanceof z||U.modelGroupParentException()}}const X=(()=>Promise.resolve(null))();class J extends f{constructor(e,t,n,i){super(),this.control=new $,this._registered=!1,this.update=new r.m,this._parent=e,this._rawValidators=t||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||I(e,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return t.forEach(t=>{var s;t.constructor===u?n=t:(s=t,N.some(e=>s.constructor===e)?(r&&I(e,"More than one built-in value accessor matches form control with"),r=t):(i&&I(e,"More than one custom value accessor matches form control with"),i=t))}),i||r||n||(I(e,"No valid value accessor for form control with"),null)}(this,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object(r.Ab)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?T(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return D(this._rawValidators)}get asyncValidator(){return P(this._rawAsyncValidators)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_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(){M(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof G)&&this._parent instanceof W?U.formGroupNameException():this._parent instanceof G||this._parent instanceof z||U.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||U.missingNameException()}_updateValue(e){X.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;X.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class Q{get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}validate(e){return this.required?y.required(e):null}registerOnValidatorChange(e){this._onChange=e}}class Z{}class Y{static withConfig(e){return{ngModule:Y,providers:[{provide:H,useValue:e.warnOnDeprecatedNgFormSelector}]}}}},sSFc:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.c)(t,e),t.prototype.unzip=function(e,t,n){return Object(i.cordova)(this,"unzip",{successIndex:2,errorIndex:4},arguments)},t.pluginName="Zip",t.plugin="cordova-plugin-zip",t.pluginRef="zip",t.repo="https://github.com/MobileChromeApps/cordova-plugin-zip",t.platforms=["Android","iOS"],t}(i.IonicNativePlugin)},sUqe:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return h}));let r=(()=>{class e{}return e.CheckEvents="CheckEvents",e.UpdateItems="UpdateItems",e.UpdateFriends="getFriends",e.UpdateMessages="UpdateMessages",e.UpdateCollections="UpdateCollections",e})(),i=(()=>{class e{}return e.NewMessage="NewMessage",e.MessageRecevied="MessageReceived",e.DeliverMessage="deliver",e.Connected="Connected",e.tutorialAddCollection="tutorialAddCollection",e.updatedTitle="updatedTitle",e.platformReady="platformReady",e.SocketConnected="socketConnected",e.SocketDisconnected="socketDisconnected",e})(),s=(()=>{class e{}return e.GetCollections="getCollections",e.GetExamples="getExamples",e.GetProposition="getProposition",e.GetItem="getItem",e.GetFriend="getFriend",e.GetMessage="getMessage",e.GetConjunction="getConjunction",e.DeleteEvent="deleteEvent",e})(),o=(()=>{class e{construct(){}static getNextTheme(t){let n=e.availableThemes.indexOf(t);return n<e.availableThemes.length-1?e.availableThemes[n+1]:e.availableThemes[0]}}return e.alieh="alieh-theme",e.light="light-theme",e.dark="dark-theme",e.sparkasse="sparkasse-theme",e.spring="spring-theme",e.winter="winter-theme",e.fallen="fallen-theme",e.availableThemes=[e.alieh,e.light,e.dark,e.sparkasse,e.spring,e.winter,e.fallen],e})(),a=(()=>{class e{}return e.Dictionary="transl",e.SendMsg="sendChatMessage",e})(),l=(()=>{class e{}return e.Dictionary="dictionary",e.Chat="chat",e.Leitner="leitner",e.Quiz="quiz",e})(),c=(()=>{class e{constructor(){}get created(){return this.created}get addedToChatPage(){return this.addedToChatPage}get pushedToServer(){return this.pushedToServer}get outOfDevice(){return this.outOfDevice}get receivedByServer(){return this.receivedByServer}get deliveredToUser(){return this.deliveredToUser}get seenByUser(){return this.seenByUser}get seenByAllUsers(){return this.seenByAllUsers}get seenByMe(){return this.seenByMe}get askedForOnlineContent(){return this.askedForOnlineContent}get downloadedContent(){return this.downloadedContent}}return e.created="created",e.addedToChatPage="addedToChatPage",e.pushedToServer="pushedToServer",e.outOfDevice="outOfDevice",e.receivedByServer="receivedByServer",e.sentToUser="sentToUser",e.deliveredToUser="deliveredToUser",e.seenByUser="seenByUser",e.seenByAllUsers="seenByAllUsers",e.seenByMe="seenByMe",e.askedForOnlineContent="askedForOnlineContent",e.downloadedContent="downloadedContent",e})(),u=(()=>{class e{constructor(){}get verbFormatIsWorng(){return"VerbFormatIsWrong"}get nounHasNoArtikel(){return"NounHasNoArtikel"}get translationInSameLanguage(){return"TranslationInSameLanguage"}get wordTypeIsNotDefined(){return"WordTypeIsNotDefined"}get translationHasBeenAlreadyAdded(){return"TranslationHasBeenAlreadyAdded"}}return e.verbFormatIsWorng="VerbFormatIsWrong",e.nounHasNoArtikel="NounHasNoArtikel",e.translationInSameLanguage="TranslationInSameLanguage",e.wordTypeIsNotDefined="WordTypeIsNotDefined",e.translationHasBeenAlreadyAdded="TranslationHasBeenAlreadyAdded",e})(),h=(()=>{class e{get noun(){return"noun"}get adjective(){return"adjective"}get adverb(){return"adverb"}get combined(){return"combined"}get undefined(){}}return e.noun="noun",e.verb="verb",e.adverb="adverb",e.adjective="adjective",e.undefined="undefined",e})()},sZkV:function(e,t,n){"use strict";var r=n("mrSG"),i=n("8Y7J"),s=n("s7LF"),o=n("SVse"),a=n("iInd"),l=n("ePDZ"),c=n("ws0j"),u=(n("gHap"),n("XnfD"),n("tNMG")),h=(n("6cfT"),n("beh+"),n("PLvT"),n("rxGk"),n("ItpF"),n("PQ8F"),n("x/Nk"),n("pchL")),d=n("f1vJ"),p=n("XNiG"),f=n("xgIS"),g=n("2Vo4"),m=n("pLZG"),b=n("eIep"),v=n("/uUt");const y="undefined"!=typeof Deno,w=!(y||"undefined"==typeof global||!global.process||"string"!=typeof __filename||global.origin&&"string"==typeof global.origin),_=(y&&Deno,w?process:y&&Deno,w?process:y&&Deno,c.a);n.d(t,"a",(function(){return Pt})),n.d(t,"b",(function(){return Nt})),n.d(t,"c",(function(){return ht})),n.d(t,"d",(function(){return T})),n.d(t,"e",(function(){return at})),n.d(t,"f",(function(){return U})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return W})),n.d(t,"i",(function(){return G})),n.d(t,"j",(function(){return X})),n.d(t,"k",(function(){return J})),n.d(t,"l",(function(){return Q})),n.d(t,"m",(function(){return Z})),n.d(t,"n",(function(){return Y})),n.d(t,"o",(function(){return K})),n.d(t,"p",(function(){return ee})),n.d(t,"q",(function(){return te})),n.d(t,"r",(function(){return ne})),n.d(t,"s",(function(){return re})),n.d(t,"t",(function(){return ie})),n.d(t,"u",(function(){return se})),n.d(t,"v",(function(){return oe})),n.d(t,"w",(function(){return ae})),n.d(t,"x",(function(){return le})),n.d(t,"y",(function(){return ce})),n.d(t,"z",(function(){return ue})),n.d(t,"A",(function(){return he})),n.d(t,"B",(function(){return de})),n.d(t,"C",(function(){return pe})),n.d(t,"D",(function(){return fe})),n.d(t,"E",(function(){return ge})),n.d(t,"F",(function(){return me})),n.d(t,"G",(function(){return be})),n.d(t,"H",(function(){return ve})),n.d(t,"I",(function(){return ye})),n.d(t,"J",(function(){return we})),n.d(t,"K",(function(){return _e})),n.d(t,"L",(function(){return Ce})),n.d(t,"M",(function(){return xe})),n.d(t,"N",(function(){return Oe})),n.d(t,"O",(function(){return Se})),n.d(t,"P",(function(){return Ee})),n.d(t,"Q",(function(){return ke})),n.d(t,"R",(function(){return Te})),n.d(t,"S",(function(){return Me})),n.d(t,"T",(function(){return Ae})),n.d(t,"U",(function(){return Ie})),n.d(t,"V",(function(){return De})),n.d(t,"W",(function(){return Pe})),n.d(t,"X",(function(){return Ne})),n.d(t,"Y",(function(){return je})),n.d(t,"Z",(function(){return Re})),n.d(t,"ab",(function(){return Le})),n.d(t,"bb",(function(){return Fe})),n.d(t,"cb",(function(){return $e})),n.d(t,"db",(function(){return Be})),n.d(t,"eb",(function(){return Ve})),n.d(t,"fb",(function(){return kt})),n.d(t,"gb",(function(){return qe})),n.d(t,"hb",(function(){return ze})),n.d(t,"ib",(function(){return Ue})),n.d(t,"jb",(function(){return He})),n.d(t,"kb",(function(){return We})),n.d(t,"lb",(function(){return Ge})),n.d(t,"mb",(function(){return Xe})),n.d(t,"nb",(function(){return Je})),n.d(t,"ob",(function(){return Qe})),n.d(t,"pb",(function(){return Ze})),n.d(t,"qb",(function(){return Ye})),n.d(t,"rb",(function(){return Ke})),n.d(t,"sb",(function(){return et})),n.d(t,"tb",(function(){return Mt})),n.d(t,"ub",(function(){return tt})),n.d(t,"vb",(function(){return nt})),n.d(t,"wb",(function(){return rt})),n.d(t,"xb",(function(){return it})),n.d(t,"yb",(function(){return st})),n.d(t,"zb",(function(){return ot})),n.d(t,"Ab",(function(){return At})),n.d(t,"Bb",(function(){return Ut})),n.d(t,"Cb",(function(){return Bt})),n.d(t,"Db",(function(){return jt})),n.d(t,"Eb",(function(){return Rt})),n.d(t,"Fb",(function(){return Lt})),n.d(t,"Gb",(function(){return R})),n.d(t,"Hb",(function(){return ut})),n.d(t,"Ib",(function(){return M})),n.d(t,"Jb",(function(){return P})),n.d(t,"Kb",(function(){return Ft})),n.d(t,"Lb",(function(){return A})),n.d(t,"Mb",(function(){return I})),n.d(t,"Nb",(function(){return D})),n.d(t,"Ob",(function(){return $t})),n.d(t,"Pb",(function(){return lt})),n.d(t,"Qb",(function(){return qt}));const C=e=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(e):"function"==typeof requestAnimationFrame?requestAnimationFrame(e):setTimeout(e);class x{constructor(e,t){this.injector=e,this.el=t,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(e){this.el.nativeElement.value=this.lastValue=null==e?"":e,O(this.el)}handleChangeEvent(e,t){e===this.el.nativeElement&&(t!==this.lastValue&&(this.lastValue=t,this.onChange(t)),O(this.el))}_handleBlurEvent(e){e===this.el.nativeElement&&(this.onTouched(),O(this.el))}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.el.nativeElement.disabled=e}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let e;try{e=this.injector.get(s.f)}catch(n){}if(!e)return;e.statusChanges&&(this.statusChanges=e.statusChanges.subscribe(()=>O(this.el)));const t=e.control;t&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(e=>{if(t[e]){const n=t[e].bind(t);t[e]=(...e)=>{n(...e),O(this.el)}}})}}const O=e=>{C(()=>{const t=e.nativeElement,n=S(t);E(t,n);const r=t.closest("ion-item");r&&E(r,n)})},S=e=>{const t=e.classList,n=[];for(let r=0;r<t.length;r++){const e=t.item(r);null!==e&&k(e,"ng-")&&n.push("ion-"+e.substr(3))}return n},E=(e,t)=>{const n=e.classList;["ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"].forEach(e=>n.remove(e)),t.forEach(e=>n.add(e))},k=(e,t)=>e.substr(0,t.length)===t;let T=class extends x{constructor(e,t){super(e,t)}writeValue(e){this.el.nativeElement.checked=this.lastValue=null!=e&&e,O(this.el)}_handleIonChange(e){this.handleChangeEvent(e,e.checked)}},M=class extends x{constructor(e,t){super(e,t)}_handleIonChange(e){this.handleChangeEvent(e,e.value)}registerOnChange(e){super.registerOnChange(t=>{e(""===t?null:parseFloat(t))})}},A=class extends x{constructor(e,t){super(e,t)}_handleIonSelect(e){this.handleChangeEvent(e,e.checked)}},I=class extends x{constructor(e,t){super(e,t)}_handleChangeEvent(e){this.handleChangeEvent(e,e.value)}},D=class extends x{constructor(e,t){super(e,t)}_handleInputEvent(e){this.handleChangeEvent(e,e.value)}},P=(()=>{let e=class{constructor(e,t){this.doc=e,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,t.run(()=>{let n;this.win=e.defaultView,this.backButton.subscribeWithPriority=function(e,n){return this.subscribe(r=>r.register(e,e=>t.run(()=>n(e))))},j(this.pause,e,"pause"),j(this.resume,e,"resume"),j(this.backButton,e,"ionBackButton"),j(this.resize,this.win,"resize"),j(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),j(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(e=>{n=e}),this.win&&this.win.cordova?e.addEventListener("deviceready",()=>{n("cordova")},{once:!0}):n("dom")})}is(e){return Object(c.e)(this.win,e)}platforms(){return Object(c.d)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(e){return N(this.win.location.href,e)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia&&this.win.matchMedia("(orientation: portrait)").matches}testUserAgent(e){const t=this.win.navigator;return!!(t&&t.userAgent&&t.userAgent.indexOf(e)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(o.d),Object(i.Rb)(i.x))},token:e,providedIn:"root"}),e})();const N=(e,t)=>{t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return n?decodeURIComponent(n[1].replace(/\+/g," ")):null},j=(e,t,n)=>{t&&t.addEventListener(n,t=>{e.next(null!=t?t.detail:void 0)})};let R=(()=>{let e=class{constructor(e,t,n,r){this.location=t,this.serializer=n,this.router=r,this.direction=F,this.animated=$,this.guessDirection="forward",this.lastNavId=-1,r&&r.events.subscribe(e=>{if(e instanceof a.d){const t=e.restoredState?e.restoredState.navigationId:e.id;this.guessDirection=t<this.lastNavId?"back":"forward",this.guessAnimation=e.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?e.id:t}}),e.backButton.subscribeWithPriority(0,e=>{this.pop(),e()})}navigateForward(e,t={}){return this.setDirection("forward",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateBack(e,t={}){return this.setDirection("back",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}navigateRoot(e,t={}){return this.setDirection("root",t.animated,t.animationDirection,t.animation),this.navigate(e,t)}back(e={animated:!0,animationDirection:"back"}){return this.setDirection("back",e.animated,e.animationDirection,e.animation),this.location.back()}pop(){return Object(r.a)(this,void 0,void 0,(function*(){let e=this.topOutlet;for(;e&&!(yield e.pop());)e=e.parentOutlet}))}setDirection(e,t,n,r){this.direction=e,this.animated=L(e,t,n),this.animationBuilder=r}setTopOutlet(e){this.topOutlet=e}consumeTransition(){let e,t="root";const n=this.animationBuilder;return"auto"===this.direction?(t=this.guessDirection,e=this.guessAnimation):(e=this.animated,t=this.direction),this.direction=F,this.animated=$,this.animationBuilder=void 0,{direction:t,animation:e,animationBuilder:n}}navigate(e,t){if(Array.isArray(e))return this.router.navigate(e,t);{const n=this.serializer.parse(e.toString());return void 0!==t.queryParams&&(n.queryParams=Object.assign({},t.queryParams)),void 0!==t.fragment&&(n.fragment=t.fragment),this.router.navigateByUrl(n,t)}}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e(Object(i.Rb)(P),Object(i.Rb)(o.g),Object(i.Rb)(a.r),Object(i.Rb)(a.m,8))},token:e,providedIn:"root"}),e})();const L=(e,t,n)=>{if(!1!==t)return void 0!==n?n:"forward"===e||"back"===e?e:"root"===e&&!0===t?"forward":void 0},F="auto",$=void 0,B=(e,t)=>{const n=e.prototype;t.forEach(e=>{Object.defineProperty(n,e,{get(){return this.el[e]},set(t){this.z.runOutsideAngular(()=>this.el[e]=t)}})})},V=(e,t)=>{const n=e.prototype;t.forEach(e=>{n[e]=function(){const t=arguments;return this.z.runOutsideAngular(()=>this.el[e].apply(this.el,t))}})},q=(e,t,n)=>{n.forEach(n=>e[n]=Object(f.a)(t,n))};function z(e){return function(t){return e.inputs&&B(t,e.inputs),e.methods&&V(t,e.methods),t}}let U=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},H=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},W=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],e),e})(),G=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionBackdropTap"])}};return e=Object(r.b)([z({inputs:["stopPropagation","tappable","visible"]})],e),e})(),X=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),J=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["buttonType","color","disabled","download","expand","fill","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],e),e})(),Q=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["collapse"]})],e),e})(),Z=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),Y=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["mode"]})],e),e})(),K=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode","translucent"]})],e),e})(),ee=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),te=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),ne=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],e),e})(),re=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode","outline"]})],e),e})(),ie=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({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"]})],e),e})(),se=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return e=Object(r.b)([z({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],e),e})(),oe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionCancel","ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["cancelText","dayNames","dayShortNames","dayValues","disabled","displayFormat","displayTimezone","doneText","hourValues","max","min","minuteValues","mode","monthNames","monthShortNames","monthValues","name","pickerFormat","pickerOptions","placeholder","readonly","value","yearValues"],methods:["open"]})],e),e})(),ae=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],e),e})(),le=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],e),e})(),ce=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["activated","side"]})],e),e})(),ue=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["mode","translucent"]})],e),e})(),he=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["fixed"]})],e),e})(),de=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["collapse","mode","translucent"]})],e),e})(),pe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["ariaLabel","color","flipRtl","icon","ios","lazy","md","mode","name","size","src"]})],e),e})(),fe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return e=Object(r.b)([z({inputs:["alt","src"]})],e),e})(),ge=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionInfinite"])}};return e=Object(r.b)([z({inputs:["disabled","position","threshold"],methods:["complete"]})],e),e})(),me=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["loadingSpinner","loadingText"]})],e),e})(),be=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return e=Object(r.b)([z({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","getInputElement"]})],e),e})(),ve=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],e),e})(),ye=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode","sticky"]})],e),e})(),we=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},_e=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","disabled","download","expandable","href","mode","rel","target","type"]})],e),e})(),Ce=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionSwipe"])}};return e=Object(r.b)([z({inputs:["side"]})],e),e})(),xe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionDrag"])}};return e=Object(r.b)([z({inputs:["disabled"],methods:["getOpenAmount","getSlidingRatio","open","close","closeOpened"]})],e),e})(),Oe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode","position"]})],e),e})(),Se=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],e),e})(),Ee=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","lines","mode"]})],e),e})(),ke=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return e=Object(r.b)([z({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],e),e})(),Te=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["autoHide","color","disabled","menu","mode","type"]})],e),e})(),Me=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["autoHide","menu"]})],e),e})(),Ae=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionNavWillChange","ionNavDidChange"])}};return e=Object(r.b)([z({inputs:["animated","animation","root","rootParams","swipeGesture"],methods:["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"]})],e),e})(),Ie=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["component","componentProps","routerAnimation","routerDirection"]})],e),e})(),De=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),Pe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["buffer","color","mode","reversed","type","value"]})],e),e})(),Ne=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["color","disabled","mode","name","value"]})],e),e})(),je=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange"])}};return e=Object(r.b)([z({inputs:["allowEmptySelection","name","value"]})],e),e})(),Re=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["color","debounce","disabled","dualKnobs","max","min","mode","name","pin","snaps","step","ticks","value"]})],e),e})(),Le=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionRefresh","ionPull","ionStart"])}};return e=Object(r.b)([z({inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],e),e})(),Fe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],e),e})(),$e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},Be=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionItemReorder"])}};return e=Object(r.b)([z({inputs:["disabled"],methods:["complete"]})],e),e})(),Ve=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["type"],methods:["addRipple"]})],e),e})(),qe=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},ze=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return e=Object(r.b)([z({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],e),e})(),Ue=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange"])}};return e=Object(r.b)([z({inputs:["color","disabled","mode","scrollable","value"]})],e),e})(),He=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["disabled","layout","mode","type","value"]})],e),e})(),We=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange","ionCancel","ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],e),e})(),Ge=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["disabled","value"]})],e),e})(),Xe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["animated"]})],e),e})(),Je=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},Qe=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return e=Object(r.b)([z({inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],e),e})(),Ze=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","duration","name","paused"]})],e),e})(),Ye=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionSplitPaneVisible"])}};return e=Object(r.b)([z({inputs:["contentId","disabled","when"]})],e),e})(),Ke=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode","selectedTab","translucent"]})],e),e})(),et=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],e),e})(),tt=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),nt=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return e=Object(r.b)([z({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"]})],e),e})(),rt=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}},it=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","size"]})],e),e})(),st=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement,q(this,this.el,["ionChange","ionFocus","ionBlur"])}};return e=Object(r.b)([z({inputs:["checked","color","disabled","mode","name","value"]})],e),e})(),ot=(()=>{let e=class{constructor(e,t,n){this.z=n,e.detach(),this.el=t.nativeElement}};return e=Object(r.b)([z({inputs:["color","mode"]})],e),e})(),at=(()=>{let e=class{get(e,t){const n=ct();return n?n.get(e,t):null}getBoolean(e,t){const n=ct();return!!n&&n.getBoolean(e,t)}getNumber(e,t){const n=ct();return n?n.getNumber(e,t):0}set(e,t){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=ct();n&&n.set(e,t)}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();const lt=new i.o("USERCONFIG"),ct=()=>{if("undefined"!=typeof window){const e=window.Ionic;if(e&&e.config)return e.config}return null};class ut{constructor(e={}){this.data=e}get(e){return this.data[e]}}let ht=class{constructor(e,t){this.zone=e,this.appRef=t}create(e,t,n){return new dt(e,t,n,this.appRef,this.zone)}};class dt{constructor(e,t,n,r,i){this.resolver=e,this.injector=t,this.location=n,this.appRef=r,this.zone=i,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(e,t,n,r){return this.zone.run(()=>new Promise(i=>{i(pt(this.zone,this.resolver,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,e,t,n,r))}))}removeViewFromDom(e,t){return this.zone.run(()=>new Promise(e=>{const n=this.elRefMap.get(t);if(n){n.destroy(),this.elRefMap.delete(t);const e=this.elEventsMap.get(t);e&&(e(),this.elEventsMap.delete(t))}e()}))}}const pt=(e,t,n,r,s,o,a,l,c,u,h)=>{const d=t.resolveComponentFactory(c),p=i.p.create({providers:bt(u),parent:n}),f=r?r.createComponent(d,r.length,p):d.create(p),g=f.instance,m=f.location.nativeElement;if(u&&Object.assign(g,u),h)for(const i of h)m.classList.add(i);const b=gt(e,g,m);return l.appendChild(m),r||s.attachView(f.hostView),f.changeDetectorRef.reattach(),o.set(m,f),a.set(m,b),m},ft=[u.a,u.b,u.c,u.d,u.e],gt=(e,t,n)=>e.run(()=>{const e=ft.filter(e=>"function"==typeof t[e]).map(e=>{const r=n=>t[e](n.detail);return n.addEventListener(e,r),()=>n.removeEventListener(e,r)});return()=>e.forEach(e=>e())}),mt=new i.o("NavParamsToken"),bt=e=>[{provide:mt,useValue:e},{provide:ut,useFactory:vt,deps:[mt]}],vt=e=>new ut(e),yt=(e,t)=>((e=e.filter(e=>e.stackId!==t.stackId)).push(t),e),wt=(e,t)=>{const n=e.createUrlTree(["."],{relativeTo:t});return e.serializeUrl(n)},_t=(e,t)=>{if(!e)return;const n=Ct(t);for(let r=0;r<n.length;r++){if(r>=e.length)return n[r];if(n[r]!==e[r])return}},Ct=e=>e.split("/").map(e=>e.trim()).filter(e=>""!==e),xt=e=>{e&&(e.ref.destroy(),e.unlistenEvents())};class Ot{constructor(e,t,n,r,i,s){this.containerEl=t,this.router=n,this.navCtrl=r,this.zone=i,this.location=s,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==e?Ct(e):void 0}createView(e,t){const n=wt(this.router,t),r=e&&e.location&&e.location.nativeElement,i=gt(this.zone,e.instance,r);return{id:this.nextId++,stackId:_t(this.tabsPrefix,n),unlistenEvents:i,element:r,ref:e,url:n}}getExistingView(e){const t=wt(this.router,e),n=this.views.find(e=>e.url===t);return n&&n.ref.changeDetectorRef.reattach(),n}setActive(e){const t=this.navCtrl.consumeTransition();let{direction:n,animation:r,animationBuilder:i}=t;const s=this.activeView,o=((e,t)=>!t||e.stackId!==t.stackId)(e,s);o&&(n="back",r=void 0);const a=this.views.slice();let l;const c=this.router;c.getCurrentNavigation?l=c.getCurrentNavigation():c.navigations&&c.navigations.value&&(l=c.navigations.value),l&&l.extras&&l.extras.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const u=this.views.includes(e),h=this.insertView(e,n);u||e.ref.changeDetectorRef.detectChanges();const d=e.animationBuilder;return void 0!==i||"back"!==n||o||void 0===d||(i=d),s&&(s.animationBuilder=i),this.zone.runOutsideAngular(()=>this.wait(()=>(s&&s.ref.changeDetectorRef.detach(),e.ref.changeDetectorRef.reattach(),this.transition(e,s,r,this.canGoBack(1),!1,i).then(()=>St(e,h,a,this.location)).then(()=>({enteringView:e,direction:n,animation:r,tabSwitch:o})))))}canGoBack(e,t=this.getActiveStackId()){return this.getStack(t).length>e}pop(e,t=this.getActiveStackId()){return this.zone.run(()=>{const n=this.getStack(t);if(n.length<=e)return Promise.resolve(!1);const r=n[n.length-e-1];let i=r.url;const s=r.savedData;if(s){const e=s.get("primary");e&&e.route&&e.route._routerState&&e.route._routerState.snapshot&&e.route._routerState.snapshot.url&&(i=e.route._routerState.snapshot.url)}const{animationBuilder:o}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(i,Object.assign({},r.savedExtras,{animation:o})).then(()=>!0)})}startBackTransition(){const e=this.activeView;if(e){const t=this.getStack(e.stackId),n=t[t.length-2],r=n.animationBuilder;return this.wait(()=>this.transition(n,e,"back",this.canGoBack(2),!0,r))}return Promise.resolve()}endBackTransition(e){e?(this.skipTransition=!0,this.pop(1)):this.activeView&&Et(this.activeView,this.views,this.views,this.location)}getLastUrl(e){const t=this.getStack(e);return t.length>0?t[t.length-1]:void 0}getRootUrl(e){const t=this.getStack(e);return t.length>0?t[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}destroy(){this.containerEl=void 0,this.views.forEach(xt),this.activeView=void 0,this.views=[]}getStack(e){return this.views.filter(t=>t.stackId===e)}insertView(e,t){return this.activeView=e,this.views=((e,t,n)=>"root"===n?yt(e,t):"forward"===n?((e,t)=>(e.indexOf(t)>=0?e=e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):e.push(t),e))(e,t):((e,t)=>e.indexOf(t)>=0?e.filter(e=>e.stackId!==t.stackId||e.id<=t.id):yt(e,t))(e,t))(this.views,e,t),this.views.slice()}transition(e,t,n,r,i,s){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(t===e)return Promise.resolve(!1);const o=e?e.element:void 0,a=t?t.element:void 0,l=this.containerEl;return o&&o!==a&&(o.classList.add("ion-page"),o.classList.add("ion-page-invisible"),o.parentElement!==l&&l.appendChild(o),l.commit)?l.commit(o,a,{deepWait:!0,duration:void 0===n?0:void 0,direction:n,showGoBack:r,progressAnimation:i,animationBuilder:s}):Promise.resolve(!1)}wait(e){return Object(r.a)(this,void 0,void 0,(function*(){return void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0),this.runningTask=e()}))}}const St=(e,t,n,r)=>"function"==typeof requestAnimationFrame?new Promise(i=>{requestAnimationFrame(()=>{Et(e,t,n,r),i()})}):Promise.resolve(),Et=(e,t,n,r)=>{n.filter(e=>!t.includes(e)).forEach(xt),t.forEach(t=>{const n=r.path().split("?")[0].split("#")[0];if(t!==e&&t.url!==n){const e=t.element;e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden"),t.ref.changeDetectorRef.detach()}})};let kt=class{constructor(e,t,n,r,s,o,l,c,u,h,d,p,f){this.parentContexts=e,this.location=t,this.resolver=n,this.config=o,this.navCtrl=l,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 i.m,this.activateEvents=new i.m,this.deactivateEvents=new i.m,this.nativeEl=u.nativeElement,this.name=r||a.f,this.tabsPrefix="true"===s?wt(h,p):void 0,this.stackCtrl=new Ot(this.tabsPrefix,this.nativeEl,h,l,d,c),e.onChildOutletCreated(this.name,this)}set animation(e){this.nativeEl.animation=e}set animated(e){this.nativeEl.animated=e}set swipeGesture(e){this._swipeGesture=e,this.nativeEl.swipeHandler=e?{canStart:()=>this.stackCtrl.canGoBack(1),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:e=>this.stackCtrl.endBackTransition(e)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const e=this.getContext();e&&e.route&&this.activateWith(e.route,e.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(e,t){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 e=this.getContext();if(e.route){const t=e.route.snapshot;this.activatedView.savedExtras.queryParams=t.queryParams,this.activatedView.savedExtras.fragment=t.fragment}}const e=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");let n;this._activatedRoute=e;let r=this.stackCtrl.getExistingView(e);if(r){n=this.activated=r.ref;const t=r.savedData;t&&(this.getContext().children.contexts=t),this.updateActivatedRouteProxy(n.instance,e)}else{const i=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,o=new g.a(null),a=this.createActivatedRouteProxy(o,e),l=new Tt(a,s,this.location.injector);n=this.activated=this.location.createComponent(i,this.location.length,l),o.next(n.instance),r=this.stackCtrl.createView(this.activated,e),this.proxyMap.set(n.instance,a),this.currentActivatedRoute$.next({component:n.instance,activatedRoute:e})}this.activatedView=r,this.stackCtrl.setActive(r).then(e=>{this.navCtrl.setTopOutlet(this),this.activateEvents.emit(n.instance),this.stackEvents.emit(e)})}canGoBack(e=1,t){return this.stackCtrl.canGoBack(e,t)}pop(e=1,t){return this.stackCtrl.pop(e,t)}getLastUrl(e){const t=this.stackCtrl.getLastUrl(e);return t?t.url:void 0}getLastRouteView(e){return this.stackCtrl.getLastUrl(e)}getRootView(e){return this.stackCtrl.getRootUrl(e)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(e,t){const n=new a.a;return n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,n._paramMap=this.proxyObservable(e,"paramMap"),n._queryParamMap=this.proxyObservable(e,"queryParamMap"),n.url=this.proxyObservable(e,"url"),n.params=this.proxyObservable(e,"params"),n.queryParams=this.proxyObservable(e,"queryParams"),n.fragment=this.proxyObservable(e,"fragment"),n.data=this.proxyObservable(e,"data"),n}proxyObservable(e,t){return e.pipe(Object(m.a)(e=>!!e),Object(b.a)(e=>this.currentActivatedRoute$.pipe(Object(m.a)(t=>null!==t&&t.component===e),Object(b.a)(e=>e&&e.activatedRoute[t]),Object(v.a)())))}updateActivatedRouteProxy(e,t){const n=this.proxyMap.get(e);if(!n)throw new Error("Could not find activated route proxy for view");n._futureSnapshot=t._futureSnapshot,n._routerState=t._routerState,n.snapshot=t.snapshot,n.outlet=t.outlet,n.component=t.component,this.currentActivatedRoute$.next({component:e,activatedRoute:t})}};class Tt{constructor(e,t,n){this.route=e,this.childContexts=t,this.parent=n}get(e,t){return e===a.a?this.route:e===a.b?this.childContexts:this.parent.get(e,t)}}let Mt=class{constructor(e){this.navCtrl=e,this.ionTabsWillChange=new i.m,this.ionTabsDidChange=new i.m}onPageSelected(e){const t=e.enteringView.stackId;e.tabSwitch&&void 0!==t&&(this.tabBar&&(this.tabBar.selectedTab=t),this.ionTabsWillChange.emit({tab:t}),this.ionTabsDidChange.emit({tab:t}))}select(e){const t=this.outlet.getActiveStackId()===e,n=`${this.outlet.tabsPrefix}/${e}`;if(t){const t=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(t).url===n)return;const r=this.outlet.getRootView(e);return this.navCtrl.navigateRoot(n,Object.assign({},r&&n===r.url&&r.savedExtras,{animated:!0,animationDirection:"back"}))}{const t=this.outlet.getLastRouteView(e);return this.navCtrl.navigateRoot(t&&t.url||n,Object.assign({},t&&t.savedExtras,{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}},At=(()=>{let e=class{constructor(e,t,n){this.z=e,this.iterableDiffers=t,this.refMap=new WeakMap,this.el=n.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(e){if(this.trackBy&&"items"in e){const n=e.items.currentValue;if(void 0===this.differ&&null!=n)try{this.differ=this.iterableDiffers.find(n).create(this.trackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${n}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(e,t,n){return this.z.run(()=>{let r;if(e){r=this.refMap.get(e);const n=r.context;n.$implicit=t.value,n.index=t.index}else r=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(t.type),{$implicit:t.value,index:n},n),e=It(r),this.refMap.set(e,r);return r.detectChanges(),e})}getComponent(e){switch(e){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef}throw new Error("template for virtual item was not provided")}};return e=Object(r.b)([z({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],e),e})();const It=e=>{const t=e.rootNodes;for(let n=0;n<t.length;n++)if(1===t[n].nodeType)return t[n];throw new Error("virtual element was not created")};class Dt{constructor(e){this.ctrl=e}create(e){return this.ctrl.create(e||{})}dismiss(e,t,n){return this.ctrl.dismiss(e,t,n)}getTop(){return this.ctrl.getTop()}}let Pt=(()=>{let e=class extends Dt{constructor(){super(d.c)}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Nt=(()=>{let e=class extends Dt{constructor(){super(d.b)}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),jt=(()=>{let e=class extends Dt{constructor(){super(d.k)}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Rt=(()=>{let e=class{open(e){return h.a.open(e)}close(e){return h.a.close(e)}toggle(e){return h.a.toggle(e)}enable(e,t){return h.a.enable(e,t)}swipeGesture(e,t){return h.a.swipeGesture(e,t)}isOpen(e){return h.a.isOpen(e)}isEnabled(e){return h.a.isEnabled(e)}get(e){return h.a.get(e)}getOpen(){return h.a.getOpen()}getMenus(){return h.a.getMenus()}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})(),Lt=class extends Dt{constructor(e,t,n){super(d.l),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}},Ft=class extends Dt{constructor(e,t,n){super(d.d),this.angularDelegate=e,this.resolver=t,this.injector=n}create(e){return super.create(Object.assign({},e,{delegate:this.angularDelegate.create(this.resolver,this.injector)}))}},$t=(()=>{let e=class extends Dt{constructor(){super(d.o)}};return e.ngInjectableDef=Object(i.Qb)({factory:function(){return new e},token:e,providedIn:"root"}),e})();class Bt{shouldDetach(e){return!1}shouldAttach(e){return!1}store(e,t){}retrieve(e){return null}shouldReuseRoute(e,t){if(e.routeConfig!==t.routeConfig)return!1;const n=e.params,r=t.params,i=Object.keys(n),s=Object.keys(r);if(i.length!==s.length)return!1;for(const o of i)if(r[o]!==n[o])return!1;return!0}}let Vt=!1;const qt=(e,t,r)=>()=>{const i=t.defaultView;if(i&&"undefined"!=typeof window){Vt&&console.warn("Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once."),Vt=!0,(i.Ionic=i.Ionic||{}).config=Object.assign({},e,{_zoneGate:e=>r.run(e)});const s="__zone_symbol__addEventListener"in t.body?"__zone_symbol__addEventListener":"addEventListener";return function(){var e=[];if("undefined"!=typeof window){var t=window;t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(7).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&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&function(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||e.push(n.e(5).then(n.t.bind(null,"t6o4",7)))}return Promise.all(e)}().then(()=>{return e={exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:C,jmp:e=>r.runOutsideAngular(e),ael(e,t,n,r){e[s](t,n,r)},rel(e,t,n,r){e.removeEventListener(t,n,r)}},"undefined"==typeof window?Promise.resolve():(l.b&&l.b.supports&&l.b.supports("color","var(--c)")?Object(l.e)():n.e(6).then(n.t.bind(null,"tUaU",7)).then(()=>(l.p.$cssShim$=l.s.__cssshim)?l.p.$cssShim$.i():0)).then(()=>(_(),Object(l.f)(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]},[[32,"ionMenuChange","visibilityChanged"],[32,"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]},[[32,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[32,"ionMenuChange","visibilityChanged"],[32,"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":[64]}]]],["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]},[[16,"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":[1],"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",{"color":[1],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"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],"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",{"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],"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-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["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]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[1],"duration":[2],"name":[1],"paused":[4]}]]],["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]},[[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]}]]]]'),e)));var e})}};var zt;let Ut=zt=class{static forRoot(e){return{ngModule:zt,providers:[{provide:lt,useValue:e},{provide:i.d,useFactory:qt,multi:!0,deps:[lt,o.d,i.x]}]}}}},sk1z:function(e,t,n){"use strict";n("KX/v"),n("EGUZ");var r=n("pY0Z");class i{constructor(e){this.string="native",this.active=!1,this.isTesting=!1,this.id=e}isActive(){return this.active}requestAd(){this.setTesting(this.isTesting),FacebookAds&&(FacebookAds.createNativeAd(this.id,(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})),this.setActive(!1))}setActive(e){this.active=e}setTesting(e){e&&FacebookAds&&FacebookAds.setOptions({isTesting:!0,deviceHash:"234242vsdvs342"})}release(){FacebookAds&&FacebookAds.removeNativeAd(this.id),this.setActive(!0)}setClickableArea(e,t){var n;if(null!=(n=document.getElementById(this.id))||null!=n){var r=n.getBoundingClientRect();FacebookAds&&FacebookAds.setNativeAdClickArea(this.id,r.left,r.top,r.width,r.height)}}hideClickableArea(){FacebookAds&&FacebookAds.setNativeAdClickArea(this.id,0,0,0,0)}initClickableArea(){this.setClickableArea(0,0)}}class s{constructor(e){this.isTesting=!1,this.adsMgr=e,this.nativePlacements=[],this.init(),this.setTestData()}init(){this.initNativePlacements()}initNativePlacements(){let e=[];e.push("1792334877741456_1792336137741330"),e.push("1792334877741456_1792649784376632"),e.push("1792334877741456_1792650001043277"),e.push("1792334877741456_1792650061043271"),e.push("1792334877741456_1792723431035934"),e.push("1792334877741456_1792723481035929"),e.push("1792334877741456_1792723527702591"),e.push("1792334877741456_1792723547702589"),e.push("1792334877741456_1792723567702587"),e.push("1792334877741456_1792723587702585"),e.push("1792334877741456_1792723624369248"),e.push("1792334877741456_1792723644369246"),e.push("1792334877741456_1792723661035911"),e.push("1792334877741456_1792723937702550"),e.push("1792334877741456_1792723977702546"),e.push("1792334877741456_1792724081035869"),e.push("1792334877741456_1792724094369201"),e.push("1792334877741456_1792724121035865"),e.push("1792334877741456_1792724161035861"),e.push("1792334877741456_1792724014369209");for(let t of e)this.nativePlacements.push(new i(t))}presentNativeAd(e){let t=new r.a(e.adRes);for(let n of this.nativePlacements)n.id==e.adId&&(n.setClickableArea(0,0),t.setAdsPlacement(n),n.setActive(!0));this.adsMgr.events.publish("adLoaded",{message:t})}presentTestNativeAd(){let e=new r.a(this.testAd.adRes);e.setAdsPlacement(new i(this.testAd.adId)),console.log("ads message",e),this.adsMgr.events.publish("adLoaded",{message:e})}prepareFacebookNativeAds(){if(1==this.isTesting)return console.log("tset it now"),this.presentTestNativeAd(),!1;let e;for(let t of this.nativePlacements)t.isActive()||(e=t);e.requestAd()}prepareFacebookAds(){FacebookAds&&(console.log("calling fb ads"),FacebookAds.createBanner({adId:"169620700378180_170450423628541",position:FacebookAds.AD_POSITION.BOTTOM_CENTER,autoShow:!0},(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})),this.presentNativeAd(""))}updateClickableArea(e,t){for(let n of this.nativePlacements)n.isActive()&&n.setClickableArea(e,t)}releaseAllNativePlacements(){for(let e of this.nativePlacements)e.isActive()&&e.release()}setTestData(){this.testAd={isTrusted:!1,adNetwork:"FacebookAds",adEvent:"onAdLoaded",adType:"native",adId:"763416880384578_1139417452784517",adRes:{title:"Facebook Test Ad",socialContext:"Get it on Google Play",buttonText:"Install Now",body:"Your ad integration works. Woohoo!",coverImage:{url:"https://www.facebook.com/images/ads/network/test_video_banner.png",width:414,height:232},icon:{url:"https://scontent.xx.fbcdn.net/hphotos-xaf1/t39.3079-6/851551_836527893040166_1350205352_n.png",width:128,height:128}}}}}class o{constructor(e){this.isTesting=!1,this.adsMgr=e,this.nativePlacements=[],this.init()}init(){}createBanner(){MoPub&&MoPub.createBanner({adId:"f4e9cab2be16487cb9165d978e5e6aac",position:MoPub.AD_POSITION.BOTTOM_CENTER,autoShow:!0})}prepareMoPub(){MoPub&&(console.log("calling fb ads"),MoPub.createBanner({adId:"169620700378180_170450423628541",position:MoPub.AD_POSITION.BOTTOM_CENTER,autoShow:!0},(function(e){console.log("success",e)}),(function(e){console.log("failed",e)})))}}n("0+M4"),n.d(t,"a",(function(){return a}));let a=(()=>{class e{constructor(e,t,n,r,i,a){this.http=e,this.admobFree=t,this.modalCtrl=n,this.storageManager=r,this.events=i,this.platform=a,this.shownAdsNumber=0,this.shownAdsNumberBackBtn=0,this.canShownAdsNumber=0,this.adsNeeded=!1,this.adMobIsActivated=!0,this.audienceNetwork=new s(this),this.mopubManager=new o(this),this.registerEvents(),this.platform.is("cordova")&&this.prepareBannerAd(),document.addEventListener("resume",this.onResume,!1),document.addEventListener("pause",this.onPause,!1),this.init();var l=this;document.addEventListener("onAdLoaded",(function(e){console.log("data ad ",e);let t=Object.assign({},e);"native"==t.adType&&l.audienceNetwork.presentNativeAd(t)})),document.addEventListener("admob.rewardvideo.events.REWARD",e=>{"rewardvideo"==e.type&&console.log("reward data",e)}),document.addEventListener("admob.rewardvideo.events.REWARD",e=>{"rewardvideo"==e.type&&console.log("reward data",e)}),document.addEventListener("admob.banner.events.LOAD_FAIL",(function(e){console.log("banner load fail",e)})),document.addEventListener("admob.interstitial.events.LOAD_FAIL",(function(e){console.log("interstitial load fail",e)})),document.addEventListener("admob.interstitial.events.LOAD",(function(e){console.log("interstitial loads",e)})),document.addEventListener("admob.interstitial.events.CLOSE",(function(e){console.log("interstitial close",e)}))}registerEvents(){var e=this;this.events.subscribe("presentAd",(function(){e.showInterstitialAd()}))}init(){this.storageManager.get("canShownAdsNumber").then(e=>{null!=e&&(this.canShownAdsNumber=e)}),this.prepareInterstitialAd()}onResume(){e.allowAd=!0,console.log("allow ad",e.allowAd)}onPause(){e.allowAd=!1,console.log("allow ad",e.allowAd)}prepare(){return!this.platform.is("cordova")||!this.adMobIsActivated||(this.admobFree.interstitial.config({isTesting:!1,autoShow:!0}),this.admobFree.banner.config({id:"ca-app-pub-4065002950885098/9199300731",isTesting:!1,autoShow:!0}),this.admobFree.banner.prepare().then(()=>{}).catch(()=>{console.log("banner err")}),void this.admobFree.interstitial.prepare().then(()=>{console.log("advertisemnet please")}).catch(e=>{console.log(e),console.log("advertisment err")}))}removeBannerAd(){if(!this.platform.is("cordova"))return!1;try{this.admobFree.banner.hide()}catch(e){}}prepareInterstitialAd(){if(!this.platform.is("cordova"))return!1;let e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/8617966673",isTesting:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/9199300731",isTesting:!1,autoShow:!1},this.admobFree.interstitial.config(e),this.admobFree.interstitial.prepare().then(e=>{console.log("preparing interstitial ad",e)})}prepareBannerAd(){if(!this.platform.is("cordova"))return!1;let e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/9969033832",isTesting:!1,bannerAtTop:!1,overlap:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/7167062591",isTesting:!1,bannerAtTop:!1,overlap:!1,autoShow:!1},this.admobFree.banner.config(e),this.admobFree.banner.prepare().then(()=>{console.log("advertisemnet please")}).catch(e=>console.log(e))}prepareRewardAd(){if(!this.platform.is("cordova"))return!1;{let e;e=this.platform.is("ios")?{id:"ca-app-pub-4065002950885098/5427153590",isTesting:!1,autoShow:!1}:{id:"ca-app-pub-4065002950885098/7988409426",isTesting:!1,autoShow:!1},this.admobFree.rewardVideo.config(e),this.admobFree.rewardVideo.prepare().then(e=>{console.log("ask for preparingdd reward ad",e)}).catch(e=>{console.log("we had an exepction ,",e)})}}showRewardAd(){this.admobFree.rewardVideo.show().then(e=>{console.log("watch result is",e)})}isRewardAdReady(){return this.platform.is("cordova")?(this.admobFree.rewardVideo.isReady().then(e=>{console.log("is reward ready? ff",e)}).catch(e=>{console.log("reward ad is not ready because ",e)}),this.admobFree.rewardVideo.isReady()):new Promise(e=>{e(!1)})}setAdsNeeded(e){this.adsNeeded=e,this.shownAdsNumberBackBtn=0,this.prepareRewardAd(),this.prepareInterstitialAd()}isAdsNeeded(){return this.adsNeeded}isRewardAdsActive(){return!1}showBannerAd(){return!!this.platform.is("cordova")&&(this.prepareBannerAd(),this.admobFree.banner.show().then(()=>{console.log(" shownd ")}).catch(e=>{console.log(" error ",e)}),!0)}showInterstitialAd(){return!this.adMobIsActivated||!!this.platform.is("cordova")&&!!this.allowAd()&&(this.shownAdsNumber++,e.adsTimePeriod=this.shownAdsNumber<6?60*this.shownAdsNumber+2:360,this.prepareInterstitialAd(),void this.admobFree.interstitial.show())}showInterstitialAdAfterBack(){this.shownAdsNumberBackBtn<2&&(this.admobFree.interstitial.show(),this.shownAdsNumberBackBtn++,this.prepareInterstitialAd(),this.setAdsNeeded(!1))}showInterstitialAdAfterClickOnQuizButton(){if(!this.platform.is("cordova")||!this.allowAd())return!1;this.prepareInterstitialAd(),this.admobFree.interstitial.show()}allowAd(){return this.shownAdsNumber<this.canShownAdsNumber&&e.allowAd}run(){}showNativeAds(){this.audienceNetwork.prepareFacebookNativeAds()}}return e.allowAd=!0,e.adsTimePeriod=90,e})()},t68o:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("8Y7J"),i=n("s6ns"),s=n("SVse"),o=(n("QQfA"),n("IP0z"),n("zMNK")),a=(n("/HVE"),n("hOhj"),n("Xd0L"),n("cUpR"),n("5GAg")),l=r.qb({encapsulation:2,styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"dialogContainer",definitions:[{type:0,name:"void, exit",styles:{type:6,styles:{opacity:0,transform:"scale(0.7)"},offset:null},options:void 0},{type:0,name:"enter",styles:{type:6,styles:{transform:"none"},offset:null},options:void 0},{type:1,expr:"* => enter",animation:{type:4,styles:{type:6,styles:{transform:"none",opacity:1},offset:null},timings:"150ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void, * => exit",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"75ms cubic-bezier(0.4, 0.0, 0.2, 1)"},options:null}],options:{}}]}});function c(e){return r.Nb(0,[(e()(),r.hb(0,null,null,0))],null,null)}function u(e){return r.Nb(0,[r.Jb(402653184,1,{_portalOutlet:0}),(e()(),r.hb(16777216,null,null,1,null,c)),r.rb(2,212992,[[1,4]],0,o.b,[r.j,r.O],{portal:[0,"portal"]},null)],(function(e,t){e(t,2,0,"")}),null)}function h(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@dialogContainer",0]],[["component","@dialogContainer.start"],["component","@dialogContainer.done"]],(function(e,t,n){var i=!0;return"component:@dialogContainer.start"===t&&(i=!1!==r.Eb(e,1)._onAnimationStart(n)&&i),"component:@dialogContainer.done"===t&&(i=!1!==r.Eb(e,1)._onAnimationDone(n)&&i),i}),u,l)),r.rb(1,49152,null,0,i.f,[r.k,a.a,r.h,[2,s.d],i.e],null,null)],null,(function(e,t){e(t,0,0,r.Eb(t,1)._id,r.Eb(t,1)._config.role,r.Eb(t,1)._config.ariaLabel?null:r.Eb(t,1)._ariaLabelledBy,r.Eb(t,1)._config.ariaLabel,r.Eb(t,1)._config.ariaDescribedBy||null,r.Eb(t,1)._state)}))}var d=r.ob("mat-dialog-container",i.f,h,{},{},[])},t8sF:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),i=n("a3Cf"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.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"},t}return Object(r.c)(t,e),t.prototype.getFreeDiskSpace=function(){var e=this;return function(){if(!0===Object(i.checkAvailability)(e))return Object(i.getPromise)((function(e,t){cordova.exec(e,t,"File","getFreeDiskSpace",[])}))}()},t.prototype.checkDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e+t).then((function(){return!0}))}}()},t.prototype.createDir=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r)){if(/^\//.test(t)){var s=new FileError(5);return s.message="directory cannot start with /",Promise.reject(s)}var o={create:!0};return n||(o.exclusive=!0),r.resolveDirectoryUrl(e).then((function(e){return r.getDirectory(e,t,o)}))}}()},t.prototype.removeDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1})})).then((function(e){return n.remove(e)}))}}()},t.prototype.moveDir=function(e,t,n,r){var s=this;return function(){if(!0===Object(i.checkAvailability)(s)){if(/^\//.test(r=r||t)){var o=new FileError(5);return o.message="directory cannot start with /",Promise.reject(o)}return s.resolveDirectoryUrl(e).then((function(e){return s.getDirectory(e,t,{create:!1})})).then((function(e){return s.resolveDirectoryUrl(n).then((function(t){return s.move(e,t,r)}))}))}}()},t.prototype.copyDir=function(e,t,n,r){var s=this;return function(){if(!0===Object(i.checkAvailability)(s)){if(/^\//.test(r)){var o=new FileError(5);return o.message="directory cannot start with /",Promise.reject(o)}return s.resolveDirectoryUrl(e).then((function(e){return s.getDirectory(e,t,{create:!1})})).then((function(e){return s.resolveDirectoryUrl(n).then((function(t){return s.copy(e,t,r)}))}))}}()},t.prototype.listDir=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1,exclusive:!1})})).then((function(e){var t=e.createReader();return n.readEntries(t)}))}}()},t.prototype.removeRecursively=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="directory cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getDirectory(e,t,{create:!1})})).then((function(e){return n.rimraf(e)}))}}()},t.prototype.checkFile=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="file cannot start with /",Promise.reject(r)}return n.resolveLocalFilesystemUrl(e+t).then((function(e){if(e.isFile)return!0;var t=new FileError(13);return t.message="input is not a file",Promise.reject(t)}))}}()},t.prototype.createFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r)){if(/^\//.test(t)){var s=new FileError(5);return s.message="file-name cannot start with /",Promise.reject(s)}var o={create:!0};return n||(o.exclusive=!0),r.resolveDirectoryUrl(e).then((function(e){return r.getFile(e,t,o)}))}}()},t.prototype.removeFile=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n)){if(/^\//.test(t)){var r=new FileError(5);return r.message="file-name cannot start with /",Promise.reject(r)}return n.resolveDirectoryUrl(e).then((function(e){return n.getFile(e,t,{create:!1})})).then((function(e){return n.remove(e)}))}}()},t.prototype.writeFile=function(e,t,n,r){var s=this;return void 0===r&&(r={}),function(){if(!0===Object(i.checkAvailability)(s)){if(/^\//.test(t)){var o=new FileError(5);return o.message="file-name cannot start with /",Promise.reject(o)}var a={create:!r.append,exclusive:!r.replace};return s.resolveDirectoryUrl(e).then((function(e){return s.getFile(e,t,a)})).then((function(e){return s.writeFileEntry(e,n,r)}))}}()},t.prototype.writeFileEntry=function(e,t,n){var r=this;return this.createWriter(e).then((function(e){return n.append&&e.seek(e.length),n.truncate&&e.truncate(n.truncate),r.write(e,t)})).then((function(){return e}))},t.prototype.writeExistingFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return r.writeFile(e,t,n,{replace:!0})}()},t.prototype.readAsText=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"Text")}()},t.prototype.readAsDataURL=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"DataURL")}()},t.prototype.readAsBinaryString=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"BinaryString")}()},t.prototype.readAsArrayBuffer=function(e,t){var n=this;return function(){if(!0===Object(i.checkAvailability)(n))return n.readFile(e,t,"ArrayBuffer")}()},t.prototype.moveFile=function(e,t,n,r){var s=this;return function(){if(!0===Object(i.checkAvailability)(s)){if(/^\//.test(r=r||t)){var o=new FileError(5);return o.message="file name cannot start with /",Promise.reject(o)}return s.resolveDirectoryUrl(e).then((function(e){return s.getFile(e,t,{create:!1})})).then((function(e){return s.resolveDirectoryUrl(n).then((function(t){return s.move(e,t,r)}))}))}}()},t.prototype.copyFile=function(e,t,n,r){var s=this;return function(){if(!0===Object(i.checkAvailability)(s)){if(/^\//.test(r=r||t)){var o=new FileError(5);return o.message="file name cannot start with /",Promise.reject(o)}return s.resolveDirectoryUrl(e).then((function(e){return s.getFile(e,t,{create:!1})})).then((function(e){return s.resolveDirectoryUrl(n).then((function(t){return s.copy(e,t,r)}))}))}}()},t.prototype.fillErrorMessage=function(e){try{e.message=this.cordovaFileError[e.code]}catch(t){}},t.prototype.resolveLocalFilesystemUrl=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return Object(i.getPromise)((function(n,r){try{window.resolveLocalFileSystemURL(e,(function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}catch(i){t.fillErrorMessage(i),r(i)}}))}()},t.prototype.resolveDirectoryUrl=function(e){var t=this;return function(){if(!0===Object(i.checkAvailability)(t))return t.resolveLocalFilesystemUrl(e).then((function(e){if(e.isDirectory)return e;var t=new FileError(13);return t.message="input is not a directory",Promise.reject(t)}))}()},t.prototype.getDirectory=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return new Promise((function(i,s){try{e.getDirectory(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),s(e)}))}catch(o){r.fillErrorMessage(o),s(o)}}))}()},t.prototype.getFile=function(e,t,n){var r=this;return function(){if(!0===Object(i.checkAvailability)(r))return new Promise((function(i,s){try{e.getFile(t,n,i,(function(e){r.fillErrorMessage(e),s(e)}))}catch(o){r.fillErrorMessage(o),s(o)}}))}()},t.prototype.readFile=function(e,t,n){var r=this;if(/^\//.test(t)){var s=new FileError(5);return s.message="file-name cannot start with /",Promise.reject(s)}return this.resolveDirectoryUrl(e).then((function(e){return r.getFile(e,t,{create:!1})})).then((function(e){var t=new FileReader;return Object(i.getPromise)((function(r,i){t.onloadend=function(){void 0!==t.result||null!==t.result?r(t.result):i(void 0!==t.error||null!==t.error?t.error:{code:null,message:"READER_ONLOADEND_ERR"})},e.file((function(e){t["readAs"+n].call(t,e)}),(function(e){i(e)}))}))}))},t.prototype.remove=function(e){var t=this;return new Promise((function(n,r){e.remove((function(){n({success:!0,fileRemoved:e})}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.move=function(e,t,n){var r=this;return new Promise((function(i,s){e.moveTo(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),s(e)}))}))},t.prototype.copy=function(e,t,n){var r=this;return new Promise((function(i,s){e.copyTo(t,n,(function(e){i(e)}),(function(e){r.fillErrorMessage(e),s(e)}))}))},t.prototype.readEntries=function(e){var t=this;return new Promise((function(n,r){e.readEntries((function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.rimraf=function(e){var t=this;return new Promise((function(n,r){e.removeRecursively((function(){n({success:!0,fileRemoved:e})}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.createWriter=function(e){var t=this;return new Promise((function(n,r){e.createWriter((function(e){n(e)}),(function(e){t.fillErrorMessage(e),r(e)}))}))},t.prototype.write=function(e,t){return t instanceof Blob?this.writeFileInChunks(e,t):new Promise((function(n,r){e.onwriteend=function(t){e.error?r(e.error):n(t)},e.write(t)}))},t.prototype.writeFileInChunks=function(e,t){var n=0;function r(){var r=Math.min(1048576,t.size-n),i=t.slice(n,n+r);n+=r,e.write(i)}return Object(i.getPromise)((function(i,s){e.onerror=s,e.onwrite=function(){n<t.size?r():i()},r()}))},Object.defineProperty(t.prototype,"applicationDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"applicationDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"applicationDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applicationStorageDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"applicationStorageDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"applicationStorageDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"dataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"dataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cacheDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"cacheDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"cacheDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalApplicationStorageDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalApplicationStorageDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalApplicationStorageDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalDataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalDataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalDataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalCacheDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalCacheDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalCacheDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"externalRootDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"externalRootDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"externalRootDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tempDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"tempDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"tempDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"syncedDataDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"syncedDataDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"syncedDataDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"documentsDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"documentsDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"documentsDirectory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sharedDirectory",{get:function(){return Object(i.cordovaPropertyGet)(this,"sharedDirectory")},set:function(e){Object(i.cordovaPropertySet)(this,"sharedDirectory",e)},enumerable:!0,configurable:!0}),t.pluginName="File",t.plugin="cordova-plugin-file",t.pluginRef="cordova.file",t.repo="https://github.com/apache/cordova-plugin-file",t.platforms=["Android","Browser","iOS","macOS","Windows"],t}(i.IonicNativePlugin)},tAnt:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));let r=(()=>{class e{constructor(t,n){this.localCount=0,this.subItems=[];var r=this;1==t.cloud?(this.title=t.collectionTitle,this.titleDe=t.collectionTitleDe,this.titleFa=t.collectionTitleFa,this.name=t.collectionName,this.type=t.collectionType,this.cost=t.collectionPrice,this.description=t.collectionDescription,this.descriptionDe=t.collectionDescriptionDe,this.descriptionFa=t.collectionDescriptionFa,this.lang=n,void 0!==t.collectionSubItems&&Object.keys(t.collectionSubItems).forEach((function(i){t.collectionSubItems[i].cloud=!0,r.subItems.push(new e(t.collectionSubItems[i],n))}))):(this.title=t.title,this.titleDe=t.titleDe,this.titleFa=t.titleFa,this.name=t.name,this.type=t.type,this.cost=t.cost,this.description=t.description,this.descriptionDe=t.descriptionDe,this.descriptionFa=t.descriptionFa,n&&(this.lang=n),this.lang=t.lang,void 0!==t.subItems&&Object.keys(t.subItems).forEach((function(n){r.subItems.push(new e(t.subItems[n]))}))),this.localCount=1}getTitle(){let e;switch(this.lang){case"de":e=this.titleDe;break;case"fa":e=this.titleFa;break;case"en":e=this.title;break;default:e=this.titleFa}return e}setLang(e){this.lang=e}getDescription(){let e;switch(this.lang){case"de":e=this.descriptionDe;break;case"fa":e=this.descriptionFa;break;case"en":e=this.description}return e}isDictionary(){return"dictionary"==this.type}}return e.typeDictionary="dictionary",e.typeLeitner="leitner",e})()},tNMG:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return E})),n.d(t,"h",(function(){return _})),n.d(t,"i",(function(){return O})),n.d(t,"j",(function(){return c}));var r=n("ePDZ");const i="ionViewWillEnter",s="ionViewDidEnter",o="ionViewWillLeave",a="ionViewDidLeave",l="ionViewWillUnload",c=e=>new Promise((t,n)=>{Object(r.g)(()=>{u(e),h(e).then(n=>{n.animation&&n.animation.destroy(),d(e),t(n)},t=>{d(e),n(t)})})}),u=e=>{const t=e.enteringEl,n=e.leavingEl;S(t,n,e.direction),e.showGoBack?t.classList.add("can-go-back"):t.classList.remove("can-go-back"),O(t,!1),n&&O(n,!1)},h=async e=>{const t=await p(e);return t&&r.a.isBrowser?f(t,e):g(e)},d=e=>{const t=e.leavingEl;e.enteringEl.classList.remove("ion-page-invisible"),void 0!==t&&t.classList.remove("ion-page-invisible")},p=async e=>{if(e.leavingEl&&e.animated&&0!==e.duration)return e.animationBuilder?e.animationBuilder:"ios"===e.mode?(await Promise.resolve().then(n.bind(null,"6cfT"))).iosTransitionAnimation:(await Promise.resolve().then(n.bind(null,"beh+"))).mdTransitionAnimation},f=async(e,t)=>{await m(t,!0);const n=e(t.baseEl,t);y(t.enteringEl,t.leavingEl);const r=await v(n,t);return t.progressCallback&&t.progressCallback(void 0),r&&w(t.enteringEl,t.leavingEl),{hasCompleted:r,animation:n}},g=async e=>{const t=e.enteringEl,n=e.leavingEl;return await m(e,!1),y(t,n),w(t,n),{hasCompleted:!0}},m=async(e,t)=>{const n=(void 0!==e.deepWait?e.deepWait:t)?[x(e.enteringEl),x(e.leavingEl)]:[C(e.enteringEl),C(e.leavingEl)];await Promise.all(n),await b(e.viewIsReady,e.enteringEl)},b=async(e,t)=>{e&&await e(t)},v=(e,t)=>{const n=t.progressCallback,r=new Promise(t=>{e.onFinish(e=>t(1===e))});return n?(e.progressStart(!0),n(e)):e.play(),r},y=(e,t)=>{_(t,o),_(e,i)},w=(e,t)=>{_(e,s),_(t,a)},_=(e,t)=>{if(e){const n=new CustomEvent(t,{bubbles:!1,cancelable:!1});e.dispatchEvent(n)}},C=e=>e&&e.componentOnReady?e.componentOnReady():Promise.resolve(),x=async e=>{const t=e;if(t){if(null!=t.componentOnReady&&null!=await t.componentOnReady())return;await Promise.all(Array.from(t.children).map(x))}},O=(e,t)=>{t?(e.setAttribute("aria-hidden","true"),e.classList.add("ion-page-hidden")):(e.hidden=!1,e.removeAttribute("aria-hidden"),e.classList.remove("ion-page-hidden"))},S=(e,t,n)=>{void 0!==e&&(e.style.zIndex="back"===n?"99":"101"),void 0!==t&&(t.style.zIndex="100")},E=e=>e.classList.contains("ion-page")?e:e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||e},uzCt:function(e,t,n){e.exports=function(){"use strict";function e(t){return e.result?e.result:t&&"function"==typeof t.getSerializer?e.result=t.getSerializer():Promise.reject(new Error("localforage.getSerializer() was not available! localforage v1.4+ is required!"))}function t(e,n){return(t.result=t.result||{})[n]?t.result[n]:e&&"function"==typeof e.getDriver?t.result[n]=e.getDriver(n):Promise.reject(new Error("localforage.getDriver() was not available! localforage v1.4+ is required!"))}function n(e){return t(e,e.WEBSQL)}var r=new Promise((function(e,t){"undefined"!=typeof sqlitePlugin?e():"undefined"==typeof cordova?t(new Error("cordova is not defined.")):document.addEventListener("deviceready",(function(){return e()}),!1)})).catch((function(){return Promise.resolve()}));function i(){return r.then((function(){if("undefined"!=typeof sqlitePlugin&&"function"==typeof sqlitePlugin.openDatabase)return sqlitePlugin.openDatabase;throw new Error("SQLite plugin is not present.")}))}var s={_driver:"cordovaSQLiteDriver",_initStorage:function(t){var r=this,s={db:null};if(t)for(var o in t)s[o]="string"!=typeof t[o]?t[o].toString():t[o];var a=i().then((function(e){return new Promise((function(t,n){try{s.location=s.location||"default",s.db=e({name:s.name,version:String(s.version),description:s.description,size:s.size,key:s.dbKey,location:s.location})}catch(i){n(i)}s.db.transaction((function(e){e.executeSql("CREATE TABLE IF NOT EXISTS "+s.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],(function(){r._dbInfo=s,t()}),(function(e,t){n(t)}))}))}))})),l=e(r),c=n(r);return Promise.all([l,c,a]).then((function(e){return s.serializer=e[0],a}))},_support:function(){return i().then((function(e){return!!e})).catch((function(){return!1}))}};return function(e){var t=["clear","getItem","iterate","key","keys","length","removeItem","setItem"];function r(e,t){e[t]=function(){var e=this,r=arguments;return n(e).then((function(n){return n[t].apply(e,r)}))}}for(var i=0,s=t.length;i<s;i++)r(e,t[i])}(s),s}()},vkgz:function(e,t,n){"use strict";var r=n("7o/Q");function i(){}var s=n("n6bG");function o(e,t,n){return function(r){return r.lift(new a(e,t,n))}}n.d(t,"a",(function(){return o}));class a{constructor(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}call(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}class l extends r.a{constructor(e,t,n,r){super(e),this._tapNext=i,this._tapError=i,this._tapComplete=i,this._tapError=n||i,this._tapComplete=r||i,Object(s.a)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||i,this._tapError=t.error||i,this._tapComplete=t.complete||i)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}},w1tV:function(e,t,n){"use strict";var r=n("XNiG"),i=n("HDdC"),s=n("7o/Q"),o=n("quSY");function a(){return function(e){return e.lift(new l(e))}}class l{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new c(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class c extends s.a{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class u extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new o.a,e.add(this.source.subscribe(new d(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}refCount(){return a()(this)}}const h=(()=>{const e=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class d extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function p(){return new r.a}function f(){return e=>{return a()((t=p,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,h);return r.source=e,r.subjectFactory=n,r})(e));var t}}n.d(t,"a",(function(){return f}))},wZ9J:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("o/Pg"),i=(n("/qZA"),n("z0vp"),n("kbZ1"));class s{constructor(e,t,n){this.socketsMgr=e,this.membersDatabaseMgr=t,this.injector=n,this.actionSyncMembers="syncMembers",this.actionJoinChat="joinChat",this.members=[],this.itemsManager=this.injector.get(i.a),this.init()}init(){}getMembers(e){console.log("hi Im in getMembers:",e),this.membersDatabaseMgr.getMembers(e).then(t=>{e.members=t,console.log(" chat.members in getMembers :",e.members)}).then(()=>{this.sync(e)})}getMeAsMember(e){return new Promise((t,n)=>{this.membersDatabaseMgr.getMeAsMember(e,this.itemsManager.userManager.user).then(n=>{n&&e.members.push(n),t(e)})})}getAdmins(e){return this.membersDatabaseMgr.getAdmins(e)}addMember(e,t){this.membersDatabaseMgr.add(e,t)}removeMember(e,t){this.membersDatabaseMgr.remove(e,t)}join(e){this.socketsMgr.asyncQuery(this.actionJoinChat,{chat:e.getSimpleModel()}).then(t=>{if(t.isAllowed()){let t=new r.a(this.socketsMgr.userManager.user);this.itemsManager.items.push(e.item),this.itemsManager.backUpitems.push(e.item),e.members.push(t);let n=this.itemsManager.publicItems.indexOf(e.item);this.itemsManager.publicItems.splice(n,1),this.addMember(t,e),this.itemsManager.add(e.item)}})}sync(e){console.log("Hi Im in sync"),this.socketsMgr.asyncQuery(this.actionSyncMembers,{chatID:e.chatID,localMembersIDs:e.getMemberIDs()}).then(t=>{if(t.isAllowed()){let n=t.getParam("created");console.log(" newMembersData  = result.getParam(created):",n);let i=t.getParam("deleted");console.log(" deletedMembersData  = result.getParam(deleted):",i);for(let t of n){let n=new r.a(t);e.members.push(n),this.membersDatabaseMgr.add(n,e)}}})}}},ws0j:function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return s}));var r=n("ePDZ");const i=e=>o(e),s=(e,t)=>("string"==typeof e&&(t=e,e=void 0),i(e).includes(t)),o=(e=window)=>{if(void 0===e)return[];e.Ionic=e.Ionic||{};let t=e.Ionic.platforms;return null==t&&(t=e.Ionic.platforms=a(e),t.forEach(t=>e.document.documentElement.classList.add("plt-"+t))),t},a=e=>Object.keys(m).filter(t=>m[t](e)),l=e=>!!f(e,/iPad/i)||!(!f(e,/Macintosh/i)||!u(e)),c=e=>f(e,/android|sink/i),u=e=>g(e,"(any-pointer:coarse)"),h=e=>d(e)||p(e),d=e=>!!(e.cordova||e.phonegap||e.PhoneGap),p=e=>{const t=e.Capacitor;return!(!t||!t.isNative)},f=(e,t)=>t.test(e.navigator.userAgent),g=(e,t)=>e.matchMedia(t).matches,m={ipad:l,iphone:e=>f(e,/iPhone/i),ios:e=>f(e,/iPhone|iPod/i)||l(e),android:c,phablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return r>390&&r<520&&i>620&&i<800},tablet:e=>{const t=e.innerWidth,n=e.innerHeight,r=Math.min(t,n),i=Math.max(t,n);return l(e)||(e=>c(e)&&!f(e,/mobile/i))(e)||r>460&&r<820&&i>780&&i<1400},cordova:d,capacitor:p,electron:e=>f(e,/electron/i),pwa:e=>!(!e.matchMedia("(display-mode: standalone)").matches&&!e.navigator.standalone),mobile:u,mobileweb:e=>u(e)&&!h(e),desktop:e=>!u(e),hybrid:h};class b{constructor(){this.m=new Map}reset(e){this.m=new Map(Object.entries(e))}get(e,t){const n=this.m.get(e);return void 0!==n?n:t}getBoolean(e,t=!1){const n=this.m.get(e);return void 0===n?t:"string"==typeof n?"true"===n:!!n}getNumber(e,t){const n=parseFloat(this.m.get(e));return isNaN(n)?void 0!==t?t:NaN:n}set(e,t){this.m.set(e,t)}}const v=new b;let y;const w=e=>e&&Object(r.k)(e)||y,_=()=>{const e=document,t=window,n=t.Ionic=t.Ionic||{};o(t);const i=Object.assign(Object.assign(Object.assign(Object.assign({},(e=>{try{const t=e.sessionStorage.getItem("ionic-persist-config");return null!==t?JSON.parse(t):{}}catch(t){return{}}})(t)),{persistConfig:!1}),n.config),(e=>{const t={};return e.location.search.slice(1).split("&").map(e=>e.split("=")).map(([e,t])=>[decodeURIComponent(e),decodeURIComponent(t)]).filter(([e])=>"ionic:"===e.substr(0,"ionic:".length)).map(([e,t])=>[e.slice("ionic:".length),t]).forEach(([e,n])=>{t[e]=n}),t})(t));v.reset(i),v.getBoolean("persistConfig")&&((e,t)=>{try{e.sessionStorage.setItem("ionic-persist-config",JSON.stringify(t))}catch(n){return}})(t,i),n.config=v,n.mode=y=v.get("mode",e.documentElement.getAttribute("mode")||(s(t,"ios")?"ios":"md")),v.set("mode",y),e.documentElement.setAttribute("mode",y),e.documentElement.classList.add(y),v.getBoolean("_testing")&&v.set("animated",!1);const a=e=>e.tagName&&e.tagName.startsWith("ION-"),l=e=>["ios","md"].includes(e);Object(r.r)(e=>{for(;e;){const t=e.mode||e.getAttribute("mode");if(t){if(l(t))return t;a(e)&&console.warn('Invalid ionic mode: "'+t+'", expected: "ios" or "md"')}e=e.parentElement}return y})}},"x/Nk":function(e,t,n){"use strict";n.r(t),n.d(t,"MENU_BACK_BUTTON_PRIORITY",(function(){return s})),n.d(t,"OVERLAY_BACK_BUTTON_PRIORITY",(function(){return i})),n.d(t,"startHardwareBackButton",(function(){return r}));const r=()=>{const e=document;let t=!1;e.addEventListener("backbutton",()=>{if(t)return;let n=0,r=[];const i=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(e,t){r.push({priority:e,handler:t,id:n++})}}});e.dispatchEvent(i);const s=()=>{if(r.length>0){let e={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};r.forEach(t=>{t.priority>=e.priority&&(e=t)}),t=!0,r=r.filter(t=>t.id!==e.id),(async e=>{try{if(e&&e.handler){const t=e.handler(s);null!=t&&await t}}catch(t){console.error(t)}})(e).then(()=>t=!1)}};s()})},i=100,s=99},xNyf:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.http=e,console.log("Hello MessagesManagerProvider Provider"),this.messages=[]}}},xSm1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("KOl+");function i(e,t,n,i){return Object(r.d)(e,t,n).apply(this,i)}},xbPD:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("7o/Q");function i(e=null){return t=>t.lift(new s(e))}class s{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new o(e,this.defaultValue))}}class o extends r.a{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgBC:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return l}));var r=n("8Y7J"),i=n("oAJy"),s=n("uzCt");class o{constructor(e){this._driver=null,this._dbPromise=new Promise((t,n)=>{let r;const o=Object.assign({name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]},e||{});Object(i.defineDriver)(s).then(()=>{r=Object(i.createInstance)(o)}).then(()=>r.setDriver(this._getDriverOrder(o.driverOrder))).then(()=>{this._driver=r.driver(),t(r)}).catch(e=>n(e))})}get driver(){return this._driver}ready(){return this._dbPromise}_getDriverOrder(e){return e.map(e=>{switch(e){case"sqlite":return s._driver;case"indexeddb":return i.INDEXEDDB;case"websql":return i.WEBSQL;case"localstorage":return i.LOCALSTORAGE}})}get(e){return this._dbPromise.then(t=>t.getItem(e))}set(e,t){return this._dbPromise.then(n=>n.setItem(e,t))}remove(e){return this._dbPromise.then(t=>t.removeItem(e))}clear(){return this._dbPromise.then(e=>e.clear())}length(){return this._dbPromise.then(e=>e.length())}keys(){return this._dbPromise.then(e=>e.keys())}forEach(e){return this._dbPromise.then(t=>t.iterate(e))}}const a=new r.o("STORAGE_CONFIG_TOKEN");function l(e){return new o(e||{name:"_ionicstorage",storeName:"_ionickv",dbKey:"_ionickey",driverOrder:["sqlite","indexeddb","websql","localstorage"]})}class c{static forRoot(e=null){return{ngModule:c,providers:[{provide:a,useValue:e},{provide:o,useFactory:l,deps:[a]}]}}}},xgIS:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("HDdC"),i=n("DH7j"),s=n("n6bG"),o=n("lJxs");function a(e,t,n,l){return Object(s.a)(n)&&(l=n,n=void 0),l?a(e,t,n).pipe(Object(o.a)(e=>Object(i.a)(e)?l(...e):l(e))):new r.a(r=>{!function e(t,n,r,i,s){let o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){const e=t;t.addEventListener(n,r,s),o=()=>e.removeEventListener(n,r,s)}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){const e=t;t.on(n,r),o=()=>e.off(n,r)}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){const e=t;t.addListener(n,r),o=()=>e.removeListener(n,r)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let o=0,a=t.length;o<a;o++)e(t[o],n,r,i,s)}i.add(o)}(e,t,(function(e){r.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),r,n)})}},xijw:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.verb=e.verb,this.infinitive=e.infinitive,this.person=e.person,this.form=e.form}isPresent(){return"present"==this.form}isPlusPerfect(){return"plustPerfect"==this.form}isConditional(){return"conditional"==this.form}isPerfect(){return"perfect"==this.form}isPast(){return"past"==this.form}isFuture(){return"future"==this.form}isImprative(){return"imperative"==this.form}}},xoVG:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("mrSG"),i=n("a3Cf"),s=n("VRyK"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.Connection={UNKNOWN:"unknown",ETHERNET:"ethernet",WIFI:"wifi",CELL_2G:"2g",CELL_3G:"3g",CELL_4G:"4g",CELL:"cellular",NONE:"none"},t}return Object(r.c)(t,e),t.prototype.onChange=function(){var e=this;return function(){if(!0===Object(i.checkAvailability)(e))return Object(s.a)(e.onConnect(),e.onDisconnect())}()},t.prototype.onDisconnect=function(){return Object(i.cordova)(this,"onDisconnect",{eventObservable:!0,event:"offline",element:"document"},arguments)},t.prototype.onConnect=function(){return Object(i.cordova)(this,"onConnect",{eventObservable:!0,event:"online",element:"document"},arguments)},Object.defineProperty(t.prototype,"type",{get:function(){return Object(i.cordovaPropertyGet)(this,"type")},set:function(e){Object(i.cordovaPropertySet)(this,"type",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"downlinkMax",{get:function(){return Object(i.cordovaPropertyGet)(this,"downlinkMax")},set:function(e){Object(i.cordovaPropertySet)(this,"downlinkMax",e)},enumerable:!0,configurable:!0}),t.pluginName="Network",t.plugin="cordova-plugin-network-information",t.pluginRef="navigator.connection",t.repo="https://github.com/apache/cordova-plugin-network-information",t.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],t}(i.IonicNativePlugin)},xq9V:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n("GAbP"),n("33wr"),n("PJj0");var r=n("AjPc");class i{constructor(e,t,n,r,i){this.http=e,this.spaceRepDatabaseMgr=t,this.localNotificationMgr=n,this.platform=r,this.databaseManager=i,console.log("Hello SpaceRepetitionManagerProvider Provider")}easy(e,t){if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,5),this.databaseManager.updateMessageReview(t,e).then(()=>{this.localNotificationMgr.updateLeitnerNotificationsSchedule()})}medium(e,t){if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,3),this.databaseManager.updateMessageReview(t,e).then(()=>{this.localNotificationMgr.updateLeitnerNotificationsSchedule()})}hard(e,t){if(!this.platform.is("cordova"))return!1;this.calculateSuperMemo2Algorithm(e,1),this.databaseManager.updateMessageReview(t,e).then(()=>{this.localNotificationMgr.updateLeitnerNotificationsSchedule()})}calculateSuperMemo2Algorithm(e,t){if(t<0||t>5)throw"error here or ensure elsewhere that quality is always within 0-5";let n=e.getRepetitions(),i=e.getEasinessFactor(),s=e.getInterval();i=Math.max(1.3,i+.1-(5-t)*(.08+.02*(5-t))),e.setEasinessFactor(i),t<3?(e.setRepetitions(0),n=0):(n+=1,e.setRepetitions(n)),s=this.getIntervalByRepetitions(e.repetittion,e.easinessFactor),console.log("card interval",s,"easiness",i);let o=new Date(e.reviewTime);o.setDate((new Date).getDate()+s),console.log("setting this time string",r.d.getTimeString(o)),e.setLastReviewedTime(e.reviewTime),e.setReviewTime(r.d.getTimeString(o))}getIntervalByRepetitions(e,t){let n=1;return e<=1?n=1:2==e?n=6:e>2&&(n=Math.round(this.getIntervalByRepetitions(e-1,t)*t)),n}}},yCtX:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("HDdC"),i=n("ngJS"),s=n("jZKg");function o(e,t){return t?Object(s.a)(e,t):new r.a(Object(i.a)(e))}},yLV6:function(e,t,n){var r;!function(i,s,o,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],u=s.createElement("div"),h=Math.round,d=Math.abs,p=Date.now;function f(e,t,n){return setTimeout(_(e,n),t)}function g(e,t,n){return!!Array.isArray(e)&&(m(e,n[t],n),!0)}function m(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function b(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=i.console&&(i.console.warn||i.console.log);return s&&s.call(i.console,r,n),e.apply(this,arguments)}}l="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var v=b((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),y=b((function(e,t){return v(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&l(r,n)}function _(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function x(e,t){return void 0===e?t:e}function O(e,t,n){m(T(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){m(T(t),(function(t){e.removeEventListener(t,n,!1)}))}function E(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function k(e,t){return e.indexOf(t)>-1}function T(e){return e.trim().split(/\s+/g)}function M(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function A(e){return Array.prototype.slice.call(e,0)}function I(e,t,n){for(var r=[],i=[],s=0;s<e.length;){var o=t?e[s][t]:e[s];M(i,o)<0&&r.push(e[s]),i[s]=o,s++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function D(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),s=0;s<c.length;){if((r=(n=c[s])?n+i:t)in e)return r;s++}}var P=1;function N(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var j="ontouchstart"in i,R=void 0!==D(i,"PointerEvent"),L=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),F=["x","y"],$=["clientX","clientY"];function B(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){C(e.options.enable,[e])&&n.handler(t)},this.init()}function V(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,s=1&t&&r-i==0,o=12&t&&r-i==0;n.isFirst=!!s,n.isFinal=!!o,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=q(t)),i>1&&!n.firstMultiple?n.firstMultiple=q(t):1===i&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,a=o?o.center:s.center,l=t.center=z(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=G(a,l),t.distance=W(a,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},s=e.prevInput||{};1!==t.eventType&&4!==s.eventType||(i=e.prevDelta={x:s.deltaX||0,y:s.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=H(t.deltaX,t.deltaY);var c,u,h=U(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=h.x,t.overallVelocityY=h.y,t.overallVelocity=d(h.x)>d(h.y)?h.x:h.y,t.scale=o?(c=o.pointers,W((u=r)[0],u[1],$)/W(c[0],c[1],$)):1,t.rotation=o?function(e,t){return G(t[1],t[0],$)+G(e[1],e[0],$)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,s,o=e.lastInterval||t,a=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(a>25||void 0===o.velocity)){var l=t.deltaX-o.deltaX,c=t.deltaY-o.deltaY,u=U(a,l,c);r=u.x,i=u.y,n=d(u.x)>d(u.y)?u.x:u.y,s=H(l,c),e.lastInterval=t}else n=o.velocity,r=o.velocityX,i=o.velocityY,s=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=s}(n,t);var f=e.element;E(t.srcEvent.target,f)&&(f=t.srcEvent.target),t.target=f}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function q(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:h(e.pointers[n].clientX),clientY:h(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:z(t),deltaX:e.deltaX,deltaY:e.deltaY}}function z(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:h(n/t),y:h(r/t)}}function U(e,t,n){return{x:t/e||0,y:n/e||0}}function H(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function W(e,t,n){n||(n=F);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function G(e,t,n){return n||(n=F),180*Math.atan2(t[n[1]]-e[n[1]],t[n[0]]-e[n[0]])/Math.PI}B.prototype={handler:function(){},init:function(){this.evEl&&O(this.element,this.evEl,this.domHandler),this.evTarget&&O(this.target,this.evTarget,this.domHandler),this.evWin&&O(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(N(this.element),this.evWin,this.domHandler)}};var X={mousedown:1,mousemove:2,mouseup:4};function J(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,B.apply(this,arguments)}w(J,B,{handler:function(e){var t=X[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Z={2:"touch",3:"pen",4:"mouse",5:"kinect"},Y="pointerdown",K="pointermove pointerup pointercancel";function ee(){this.evEl=Y,this.evWin=K,B.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(Y="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,B,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Q[r],s=Z[e.pointerType]||e.pointerType,o="touch"==s,a=M(t,e.pointerId,"pointerId");1&i&&(0===e.button||o)?a<0&&(t.push(e),a=t.length-1):12&i&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:s,srcEvent:e}),n&&t.splice(a,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,B.apply(this,arguments)}function re(e,t){var n=A(e.touches),r=A(e.changedTouches);return 12&t&&(n=I(n.concat(r),"identifier",!0)),[n,r]}w(ne,B,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ie={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function se(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},B.apply(this,arguments)}function oe(e,t){var n=A(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,s,o=A(e.changedTouches),a=[],l=this.target;if(s=n.filter((function(e){return E(e.target,l)})),1===t)for(i=0;i<s.length;)r[s[i].identifier]=!0,i++;for(i=0;i<o.length;)r[o[i].identifier]&&a.push(o[i]),12&t&&delete r[o[i].identifier],i++;return a.length?[I(s.concat(a),"identifier",!0),a]:void 0}function ae(){B.apply(this,arguments);var e=_(this.handler,this);this.touch=new se(this.manager,e),this.mouse=new J(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function le(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ce.call(this,t)):12&e&&ce.call(this,t)}function ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function ue(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],s=Math.abs(t-i.x),o=Math.abs(n-i.y);if(s<=25&&o<=25)return!0}return!1}w(se,B,{handler:function(e){var t=ie[e.type],n=oe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}),w(ae,B,{handler:function(e,t,n){var r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if("touch"==n.pointerType)le.call(this,t,n);else if(r&&ue.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var he=D(u.style,"touchAction"),de=void 0!==he,pe=function(){if(!de)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function fe(e,t){this.manager=e,this.set(t)}function ge(e){this.options=l({},this.defaults,e||{}),this.id=P++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function me(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function be(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ve(e,t){var n=t.manager;return n?n.get(e):e}function ye(){ge.apply(this,arguments)}function we(){ye.apply(this,arguments),this.pX=null,this.pY=null}function _e(){ye.apply(this,arguments)}function Ce(){ge.apply(this,arguments),this._timer=null,this._input=null}function xe(){ye.apply(this,arguments)}function Oe(){ye.apply(this,arguments)}function Se(){ge.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ee(e,t){return(t=t||{}).recognizers=x(t.recognizers,Ee.defaults.preset),new ke(e,t)}function ke(e,t){var n;this.options=l({},Ee.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ee:L?se:j?ae:J))(n,V),this.touchAction=new fe(this,this.options.touchAction),Te(this,!0),m(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Te(e,t){var n,r=e.element;r.style&&(m(e.options.cssProps,(function(i,s){n=D(r.style,s),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}fe.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[he]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return m(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(k(e,"none"))return"none";var t=k(e,"pan-x"),n=k(e,"pan-y");return t&&n?"none":t||n?t?"pan-x":"pan-y":k(e,"manipulation")?"manipulation":"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=k(r,"none")&&!pe.none,s=k(r,"pan-y")&&!pe["pan-y"],o=k(r,"pan-x")&&!pe["pan-x"];if(i&&1===e.pointers.length&&e.distance<2&&e.deltaTime<250)return;if(!o||!s)return i||s&&6&n||o&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}},ge.prototype={defaults:{},set:function(e){return l(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(g(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ve(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return g(e,"dropRecognizeWith",this)||(e=ve(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(g(e,"requireFailure",this))return this;var t=this.requireFail;return-1===M(t,e=ve(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(g(e,"dropRequireFailure",this))return this;e=ve(e,this);var t=M(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+me(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+me(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=l({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(ye,ge,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:32}}),w(we,ye,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,s=e.deltaX,o=e.deltaY;return i&t.direction||(6&t.direction?(i=0===s?1:s<0?2:4,n=s!=this.pX,r=Math.abs(e.deltaX)):(i=0===o?1:o<0?8:16,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return ye.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=be(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(_e,ye,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){1!==e.scale&&(e.additionalEvent=this.options.event+(e.scale<1?"in":"out")),this._super.emit.call(this,e)}}),w(Ce,ge,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(xe,ye,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Oe,ye,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=be(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(Se,ge,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var s=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||W(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&s?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=f((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ee.VERSION="2.0.7",Ee.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[xe,{enable:!1}],[_e,{enable:!1},["rotate"]],[Oe,{direction:6}],[we,{direction:6},["swipe"]],[Se],[Se,{event:"doubletap",taps:2},["tap"]],[Ce]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},ke.prototype={set:function(e){return l(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var s=0;s<r.length;)n=r[s],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),s++}},get:function(e){if(e instanceof ge)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(g(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(g(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=M(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return m(T(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return m(T(e),(function(e){t?n[e]&&n[e].splice(M(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=s.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Te(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},l(Ee,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:ke,Input:B,TouchAction:fe,TouchInput:se,MouseInput:J,PointerEventInput:ee,TouchMouseInput:ae,SingleTouchInput:ne,Recognizer:ge,AttrRecognizer:ye,Tap:Se,Pan:we,Swipe:Oe,Pinch:_e,Rotate:xe,Press:Ce,on:O,off:S,each:m,merge:y,extend:v,assign:l,inherit:w,bindFn:_,prefixed:D}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Ee,void 0===(r=(function(){return Ee}).call(t,n,t,e))||(e.exports=r)}(window,document)},"z+Ro":function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,"a",(function(){return r}))},z0vp:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("GAbP");n("6GXZ"),n("2IJ5");class i extends r.a{constructor(e,t,n,r){super(e,t,n,r),this.sqlite=e,this.consoleDialog=t,this.injector=n,this.platform=r,this.init().then(()=>{console.log("Im in createMembersTable"),this.createMembersTable()})}add(e,t){let n='INSERT INTO members (chatID,userID,role,name,email) SELECT "'+t.chatID+'","'+e.userID+'","'+e.role+'","'+e.name+'","'+e.email+'" ';n+="where NOT EXISTS(SELECT 1 FROM members WHERE chatID = '"+t.chatID+"' AND userID = '"+e.userID+"')",console.log("member is:",e),console.log("chat is :",t),console.log("sqlString is:",n),this.databaseObj.executeSql(n).then(()=>{console.log("member has beend added successfully")}).catch(e=>{console.log(" there was  an error adding member to database",e)})}remove(e,t){this.databaseObj.executeSql('DELETE from members where chatID = "'+t.chatID+'"  AND userID ="'+e.userID+'"').then(()=>{console.log("member has beend removed successfully")}).catch(e=>{console.log(" there was  an error removing member from database",e)})}getMembers(e){return new Promise(e=>{this.platform.is("cordova")?this.init().then(()=>{console.log("in else getmembers")}):e([])})}getMeAsMember(e,t){return new Promise(e=>{this.init().then(()=>{})})}getAdmins(e){return new Promise(e=>{this.init().then(()=>{})})}init(){return new Promise(e=>{null!=this.databaseObj?(console.log(" if(this.databaseObj != undefined)"),e(this.databaseObj)):super.init(this.userManager.user).then(t=>{console.log(" else->if(this.databaseObj != undefined)"),e(t)})})}createMembersTable(){console.log("Im in createMembersTable()"),this.databaseObj.executeSql("create table  IF NOT EXISTS members \n    (chatID  VARCHAR(32),userID  VARCHAR(32),role VARCHAR(32),name VARCHAR(32),email VARCHAR(32) )",[]).then(()=>{console.log("created table of members SQL")}).catch(e=>{console.log(e)})}}},z6cu:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("HDdC");function i(e,t){return new r.a(t?n=>t.schedule(s,0,{error:e,subscriber:n}):t=>t.error(e))}function s({error:e,subscriber:t}){t.error(e)}},zI0Y:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("sUqe");class i{constructor(e){this.plusRate=0,this.minusRate=0,null!=e.plusRate&&(this.plusRate=e.plusRate,this.id=e.id,this.wordID=e.wordID,this.minusRate=e.minusRate),null!=e.userID&&(this.userID=e.userID),null!=e.disliked&&(this.disliked=e.disliked),null!=e.liked&&(this.disliked=e.liked),this.word=e.word,this.related=1==parseInt(e.related),this.translation=e.translation,"1"!=e.hasProposition&&1!=e.hasProposition||(this.hasProposition=!0)}static get possibleTypes(){return r.i}setUserID(e){this.userID=e}setWordType(e){this.wordType=e}setMessageID(e){this.messageID=e}setLanguage(e){this.wordLanguage=e}}},zMNK:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return d}));var r=n("8Y7J");function i(){throw Error("Host already has a portal attached")}class s{attach(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&i(),this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class o extends s{constructor(e,t,n,r){super(),this.component=e,this.viewContainerRef=t,this.injector=n,this.componentFactoryResolver=r}}class a extends s{constructor(e,t,n){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class l{constructor(){this._isDisposed=!1}hasAttached(){return!!this._attachedPortal}attach(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&i(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof o?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof a?(this._attachedPortal=e,this.attachTemplatePortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class c extends l{constructor(e,t,n,r){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=n,this._defaultInjector=r}attachComponentPortal(e){const t=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let n;return e.viewContainerRef?(n=e.viewContainerRef.createComponent(t,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=t.create(e.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context);return n.detectChanges(),n.rootNodes.forEach(e=>this.outletElement.appendChild(e)),this.setDisposeFn(()=>{let e=t.indexOf(n);-1!==e&&t.remove(e)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}class u extends l{constructor(e,t){super(),this._componentFactoryResolver=e,this._viewContainerRef=t,this._isInitialized=!1,this.attached=new r.m}get portal(){return this._attachedPortal}set portal(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(e){e.setAttachedHost(this);const t=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r=t.createComponent(n,t.length,e.injector||t.injector);return super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);const t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}}class h{}class d{constructor(e,t){this._parentInjector=e,this._customTokens=t}get(e,t){const n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}},zUnb:function(e,t,n){"use strict";n.r(t),n("yLV6");var r=n("8Y7J");class i{constructor(e,t="/assets/i18n/",n=".json"){this.http=e,this.prefix=t,this.suffix=n}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}}function s(e){return new i(e,"./assets/i18n/",".json")}class o{}var a=n("p74H"),l=n("mrSG"),c=n("a3Cf"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t.prototype.show=function(){return Object(c.cordova)(this,"show",{sync:!0},arguments)},t.prototype.hide=function(){return Object(c.cordova)(this,"hide",{sync:!0},arguments)},t.pluginName="SplashScreen",t.plugin="cordova-plugin-splashscreen",t.pluginRef="navigator.splashscreen",t.repo="https://github.com/apache/cordova-plugin-splashscreen",t.platforms=["Amazon Fire OS","Android","iOS","Windows"],t}(c.IonicNativePlugin),h=n("olg3"),d=n("iunF"),p=n("EGUZ"),f=n("QA36"),g=n("/qZA"),m=n("2IJ5"),b=n("AjPc"),v=n("sUqe");class y{constructor(e,t,n,r,i,s,o,a,l,c,u,h,d){this.platform=e,this.splashScreen=t,this.statusBar=n,this.consoleDialog=r,this.userManager=i,this.storageManager=s,this.settingsManager=o,this.router=a,this.collectionManager=l,this.socketManager=c,this.modalCtrl=u,this.menu=h,this.translateService=d,this._isBayaPlus=!1,this.initializeApp(),this.settingsManager.getActiveTheme().subscribe(e=>this.selectedTheme=e),e.ready().then(()=>{this.router.navigate(["profile/introduction"]),b.b.addCssClass(this.selectedTheme),this.translateService.setDefaultLang("en"),this.translateService.use("en"),this.userManager.isFirstUse().then(e=>{this.checkForLogin(),this.storageManager.get("lang").then(e=>{let t=e;null==e&&(t="fa"),this.translateService.use(t)}),this.storageManager.get("autoNightMode").then(e=>{e&&(console.log("time now",b.d.getHour()),(b.d.getHour()>22||b.d.getHour()<4)&&this.selectNightTheme())}),this.openCustom()}).catch(()=>{}),n.styleDefault(),n.overlaysWebView(!0),t.hide(),this.isBayaPlus(),this.initModeMenuTitle()})}initializeApp(){this.platform.ready().then(()=>{this.statusBar.styleDefault(),this.splashScreen.hide()})}getRootNav(){return this.rootPage}openFirst(){this.menu.enable(!0,"first"),this.menu.open("first")}openEnd(){this.menu.open("end")}openCustom(){this.menu.enable(!0,"custom"),this.menu.open("custom")}toggleTheme(){b.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(v.g.getNextTheme(this.selectedTheme)),b.b.addCssClass(this.selectedTheme)}isThemeNightMoode(){return this.selectedTheme==v.g.dark}isBayaPlus(){this.settingsManager.getPrimarySettings().then(e=>{this._isBayaPlus=e.isBayaPlus()})}selectNightTheme(){b.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(v.g.dark),this.selectedTheme=v.g.dark,b.b.addCssClass(this.selectedTheme)}selectLightTheme(){b.b.removeCssClass(this.selectedTheme),this.settingsManager.setActiveTheme(v.g.light),this.selectedTheme=v.g.light,b.b.addCssClass(this.selectedTheme)}toggleNightMode(){b.b.removeCssClass(this.selectedTheme),this.selectedTheme=this.isThemeNightMoode()?v.g.light:v.g.dark,this.userManager.theme=!0!==this.userManager.theme,b.b.addCssClass(this.selectedTheme),this.initModeMenuTitle()}nightMode(){this.toggleNightMode()}lightMode(){this.toggleNightMode()}isNightMode(){return this.isThemeNightMoode()}isLightMode(){return!this.isNightMode()}initModeMenuTitle(){this.isThemeNightMoode()?this.translateService.get("MENU.lightMode").subscribe(e=>{this.modeTitle=e}):(console.log(this.translateService.currentLang),this.translateService.get("MENU.nightMode").subscribe(e=>{console.log(e),this.modeTitle=e}))}getModeMenuTitle(){return this.modeTitle}checkForLogin(){this.userManager.loggedIn().then(e=>{this.router.navigate(1==e?["items"]:["profile/introduction"])}).catch(()=>{this.router.navigate(["phone"])})}openPage(e){var t=this;switch(e){case"profile":this.userManager.loggedIn().then(e=>{e?t.router.navigate(["profile"]):this.router.navigate(["phone"])});break;case"items":t.router.navigate(["/items"]);break;case"invite":t.router.navigate(["/invite"]);break;case"bayaPlus":t.router.navigate(["/bayaplus"]);break;case"friends":t.router.navigate(["/contact"]);break;case"collections":t.router.navigate(["collection"]);break;case"wallet":t.router.navigate(["/wallet"]);break;case"settings":t.router.navigate(["/settings"]);break;case"support":t.router.navigate(["/support"])}this.menu.close()}}var w=n("pMnS"),_=n("qu3L"),C=n("t68o"),x=n("m/40"),O=n("B/Pu"),S=n("ri/Y"),E=n("ja1e"),k=n("MKJQ"),T=n("sZkV"),M=n("s7LF"),A=n("3MOV");class I{constructor(e,t,n,r,i,s,o,a){this.storage=e,this.navCtrl=t,this.http=n,this.router=r,this.alertCtrl=i,this.ajaxBridge=s,this.storageManager=o,this.toastCtrl=a}ionViewDidLoad(){console.log("ionViewDidLoad PhonePage")}activateAccount(){this.storageManager.get("phoneNumber").then(e=>{var t={activationCode:this.activationCode,phoneNumber:e};console.log(e),this.ajaxBridge.queryPro("activateAccount",t).then(e=>{console.log(e),0==e.activated?this.presentToast("\u06a9\u062f \u0641\u0639\u0627\u0644 \u0633\u0627\u0632\u06cc \u0635\u062d\u06cc\u062d \u0646\u06cc\u0633\u062a"):1==e.activated&&this.storageManager.activateAccount()})})}onActivation(e){}presentToast(e){this.toastCtrl.create({message:e,duration:3e3,position:"middle"})}}var D=n("xgBC"),P=n("W2O4"),N=n("iInd"),j=r.qb({encapsulation:2,styles:[],data:{}});function R(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,null,26,"ion-content",[["center",""],["class","vertical-align-content backback ion-text-center"],["scroll","false"]],null,null,null,k.Y,k.j)),r.rb(3,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,24,"div",[["class","pageContent"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,7,"ion-card",[],null,null,null,k.V,k.f)),r.rb(6,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,5,"ion-card-content",[],null,null,null,k.U,k.g)),r.rb(8,49152,null,0,T.n,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["\u06cc\u06a9 \u06a9\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u0633 \u0627\u0645 \u0627\u0633 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0627\u0631\u0633\u0627\u0644 \u0634\u062f"])),(e()(),r.sb(11,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["\u0644\u0637\u0641\u0627 \u06a9\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"])),(e()(),r.sb(13,0,null,null,15,"ion-grid",[],null,null,null,k.db,k.o)),r.rb(14,49152,null,0,T.A,[r.h,r.k,r.x],null,null),(e()(),r.sb(15,0,null,0,13,"ion-row",[["center",""]],null,null,null,k.qb,k.B)),r.rb(16,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(17,0,null,0,11,"ion-col",[],null,null,null,k.X,k.i)),r.rb(18,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(19,0,null,0,7,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(20,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,1,"ion-label",[["floating",""]],null,null,null,k.kb,k.v)),r.rb(22,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(23,0,null,0,3,"ion-input",[["type","number"]],null,[[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,26)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,26)._handleIonChange(n.target)&&i),i}),k.ib,k.t)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Ib]),r.rb(25,49152,null,0,T.G,[r.h,r.k,r.x],{type:[0,"type"]},null),r.rb(26,4341760,null,0,T.Ib,[r.p,r.k],null,null),(e()(),r.sb(27,0,null,0,1,"button",[["color","secondary"],["ion-button",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.activateAccount()&&r),r}),null,null)),(e()(),r.Lb(-1,null,["\u0641\u0639\u0627\u0644 \u0633\u0627\u0632\u06cc"]))],(function(e,t){e(t,25,0,"number")}),null)}function L(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"activation-phone",[],null,null,null,R,j)),r.rb(1,49152,null,0,I,[D.b,T.Gb,P.e,N.m,T.b,A.a,p.a,T.Ob],null,null)],null,null)}var F=r.ob("activation-phone",I,L,{},{},[]),$=n("TSSN"),B=n("HcDZ"),V=n("SVse"),q=n("kbZ1"),z=n("J20c"),U=n("h4wn"),H=n("sk1z"),W=n("0+M4");class G{constructor(e,t,n,r){this.navCtrl=e,this.platform=t,this.translateService=n,this.userManager=r,this.defaultLang=this.translateService.currentLang,this.defaultLang&&console.log(this.defaultLang),this.device=this.platform.is("ios")?"ios":this.platform.is("android")?"android":"unkown"}isPersian(){return this.defaultLang=this.translateService.currentLang,"fa"!==this.defaultLang}ionViewDidLoad(){this.information=this.userManager.user.userID+"-"+this.device}toshow(){console.log(this.defaultLang)}}var X=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   ion-card.card[_ngcontent-%COMP%]{margin:0 auto;background:rgba(0,0,0,.031372549)}[_nghost-%COMP%]   ion-row[_ngcontent-%COMP%]{margin-top:11px}[_nghost-%COMP%]   .persian[_ngcontent-%COMP%]{text-align:justify;text-justify:inter-word;direction:rtl;color:#787276!important}[_nghost-%COMP%]   .english[_ngcontent-%COMP%]{text-align:justify;text-justify:inter-word;color:#787276!important}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{color:#787276!important}"]],data:{}});function J(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","english"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("CONTENT.Support.message")))}))}function Q(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"div",[["class","persian"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("CONTENT.Support.message")))}))}function Z(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,2,"comp-header",[["showMenuBtn","true"]],null,null,null,S.c,S.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,q.a,z.a,m.a,h.a,T.Fb,$.j,U.a,H.a,T.Eb,W.a,g.a,N.m],{textToUse:[0,"textToUse"],showMenuBtn:[1,"showMenuBtn"]},null),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(5,0,null,null,25,"ion-content",[["class","ion-padding"]],null,null,null,k.Y,k.j)),r.rb(6,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(7,0,null,0,23,"ion-card",[],null,null,null,k.V,k.f)),r.rb(8,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,21,"ion-card-content",[],null,null,null,k.U,k.g)),r.rb(10,49152,null,0,T.n,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,J)),r.rb(12,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,Q)),r.rb(14,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(15,0,null,0,3,"ion-row",[],null,null,null,k.qb,k.B)),r.rb(16,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(17,0,null,0,1,"a",[["href","mailto:info@bayadic.com?Subject=Hello%20Baya"],["style","color : black"],["target","_top"]],null,null,null,null,null)),(e()(),r.Lb(-1,null,["Email : info@bayadic.com"])),(e()(),r.sb(19,0,null,0,5,"ion-row",[],null,null,null,k.qb,k.B)),r.rb(20,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" Telegram : "])),(e()(),r.sb(22,0,null,0,2,"a",[["target","_blank"]],[[8,"href",4]],null,null,null,null)),(e()(),r.sb(23,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["@TamasBaBot"])),(e()(),r.sb(25,0,null,0,5,"ion-row",[],null,null,null,k.qb,k.B)),r.rb(26,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" Instagram : "])),(e()(),r.sb(28,0,null,0,2,"a",[["href","https://www.instagram.com/bayadic"],["target","_blank"]],null,null,null,null,null)),(e()(),r.sb(29,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["@bayadic"]))],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,4).transform("TITLE.support")),""),"true"),e(t,12,0,n.isPersian()),e(t,14,0,!n.isPersian())}),(function(e,t){e(t,22,0,r.wb(1,"https://telegram.me/tamasbabot?start=",t.component.information,""))}))}function Y(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-support",[],null,null,null,Z,X)),r.rb(1,49152,null,0,G,[T.Gb,T.Jb,$.j,h.a],null,null)],null,null)}var K=r.ob("page-support",G,Y,{},{},[]);class ee{constructor(e){this.consoleDialog=e}clear(){this.consoleDialog.messages.length=0,this.consoleDialog.devMode=!1}close(){this.consoleDialog.devMode=!1}showDetails(e){b.a.isJson(e.data)?console.log(JSON.parse(e.data)):console.log(e.data)}}var te=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative;top:30%}[_nghost-%COMP%]   .dialog[_ngcontent-%COMP%]{margin-top:40%;box-shadow:#000}[_nghost-%COMP%]   ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:10px;overflow:scroll;height:300px}[_nghost-%COMP%]   ion-input[_ngcontent-%COMP%]{background:#00b7ff}"]],data:{}});function ne(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,4,"ion-item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.showDetails(e.context.$implicit)&&r),r}),k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,[" "," "," "])),(e()(),r.sb(3,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(4,null,["",""]))],null,(function(e,t){e(t,2,0,t.context.index,t.context.$implicit.msg),e(t,4,0,t.context.$implicit.time)}))}function re(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,10,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,3,"ion-card",[],null,null,null,k.V,k.f)),r.rb(2,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,ne)),r.rb(4,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(5,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.clear()&&r),r}),k.S,k.d)),r.rb(6,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Clear"])),(e()(),r.sb(8,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(9,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Cancel"]))],(function(e,t){e(t,4,0,t.component.consoleDialog.messages)}),null)}function ie(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"debug-dialog",[],null,null,null,re,te)),r.rb(1,49152,null,0,ee,[m.a],null,null)],null,null)}var se=r.ob("debug-dialog",ee,ie,{},{},[]),oe=n("iV+E"),ae=n("hqw5"),le=n("dIIk"),ce=n("wZ9J"),ue=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   .menuBtn[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   ion-item[_ngcontent-%COMP%]{padding:21px;border-radius:13px}"]],data:{}});function he(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"friend",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.askAdd(n,e.context.$implicit)&&r),r}),oe.b,oe.a)),r.rb(1,5292032,null,0,ae.a,[T.a,U.a,z.a,q.a,m.a,T.Fb],{friend:[0,"friend"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function de(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"comp-header",[["myText","select contacts"],["showBackBtn","true"]],null,null,null,S.c,S.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,q.a,z.a,m.a,h.a,T.Fb,$.j,U.a,H.a,T.Eb,W.a,g.a,N.m],{textToUse:[0,"textToUse"],showBackBtn:[1,"showBackBtn"]},null),(e()(),r.sb(4,0,null,null,3,"ion-content",[["class","ion-padding"]],null,null,null,k.Y,k.j)),r.rb(5,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,he)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,3,0,"select contacts","true"),e(t,7,0,n.friendsManager.friends)}),null)}function pe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-select-contact",[],null,null,null,de,ue)),r.rb(1,49152,null,0,le.a,[T.Fb,T.Gb,U.a,ce.a,z.a,T.b,T.Hb,W.a],null,null)],null,null)}var fe=r.ob("page-select-contact",le.a,pe,{},{},[]),ge=n("g4Gf"),me=n("KnF1"),be=r.qb({encapsulation:2,styles:[],data:{}});function ve(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"item",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.askAdd(n,e.context.$implicit)&&r),r}),x.c,x.b)),r.rb(1,5292032,null,0,ge.a,[ce.a,h.a,T.Gb,T.Fb,q.a,z.a,p.a,T.Jb,m.a,W.a,T.a],{itemObject:[0,"itemObject"]},null)],(function(e,t){e(t,1,0,t.context.$implicit)}),null)}function ye(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"comp-header",[["myText","select item"]],null,null,null,S.c,S.b)),r.rb(3,4308992,null,0,B.a,[T.Gb,V.g,q.a,z.a,m.a,h.a,T.Fb,$.j,U.a,H.a,T.Eb,W.a,g.a,N.m],{textToUse:[0,"textToUse"],showBackBtn:[1,"showBackBtn"]},null),(e()(),r.sb(4,0,null,null,3,"ion-content",[["class","ion-padding"]],null,null,null,k.Y,k.j)),r.rb(5,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.hb(16777216,null,0,1,null,ve)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null)],(function(e,t){var n=t.component;e(t,3,0,"select item",!0),e(t,7,0,n.availableItems)}),null)}function we(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-select-item",[],null,null,null,ye,be)),r.rb(1,49152,null,0,me.a,[T.Gb,U.a,q.a,z.a,T.Fb,T.b,T.Hb],null,null)],null,null)}var _e=r.ob("page-select-item",me.a,we,{},{},[]);class Ce{constructor(e,t){this.navCtrl=e,this.userManager=t}ionViewDidLoad(){console.log("ionViewDidLoad WalletPage")}addCredit(e){this.userManager.user.credit+=e}}var xe=r.qb({encapsulation:2,styles:[],data:{}});function Oe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,6,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,4,"ion-toolbar",[],null,null,null,k.Db,k.O)),r.rb(3,49152,null,0,T.zb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,2,"ion-title",[],null,null,null,k.Bb,k.M)),r.rb(5,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["wallet"])),(e()(),r.sb(7,0,null,null,33,"ion-content",[["class","ion-padding"]],null,null,null,k.Y,k.j)),r.rb(8,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(9,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(10,null,["You have "," Credit in your wallet. The Stars will be used in different part of application to pay for features "])),(e()(),r.sb(11,0,null,0,1,"p",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,["Try to boost up by your skills by adding more credits"])),(e()(),r.sb(13,0,null,0,6,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(14,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 100 Stars 2 euros "])),(e()(),r.sb(16,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,k.fb,k.q)),r.rb(17,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(18,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(100)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(20,0,null,0,6,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(21,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 200 Stars 3 euros "])),(e()(),r.sb(23,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,k.fb,k.q)),r.rb(24,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(25,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(200)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(27,0,null,0,6,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(28,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 300 Stars 4 euros "])),(e()(),r.sb(30,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,k.fb,k.q)),r.rb(31,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(32,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(300)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "])),(e()(),r.sb(34,0,null,0,6,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(35,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,[" 400 Stars for 5 euros "])),(e()(),r.sb(37,0,null,0,1,"ion-icon",[["name","ios-star"]],null,null,null,k.fb,k.q)),r.rb(38,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(39,0,null,0,1,"button",[["ion-button",""],["medium",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addCredit(400)&&r),r}),null,null)),(e()(),r.Lb(-1,null,[" Buy "]))],(function(e,t){e(t,17,0,"ios-star"),e(t,24,0,"ios-star"),e(t,31,0,"ios-star"),e(t,38,0,"ios-star")}),(function(e,t){e(t,10,0,t.component.userManager.user.credit)}))}function Se(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-wallet",[],null,null,null,Oe,xe)),r.rb(1,49152,null,0,Ce,[T.Gb,h.a],null,null)],null,null)}var Ee=r.ob("page-wallet",Ce,Se,{},{},[]);class ke{constructor(e,t,n){this.view=e,this.loadingCtrl=t,this.ajaxBridge=n,this.loadDescription(),this.presentLoadingDefault()}closeModal(){this.view.dismiss()}strip(e){return e.replace(/<(?:.|\n)*?>/gm,"")}presentLoadingDefault(){}getDescription(e){return this.collection.getDescription()}loadDescription(){}ionViewDidLoad(){}}var Te=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   ion-content.content[_ngcontent-%COMP%]{background-color:#ff4500}[_nghost-%COMP%]   ion-title.title[_ngcontent-%COMP%]{position:relative;float:left}[_nghost-%COMP%]   .closeBtn[_ngcontent-%COMP%]{position:relative;float:left;display:none}[_nghost-%COMP%]   ion-icon.icon[_ngcontent-%COMP%]{margin-left:0;position:relative;float:left}[_nghost-%COMP%]   .toolbar-background[_ngcontent-%COMP%]{background-color:#ffc107}[_nghost-%COMP%]   .collectionImage[_ngcontent-%COMP%]{width:200px;height:200px}"]],data:{}});function Me(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,10,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(1,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,8,"ion-toolbar",[],null,null,null,k.Db,k.O)),r.rb(3,49152,null,0,T.zb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"div",[["class","closeBtn"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,2,"button",[],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.closeModal()&&r),r}),null,null)),(e()(),r.sb(6,0,null,null,1,"ion-icon",[["name","close"]],null,null,null,k.fb,k.q)),r.rb(7,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(8,0,null,0,2,"ion-title",[],null,null,null,k.Bb,k.M)),r.rb(9,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(10,0,["",""])),(e()(),r.sb(11,0,null,null,1,"ion-content",[],null,null,null,k.Y,k.j)),r.rb(12,49152,null,0,T.u,[r.h,r.k,r.x],null,null)],(function(e,t){e(t,7,0,"close")}),(function(e,t){e(t,10,0,t.component.collection.getTitle())}))}function Ae(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"page-modal-description",[],null,null,null,Me,Te)),r.rb(1,49152,null,0,ke,[T.Fb,T.Db,A.a],null,null)],null,null)}var Ie=r.ob("page-modal-description",ke,Ae,{},{},[]),De=n("pJ1N"),Pe=r.qb({encapsulation:0,styles:[["tour-guide[_ngcontent-%COMP%]{text-align:center;z-index:3}tour-guide[_ngcontent-%COMP%]   .closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:0 0;position:fixed;left:0;top:0;z-index:-1}tour-guide[_ngcontent-%COMP%]   .target[_ngcontent-%COMP%]{position:absolute;background:0 0;box-shadow:0 0 9px 903px rgba(0,0,0,.73);margin:0 auto;border-radius:33%;z-index:-1}tour-guide[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{color:#fff;z-index:2;background:#bfbfbf;border-radius:13px;position:relative;padding:10px}"]],data:{}});function Ne(e){return r.Nb(0,[r.Jb(671088640,1,{chatInput:0}),(e()(),r.sb(1,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.next()&&r),r}),null,null)),(e()(),r.sb(2,0,null,null,8,"div",[["class","target"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.next()&&r),r}),null,null)),r.Ib(512,null,V.w,V.x,[r.k,r.r,r.D]),r.rb(4,278528,null,0,V.n,[V.w],{ngStyle:[0,"ngStyle"]},null),r.Gb(5,{width:0,height:1,top:2,left:3}),(e()(),r.sb(6,0,null,null,4,"div",[["class","text"]],null,null,null,null,null)),r.Ib(512,null,V.w,V.x,[r.k,r.r,r.D]),r.rb(8,278528,null,0,V.n,[V.w],{ngStyle:[0,"ngStyle"]},null),r.Gb(9,{width:0,height:1,top:2,left:3}),(e()(),r.Lb(10,null,["",""])),(e()(),r.sb(11,0,null,null,0,"div",[],null,null,null,null,null))],(function(e,t){var n=t.component,r=e(t,5,0,n.width,n.height,n.top,n.left);e(t,4,0,r);var i=e(t,9,0,n.textWidth,n.textHeight,n.textTop,n.textLeft);e(t,8,0,i)}),(function(e,t){e(t,10,0,t.component.text)}))}function je(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"tour-guide",[],null,null,null,Ne,Pe)),r.rb(1,573440,null,0,De.a,[T.Fb,T.Jb],null,null)],null,null)}var Re=r.ob("tour-guide",De.a,je,{},{},[]),Le=n("HKEL"),Fe=r.qb({encapsulation:0,styles:[["[_nghost-%COMP%]   .dialogfa[_ngcontent-%COMP%]{padding:15px;direction:rtl}[_nghost-%COMP%]   .dialogen[_ngcontent-%COMP%]{padding:15px;direction:ltr}[_nghost-%COMP%]   ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:10px;width:95%}[_nghost-%COMP%]   ion-input[_ngcontent-%COMP%]{border-bottom:1px solid #ccc}[_nghost-%COMP%]   .email-container[_ngcontent-%COMP%]{margin-bottom:20px;color:gray}.color[_ngcontent-%COMP%]{color:#1f1f1f}"]],data:{}});function $e(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"div",[["class","dialogfa"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"h5",[["class","color"]],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(4,0,null,null,7,"div",[["class","email-container"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,6,"ion-input",[["placeholder","sam@gmail.com"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,7)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,7)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.email=n)&&i),i}),k.ib,k.t)),r.rb(6,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"]},null),r.rb(7,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(9,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(11,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(12,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),r.sb(13,0,null,null,3,"ion-button",[["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addFriend()&&r),r}),k.S,k.d)),r.rb(14,49152,null,0,T.k,[r.h,r.k,r.x],{shape:[0,"shape"]},null),(e()(),r.Lb(15,0,[" ",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(17,0,null,null,3,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(18,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.Lb(19,0,["",""])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"sam@gmail.com"),e(t,9,0,n.email),e(t,14,0,"round"),e(t,18,0,"light","round")}),(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("TITLE.addFriend"))),e(t,5,0,r.Eb(t,11).ngClassUntouched,r.Eb(t,11).ngClassTouched,r.Eb(t,11).ngClassPristine,r.Eb(t,11).ngClassDirty,r.Eb(t,11).ngClassValid,r.Eb(t,11).ngClassInvalid,r.Eb(t,11).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("BUTTONS.add"))),e(t,19,0,r.Mb(t,19,0,r.Eb(t,20).transform("BUTTONS.cancel")))}))}function Be(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,20,"div",[["class","dialogen"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"h5",[],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(4,0,null,null,7,"div",[["class","email-container"]],null,null,null,null,null)),(e()(),r.sb(5,0,null,null,6,"ion-input",[["placeholder","sam@gmail.com"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,7)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,7)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.email=n)&&i),i}),k.ib,k.t)),r.rb(6,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"]},null),r.rb(7,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(9,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(11,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(12,0,null,null,8,"div",[],null,null,null,null,null)),(e()(),r.sb(13,0,null,null,3,"ion-button",[["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addFriend()&&r),r}),k.S,k.d)),r.rb(14,49152,null,0,T.k,[r.h,r.k,r.x],{shape:[0,"shape"]},null),(e()(),r.Lb(15,0,[" ",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(17,0,null,null,3,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(18,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.Lb(19,0,["",""])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"sam@gmail.com"),e(t,9,0,n.email),e(t,14,0,"round"),e(t,18,0,"light","round")}),(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("TITLE.addFriend"))),e(t,5,0,r.Eb(t,11).ngClassUntouched,r.Eb(t,11).ngClassTouched,r.Eb(t,11).ngClassPristine,r.Eb(t,11).ngClassDirty,r.Eb(t,11).ngClassValid,r.Eb(t,11).ngClassInvalid,r.Eb(t,11).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("BUTTONS.add"))),e(t,19,0,r.Mb(t,19,0,r.Eb(t,20).transform("BUTTONS.cancel")))}))}function Ve(e){return r.Nb(0,[(e()(),r.hb(16777216,null,null,1,null,$e)),r.rb(1,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(e()(),r.hb(0,[["cond1",2]],null,0,null,Be))],(function(e,t){e(t,1,0,"fa"==t.component.toknow,r.Eb(t,2))}),null)}function qe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-friend-dialog",[],null,null,null,Ve,Fe)),r.rb(1,49152,null,0,Le.a,[U.a,T.Fb,$.j],null,null)],null,null)}var ze=r.ob("add-friend-dialog",Le.a,qe,{},{},[]);class Ue{constructor(e,t,n,r){this.viewCtrl=e,this.itemsManager=t,this.chatsManager=n,this.friendsManager=r,this.init()}init(){let e=this;this.friendsManager.friends.forEach((function(e){e.joined=!1})),console.log(this.chat,"this is the chat what I got"),this.chat.members.forEach((function(t){e.friendsManager.friends.forEach((function(e){e.userID==t.userID&&(e.joined=!0)}))}))}save(){var e=this;this.chat.members.length=0,this.friendsManager.friends.forEach((function(t){t.joined&&e.chatsManager.addMember(e.chat,t)})),this.chatsManager.save(this.chat),this.viewCtrl.dismiss()}close(){this.viewCtrl.dismiss()}isJoined(e){let t;return t=!1,!1}}var He=r.qb({encapsulation:0,styles:[["add-person-dialog[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative;top:30%}add-person-dialog[_ngcontent-%COMP%]   .dialog[_ngcontent-%COMP%]{margin-top:40%;box-shadow:#000}add-person-dialog[_ngcontent-%COMP%]   ion-card.card[_ngcontent-%COMP%]{padding:10px;overflow:scroll;height:200px}add-person-dialog[_ngcontent-%COMP%]   ion-card.card[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]{padding:0}add-person-dialog[_ngcontent-%COMP%]   ion-card.card[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]   ion-avatar[_ngcontent-%COMP%], add-person-dialog[_ngcontent-%COMP%]   ion-card.card[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]   ion-label.label[_ngcontent-%COMP%]{margin:0}add-person-dialog[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{background:#00b7ff}add-person-dialog[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{width:100%}"]],data:{}});function We(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,12,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"friend",[],null,null,null,oe.b,oe.a)),r.rb(5,5292032,null,0,ae.a,[T.a,U.a,z.a,q.a,m.a,T.Fb],{friend:[0,"friend"]},null),(e()(),r.sb(6,0,null,0,6,"ion-checkbox",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,8)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,8)._handleIonChange(n.target)&&i),"ngModelChange"===t&&(i=!1!==(e.context.$implicit.joined=n)&&i),i}),k.W,k.h)),r.rb(7,49152,null,0,T.r,[r.h,r.k,r.x],{disabled:[0,"disabled"]},null),r.rb(8,4341760,null,0,T.d,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.d]),r.rb(10,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(12,16384,null,0,M.g,[[4,M.f]],null,null)],(function(e,t){var n=t.component;e(t,5,0,t.context.$implicit),e(t,7,0,r.wb(1,"",n.isJoined(t.context.$implicit),"")),e(t,10,0,r.wb(1,"",n.isJoined(t.context.$implicit),""),t.context.$implicit.joined)}),(function(e,t){e(t,6,0,r.Eb(t,12).ngClassUntouched,r.Eb(t,12).ngClassTouched,r.Eb(t,12).ngClassPristine,r.Eb(t,12).ngClassDirty,r.Eb(t,12).ngClassValid,r.Eb(t,12).ngClassInvalid,r.Eb(t,12).ngClassPending)}))}function Ge(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"friend",[],null,null,null,oe.b,oe.a)),r.rb(5,5292032,null,0,ae.a,[T.a,U.a,z.a,q.a,m.a,T.Fb],{friend:[0,"friend"]},null)],(function(e,t){e(t,5,0,t.context.$implicit)}),null)}function Xe(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,16,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,9,"ion-card",[],null,null,null,k.V,k.f)),r.rb(2,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(3,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(-1,null,[" List of joined Friends "])),(e()(),r.Lb(-1,0,[" Your friends List "])),(e()(),r.hb(16777216,null,0,1,null,We)),r.rb(7,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.Lb(-1,0,[" chat members "])),(e()(),r.hb(16777216,null,0,1,null,Ge)),r.rb(10,278528,null,0,V.j,[r.O,r.L,r.q],{ngForOf:[0,"ngForOf"]},null),(e()(),r.sb(11,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.save()&&r),r}),k.S,k.d)),r.rb(12,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Accept"])),(e()(),r.sb(14,0,null,null,2,"ion-button",[["right",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(15,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Close"]))],(function(e,t){var n=t.component;e(t,7,0,n.friendsManager.friends),e(t,10,0,n.chat.members)}),null)}function Je(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-person-dialog",[],null,null,null,Xe,He)),r.rb(1,49152,null,0,Ue,[T.Fb,q.a,z.a,U.a],null,null)],null,null)}var Qe=r.ob("add-person-dialog",Ue,Je,{},{},[]),Ze=n("nBaR"),Ye=n("3UND"),Ke=n("Hceu"),et=n("ASgS");class tt{constructor(e){this.navCtrl=e,this.tab1Root=Ke.a,this.tab2Root=Ze.a,this.tab3Root=Ye.a,this.tab4Root=et.a}}var nt=r.qb({encapsulation:2,styles:[],data:{}});function rt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,7,"ion-tab-bar",[["selectedIndex","1"]],null,null,null,k.yb,k.J)),r.rb(1,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-tab-bar",[["tabIcon","aperture"],["tabTitle","Collections"]],null,null,null,k.yb,k.J)),r.rb(3,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,1,"ion-tab-bar",[["tabIcon","ios-copy"],["tabTitle","My Items"]],null,null,null,k.yb,k.J)),r.rb(5,49152,null,0,T.rb,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"ion-tab-bar",[["tabIcon","contacts"],["tabTitle","friends"]],null,null,null,k.yb,k.J)),r.rb(7,49152,null,0,T.rb,[r.h,r.k,r.x],null,null)],null,null)}function it(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"ng-component",[],null,null,null,rt,nt)),r.rb(1,49152,null,0,tt,[T.Gb],null,null)],null,null)}var st=r.ob("ng-component",tt,it,{},{},[]),ot=n("CDm8"),at=r.qb({encapsulation:0,styles:[["add-item-dialog[_ngcontent-%COMP%]{width:80%;margin-left:auto;margin-right:auto;display:block;position:relative}add-item-dialog[_ngcontent-%COMP%]   .closeOverlay[_ngcontent-%COMP%]{width:102vw;height:100%;display:block;background:rgba(0,0,0,.411);position:fixed;left:0;top:0;z-index:-1}add-item-dialog[_ngcontent-%COMP%]   .dialog[_ngcontent-%COMP%]{height:100%;box-shadow:#000}add-item-dialog[_ngcontent-%COMP%]   .dialog[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{padding-bottom:16px;padding-left:9px}add-item-dialog[_ngcontent-%COMP%]   .dialog[_ngcontent-%COMP%]   .buttonText[_ngcontent-%COMP%]{padding-left:3px;margin-left:4px;padding-top:4px;color:#fff}add-item-dialog[_ngcontent-%COMP%]   ion-card.card[_ngcontent-%COMP%]{box-shadow:-10px 5px 12px #888;padding:39px 10px;width:95%;border-radius:20px}add-item-dialog[_ngcontent-%COMP%]   ion-input[_ngcontent-%COMP%]{color:#333;background:#fff;border-radius:20px;border:1px solid #46ccff}.button-container[_ngcontent-%COMP%]{margin-top:30px;margin-bottom:20px}ion-card[_ngcontent-%COMP%]{padding:10px}ion-button[_ngcontent-%COMP%]{letter-spacing:unset}.add-btn[_ngcontent-%COMP%]{color:#fff!important}.dialog-container[_ngcontent-%COMP%]{padding:15px}.buttonText[_ngcontent-%COMP%]{color:gray!important}"]],data:{}});function lt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,12,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,3,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(3,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(4,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(6,0,null,0,6,"ion-toggle",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,8)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,8)._handleIonChange(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.public=n)&&i),i}),k.Cb,k.N)),r.rb(7,49152,null,0,T.yb,[r.h,r.k,r.x],null,null),r.rb(8,4341760,null,0,T.d,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.d]),r.rb(10,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(12,16384,null,0,M.g,[[4,M.f]],null,null)],(function(e,t){e(t,10,0,t.component.public)}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("CONTENT.AddItemDialog.public"))),e(t,6,0,r.Eb(t,12).ngClassUntouched,r.Eb(t,12).ngClassTouched,r.Eb(t,12).ngClassPristine,r.Eb(t,12).ngClassDirty,r.Eb(t,12).ngClassValid,r.Eb(t,12).ngClassInvalid,r.Eb(t,12).ngClassPending)}))}function ct(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,29,"div",[["class","dialog"]],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,28,"div",[["class","dialog-container"]],null,null,null,null,null)),(e()(),r.sb(2,0,null,null,12,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(3,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(5,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(6,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(8,0,null,0,6,"ion-input",[["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,10)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,10)._handleInputEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.itemName=n)&&i),i}),k.ib,k.t)),r.rb(9,49152,null,0,T.G,[r.h,r.k,r.x],{placeholder:[0,"placeholder"],type:[1,"type"]},null),r.rb(10,4341760,null,0,T.Nb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Nb]),r.rb(12,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(14,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.hb(16777216,null,null,1,null,lt)),r.rb(16,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(17,0,null,null,12,"div",[["class","button-container"]],null,null,null,null,null)),(e()(),r.sb(18,0,null,null,6,"ion-button",[["color","primary"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addItem()&&r),r}),k.S,k.d)),r.rb(19,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.sb(20,0,null,0,1,"ion-icon",[["name","add"]],null,null,null,k.fb,k.q)),r.rb(21,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(22,0,null,0,2,"div",[["class","add-btn"]],null,null,null,null,null)),(e()(),r.Lb(23,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(25,0,null,null,4,"ion-button",[["class","cancel"],["color","light"],["right",""],["shape","round"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(26,49152,null,0,T.k,[r.h,r.k,r.x],{color:[0,"color"],shape:[1,"shape"]},null),(e()(),r.sb(27,0,null,0,2,"div",[["class","buttonText"]],null,null,null,null,null)),(e()(),r.Lb(28,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){var n=t.component;e(t,9,0,r.wb(1,"",n.collection.getTitle(),""),"text"),e(t,12,0,n.itemName),e(t,16,0,n.isAllowPublic()),e(t,19,0,"primary","round"),e(t,21,0,"add"),e(t,26,0,"light","round")}),(function(e,t){e(t,6,0,r.Mb(t,6,0,r.Eb(t,7).transform("CONTENT.AddItemDialog.name"))),e(t,8,0,r.Eb(t,14).ngClassUntouched,r.Eb(t,14).ngClassTouched,r.Eb(t,14).ngClassPristine,r.Eb(t,14).ngClassDirty,r.Eb(t,14).ngClassValid,r.Eb(t,14).ngClassInvalid,r.Eb(t,14).ngClassPending),e(t,23,0,r.Mb(t,23,0,r.Eb(t,24).transform("BUTTONS.addItem"))),e(t,28,0,r.Mb(t,28,0,r.Eb(t,29).transform("BUTTONS.cancel")))}))}function ut(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-item-dialog",[],null,null,null,ct,at)),r.rb(1,49152,null,0,ot.a,[q.a,T.Gb,d.a,T.Fb,N.m],null,null)],null,null)}var ht=r.ob("add-item-dialog",ot.a,ut,{},{},[]),dt=n("IP0z"),pt=n("TBO2"),ft=n("++lw"),gt=r.qb({encapsulation:2,styles:[],data:{}});function mt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-spinner",[["name","crescent"]],null,null,null,k.xb,k.I)),r.rb(3,49152,null,0,T.pb,[r.h,r.k,r.x],{name:[0,"name"]},null)],(function(e,t){e(t,3,0,"crescent")}),null)}function bt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,32,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,8,"ion-row",[["class","size"]],null,null,null,k.qb,k.B)),r.rb(3,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(4,0,null,0,3,"ion-col",[],null,null,null,k.X,k.i)),r.rb(5,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(6,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(8,0,null,0,2,"ion-col",[],null,null,null,k.X,k.i)),r.rb(9,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(10,0,[" "," "])),(e()(),r.sb(11,0,null,0,10,"ion-row",[["class","size"]],null,null,null,k.qb,k.B)),r.rb(12,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(13,0,null,0,4,"ion-col",[],null,null,null,k.X,k.i)),r.rb(14,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(15,0,null,0,2,"div",[["type","text"]],null,null,null,null,null)),(e()(),r.Lb(16,null,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(18,0,null,0,3,"ion-col",[],null,null,null,k.X,k.i)),r.rb(19,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.sb(20,0,null,0,1,"div",[["type","text"]],null,null,null,null,null)),(e()(),r.Lb(21,null,["","kb"])),(e()(),r.sb(22,0,null,0,10,"ion-row",[["class","size"]],null,null,null,k.qb,k.B)),r.rb(23,49152,null,0,T.gb,[r.h,r.k,r.x],null,null),(e()(),r.sb(24,0,null,0,8,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(25,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(26,0,null,0,3,"ion-col",[],null,null,null,k.X,k.i)),r.rb(27,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(28,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(30,0,null,0,2,"ion-col",[],null,null,null,k.X,k.i)),r.rb(31,49152,null,0,T.t,[r.h,r.k,r.x],null,null),(e()(),r.Lb(32,0,[" "," "]))],null,(function(e,t){var n=t.component;e(t,6,0,r.Mb(t,6,0,r.Eb(t,7).transform("CONTENT.DownloadDialog.wordsCount"))),e(t,10,0,n.wordsCount),e(t,16,0,r.Mb(t,16,0,r.Eb(t,17).transform("CONTENT.DownloadDialog.size"))),e(t,21,0,n.downloadSize),e(t,28,0,r.Mb(t,28,0,r.Eb(t,29).transform("CONTENT.DownloadDialog.lastUpdate"))),e(t,32,0,n.time)}))}function vt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),r.Lb(2,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("CONTENT.DownloadDialog.result")))}))}function yt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,2,"button",[["ion-button",""],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.download()&&r),r}),null,null)),(e()(),r.Lb(1,null,[" ",""])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,1,0,r.Mb(t,1,0,r.Eb(t,2).transform("BUTTONS.download")))}))}function wt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-button",[["class","cancel"],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(1,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,["",""])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("BUTTONS.cancel")))}))}function _t(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,3,"ion-button",[["class","cancel"],["right",""],["round",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),k.S,k.d)),r.rb(1,49152,null,0,T.k,[r.h,r.k,r.x],null,null),(e()(),r.Lb(2,0,["",""])),r.Fb(131072,$.i,[$.j,r.h])],null,(function(e,t){e(t,2,0,r.Mb(t,2,0,r.Eb(t,3).transform("BUTTONS.okay")))}))}function Ct(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,0,"div",[["class","closeOverlay"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),null,null)),(e()(),r.sb(1,0,null,null,18,"div",[["class","dialog"]],[[1,"dir",0]],null,null,null,null)),r.Ib(6144,null,dt.c,null,[dt.b]),r.rb(3,1196032,null,0,dt.b,[],{dir:[0,"dir"]},null),(e()(),r.sb(4,0,null,null,15,"ion-card",[],null,null,null,k.V,k.f)),r.rb(5,49152,null,0,T.m,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),r.Lb(7,null,[" "," "])),(e()(),r.hb(16777216,null,0,1,null,mt)),r.rb(9,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,bt)),r.rb(11,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,vt)),r.rb(13,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,yt)),r.rb(15,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,wt)),r.rb(17,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,_t)),r.rb(19,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null)],(function(e,t){var n=t.component;e(t,3,0,r.wb(1,"",n.isRtl()?"rtl":"ltr","")),e(t,9,0,n.isLoading),e(t,11,0,n.isDetails()),e(t,13,0,n.isResult()),e(t,15,0,n.isDetails()),e(t,17,0,n.isDetails()),e(t,19,0,n.isResult())}),(function(e,t){var n=t.component;e(t,1,0,r.Eb(t,3)._rawDir),e(t,7,0,n.chat.getTitle())}))}function xt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"download-dialog",[],null,null,null,Ct,gt)),r.rb(1,49152,null,0,pt.a,[z.a,ft.a,T.Hb,T.Gb,d.a,$.j,T.Fb],null,null)],null,null)}var Ot=r.ob("download-dialog",pt.a,xt,{},{},[]),St=n("2y6Z"),Et=r.qb({encapsulation:0,styles:[[".headerword[_ngcontent-%COMP%]{display:flex;background-color:#f7ed69;height:58px;width:100%;justify-content:center;align-items:center;font-size:28px;font-weight:700}.iputstyle[_ngcontent-%COMP%]{border:0;height:25px;margin:10px;width:100%}.iputstyle[_ngcontent-%COMP%]:focus{outline:0}.divBtns[_ngcontent-%COMP%]{display:flex;align-content:center;background-color:#f7ed69;width:100%;height:40px}.AddBtn[_ngcontent-%COMP%]{margin-left:20px;background-color:transparent;color:#00f}.closeBtn[_ngcontent-%COMP%]{margin-left:30px;background-color:transparent;color:#00f}"]],data:{}});function kt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,36,"div",[],null,null,null,null,null)),(e()(),r.sb(1,0,null,null,35,"ion-list",[["style","padding: 0%;"]],null,[[null,"ionChange"]],(function(e,t,n){var r=!0;return"ionChange"===t&&(r=!1!==e.component.artikelChanged(n)&&r),r}),k.mb,k.w)),r.rb(2,49152,null,0,T.O,[r.h,r.k,r.x],null,null),(e()(),r.sb(3,0,null,0,33,"ion-radio-group",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionBlur"],[null,"ionChange"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,5)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,5)._handleChangeEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.artikel=n)&&i),i}),k.ob,k.A)),r.rb(4,49152,null,0,T.Y,[r.h,r.k,r.x],null,null),r.rb(5,4341760,null,0,T.Mb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Mb]),r.rb(7,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(9,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(10,0,null,0,8,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(11,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(12,0,null,0,2,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(13,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Der"])),(e()(),r.sb(15,0,null,0,3,"ion-radio",[["value","m"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,18)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,18)._handleIonSelect(n.target)&&i),i}),k.pb,k.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(17,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(18,4341760,null,0,T.Lb,[r.p,r.k],null,null),(e()(),r.sb(19,0,null,0,8,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(20,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,2,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(22,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Die"])),(e()(),r.sb(24,0,null,0,3,"ion-radio",[["value","f"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,27)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,27)._handleIonSelect(n.target)&&i),i}),k.pb,k.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(26,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(27,4341760,null,0,T.Lb,[r.p,r.k],null,null),(e()(),r.sb(28,0,null,0,8,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(29,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(30,0,null,0,2,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(31,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(-1,0,["Das"])),(e()(),r.sb(33,0,null,0,3,"ion-radio",[["value","n"]],null,[[null,"ionBlur"],[null,"ionSelect"]],(function(e,t,n){var i=!0;return"ionBlur"===t&&(i=!1!==r.Eb(e,36)._handleBlurEvent(n.target)&&i),"ionSelect"===t&&(i=!1!==r.Eb(e,36)._handleIonSelect(n.target)&&i),i}),k.pb,k.z)),r.Ib(5120,null,M.e,(function(e){return[e]}),[T.Lb]),r.rb(35,49152,null,0,T.X,[r.h,r.k,r.x],{value:[0,"value"]},null),r.rb(36,4341760,null,0,T.Lb,[r.p,r.k],null,null)],(function(e,t){e(t,7,0,t.component.artikel),e(t,17,0,"m"),e(t,26,0,"f"),e(t,35,0,"n")}),(function(e,t){e(t,3,0,r.Eb(t,9).ngClassUntouched,r.Eb(t,9).ngClassTouched,r.Eb(t,9).ngClassPristine,r.Eb(t,9).ngClassDirty,r.Eb(t,9).ngClassValid,r.Eb(t,9).ngClassInvalid,r.Eb(t,9).ngClassPending)}))}function Tt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"div",[["class","headerword"]],null,null,null,null,null)),(e()(),r.Lb(1,null,[" "," "," "])),(e()(),r.sb(2,0,null,null,7,"div",[["style"," display: flex;  border-bottom: rgb(236, 233, 233) 1px solid"]],null,null,null,null,null)),(e()(),r.sb(3,0,null,null,6,"input",[["class","iputstyle"],["name","title"],["type","text"]],[[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],(function(e,t,n){var i=!0,s=e.component;return"input"===t&&(i=!1!==r.Eb(e,4)._handleInput(n.target.value)&&i),"blur"===t&&(i=!1!==r.Eb(e,4).onTouched()&&i),"compositionstart"===t&&(i=!1!==r.Eb(e,4)._compositionStart()&&i),"compositionend"===t&&(i=!1!==r.Eb(e,4)._compositionEnd(n.target.value)&&i),"ngModelChange"===t&&(i=!1!==(s.translation=n)&&i),i}),null,null)),r.rb(4,16384,null,0,M.b,[r.D,r.k,[2,M.a]],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[M.b]),r.rb(6,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(8,16384,null,0,M.g,[[4,M.f]],null,null),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(10,0,null,null,33,"div",[],null,null,null,null,null)),(e()(),r.sb(11,0,null,null,32,"ion-item",[],null,null,null,k.jb,k.u)),r.rb(12,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(13,0,null,0,3,"ion-label",[],null,null,null,k.kb,k.v)),r.rb(14,49152,null,0,T.N,[r.h,r.k,r.x],null,null),(e()(),r.Lb(15,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(17,0,null,0,26,"ion-select",[["interface","popover"],["multiple","false"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"ionChange"],[null,"ionBlur"]],(function(e,t,n){var i=!0,s=e.component;return"ionBlur"===t&&(i=!1!==r.Eb(e,19)._handleBlurEvent(n.target)&&i),"ionChange"===t&&(i=!1!==r.Eb(e,19)._handleChangeEvent(n.target)&&i),"ngModelChange"===t&&(i=!1!==(s.wordType=n)&&i),"ionChange"===t&&(i=!1!==s.selected()&&i),i}),k.ub,k.E)),r.rb(18,49152,null,0,T.kb,[r.h,r.k,r.x],{interface:[0,"interface"],multiple:[1,"multiple"]},null),r.rb(19,4341760,null,0,T.Mb,[r.p,r.k],null,null),r.Ib(1024,null,M.e,(function(e){return[e]}),[T.Mb]),r.rb(21,671744,null,0,M.h,[[8,null],[8,null],[8,null],[6,M.e]],{model:[0,"model"]},{update:"ngModelChange"}),r.Ib(2048,null,M.f,null,[M.h]),r.rb(23,16384,null,0,M.g,[[4,M.f]],null,null),(e()(),r.sb(24,0,null,0,3,"ion-select-option",[["value","noun"]],null,null,null,k.tb,k.F)),r.rb(25,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(26,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(28,0,null,0,3,"ion-select-option",[["value","verb"]],null,null,null,k.tb,k.F)),r.rb(29,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(30,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(32,0,null,0,3,"ion-select-option",[["value","adjective"]],null,null,null,k.tb,k.F)),r.rb(33,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(34,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(36,0,null,0,3,"ion-select-option",[["value","adverb"]],null,null,null,k.tb,k.F)),r.rb(37,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(38,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(40,0,null,0,3,"ion-select-option",[["value","other"]],null,null,null,k.tb,k.F)),r.rb(41,49152,null,0,T.lb,[r.h,r.k,r.x],{value:[0,"value"]},null),(e()(),r.Lb(42,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.hb(16777216,null,null,1,null,kt)),r.rb(45,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(46,0,null,null,6,"div",[["class","divBtns"]],null,null,null,null,null)),(e()(),r.sb(47,0,null,null,2,"button",[["class","AddBtn"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.addWord()&&r),r}),null,null)),(e()(),r.Lb(48,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(50,0,null,null,2,"button",[["class","closeBtn"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.close()&&r),r}),null,null)),(e()(),r.Lb(51,null,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){var n=t.component;e(t,6,0,"title",n.translation),e(t,18,0,"popover","false"),e(t,21,0,n.wordType),e(t,25,0,"noun"),e(t,29,0,"verb"),e(t,33,0,"adjective"),e(t,37,0,"adverb"),e(t,41,0,"other"),e(t,45,0,n.isSelectArticle())}),(function(e,t){var n=t.component;e(t,1,0,n.wordArtikel,n.word),e(t,3,0,r.wb(1,"",r.Mb(t,3,0,r.Eb(t,9).transform("CONTENT.AddNewWord.translation")),""),r.Eb(t,8).ngClassUntouched,r.Eb(t,8).ngClassTouched,r.Eb(t,8).ngClassPristine,r.Eb(t,8).ngClassDirty,r.Eb(t,8).ngClassValid,r.Eb(t,8).ngClassInvalid,r.Eb(t,8).ngClassPending),e(t,15,0,r.Mb(t,15,0,r.Eb(t,16).transform("CONTENT.AddNewWord.type"))),e(t,17,0,r.Eb(t,23).ngClassUntouched,r.Eb(t,23).ngClassTouched,r.Eb(t,23).ngClassPristine,r.Eb(t,23).ngClassDirty,r.Eb(t,23).ngClassValid,r.Eb(t,23).ngClassInvalid,r.Eb(t,23).ngClassPending),e(t,26,0,r.Mb(t,26,0,r.Eb(t,27).transform("CONTENT.AddNewWord.noun"))),e(t,30,0,r.Mb(t,30,0,r.Eb(t,31).transform("CONTENT.AddNewWord.verb"))),e(t,34,0,r.Mb(t,34,0,r.Eb(t,35).transform("CONTENT.AddNewWord.adjective"))),e(t,38,0,r.Mb(t,38,0,r.Eb(t,39).transform("CONTENT.AddNewWord.adverb"))),e(t,42,0,r.Mb(t,42,0,r.Eb(t,43).transform("CONTENT.AddNewWord.other"))),e(t,48,0,r.Mb(t,48,0,r.Eb(t,49).transform("CONTENT.AddNewWord.addBtn"))),e(t,51,0,r.Mb(t,51,0,r.Eb(t,52).transform("CONTENT.AddNewWord.closeBtn")))}))}function Mt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"add-new-word",[],null,null,null,Tt,Et)),r.rb(1,1097728,null,0,St.a,[T.Fb,T.Ob,$.j,h.a],null,null)],null,null)}var At=r.ob("add-new-word",St.a,Mt,{},{},[]),It=r.qb({encapsulation:0,styles:[['@font-face{font-family:BMitra;font-style:normal;font-weight:400;src:url(BMitra_p30download_com.064df6a1d375b7900c1e.eot);src:url(BMitra_p30download_com.064df6a1d375b7900c1e.eot) format("embedded-opentype"),url(BMitra_p30download_com.1f8b2560a3f3067c62c1.woff2) format("woff2"),url(BMitra_p30download_com.8560c05c70436abd039e.woff) format("woff"),url(BMitra_p30download_com.035ead3b383f1e422aad.ttf) format("truetype"),url(BMitra_p30download_com.eb5b90d00bc75d57d558.svg#BMitra_p30download_com) format("svg")}@font-face{font-family:SahelBlack;font-style:normal;font-weight:400;src:url(Sahel-Black.1ae8e586e79595014457.eot);src:url(Sahel-Bold.a0147ad1d03da743e2d6.eot) format("embedded-opentype"),url(Sahel-Black.6f682b927b5a87efbdad.woff) format("woff2"),url(Sahel-Black.6f682b927b5a87efbdad.woff) format("woff"),url(Sahel-Black.5d976e392434aea91948.ttf) format("truetype")}@font-face{font-family:SahelBlackFD;font-style:normal;font-weight:400;src:url(Sahel-Black-FD.bfac4b605bffd11de82c.eot);src:url(Sahel-Bold-FD.28a1f17b816e3a6f4bfd.eot) format("embedded-opentype"),url(Sahel-Black-FD.4afd4212e3b79605a70a.woff) format("woff2"),url(Sahel-Black-FD.4afd4212e3b79605a70a.woff) format("woff"),url(Sahel-Black-FD.575dd62713fe7344272a.ttf) format("truetype")}@font-face{font-family:Yekan;font-style:normal;font-weight:400;src:url(Yekan.6a51276de7a745c01c6c.eot);src:url(Yekan.6a51276de7a745c01c6c.eot) format("embedded-opentype"),url(Yekan.492984b84b9f05835f9c.woff) format("woff"),url(Yekan.6387a14a1aed237d8362.ttf) format("truetype"),url(Yekan.e831f22b63488286596b.svg) format("svg")}*[_ngcontent-%COMP%]{font-family:Yekan;font-size:17px;font-weight:700}*[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{text-transform:none}.persian[_ngcontent-%COMP%]{font-family:SahelBlackFD;font-size:17px;font-weight:700}html[_ngcontent-%COMP%]{height:100%;box-sizing:border-box}.emailAccount[_ngcontent-%COMP%]{padding-top:0;text-align:center;font-weight:400;color:#fff!important;margin-bottom:15px;margin-top:-5px}.input-cover[_ngcontent-%COMP%]{pointer-events:auto}ion-menu[_ngcontent-%COMP%]{height:100vh}ion-menu[_ngcontent-%COMP%]   ion-content[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{color:#ddf2ff}ion-menu[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%]{position:absolute;text-align:center;font-weight:100;bottom:10px;left:30%}ion-menu[_ngcontent-%COMP%]   .version[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{font-weight:100}.my-custom-menu[_ngcontent-%COMP%]{--width:500px}ion-menu[_ngcontent-%COMP%]   ion-list[_ngcontent-%COMP%]{--ion-background-color:white}.menu-list[_ngcontent-%COMP%]   ion-icon[_ngcontent-%COMP%]{margin:10px}.menu-toolbar[_ngcontent-%COMP%]{color:#fff;text-align:center}.menu-toolbar[_ngcontent-%COMP%]   ion-thumbnail[_ngcontent-%COMP%]{margin:20px auto}.menu-toolbar[_ngcontent-%COMP%]   ion-thumbnail[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:100px}.menu-content[_ngcontent-%COMP%]{--background:#fff}.menu-content[_ngcontent-%COMP%]   ion-item[_ngcontent-%COMP%]{font-weight:100}']],data:{}});function Dt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNightMode()&&r),r}),k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-icon",[["name","color-palette"]],null,null,null,k.fb,k.q)),r.rb(3,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(4,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){e(t,3,0,"color-palette")}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("MENU.lightMode")))}))}function Pt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.toggleNightMode()&&r),r}),k.jb,k.u)),r.rb(1,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,1,"ion-icon",[["name","color-palette"]],null,null,null,k.fb,k.q)),r.rb(3,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(4,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h])],(function(e,t){e(t,3,0,"color-palette")}),(function(e,t){e(t,4,0,r.Mb(t,4,0,r.Eb(t,5).transform("MENU.nightMode")))}))}function Nt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,64,"ion-app",[],null,null,null,k.P,k.a)),r.rb(1,49152,null,0,T.f,[r.h,r.k,r.x],null,null),(e()(),r.sb(2,0,null,0,60,"ion-menu",[["contentId","content1"],["menuId","first"],["side","start"]],null,null,null,k.nb,k.y)),r.rb(3,49152,null,0,T.Q,[r.h,r.k,r.x],{contentId:[0,"contentId"],menuId:[1,"menuId"],side:[2,"side"]},null),(e()(),r.sb(4,0,null,0,12,"ion-header",[],null,null,null,k.eb,k.p)),r.rb(5,49152,null,0,T.B,[r.h,r.k,r.x],null,null),(e()(),r.sb(6,0,null,0,10,"ion-toolbar",[["class","menu-toolbar"],["color","tertiary"]],null,null,null,k.Db,k.O)),r.rb(7,49152,null,0,T.zb,[r.h,r.k,r.x],{color:[0,"color"]},null),(e()(),r.sb(8,0,null,0,2,"ion-thumbnail",[],null,null,null,k.Ab,k.L)),r.rb(9,49152,null,0,T.wb,[r.h,r.k,r.x],null,null),(e()(),r.sb(10,0,null,0,0,"img",[["src","assets/img/appStoreIcon.png"]],null,null,null,null,null)),(e()(),r.sb(11,0,null,0,3,"ion-title",[],null,null,null,k.Bb,k.M)),r.rb(12,49152,null,0,T.xb,[r.h,r.k,r.x],null,null),(e()(),r.Lb(13,0,["",""])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(15,0,null,0,1,"div",[["class","emailAccount"]],null,null,null,null,null)),(e()(),r.Lb(16,null,["",""])),(e()(),r.sb(17,0,null,0,45,"ion-content",[["class","menu-content"]],null,null,null,k.Y,k.j)),r.rb(18,49152,null,0,T.u,[r.h,r.k,r.x],null,null),(e()(),r.sb(19,0,null,0,43,"ion-list",[["class","menu-list"]],null,null,null,k.mb,k.w)),r.rb(20,49152,null,0,T.O,[r.h,r.k,r.x],null,null),(e()(),r.sb(21,0,null,0,5,"ion-item",[["ion-item",""],["side","left"]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("profile")&&r),r}),k.jb,k.u)),r.rb(22,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(23,0,null,0,1,"ion-icon",[["name","person"],["side","right"]],null,null,null,k.fb,k.q)),r.rb(24,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(25,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(27,0,null,0,4,"ion-item",[["ion-item",""],["side","left"]],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("profile")&&r),r}),k.jb,k.u)),r.rb(28,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(29,0,null,0,1,"ion-icon",[["ios","ios-person"],["md","md-person"],["side","right"]],null,null,null,k.fb,k.q)),r.rb(30,49152,null,0,T.C,[r.h,r.k,r.x],{ios:[0,"ios"],md:[1,"md"]},null),(e()(),r.Lb(-1,0,[" profile "])),(e()(),r.sb(32,0,null,0,8,"ion-item",[["ion-item",""]],[[8,"hidden",0]],[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("wallet")&&r),r}),k.jb,k.u)),r.rb(33,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(34,0,null,0,1,"ion-icon",[["name","ios-card"]],null,null,null,k.fb,k.q)),r.rb(35,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(-1,0,[" Credit "])),(e()(),r.sb(37,0,null,0,3,"div",[["style","float:right"]],null,null,null,null,null)),(e()(),r.Lb(38,null,[""," "])),(e()(),r.sb(39,0,null,null,1,"ion-icon",[["class","star"],["name","star"]],null,null,null,k.fb,k.q)),r.rb(40,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.sb(41,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("invite")&&r),r}),k.jb,k.u)),r.rb(42,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(43,0,null,0,1,"ion-icon",[["name","people"]],null,null,null,k.fb,k.q)),r.rb(44,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(45,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.hb(16777216,null,0,1,null,Dt)),r.rb(48,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.hb(16777216,null,0,1,null,Pt)),r.rb(50,16384,null,0,V.k,[r.O,r.L],{ngIf:[0,"ngIf"]},null),(e()(),r.sb(51,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("settings")&&r),r}),k.jb,k.u)),r.rb(52,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(53,0,null,0,1,"ion-icon",[["name","settings"]],null,null,null,k.fb,k.q)),r.rb(54,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(55,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(57,0,null,0,5,"ion-item",[["ion-item",""]],null,[[null,"click"]],(function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.openPage("support")&&r),r}),k.jb,k.u)),r.rb(58,49152,null,0,T.H,[r.h,r.k,r.x],null,null),(e()(),r.sb(59,0,null,0,1,"ion-icon",[["name","logo-whatsapp"]],null,null,null,k.fb,k.q)),r.rb(60,49152,null,0,T.C,[r.h,r.k,r.x],{name:[0,"name"]},null),(e()(),r.Lb(61,0,[" "," "])),r.Fb(131072,$.i,[$.j,r.h]),(e()(),r.sb(63,16777216,null,0,1,"ion-router-outlet",[["id","content1"]],null,null,null,null,null)),r.rb(64,212992,null,0,T.fb,[N.b,r.O,r.j,[8,null],[8,null],T.e,T.Gb,V.g,r.k,N.m,r.x,N.a,[3,T.fb]],null,null)],(function(e,t){var n=t.component;e(t,3,0,"content1","first","start"),e(t,7,0,"tertiary"),e(t,24,0,"person"),e(t,30,0,"ios-person","md-person"),e(t,35,0,"ios-card"),e(t,40,0,"star"),e(t,44,0,"people"),e(t,48,0,n.isThemeNightMoode()),e(t,50,0,!n.isThemeNightMoode()),e(t,54,0,"settings"),e(t,60,0,"logo-whatsapp"),e(t,64,0)}),(function(e,t){var n=t.component;e(t,13,0,r.Mb(t,13,0,r.Eb(t,14).transform("BAYADIC"))),e(t,16,0,n.userManager.user.email),e(t,25,0,r.Mb(t,25,0,r.Eb(t,26).transform("MENU.accountBtn"))),e(t,27,0,!0),e(t,32,0,!0),e(t,38,0,n.userManager.user.credit),e(t,45,0,r.Mb(t,45,0,r.Eb(t,46).transform("MENU.inviteFriends"))),e(t,55,0,r.Mb(t,55,0,r.Eb(t,56).transform("TITLE.settings"))),e(t,61,0,r.Mb(t,61,0,r.Eb(t,62).transform("TITLE.support")))}))}function jt(e){return r.Nb(0,[(e()(),r.sb(0,0,null,null,1,"app-root",[],null,null,null,Nt,It)),r.rb(1,49152,null,0,y,[T.Jb,u,a.a,m.a,h.a,p.a,d.a,N.m,f.a,g.a,T.Fb,T.Eb,$.j],null,null)],null,null)}var Rt=r.ob("app-root",y,jt,{},{},[]),Lt=n("QQfA"),Ft=n("s6ns"),$t=n("IheW"),Bt=n("cUpR"),Vt=n("6GXZ"),qt=n("GAbP"),zt=n("KX/v"),Ut=n("xoVG"),Ht=n("2XxT"),Wt=n("gCtI"),Gt=n("AyaB"),Xt=n("z0vp"),Jt=n("D2Vb"),Qt=n("0FpF"),Zt=n("k82s"),Yt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(l.c)(t,e),t.prototype.getProducts=function(e){return Object(c.cordova)(this,"getProducts",{otherPromise:!0},arguments)},t.prototype.buy=function(e){return Object(c.cordova)(this,"buy",{otherPromise:!0},arguments)},t.prototype.subscribe=function(e){return Object(c.cordova)(this,"subscribe",{otherPromise:!0},arguments)},t.prototype.consume=function(e,t,n){return Object(c.cordova)(this,"consume",{otherPromise:!0},arguments)},t.prototype.restorePurchases=function(){return Object(c.cordova)(this,"restorePurchases",{otherPromise:!0},arguments)},t.prototype.getReceipt=function(){return Object(c.cordova)(this,"getReceipt",{otherPromise:!0,platforms:["iOS"]},arguments)},t.pluginName="InAppPurchase",t.plugin="cordova-plugin-inapppurchase",t.pluginRef="inAppPurchase",t.repo="https://github.com/AlexDisler/cordova-plugin-inapppurchase",t.platforms=["Android","iOS"],t}(c.IonicNativePlugin),Kt=n("F9l0"),en=n("CjQN"),tn=n("2TGb"),nn=n("Zr1d"),rn=n("t8sF"),sn=n("sSFc");class on{constructor(e,t,n){this.elementRef=e,this.keyboard=t,this.platform=n}ngOnInit(){this.platform.is("cordova")&&this.platform.is("ios")&&(this.onShowSubscription=this.keyboard.onKeyboardShow().subscribe(e=>this.onShow(e)),this.onHideSubscription=this.keyboard.onKeyboardHide().subscribe(()=>this.onHide()))}ngOnDestroy(){this.onShowSubscription&&this.onShowSubscription.unsubscribe(),this.onHideSubscription&&this.onHideSubscription.unsubscribe()}onShow(e){this.setElementPosition(e.keyboardHeight||e.detail&&e.detail.keyboardHeight)}onHide(){this.setElementPosition(0)}setElementPosition(e){this.elementRef.nativeElement.style.paddingBottom=e+"px"}}var an=n("FUig"),ln=n("0K09"),cn=n("nfSX"),un=n("W7t7"),hn=n("MF7w"),dn=n("LKtr"),pn=n("xNyf"),fn=n("kNMb"),gn=n("ZZmf"),mn=n("PJj0"),bn=n("33wr"),vn=n("xq9V"),yn=n("tAnt");class wn{constructor(e,t,n,r,i,s,o){this.http=e,this.ajaxBridge=t,this.platform=n,this.storageManager=r,this.socketManager=i,this.events=s,this.modalCtrl=o,console.log("Hello ProductManagerProvider Provider"),this.platform.ready().then(()=>{this.askRescue()})}registerEvents(){this.events.subscribe(v.c.platformReady,()=>{this.storageManager.get("version").then(e=>{null!=e&&this.ajaxBridge.rescue(e).then(e=>{this.getReaction(e)})})})}getReaction(e){let t=JSON.parse(e);if(t.error)switch(t.action){case"updateApp":this.askUpdateApp(t);break;case"updateWebservers":this.updateWebservers(t);break;case"updateAjaxUrl":this.updateAjaxUrl(t);break;case"updateAdsSetting":this.updateAdsSetting(t)}}askUpdateApp(e){return l.a(this,void 0,void 0,(function*(){let t=new yn.a([]);t.setLang("fa"),t.titleFa="Update APP",t.descriptionFa=e.msg,(yield this.modalCtrl.create({component:ke,componentProps:{collection:t}})).present()}))}updateWebservers(e){console.log("intresting",e),this.storageManager.set("webserver",e.webserver),this.storageManager.set("version",e.version),this.socketManager.websocket_server=e.webserver}updateAjaxUrl(e){this.storageManager.set("ajaxUrl",e.ajaxUrl),this.storageManager.set("version",e.version),this.ajaxBridge.ajaxControllerServerUrl=e.ajaxUrl}updateAdsSetting(e){this.storageManager.set("adsTimePeriod",e.adsTimePeriod),this.storageManager.set("canShownAdsNumber",e.canShownAdsNumber),this.storageManager.set("version",e.version),this.socketManager.adsTimePeriod=e.period}askRescue(){this.storageManager.get("version").then(e=>{null!=e?this.ajaxBridge.rescue(e).then(e=>{this.getReaction(e)}):this.storageManager.set("version","0")})}}var _n=n("AcVp"),Cn=n("1Zg0");class xn{getCopiedData(){}setupListener(){}}var On=n("+her");class Sn{constructor(e,t,n){this.bubbleCopy=e,this.settingsManager=t,this.router=n;let r=this;document.addEventListener("resume",(function(){r.onResume()}),!1)}init(e){this.itemsPage=e;var t=function(e){console.log(JSON.stringify(e,void 0,2))};try{this.settingsManager.getBubbleCopyStatus().then(e=>{null==e||1==e?cordova.plugins.bubble.setupListener("setting it up",t,this.onFailur):0==e&&cordova.plugins.bubble.stopBubbleCopy("stop it",t,this.onFailur)})}catch(n){console.log(" exception ",n)}}onResume(){this.getCopiedData()}getCopiedData(){let e=this;try{cordova.plugins.bubble.getCopiedData("getting copied data",(function(t){e.onCatchedCopiedData(t)}),this.onFailur)}catch(t){console.warn("exception",t)}}onCatchedCopiedData(e){if(e.length>0)for(let t of this.itemsPage.itemsManager.items)if("dictionary"==t.type)return this.itemsPage.initChat(t).then(t=>{e.indexOf(" ")>=0&&(e=e.split(" ")[0]),t.setClipBoardText(e),this.handleDataNavigation(t)}),!0}handleDataNavigation(e){const t=this.router.activated.instance;if("ChatPage"==t.name){let n=t;n.chatInputComp.msg=e.getClipBoardText(),n.chatInputComp.enableSendBtn(!0),n.chatInputComp.suggestWords(),n.ionViewDidEnter()}else this.currentChatPage=On.a,this.itemsPage.navCtrl.navigateRoot("chat").then(()=>{e.setViewLoaded(!0)})}onFailur(e){console.log(JSON.stringify(e,void 0,2))}}var En=n("BNVH"),kn=n("iEnR"),Tn=n("a6b8");const Mn=()=>n.e(15).then(n.bind(null,"k0NV")).then(e=>e.InvitationModuleNgFactory),An=()=>n.e(14).then(n.bind(null,"tG1O")).then(e=>e.ContactModuleNgFactory),In=()=>Promise.all([n.e(0),n.e(17)]).then(n.bind(null,"cfIE")).then(e=>e.SettingsModuleNgFactory),Dn=()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,"MuPt")).then(e=>e.ProfileModuleNgFactory),Pn=()=>n.e(16).then(n.bind(null,"tUix")).then(e=>e.ItemsModuleNgFactory),Nn=()=>n.e(12).then(n.bind(null,"tSmu")).then(e=>e.ChatModuleNgFactory),jn=()=>n.e(13).then(n.bind(null,"wGt0")).then(e=>e.CollectionsModuleNgFactory),Rn=()=>n.e(11).then(n.bind(null,"L6id")).then(e=>e.HomePageModuleNgFactory);class Ln{}var Fn=n("d1S0"),$n=n("Xd0L"),Bn=n("BzsH"),Vn=n("zMNK"),qn=n("/HVE"),zn=n("hOhj"),Un=n("Gi4r"),Hn=n("L8C7"),Wn=n("FpXt"),Gn=n("fILq");class Xn{}class Jn{}var Qn=r.pb(o,[y],(function(e){return r.Bb([r.Cb(512,r.j,r.ab,[[8,[w.a,_.a,C.a,x.a,O.a,S.a,E.a,F,K,se,fe,_e,Ee,Ie,Re,ze,Qe,st,ht,Ot,At,Rt]],[3,r.j],r.v]),r.Cb(5120,r.s,r.mb,[[3,r.s]]),r.Cb(4608,V.m,V.l,[r.s,[2,V.z]]),r.Cb(4608,T.c,T.c,[r.x,r.g]),r.Cb(4608,T.Fb,T.Fb,[T.c,r.j,r.p]),r.Cb(4608,T.Kb,T.Kb,[T.c,r.j,r.p]),r.Cb(4608,Lt.a,Lt.a,[Lt.g,Lt.c,r.j,Lt.f,Lt.d,r.p,r.x,V.d,dt.c,[2,V.g]]),r.Cb(5120,Lt.h,Lt.i,[Lt.a]),r.Cb(5120,Ft.b,Ft.c,[Lt.a]),r.Cb(135680,Ft.d,Ft.d,[Lt.a,r.p,[2,V.g],[2,Ft.a],Ft.b,[3,Ft.d],Lt.c]),r.Cb(4608,M.k,M.k,[]),r.Cb(4608,P.c,P.c,[]),r.Cb(4608,P.i,P.b,[]),r.Cb(5120,P.k,P.l,[]),r.Cb(4608,P.j,P.j,[P.c,P.i,P.k]),r.Cb(4608,P.h,P.a,[]),r.Cb(5120,P.e,P.m,[P.j,P.h]),r.Cb(4608,$t.h,$t.n,[V.d,r.z,$t.l]),r.Cb(4608,$t.o,$t.o,[$t.h,$t.m]),r.Cb(5120,$t.a,(function(e){return[e]}),[$t.o]),r.Cb(4608,$t.k,$t.k,[]),r.Cb(6144,$t.i,null,[$t.k]),r.Cb(4608,$t.g,$t.g,[$t.i]),r.Cb(6144,$t.b,null,[$t.g]),r.Cb(4608,$t.f,$t.j,[$t.b,r.p]),r.Cb(4608,$t.c,$t.c,[$t.f]),r.Cb(5120,r.ib,r.nb,[r.x]),r.Cb(5120,r.c,r.jb,[]),r.Cb(5120,r.q,r.kb,[]),r.Cb(5120,r.r,r.lb,[]),r.Cb(4608,Bt.b,Bt.k,[V.d]),r.Cb(6144,r.G,null,[Bt.b]),r.Cb(4608,Bt.e,Bt.g,[]),r.Cb(5120,Bt.c,(function(e,t,n,r,i,s,o,a){return[new Bt.i(e,t,n),new Bt.n(r),new Bt.m(i,s,o,a)]}),[V.d,r.x,r.z,V.d,V.d,Bt.e,r.bb,[2,Bt.f]]),r.Cb(4608,Bt.d,Bt.d,[Bt.c,r.x]),r.Cb(135680,Bt.l,Bt.l,[V.d]),r.Cb(4608,Bt.j,Bt.j,[Bt.d,Bt.l,r.c]),r.Cb(6144,r.E,null,[Bt.j]),r.Cb(6144,Bt.o,null,[Bt.l]),r.Cb(4608,r.M,r.M,[r.x]),r.Cb(5120,D.b,D.d,[D.c]),r.Cb(4608,p.a,p.a,[P.e,D.b]),r.Cb(4608,Vt.a,Vt.a,[]),r.Cb(4608,m.a,m.a,[]),r.Cb(4608,qt.a,qt.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,A.a,A.a,[P.e,p.a,T.Db]),r.Cb(4608,zt.a,zt.a,[]),r.Cb(4608,H.a,H.a,[P.e,zt.a,T.Fb,p.a,W.a,T.Jb]),r.Cb(4608,Ut.a,Ut.a,[]),r.Cb(4608,Ht.a,Ht.a,[P.e,W.a]),r.Cb(4608,Wt.a,Wt.a,[P.e,Ht.a,W.a]),r.Cb(4608,g.a,g.a,[r.p,p.a,H.a,Ut.a,T.Jb,Wt.a,Ht.a,m.a,W.a]),r.Cb(4608,h.a,h.a,[p.a,A.a]),r.Cb(4608,q.a,q.a,[p.a,qt.a,g.a,T.Jb,m.a,h.a,W.a]),r.Cb(4608,Gt.a,Gt.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,U.a,U.a,[p.a,h.a,g.a,Gt.a,m.a,T.Jb,W.a,A.a]),r.Cb(4608,Xt.a,Xt.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,ce.a,ce.a,[g.a,Xt.a,r.p]),r.Cb(4608,Jt.a,Jt.a,[]),r.Cb(4608,$.k,$.k,[]),r.Cb(5120,$.f,s,[$t.c]),r.Cb(4608,$.c,$.e,[]),r.Cb(4608,$.h,$.d,[]),r.Cb(4608,$.b,$.a,[]),r.Cb(4608,$.j,$.j,[$.k,$.f,$.c,$.h,$.b,$.l,$.m]),r.Cb(4608,Qt.a,Qt.a,[P.e,Jt.a,$.j,p.a]),r.Cb(4608,z.a,z.a,[P.e,p.a,qt.a,A.a,q.a,U.a,ce.a,H.a,T.Jb,m.a,g.a,T.Fb,Qt.a,W.a,h.a]),r.Cb(5120,N.a,N.y,[N.m]),r.Cb(4608,N.g,N.g,[]),r.Cb(6144,N.h,null,[N.g]),r.Cb(135680,N.p,N.p,[N.m,r.u,r.i,r.p,N.h]),r.Cb(4608,N.e,N.e,[]),r.Cb(5120,N.D,N.u,[N.m,V.r,N.i]),r.Cb(5120,N.j,N.B,[N.z]),r.Cb(5120,r.b,(function(e){return[e]}),[N.j]),r.Cb(4608,a.a,a.a,[]),r.Cb(4608,u,u,[]),r.Cb(4608,Zt.a,Zt.a,[]),r.Cb(4608,Yt,Yt,[]),r.Cb(4608,Kt.a,Kt.a,[]),r.Cb(4608,en.a,en.a,[]),r.Cb(4608,tn.a,tn.a,[]),r.Cb(4608,nn.a,nn.a,[]),r.Cb(4608,rn.a,rn.a,[]),r.Cb(4608,sn.a,sn.a,[]),r.Cb(135680,on,on,[r.k,nn.a,T.Jb]),r.Cb(4608,an.a,an.a,[]),r.Cb(4608,ln.a,ln.a,[]),r.Cb(4608,cn.a,cn.a,[]),r.Cb(4608,un.a,un.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,hn.a,hn.a,[un.a]),r.Cb(4608,f.a,f.a,[g.a,m.a,p.a,h.a,T.b,W.a,$.j]),r.Cb(4608,dn.a,dn.a,[P.e]),r.Cb(4608,pn.a,pn.a,[P.e]),r.Cb(4608,fn.a,fn.a,[g.a,h.a,W.a,m.a]),r.Cb(4608,gn.a,gn.a,[P.e,cn.a,p.a,h.a,g.a,T.Jb]),r.Cb(4608,d.a,d.a,[P.e,p.a,gn.a]),r.Cb(4608,mn.a,mn.a,[P.e,T.Jb,qt.a,$.j,Zt.a]),r.Cb(4608,bn.a,bn.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,vn.a,vn.a,[P.e,bn.a,mn.a,T.Jb,qt.a]),r.Cb(4608,wn,wn,[P.e,A.a,T.Jb,p.a,g.a,W.a,T.Fb]),r.Cb(4608,_n.a,_n.a,[]),r.Cb(4608,Cn.a,Cn.a,[T.Fb]),r.Cb(4608,xn,xn,[]),r.Cb(135680,N.o,N.o,[N.b,r.O,r.j,"name",r.h]),r.Cb(4608,Sn,Sn,[xn,d.a,N.o]),r.Cb(4608,ft.a,ft.a,[sn.a,rn.a,P.e,r.p]),r.Cb(4608,En.a,En.a,[$t.c,r.p,T.Gb]),r.Cb(4608,kn.a,kn.a,[Vt.a,m.a,r.p,T.Jb]),r.Cb(4608,Tn.a,Tn.a,[kn.a,g.a]),r.Cb(1073742336,V.c,V.c,[]),r.Cb(1073742336,T.Bb,T.Bb,[]),r.Cb(1024,N.s,N.w,[[3,N.m]]),r.Cb(1024,r.l,Bt.p,[]),r.Cb(1024,r.w,(function(){return[N.t()]}),[]),r.Cb(512,N.z,N.z,[r.p]),r.Cb(256,T.Pb,void 0,[]),r.Cb(1024,r.d,(function(e,t,n,r,i){return[Bt.q(e),N.A(t),T.Qb(n,r,i)]}),[[2,r.w],N.z,T.Pb,V.d,r.x]),r.Cb(512,r.e,r.e,[[2,r.d]]),r.Cb(131584,r.g,r.g,[r.x,r.bb,r.p,r.l,r.j,r.e]),r.Cb(512,N.r,N.c,[]),r.Cb(512,N.b,N.b,[]),r.Cb(256,N.i,{preloadingStrategy:N.g},[]),r.Cb(1024,V.h,N.v,[V.p,[2,V.a],N.i]),r.Cb(512,V.g,V.g,[V.h,V.p]),r.Cb(512,r.i,r.i,[]),r.Cb(512,r.u,r.J,[r.i,[2,r.K]]),r.Cb(1024,N.k,(function(){return[[{path:"",component:Ze.a},{path:"items",component:Ze.a}],[{path:"",redirectTo:"items",pathMatch:"full"},{path:"activation",component:I},{path:"support",component:G},{path:"invite",loadChildren:Mn},{path:"contact",loadChildren:An},{path:"settings",loadChildren:In},{path:"profile",loadChildren:Dn},{path:"items",loadChildren:Pn},{path:"chat",loadChildren:Nn},{path:"collections",loadChildren:jn},{path:"home",loadChildren:Rn}]]}),[]),r.Cb(512,N.l,T.Cb,[]),r.Cb(1024,N.m,N.x,[r.g,N.r,N.b,V.g,r.p,r.u,r.i,N.k,N.i,[2,N.q],[2,N.l]]),r.Cb(1073742336,N.n,N.n,[[2,N.s],[2,N.m]]),r.Cb(1073742336,Fn.a,Fn.a,[]),r.Cb(1073742336,dt.a,dt.a,[]),r.Cb(1073742336,$n.b,$n.b,[[2,$n.a],[2,Bt.f]]),r.Cb(1073742336,Bn.b,Bn.b,[]),r.Cb(1073742336,Vn.f,Vn.f,[]),r.Cb(1073742336,qn.b,qn.b,[]),r.Cb(1073742336,zn.b,zn.b,[]),r.Cb(1073742336,Lt.e,Lt.e,[]),r.Cb(1073742336,Ft.g,Ft.g,[]),r.Cb(1073742336,Un.a,Un.a,[]),r.Cb(1073742336,Hn.a,Hn.a,[]),r.Cb(1073742336,M.j,M.j,[]),r.Cb(1073742336,M.c,M.c,[]),r.Cb(1073742336,P.f,P.f,[]),r.Cb(1073742336,$.g,$.g,[]),r.Cb(1073742336,Wn.a,Wn.a,[]),r.Cb(1073742336,Gn.a,Gn.a,[]),r.Cb(1073742336,Xn,Xn,[]),r.Cb(1073742336,$t.e,$t.e,[]),r.Cb(1073742336,$t.d,$t.d,[]),r.Cb(1073742336,r.f,r.f,[r.g]),r.Cb(1073742336,Bt.a,Bt.a,[[3,Bt.a]]),r.Cb(1073742336,Jn,Jn,[]),r.Cb(1073742336,Ln,Ln,[]),r.Cb(1073742336,D.a,D.a,[]),r.Cb(1073742336,o,o,[]),r.Cb(256,$t.l,"XSRF-TOKEN",[]),r.Cb(256,$t.m,"X-XSRF-TOKEN",[]),r.Cb(256,r.Z,!0,[]),r.Cb(256,D.c,null,[]),r.Cb(256,$.l,void 0,[]),r.Cb(256,$.m,!0,[])])}));Object(r.S)(),Bt.h().bootstrapModuleFactory(Qn).catch(e=>console.log(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}},[[0,1]]]);

Filemanager

Name Type Size Permission Actions
assets Folder 0755
svg Folder 0755
1.7b476f8a850e71db5bc7.png File 94.13 KB 0644
10-es2015.0c03b3c11cc47ca0d222.js File 117.74 KB 0644
10-es2015.0c03b3c11cc47ca0d222.js.LICENSE.txt File 1.44 KB 0644
10-es2015.204c04ba6c6e1f61fbdd.js File 114.52 KB 0644
10-es2015.204c04ba6c6e1f61fbdd.js.LICENSE.txt File 1.44 KB 0644
10-es2015.4105bd87365dea307eab.js File 115.11 KB 0644
10-es2015.4105bd87365dea307eab.js.LICENSE.txt File 1.44 KB 0644
10-es2015.47ad8396dc6e47d7e88f.js File 116.49 KB 0644
10-es2015.47ad8396dc6e47d7e88f.js.LICENSE.txt File 1.44 KB 0644
10-es2015.499cebf205cf67265c81.js File 114.99 KB 0644
10-es2015.499cebf205cf67265c81.js.LICENSE.txt File 1.44 KB 0644
10-es2015.5a29e91bfa8c8dce9e1c.js File 114.5 KB 0644
10-es2015.5a29e91bfa8c8dce9e1c.js.LICENSE.txt File 1.44 KB 0644
10-es2015.dfa078595d90e91475f6.js File 114.54 KB 0644
10-es2015.dfa078595d90e91475f6.js.LICENSE.txt File 1.44 KB 0644
10-es2015.e86e61d5e15206e11733.js File 118.04 KB 0644
10-es2015.e86e61d5e15206e11733.js.LICENSE.txt File 1.44 KB 0644
10-es2015.f007e68964a24b3f8b45.js File 118.04 KB 0644
10-es2015.f007e68964a24b3f8b45.js.LICENSE.txt File 1.44 KB 0644
10-es2015.f39c3c509975b6b142dc.js File 116.1 KB 0644
10-es2015.f39c3c509975b6b142dc.js.LICENSE.txt File 1.44 KB 0644
10-es5.0c03b3c11cc47ca0d222.js File 120.21 KB 0644
10-es5.204c04ba6c6e1f61fbdd.js File 116.93 KB 0644
10-es5.4105bd87365dea307eab.js File 117.58 KB 0644
10-es5.47ad8396dc6e47d7e88f.js File 118.96 KB 0644
10-es5.499cebf205cf67265c81.js File 117.46 KB 0644
10-es5.5a29e91bfa8c8dce9e1c.js File 116.91 KB 0644
10-es5.dfa078595d90e91475f6.js File 116.95 KB 0644
10-es5.e86e61d5e15206e11733.js File 120.51 KB 0644
10-es5.f007e68964a24b3f8b45.js File 120.51 KB 0644
10-es5.f39c3c509975b6b142dc.js File 118.57 KB 0644
11-es2015.6ff5786eec3c45a1f1c8.js File 118.38 KB 0644
11-es2015.6ff5786eec3c45a1f1c8.js.LICENSE.txt File 1.44 KB 0644
11-es2015.b88dd17206aa10080288.js File 118.38 KB 0644
11-es2015.b88dd17206aa10080288.js.LICENSE.txt File 1.44 KB 0644
11-es2015.c95b68bd10ba40d62ede.js File 118.38 KB 0644
11-es2015.c95b68bd10ba40d62ede.js.LICENSE.txt File 1.44 KB 0644
11-es2015.e05dd67ec21ac47ffd5b.js File 2.07 KB 0644
11-es5.6ff5786eec3c45a1f1c8.js File 120.83 KB 0644
11-es5.b88dd17206aa10080288.js File 120.83 KB 0644
11-es5.c95b68bd10ba40d62ede.js File 120.83 KB 0644
11-es5.e05dd67ec21ac47ffd5b.js File 2.21 KB 0644
12-es2015.0e12409c8cc580d4423a.js File 161.33 KB 0644
12-es2015.1515a29fdd6cb5a56c00.js File 155.17 KB 0644
12-es2015.29d6e7fddeda498a9091.js File 157.67 KB 0644
12-es2015.2c7a75629049c0ce9638.js File 155.22 KB 0644
12-es2015.4426518d8a3bb2f52ca7.js File 155.67 KB 0644
12-es2015.6580273aaac76b3dc20f.js File 160.2 KB 0644
12-es2015.6bf501d7014eb0a74755.js File 160.6 KB 0644
12-es2015.6fa80b93bbdd06505574.js File 161.34 KB 0644
12-es2015.8041abc91195d93694a1.js File 154.11 KB 0644
12-es2015.888df7946eef875b55c2.js File 2.08 KB 0644
12-es2015.8aa848ed24be0d5b0f88.js File 157.64 KB 0644
12-es2015.8b18593381167c712721.js File 157.82 KB 0644
12-es2015.9cf25da5eaf4db45a9f8.js File 155.04 KB 0644
12-es2015.c9228635931e091f813f.js File 155.17 KB 0644
12-es2015.d990bcd2809de44491e8.js File 154.77 KB 0644
12-es2015.de591e150bccf482720a.js File 154.73 KB 0644
12-es2015.ef1f8dc7daaca80414ad.js File 154.99 KB 0644
12-es2015.fddd6b91ccec6df1a2b2.js File 154.72 KB 0644
12-es2015.ff458705862e73cfa0ca.js File 160.33 KB 0644
12-es5.0e12409c8cc580d4423a.js File 172.97 KB 0644
12-es5.1515a29fdd6cb5a56c00.js File 166.72 KB 0644
12-es5.29d6e7fddeda498a9091.js File 169 KB 0644
12-es5.2c7a75629049c0ce9638.js File 166.76 KB 0644
12-es5.4426518d8a3bb2f52ca7.js File 166.99 KB 0644
12-es5.6580273aaac76b3dc20f.js File 171.82 KB 0644
12-es5.6bf501d7014eb0a74755.js File 172.22 KB 0644
12-es5.6fa80b93bbdd06505574.js File 172.98 KB 0644
12-es5.8041abc91195d93694a1.js File 165.43 KB 0644
12-es5.888df7946eef875b55c2.js File 2.22 KB 0644
12-es5.8aa848ed24be0d5b0f88.js File 168.96 KB 0644
12-es5.8b18593381167c712721.js File 169.14 KB 0644
12-es5.9cf25da5eaf4db45a9f8.js File 166.59 KB 0644
12-es5.c9228635931e091f813f.js File 166.72 KB 0644
12-es5.d990bcd2809de44491e8.js File 166.12 KB 0644
12-es5.de591e150bccf482720a.js File 166.05 KB 0644
12-es5.ef1f8dc7daaca80414ad.js File 166.31 KB 0644
12-es5.fddd6b91ccec6df1a2b2.js File 166.06 KB 0644
12-es5.ff458705862e73cfa0ca.js File 171.95 KB 0644
13-es2015.10172d4cc0d7bc244fdf.js File 13.41 KB 0644
13-es2015.13334025947b97a8fc32.js File 13.29 KB 0644
13-es2015.3d727b680152c27e68d7.js File 13.52 KB 0644
13-es2015.48cca0696207d48d1ab6.js File 13.4 KB 0644
13-es2015.a0c962a254a73dc3f4ad.js File 143.08 KB 0644
13-es2015.a4f92e659b3837f6673c.js File 143.08 KB 0644
13-es2015.b4e0107ad8c2fd5ece47.js File 13.49 KB 0644
13-es2015.b9a6f2efbec52e676194.js File 13.51 KB 0644
13-es5.10172d4cc0d7bc244fdf.js File 14.52 KB 0644
13-es5.13334025947b97a8fc32.js File 14.4 KB 0644
13-es5.3d727b680152c27e68d7.js File 14.62 KB 0644
13-es5.48cca0696207d48d1ab6.js File 14.51 KB 0644
13-es5.a0c962a254a73dc3f4ad.js File 154.65 KB 0644
13-es5.a4f92e659b3837f6673c.js File 154.65 KB 0644
13-es5.b4e0107ad8c2fd5ece47.js File 14.6 KB 0644
13-es5.b9a6f2efbec52e676194.js File 14.62 KB 0644
14-es2015.2c4203757db09d6657ac.js File 4.64 KB 0644
14-es2015.609e64c720e8cac433f2.js File 4.64 KB 0644
14-es2015.df2a05f15b0bfe819d88.js File 13.52 KB 0644
14-es2015.e22beb5c94780b7fa3ff.js File 13.52 KB 0644
14-es5.2c4203757db09d6657ac.js File 4.8 KB 0644
14-es5.609e64c720e8cac433f2.js File 4.79 KB 0644
14-es5.df2a05f15b0bfe819d88.js File 14.62 KB 0644
14-es5.e22beb5c94780b7fa3ff.js File 14.62 KB 0644
15-es2015.228842c01b7338093a6e.js File 9.05 KB 0644
15-es2015.2ea60e24b595e8310b4a.js File 6.41 KB 0644
15-es2015.39ed087ac08cff6abb47.js File 6.14 KB 0644
15-es2015.bfde4bb20ebaf2bf4320.js File 6.13 KB 0644
15-es5.228842c01b7338093a6e.js File 9.71 KB 0644
15-es5.2ea60e24b595e8310b4a.js File 6.97 KB 0644
15-es5.39ed087ac08cff6abb47.js File 6.69 KB 0644
15-es5.bfde4bb20ebaf2bf4320.js File 6.69 KB 0644
16-es2015.191ba23f23949fc08308.js File 6.41 KB 0644
16-es2015.ccb8dbb60a34049d3440.js File 1.75 KB 0644
16-es5.191ba23f23949fc08308.js File 6.97 KB 0644
16-es5.ccb8dbb60a34049d3440.js File 1.75 KB 0644
16.e5071696758a0abab181.png File 48.3 KB 0644
17-es2015.0242b728181862609b1e.js File 1.75 KB 0644
17-es2015.995bd88d12fa00b9080a.js File 7.78 KB 0644
17-es2015.ad32088126f0d1902660.js File 7.78 KB 0644
17-es5.0242b728181862609b1e.js File 1.75 KB 0644
17-es5.995bd88d12fa00b9080a.js File 7.94 KB 0644
17-es5.ad32088126f0d1902660.js File 7.93 KB 0644
18-es2015.af5b3c848194655d86a5.js File 769 B 0644
18-es2015.ea7a7d2e40e57325c4fc.js File 7.78 KB 0644
18-es2015.f88b4344d2d89abcd4ef.js File 7.78 KB 0644
18-es5.af5b3c848194655d86a5.js File 863 B 0644
18-es5.ea7a7d2e40e57325c4fc.js File 7.94 KB 0644
18-es5.f88b4344d2d89abcd4ef.js File 7.94 KB 0644
19-es2015.0dde4d5c18556525c7c7.js File 4.27 KB 0644
19-es2015.8566be3b89cde9650ba8.js File 769 B 0644
19-es5.0dde4d5c18556525c7c7.js File 5.86 KB 0644
19-es5.8566be3b89cde9650ba8.js File 863 B 0644
2-es2015.37260c2a65f41d0fe800.js File 16.59 KB 0644
2-es2015.a8ee0def4c82de27f105.js File 628 B 0644
2-es5.37260c2a65f41d0fe800.js File 16.59 KB 0644
2-es5.a8ee0def4c82de27f105.js File 651 B 0644
2.9238b2300f717b6ef395.png File 75.25 KB 0644
20-es2015.6c96e3d5c5a05286e4ce.js File 20.99 KB 0644
20-es2015.8bd59b1de53590ee073f.js File 4.27 KB 0644
20-es5.6c96e3d5c5a05286e4ce.js File 23.16 KB 0644
20-es5.8bd59b1de53590ee073f.js File 5.86 KB 0644
21-es2015.e96d43bcfa1e5ae2d8ba.js File 20.99 KB 0644
21-es2015.ea58a90d10778e38535e.js File 33.07 KB 0644
21-es5.e96d43bcfa1e5ae2d8ba.js File 23.16 KB 0644
21-es5.ea58a90d10778e38535e.js File 35.84 KB 0644
22-es2015.7c920433c158eefaf8d7.js File 38.44 KB 0644
22-es2015.afb960d6f7784194311e.js File 33.07 KB 0644
22-es5.7c920433c158eefaf8d7.js File 45.66 KB 0644
22-es5.afb960d6f7784194311e.js File 35.84 KB 0644
23-es2015.498184dcdaca2ff6d68e.js File 3.7 KB 0644
23-es2015.9f0a0b114c74071276d0.js File 38.44 KB 0644
23-es5.498184dcdaca2ff6d68e.js File 4.45 KB 0644
23-es5.9f0a0b114c74071276d0.js File 45.66 KB 0644
24-es2015.5d70bfd141c092552895.js File 12.74 KB 0644
24-es2015.b4e6aeb3eb281a7810c2.js File 3.7 KB 0644
24-es5.5d70bfd141c092552895.js File 14.39 KB 0644
24-es5.b4e6aeb3eb281a7810c2.js File 4.45 KB 0644
25-es2015.089f998cb6e8061a673e.js File 1.52 KB 0644
25-es2015.3f4e7264884bed7fa241.js File 12.74 KB 0644
25-es5.089f998cb6e8061a673e.js File 2.26 KB 0644
25-es5.3f4e7264884bed7fa241.js File 14.39 KB 0644
26-es2015.a6a6fa9e55e7e90351c6.js File 23.52 KB 0644
26-es2015.de6ac13e25c3c2d7dc5f.js File 1.52 KB 0644
26-es5.a6a6fa9e55e7e90351c6.js File 24.99 KB 0644
26-es5.de6ac13e25c3c2d7dc5f.js File 2.26 KB 0644
27-es2015.db0cc5759cba328b1e64.js File 11.2 KB 0644
27-es2015.f3ebaa56e9aab08601ee.js File 23.52 KB 0644
27-es5.db0cc5759cba328b1e64.js File 12.25 KB 0644
27-es5.f3ebaa56e9aab08601ee.js File 24.99 KB 0644
28-es2015.0ec545bd20f059699a3d.js File 7.34 KB 0644
28-es2015.c60d8e54100c9c6ea01c.js File 11.2 KB 0644
28-es5.0ec545bd20f059699a3d.js File 8.24 KB 0644
28-es5.c60d8e54100c9c6ea01c.js File 12.25 KB 0644
29-es2015.36d82e93d0cc760da984.js File 7.34 KB 0644
29-es2015.75b99a519be7de4444e5.js File 8.03 KB 0644
29-es5.36d82e93d0cc760da984.js File 8.24 KB 0644
29-es5.75b99a519be7de4444e5.js File 8.68 KB 0644
3-es2015.809079511001d2483aca.js File 628 B 0644
3-es5.809079511001d2483aca.js File 651 B 0644
3.f073a18ea694185726ce.png File 55.2 KB 0644
30-es2015.3322e025b3831881e222.js File 8.03 KB 0644
30-es2015.dbd37e93be2597badc44.js File 11.25 KB 0644
30-es5.3322e025b3831881e222.js File 8.68 KB 0644
30-es5.dbd37e93be2597badc44.js File 13.46 KB 0644
31-es2015.419cb9f560674ebafbf5.js File 38.61 KB 0644
31-es2015.c476a4a543def09f9e01.js File 11.25 KB 0644
31-es5.419cb9f560674ebafbf5.js File 45.3 KB 0644
31-es5.c476a4a543def09f9e01.js File 13.46 KB 0644
32-es2015.1749a349b769380a8e94.js File 21 KB 0644
32-es2015.34bfe9c84952646519d1.js File 38.61 KB 0644
32-es5.1749a349b769380a8e94.js File 22.95 KB 0644
32-es5.34bfe9c84952646519d1.js File 45.3 KB 0644
33-es2015.4b21440dbf5304cadc8e.js File 21 KB 0644
33-es2015.e11d353340c69ca02acc.js File 1.45 KB 0644
33-es5.4b21440dbf5304cadc8e.js File 22.95 KB 0644
33-es5.e11d353340c69ca02acc.js File 2.1 KB 0644
34-es2015.43e9dcf30e1765ded0e5.js File 1.45 KB 0644
34-es2015.4e75f59b81d8215fbe59.js File 5.9 KB 0644
34-es5.43e9dcf30e1765ded0e5.js File 2.1 KB 0644
34-es5.4e75f59b81d8215fbe59.js File 7.74 KB 0644
35-es2015.21b7df0531803ecc6286.js File 13.5 KB 0644
35-es2015.b8f5bad9635cc0c60efa.js File 5.9 KB 0644
35-es5.21b7df0531803ecc6286.js File 15.08 KB 0644
35-es5.b8f5bad9635cc0c60efa.js File 7.74 KB 0644
36-es2015.139b22000412120ab40b.js File 20.33 KB 0644
36-es2015.64aee4ebd2736a4b08bd.js File 13.5 KB 0644
36-es5.139b22000412120ab40b.js File 23.71 KB 0644
36-es5.64aee4ebd2736a4b08bd.js File 15.08 KB 0644
37-es2015.13fd9bf300240f4ad78f.js File 20.33 KB 0644
37-es2015.42d36b9b6b8bd4368a4b.js File 57.7 KB 0644
37-es5.13fd9bf300240f4ad78f.js File 23.71 KB 0644
37-es5.42d36b9b6b8bd4368a4b.js File 60.41 KB 0644
38-es2015.87283c337eff9228bf45.js File 8.4 KB 0644
38-es2015.efac5a05069b736e8ae2.js File 57.7 KB 0644
38-es5.87283c337eff9228bf45.js File 9.86 KB 0644
38-es5.efac5a05069b736e8ae2.js File 60.41 KB 0644
39-es2015.fa281b54ddd40a1da6f5.js File 18.98 KB 0644
39-es2015.fb98b2e74b5403378d81.js File 8.4 KB 0644
39-es5.fa281b54ddd40a1da6f5.js File 23.89 KB 0644
39-es5.fb98b2e74b5403378d81.js File 9.86 KB 0644
3rdpartylicenses.txt File 25.36 KB 0644
4.d02ae7da1424fbe6959f.png File 45.95 KB 0644
40-es2015.666566b445160691c6d1.js File 18.98 KB 0644
40-es2015.9c315663dc0bc0beda38.js File 13.65 KB 0644
40-es5.666566b445160691c6d1.js File 23.89 KB 0644
40-es5.9c315663dc0bc0beda38.js File 15.91 KB 0644
41-es2015.c2e2f06a1e3d4431dc0a.js File 11.46 KB 0644
41-es2015.dfcbaee0607810ea73a7.js File 13.65 KB 0644
41-es5.c2e2f06a1e3d4431dc0a.js File 17.52 KB 0644
41-es5.dfcbaee0607810ea73a7.js File 15.91 KB 0644
42-es2015.706f282c15ad6c9fb243.js File 11.46 KB 0644
42-es2015.76d53de284112c254218.js File 9.71 KB 0644
42-es5.706f282c15ad6c9fb243.js File 17.52 KB 0644
42-es5.76d53de284112c254218.js File 11.53 KB 0644
43-es2015.53ed341e360648ecf673.js File 18.23 KB 0644
43-es2015.990e5b4977078cf54bb8.js File 9.71 KB 0644
43-es5.53ed341e360648ecf673.js File 18.94 KB 0644
43-es5.990e5b4977078cf54bb8.js File 11.53 KB 0644
44-es2015.ba99eca690af3443ea76.js File 18.23 KB 0644
44-es2015.d6a2e7e85aabdf3b73ea.js File 8.15 KB 0644
44-es5.ba99eca690af3443ea76.js File 18.94 KB 0644
44-es5.d6a2e7e85aabdf3b73ea.js File 9.71 KB 0644
45-es2015.ab5f2d3fc3b230bf42df.js File 8.15 KB 0644
45-es2015.e3d4dc0843b2390c89cf.js File 18.26 KB 0644
45-es5.ab5f2d3fc3b230bf42df.js File 9.71 KB 0644
45-es5.e3d4dc0843b2390c89cf.js File 20.28 KB 0644
46-es2015.bcaf416835d1109f5261.js File 18.26 KB 0644
46-es2015.c1f9903be0e39ccf729d.js File 23.21 KB 0644
46-es5.bcaf416835d1109f5261.js File 20.28 KB 0644
46-es5.c1f9903be0e39ccf729d.js File 27.47 KB 0644
47-es2015.653feb9bd396c11db639.js File 23.21 KB 0644
47-es2015.b15bf5b9e5c7d7a1f72e.js File 5.22 KB 0644
47-es5.653feb9bd396c11db639.js File 27.47 KB 0644
47-es5.b15bf5b9e5c7d7a1f72e.js File 6.99 KB 0644
48-es2015.d16c53026d07f50cd0db.js File 5.22 KB 0644
48-es2015.f646c133489af7da90b5.js File 3.07 KB 0644
48-es5.d16c53026d07f50cd0db.js File 6.99 KB 0644
48-es5.f646c133489af7da90b5.js File 4.42 KB 0644
49-es2015.936ecc96b16b39fb9007.js File 9.95 KB 0644
49-es2015.ce5bae7f8463c7812add.js File 3.07 KB 0644
49-es5.936ecc96b16b39fb9007.js File 19.69 KB 0644
49-es5.ce5bae7f8463c7812add.js File 4.42 KB 0644
5.6a59c27b1b13e877fc67.png File 41.18 KB 0644
50-es2015.6ca3663b2e3c43a43fcf.js File 9.95 KB 0644
50-es2015.7a2d812309eddcaacb36.js File 23.4 KB 0644
50-es5.6ca3663b2e3c43a43fcf.js File 19.69 KB 0644
50-es5.7a2d812309eddcaacb36.js File 25.12 KB 0644
51-es2015.5947af8ff8276de50032.js File 26.07 KB 0644
51-es2015.ef14804ceaf1b78fc48b.js File 23.4 KB 0644
51-es5.5947af8ff8276de50032.js File 29.83 KB 0644
51-es5.ef14804ceaf1b78fc48b.js File 25.12 KB 0644
52-es2015.0838d88a75c8d6780efd.js File 26.07 KB 0644
52-es2015.d32a8436c544156ea724.js File 11.72 KB 0644
52-es5.0838d88a75c8d6780efd.js File 29.83 KB 0644
52-es5.d32a8436c544156ea724.js File 15.29 KB 0644
53-es2015.2fe7c6cf2d7aebce96ca.js File 47.7 KB 0644
53-es2015.cc11a586e5327001f710.js File 11.72 KB 0644
53-es5.2fe7c6cf2d7aebce96ca.js File 55.01 KB 0644
53-es5.cc11a586e5327001f710.js File 15.29 KB 0644
54-es2015.38fce2e0179a64eb09ea.js File 47.7 KB 0644
54-es2015.75ba905249e0b12dc54f.js File 5.21 KB 0644
54-es5.38fce2e0179a64eb09ea.js File 55.01 KB 0644
54-es5.75ba905249e0b12dc54f.js File 5.88 KB 0644
55-es2015.460aae8eb425c657f748.js File 6.32 KB 0644
55-es2015.77603f498b152144123b.js File 5.21 KB 0644
55-es5.460aae8eb425c657f748.js File 7.14 KB 0644
55-es5.77603f498b152144123b.js File 5.88 KB 0644
56-es2015.d02362ec130556472e92.js File 6.32 KB 0644
56-es2015.d0f5800bb61d36a42ac5.js File 19.58 KB 0644
56-es5.d02362ec130556472e92.js File 7.14 KB 0644
56-es5.d0f5800bb61d36a42ac5.js File 20.87 KB 0644
57-es2015.26ee31b9cc6e76ac776b.js File 3.67 KB 0644
57-es2015.607c48266209c4da682a.js File 19.58 KB 0644
57-es5.26ee31b9cc6e76ac776b.js File 6.88 KB 0644
57-es5.607c48266209c4da682a.js File 20.87 KB 0644
58-es2015.21d45ba6de7a7203a86c.js File 450 B 0644
58-es2015.9ae6f1627b4444f407f0.js File 3.67 KB 0644
58-es5.21d45ba6de7a7203a86c.js File 1.04 KB 0644
58-es5.9ae6f1627b4444f407f0.js File 6.88 KB 0644
59-es2015.53ca0519e6930c72f322.js File 11.62 KB 0644
59-es2015.cf9f95d3206248f123b0.js File 450 B 0644
59-es5.53ca0519e6930c72f322.js File 13.23 KB 0644
59-es5.cf9f95d3206248f123b0.js File 1.04 KB 0644
60-es2015.5616e060458cf76220ec.js File 13.62 KB 0644
60-es2015.f27941a9c9c51b0f6036.js File 11.62 KB 0644
60-es5.5616e060458cf76220ec.js File 16.07 KB 0644
60-es5.f27941a9c9c51b0f6036.js File 13.23 KB 0644
61-es2015.2488607a658a7be1807c.js File 13.62 KB 0644
61-es2015.26a332aa6dc96b8a5424.js File 12.4 KB 0644
61-es5.2488607a658a7be1807c.js File 16.07 KB 0644
61-es5.26a332aa6dc96b8a5424.js File 14.1 KB 0644
62-es2015.024a717d9fa8938ec49a.js File 7.34 KB 0644
62-es2015.c5381792cca04f84b3b7.js File 12.4 KB 0644
62-es5.024a717d9fa8938ec49a.js File 11.05 KB 0644
62-es5.c5381792cca04f84b3b7.js File 14.1 KB 0644
63-es2015.46d2309c8d9ae70dac2d.js File 1.48 KB 0644
63-es2015.f114fe3eed7a5d9bc319.js File 7.34 KB 0644
63-es5.46d2309c8d9ae70dac2d.js File 1.62 KB 0644
63-es5.f114fe3eed7a5d9bc319.js File 11.05 KB 0644
64-es2015.6dced572ce9a83895c6c.js File 1.48 KB 0644
64-es2015.8e895a843f0c8e70f965.js File 4.59 KB 0644
64-es2015.8e895a843f0c8e70f965.js.LICENSE.txt File 460 B 0644
64-es5.6dced572ce9a83895c6c.js File 1.62 KB 0644
64-es5.8e895a843f0c8e70f965.js File 6.24 KB 0644
65-es2015.2ca1e9332b9efbd466de.js File 4.59 KB 0644
65-es2015.2ca1e9332b9efbd466de.js.LICENSE.txt File 460 B 0644
65-es2015.4228480b200fe23655dd.js File 436 B 0644
65-es5.2ca1e9332b9efbd466de.js File 6.24 KB 0644
65-es5.4228480b200fe23655dd.js File 465 B 0644
66-es2015.316a1e54e669fbd3ebc4.js File 97.39 KB 0644
66-es2015.e15757f7eef4964f1bf0.js File 436 B 0644
66-es5.316a1e54e669fbd3ebc4.js File 106.34 KB 0644
66-es5.e15757f7eef4964f1bf0.js File 465 B 0644
67-es2015.383d9863444606926d96.js File 97.39 KB 0644
67-es2015.e332d24ccdaaf125507b.js File 1.93 KB 0644
67-es5.383d9863444606926d96.js File 106.34 KB 0644
67-es5.e332d24ccdaaf125507b.js File 2.06 KB 0644
68-es2015.0fcdbdea911e196923b8.js File 1.93 KB 0644
68-es5.0fcdbdea911e196923b8.js File 2.06 KB 0644
BMitra_p30download_com.035ead3b383f1e422aad.ttf File 53.64 KB 0644
BMitra_p30download_com.064df6a1d375b7900c1e.eot File 53.86 KB 0644
BMitra_p30download_com.1f8b2560a3f3067c62c1.woff2 File 20.13 KB 0644
BMitra_p30download_com.8560c05c70436abd039e.woff File 25.47 KB 0644
BMitra_p30download_com.eb5b90d00bc75d57d558.svg File 91.07 KB 0644
Sahel-Black-FD.4afd4212e3b79605a70a.woff File 44.7 KB 0644
Sahel-Black-FD.575dd62713fe7344272a.ttf File 74.13 KB 0644
Sahel-Black-FD.bfac4b605bffd11de82c.eot File 74.32 KB 0644
Sahel-Black.1ae8e586e79595014457.eot File 75.99 KB 0644
Sahel-Black.5d976e392434aea91948.ttf File 75.8 KB 0644
Sahel-Black.6f682b927b5a87efbdad.woff File 45.88 KB 0644
Sahel-Bold-FD.28a1f17b816e3a6f4bfd.eot File 73.97 KB 0644
Sahel-Bold.a0147ad1d03da743e2d6.eot File 75.69 KB 0644
Yekan.492984b84b9f05835f9c.woff File 35.08 KB 0644
Yekan.6387a14a1aed237d8362.ttf File 58.21 KB 0644
Yekan.6a51276de7a745c01c6c.eot File 58.51 KB 0644
Yekan.e831f22b63488286596b.svg File 219.65 KB 0644
animatedbook.f5a3d8e16677642b3860.gif File 65.94 KB 0644
common-es2015.0d71b2e8064418209fce.js File 11.23 KB 0644
common-es2015.56b5a5553d5314391106.js File 11.94 KB 0644
common-es2015.9a5b8b7ffc5fa65cfe14.js File 11.28 KB 0644
common-es2015.d19086d809c7c7657257.js File 11.5 KB 0644
common-es5.0d71b2e8064418209fce.js File 13.39 KB 0644
common-es5.56b5a5553d5314391106.js File 14.1 KB 0644
common-es5.9a5b8b7ffc5fa65cfe14.js File 13.44 KB 0644
common-es5.d19086d809c7c7657257.js File 13.65 KB 0644
facebookgray.559be9d831ed9ce064c6.png File 63.75 KB 0644
global.969eeb7769cbf67f5be8.svg File 4.09 KB 0644
icon.028d145130007b892b17.png File 147.95 KB 0644
index.html File 1.35 KB 0644
main-es2015.023063a5ae7962c6edb2.js File 958.71 KB 0644
main-es2015.023063a5ae7962c6edb2.js.LICENSE.txt File 1.99 KB 0644
main-es2015.117ade6e195ac86398fd.js File 962.42 KB 0644
main-es2015.117ade6e195ac86398fd.js.LICENSE.txt File 1.99 KB 0644
main-es2015.145b92898f7f4db4fc6d.js File 960.44 KB 0644
main-es2015.145b92898f7f4db4fc6d.js.LICENSE.txt File 1.99 KB 0644
main-es2015.25f0377cdc14aabdbeb0.js File 962.42 KB 0644
main-es2015.25f0377cdc14aabdbeb0.js.LICENSE.txt File 1.99 KB 0644
main-es2015.2a5415166c13afcc1692.js File 961.04 KB 0644
main-es2015.2a5415166c13afcc1692.js.LICENSE.txt File 1.99 KB 0644
main-es2015.33a6eea7f0c648d8c075.js File 960.13 KB 0644
main-es2015.33a6eea7f0c648d8c075.js.LICENSE.txt File 1.99 KB 0644
main-es2015.3a084836c58423a626ab.js File 962.42 KB 0644
main-es2015.3a084836c58423a626ab.js.LICENSE.txt File 1.99 KB 0644
main-es2015.4019d0e13e10be4f5b05.js File 959.97 KB 0644
main-es2015.4019d0e13e10be4f5b05.js.LICENSE.txt File 1.99 KB 0644
main-es2015.4bbc9b55e61e291de835.js File 961.92 KB 0644
main-es2015.4bbc9b55e61e291de835.js.LICENSE.txt File 1.99 KB 0644
main-es2015.5bb2989027ca69fe7d3b.js File 958.71 KB 0644
main-es2015.5bb2989027ca69fe7d3b.js.LICENSE.txt File 1.99 KB 0644
main-es2015.61ef54f3cf064d3e4ab4.js File 958.8 KB 0644
main-es2015.61ef54f3cf064d3e4ab4.js.LICENSE.txt File 1.99 KB 0644
main-es2015.623e547875c4647a65b9.js File 962.41 KB 0644
main-es2015.623e547875c4647a65b9.js.LICENSE.txt File 1.99 KB 0644
main-es2015.667a0e0b3838c40e0306.js File 962.08 KB 0644
main-es2015.667a0e0b3838c40e0306.js.LICENSE.txt File 1.99 KB 0644
main-es2015.6b4a294f0e21c03925fe.js File 960.9 KB 0644
main-es2015.6b4a294f0e21c03925fe.js.LICENSE.txt File 1.99 KB 0644
main-es2015.6cebc43ddd000767df6b.js File 960.42 KB 0644
main-es2015.6cebc43ddd000767df6b.js.LICENSE.txt File 1.99 KB 0644
main-es2015.7514a87cecf0c3ae2c70.js File 958.86 KB 0644
main-es2015.7514a87cecf0c3ae2c70.js.LICENSE.txt File 1.99 KB 0644
main-es2015.75266796aa7282d6116a.js File 960.03 KB 0644
main-es2015.75266796aa7282d6116a.js.LICENSE.txt File 1.99 KB 0644
main-es2015.7c168a933932c68e3841.js File 962.3 KB 0644
main-es2015.7c168a933932c68e3841.js.LICENSE.txt File 1.99 KB 0644
main-es2015.7f7914d9b972f614570e.js File 962 KB 0644
main-es2015.7f7914d9b972f614570e.js.LICENSE.txt File 1.99 KB 0644
main-es2015.8d01feb560bbe706c268.js File 962.1 KB 0644
main-es2015.8d01feb560bbe706c268.js.LICENSE.txt File 1.99 KB 0644
main-es2015.95fd48c2e8af9bc6c857.js File 958.69 KB 0644
main-es2015.95fd48c2e8af9bc6c857.js.LICENSE.txt File 1.99 KB 0644
main-es2015.a7c8464c627e1f2dbece.js File 958.8 KB 0644
main-es2015.a7c8464c627e1f2dbece.js.LICENSE.txt File 1.99 KB 0644
main-es2015.a934fe5d9957db5b9fd1.js File 962.25 KB 0644
main-es2015.a934fe5d9957db5b9fd1.js.LICENSE.txt File 1.99 KB 0644
main-es2015.bcae6e4bf509ab06a11e.js File 962.2 KB 0644
main-es2015.bcae6e4bf509ab06a11e.js.LICENSE.txt File 1.99 KB 0644
main-es2015.c27ca7bce5480fa284dc.js File 962.43 KB 0644
main-es2015.c27ca7bce5480fa284dc.js.LICENSE.txt File 1.99 KB 0644
main-es2015.c59a9f3dcd2e39e4fb33.js File 958.68 KB 0644
main-es2015.c59a9f3dcd2e39e4fb33.js.LICENSE.txt File 1.99 KB 0644
main-es2015.c946392a54d74b8f9190.js File 960.18 KB 0644
main-es2015.c946392a54d74b8f9190.js.LICENSE.txt File 1.99 KB 0644
main-es2015.cd9e7ca8d3a4d603a497.js File 962.12 KB 0644
main-es2015.cd9e7ca8d3a4d603a497.js.LICENSE.txt File 1.99 KB 0644
main-es2015.e3fb0f6d635a5014f13c.js File 962.31 KB 0644
main-es2015.e3fb0f6d635a5014f13c.js.LICENSE.txt File 1.99 KB 0644
main-es2015.e485f9b08f4acc3af1a4.js File 958.88 KB 0644
main-es2015.e485f9b08f4acc3af1a4.js.LICENSE.txt File 1.99 KB 0644
main-es2015.f662051cea0f63ce50bb.js File 962.43 KB 0644
main-es2015.f662051cea0f63ce50bb.js.LICENSE.txt File 1.99 KB 0644
main-es2015.fb808352db4aa427a8a9.js File 962.4 KB 0644
main-es2015.fb808352db4aa427a8a9.js.LICENSE.txt File 1.99 KB 0644
main-es5.023063a5ae7962c6edb2.js File 1.08 MB 0644
main-es5.117ade6e195ac86398fd.js File 1.08 MB 0644
main-es5.145b92898f7f4db4fc6d.js File 1.08 MB 0644
main-es5.25f0377cdc14aabdbeb0.js File 1.08 MB 0644
main-es5.2a5415166c13afcc1692.js File 1.08 MB 0644
main-es5.33a6eea7f0c648d8c075.js File 1.08 MB 0644
main-es5.3a084836c58423a626ab.js File 1.08 MB 0644
main-es5.4019d0e13e10be4f5b05.js File 1.08 MB 0644
main-es5.4bbc9b55e61e291de835.js File 1.08 MB 0644
main-es5.5bb2989027ca69fe7d3b.js File 1.08 MB 0644
main-es5.61ef54f3cf064d3e4ab4.js File 1.08 MB 0644
main-es5.623e547875c4647a65b9.js File 1.08 MB 0644
main-es5.667a0e0b3838c40e0306.js File 1.08 MB 0644
main-es5.6b4a294f0e21c03925fe.js File 1.08 MB 0644
main-es5.6cebc43ddd000767df6b.js File 1.08 MB 0644
main-es5.7514a87cecf0c3ae2c70.js File 1.08 MB 0644
main-es5.75266796aa7282d6116a.js File 1.08 MB 0644
main-es5.7c168a933932c68e3841.js File 1.08 MB 0644
main-es5.7f7914d9b972f614570e.js File 1.08 MB 0644
main-es5.8d01feb560bbe706c268.js File 1.08 MB 0644
main-es5.95fd48c2e8af9bc6c857.js File 1.08 MB 0644
main-es5.a7c8464c627e1f2dbece.js File 1.08 MB 0644
main-es5.a934fe5d9957db5b9fd1.js File 1.08 MB 0644
main-es5.bcae6e4bf509ab06a11e.js File 1.08 MB 0644
main-es5.c27ca7bce5480fa284dc.js File 1.08 MB 0644
main-es5.c59a9f3dcd2e39e4fb33.js File 1.08 MB 0644
main-es5.c946392a54d74b8f9190.js File 1.08 MB 0644
main-es5.cd9e7ca8d3a4d603a497.js File 1.08 MB 0644
main-es5.e3fb0f6d635a5014f13c.js File 1.08 MB 0644
main-es5.e485f9b08f4acc3af1a4.js File 1.08 MB 0644
main-es5.f662051cea0f63ce50bb.js File 1.08 MB 0644
main-es5.fb808352db4aa427a8a9.js File 1.08 MB 0644
polyfills-core-js-es2015.d790e7e38ef54cfd3fb5.js File 91.84 KB 0644
polyfills-core-js-es2015.f65185d0bd26a48fa1b4.js File 91.84 KB 0644
polyfills-core-js-es5.d790e7e38ef54cfd3fb5.js File 91.84 KB 0644
polyfills-core-js-es5.f65185d0bd26a48fa1b4.js File 91.84 KB 0644
polyfills-css-shim-es2015.3974ad512d5b91c60ebf.js File 7.91 KB 0644
polyfills-css-shim-es2015.49cffbb439bc177c344f.js File 7.91 KB 0644
polyfills-css-shim-es5.3974ad512d5b91c60ebf.js File 7.89 KB 0644
polyfills-css-shim-es5.49cffbb439bc177c344f.js File 7.89 KB 0644
polyfills-dom-es2015.396a9c11ebac4ed165fe.js File 36.09 KB 0644
polyfills-dom-es2015.396a9c11ebac4ed165fe.js.LICENSE.txt File 202 B 0644
polyfills-dom-es2015.42e0b3cd0d63cf7a15de.js File 36.09 KB 0644
polyfills-dom-es2015.42e0b3cd0d63cf7a15de.js.LICENSE.txt File 202 B 0644
polyfills-dom-es5.396a9c11ebac4ed165fe.js File 36.09 KB 0644
polyfills-dom-es5.42e0b3cd0d63cf7a15de.js File 36.09 KB 0644
polyfills-es2015.110fe417d71f09ed77ae.js File 36.35 KB 0644
polyfills-es2015.110fe417d71f09ed77ae.js.LICENSE.txt File 203 B 0644
polyfills-es2015.ea58b6e46ac542954c3b.js File 36.35 KB 0644
polyfills-es2015.ea58b6e46ac542954c3b.js.LICENSE.txt File 203 B 0644
polyfills-es5-es2015.bc985b2bbaa1c9111296.js.LICENSE.txt File 203 B 0644
polyfills-es5-es2015.f0b72dc54c5ae0042d55.js.LICENSE.txt File 203 B 0644
polyfills-es5.bc985b2bbaa1c9111296.js File 127.49 KB 0644
polyfills-es5.f0b72dc54c5ae0042d55.js File 127.49 KB 0644
runtime-es2015.0e5d83bea9f9f10c9298.js File 3.88 KB 0644
runtime-es2015.16fbd17c18407a500f16.js File 3.88 KB 0644
runtime-es2015.19861457e4614f8b3280.js File 3.88 KB 0644
runtime-es2015.279a6310d983162a2a7b.js File 3.88 KB 0644
runtime-es2015.282c7f0ace58c8b194da.js File 3.9 KB 0644
runtime-es2015.33bfc73d31d96ce7e793.js File 3.88 KB 0644
runtime-es2015.3950be6f3b9768af2c38.js File 3.9 KB 0644
runtime-es2015.42c19207afca73997f90.js File 3.88 KB 0644
runtime-es2015.4d7dc2a56cd297284470.js File 3.9 KB 0644
runtime-es2015.5579785953f33b4fd58b.js File 3.88 KB 0644
runtime-es2015.5c45823b3d3da2bf518f.js File 3.88 KB 0644
runtime-es2015.5dce2c04f7db5cb2cad1.js File 3.88 KB 0644
runtime-es2015.616040185062dfc4eff5.js File 3.88 KB 0644
runtime-es2015.6701aeebd62d36305f1c.js File 3.88 KB 0644
runtime-es2015.6b4baecf5553d326bd7e.js File 3.88 KB 0644
runtime-es2015.7aa3224eaa27502a1a50.js File 3.88 KB 0644
runtime-es2015.7c98b2b02302b6c1e7c0.js File 3.88 KB 0644
runtime-es2015.810b8615926918b69851.js File 3.88 KB 0644
runtime-es2015.87dbfa2841125263a48f.js File 3.88 KB 0644
runtime-es2015.87eb84e2393ddb76f963.js File 3.88 KB 0644
runtime-es2015.8921d32a2dc6b4e20465.js File 3.88 KB 0644
runtime-es2015.9b084477ab81d3c57444.js File 3.88 KB 0644
runtime-es2015.a175c2b320c4c3947604.js File 3.88 KB 0644
runtime-es2015.afc8bb32d0c705a0964c.js File 3.88 KB 0644
runtime-es2015.b0b33a77d4cb84737c63.js File 3.88 KB 0644
runtime-es2015.bdd8973af91197c87a25.js File 3.9 KB 0644
runtime-es2015.d5c0c09df8921500a787.js File 3.88 KB 0644
runtime-es2015.df55dcdc3ccdca6df96d.js File 3.9 KB 0644
runtime-es2015.e31cef0850f0b8b0605e.js File 3.88 KB 0644
runtime-es2015.f4b59b8d8af3454077be.js File 3.88 KB 0644
runtime-es2015.f5407dc73fe24ad9739e.js File 3.88 KB 0644
runtime-es2015.f9e00562d1e14413cab7.js File 3.9 KB 0644
runtime-es2015.ff995bd341e381ef51b4.js File 3.88 KB 0644
runtime-es5.0e5d83bea9f9f10c9298.js File 3.87 KB 0644
runtime-es5.16fbd17c18407a500f16.js File 3.87 KB 0644
runtime-es5.19861457e4614f8b3280.js File 3.87 KB 0644
runtime-es5.279a6310d983162a2a7b.js File 3.87 KB 0644
runtime-es5.282c7f0ace58c8b194da.js File 3.9 KB 0644
runtime-es5.33bfc73d31d96ce7e793.js File 3.87 KB 0644
runtime-es5.3950be6f3b9768af2c38.js File 3.9 KB 0644
runtime-es5.42c19207afca73997f90.js File 3.87 KB 0644
runtime-es5.4d7dc2a56cd297284470.js File 3.9 KB 0644
runtime-es5.5579785953f33b4fd58b.js File 3.87 KB 0644
runtime-es5.5c45823b3d3da2bf518f.js File 3.87 KB 0644
runtime-es5.5dce2c04f7db5cb2cad1.js File 3.87 KB 0644
runtime-es5.616040185062dfc4eff5.js File 3.87 KB 0644
runtime-es5.6701aeebd62d36305f1c.js File 3.87 KB 0644
runtime-es5.6b4baecf5553d326bd7e.js File 3.87 KB 0644
runtime-es5.7aa3224eaa27502a1a50.js File 3.87 KB 0644
runtime-es5.7c98b2b02302b6c1e7c0.js File 3.87 KB 0644
runtime-es5.810b8615926918b69851.js File 3.87 KB 0644
runtime-es5.87dbfa2841125263a48f.js File 3.87 KB 0644
runtime-es5.87eb84e2393ddb76f963.js File 3.87 KB 0644
runtime-es5.8921d32a2dc6b4e20465.js File 3.87 KB 0644
runtime-es5.9b084477ab81d3c57444.js File 3.87 KB 0644
runtime-es5.a175c2b320c4c3947604.js File 3.87 KB 0644
runtime-es5.afc8bb32d0c705a0964c.js File 3.87 KB 0644
runtime-es5.b0b33a77d4cb84737c63.js File 3.87 KB 0644
runtime-es5.bdd8973af91197c87a25.js File 3.9 KB 0644
runtime-es5.d5c0c09df8921500a787.js File 3.87 KB 0644
runtime-es5.df55dcdc3ccdca6df96d.js File 3.9 KB 0644
runtime-es5.e31cef0850f0b8b0605e.js File 3.87 KB 0644
runtime-es5.f4b59b8d8af3454077be.js File 3.87 KB 0644
runtime-es5.f5407dc73fe24ad9739e.js File 3.87 KB 0644
runtime-es5.f9e00562d1e14413cab7.js File 3.9 KB 0644
runtime-es5.ff995bd341e381ef51b4.js File 3.87 KB 0644
styles.3dc59ac0532884057f85.css File 104.72 KB 0644
styles.8f9e2b8c25872da663a6.css File 104.75 KB 0644
styles.a334b4e982fa89aecc3a.css File 104.23 KB 0644
styles.dcc2515070ad5f49d7c5.css File 104.21 KB 0644
styles.dfebaaf9229ee500bf40.css File 104.71 KB 0644