(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"0KJs":function(t,e,n){function r(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t}(e=t.exports=n("FXYA")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},e.formatArgs=function(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))})),t.splice(o,0,r)}},e.save=function(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}},e.load=r,e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(r())},"0z79":function(t,e,n){var r=n("AdPF"),i=n("CUme"),o=n("cpc2"),s=n("Yvos"),a=n("NOtv")("engine.io-client:polling-xhr"),l=n("2UHX");function c(){}function u(t){if(i.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var e="https:"===location.protocol,n=location.port;n||(n=e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e}}function h(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function d(){for(var t in h.requests)h.requests.hasOwnProperty(t)&&h.requests[t].abort()}t.exports=u,t.exports.Request=h,s(u,i),u.prototype.supportsBinary=!0,u.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new h(t)},u.prototype.doWrite=function(t,e){var n=this.request({method:"POST",data:t,isBinary:"string"!=typeof t&&void 0!==t}),r=this;n.on("success",e),n.on("error",(function(t){r.onError("xhr post error",t)})),this.sendXhr=n},u.prototype.doPoll=function(){a("xhr poll");var t=this.request(),e=this;t.on("data",(function(t){e.onData(t)})),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t},o(h.prototype),h.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new r(t),n=this;try{a("xhr open %s: %s",this.method,this.uri),e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&e.setRequestHeader(i,this.extraHeaders[i])}catch(o){}if("POST"===this.method)try{e.setRequestHeader("Content-type",this.isBinary?"application/octet-stream":"text/plain;charset=UTF-8")}catch(o){}try{e.setRequestHeader("Accept","*/*")}catch(o){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(o){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof e.status?e.status:0)}),0))},a("xhr data %s",this.data),e.send(this.data)}catch(o){return void setTimeout((function(){n.onError(o)}),0)}"undefined"!=typeof document&&(this.index=h.requestsCount++,h.requests[this.index]=this)},h.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},h.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},h.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},h.prototype.cleanup=function(t){if(null!=this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete h.requests[this.index],this.xhr=null}},h.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(n){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(n){this.onError(n)}null!=t&&this.onData(t)},h.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},h.prototype.abort=function(){this.cleanup()},h.requestsCount=0,h.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",d):"function"==typeof addEventListener&&addEventListener("onpagehide"in l?"pagehide":"unload",d,!1))},1:function(t,e){},"14A5":function(t,e){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function s(t){return t.map((function(t){if(t.buffer instanceof ArrayBuffer){var e=t.buffer;if(t.byteLength!==e.byteLength){var n=new Uint8Array(t.byteLength);n.set(new Uint8Array(e,t.byteOffset,t.byteLength)),e=n.buffer}return e}return t}))}function a(t,e){e=e||{};var r=new n;return s(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function l(t,e){return new Blob(s(t),e||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,l.prototype=Blob.prototype),t.exports=r?i?Blob:l:o?a:void 0},"2Dig":function(t,e){t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},"2UHX":function(t,e){t.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},"2pII":function(t,e,n){var r=n("akSB"),i=n("cpc2"),o=n("NOtv")("engine.io-client:socket"),s=n("7jRU"),a=n("Wm4p"),l=n("Uxeu"),c=n("TypT");function u(t,e){if(!(this instanceof u))return new u(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=l(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=l(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(e.extraHeaders&&Object.keys(e.extraHeaders).length>0&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}t.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=a.protocol,u.Socket=u,u.Transport=n("Gbct"),u.transports=n("akSB"),u.parser=n("Wm4p"),u.prototype.createTransport=function(t){o('creating transport "%s"',t);var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new r[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},u.prototype.open=function(){var t;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},u.prototype.setTransport=function(t){o("setting transport %s",t.name);var e=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",(function(){e.onDrain()})).on("packet",(function(t){e.onPacket(t)})).on("error",(function(t){e.onError(t)})).on("close",(function(){e.onClose("transport close")}))},u.prototype.probe=function(t){o('probing transport "%s"',t);var e=this.createTransport(t,{probe:1}),n=!1,r=this;function i(){r.onlyBinaryUpgrades&&(n=n||!this.supportsBinary&&r.transport.supportsBinary),n||(o('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",(function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',t),r.upgrading=!0,r.emit("upgrading",e),!e)return;u.priorWebsocketSuccess="websocket"===e.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),d(),r.setTransport(e),e.send([{type:"upgrade"}]),r.emit("upgrade",e),e=null,r.upgrading=!1,r.flush())}))}else{o('probe transport "%s" failed',t);var s=new Error("probe error");s.transport=e.name,r.emit("upgradeError",s)}})))}function s(){n||(n=!0,d(),e.close(),e=null)}function a(n){var i=new Error("probe error: "+n);i.transport=e.name,s(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function l(){a("transport closed")}function c(){a("socket closed")}function h(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),s())}function d(){e.removeListener("open",i),e.removeListener("error",a),e.removeListener("close",l),r.removeListener("close",c),r.removeListener("upgrading",h)}u.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",a),e.once("close",l),this.once("close",c),this.once("upgrading",h),e.open()},u.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var t=0,e=this.upgrades.length;t{if("%%"===n)return n;o++;const s=r.formatters[i];return"function"==typeof s&&(n=s.call(e,t[o]),t.splice(o,1),o--),n}),r.formatArgs.call(e,t),(e.log||r.log).apply(e,t)}return s.namespace=t,s.enabled=r.enabled(t),s.useColors=r.useColors(),s.color=e(t),s.destroy=i,s.extend=o,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function i(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function o(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){const t=[...r.names.map(s),...r.skips.map(s).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let e;r.save(t),r.names=[],r.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}},"3Kre":function(t,e,n){"use strict";n.r(e),n.d(e,"factory",(function(){return S})),n.d(e,"getGlobalVars",(function(){return E})),n.d(e,"registerAnalytics",(function(){return k})),n.d(e,"resetGlobalVars",(function(){return C})),n.d(e,"settings",(function(){return x}));var r,i,o,s=n("mrSG"),a=n("wj3C"),l=n.n(a),c=(n("fSjL"),n("q/0M")),u=n("zVF4"),h=n("S+S0"),d="https://www.googletagmanager.com/gtag/js",p=function(t){return t.EVENT="event",t.SET="set",t.CONFIG="config",t}({}),f=function(t){return t.ADD_SHIPPING_INFO="add_shipping_info",t.ADD_PAYMENT_INFO="add_payment_info",t.ADD_TO_CART="add_to_cart",t.ADD_TO_WISHLIST="add_to_wishlist",t.BEGIN_CHECKOUT="begin_checkout",t.CHECKOUT_PROGRESS="checkout_progress",t.EXCEPTION="exception",t.GENERATE_LEAD="generate_lead",t.LOGIN="login",t.PAGE_VIEW="page_view",t.PURCHASE="purchase",t.REFUND="refund",t.REMOVE_FROM_CART="remove_from_cart",t.SCREEN_VIEW="screen_view",t.SEARCH="search",t.SELECT_CONTENT="select_content",t.SELECT_ITEM="select_item",t.SELECT_PROMOTION="select_promotion",t.SET_CHECKOUT_OPTION="set_checkout_option",t.SHARE="share",t.SIGN_UP="sign_up",t.TIMING_COMPLETE="timing_complete",t.VIEW_CART="view_cart",t.VIEW_ITEM="view_item",t.VIEW_ITEM_LIST="view_item_list",t.VIEW_PROMOTION="view_promotion",t.VIEW_SEARCH_RESULTS="view_search_results",t}({}),g=new c.Logger("@firebase/analytics"),m=((r={})["no-ga-id"]='"measurementId" field is empty in Firebase config. Firebase Analytics requires this field to contain a valid measurement ID.',r["already-exists"]="A Firebase Analytics instance with the measurement ID ${id} already exists. Only one Firebase Analytics instance can be created for each measurement ID.",r["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",r["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate",r["indexedDB-unsupported"]="IndexedDB is not supported by current browswer",r["invalid-indexedDB-context"]="Environment doesn't support IndexedDB: {$errorInfo}. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments",r["cookies-not-enabled"]="Cookies are not enabled in this browser environment. Analytics requires cookies to be enabled.",r),v=new u.ErrorFactory("analytics","Analytics",m),b={},y="dataLayer",_="gtag",w=!1;function C(t,e){void 0===t&&(t=!1),void 0===e&&(e={}),w=t,b=e,y="dataLayer",_="gtag"}function E(){return{initializedIdPromisesMap:b}}function x(t){if(w)throw v.create("already-initialized");t.dataLayerName&&(y=t.dataLayerName),t.gtagName&&(_=t.gtagName)}function S(t,e){if(!Object(u.areCookiesEnabled)())throw v.create("cookies-not-enabled");if(!Object(u.isIndexedDBAvailable)())throw v.create("indexedDB-unsupported");Object(u.validateIndexedDBOpenable)().catch((function(t){throw v.create("invalid-indexedDB-context",{errorInfo:t})}));var n=t.options.measurementId;if(!n)throw v.create("no-ga-id");if(null!=b[n])throw v.create("already-exists",{id:n});if(!w){(function(){for(var t=window.document.getElementsByTagName("script"),e=0,n=Object.values(t);e0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===l&&!1===isNaN(t))return e.long?s(a=t,o,"day")||s(a,i,"hour")||s(a,r,"minute")||s(a,n,"second")||a+" ms":function(t){return t>=o?Math.round(t/o)+"d":t>=i?Math.round(t/i)+"h":t>=r?Math.round(t/r)+"m":t>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},"6C75":function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},"6Joi":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n("mrSG"),o=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r,s=n("q/0M"),a=n("zVF4"),l=n("x7I3"),c=n("S+S0"),u=new s.Logger("@firebase/firestore");function h(){return u.logLevel}function d(t){for(var e=[],n=1;ne?1:0}function w(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function C(t){return t+"\0"}var E=function(t,e,n,r,i){this.s=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},x=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"i",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.o=function(t){return _(this.projectId,t.projectId)||_(this.database,t.database)},t}();function S(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function k(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function T(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var I=function(){function t(t,e){this.h=t,this.u=e,this.l={}}return t.prototype.get=function(t){var e=this.h(t),n=this.l[e];if(void 0!==n)for(var r=0,i=n;r=1e9)throw new A(O.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new A(O.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new A(O.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.T=function(t){return this.seconds===t.seconds?_(this.nanoseconds,t.nanoseconds):_(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),P=function(){function t(t){this.timestamp=t}return t.I=function(e){return new t(e)},t.min=function(){return new t(new N(0,0))},t.prototype.o=function(t){return this.timestamp.T(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.m=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.A=function(){return this.timestamp},t}(),D=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&g(),void 0===n?n=t.length-e:n>t.length-e&&g(),this.segments=t,this.offset=e,this.R=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.R},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.P(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.g(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.V=function(t){return this.g(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.p=function(){return this.g(this.segments,this.offset,this.length-1)},t.prototype.v=function(){return this.segments[this.offset]},t.prototype.S=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype._=function(){return 0===this.length},t.prototype.D=function(t){if(t.lengtho)return 1}return t.lengthe.length?1:0},t}(),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.g=function(t,n,r){return new e(t,n,r)},e.prototype.$=function(){return this.F().join("/")},e.prototype.toString=function(){return this.$()},e.N=function(t){if(t.indexOf("//")>=0)throw new A(O.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e.k=function(){return new e([])},e}(D),M=/^[_a-zA-Z][_a-zA-Z0-9]*$/,L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.g=function(t,n,r){return new e(t,n,r)},e.M=function(t){return M.test(t)},e.prototype.$=function(){return this.F().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.M(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.$()},e.prototype.O=function(){return 1===this.length&&"__name__"===this.get(0)},e.L=function(){return new e(["__name__"])},e.q=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new A(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},s=!1;i=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===R.P(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.P=function(t,e){return R.P(t.path,e.path)},t.W=function(t){return t.length%2==0},t.j=function(e){return new t(new R(e.slice()))},t}();function j(t){return null==t}function U(t){return-0===t&&1/t==-1/0}function V(t){return"number"==typeof t&&Number.isInteger(t)&&!U(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var B=function(t,e,n,r,i,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=s,this.K=null};function H(t,e,n,r,i,o,s){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===s&&(s=null),new B(t,e,n,r,i,o,s)}function z(t){var e=v(t);if(null===e.K){var n=e.path.$();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.$()+t.op.toString()+Rt(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return(e=t).field.$()+e.dir;var e})).join(","),j(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=In(e.startAt)),e.endAt&&(n+="|ub:",n+=In(e.endAt)),e.K=n}return e.K}function q(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n._();){var r=this.P(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype._=function(){return this.root._()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.it=function(){return this.root.it()},t.prototype.rt=function(){return this.root.rt()},t.prototype.ot=function(t){return this.root.ot(t)},t.prototype.forEach=function(t){this.ot((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.ot((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.at=function(){return new tt(this.root,null,this.P,!1)},t.prototype.ut=function(t){return new tt(this.root,t,this.P,!1)},t.prototype.ct=function(){return new tt(this.root,null,this.P,!0)},t.prototype.lt=function(t){return new tt(this.root,t,this.P,!0)},t}(),tt=function(){function t(t,e,n,r){this._t=r,this.ft=[];for(var i=1;!t._();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this._t?t.left:t.right;else{if(0===i){this.ft.push(t);break}this.ft.push(t),t=this._t?t.right:t.left}}return t.prototype.dt=function(){var t=this.ft.pop(),e={key:t.key,value:t.value};if(this._t)for(t=t.left;!t._();)this.ft.push(t),t=t.right;else for(t=t.right;!t._();)this.ft.push(t),t=t.left;return e},t.prototype.wt=function(){return this.ft.length>0},t.prototype.Tt=function(){if(0===this.ft.length)return null;var t=this.ft[this.ft.length-1];return{key:t.key,value:t.value}},t}(),et=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype._=function(){return!1},t.prototype.ot=function(t){return this.left.ot(t)||t(this.key,this.value)||this.right.ot(t)},t.prototype.ht=function(t){return this.right.ht(t)||t(this.key,this.value)||this.left.ht(t)},t.prototype.min=function(){return this.left._()?this:this.left.min()},t.prototype.it=function(){return this.min().key},t.prototype.rt=function(){return this.right._()?this.key:this.right.rt()},t.prototype.nt=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.nt(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.nt(t,e,n))).Et()},t.prototype.It=function(){if(this.left._())return t.EMPTY;var e=this;return e.left.At()||e.left.left.At()||(e=e.Rt()),(e=e.copy(null,null,null,e.left.It(),null)).Et()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left._()||i.left.At()||i.left.left.At()||(i=i.Rt()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.At()&&(i=i.Pt()),i.right._()||i.right.At()||i.right.left.At()||(i=i.gt()),0===n(e,i.key)){if(i.right._())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.It())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.Et()},t.prototype.At=function(){return this.color},t.prototype.Et=function(){var t=this;return t.right.At()&&!t.left.At()&&(t=t.Vt()),t.left.At()&&t.left.left.At()&&(t=t.Pt()),t.left.At()&&t.right.At()&&(t=t.yt()),t},t.prototype.Rt=function(){var t=this.yt();return t.right.left.At()&&(t=(t=(t=t.copy(null,null,null,null,t.right.Pt())).Vt()).yt()),t},t.prototype.gt=function(){var t=this.yt();return t.left.left.At()&&(t=(t=t.Pt()).yt()),t},t.prototype.Vt=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.Pt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.yt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.pt=function(){var t=this.bt();return Math.pow(2,t)<=this.size+1},t.prototype.bt=function(){if(this.At()&&this.left.At())throw g();if(this.right.At())throw g();var t=this.left.bt();if(t!==this.right.bt())throw g();return t+(this.At()?0:1)},t}();et.EMPTY=null,et.RED=!0,et.st=!1,et.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw g()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw g()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.nt=function(t,e,n){return new et(t,e)},t.prototype.remove=function(t,e){return this},t.prototype._=function(){return!0},t.prototype.ot=function(t){return!1},t.prototype.ht=function(t){return!1},t.prototype.it=function(){return null},t.prototype.rt=function(){return null},t.prototype.At=function(){return!1},t.prototype.pt=function(){return!0},t.prototype.bt=function(){return 0},t}());var nt=function(){function t(t){this.P=t,this.data=new Z(this.P)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.it()},t.prototype.last=function(){return this.data.rt()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ot((function(e,n){return t(e),!1}))},t.prototype.vt=function(t,e){for(var n=this.data.ut(t[0]);n.wt();){var r=n.dt();if(this.P(r.key,t[1])>=0)return;e(r.key)}},t.prototype.St=function(t,e){var n;for(n=void 0!==e?this.data.ut(e):this.data.at();n.wt();)if(!t(n.dt().key))return},t.prototype.Dt=function(t){var e=this.data.ut(t);return e.wt()?e.dt().key:null},t.prototype.at=function(){return new rt(this.data.at())},t.prototype.ut=function(t){return new rt(this.data.ut(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).nt(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype._=function(){return this.data._()},t.prototype.Ct=function(t){var e=this;return e.size0&&(this.oe=!0,this.ie=t)},t.prototype.ce=function(){var t=ht(),e=ht(),n=ht();return this.se.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:g()}})),new bt(this.ie,this.re,t,e,n)},t.prototype.le=function(){this.oe=!1,this.se=St()},t.prototype._e=function(t,e){this.oe=!0,this.se=this.se.nt(t,e)},t.prototype.fe=function(t){this.oe=!0,this.se=this.se.remove(t)},t.prototype.de=function(){this.ne+=1},t.prototype.we=function(){this.ne-=1},t.prototype.Te=function(){this.oe=!0,this.re=!0},t}(),Et=function(){function t(t){this.Ee=t,this.Ie=new Map,this.me=ot(),this.Ae=xt(),this.Re=new nt(_)}return t.prototype.Pe=function(t){for(var e=0,n=t.Zt;e0?t.targetIds.forEach(e):this.Ie.forEach((function(t,r){n.ve(r)&&e(r)}))},t.prototype.De=function(t){var e=t.targetId,n=t.ee.count,r=this.Ce(e);if(r){var i=r.target;if(W(i))if(0===n){var o=new F(i.path);this.Ve(e,o,new rn(o,P.min()))}else m(1===n);else this.Fe(e)!==n&&(this.Se(e),this.Re=this.Re.add(e))}},t.prototype.$e=function(t){var e=this,n=new Map;this.Ie.forEach((function(r,i){var o=e.Ce(i);if(o){if(r.Ht&&W(o.target)){var s=new F(o.target.path);null!==e.me.get(s)||e.Ne(i,s)||e.Ve(i,s,new rn(s,t))}r.ae&&(n.set(i,r.ce()),r.le())}}));var r=ht();this.Ae.forEach((function(t,n){var i=!0;n.St((function(t){var n=e.Ce(t);return!n||2===n.J||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new vt(t,n,this.Re,this.me,r);return this.me=ot(),this.Ae=xt(),this.Re=new nt(_),i},t.prototype.ge=function(t,e){if(this.ve(t)){var n=this.Ne(t,e.key)?2:0;this.be(t)._e(e.key,n),this.me=this.me.nt(e.key,e),this.Ae=this.Ae.nt(e.key,this.ke(e.key).add(t))}},t.prototype.Ve=function(t,e,n){if(this.ve(t)){var r=this.be(t);this.Ne(t,e)?r._e(e,1):r.fe(e),this.Ae=this.Ae.nt(e,this.ke(e).delete(t)),n&&(this.me=this.me.nt(e,n))}},t.prototype.removeTarget=function(t){this.Ie.delete(t)},t.prototype.Fe=function(t){var e=this.be(t).ce();return this.Ee.xe(t).size+e.Yt.size-e.Xt.size},t.prototype.de=function(t){this.be(t).de()},t.prototype.be=function(t){var e=this.Ie.get(t);return e||(e=new Ct,this.Ie.set(t,e)),e},t.prototype.ke=function(t){var e=this.Ae.get(t);return e||(e=new nt(_),this.Ae=this.Ae.nt(t,e)),e},t.prototype.ve=function(t){var e=null!==this.Ce(t);return e||d("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ce=function(t){var e=this.Ie.get(t);return e&&e.he?null:this.Ee.Me(t)},t.prototype.Se=function(t){var e=this;this.Ie.set(t,new Ct),this.Ee.xe(t).forEach((function(n){e.Ve(t,n,null)}))},t.prototype.Ne=function(t,e){return this.Ee.xe(t).has(e)},t}();function xt(){return new Z(F.P)}function St(){return new Z(F.P)}function kt(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Tt(t){var e=Mt(t.mapValue.fields.__local_write_time__.timestampValue);return new N(e.seconds,e.nanos)}var It=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ot(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?kt(t)?4:10:g()}function At(t,e){var n=Ot(t);if(n!==Ot(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Tt(t).isEqual(Tt(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=Mt(t.timestampValue),r=Mt(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return Ft(t.bytesValue).isEqual(Ft(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return Lt(t.geoPointValue.latitude)===Lt(e.geoPointValue.latitude)&&Lt(t.geoPointValue.longitude)===Lt(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return Lt(t.integerValue)===Lt(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=Lt(t.doubleValue),r=Lt(e.doubleValue);return n===r?U(n)===U(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return w(t.arrayValue.values||[],e.arrayValue.values||[],At);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(S(n)!==S(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!At(n[i],r[i])))return!1;return!0}(t,e);default:return g()}}function Nt(t,e){return void 0!==(t.values||[]).find((function(t){return At(t,e)}))}function Pt(t,e){var n=Ot(t),r=Ot(e);if(n!==r)return _(n,r);switch(n){case 0:return 0;case 1:return _(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=Lt(t.integerValue||t.doubleValue),r=Lt(e.integerValue||e.doubleValue);return nr?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return Dt(t.timestampValue,e.timestampValue);case 4:return Dt(Tt(t),Tt(e));case 5:return _(t.stringValue,e.stringValue);case 6:return function(t,e){var n=Ft(t),r=Ft(e);return n.o(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Gt=function(t,e){this.s=t,this.Oe=e};function $t(t){return{integerValue:""+t}}function Kt(t,e){if(t.Oe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:U(e)?"-0":e}}function Qt(t,e){return V(e)?$t(e):Kt(t,e)}function Xt(t,e){return t.Oe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Yt(t,e){return t.Oe?e.toBase64():e.toUint8Array()}function Jt(t,e){return Xt(t,e.A())}function Zt(t){return m(!!t),P.I(function(t){var e=Mt(t);return new N(e.seconds,e.nanos)}(t))}function te(t,e){return function(t){return new R(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).$()}function ee(t){var e=R.N(t);return m(_e(e)),e}function ne(t,e){return te(t.s,e.path)}function re(t,e){var n=ee(e);return m(n.get(1)===t.s.projectId),m(!n.get(3)&&!t.s.database||n.get(3)===t.s.database),new F(ae(n))}function ie(t,e){return te(t.s,e)}function oe(t){var e=ee(t);return 4===e.length?R.k():ae(e)}function se(t){return new R(["projects",t.s.projectId,"databases",t.s.database]).$()}function ae(t){return m(t.length>4&&"documents"===t.get(4)),t.V(5)}function le(t,e,n){return{name:ne(t,e),fields:n.proto.mapValue.fields}}function ce(t,e){var n;if(e instanceof qe)n={update:le(t,e.key,e.value)};else if(e instanceof Xe)n={delete:ne(t,e.key)};else if(e instanceof We)n={update:le(t,e.key,e.data),updateMask:ye(e.Le)};else if(e instanceof $e)n={transform:{document:ne(t,e.key),fieldTransforms:e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof Se)return{fieldPath:e.field.$(),setToServerValue:"REQUEST_TIME"};if(n instanceof ke)return{fieldPath:e.field.$(),appendMissingElements:{values:n.elements}};if(n instanceof Ie)return{fieldPath:e.field.$(),removeAllFromArray:{values:n.elements}};if(n instanceof Ae)return{fieldPath:e.field.$(),increment:n.qe};throw g()}(0,t)}))}};else{if(!(e instanceof Ye))return g();n={verify:ne(t,e.key)}}return e.Ue.Be||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Jt(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:g()}(t,e.Ue)),n}function ue(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?Le.updateTime(Zt(t.updateTime)):void 0!==t.exists?Le.exists(t.exists):Le.We()}(e.currentDocument):Le.We();if(e.update){var r=re(t,e.update.name),i=new Je({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){return new De((t.fieldPaths||[]).map((function(t){return L.q(t)})))}(e.updateMask);return new We(r,i,o,n)}return new qe(r,i,n)}if(e.delete){var s=re(t,e.delete);return new Xe(s,n)}if(e.transform){var a=re(t,e.transform.document),l=e.transform.fieldTransforms.map((function(e){return function(t,e){var n=null;"setToServerValue"in e?(m("REQUEST_TIME"===e.setToServerValue),n=new Se):"appendMissingElements"in e?n=new ke(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new Ie(e.removeAllFromArray.values||[]):"increment"in e?n=new Ae(t,e.increment):g();var r=L.q(e.fieldPath);return new Re(r,n)}(t,e)}));return m(!0===n.exists),new $e(a,l)}if(e.verify){var c=re(t,e.verify);return new Ye(c,n)}return g()}function he(t,e){return{documents:[ie(t,e.path)]}}function de(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=ie(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=ie(t,r.p()),n.structuredQuery.from=[{collectionId:r.S()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return t instanceof wn?function(t){if("=="===t.op){if(Ht(t.value))return{unaryFilter:{field:ge(t.field),op:"IS_NAN"}};if(Bt(t.value))return{unaryFilter:{field:ge(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:ge(t.field),op:(e=t.op,Wt[e]),value:t.value}};var e}(t):g()}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return{field:ge((e=t).field),direction:(n=e.dir,qt[n])};var e,n}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var s=function(t,e){return t.Oe||j(e)?e:{value:e}}(t,e.limit);return null!==s&&(n.structuredQuery.limit=s),e.startAt&&(n.structuredQuery.startAt=pe(e.startAt)),e.endAt&&(n.structuredQuery.endAt=pe(e.endAt)),n}function pe(t){return{before:t.before,values:t.position}}function fe(t){return new Tn(t.values||[],!!t.before)}function ge(t){return{fieldPath:t.$()}}function me(t){return L.q(t.fieldPath)}function ve(t){return wn.create(me(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return g()}}(t.fieldFilter.op),t.fieldFilter.value)}function be(t){switch(t.unaryFilter.op){case"IS_NAN":var e=me(t.unaryFilter.field);return wn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=me(t.unaryFilter.field);return wn.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return g()}}function ye(t){var e=[];return t.fields.forEach((function(t){return e.push(t.$())})),{fieldPaths:e}}function _e(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var we=function(){this.Qe=void 0};function Ce(t,e,n){return t instanceof Se?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof ke?Te(t,e):t instanceof Ie?Oe(t,e):function(t,e){var n=xe(t,e),r=Ne(n)+Ne(t.qe);return Ut(n)&&Ut(t.qe)?$t(r):Kt(t.serializer,r)}(t,e)}function Ee(t,e,n){return t instanceof ke?Te(t,e):t instanceof Ie?Oe(t,e):n}function xe(t,e){return t instanceof Ae?Ut(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var Se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(we),ke=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return i.__extends(e,t),e}(we);function Te(t,e){for(var n=Pe(e),r=function(t){n.some((function(e){return At(e,t)}))||n.push(t)},i=0,o=t.elements;i0?this.tn[0].field:null},t.prototype.cn=function(){for(var t=0,e=this.filters;t=0)return r.op}return null},t}();function ln(t,e,n,r,i,o,s,a){return new an(t,e,n,r,i,o,s,a)}function cn(t){return new an(t)}function un(t){return null!==t.collectionGroup}function hn(t){var e=sn(t,an);if(null===e.nn){e.nn=[];var n=e.cn(),r=e.un();if(null!==n&&null===r)n.O()||e.nn.push(new Nn(n)),e.nn.push(new Nn(L.L(),"asc"));else{for(var i=!1,o=0,s=e.tn;o0?e.tn[e.tn.length-1].dir:"asc";e.nn.push(new Nn(L.L(),l))}}}return e.nn}function dn(t){var e=sn(t,an);if(!e.sn)if("F"===e.en)e.sn=H(e.path,e.collectionGroup,hn(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=hn(e);r0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return(e=t).field.$()+" ("+e.dir+")";var e})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+In(t.startAt)),t.endAt&&(e+=", endAt: "+In(t.endAt)),"Target("+e+")"}(dn(t))+"; limitType="+t.en+")"}function yn(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.U(t.collectionGroup)&&t.path.D(n):F.W(t.path)?t.path.isEqual(n):t.path.C(n)}(t,e)&&function(t,e){for(var n=0,r=t.tn;n":return t>0;case">=":return t>=0;default:return g()}},e.prototype.ln=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e}((function(){})),Cn=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=F.B(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=F.P(t.key,this.key);return this.fn(e)},e}(wn),En=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return F.B(t.referenceValue)})),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(wn),xn=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return Vt(e)&&Nt(e.arrayValue,this.value)},e}(wn),Sn=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&Nt(this.value.arrayValue,e)},e}(wn),kn=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!Vt(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return Nt(e.value.arrayValue,t)}))},e}(wn),Tn=function(t,e){this.position=t,this.before=e};function In(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return Rt(t)})).join(",")}function On(t,e,n){for(var r=0,i=0;i0&&d("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Rs+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ps=this.Ts.bs(this.Es,i,(function(){return e.gs=Date.now(),t()})),this.Rs*=this.ms,this.Rsthis.As&&(this.Rs=this.As)},t.prototype.vs=function(){null!==this.Ps&&(this.Ps.Ss(),this.Ps=null)},t.prototype.cancel=function(){null!==this.Ps&&(this.Ps.cancel(),this.Ps=null)},t.prototype.ps=function(){return(Math.random()-.5)*this.Rs},t}();function Wn(t){for(var e="",n=0;n0&&(e=$n(e)),e=Gn(t.get(n),e);return $n(e)}function Gn(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return m("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),R.k();for(var n=e-2,r=[],i="",o=0;on)&&g(),t.charAt(s+1)){case"\x01":var a=t.substring(o,s),l=void 0;0===i.length?l=a:(l=i+=a,i=""),r.push(l);break;case"\x10":i+=t.substring(o,s),i+="\0";break;case"\x11":i+=t.substring(o,s+1);break;default:g()}o=s+2}return new R(r)}var Qn=function(){function t(){this.Ds=new Xn}return t.prototype.Cs=function(t,e){return this.Ds.add(e),Ln.resolve()},t.prototype.rs=function(t,e){return Ln.resolve(this.Ds.getEntries(e))},t}(),Xn=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.S(),n=t.p(),r=this.index[e]||new nt(R.P),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.S(),n=t.p(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new nt(R.P)).F()},t}(),Yn=function(){function t(){this.Fs=new Xn}return t.prototype.Cs=function(t,e){var n=this;if(!this.Fs.has(e)){var r=e.S(),i=e.p();t.Un((function(){n.Fs.add(e)}));var o={collectionId:r,parent:Wn(i)};return Jn(t).put(o)}return Ln.resolve()},t.prototype.rs=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[C(e),""],!1,!0);return Jn(t).$s(r).next((function(t){for(var r=0,i=t;r0){m(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var s=[];n.where&&(s=function t(e){return e?void 0!==e.unaryFilter?[be(e)]:void 0!==e.fieldFilter?[ve(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):g():[]}(n.where));var a=[];n.orderBy&&(a=n.orderBy.map((function(t){return new Nn(me((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e})));var l=null;n.limit&&(l=function(t){var e;return j(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=fe(n.startAt));var u=null;return n.endAt&&(u=fe(n.endAt)),dn(ln(e,i,a,s,l,"F",c,u))}(t.query),new Q(e,t.targetId,0,t.lastListenSequenceNumber,r,i,G.fromBase64String(t.resumeToken))}function lr(t,e){var n,r=ir(e.X),i=ir(e.lastLimboFreeSnapshotVersion);n=W(e.target)?he(t.ks,e.target):de(t.ks,e.target);var o=e.resumeToken.toBase64();return new qr(e.targetId,z(e.target),r,o,e.sequenceNumber,i,n)}var cr=function(){function t(t,e){this.serializer=t,this.Kn=e}return t.prototype.Nn=function(t,e,n){return hr(t).put(dr(e),n)},t.prototype.xn=function(t,e){var n=hr(t),r=dr(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.xs(t,r)}))},t.prototype.Mn=function(t,e){var n=this;return hr(t).get(dr(e)).next((function(t){return n.Ms(t)}))},t.prototype.Os=function(t,e){var n=this;return hr(t).get(dr(e)).next((function(t){var e=n.Ms(t);return e?{Ls:e,size:pr(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=st();return this.qs(t,e,(function(t,e){var i=n.Ms(e);r=r.nt(t,i)})).next((function(){return r}))},t.prototype.Bs=function(t,e){var n=this,r=st(),i=new Z(F.P);return this.qs(t,e,(function(t,e){var o=n.Ms(e);o?(r=r.nt(t,o),i=i.nt(t,pr(e))):(r=r.nt(t,null),i=i.nt(t,0))})).next((function(){return{Us:r,Ws:i}}))},t.prototype.qs=function(t,e,n){if(e._())return Ln.resolve();var r=IDBKeyRange.bound(e.first().path.F(),e.last().path.F()),i=e.at(),o=i.dt();return hr(t).Qs({range:r},(function(t,e,r){for(var s=F.j(t);o&&F.P(o,s)<0;)n(o,null),o=i.dt();o&&o.isEqual(s)&&(n(o,e),o=i.wt()?i.dt():null),o?r.js(o.path.F()):r.done()})).next((function(){for(;o;)n(o,null),o=i.wt()?i.dt():null}))},t.prototype.ts=function(t,e,n){var r=this,i=lt(),o=e.path.length+1,s={};if(n.isEqual(P.min())){var a=e.path.F();s.range=IDBKeyRange.lowerBound(a)}else{var l=e.path.F(),c=nr(n);s.range=IDBKeyRange.lowerBound([l,c],!0),s.index=Hr.collectionReadTimeIndex}return hr(t).Qs(s,(function(t,n,s){if(t.length===o){var a=tr(r.serializer,n);e.path.D(a.key.path)?a instanceof nn&&yn(e,a)&&(i=i.nt(a.key,a)):s.done()}})).next((function(){return i}))},t.prototype.Ks=function(t,e){var n=this,r=ot(),i=nr(e),o=hr(t),s=IDBKeyRange.lowerBound(i,!0);return o.Qs({index:Hr.readTimeIndex,range:s},(function(t,e){var o=tr(n.serializer,e);r=r.nt(o.key,o),i=e.readTime})).next((function(){return{Gs:r,readTime:rr(i)}}))},t.prototype.zs=function(t){var e=hr(t),n=P.min();return e.Qs({index:Hr.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=rr(e.readTime)),r.done()})).next((function(){return n}))},t.prototype.Hs=function(e){return new t.Ys(this,!!e&&e.Js)},t.prototype.Xs=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return ur(t).get(zr.key).next((function(t){return m(!!t),t}))},t.prototype.xs=function(t,e){return ur(t).put(zr.key,e)},t.prototype.Ms=function(t){if(t){var e=tr(this.serializer,t);return e instanceof rn&&e.version.isEqual(P.min())?null:e}return null},t}();function ur(t){return wr.Ns(t,zr.store)}function hr(t){return wr.Ns(t,Hr.store)}function dr(t){return t.path.F()}function pr(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw g();e=t.noDocument}return JSON.stringify(e).length}cr.Ys=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Zs=e,r.Js=n,r.ti=new I((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return i.__extends(e,t),e.prototype.qn=function(t){var e=this,n=[],r=0,i=new nt((function(t,e){return _(t.$(),e.$())}));return this.Cn.forEach((function(o,s){var a=e.ti.get(o);if(s){var l=er(e.Zs.serializer,s,e.readTime);i=i.add(o.path.p());var c=pr(l);r+=c-a,n.push(e.Zs.Nn(t,o,l))}else if(r-=a,e.Js){var u=er(e.Zs.serializer,new rn(o,P.min()),e.readTime);n.push(e.Zs.Nn(t,o,u))}else n.push(e.Zs.xn(t,o))})),i.forEach((function(r){n.push(e.Zs.Kn.Cs(t,r))})),n.push(this.Zs.updateMetadata(t,r)),Ln.Sn(n)},e.prototype.On=function(t,e){var n=this;return this.Zs.Os(t,e).next((function(t){return null===t?(n.ti.set(e,0),null):(n.ti.set(e,t.size),t.Ls)}))},e.prototype.Ln=function(t,e){var n=this;return this.Zs.Bs(t,e).next((function(t){var e=t.Us;return t.Ws.forEach((function(t,e){n.ti.set(t,e)})),e}))},e}(Fn);var fr=function(){function t(t){this.ei=t}return t.prototype.next=function(){return this.ei+=2,this.ei},t.ni=function(){return new t(0)},t.si=function(){return new t(-1)},t}(),gr=function(){function t(t,e){this.ii=t,this.serializer=e}return t.prototype.ri=function(t){var e=this;return this.oi(t).next((function(n){var r=new fr(n.highestTargetId);return n.highestTargetId=r.next(),e.hi(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.ai=function(t){return this.oi(t).next((function(t){return P.I(new N(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.ui=function(t){return this.oi(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.ci=function(t,e,n){var r=this;return this.oi(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.A()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.hi(t,i)}))},t.prototype.li=function(t,e){var n=this;return this._i(t,e).next((function(){return n.oi(t).next((function(r){return r.targetCount+=1,n.fi(e,r),n.hi(t,r)}))}))},t.prototype.di=function(t,e){return this._i(t,e)},t.prototype.wi=function(t,e){var n=this;return this.Ti(t,e.targetId).next((function(){return mr(t).delete(e.targetId)})).next((function(){return n.oi(t)})).next((function(e){return m(e.targetCount>0),e.targetCount-=1,n.hi(t,e)}))},t.prototype.Ei=function(t,e,n){var r=this,i=0,o=[];return mr(t).Qs((function(s,a){var l=ar(a);l.sequenceNumber<=e&&null===n.get(l.targetId)&&(i++,o.push(r.wi(t,l)))})).next((function(){return Ln.Sn(o)})).next((function(){return i}))},t.prototype.pe=function(t,e){return mr(t).Qs((function(t,n){var r=ar(n);e(r)}))},t.prototype.oi=function(t){return vr(t).get(Gr.key).next((function(t){return m(null!==t),t}))},t.prototype.hi=function(t,e){return vr(t).put(Gr.key,e)},t.prototype._i=function(t,e){return mr(t).put(lr(this.serializer,e))},t.prototype.fi=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.Ii=function(t){return this.oi(t).next((function(t){return t.targetCount}))},t.prototype.mi=function(t,e){var n=z(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return mr(t).Qs({range:r,index:qr.queryTargetsIndexName},(function(t,n,r){var o=ar(n);q(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.Ai=function(t,e,n){var r=this,i=[],o=br(t);return e.forEach((function(e){var s=Wn(e.path);i.push(o.put(new Wr(n,s))),i.push(r.ii.Ri(t,n,e))})),Ln.Sn(i)},t.prototype.Pi=function(t,e,n){var r=this,i=br(t);return Ln.forEach(e,(function(e){var o=Wn(e.path);return Ln.Sn([i.delete([n,o]),r.ii.gi(t,n,e)])}))},t.prototype.Ti=function(t,e){var n=br(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Vi=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=br(t),i=ht();return r.Qs({range:n,yi:!0},(function(t,e,n){var r=Kn(t[1]),o=new F(r);i=i.add(o)})).next((function(){return i}))},t.prototype.pi=function(t,e){var n=Wn(e.path),r=IDBKeyRange.bound([n],[C(n)],!1,!0),i=0;return br(t).Qs({index:Wr.documentTargetsIndex,yi:!0,range:r},(function(t,e,n){0!==t[0]&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.Me=function(t,e){return mr(t).get(e).next((function(t){return t?ar(t):null}))},t}();function mr(t){return wr.Ns(t,qr.store)}function vr(t){return wr.Ns(t,Gr.store)}function br(t){return wr.Ns(t,Wr.store)}var yr="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",_r=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).bi=e,r.vi=n,r}return i.__extends(e,t),e}(Un),wr=function(){function t(e,n,r,i,o,s,a,l,c,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Ts=o,this.window=s,this.document=a,this.Si=c,this.Di=u,this.Ci=null,this.Fi=!1,this.isPrimary=!1,this.networkEnabled=!0,this.$i=null,this.inForeground=!1,this.Ni=null,this.ki=null,this.xi=Number.NEGATIVE_INFINITY,this.Mi=function(t){return Promise.resolve()},!t.Oi())throw new A(O.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.ii=new xr(this,i),this.Li=n+"main",this.serializer=new Zn(l),this.qi=new gr(this.ii,this.serializer),this.Kn=new Yn,this.Qn=new cr(this.serializer,this.Kn),this.window&&this.window.localStorage?this.Bi=this.window.localStorage:(this.Bi=null,!1===u&&p("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Ns=function(t,e){if(t instanceof _r)return Yr.Ns(t.bi,e);throw g()},t.prototype.start=function(){var t=this;return Yr.Ui(this.Li,Dr,new Rr(this.serializer)).then((function(e){return t.Wi=e,t.Qi()})).then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new A(O.FAILED_PRECONDITION,yr);return t.ji(),t.Ki(),t.Gi(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.qi.ui(e)}))})).then((function(e){t.Ci=new Hn(e,t.Si)})).then((function(){t.Fi=!0})).catch((function(e){return t.Wi&&t.Wi.close(),Promise.reject(e)}))},t.prototype.zi=function(t){var e=this;return this.Mi=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Hi?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.Yi=function(t){var e=this;this.Wi.Ji((function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))},t.prototype.Xi=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Ts.Zi((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Hi?[4,this.Qi()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.Qi=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return Er(e).put(new Qr(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.tr(e).next((function(e){e||(t.isPrimary=!1,t.Ts.er((function(){return t.Mi(!1)})))}))})).next((function(){return t.nr(e)})).next((function(n){return t.isPrimary&&!n?t.sr(e).next((function(){return!1})):!!n&&t.ir(e).next((function(){return!0}))}))})).catch((function(e){if(ti(e))return d("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return d("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Ts.er((function(){return t.Mi(e)})),t.isPrimary=e}))},t.prototype.tr=function(t){var e=this;return Cr(t).get(Lr.key).next((function(t){return Ln.resolve(e.rr(t))}))},t.prototype.or=function(t){return Er(t).delete(this.clientId)},t.prototype.hr=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!this.isPrimary||this.ar(this.xi,18e5)?[3,2]:(this.xi=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var n=t.Ns(e,Qr.store);return n.$s().next((function(t){var e=o.ur(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return Ln.forEach(r,(function(t){return n.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=i.sent(),this.Bi)for(n=0,r=e;nn&&(p("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.ji=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ni=function(){t.Ts.Zi((function(){return t.inForeground="visible"===t.document.visibilityState,t.Qi()}))},this.document.addEventListener("visibilitychange",this.Ni),this.inForeground="visible"===this.document.visibilityState)},t.prototype.wr=function(){this.Ni&&(this.document.removeEventListener("visibilitychange",this.Ni),this.Ni=null)},t.prototype.Ki=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.$i=function(){e.dr(),e.Ts.Zi((function(){return e._r()}))},this.window.addEventListener("unload",this.$i))},t.prototype.Tr=function(){this.$i&&(this.window.removeEventListener("unload",this.$i),this.$i=null)},t.prototype.lr=function(t){var e;try{var n=null!==(null===(e=this.Bi)||void 0===e?void 0:e.getItem(this.cr(t)));return d("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return p("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.dr=function(){if(this.Bi)try{this.Bi.setItem(this.cr(this.clientId),String(Date.now()))}catch(t){p("Failed to set zombie client id.",t)}},t.prototype.Er=function(){if(this.Bi)try{this.Bi.removeItem(this.cr(this.clientId))}catch(t){}},t.prototype.cr=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Cr(t){return wr.Ns(t,Lr.store)}function Er(t){return wr.Ns(t,Qr.store)}var xr=function(){function t(t,e){this.db=t,this.yr=new gi(this,e)}return t.prototype.pr=function(t){var e=this.br(t);return this.db.Rr().Ii(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.br=function(t){var e=0;return this.vr(t,(function(t){e++})).next((function(){return e}))},t.prototype.pe=function(t,e){return this.db.Rr().pe(t,e)},t.prototype.vr=function(t,e){return this.Sr(t,(function(t,n){return e(n)}))},t.prototype.Ri=function(t,e,n){return Sr(t,n)},t.prototype.gi=function(t,e,n){return Sr(t,n)},t.prototype.Ei=function(t,e,n){return this.db.Rr().Ei(t,e,n)},t.prototype.Dr=function(t,e){return Sr(t,e)},t.prototype.Cr=function(t,e){return function(t,e){var n=!1;return Pr(t).Fr((function(r){return Ir(t,r,e).next((function(t){return t&&(n=!0),Ln.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.$r=function(t,e){var n=this,r=this.db.Pr().Hs(),i=[],o=0;return this.Sr(t,(function(s,a){if(a<=e){var l=n.Cr(t,s).next((function(e){if(!e)return o++,r.Mn(t,s).next((function(){return r.xn(s),br(t).delete([0,Wn(s.path)])}))}));i.push(l)}})).next((function(){return Ln.Sn(i)})).next((function(){return r.apply(t)})).next((function(){return o}))},t.prototype.removeTarget=function(t,e){var n=e.Z(t.vi);return this.db.Rr().di(t,n)},t.prototype.Nr=function(t,e){return Sr(t,e)},t.prototype.Sr=function(t,e){var n,r=br(t),i=Hn.ws;return r.Qs({index:Wr.documentTargetsIndex},(function(t,r){var o=r.path,s=r.sequenceNumber;0===t[0]?(i!==Hn.ws&&e(new F(Kn(n)),i),i=s,n=o):i=Hn.ws})).next((function(){i!==Hn.ws&&e(new F(Kn(n)),i)}))},t.prototype.kr=function(t){return this.db.Pr().Xs(t)},t}();function Sr(t,e){return br(t).put(function(t,e){return new Wr(0,Wn(t.path),e)}(e,t.vi))}function kr(t,e){var n=t.projectId;return t.i||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var Tr=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.Kn=n,this.ii=r,this.xr={}}return t.Ar=function(e,n,r,i){return m(""!==e.uid),new t(e.Mr()?e.uid:"",n,r,i)},t.prototype.Or=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Ar(t).Qs({index:jr.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.Lr=function(t,e,n,r){var i=this,o=Nr(t),s=Ar(t);return s.add({}).next((function(a){m("number"==typeof a);for(var l=new Rn(a,e,n,r),c=function(t,e,n){var r=n.baseMutations.map((function(e){return ce(t.ks,e)})),i=n.mutations.map((function(e){return ce(t.ks,e)}));return new jr(e,n.batchId,n.dn.toMillis(),r,i)}(i.serializer,i.userId,l),u=[],h=new nt((function(t,e){return _(t.$(),e.$())})),d=0,p=r;d=r),o=sr(n.serializer,e)),i.done()})).next((function(){return o}))},t.prototype.Wr=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Ar(t).Qs({index:jr.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.Qr=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Ar(t).$s(jr.userMutationsIndex,n).next((function(t){return t.map((function(t){return sr(e.serializer,t)}))}))},t.prototype.zn=function(t,e){var n=this,r=Ur.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Nr(t).Qs({range:i},(function(r,i,s){var a=r[0],l=r[2],c=Kn(r[1]);if(a===n.userId&&e.path.isEqual(c))return Ar(t).get(l).next((function(t){if(!t)throw g();m(t.userId===n.userId),o.push(sr(n.serializer,t))}));s.done()})).next((function(){return o}))},t.prototype.Zn=function(t,e){var n=this,r=new nt(_),i=[];return e.forEach((function(e){var o=Ur.prefixForPath(n.userId,e.path),s=IDBKeyRange.lowerBound(o),a=Nr(t).Qs({range:s},(function(t,i,o){var s=t[0],a=t[2],l=Kn(t[1]);s===n.userId&&e.path.isEqual(l)?r=r.add(a):o.done()}));i.push(a)})),Ln.Sn(i).next((function(){return n.jr(t,r)}))},t.prototype.os=function(t,e){var n=this,r=e.path,i=r.length+1,o=Ur.prefixForPath(this.userId,r),s=IDBKeyRange.lowerBound(o),a=new nt(_);return Nr(t).Qs({range:s},(function(t,e,o){var s=t[0],l=t[2],c=Kn(t[1]);s===n.userId&&r.D(c)?c.length===i&&(a=a.add(l)):o.done()})).next((function(){return n.jr(t,a)}))},t.prototype.jr=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(Ar(t).get(e).next((function(t){if(null===t)throw g();m(t.userId===n.userId),r.push(sr(n.serializer,t))})))})),Ln.Sn(i).next((function(){return r}))},t.prototype.Kr=function(t,e){var n=this;return Or(t.bi,this.userId,e).next((function(r){return t.Un((function(){n.Gr(e.batchId)})),Ln.forEach(r,(function(e){return n.ii.Dr(t,e)}))}))},t.prototype.Gr=function(t){delete this.xr[t]},t.prototype.zr=function(t){var e=this;return this.Or(t).next((function(n){if(!n)return Ln.resolve();var r=IDBKeyRange.lowerBound(Ur.prefixForUser(e.userId)),i=[];return Nr(t).Qs({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Kn(t[1]);i.push(o)}else r.done()})).next((function(){m(0===i.length)}))}))},t.prototype.pi=function(t,e){return Ir(t,this.userId,e)},t.prototype.Hr=function(t){var e=this;return Pr(t).get(this.userId).next((function(t){return t||new Fr(e.userId,-1,"")}))},t}();function Ir(t,e,n){var r=Ur.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),s=!1;return Nr(t).Qs({range:o,yi:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(s=!0),r.done()})).next((function(){return s}))}function Or(t,e,n){var r=t.store(jr.store),i=t.store(Ur.store),o=[],s=IDBKeyRange.only(n.batchId),a=0,l=r.Qs({range:s},(function(t,e,n){return a++,n.delete()}));o.push(l.next((function(){m(1===a)})));for(var c=[],u=0,h=n.mutations;u=0&&r<=Dr);var o=new ei(e);n<1&&r>=1&&(function(t){t.createObjectStore(Lr.store)}(t),function(t){t.createObjectStore(Fr.store,{keyPath:Fr.keyPath}),t.createObjectStore(jr.store,{keyPath:jr.keyPath,autoIncrement:!0}).createIndex(jr.userMutationsIndex,jr.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Ur.store)}(t),Kr(t),function(t){t.createObjectStore(Hr.store)}(t));var s=Ln.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Wr.store),t.deleteObjectStore(qr.store),t.deleteObjectStore(Gr.store)}(t),Kr(t)),s=s.next((function(){return function(t){var e=t.store(Gr.store),n=new Gr(0,0,P.min().A(),0);return e.put(Gr.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(s=s.next((function(){return function(t,e){return e.store(jr.store).$s().next((function(n){t.deleteObjectStore(jr.store),t.createObjectStore(jr.store,{keyPath:jr.keyPath,autoIncrement:!0}).createIndex(jr.userMutationsIndex,jr.userMutationsKeyPath,{unique:!0});var r=e.store(jr.store),i=n.map((function(t){return r.put(t)}));return Ln.Sn(i)}))}(t,o)}))),s=s.next((function(){!function(t){t.createObjectStore(Qr.store,{keyPath:Qr.keyPath})}(t)}))),n<5&&r>=5&&(s=s.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(s=s.next((function(){return function(t){t.createObjectStore(zr.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(s=s.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(s=s.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(s=s.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Hr.store);e.createIndex(Hr.readTimeIndex,Hr.readTimeIndexPath,{unique:!1}),e.createIndex(Hr.collectionReadTimeIndex,Hr.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(s=s.next((function(){return i.rewriteCanonicalIds(o)}))),s},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Hr.store).Qs((function(t,n){e+=pr(n)})).next((function(){var n=new zr(e);return t.store(zr.store).put(zr.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Fr.store),r=t.store(jr.store);return n.$s().next((function(n){return Ln.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.$s(jr.userMutationsIndex,i).next((function(r){return Ln.forEach(r,(function(r){m(r.userId===n.userId);var i=sr(e.serializer,r);return Or(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Wr.store),n=t.store(Hr.store);return t.store(Gr.store).get(Gr.key).next((function(t){var r=[];return n.Qs((function(n,i){var o=new R(n),s=function(t){return[0,Wn(t)]}(o);r.push(e.get(s).next((function(n){return n?Ln.resolve():function(n){return e.put(new Wr(0,Wn(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return Ln.Sn(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore($r.store,{keyPath:$r.keyPath});var n=e.store($r.store),r=new Xn,i=function(t){if(r.add(t)){var e=t.S(),i=t.p();return n.put({collectionId:e,parent:Wn(i)})}};return e.store(Hr.store).Qs({yi:!0},(function(t,e){var n=new R(t);return i(n.p())})).next((function(){return e.store(Ur.store).Qs({yi:!0},(function(t,e){var n=Kn(t[1]);return i(n.p())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(qr.store);return n.Qs((function(t,r){var i=ar(r),o=lr(e.serializer,i);return n.put(o)}))},t}(),Mr=function(t,e){this.seconds=t,this.nanoseconds=e},Lr=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Lr.store="owner",Lr.key="owner";var Fr=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Fr.store="mutationQueues",Fr.keyPath="userId";var jr=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};jr.store="mutations",jr.keyPath="batchId",jr.userMutationsIndex="userMutationsIndex",jr.userMutationsKeyPath=["userId","batchId"];var Ur=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Wn(e)]},t.key=function(t,e,n){return[t,Wn(e),n]},t}();Ur.store="documentMutations",Ur.PLACEHOLDER=new Ur;var Vr=function(t,e){this.path=t,this.readTime=e},Br=function(t,e){this.path=t,this.version=e},Hr=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Hr.store="remoteDocuments",Hr.readTimeIndex="readTimeIndex",Hr.readTimeIndexPath="readTime",Hr.collectionReadTimeIndex="collectionReadTimeIndex",Hr.collectionReadTimeIndexPath=["parentPath","readTime"];var zr=function(t){this.byteSize=t};zr.store="remoteDocumentGlobal",zr.key="remoteDocumentGlobalKey";var qr=function(t,e,n,r,i,o,s){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=s};qr.store="targets",qr.keyPath="targetId",qr.queryTargetsIndexName="queryTargetsIndex",qr.queryTargetsKeyPath=["canonicalId","targetId"];var Wr=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Wr.store="targetDocuments",Wr.keyPath=["targetId","path"],Wr.documentTargetsIndex="documentTargetsIndex",Wr.documentTargetsKeyPath=["path","targetId"];var Gr=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Gr.key="targetGlobalKey",Gr.store="targetGlobal";var $r=function(t,e){this.collectionId=t,this.parent=e};function Kr(t){t.createObjectStore(Wr.store,{keyPath:Wr.keyPath}).createIndex(Wr.documentTargetsIndex,Wr.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(qr.store,{keyPath:qr.keyPath}).createIndex(qr.queryTargetsIndexName,qr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Gr.store)}$r.store="collectionParents",$r.keyPath=["collectionId","parent"];var Qr=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Qr.store="clientMetadata",Qr.keyPath="clientId";var Xr=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Fr.store,jr.store,Ur.store,Hr.store,qr.store,Lr.store,Gr.store,Wr.store],[Qr.store]),[zr.store]),[$r.store]),Yr=function(){function t(e){this.db=e,12.2===t.Yr(a.getUA())&&p("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.Ui=function(e,n,r){return d("SimpleDb","Opening database:",e),new Ln((function(i,o){var s=indexedDB.open(e,n);s.onsuccess=function(e){i(new t(e.target.result))},s.onblocked=function(){o(new A(O.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},s.onerror=function(t){var e=t.target.error;o("VersionError"===e.name?new A(O.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh."):e)},s.onupgradeneeded=function(t){d("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),r.createOrUpgrade(t.target.result,s.transaction,t.oldVersion,Dr).next((function(){d("SimpleDb","Database upgrade to version "+Dr+" complete")}))}})).bn()},t.delete=function(t){return d("SimpleDb","Removing database:",t),ri(window.indexedDB.deleteDatabase(t)).bn()},t.Oi=function(){if("undefined"==typeof indexedDB)return!1;if(t.Jr())return!0;var e=a.getUA(),n=t.Yr(e),r=00||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.Jr=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Zr)},t.Ns=function(t,e){return t.store(e)},t.Yr=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.Xr=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.Ji=function(t){this.db.onversionchange=function(e){return t(e)}},t.prototype.runTransaction=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,l;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===t,o=0,s=function(){var t,s,l,c,u;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=ei.open(a.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),s=n(t).catch((function(e){return t.abort(e),Ln.reject(e)})).bn(),l={},s.catch((function(){})),[4,t.to];case 2:return[2,(l.value=(i.sent(),s),l)];case 3:return d("SimpleDb","Transaction failed with error: %s. Retrying: %s.",(c=i.sent()).message,u="FirebaseError"!==c.name&&o<3),u?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}))},a=this,c.label=1;case 1:return[5,s()];case 2:if("object"==typeof(l=c.sent()))return[2,l.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),Jr=function(){function t(t){this.eo=t,this.no=!1,this.so=null}return Object.defineProperty(t.prototype,"gn",{get:function(){return this.no},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"io",{get:function(){return this.so},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.eo=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.no=!0},t.prototype.js=function(t){this.so=t},t.prototype.delete=function(){return ri(this.eo.delete())},t}(),Zr=function(t){function e(e){var n=this;return(n=t.call(this,O.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(A);function ti(t){return"IndexedDbTransactionError"===t.name}var ei=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.ro=new zn,this.transaction.oncomplete=function(){e.ro.resolve()},this.transaction.onabort=function(){t.error?e.ro.reject(new Zr(t.error)):e.ro.resolve()},this.transaction.onerror=function(t){var n=oi(t.target.error);e.ro.reject(new Zr(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"to",{get:function(){return this.ro.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ro.reject(t),this.aborted||(d("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new ni(e)},t}(),ni=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(d("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(d("SimpleDb","PUT",this.store.name,"",t),n=this.store.put(t)),ri(n)},t.prototype.add=function(t){return d("SimpleDb","ADD",this.store.name,t,t),ri(this.store.add(t))},t.prototype.get=function(t){var e=this;return ri(this.store.get(t)).next((function(n){return void 0===n&&(n=null),d("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return d("SimpleDb","DELETE",this.store.name,t),ri(this.store.delete(t))},t.prototype.count=function(){return d("SimpleDb","COUNT",this.store.name),ri(this.store.count())},t.prototype.$s=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.oo(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.ho=function(t,e){d("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.yi=!1;var r=this.cursor(n);return this.oo(r,(function(t,e,n){return n.delete()}))},t.prototype.Qs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.oo(r,e)},t.prototype.Fr=function(t){var e=this.cursor({});return new Ln((function(n,r){e.onerror=function(t){var e=oi(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.oo=function(t,e){var n=[];return new Ln((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new Jr(i),s=e(i.primaryKey,i.value,o);if(s instanceof Ln){var a=s.catch((function(t){return o.done(),Ln.reject(t)}));n.push(a)}o.gn?r():null===o.io?i.continue():i.continue(o.io)}else r()}})).next((function(){return Ln.Sn(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.yi?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function ri(t){return new Ln((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=oi(t.target.error);n(e)}}))}var ii=!1;function oi(t){var e=Yr.Yr(a.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new A("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return ii||(ii=!0,setTimeout((function(){throw r}),0)),r}}return t}function si(){return"undefined"!=typeof window?window:null}var ai=function(){function t(t,e,n,r,i){this.ao=t,this.Es=e,this.uo=n,this.op=r,this.co=i,this.lo=new zn,this.then=this.lo.promise.then.bind(this.lo.promise),this.lo.promise.catch((function(t){}))}return t._o=function(e,n,r,i,o){var s=new t(e,n,Date.now()+r,i,o);return s.start(r),s},t.prototype.start=function(t){var e=this;this.fo=setTimeout((function(){return e.do()}),t)},t.prototype.Ss=function(){return this.do()},t.prototype.cancel=function(t){null!==this.fo&&(this.clearTimeout(),this.lo.reject(new A(O.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.do=function(){var t=this;this.ao.Zi((function(){return null!==t.fo?(t.clearTimeout(),t.op().then((function(e){return t.lo.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.fo&&(this.co(this),clearTimeout(this.fo),this.fo=null)},t}(),li=function(){function t(){var t=this;this.wo=Promise.resolve(),this.To=[],this.Eo=!1,this.Io=[],this.mo=null,this.Ao=!1,this.Ro=[],this.Po=new qn(this,"async_queue_retry"),this.Vo=function(){return t.Po.vs()};var e=si();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Vo)}return Object.defineProperty(t.prototype,"yo",{get:function(){return this.Eo},enumerable:!1,configurable:!0}),t.prototype.Zi=function(t){this.enqueue(t)},t.prototype.po=function(t){this.bo(),this.vo(t)},t.prototype.So=function(t){return this.bo(),this.vo(t)},t.prototype.Do=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.bo(),this.Eo?[3,2]:(this.Eo=!0,(e=si())&&e.removeEventListener("visibilitychange",this.Vo),[4,this.So(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.enqueue=function(t){return this.bo(),this.Eo?new Promise((function(t){})):this.vo(t)},t.prototype.er=function(t){var e=this;this.To.push(t),this.Zi((function(){return e.Co()}))},t.prototype.Co=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(0===this.To.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.To[0]()];case 2:return n.sent(),this.To.shift(),this.Po.reset(),[3,4];case 3:if(!ti(t=n.sent()))throw t;return d("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.To.length>0&&this.Po.ys((function(){return e.Co()})),n.label=5;case 5:return[2]}}))}))},t.prototype.vo=function(t){var e=this,n=this.wo.then((function(){return e.Ao=!0,t().catch((function(t){throw e.mo=t,e.Ao=!1,p("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.Ao=!1,t}))}));return this.wo=n,n},t.prototype.bs=function(t,e,n){var r=this;this.bo(),this.Ro.indexOf(t)>-1&&(e=0);var i=ai._o(this,t,e,n,(function(t){return r.Fo(t)}));return this.Io.push(i),i},t.prototype.bo=function(){this.mo&&g()},t.prototype.$o=function(){},t.prototype.No=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.wo];case 1:e.sent(),e.label=2;case 2:if(t!==this.wo)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.ko=function(t){for(var e=0,n=this.Io;eu.params.zo?(d("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+u.params.zo+" from "+e),r=u.params.zo):r=e,o=Date.now(),u.uh(t,r)})).next((function(r){return n=r,a=Date.now(),u.Ei(t,n,e)})).next((function(e){return i=e,l=Date.now(),u.$r(t,n)})).next((function(t){return c=Date.now(),h()<=s.LogLevel.DEBUG&&d("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-p)+"ms\n\tDetermined least recently used "+r+" in "+(a-o)+"ms\n\tRemoved "+i+" targets in "+(l-a)+"ms\n\tRemoved "+t+" documents in "+(c-l)+"ms\nTotal Duration: "+(c-p)+"ms"),Ln.resolve({Uo:!0,Wo:r,Qo:i,jo:t})}))},t}(),mi=function(){function t(t,e,n){this.persistence=t,this.fh=e,this.dh=new Z(_),this.wh=new I((function(t){return z(t)}),q),this.Th=P.min(),this.jn=t.mr(n),this.Eh=t.Pr(),this.qi=t.Rr(),this.Ih=new Vn(this.Eh,this.jn,this.persistence.gr()),this.fh.mh(this.Ih)}return t.prototype.Ah=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.jn,n=this.Ih,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.jn.Qr(r).next((function(s){return i=s,e=o.persistence.mr(t),n=new Vn(o.Eh,e,o.persistence.gr()),e.Qr(r)})).next((function(t){for(var e=[],o=[],s=ht(),a=0,l=i;a0){var u=l.tt(c,r).Z(o.vi);i=i.nt(s,u),t.Sh(l,u,e)&&a.push(n.qi.di(o,u))}}}));var l=ot(),c=ht();if(e.jt.forEach((function(t,e){c=c.add(t)})),a.push(s.getEntries(o,c).next((function(t){e.jt.forEach((function(i,c){var u=t.get(i);c instanceof rn&&c.version.isEqual(P.min())?(s.xn(i,r),l=l.nt(i,c)):null==u||c.version.o(u.version)>0||0===c.version.o(u.version)&&u.hasPendingWrites?(s.Nn(c,r),l=l.nt(i,c)):d("LocalStore","Ignoring outdated watch update for ",i,". Current version:",u.version," Watch version:",c.version),e.Kt.has(i)&&a.push(n.persistence.ii.Nr(o,i))}))}))),!r.isEqual(P.min())){var u=n.qi.ai(o).next((function(t){return n.qi.ci(o,o.vi,r)}));a.push(u)}return Ln.Sn(a).next((function(){return s.apply(o)})).next((function(){return n.Ih.Xn(o,l)}))})).then((function(t){return n.dh=i,t}))},t.Sh=function(t,e,n){return m(e.resumeToken.H()>0),0===t.resumeToken.H()||e.X.m()-t.X.m()>=this.Dh||n.Yt.size+n.Jt.size+n.Xt.size>0},t.prototype.Ch=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,s,a,l,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return Ln.forEach(t,(function(t){return Ln.forEach(t.as,(function(n){return c.persistence.ii.Ri(e,t.targetId,n)})).next((function(){return Ln.forEach(t.us,(function(n){return c.persistence.ii.gi(e,t.targetId,n)}))}))}))}))];case 1:return i.sent(),[3,3];case 2:if(!ti(e=i.sent()))throw e;return d("LocalStore","Failed to update sequence numbers: "+e),[3,3];case 3:for(n=0,r=t;n0)&&(e.dh=e.dh.nt(n.targetId,n),e.wh.set(t,n.targetId)),n}))},t.prototype.mi=function(t,e){var n=this.wh.get(e);return void 0!==n?Ln.resolve(this.dh.get(n)):this.qi.mi(t,e)},t.prototype.kh=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s=this;return i.__generator(this,(function(i){switch(i.label){case 0:n=this.dh.get(t),r=e?"readwrite":"readwrite-primary",i.label=1;case 1:return i.trys.push([1,4,,5]),e?[3,3]:[4,this.persistence.runTransaction("Release target",r,(function(t){return s.persistence.ii.removeTarget(t,n)}))];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:if(!ti(o=i.sent()))throw o;return d("LocalStore","Failed to update sequence numbers for target "+t+": "+o),[3,5];case 5:return this.dh=this.dh.remove(t),this.wh.delete(n.target),[2]}}))}))},t.prototype.xh=function(t,e){var n=this,r=P.min(),i=ht();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.mi(o,dn(t)).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.qi.Vi(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.fh.ts(o,t,e?r:P.min(),e?i:ht())})).next((function(t){return{documents:t,Mh:i}}))}))},t.prototype.ph=function(t,e,n){var r=this,i=e.batch,o=i.keys(),s=Ln.resolve();return o.forEach((function(r){s=s.next((function(){return n.Mn(t,r)})).next((function(t){var o=t,s=e.An.get(r);m(null!==s),(!o||o.version.o(s)<0)&&(o=i.wn(r,o,e))&&n.Nn(o,e.mn)}))})),s.next((function(){return r.jn.Kr(t,i)}))},t.prototype.oh=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.lh(n,e.dh)}))},t}();function vi(t,e,n){return new mi(t,e,n)}function bi(t,e){var n=v(t),r=v(n.qi),i=n.dh.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.Me(t,e).next((function(t){return t?t.target:null}))}))}function yi(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==O.FAILED_PRECONDITION||t.message!==jn)throw t;return d("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}mi.Dh=3e8;var _i=function(){function t(){this.Oh=new nt(wi.Lh),this.qh=new nt(wi.Bh)}return t.prototype._=function(){return this.Oh._()},t.prototype.Ri=function(t,e){var n=new wi(t,e);this.Oh=this.Oh.add(n),this.qh=this.qh.add(n)},t.prototype.Uh=function(t,e){var n=this;t.forEach((function(t){return n.Ri(t,e)}))},t.prototype.gi=function(t,e){this.Wh(new wi(t,e))},t.prototype.Qh=function(t,e){var n=this;t.forEach((function(t){return n.gi(t,e)}))},t.prototype.jh=function(t){var e=this,n=new F(new R([])),r=new wi(n,t),i=new wi(n,t+1),o=[];return this.qh.vt([r,i],(function(t){e.Wh(t),o.push(t.key)})),o},t.prototype.Kh=function(){var t=this;this.Oh.forEach((function(e){return t.Wh(e)}))},t.prototype.Wh=function(t){this.Oh=this.Oh.delete(t),this.qh=this.qh.delete(t)},t.prototype.Gh=function(t){var e=new F(new R([])),n=new wi(e,t),r=new wi(e,t+1),i=ht();return this.qh.vt([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.pi=function(t){var e=new wi(t,0),n=this.Oh.Dt(e);return null!==n&&t.isEqual(n.key)},t}(),wi=function(){function t(t,e){this.key=t,this.zh=e}return t.Lh=function(t,e){return F.P(t.key,e.key)||_(t.zh,e.zh)},t.Bh=function(t,e){return _(t.zh,e.zh)||F.P(t.key,e.key)},t}();function Ci(t,e){if(0!==e.length)throw new A(O.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+Vi(e.length,"argument")+".")}function Ei(t,e,n){if(e.length!==n)throw new A(O.INVALID_ARGUMENT,"Function "+t+"() requires "+Vi(n,"argument")+", but was called with "+Vi(e.length,"argument")+".")}function xi(t,e,n){if(e.lengthr)throw new A(O.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+Vi(e.length,"argument")+".")}function ki(t,e,n,r){Pi(t,e,Ui(n)+" argument",r)}function Ti(t,e,n,r){void 0!==r&&ki(t,e,n,r)}function Ii(t,e,n,r){Pi(t,e,n+" option",r)}function Oi(t,e,n,r){void 0!==r&&Ii(t,e,n,r)}function Ai(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],s=0,a=i;s20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":g()}function Mi(t,e,n){if(void 0===n)throw new A(O.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Ui(e)+" argument, but it was undefined.")}function Li(t,e,n){k(e,(function(e,r){if(n.indexOf(e)<0)throw new A(O.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function Fi(t,e,n,r){var i=Ri(r);return new A(O.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ui(n)+" argument to be a "+e+", but it was: "+i)}function ji(t,e,n){if(n<=0)throw new A(O.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ui(e)+" argument to be a positive number, but it was: "+n+".")}function Ui(t){switch(t){case 1:return"first";case 2:return"second";case 3:return"third";default:return t+"th"}}function Vi(t,e){return t+" "+e+(1===t?"":"s")}function Bi(){if("undefined"==typeof Uint8Array)throw new A(O.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Hi(){if("undefined"==typeof atob)throw new A(O.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var zi=function(){function t(t){Hi(),this.Hh=t}return t.fromBase64String=function(e){Ei("Blob.fromBase64String",arguments,1),ki("Blob.fromBase64String","string",1,e),Hi();try{return new t(G.fromBase64String(e))}catch(e){throw new A(O.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(Ei("Blob.fromUint8Array",arguments,1),Bi(),!(e instanceof Uint8Array))throw Fi("Blob.fromUint8Array","Uint8Array",1,e);return new t(G.fromUint8Array(e))},t.prototype.toBase64=function(){return Ei("Blob.toBase64",arguments,0),Hi(),this.Hh.toBase64()},t.prototype.toUint8Array=function(){return Ei("Blob.toUint8Array",arguments,0),Bi(),this.Hh.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.Hh.isEqual(t.Hh)},t}(),qi=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new A(O.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Vi(1,"element")+".")}(0,t);for(var e=0;e90)throw new A(O.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new A(O.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.oa=t,this.ha=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.oa},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.ha},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.oa===t.oa&&this.ha===t.ha},t.prototype.T=function(t){return _(this.oa,t.oa)||_(this.ha,t.ha)},t}();function ro(t){return new Gt(t,!0)}var io=/^__.*__$/,oo=function(t,e,n){this.aa=t,this.ua=e,this.ca=n},so=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.la=function(t,e){var n=[];return n.push(null!==this.Le?new We(t,this.data,this.Le,e):new qe(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new $e(t,this.fieldTransforms)),n},t}(),ao=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.la=function(t,e){var n=[new We(t,this.data,this.Le,e)];return this.fieldTransforms.length>0&&n.push(new $e(t,this.fieldTransforms)),n},t}();function lo(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw g()}}var co=function(){function t(t,e,n,r,i,o){this.settings=t,this.s=e,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this._a(),this.fieldTransforms=i||[],this.Le=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ta",{get:function(){return this.settings.ta},enumerable:!1,configurable:!0}),t.prototype.fa=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.s,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.Le)},t.prototype.da=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.fa({path:n,sa:!1});return r.wa(t),r},t.prototype.Ta=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.fa({path:n,sa:!1});return r._a(),r},t.prototype.Ea=function(t){return this.fa({path:void 0,sa:!0})},t.prototype.ea=function(t){return Co(t,this.settings.methodName,this.settings.Ia||!1,this.path,this.settings.na)},t.prototype.contains=function(t){return void 0!==this.Le.find((function(e){return t.D(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.D(e.field)}))},t.prototype._a=function(){if(this.path)for(var t=0;t=0;--d)if(!Eo(u,a[d])){var p=a[d],f=l[d],g=s.Ta(p);if(f instanceof $i&&f.Jh instanceof Ki)u.push(p);else{var m=mo(f,g);null!=m&&(u.push(p),h.set(p,m))}}var v=new De(u);return new ao(h.Ge(),v,s.fieldTransforms)}function go(t,e,n,r){return void 0===r&&(r=!1),mo(n,t.ma(r?4:3,e))}function mo(t,e){if(bo(t))return yo("Unsupported field value:",e,t),vo(t,e);if(t instanceof $i)return function(t,e){if(!lo(e.ta))throw e.ea(t.Xh+"() can only be used with update() and set()");if(!e.path)throw e.ea(t.Xh+"() is not currently supported inside arrays");var n=t.Zh(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Le.push(e.path),t instanceof Array){if(e.settings.sa&&4!==e.ta)throw e.ea("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i0&&e.Le.push(e.path):k(t,(function(t,r){var i=mo(r,e.da(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function bo(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof N||t instanceof no||t instanceof zi||t instanceof oo||t instanceof $i)}function yo(t,e,n){if(!bo(n)||!Di(n)){var r=Ri(n);throw e.ea("an object"===r?t+" a custom object":t+" "+r)}}function _o(t,e,n){if(e instanceof qi)return e.Yh;if("string"==typeof e)return wo(t,e);throw Co("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function wo(t,e,n){try{return function(t){if(t.search(Gi)>=0)throw new A(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Wi.bind.apply(Wi,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new A(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).Yh}catch(e){throw Co((r=e)instanceof Error?r.message:r.toString(),t,!1,void 0,n)}var r}function Co(t,e,n,r,i){var o=r&&!r._(),s=void 0!==i,a="Function "+e+"() called with invalid data";n&&(a+=" (via `toFirestore()`)");var l="";return(o||s)&&(l+=" (found",o&&(l+=" in field "+r),s&&(l+=" in document "+i),l+=")"),new A(O.INVALID_ARGUMENT,(a+=". ")+t+l)}function Eo(t,e){return t.some((function(t){return t.isEqual(e)}))}var xo=function(){function t(t){this.uid=t}return t.prototype.Mr=function(){return null!=this.uid},t.prototype.Aa=function(){return this.Mr()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();xo.UNAUTHENTICATED=new xo(null),xo.Ra=new xo("google-credentials-uid"),xo.Pa=new xo("first-party-uid");var So=function(t,e){this.user=e,this.type="OAuth",this.ga={},this.ga.Authorization="Bearer "+t},ko=function(){function t(){this.Va=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.ya=function(){},t.prototype.pa=function(t){this.Va=t,t(xo.UNAUTHENTICATED)},t.prototype.ba=function(){this.Va=null},t}(),To=function(){function t(t){var e=this;this.va=null,this.currentUser=xo.UNAUTHENTICATED,this.Sa=!1,this.Da=0,this.Va=null,this.forceRefresh=!1,this.va=function(){e.Da++,e.currentUser=e.Ca(),e.Sa=!0,e.Va&&e.Va(e.currentUser)},this.Da=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.va):(this.va(null),t.get().then((function(t){e.auth=t,e.va&&e.auth.addAuthTokenListener(e.va)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.Da,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.Da!==e?(d("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(m("string"==typeof n.accessToken),new So(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.ya=function(){this.forceRefresh=!0},t.prototype.pa=function(t){this.Va=t,this.Sa&&t(this.currentUser)},t.prototype.ba=function(){this.auth&&this.auth.removeAuthTokenListener(this.va),this.va=null,this.Va=null},t.prototype.Ca=function(){var t=this.auth&&this.auth.getUid();return m(null===t||"string"==typeof t),new xo(t)},t}(),Io=function(){function t(t,e){this.Fa=t,this.$a=e,this.type="FirstParty",this.user=xo.Pa}return Object.defineProperty(t.prototype,"ga",{get:function(){var t={"X-Goog-AuthUser":this.$a},e=this.Fa.auth.Na([]);return e&&(t.Authorization=e),t},enumerable:!1,configurable:!0}),t}(),Oo=function(){function t(t,e){this.Fa=t,this.$a=e}return t.prototype.getToken=function(){return Promise.resolve(new Io(this.Fa,this.$a))},t.prototype.pa=function(t){t(xo.Pa)},t.prototype.ba=function(){},t.prototype.ya=function(){},t}(),Ao=function(){function t(t,e,n,r,i,o){this.Ts=t,this.ka=n,this.xa=r,this.Ma=i,this.listener=o,this.state=0,this.Oa=0,this.La=null,this.stream=null,this.Po=new qn(t,e)}return t.prototype.qa=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.Ba=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Ua()},t.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.qa()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.Wa=function(){this.state=0,this.Po.reset()},t.prototype.Qa=function(){var t=this;this.Ba()&&null===this.La&&(this.La=this.Ts.bs(this.ka,6e4,(function(){return t.ja()})))},t.prototype.Ka=function(t){this.Ga(),this.stream.send(t)},t.prototype.ja=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Ba()?[2,this.close(0)]:[2]}))}))},t.prototype.Ga=function(){this.La&&(this.La.cancel(),this.La=null)},t.prototype.close=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.Ga(),this.Po.cancel(),this.Oa++,3!==t?this.Po.reset():e&&e.code===O.RESOURCE_EXHAUSTED?(p(e.toString()),p("Using maximum backoff delay to prevent overloading the backend."),this.Po.Vs()):e&&e.code===O.UNAUTHENTICATED&&this.Ma.ya(),null!==this.stream&&(this.za(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ha(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.za=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Ya(this.Oa),n=this.Oa;this.Ma.getToken().then((function(e){t.Oa===n&&t.Ja(e)}),(function(n){e((function(){var e=new A(O.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Xa(e)}))}))},t.prototype.Ja=function(t){var e=this,n=this.Ya(this.Oa);this.stream=this.Za(t),this.stream.tu((function(){n((function(){return e.state=2,e.listener.tu()}))})),this.stream.Ha((function(t){n((function(){return e.Xa(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Ua=function(){var t=this;this.state=4,this.Po.ys((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.Xa=function(t){return d("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Ya=function(t){var e=this;return function(n){e.Ts.Zi((function(){return e.Oa===t?n():(d("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),No=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,s}return i.__extends(e,t),e.prototype.Za=function(t){return this.xa.eu("Listen",t)},e.prototype.onMessage=function(t){this.Po.reset();var e=function(t,e){var n;if("targetChange"in e){var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:g()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Oe?(m(void 0===e||"string"==typeof e),G.fromBase64String(e||"")):(m(void 0===e||e instanceof Uint8Array),G.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(t){var e=void 0===t.code?O.UNKNOWN:J(t.code);return new A(e,t.message||"")}(s);n=new wt(r,i,o,a||null)}else if("documentChange"in e){var l=e.documentChange,c=re(t,l.document.name),u=Zt(l.document.updateTime),h=new Je({mapValue:{fields:l.document.fields}}),d=new nn(c,u,h,{});n=new yt(l.targetIds||[],l.removedTargetIds||[],d.key,d)}else if("documentDelete"in e){var p=e.documentDelete,f=re(t,p.document),v=p.readTime?Zt(p.readTime):P.min(),b=new rn(f,v);n=new yt([],p.removedTargetIds||[],b.key,b)}else if("documentRemove"in e){var y=e.documentRemove,_=re(t,y.document);n=new yt([],y.removedTargetIds||[],_,null)}else{if(!("filter"in e))return g();var w=e.filter,C=new X(w.count||0);n=new _t(w.targetId,C)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return P.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?P.min():e.readTime?Zt(e.readTime):P.min()}(t);return this.listener.nu(e,n)},e.prototype.su=function(t){var e={};e.database=se(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=W(r)?{documents:he(t,r)}:{query:de(t,r)}).targetId=e.targetId,e.resumeToken.H()>0&&(n.resumeToken=Yt(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return g()}}(0,e.J);return null==n?null:{"goog-listen-tags":n}}(0,t);n&&(e.labels=n),this.Ka(e)},e.prototype.iu=function(t){var e={};e.database=se(this.serializer),e.removeTarget=t,this.Ka(e)},e}(Ao),Po=function(t){function e(e,n,r,i,o){var s=this;return(s=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,s.ru=!1,s}return i.__extends(e,t),Object.defineProperty(e.prototype,"ou",{get:function(){return this.ru},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.ru=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.za=function(){this.ru&&this.hu([])},e.prototype.Za=function(t){return this.xa.eu("Write",t)},e.prototype.onMessage=function(t){if(m(!!t.streamToken),this.lastStreamToken=t.streamToken,this.ru){this.Po.reset();var e=function(t,e){return t&&t.length>0?(m(void 0!==e),t.map((function(t){return function(t,e){var n=Zt(t.updateTime?t.updateTime:e);n.isEqual(P.min())&&(n=Zt(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new Me(n,r)}(t,e)}))):[]}(t.writeResults,t.commitTime),n=Zt(t.commitTime);return this.listener.au(n,e)}return m(!t.writeResults||0===t.writeResults.length),this.ru=!0,this.listener.uu()},e.prototype.cu=function(){var t={};t.database=se(this.serializer),this.Ka(t)},e.prototype.hu=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return ce(e.serializer,t)}))};this.Ka(n)},e}(Ao),Do=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).credentials=e,r.serializer=n,r.lu=!1,r}return i.__extends(e,t),e.prototype._u=function(){if(this.lu)throw new A(O.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.start=function(t){this.xa=t},e.prototype.fu=function(t,e){var n=this;return this._u(),this.credentials.getToken().then((function(r){return n.xa.fu(t,e,r)})).catch((function(t){throw t.code===O.UNAUTHENTICATED&&n.credentials.ya(),t}))},e.prototype.du=function(t,e){var n=this;return this._u(),this.credentials.getToken().then((function(r){return n.xa.du(t,e,r)})).catch((function(t){throw t.code===O.UNAUTHENTICATED&&n.credentials.ya(),t}))},e}((function(){})),Ro=function(){function t(t){this.wu=t,this.Tu=new Map,this.mutations=[],this.Eu=!1,this.Iu=null,this.mu=new Set}return t.prototype.Au=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.Ru(),this.mutations.length>0)throw new A(O.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a;return i.__generator(this,(function(i){switch(i.label){case 0:return n=v(t),r={database:se(n.serializer),documents:e.map((function(t){return ne(n.serializer,t)}))},[4,n.du("BatchGetDocuments",r)];case 1:return o=i.sent(),s=new Map,o.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){m(!!e.found);var n=re(t,e.found.name),r=Zt(e.found.updateTime),i=new Je({mapValue:{fields:e.found.fields}});return new nn(n,r,i,{})}(t,e):"missing"in e?function(t,e){m(!!e.missing),m(!!e.readTime);var n=re(t,e.missing),r=Zt(e.readTime);return new rn(n,r)}(t,e):g()}(n.serializer,t);s.set(e.key.toString(),e)})),a=[],[2,(e.forEach((function(t){var e=s.get(t.toString());m(!!e),a.push(e)})),a)]}}))}))}(this.wu,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof rn||t instanceof nn?n.Pu(t):g()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.la(t,this.Ue(t))),this.mu.add(t)},t.prototype.update=function(t,e){try{this.write(e.la(t,this.gu(t)))}catch(t){this.Iu=t}this.mu.add(t)},t.prototype.delete=function(t){this.write([new Xe(t,this.Ue(t))]),this.mu.add(t)},t.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.Ru(),this.Iu)throw this.Iu;return t=this.Tu,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=new F(R.N(n));e.mutations.push(new Ye(r,e.Ue(r)))})),[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return n=v(t),r={database:se(n.serializer),writes:e.map((function(t){return ce(n.serializer,t)}))},[4,n.fu("Commit",r)];case 1:return i.sent(),[2]}}))}))}(this.wu,this.mutations)];case 1:return n.sent(),this.Eu=!0,[2]}}))}))},t.prototype.Pu=function(t){var e;if(t instanceof nn)e=t.version;else{if(!(t instanceof rn))throw g();e=P.min()}var n=this.Tu.get(t.key.toString());if(n){if(!e.isEqual(n))throw new A(O.ABORTED,"Document version changed between two reads.")}else this.Tu.set(t.key.toString(),e)},t.prototype.Ue=function(t){var e=this.Tu.get(t.toString());return!this.mu.has(t)&&e?Le.updateTime(e):Le.We()},t.prototype.gu=function(t){var e=this.Tu.get(t.toString());if(!this.mu.has(t)&&e){if(e.isEqual(P.min()))throw new A(O.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Le.updateTime(e)}return Le.exists(!0)},t.prototype.write=function(t){this.Ru(),this.mutations=this.mutations.concat(t)},t.prototype.Ru=function(){},t}(),Mo=function(){function t(t,e){this.ao=t,this.Vu=e,this.state="Unknown",this.yu=0,this.pu=null,this.bu=!0}return t.prototype.vu=function(){var t=this;0===this.yu&&(this.Su("Unknown"),this.pu=this.ao.bs("online_state_timeout",1e4,(function(){return t.pu=null,t.Du("Backend didn't respond within 10 seconds."),t.Su("Offline"),Promise.resolve()})))},t.prototype.Cu=function(t){"Online"===this.state?this.Su("Unknown"):(this.yu++,this.yu>=1&&(this.Fu(),this.Du("Connection failed 1 times. Most recent error: "+t.toString()),this.Su("Offline")))},t.prototype.set=function(t){this.Fu(),this.yu=0,"Online"===t&&(this.bu=!1),this.Su(t)},t.prototype.Su=function(t){t!==this.state&&(this.state=t,this.Vu(t))},t.prototype.Du=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.bu?(p(e),this.bu=!1):d("OnlineStateTracker",e)},t.prototype.Fu=function(){null!==this.pu&&(this.pu.cancel(),this.pu=null)},t}(),Lo=function(){function t(t,e,n,r,o){var s=this;this.$u=t,this.wu=e,this.ao=n,this.Nu=[],this.ku=new Map,this.xu=null,this.Mu=new Set,this.Ou=o,this.Ou.Lu((function(t){n.Zi((function(){return i.__awaiter(s,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.qu()?(d("RemoteStore","Restarting streams for network reachability change."),[4,this.Bu()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))})),this.Uu=new Mo(n,r),this.Wu=function(t,e,n){var r=v(t);return r._u(),new No(e,r.xa,r.credentials,r.serializer,n)}(this.wu,n,{tu:this.Qu.bind(this),Ha:this.ju.bind(this),nu:this.Ku.bind(this)}),this.Gu=function(t,e,n){var r=v(t);return r._u(),new Po(e,r.xa,r.credentials,r.serializer,n)}(this.wu,n,{tu:this.zu.bind(this),Ha:this.Hu.bind(this),uu:this.Yu.bind(this),au:this.au.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.Mu.delete(0),this.Ju()},t.prototype.Ju=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.qu()?(this.Xu()?this.Zu():this.Uu.set("Unknown"),[4,this.tc()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Mu.add(0),[4,this.ec()];case 1:return t.sent(),this.Uu.set("Offline"),[2]}}))}))},t.prototype.ec=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.Gu.stop()];case 1:return t.sent(),[4,this.Wu.stop()];case 2:return t.sent(),this.Nu.length>0&&(d("RemoteStore","Stopping write stream with "+this.Nu.length+" pending writes"),this.Nu=[]),this.nc(),[2]}}))}))},t.prototype._r=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return d("RemoteStore","RemoteStore shutting down."),this.Mu.add(5),[4,this.ec()];case 1:return t.sent(),this.Ou._r(),this.Uu.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.ku.has(t.targetId)||(this.ku.set(t.targetId,t),this.Xu()?this.Zu():this.Wu.Ba()&&this.sc(t))},t.prototype.ic=function(t){this.ku.delete(t),this.Wu.Ba()&&this.rc(t),0===this.ku.size&&(this.Wu.Ba()?this.Wu.Qa():this.qu()&&this.Uu.set("Unknown"))},t.prototype.Me=function(t){return this.ku.get(t)||null},t.prototype.xe=function(t){return this.oc.xe(t)},t.prototype.sc=function(t){this.xu.de(t.targetId),this.Wu.su(t)},t.prototype.rc=function(t){this.xu.de(t),this.Wu.iu(t)},t.prototype.Zu=function(){this.xu=new Et(this),this.Wu.start(),this.Uu.vu()},t.prototype.Xu=function(){return this.qu()&&!this.Wu.qa()&&this.ku.size>0},t.prototype.qu=function(){return 0===this.Mu.size},t.prototype.nc=function(){this.xu=null},t.prototype.Qu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.ku.forEach((function(e,n){t.sc(e)})),[2]}))}))},t.prototype.ju=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.nc(),this.Xu()?(this.Uu.Cu(t),this.Zu()):this.Uu.set("Unknown"),[2]}))}))},t.prototype.Ku=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.Uu.set("Online"),!(t instanceof wt&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this.hc(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),d("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.ac(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof yt?this.xu.Pe(t):t instanceof _t?this.xu.De(t):this.xu.ye(t),e.isEqual(P.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.$u.ai()];case 8:return r=i.sent(),e.o(r)>=0?[4,this.uc(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return d("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.ac(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}))}))},t.prototype.ac=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(!ti(t))throw t;return this.Mu.add(1),[4,this.ec()];case 1:return r.sent(),this.Uu.set("Offline"),e||(e=function(){return n.$u.ai()}),this.ao.er((function(){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return d("RemoteStore","Retrying IndexedDB access"),[4,e()];case 1:return t.sent(),this.Mu.delete(1),[4,this.Ju()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.cc=function(t){var e=this;return t().catch((function(n){return e.ac(n,t)}))},t.prototype.uc=function(t){var e=this,n=this.xu.$e(t);return n.Wt.forEach((function(n,r){if(n.resumeToken.H()>0){var i=e.ku.get(r);i&&e.ku.set(r,i.tt(n.resumeToken,t))}})),n.Qt.forEach((function(t){var n=e.ku.get(t);if(n){e.ku.set(t,n.tt(G.Y,n.X)),e.rc(t);var r=new Q(n.target,t,1,n.sequenceNumber);e.sc(r)}})),this.oc.vh(n)},t.prototype.hc=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:e=t.cause,n=0,r=t.targetIds,i.label=1;case 1:return n0?this.Nu[this.Nu.length-1].batchId:-1,r.label=1;case 1:if(!this._c())return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.$u.Fh(t)];case 3:return null===(e=r.sent())?(0===this.Nu.length&&this.Gu.Qa(),[3,7]):(t=e.batchId,this.fc(e),[3,6]);case 4:return n=r.sent(),[4,this.ac(n)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return this.dc()&&this.wc(),[2]}}))}))},t.prototype._c=function(){return this.qu()&&this.Nu.length<10},t.prototype.Tc=function(){return this.Nu.length},t.prototype.fc=function(t){this.Nu.push(t),this.Gu.Ba()&&this.Gu.ou&&this.Gu.hu(t.mutations)},t.prototype.dc=function(){return this.qu()&&!this.Gu.qa()&&this.Nu.length>0},t.prototype.wc=function(){this.Gu.start()},t.prototype.zu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Gu.cu(),[2]}))}))},t.prototype.Yu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e;return i.__generator(this,(function(n){for(t=0,e=this.Nu;t0||c&&n.Il(h,c)<0)&&(a=!0)):!u&&h?(r.track({type:0,doc:h}),f=!0):u&&!h&&(r.track({type:1,doc:u}),f=!0,(l||c)&&(a=!0)),f&&(h?(s=s.add(h),o=p?o.add(t):o.delete(t)):(s=s.delete(t),o=o.delete(t)))})),this.query.hn()||this.query.an())for(;s.size>this.query.limit;){var u=this.query.hn()?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{ml:s,Pl:r,Vl:a,Lt:o}},t.prototype.gl=function(t,e){return t.Ke&&e.hasCommittedMutations&&!e.Ke},t.prototype.qn=function(t,e,n){var r=this,i=this.ml;this.ml=t.ml,this.Lt=t.Lt;var o=t.Pl.Mt();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return g()}};return n(t)-n(e)}(t.type,e.type)||r.Il(t.doc,e.doc)})),this.yl(n);var s=e?this.pl():[],a=0===this.El.size&&this.Ht?1:0,l=a!==this.Tl;return this.Tl=a,0!==o.length||l?{snapshot:new mt(this.query,t.ml,i,o,t.Lt,0===a,l,!1),bl:s}:{bl:s}},t.prototype.vl=function(t){return this.Ht&&"Offline"===t?(this.Ht=!1,this.qn({ml:this.ml,Pl:new gt,Lt:this.Lt,Vl:!1},!1)):{bl:[]}},t.prototype.Sl=function(t){return!this.wl.has(t)&&!!this.ml.has(t)&&!this.ml.get(t).Ke},t.prototype.yl=function(t){var e=this;t&&(t.Yt.forEach((function(t){return e.wl=e.wl.add(t)})),t.Jt.forEach((function(t){})),t.Xt.forEach((function(t){return e.wl=e.wl.delete(t)})),this.Ht=t.Ht)},t.prototype.pl=function(){var t=this;if(!this.Ht)return[];var e=this.El;this.El=ht(),this.ml.forEach((function(e){t.Sl(e.key)&&(t.El=t.El.add(e.key))}));var n=[];return e.forEach((function(e){t.El.has(e)||n.push(new Ko(e))})),this.El.forEach((function(t){e.has(t)||n.push(new $o(t))})),n},t.prototype.Dl=function(t){this.wl=t.Mh,this.El=ht();var e=this.Rl(t.documents);return this.qn(e,!0)},t.prototype.Cl=function(){return mt.Ut(this.query,this.ml,this.Lt,0===this.Tl)},t}(),Xo=function(){function t(t,e,n,r){this.ao=t,this.wu=e,this.updateFunction=n,this.lo=r,this.Fl=5,this.Po=new qn(this.ao,"transaction_retry")}return t.prototype.run=function(){this.$l()},t.prototype.$l=function(){var t=this;this.Po.ys((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=new Ro(this.wu),(e=this.Nl(t))&&e.then((function(e){n.ao.Zi((function(){return t.commit().then((function(){n.lo.resolve(e)})).catch((function(t){n.kl(t)}))}))})).catch((function(t){n.kl(t)})),[2]}))}))}))},t.prototype.Nl=function(t){try{var e=this.updateFunction(t);return!j(e)&&e.catch&&e.then?e:(this.lo.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.lo.reject(t),null}},t.prototype.kl=function(t){var e=this;this.Fl>0&&this.xl(t)?(this.Fl-=1,this.ao.Zi((function(){return e.$l(),Promise.resolve()}))):this.lo.reject(t)},t.prototype.xl=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Y(e)}return!1},t}(),Yo=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Jo=function(t){this.key=t,this.Ml=!1},Zo=function(){function t(t,e,n,r,i,o){this.$u=t,this.Ol=e,this.wu=n,this.Ll=r,this.currentUser=i,this.ql=o,this.Bl=null,this.Ul=new I((function(t){return vn(t)}),mn),this.Wl=new Map,this.Ql=[],this.jl=new Z(F.P),this.Kl=new Map,this.Gl=new _i,this.zl={},this.Hl=new Map,this.Yl=fr.si(),this.onlineState="Unknown",this.Jl=void 0}return Object.defineProperty(t.prototype,"Xl",{get:function(){return!0===this.Jl},enumerable:!1,configurable:!0}),t.prototype.subscribe=function(t){this.Bl=t},t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.Zl("listen()"),(n=this.Ul.get(t))?(this.Ll.zc(n.targetId),e=n.view.Cl(),[3,4]):[3,1];case 1:return[4,this.$u.Nh(dn(t))];case 2:return r=i.sent(),o=this.Ll.zc(r.targetId),[4,this.t_(t,r.targetId,"current"===o)];case 3:e=i.sent(),this.Xl&&this.Ol.listen(r),i.label=4;case 4:return[2,e]}}))}))},t.prototype.t_=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,s,a,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.$u.xh(t,!0)];case 1:return r=i.sent(),o=new Qo(t,r.Mh),s=o.Rl(r.documents),a=bt.zt(e,n&&"Offline"!==this.onlineState),l=o.qn(s,this.Xl,a),this.e_(e,l.bl),c=new Yo(t,e,o),[2,(this.Ul.set(t,c),this.Wl.has(e)?this.Wl.get(e).push(t):this.Wl.set(e,[t]),l.snapshot)]}}))}))},t.prototype.ic=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.Zl("unlisten()"),e=this.Ul.get(t),(n=this.Wl.get(e.targetId)).length>1?[2,(this.Wl.set(e.targetId,n.filter((function(e){return!mn(e,t)}))),void this.Ul.delete(t))]:this.Xl?(this.Ll.Yc(e.targetId),this.Ll.Wc(e.targetId)?[3,2]:[4,this.$u.kh(e.targetId,!1).then((function(){r.Ll.Xc(e.targetId),r.Ol.ic(e.targetId),r.n_(e.targetId)})).catch(yi)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.n_(e.targetId),[4,this.$u.kh(e.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},t.prototype.write=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.Zl("write()"),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this.$u.Vh(t)];case 2:return n=i.sent(),this.Ll.Qc(n.batchId),this.s_(n.batchId,e),[4,this.i_(n.Cn)];case 3:return i.sent(),[4,this.Ol.tc()];case 4:return i.sent(),[3,6];case 5:return r=i.sent(),o=ci(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new Xo(t,this.wu,e,n).run()},t.prototype.vh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.Zl("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.$u.vh(t)];case 2:return e=r.sent(),t.Wt.forEach((function(t,e){var r=n.Kl.get(e);r&&(m(t.Yt.size+t.Jt.size+t.Xt.size<=1),t.Yt.size>0?r.Ml=!0:t.Jt.size>0?m(r.Ml):t.Xt.size>0&&(m(r.Ml),r.Ml=!1))})),[4,this.i_(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,yi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.vl=function(t,e){if(this.Xl&&0===e||!this.Xl&&1===e){this.Zl("applyOnlineStateChange()");var n=[];this.Ul.forEach((function(e,r){var i=r.view.vl(t);i.snapshot&&n.push(i.snapshot)})),this.Bl.r_(t),this.Bl.nu(n),this.onlineState=t,this.Xl&&this.Ll.el(t)}},t.prototype.lc=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,s,a,l=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.Zl("rejectListens()"),this.Ll.Zc(t,"rejected",e),n=this.Kl.get(t),(r=n&&n.key)?(o=(o=new Z(F.P)).nt(r,new rn(r,P.min())),s=ht().add(r),a=new vt(P.min(),new Map,new nt(_),o,s),[4,this.vh(a)]):[3,2];case 1:return i.sent(),this.jl=this.jl.remove(r),this.Kl.delete(t),this.o_(),[3,4];case 2:return[4,this.$u.kh(t,!1).then((function(){return l.n_(t,e)})).catch(yi)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t.prototype.Ec=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.Zl("applySuccessfulWrite()"),e=t.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.$u.yh(t)];case 2:return n=r.sent(),this.h_(e,null),this.a_(e),this.Ll.Kc(e,"acknowledged"),[4,this.i_(n)];case 3:return r.sent(),[3,6];case 4:return[4,yi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.mc=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.Zl("rejectFailedWrite()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.$u.bh(t)];case 2:return n=r.sent(),this.h_(t,e),this.a_(t),this.Ll.Kc(t,"rejected",e),[4,this.i_(n)];case 3:return r.sent(),[3,6];case 4:return[4,yi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.u_=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.Ol.qu()||d("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.$u.Wr()];case 2:return-1===(e=i.sent())?[2,void t.resolve()]:((n=this.Hl.get(e)||[]).push(t),this.Hl.set(e,n),[3,4]);case 3:return r=i.sent(),o=ci(r,"Initialization of waitForPendingWrites() operation failed"),t.reject(o),[3,4];case 4:return[2]}}))}))},t.prototype.a_=function(t){(this.Hl.get(t)||[]).forEach((function(t){t.resolve()})),this.Hl.delete(t)},t.prototype.c_=function(t){this.Hl.forEach((function(e){e.forEach((function(e){e.reject(new A(O.CANCELLED,t))}))})),this.Hl.clear()},t.prototype.s_=function(t,e){var n=this.zl[this.currentUser.Aa()];n||(n=new Z(_)),n=n.nt(t,e),this.zl[this.currentUser.Aa()]=n},t.prototype.h_=function(t,e){var n=this.zl[this.currentUser.Aa()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.zl[this.currentUser.Aa()]=n}},t.prototype.n_=function(t,e){var n=this;void 0===e&&(e=null),this.Ll.Yc(t);for(var r=0,i=this.Wl.get(t);r0&&this.jl.size=0&&(r.listeners.splice(o,1),n=0===r.listeners.length),n?[2,(this.E_.delete(e),this.oc.ic(e))]:[2]}))}))},t.prototype.nu=function(t){for(var e=!1,n=0,r=t;n0||!!(t.qt||this.y_&&this.y_.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.v_=function(t){t=mt.Ut(t.query,t.docs,t.Lt,t.fromCache),this.V_=!0,this.g_.next(t)},t}(),ds=function(){function t(){}return t.prototype.mh=function(t){this.D_=t},t.prototype.ts=function(t,e,n,r){var i=this;return e.on()||n.isEqual(P.min())?this.C_(t,e):this.D_.Jn(t,r).next((function(o){var a=i.F_(e,o);return(e.hn()||e.an())&&i.Vl(e.en,a,r,n)?i.C_(t,e):(h()<=s.LogLevel.DEBUG&&d("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),bn(e)),i.D_.ts(t,e,n).next((function(t){return a.forEach((function(e){t=t.nt(e.key,e)})),t})))}))},t.prototype.F_=function(t,e){var n=new nt(_n(t));return e.forEach((function(e,r){r instanceof nn&&yn(t,r)&&(n=n.add(r))})),n},t.prototype.Vl=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.o(r)>0)},t.prototype.C_=function(t,e){return h()<=s.LogLevel.DEBUG&&d("IndexFreeQueryEngine","Using full collection scan to execute query:",bn(e)),this.D_.ts(t,e,P.min())},t}(),ps=function(){function t(t,e){this.Kn=t,this.ii=e,this.jn=[],this.N_=1,this.k_=new nt(wi.Lh)}return t.prototype.Or=function(t){return Ln.resolve(0===this.jn.length)},t.prototype.Lr=function(t,e,n,r){var i=this.N_;this.N_++;var o=new Rn(i,e,n,r);this.jn.push(o);for(var s=0,a=r;sr?this.jn[r]:null)},t.prototype.Wr=function(){return Ln.resolve(0===this.jn.length?-1:this.N_-1)},t.prototype.Qr=function(t){return Ln.resolve(this.jn.slice())},t.prototype.zn=function(t,e){var n=this,r=new wi(e,0),i=new wi(e,Number.POSITIVE_INFINITY),o=[];return this.k_.vt([r,i],(function(t){var e=n.x_(t.zh);o.push(e)})),Ln.resolve(o)},t.prototype.Zn=function(t,e){var n=this,r=new nt(_);return e.forEach((function(t){var e=new wi(t,0),i=new wi(t,Number.POSITIVE_INFINITY);n.k_.vt([e,i],(function(t){r=r.add(t.zh)}))})),Ln.resolve(this.O_(r))},t.prototype.os=function(t,e){var n=e.path,r=n.length+1,i=n;F.W(i)||(i=i.child(""));var o=new wi(new F(i),0),s=new nt(_);return this.k_.St((function(t){var e=t.key.path;return!!n.D(e)&&(e.length===r&&(s=s.add(t.zh)),!0)}),o),Ln.resolve(this.O_(s))},t.prototype.O_=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.x_(t);null!==r&&n.push(r)})),n},t.prototype.Kr=function(t,e){var n=this;m(0===this.L_(e.batchId,"removed")),this.jn.shift();var r=this.k_;return Ln.forEach(e.mutations,(function(i){var o=new wi(i.key,e.batchId);return r=r.delete(o),n.ii.Dr(t,i.key)})).next((function(){n.k_=r}))},t.prototype.Gr=function(t){},t.prototype.pi=function(t,e){var n=new wi(e,0),r=this.k_.Dt(n);return Ln.resolve(e.isEqual(r&&r.key))},t.prototype.zr=function(t){return Ln.resolve()},t.prototype.L_=function(t,e){return this.M_(t)},t.prototype.M_=function(t){return 0===this.jn.length?0:t-this.jn[0].batchId},t.prototype.x_=function(t){var e=this.M_(t);return e<0||e>=this.jn.length?null:this.jn[e]},t}(),fs=function(){function t(t,e){this.Kn=t,this.q_=e,this.docs=new Z(F.P),this.size=0}return t.prototype.Nn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,s=this.q_(e);return this.docs=this.docs.nt(r,{Ls:e,size:s,readTime:n}),this.size+=s-o,this.Kn.Cs(t,r.path.p())},t.prototype.xn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Mn=function(t,e){var n=this.docs.get(e);return Ln.resolve(n?n.Ls:null)},t.prototype.getEntries=function(t,e){var n=this,r=st();return e.forEach((function(t){var e=n.docs.get(t);r=r.nt(t,e?e.Ls:null)})),Ln.resolve(r)},t.prototype.ts=function(t,e,n){for(var r=lt(),i=new F(e.path.child("")),o=this.docs.ut(i);o.wt();){var s=o.dt(),a=s.value,l=a.Ls,c=a.readTime;if(!e.path.D(s.key.path))break;c.o(n)<=0||l instanceof nn&&yn(e,l)&&(r=r.nt(l.key,l))}return Ln.resolve(r)},t.prototype.B_=function(t,e){return Ln.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Hs=function(e){return new t.Ys(this)},t.prototype.Xs=function(t){return Ln.resolve(this.size)},t}();fs.Ys=function(t){function e(e){var n=this;return(n=t.call(this)||this).Zs=e,n}return i.__extends(e,t),e.prototype.qn=function(t){var e=this,n=[];return this.Cn.forEach((function(r,i){i?n.push(e.Zs.Nn(t,i,e.readTime)):e.Zs.xn(r)})),Ln.Sn(n)},e.prototype.On=function(t,e){return this.Zs.Mn(t,e)},e.prototype.Ln=function(t,e){return this.Zs.getEntries(t,e)},e}(Fn);var gs=function(){function t(t){this.persistence=t,this.U_=new I((function(t){return z(t)}),q),this.lastRemoteSnapshotVersion=P.min(),this.highestTargetId=0,this.W_=0,this.Q_=new _i,this.targetCount=0,this.j_=fr.ni()}return t.prototype.pe=function(t,e){return this.U_.forEach((function(t,n){return e(n)})),Ln.resolve()},t.prototype.ai=function(t){return Ln.resolve(this.lastRemoteSnapshotVersion)},t.prototype.ui=function(t){return Ln.resolve(this.W_)},t.prototype.ri=function(t){return this.highestTargetId=this.j_.next(),Ln.resolve(this.highestTargetId)},t.prototype.ci=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.W_&&(this.W_=e),Ln.resolve()},t.prototype._i=function(t){this.U_.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.j_=new fr(e),this.highestTargetId=e),t.sequenceNumber>this.W_&&(this.W_=t.sequenceNumber)},t.prototype.li=function(t,e){return this._i(e),this.targetCount+=1,Ln.resolve()},t.prototype.di=function(t,e){return this._i(e),Ln.resolve()},t.prototype.wi=function(t,e){return this.U_.delete(e.target),this.Q_.jh(e.targetId),this.targetCount-=1,Ln.resolve()},t.prototype.Ei=function(t,e,n){var r=this,i=0,o=[];return this.U_.forEach((function(s,a){a.sequenceNumber<=e&&null===n.get(a.targetId)&&(r.U_.delete(s),o.push(r.Ti(t,a.targetId)),i++)})),Ln.Sn(o).next((function(){return i}))},t.prototype.Ii=function(t){return Ln.resolve(this.targetCount)},t.prototype.mi=function(t,e){var n=this.U_.get(e)||null;return Ln.resolve(n)},t.prototype.Ai=function(t,e,n){return this.Q_.Uh(e,n),Ln.resolve()},t.prototype.Pi=function(t,e,n){this.Q_.Qh(e,n);var r=this.persistence.ii,i=[];return r&&e.forEach((function(e){i.push(r.Dr(t,e))})),Ln.Sn(i)},t.prototype.Ti=function(t,e){return this.Q_.jh(e),Ln.resolve()},t.prototype.Vi=function(t,e){var n=this.Q_.Gh(e);return Ln.resolve(n)},t.prototype.pi=function(t,e){return Ln.resolve(this.Q_.pi(e))},t}(),ms=function(){function t(t){var e=this;this.K_={},this.Ci=new Hn(0),this.Fi=!1,this.Fi=!0,this.ii=t(this),this.qi=new gs(this),this.Kn=new Qn,this.Qn=new fs(this.Kn,(function(t){return e.ii.G_(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype._r=function(){return this.Fi=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Hi",{get:function(){return this.Fi},enumerable:!1,configurable:!0}),t.prototype.Yi=function(){},t.prototype.Xi=function(){},t.prototype.gr=function(){return this.Kn},t.prototype.mr=function(t){var e=this.K_[t.Aa()];return e||(e=new ps(this.Kn,this.ii),this.K_[t.Aa()]=e),e},t.prototype.Rr=function(){return this.qi},t.prototype.Pr=function(){return this.Qn},t.prototype.runTransaction=function(t,e,n){var r=this;d("MemoryPersistence","Starting transaction:",t);var i=new vs(this.Ci.next());return this.ii.z_(),n(i).next((function(t){return r.ii.H_(i).next((function(){return t}))})).bn().then((function(t){return i.Wn(),t}))},t.prototype.Y_=function(t,e){return Ln.Dn(Object.values(this.K_).map((function(n){return function(){return n.pi(t,e)}})))},t}(),vs=function(t){function e(e){var n=this;return(n=t.call(this)||this).vi=e,n}return i.__extends(e,t),e}(Un),bs=function(){function t(t){this.persistence=t,this.J_=new _i,this.X_=null}return t.Z_=function(e){return new t(e)},Object.defineProperty(t.prototype,"tf",{get:function(){if(this.X_)return this.X_;throw g()},enumerable:!1,configurable:!0}),t.prototype.Ri=function(t,e,n){return this.J_.Ri(n,e),this.tf.delete(n),Ln.resolve()},t.prototype.gi=function(t,e,n){return this.J_.gi(n,e),this.tf.add(n),Ln.resolve()},t.prototype.Dr=function(t,e){return this.tf.add(e),Ln.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.J_.jh(e.targetId).forEach((function(t){return n.tf.add(t)}));var r=this.persistence.Rr();return r.Vi(t,e.targetId).next((function(t){t.forEach((function(t){return n.tf.add(t)}))})).next((function(){return r.wi(t,e)}))},t.prototype.z_=function(){this.X_=new Set},t.prototype.H_=function(t){var e=this,n=this.persistence.Pr().Hs();return Ln.forEach(this.tf,(function(r){return e.ef(t,r).next((function(t){t||n.xn(r)}))})).next((function(){return e.X_=null,n.apply(t)}))},t.prototype.Nr=function(t,e){var n=this;return this.ef(t,e).next((function(t){t?n.tf.delete(e):n.tf.add(e)}))},t.prototype.G_=function(t){return 0},t.prototype.ef=function(t,e){var n=this;return Ln.Dn([function(){return Ln.resolve(n.J_.pi(e))},function(){return n.persistence.Rr().pi(t,e)},function(){return n.persistence.Y_(t,e)}])},t}(),ys=function(){function t(t){this.nf=t.nf,this.sf=t.sf}return t.prototype.tu=function(t){this.if=t},t.prototype.Ha=function(t){this.rf=t},t.prototype.onMessage=function(t){this.hf=t},t.prototype.close=function(){this.sf()},t.prototype.send=function(t){this.nf(t)},t.prototype.af=function(){this.if()},t.prototype.uf=function(t){this.rf(t)},t.prototype.cf=function(t){this.hf(t)},t}(),_s={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},ws=function(){function t(t){this.s=t.s,this.lf=(t.ssl?"https":"http")+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype._f=function(t,e){if(e)for(var n in e.ga)e.ga.hasOwnProperty(n)&&(t[n]=e.ga[n]);t["X-Goog-Api-Client"]="gl-js/ fire/7.17.1"},t.prototype.fu=function(t,e,n){var r=this,i=this.ff(t);return new Promise((function(o,s){var a=new l.XhrIo;a.listenOnce(l.EventType.COMPLETE,(function(){try{switch(a.getLastErrorCode()){case l.ErrorCode.NO_ERROR:var e=a.getResponseJson();d("Connection","XHR received:",JSON.stringify(e)),o(e);break;case l.ErrorCode.TIMEOUT:d("Connection",'RPC "'+t+'" timed out'),s(new A(O.DEADLINE_EXCEEDED,"Request time out"));break;case l.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(d("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(O).indexOf(e)>=0?e:O.UNKNOWN}(r.status);s(new A(i,r.message))}else s(new A(O.UNKNOWN,"Server responded with status "+a.getStatus()))}else d("Connection",'RPC "'+t+'" failed'),s(new A(O.UNAVAILABLE,"Connection failed."));break;default:g()}}finally{d("Connection",'RPC "'+t+'" completed.')}}));var c=Object.assign({},e);delete c.database;var u=JSON.stringify(c);d("Connection","XHR sending: ",i+" "+u);var h={"Content-Type":"text/plain"};r._f(h,n),a.send(i,"POST",u,h,15)}))},t.prototype.du=function(t,e,n){return this.fu(t,e,n)},t.prototype.eu=function(t,e){var n=[this.lf,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=l.createWebChannelTransport(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.s.projectId+"/databases/"+this.s.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this._f(o.initMessageHeaders,e),a.isMobileCordova()||a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(o.httpHeadersOverwriteParam="$httpHeaders");var c=n.join("");d("Connection","Creating WebChannel: "+c+" "+o);var h=r.createWebChannel(c,o),p=!1,g=!1,v=new ys({nf:function(t){g?d("Connection","Not sending because WebChannel is closed:",t):(p||(d("Connection","Opening WebChannel transport."),h.open(),p=!0),d("Connection","WebChannel sending:",t),h.send(t))},sf:function(){return h.close()}}),b=function(t,e){h.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return b(l.WebChannel.EventType.OPEN,(function(){g||d("Connection","WebChannel transport opened.")})),b(l.WebChannel.EventType.CLOSE,(function(){g||(g=!0,d("Connection","WebChannel transport closed"),v.uf())})),b(l.WebChannel.EventType.ERROR,(function(t){g||(g=!0,function(t){for(var e=[],n=1;n=0)throw new A(O.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.ed(),new Ks(function(t){return new an(R.k(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return Ei("Firestore.runTransaction",arguments,1),ki("Firestore.runTransaction","function",1,t),this.ed().transaction((function(n){return t(new Ms(e,n))}))},t.prototype.batch=function(){return this.ed(),new Ls(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(h()){case s.LogLevel.DEBUG:return"debug";case s.LogLevel.ERROR:return"error";case s.LogLevel.SILENT:return"silent";case s.LogLevel.WARN:return"warn";case s.LogLevel.INFO:return"info";case s.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){Ei("Firestore.setLogLevel",arguments,1),Ni("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),u.setLogLevel(t)},t.prototype.Ed=function(){return this.ad.timestampsInSnapshots},t}();function Rs(t,e){var n=new Is({next:function(){e.next&&e.next()},error:function(t){throw g()}});return t.R_(n),function(){n.Wf(),t.P_(n)}}var Ms=function(){function t(t,e){this.Id=t,this.md=e}return t.prototype.get=function(t){var e=this;Ei("Transaction.get",arguments,1);var n=ea("Transaction.get",t,this.Id);return this.md.Au([n.ua]).then((function(t){if(!t||1!==t.length)return g();var r=t[0];if(r instanceof rn)return new Vs(e.Id,n.ua,null,!1,!1,n.ca);if(r instanceof nn)return new Vs(e.Id,n.ua,r,!1,!1,n.ca);throw g()}))},t.prototype.set=function(t,e,n){Si("Transaction.set",arguments,2,3);var r=ea("Transaction.set",t,this.Id);n=Js("Transaction.set",n);var i=ra(r.ca,e,n),o=ho(this.Id.ud,"Transaction.set",r.ua,i,null!==r.ca,n);return this.md.set(r.ua,o),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],s=3;s0?this.Id.ed().write(this.Ad):Promise.resolve()},t.prototype.Pd=function(){if(this.Rd)throw new A(O.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Fs=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.aa,e,r)||this).ua=e,i.firestore=n,i.ca=r,i.nd=i.firestore.ed(),i}return i.__extends(e,t),e.Td=function(t,n,r){if(t.length%2!=0)throw new A(O.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.$()+" has "+t.length);return new e(new F(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.ua.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Ys(this.ua.path.p(),this.firestore,this.ca)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.ua.path.$()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(Ei("DocumentReference.collection",arguments,1),ki("DocumentReference.collection","non-empty string",1,t),!t)throw new A(O.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=R.N(t);return new Ys(this.ua.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Fi("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.ua.isEqual(t.ua)&&this.ca===t.ca},e.prototype.set=function(t,e){Si("DocumentReference.set",arguments,1,2),e=Js("DocumentReference.set",e);var n=ra(this.ca,t,e),r=ho(this.firestore.ud,"DocumentReference.set",this.ua,n,null!==this.ca,e);return this.nd.write(r.la(this.ua,Le.We()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i=0,o=r.indexOf(e.op)>=0;if(e.ln()){var s=t.cn();if(null!==s&&!s.isEqual(e.field))throw new A(O.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+s.toString()+"' and '"+e.field.toString()+"'");var a=t.un();null!==a&&Gs(0,e.field,a)}else if(o||i){var l=null;if(o&&(l=t._n(r)),null===l&&i&&(l=t._n(n)),null!==l)throw new A(O.INVALID_ARGUMENT,l===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+l.toString()+"' filters.")}}}(t,h),h}function zs(t,e,n){if(null!==t.startAt)throw new A(O.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new A(O.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Nn(e,n);return function(t,e){if(null===t.un()){var n=t.cn();null!==n&&Gs(0,n,e.field)}}(t,r),r}function qs(t,e,n){if("string"==typeof n){if(""===n)throw new A(O.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!un(e)&&-1!==n.indexOf("/"))throw new A(O.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(R.N(n));if(!F.W(r))throw new A(O.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return jt(t,new F(r))}if(n instanceof oo)return jt(t,n.ua);throw new A(O.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Ri(n)+".")}function Ws(t,e){if(!Array.isArray(t)||0===t.length)throw new A(O.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new A(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new A(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new A(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")}function Gs(t,e,n){if(!n.isEqual(e))throw new A(O.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function $s(t){if(t.an()&&0===t.tn.length)throw new A(O.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Ks=function(){function t(t,e,n){this.bd=t,this.firestore=e,this.ca=n}return t.prototype.where=function(e,n,r){Ei("Query.where",arguments,3),Mi("Query.where",3,r);var i=Ni("Query.where",["<","<=","==",">=",">","array-contains","in","array-contains-any"],2,n),o=_o("Query.where",e),s=Hs(this.bd,"Query.where",this.firestore.ud,this.firestore.aa,o,i,r);return new t(function(t,e){var n=t.filters.concat([e]);return new an(t.path,t.collectionGroup,t.tn.slice(),n,t.limit,t.en,t.startAt,t.endAt)}(this.bd,s),this.firestore,this.ca)},t.prototype.orderBy=function(e,n){var r;if(Si("Query.orderBy",arguments,1,2),Ti("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new A(O.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=_o("Query.orderBy",e),o=zs(this.bd,i,r);return new t(function(t,e){var n=t.tn.concat([e]);return new an(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.en,t.startAt,t.endAt)}(this.bd,o),this.firestore,this.ca)},t.prototype.limit=function(e){return Ei("Query.limit",arguments,1),ki("Query.limit","number",1,e),ji("Query.limit",1,e),new t(pn(this.bd,e,"F"),this.firestore,this.ca)},t.prototype.limitToLast=function(e){return Ei("Query.limitToLast",arguments,1),ki("Query.limitToLast","number",1,e),ji("Query.limitToLast",1,e),new t(pn(this.bd,e,"L"),this.firestore,this.ca)},t.prototype.startAt=function(e){for(var n=[],r=1;rs.length)throw new A(O.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var a=[],l=0;l=200&&t<300)return"ok";switch(t){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(t),i=r,o=void 0;try{var s=e&&e.error;if(s){var c=s.status;if("string"==typeof c){if(!a[c])return new l("internal","internal");r=a[c],i=c}var u=s.message;"string"==typeof u&&(i=u),void 0!==(o=s.details)&&(o=n.decode(o))}}catch(h){}return"ok"===r?null:new l(r,i,o)}(p.status,p.json,this.serializer))throw g;if(!p.json)throw new l("internal","Response is not valid JSON object.");if(void 0===(m=p.json.data)&&(m=p.json.result),void 0===m)throw new l("internal","Response is missing data field.");return[2,{data:this.serializer.decode(m)}]}}))}))},t}();function f(t,e){return o.__awaiter(this,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),clearTimeout(t),[2,n]}}))}))}h={Functions:p},i.INTERNAL.registerComponent(new s.Component("functions",(function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),i=t.getProvider("messaging");return new p(n,r,i,e)}),"PUBLIC").setServiceProps(h).setMultipleInstances(!0)),i.registerVersion("@firebase/functions","0.4.49")},AdPF:function(t,e,n){var r=n("yeub"),i=n("2UHX");t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||r))return new XMLHttpRequest}catch(s){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(s){}if(!e)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(s){}}},Aplp:function(t,e,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},s=0,a=0;function l(t){var e="";do{e=i[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function c(){var t=l(+new Date);return t!==r?(s=0,r=t):t+"."+l(s++)}for(;a<64;a++)o[i[a]]=a;c.encode=l,c.decode=function(t){var e=0;for(a=0;a0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}},CIKq:function(t,e,n){var r,i,o=n("Gbct"),s=n("Wm4p"),a=n("TypT"),l=n("Yvos"),c=n("Aplp"),u=n("NOtv")("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(1)}catch(p){}var h=r||i;function d(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=r&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=i),o.call(this,t)}t.exports=d,l(d,o),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new h(t,e):new h(t):new h(t,e,n)}catch(r){return this.emit("error",r)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},d.prototype.write=function(t){var e=this;this.writable=!1;for(var n=t.length,r=0,i=n;r')}catch(t){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),t=t.replace(l,"\\\n"),this.area.value=t.replace(a,"\\n");try{this.form.submit()}catch(h){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}},FGiv:function(t,e){var n=1e3,r=6e4,i=60*r,o=24*i;function s(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,e){e=e||{};var a,l,c=typeof t;if("string"===c&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var s=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(t);if("number"===c&&isFinite(t))return e.long?(a=t,(l=Math.abs(a))>=o?s(a,l,o,"day"):l>=i?s(a,l,i,"hour"):l>=r?s(a,l,r,"minute"):l>=n?s(a,l,n,"second"):a+" ms"):function(t){var e=Math.abs(t);return e>=o?Math.round(t/o)+"d":e>=i?Math.round(t/i)+"h":e>=r?Math.round(t/r)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},FXYA:function(t,e,n){function r(t){var n;function r(){if(r.enabled){var t=r,i=+new Date,o=i-(n||i);t.diff=o,t.prev=n,t.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a>>0),b=0;function y(t,e,n){return t.call.apply(t.bind,arguments)}function _(t,e,n){if(!t)throw Error();if(2t.b&&(t.b++,e.next=t.a,t.a=e)}function j(){this.b=this.a=null}T=N("__EID__")?"__EID__":void 0,x(D,Error),D.prototype.name="CustomError",x(R,D),R.prototype.name="AssertionError",L.prototype.get=function(){if(0/g,rt=/"/g,it=/'/g,ot=/\x00/g,st=/[\x00&<>"']/;function at(t,e){return-1!=t.indexOf(e)}function lt(t,e){return te?1:0}t:{var ct=l.navigator;if(ct){var ut=ct.userAgent;if(ut){J=ut;break t}}J=""}function ht(t){return at(J,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function ft(t){var e,n={};for(e in t)n[e]=t[e];return n}var gt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function mt(t,e){for(var n,r,i=1;i"}else o=void 0===t?"undefined":null===t?"null":typeof t;M("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function bt(t,e){this.a=t===wt&&e||"",this.b=_t}function yt(t){return t instanceof bt&&t.constructor===bt&&t.b===_t?t.a:(M("expected object of type Const, got '"+t+"'"),"type_error:Const")}bt.prototype.ra=!0,bt.prototype.qa=function(){return this.a},bt.prototype.toString=function(){return"Const{"+this.a+"}"};var _t={},wt={},Ct=new bt(wt,"");function Et(t,e){this.a=t===Ot&&e||"",this.b=It}function xt(t){return t instanceof Et&&t.constructor===Et&&t.b===It?t.a:(M("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function St(t,e){var n=yt(t);if(!Tt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(kt,(function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[r])instanceof bt?yt(t):encodeURIComponent(String(t))})),new Et(Ot,t)}Et.prototype.ra=!0,Et.prototype.qa=function(){return this.a.toString()},Et.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var kt=/%{(\w+)}/g,Tt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,It={},Ot={};function At(t,e){this.a=t===Mt&&e||"",this.b=Rt}function Nt(t){return t instanceof At&&t.constructor===At&&t.b===Rt?t.a:(M("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}At.prototype.ra=!0,At.prototype.qa=function(){return this.a.toString()},At.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Dt(t){return t instanceof At?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Pt.test(t)||(t="about:invalid#zClosurez"),new At(Mt,t))}var Rt={},Mt={};function Lt(){this.a="",this.b=jt}function Ft(t){return t instanceof Lt&&t.constructor===Lt&&t.b===jt?t.a:(M("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}Lt.prototype.ra=!0,Lt.prototype.qa=function(){return this.a.toString()},Lt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var jt={};function Ut(t){var e=new Lt;return e.a=t,e}Ut("");var Vt=Ut("");function Bt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1")&&(t=t.replace(nt,">")),-1!=t.indexOf('"')&&(t=t.replace(rt,""")),-1!=t.indexOf("'")&&(t=t.replace(it,"'")),-1!=t.indexOf("\0")&&(t=t.replace(ot,"�"))),t}function zt(t){return zt[" "](t),t}Ut("
"),zt[" "]=h;var qt,Wt,Gt=ht("Opera"),$t=ht("Trident")||ht("MSIE"),Kt=ht("Edge"),Qt=Kt||$t,Xt=ht("Gecko")&&!(at(J.toLowerCase(),"webkit")&&!ht("Edge"))&&!(ht("Trident")||ht("MSIE"))&&!ht("Edge"),Yt=at(J.toLowerCase(),"webkit")&&!ht("Edge");function Jt(){var t=l.document;return t?t.documentMode:void 0}t:{var Zt="",te=(Wt=J,Xt?/rv:([^\);]+)(\)|;)/.exec(Wt):Kt?/Edge\/([\d\.]+)/.exec(Wt):$t?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Wt):Yt?/WebKit\/(\S+)/.exec(Wt):Gt?/(?:Version)[ \/]?(\S+)/.exec(Wt):void 0);if(te&&(Zt=te?te[1]:""),$t){var ee=Jt();if(null!=ee&&ee>parseFloat(Zt)){qt=String(ee);break t}}qt=Zt}var ne,re={};function ie(t){return function(t,e){var n=re;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=Z(String(qt)).split("."),r=Z(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}},Qe.prototype.f=function(){return this.a};var Ye="closure_listenable_"+(1e6*Math.random()|0),Je=0;function Ze(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Je,this.ua=this.Na=!1}function tn(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function en(t){this.src=t,this.a={},this.b=0}function nn(t,e){var n=e.type;n in t.a&&K(t.a[n],e)&&(tn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function rn(t,e,n,r){for(var i=0;ir.keyCode||null!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(s){i=!0}(i||null==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=pn(r[i],t,!0,e);n=n&&o}for(i=0;i>>0);function bn(t){return f(t)?t:(t[vn]||(t[vn]=function(e){return t.handleEvent(e)}),t[vn])}function yn(){Ve.call(this),this.u=new en(this),this.Yb=this,this.eb=null}function _n(t,e,n,r,i){t.u.add(String(e),n,!1,r,i)}function wn(t,e,n,r,i){t.u.add(String(e),n,!0,r,i)}function Cn(t,e,n,r){if(!(e=t.u.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;oe)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Rn(t,e,n){e instanceof $n?(t.a=e,function(t,e){e&&!t.f&&(Kn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Xn(this,e),Jn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Vn(e,Wn)),t.a=new $n(e,t.h))}function Mn(t,e,n){t.a.set(e,n)}function Ln(t,e){return t.a.get(e)}function Fn(t){return t instanceof Nn?new Nn(t):new Nn(t,void 0)}function jn(t,e){var n=new Nn(null,void 0);return Pn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function Un(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Vn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Bn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Bn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Nn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Vn(e,Hn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Vn(e,Hn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Vn(n,"/"==n.charAt(0)?qn:zn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Vn(n,Gn)),t.join("")},Nn.prototype.resolve=function(t){var e=new Nn(this),n=!!t.f;n?Pn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var r=t.c;if(n)Dn(e,t.l);else if(n=!!t.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=e.c.lastIndexOf("/");-1!=i&&(r=e.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(at(i,"./")||at(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],s=0;s2*t.c&&In(t)))}function Yn(t,e){return Kn(t),e=tr(t,e),On(t.a.b,e)}function Jn(t,e,n){Xn(t,e),0'),r=s.document)&&(r.write(Ft(t)),r.close())):(s=r.open(Nt(e),n,s))&&t.noopener&&(s.opener=null),s)try{s.focus()}catch(a){}return s}var dr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function fr(){var t=null;return new ye((function(e){"complete"==l.document.readyState?e():(t=function(){e()},cn(window,"load",t))})).o((function(e){throw un(window,"load",t),e}))}function gr(t){return t=t||xr(),!("file:"!==Or()&&"ionic:"!==Or()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function mr(){var t=l.window;try{return!(!t||t==t.top)}catch(e){return!1}}function vr(){return void 0!==l.WorkerGlobalScope&&"function"==typeof l.importScripts}function br(){return e.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":e.INTERNAL.hasOwnProperty("node")?"Node":vr()?"Worker":"Browser"}function yr(){var t=br();return"ReactNative"===t||"Node"===t}var _r="Firefox";function wr(t){var e=t.toLowerCase();return at(e,"opera/")||at(e,"opr/")||at(e,"opios/")?"Opera":at(e,"iemobile")?"IEMobile":at(e,"msie")||at(e,"trident/")?"IE":at(e,"edge/")?"Edge":at(e,"firefox/")?_r:at(e,"silk/")?"Silk":at(e,"blackberry")?"Blackberry":at(e,"webos")?"Webos":!at(e,"safari/")||at(e,"chrome/")||at(e,"crios/")||at(e,"android")?!at(e,"chrome/")&&!at(e,"crios/")||at(e,"edge/")?at(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var Cr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Er(t,e){e=e||[];var n,r=[],i={};for(n in Cr)i[Cr[n]]=!0;for(n=0;ne)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=xr(),e=br(),this.b=cr(t)||"ReactNative"===e}function jr(){var t=l.document;return!t||void 0===t.visibilityState||"visible"==t.visibilityState}function Ur(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Vr(){return!(!Sr("fireauth.oauthhelper",l)&&!Sr("fireauth.iframe",l))}Fr.prototype.get=function(){var t=l.navigator;return!t||"boolean"!=typeof t.onLine||!Ir()&&"chrome-extension:"!==Or()&&void 0===t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Br,Hr={};function zr(t){Hr[t]||(Hr[t]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(t))}try{var qr={};Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(qr,"abcd",{configurable:!0,enumerable:!0,value:2}),Br=2==qr.abcd}catch(Wt){Br=!1}function Wr(t,e,n){Br?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Gr(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Wr(t,n,e[n])}function $r(t){var e={};return Gr(e,t),e}function Kr(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Wr(e,n,Kr(t[n]));return e}function Qr(t){var e=t&&(t[ti]?"phone":null);if(!(e&&t&&t[Zr]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Wr(this,"uid",t[Zr]),Wr(this,"displayName",t[Yr]||null);var n=null;t[Jr]&&(n=new Date(t[Jr]).toUTCString()),Wr(this,"enrollmentTime",n),Wr(this,"factorId",e)}function Xr(t){try{var e=new ei(t)}catch(n){e=null}return e}Qr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Yr="displayName",Jr="enrolledAt",Zr="mfaEnrollmentId",ti="phoneInfo";function ei(t){Qr.call(this,t),Wr(this,"phoneNumber",t[ti])}function ni(t){var e={},n=t[si],r=t[li],i=t[ci];if(t=Xr(t[ai]),!i||i!=ii&&i!=oi&&!n||i==oi&&!r||i==ri&&!t)throw Error("Invalid checkActionCode response!");i==oi?(e[hi]=n||null,e[pi]=n||null,e[ui]=r):(e[hi]=r||null,e[pi]=r||null,e[ui]=n||null),e[di]=t||null,Wr(this,gi,i),Wr(this,fi,Kr(e))}x(ei,Qr),ei.prototype.v=function(){var t=ei.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var ri="REVERT_SECOND_FACTOR_ADDITION",ii="EMAIL_SIGNIN",oi="VERIFY_AND_CHANGE_EMAIL",si="email",ai="mfaInfo",li="newEmail",ci="requestType",ui="email",hi="fromEmail",di="multiFactorInfo",pi="previousEmail",fi="data",gi="operation";function mi(t){var e=Ln(t=Fn(t),vi)||null,n=Ln(t,bi)||null,r=Ln(t,wi)||null;if(r=r&&Ei[r]||null,!e||!n||!r)throw new S("argument-error",vi+", "+bi+"and "+wi+" are required in a valid action code URL.");Gr(this,{apiKey:e,operation:r,code:n,continueUrl:Ln(t,yi)||null,languageCode:Ln(t,_i)||null,tenantId:Ln(t,Ci)||null})}var vi="apiKey",bi="oobCode",yi="continueUrl",_i="languageCode",wi="mode",Ci="tenantId",Ei={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ri,signIn:ii,verifyAndChangeEmail:oi,verifyEmail:"VERIFY_EMAIL"};function xi(t){try{return new mi(t)}catch(e){return null}}function Si(t){var e=t[Ai];if(void 0===e)throw new S("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new S("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[ki];if(n&&"object"==typeof n){e=n[Di];var r=n[Ni];if(n=n[Pi],"string"==typeof e&&e.length){if(this.a=e,void 0!==r&&"boolean"!=typeof r)throw new S("argument-error",Ni+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new S("argument-error",Pi+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new S("argument-error",Di+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new S("missing-android-pkg-name")}}else if(void 0!==n)throw new S("argument-error",ki+" property must be a non null object when specified.");if(this.f=null,(e=t[Oi])&&"object"==typeof e){if("string"==typeof(e=e[Ri])&&e.length)this.f=e;else if(void 0!==e)throw new S("argument-error",Ri+" property must be a non empty string when specified.")}else if(void 0!==e)throw new S("argument-error",Oi+" property must be a non null object when specified.");if(void 0!==(e=t[Ii])&&"boolean"!=typeof e)throw new S("argument-error",Ii+" property must be a boolean when specified.");if(this.c=!!e,void 0!==(t=t[Ti])&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new S("argument-error",Ti+" property must be a non empty string when specified.");this.i=t||null}var ki="android",Ti="dynamicLinkDomain",Ii="handleCodeInApp",Oi="iOS",Ai="url",Ni="installApp",Pi="minimumVersion",Di="packageName",Ri="bundleId";function Mi(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Li=null;function Fi(t){var e=Ui(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,E(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function ji(t){try{return new Fi(t)}catch(e){return null}}function Ui(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;nn;n++)for(var r=t.concat(e[n].split("")),i=0;i>4),64!=s&&(e(o<<4&240|s>>2),64!=a&&e(s<<6&192|a))}}(t,(function(t){e+=String.fromCharCode(t)})),e}(t))}catch(r){}return null}Fi.prototype.S=function(){return this.f},Fi.prototype.i=function(){return this.b},Fi.prototype.toString=function(){return this.g};var Vi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Bi=["client_id","response_type","scope","redirect_uri","state"],Hi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:Bi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:Bi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:Bi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:Vi},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function zi(t){for(var e in Hi)if(Hi[e].ea==t)return Hi[e];return null}function qi(t){var e={};e["facebook.com"]=Qi,e["google.com"]=Yi,e["github.com"]=Xi,e["twitter.com"]=Ji;var n=t&&t[Gi];try{if(n)return e[n]?new e[n](t):new Ki(t);if(void 0!==t[Wi])return new $i(t)}catch(r){}return null}var Wi="idToken",Gi="providerId";function $i(t){var e=t[Gi];if(!e&&t[Wi]){var n=ji(t[Wi]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,void 0!==t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Wr(this,"providerId",e),Wr(this,"isNewUser",n)}function Ki(t){$i.call(this,t),Wr(this,"profile",Kr((t=Dr(t.rawUserInfo||"{}"))||{}))}function Qi(t){if(Ki.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Xi(t){if(Ki.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",this.profile&&this.profile.login||null)}function Yi(t){if(Ki.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ji(t){if(Ki.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Wr(this,"username",t.screenName||null)}function Zi(t){var e=Fn(t),n=Ln(e,"link"),r=Ln(Fn(n),"link");return e=Ln(e,"deep_link_id"),Ln(Fn(e),"link")||e||r||n||t}function to(t,e){if(!t&&!e)throw new S("internal-error","Internal assert: no raw session string available");if(t&&e)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?eo:no}x(Ki,$i),x(Qi,Ki),x(Xi,Ki),x(Yi,Ki),x(Ji,Ki);var eo="enroll",no="signin";function ro(){}function io(t,e){return t.then((function(t){if(t[qs]){var n=ji(t[qs]);if(!n||e!=n.h)throw new S("user-mismatch");return t}throw new S("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==I+"user-not-found"?new S("user-mismatch"):t}))}function oo(t,e){if(!e)throw new S("internal-error","failed to construct a credential");this.a=e,Wr(this,"providerId",t),Wr(this,"signInMethod",t)}function so(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function ao(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new oo(t.providerId,t.pendingToken)}catch(e){}return null}function lo(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Wr(this,"idToken",e.idToken),e.accessToken&&Wr(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Wr(this,"nonce",e.nonce),e.pendingToken&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Wr(this,"accessToken",e.oauthToken),Wr(this,"secret",e.oauthTokenSecret)}Wr(this,"providerId",t),Wr(this,"signInMethod",n)}function co(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:Qn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function uo(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new lo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function ho(t,e){this.Oc=e||[],Gr(this,{providerId:t,isOAuthProvider:!0}),this.Fb={},this.lb=(zi(t)||{}).Ha||null,this.kb=null}function po(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');ho.call(this,t,[])}function fo(t){ho.call(this,t,Bi),this.a=[]}function go(){fo.call(this,"facebook.com")}function mo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new go).credential({accessToken:e})}function vo(){fo.call(this,"github.com")}function bo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return g(t)&&(e=t.accessToken),(new vo).credential({accessToken:e})}function yo(){fo.call(this,"google.com"),this.Aa("profile")}function _o(t,e){var n=t;return g(t)&&(n=t.idToken,e=t.accessToken),(new yo).credential({idToken:n,accessToken:e})}function wo(){ho.call(this,"twitter.com",Vi)}function Co(t,e){var n=t;if(g(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new lo("twitter.com",n,"twitter.com")}function Eo(t,e,n){this.a=t,this.f=e,Wr(this,"providerId","password"),Wr(this,"signInMethod",n===So.EMAIL_LINK_SIGN_IN_METHOD?So.EMAIL_LINK_SIGN_IN_METHOD:So.EMAIL_PASSWORD_SIGN_IN_METHOD)}function xo(t){return t&&t.email&&t.password?new Eo(t.email,t.password,t.signInMethod):null}function So(){Gr(this,{providerId:"password",isOAuthProvider:!1})}function ko(t,e){if(!(e=To(e)))throw new S("argument-error","Invalid email link!");return new Eo(t,e.code,So.EMAIL_LINK_SIGN_IN_METHOD)}function To(t){return(t=xi(t=Zi(t)))&&t.operation===ii?t:null}function Io(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new S("internal-error");this.a=t,Wr(this,"providerId","phone"),this.ea="phone",Wr(this,"signInMethod","phone")}function Oo(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return z(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new Io(e)}return null}function Ao(t){return t.a.Ja&&t.a.da?{temporaryProof:t.a.Ja,phoneNumber:t.a.da}:{sessionInfo:t.a.bb,code:t.a.ab}}function No(t){try{this.a=t||e.auth()}catch(n){throw new S("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Gr(this,{providerId:"phone",isOAuthProvider:!1})}function Po(t,e){if(!t)throw new S("missing-verification-id");if(!e)throw new S("missing-verification-code");return new Io({bb:t,ab:e})}function Do(t){if(t.temporaryProof&&t.phoneNumber)return new Io({Ja:t.temporaryProof,da:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,s=t&&t.pendingToken;try{switch(e){case"google.com":return _o(o,n);case"facebook.com":return mo(n);case"github.com":return bo(n);case"twitter.com":return Co(n,r);default:return n||r||o||s?s?0==e.indexOf("saml.")?new oo(e,s):new lo(e,{pendingToken:s,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new fo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(a){return null}}function Ro(t){if(!t.isOAuthProvider)throw new S("invalid-oauth-provider")}function Mo(t,e,n,r,i,o,s){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=s||null,this.a=i||null,!this.g&&!this.a)throw new S("invalid-auth-event");if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Lo(t){return(t=t||{}).type?new Mo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&k(t.error),t.postBody,t.tenantId):null}function Fo(){this.b=null,this.a=[]}to.prototype.Fa=function(){return ke(this.a?this.a:this.b)},to.prototype.v=function(){return this.type==eo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ro.prototype.ia=function(){},ro.prototype.b=function(){},ro.prototype.c=function(){},ro.prototype.v=function(){},oo.prototype.ia=function(t){return ca(t,so(this))},oo.prototype.b=function(t,e){var n=so(this);return n.idToken=e,ua(t,n)},oo.prototype.c=function(t,e){return io(ha(t,so(this)),e)},oo.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},lo.prototype.ia=function(t){return ca(t,co(this))},lo.prototype.b=function(t,e){var n=co(this);return n.idToken=e,ua(t,n)},lo.prototype.c=function(t,e){return io(ha(t,co(this)),e)},lo.prototype.v=function(){var t={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},ho.prototype.Ia=function(t){return this.Fb=ft(t),this},x(po,ho),x(fo,ho),fo.prototype.Aa=function(t){return $(this.a,t)||this.a.push(t),this},fo.prototype.Nb=function(){return Y(this.a)},fo.prototype.credential=function(t,e){var n;if(!(n=g(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new lo(this.providerId,n,this.providerId)},x(go,fo),Wr(go,"PROVIDER_ID","facebook.com"),Wr(go,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),x(vo,fo),Wr(vo,"PROVIDER_ID","github.com"),Wr(vo,"GITHUB_SIGN_IN_METHOD","github.com"),x(yo,fo),Wr(yo,"PROVIDER_ID","google.com"),Wr(yo,"GOOGLE_SIGN_IN_METHOD","google.com"),x(wo,ho),Wr(wo,"PROVIDER_ID","twitter.com"),Wr(wo,"TWITTER_SIGN_IN_METHOD","twitter.com"),Eo.prototype.ia=function(t){return this.signInMethod==So.EMAIL_LINK_SIGN_IN_METHOD?Ga(t,ya,{email:this.a,oobCode:this.f}):Ga(t,Ba,{email:this.a,password:this.f})},Eo.prototype.b=function(t,e){return this.signInMethod==So.EMAIL_LINK_SIGN_IN_METHOD?Ga(t,_a,{idToken:e,email:this.a,oobCode:this.f}):Ga(t,Da,{idToken:e,email:this.a,password:this.f})},Eo.prototype.c=function(t,e){return io(this.ia(t),e)},Eo.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Gr(So,{PROVIDER_ID:"password"}),Gr(So,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Gr(So,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Io.prototype.ia=function(t){return t.cb(Ao(this))},Io.prototype.b=function(t,e){var n=Ao(this);return n.idToken=e,Ga(t,za,n)},Io.prototype.c=function(t,e){var n=Ao(this);return n.operation="REAUTH",io(t=Ga(t,qa,n),e)},Io.prototype.v=function(){var t={providerId:"phone"};return this.a.bb&&(t.verificationId=this.a.bb),this.a.ab&&(t.verificationCode=this.a.ab),this.a.Ja&&(t.temporaryProof=this.a.Ja),this.a.da&&(t.phoneNumber=this.a.da),t},No.prototype.cb=function(t,e){var n=this.a.b;return ke(e.verify()).then((function(r){if("string"!=typeof r)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var i=g(t)?t.session:null,o=g(t)?t.phoneNumber:t;return(i&&i.type==eo?i.Fa().then((function(t){return function(t,e){return Ga(t,Ma,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==no?i.Fa().then((function(e){return function(t,e){return Ga(t,La,e).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(t,e){return Ga(t,Na,e)}(n,{phoneNumber:o,recaptchaToken:r})).then((function(t){return"function"==typeof e.reset&&e.reset(),t}),(function(t){throw"function"==typeof e.reset&&e.reset(),t}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Gr(No,{PROVIDER_ID:"phone"}),Gr(No,{PHONE_SIGN_IN_METHOD:"phone"}),Mo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Mo.prototype.S=function(){return this.h},Mo.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var jo,Uo=null;function Vo(t){var e="unauthorized-domain",n=void 0,r=Fn(t);t=r.b,"chrome-extension"==(r=r.f)?n=Bt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Bt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",S.call(this,e,n)}function Bo(t,e,n){S.call(this,t,n),(t=e||{}).Gb&&Wr(this,"email",t.Gb),t.da&&Wr(this,"phoneNumber",t.da),t.credential&&Wr(this,"credential",t.credential),t.Wb&&Wr(this,"tenantId",t.Wb)}function Ho(t){if(t.code){var e=t.code||"";0==e.indexOf(I)&&(e=e.substring(I.length));var n={credential:Do(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new S(e,t.message||void 0);return new Bo(e,n,t.message)}return null}function zo(){}function qo(){}function Wo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=function t(e){return e.c?e.c:e.a?t(e.a):(M("Root logger has no level set."),null)}(this).value)for(f(e)&&(e=e()),t=new Qo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var ns={},rs=null;function is(t){var e;if(rs||(rs=new Xo(""),ns[""]=rs,rs.c=ts),!(e=ns[t])){e=new Xo(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=is(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,ns[t]=e}return e}function os(t,e){t&&t.log(es,e,void 0)}function ss(t){this.f=t}function as(t){yn.call(this),this.s=t,this.readyState=ls,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=is("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}x(ss,zo),ss.prototype.a=function(){return new as(this.f)},ss.prototype.b=function(t){return function(){return t}}({}),x(as,yn);var ls=0;function cs(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function us(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,hs(t)}function hs(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ds(t){yn.call(this),this.headers=new Tn,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=ps,this.w=this.R=!1}(t=as.prototype).open=function(t,e){if(this.readyState!=ls)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,hs(this)},t.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.s.fetch(new Request(this.g,e)).then(this.sc.bind(this),this.Sa.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,us(this,!1)),this.readyState=ls},t.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,hs(this)),this.a&&(this.readyState=3,hs(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==l.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,cs(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},t.nc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?us(this,!0):hs(this),3==this.readyState&&cs(this)}},t.rc=function(t){this.a&&(this.response=this.responseText=t,us(this,!0))},t.qc=function(t){this.a&&(this.response=t,us(this,!0))},t.Sa=function(t){var e=this.h;e&&e.log(Zo,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&us(this,!0)},t.setRequestHeader=function(t,e){this.i.append(t,e)},t.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(Zo,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(Zo,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},x(ds,yn);var ps="";ds.prototype.b=is("goog.net.XhrIo");var fs=/^https?$/i,gs=["POST","PUT"];function ms(t){return"content-type"==t.toLowerCase()}function vs(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,bs(t),_s(t)}function bs(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ys(t){if(t.c&&void 0!==a)if(t.B[1]&&4==Cs(t)&&2==Es(t))os(t.b,xs(t,"Local request error detected and ignored"));else if(t.i&&4==Cs(t))En(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==Cs(t)){os(t.b,xs(t,"Request complete")),t.c=!1;try{var e,n=Es(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.l).match(An)[1]||null;if(!o&&l.self&&l.self.location){var s=l.self.location.protocol;o=s.substr(0,s.length-1)}i=!fs.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var c=2=e.l&&e.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Ps(this),Ts(this),ks(this,!1,t))}},Ss.prototype.m=function(t,e){this.i=!1,ks(this,t,e)},Ss.prototype.then=function(t,e,n){var r,i,o=new ye((function(t,e){r=t,i=e}));return Is(this,r,(function(t){t instanceof Ps?o.cancel():i(t)})),o.then(t,e,n)},Ss.prototype.$goog_Thenable=!0,x(Ns,D),Ns.prototype.message="Deferred has already fired",Ns.prototype.name="AlreadyCalledError",x(Ps,D),Ps.prototype.message="Deferred was canceled",Ps.prototype.name="CanceledError",Ds.prototype.c=function(){throw delete Rs[this.a],this.b};var Rs={};function Ms(t){var e={},n=e.document||document,r=xt(t).toString(),i=de(document,"SCRIPT"),o={Tb:i,Ka:void 0},s=new Ss(o),a=null,h=null!=e.timeout?e.timeout:5e3;return 0t||$t&&ne&&!(9e?null:"string"==typeof t?t.charAt(e):t[e]}(o.X()),r=l.FormData&&e instanceof l.FormData,!$(gs,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{ws(t),0e;e++){var o=(0|n[e-16])+(((i=0|n[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,s=(0|n[e-7])+(((r=0|n[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+s|0}r=0|t.a[0],i=0|t.a[1];var a=0|t.a[2],l=0|t.a[3],c=0|t.a[4],u=0|t.a[5],h=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;s=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((s=(s=c&u^~c&h)+(0|Kl[e])|0)+(0|n[e])|0)|0,o=h,h=u,u=c,c=l+s|0,l=a,a=i,i=r,r=s+d|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+a|0,t.a[3]=t.a[3]+l|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+u|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function ic(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"==typeof e)for(;r=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(rc(t),i=0)}}t.c=i,t.g+=n}Yl.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):Y(this.h)};var oc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function sc(){Yl.call(this,8,ac)}x(sc,Yl);var ac=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function lc(t,e,n,r,i){this.u=t,this.i=e,this.l=n,this.m=r||null,this.s=i||null,this.h=e+":"+n,this.w=new Xl,this.g=new $l(this.h),this.f=null,this.b=[],this.a=this.c=null}function cc(t){return new S("invalid-cordova-configuration",t)}function uc(t,e){for(var n=0;ne.c?56-e.c:e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(rc(e),r=n=0;r>i&255;return function(t){return W(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}(o),u.sessionId=o;var h=al(t.u,t.i,t.l,e,n,null,r,t.m,u,t.s,i);return t.ka().then((function(){var e=t.h;return t.w.a.set(Ql,s.v(),e)})).then((function(){var e=Sr("cordova.plugins.browsertab.isAvailable",l);if("function"!=typeof e)throw new S("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!=typeof(n=Sr("cordova.plugins.browsertab.openUrl",l)))throw new S("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=Sr("cordova.InAppBrowser.open",l)))throw new S("invalid-cordova-configuration");e=xr(),t.a=n(h,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,t,e,n,r)})).then((function(){return new ye((function(t,e){a=function(){var e=Sr("cordova.plugins.browsertab.close",l);return t(),"function"==typeof e&&e(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(a),u=function(){jr()&&c()},o.addEventListener("resume",c=function(){s||(s=xn(2e3).then((function(){e(new S("redirect-cancelled-by-user"))})))},!1),xr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",u,!1)})).o((function(t){return dc(i).then((function(){throw t}))}))})).ma((function(){c&&o.removeEventListener("resume",c,!1),u&&o.removeEventListener("visibilitychange",u,!1),s&&s.cancel(),a&&i.Qa(a),i.c=null}))},t.Ca=function(t){this.b.push(t),hc(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Mo("unknown",null,null,null,new S("no-auth-event")),t(e))}))},t.Qa=function(t){Q(this.b,(function(e){return e==t}))};var fc={name:"pendingRedirect",F:"session"};function gc(t){return Wl(t.b,fc,t.a)}function mc(t,e,n){this.i={},this.w=0,this.D=t,this.u=e,this.m=n,this.h=[],this.f=!1,this.l=w(this.s,this),this.b=new Ac,this.B=new Mc,this.g=new pc(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=vc(this.D,this.u,this.m,T)}function vc(t,n,r,i){var o=e.SDK_VERSION||null;return gr()?new lc(t,n,r,o,i):new rl(t,n,r,o,i)}function bc(t){t.f||(t.f=!0,t.a.Ca(t.l));var e=t.a;return t.a.ka().o((function(n){throw t.a==e&&t.reset(),n}))}function yc(t){t.a.Ub()&&bc(t).o((function(e){var n=new Mo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Sc(e)&&t.s(n)})),t.a.Qb()||Nc(t.b)}function _c(t,e){$(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(fc,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?gc(t.g).then((function(){bc(t).o((function(e){var n=new Mo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Sc(e)&&t.s(n)}))})):yc(t)})).o((function(){yc(t)}))}function wc(t,e){Q(t.h,(function(t){return t==e}))}mc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=vc(this.D,this.u,this.m),this.i={}},mc.prototype.s=function(t){if(!t)throw new S("invalid-auth-event");if(6e5<=E()-this.w&&(this.i={},this.w=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;nt.f&&(t.a=t.f),e)}(e,n)).then((function(){return function(){var t=l.document,e=null;return jr()||!t?ke():new ye((function(n){e=function(){jr()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).o((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}()})).then((function(){return e.h()})).then((function(){t(e,!0)})).o((function(n){e.i(n)&&t(e,!1)}))}(this,!0)},Yc.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Jc.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Zc(this)}},Jc.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Te(new S("user-token-expired")):t||!this.b||E()>Zc(this)-3e4?this.a?function(t,e){return function(t,e){return new ye((function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?Ys(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?r(Ka(t)):t.access_token&&t.refresh_token?n(t):r(new S("internal-error")):r(new S("network-request-failed"))}),"POST",Qn(e).toString(),t.g,t.m.get()):r(new S("internal-error"))}))}(t.c,e).then((function(e){return t.b=ji(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).o((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}(this,{grant_type:"refresh_token",refresh_token:this.a}):ke(null):ke({accessToken:this.b.toString(),refreshToken:this.a})},eu.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},x(ru,yn),ru.prototype.va=function(t){this.oa=t,Qs(this.a,t)},ru.prototype.ja=function(){return this.oa},ru.prototype.Ea=function(){return Y(this.W)},ru.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Wr(ru.prototype,"providerId","firebase"),(t=ru.prototype).reload=function(){var t=this;return Ou(this,gu(this).then((function(){return wu(t).then((function(){return hu(t)})).then(fu)})))},t.mc=function(t){return this.I(t).then((function(t){return new Uc(t)}))},t.I=function(t){var e=this;return Ou(this,gu(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new S("internal-error");return t.accessToken!=e.xa&&(uu(e,t.accessToken),e.dispatchEvent(new Kc("tokenChanged"))),yu(e,"refreshToken",t.refreshToken),t.accessToken})))},t.Ic=function(t){if(!(t=t.users)||!t.length)throw new S("internal-error");pu(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?W(t,(function(t){return new nu(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;nthis.s&&(this.s=0),0==this.s&&Xu(this)&&cu(Xu(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.m.push(t),Zu(this,this.h.then((function(){e.l||$(e.m,t)&&t(Yu(e))})))},t.removeAuthTokenListener=function(t){Q(this.m,(function(e){return e==t}))},t.delete=function(){this.l=!0;for(var t=0;ti||i>=xh.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=xh[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new S("argument-error",t+" failed: "+r)}(t=fh.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=_h(this,ke().then((function(){if(Ir()&&!vr())return fr();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.w())})).then((function(e){return t.g=e,Ga(t.s,Oa,{})})).then((function(e){t.a[vh]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},t.render=function(){wh(this);var t=this;return _h(this,this.Ga().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=se(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),s=r[1];if(!oe&&s&&(s.name||s.type)){if(o=["<",o],s.name&&o.push(' name="',Ht(s.name),'"'),s.type){o.push(' type="',Ht(s.type),'"');var a={};mt(a,s),delete a.type,s=a}o.push(">"),o=o.join("")}return o=de(i,o),s&&("string"==typeof s?o.className=s:Array.isArray(s)?o.className=s.join(" "):ae(o,s)),2>6,128|63&r);else if(55296==(64512&r))if(n>18,128|r>>12&63,128|r>>6&63,128|63&r)}else e.push(239,191,189);else 56320==(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function C(t,e){switch(t){case v.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw g(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case v.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw g(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(e)}catch(c){throw g(t,"Invalid character found")}for(var a=new Uint8Array(s.length),l=0;l][;base64],");var n,r=e[1]||null;null!=r&&(this.base64=(n=r).length>=";base64".length&&";base64"===n.substring(n.length-";base64".length),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}}(),x={STATE_CHANGED:"state_changed"},S={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function k(t){switch(t){case"running":case"pausing":case"canceling":return S.RUNNING;case"paused":return S.PAUSED;case"success":return S.SUCCESS;case"canceled":return S.CANCELED;case"error":default:return S.ERROR}}function T(t){return null!=t}function I(t){return void 0!==t}function O(t){return"function"==typeof t}function A(t){return"object"==typeof t}function N(t){return A(t)&&null!==t}function P(t){return"string"==typeof t||t instanceof String}function D(t){return R(t)&&Number.isInteger(t)}function R(t){return"number"==typeof t||t instanceof Number}function M(t){return L()&&t instanceof Blob}function L(){return"undefined"!=typeof Blob}var F=function(t){return t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT",t}({}),j=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=F.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=F.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=F.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw m("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),T(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return T(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw m("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw m("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw m("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){T(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){T(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),U=function(){function t(){}return t.prototype.createXhrIo=function(){return new j},t}();function V(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function B(){for(var t=[],e=0;e0})).join("/");return 0===t.length?n:t+"/"+n}function G(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function $(t){return"https://firebasestorage.googleapis.com/v0"+t}function K(t){var e=encodeURIComponent,n="?";for(var r in t)t.hasOwnProperty(r)&&(n=n+(e(r)+"=")+e(t[r])+"&");return n.slice(0,-1)}function Q(t,e){return e}var X=function(){return function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||Q}}(),Y=null;function J(t,e,n){var r=q(e);return null===r?null:function(t,e,n){for(var r={type:"file"},i=n.length,o=0;o1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==e)throw"Unknown option: "+e;if(t.pageToken&&!P(t.pageToken))throw"Expected pageToken to be string."}}var nt=function(){return function(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();function rt(t){if(!t)throw c()}function it(t,e){return function(n,r){var i=J(t,r,e);return rt(null!==i),i}}function ot(t){return function(e,n){var r;return(r=401===e.getStatus()?new a("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new a("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new a("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),r}}function st(t){var e=ot(t);return function(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=new a("object-not-found","Object '"+t.path+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function at(t,e,n){var r=$(e.fullServerUrl()),i=t.maxOperationRetryTime,o=new nt(r,"GET",it(t,n),i);return o.errorHandler=st(e),o}function lt(t,e,n,r,i){var o={};o.prefix=e.isRoot?"":e.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var s=$(e.bucketOnlyServerUrl()),a=t.maxOperationRetryTime,l=new nt(s,"GET",function(t,e){return function(n,r){var i=function(t,e,n){var r=q(n);return null===r?null:function(t,e,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,o=n.prefixes;i=0))throw"Expected a number 0 or greater."}))}function xt(t,e){return new bt((function(e){if(!(null===e||T(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function St(t){return new bt((function(t){if(null!==t&&!O(t))throw"Expected a Function."}),t)}function kt(t){return function(){for(var e=[],n=0;n262144},t.prototype.start_=function(){"running"===this.state_&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.service_.getAuthToken().then((function(n){switch(e.state_){case"running":t(n);break;case"canceling":e.transition_("canceled");break;case"pausing":e.transition_("paused")}}))},t.prototype.createResumable_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s=dt(e,r,i),a={name:s.fullPath},l=$(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},u=Z(s,n),h=new nt(l,"POST",(function(t){var e;ft(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){rt(!1)}return rt(P(e)),e}),t.maxUploadRetryTime);return h.urlParams=a,h.headers=c,h.body=u,h.errorHandler=ot(e),h}(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_((function(n){var r=function(t,e,n,r){var i=new nt(n,"POST",(function(t){var e=ft(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){rt(!1)}n||rt(!1);var i=Number(n);return rt(!isNaN(i)),new pt(i,r.size(),"final"===e)}),t.maxUploadRetryTime);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=ot(e),i}(t.service_,t.location_,e,t.blob_),i=t.service_.makeRequest(r,n);t.request_=i,i.getPromise().then((function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.continueUpload_=function(){var t=this,e=262144*this.chunkMultiplier_,n=new pt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=function(t,e,n,r,i,o,s,l){var c=new pt(0,0);if(s?(c.current=s.current,c.total=s.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new a("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var u=c.total-c.current,d=u;i>0&&(d=Math.min(d,i));var p=c.current,f={"X-Goog-Upload-Command":d===u?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},g=r.slice(p,p+d);if(null===g)throw h();var m=new nt(n,"POST",(function(t,n){var i,s=ft(t,["active","final"]),a=c.current+d,l=r.size();return i="final"===s?it(e,o)(t,n):null,new pt(a,l,"final"===s,i)}),e.maxUploadRetryTime);return m.headers=f,m.body=g.uploadData(),m.progressCallback=l||null,m.errorHandler=ot(t),m}(t.location_,t.service_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(l){return t.error_=l,void t.transition_("error")}var s=t.service_.makeRequest(o,i);t.request_=s,s.getPromise().then((function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_("success")):t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_((function(e){var n=at(t.service_,t.location_,t.mappings_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_("success")}),t.metadataErrorHandler_)}))},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"},a=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();s["Content-Type"]="multipart/related; boundary="+a;var l=dt(e,r,i),c=Z(l,n),u=H.getBlob("--"+a+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+c+"\r\n--"+a+"\r\nContent-Type: "+l.contentType+"\r\n\r\n",r,"\r\n--"+a+"--");if(null===u)throw h();var d={name:l.fullPath},p=$(o),f=t.maxUploadRetryTime,g=new nt(p,"POST",it(t,n),f);return g.urlParams=d,g.headers=s,g.body=u.uploadData(),g.errorHandler=ot(e),g}(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_("success")}),t.errorHandler_)}))},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case"canceling":case"pausing":this.state_=t,null!==this.request_&&this.request_.cancel();break;case"running":var e="paused"===this.state_;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case"paused":this.state_=t,this.notifyObservers_();break;case"canceled":this.error_=u(),this.state_=t,this.notifyObservers_();break;case"error":case"success":this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case"pausing":this.transition_("paused");break;case"canceling":this.transition_("canceled");break;case"running":this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=k(this.state_);return new mt(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==x.STATE_CHANGED)throw"Expected one of the event types: ["+x.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",s=St(!0).validator,a=xt(null,!0).validator;function l(t){try{return void s(t)}catch(e){}try{if(a(t),!(I(t.next)||I(t.error)||I(t.complete)))throw"";return}catch(e){throw o}}var c=[yt(i),xt(l,!0),St(!0),St(!0)];vt("on",c,arguments);var u=this;function h(t){return function(e,n,i){null!==t&&vt("on",t,arguments);var o=new gt(e,n,r);return u.addObserver_(o),function(){u.removeObserver_(o)}}}function d(t){if(null===t)throw o;l(t)}var p=[xt(d),St(!0),St(!0)],f=!(I(e)||I(n)||I(r));return f?h(p):h(null)(e,n,r)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(k(this.state_)){case S.SUCCESS:kt(this.resolve_.bind(null,this.snapshot))();break;case S.CANCELED:case S.ERROR:kt(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(k(this.state_)){case S.RUNNING:case S.PAUSED:t.next&&kt(t.next.bind(t,this.snapshot))();break;case S.SUCCESS:t.complete&&kt(t.complete.bind(t))();break;case S.CANCELED:case S.ERROR:t.error&&kt(t.error.bind(t,this.error_))();break;default:t.error&&kt(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){vt("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){vt("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){vt("cancel",[],arguments);var t="running"===this.state_||"pausing"===this.state_;return t&&this.transition_("canceling"),t},t}(),It=function(){function t(t,e){this.service=t,this.location=e instanceof z?e:z.makeFromUrl(e)}return t.prototype.toString=function(){return vt("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return function(){if(Y)return Y;var t=[];t.push(new X("bucket")),t.push(new X("generation")),t.push(new X("metageneration")),t.push(new X("name","fullPath",!0));var e=new X("name");e.xform=function(t,e){return function(t){return!P(t)||t.length<2?t:G(t)}(e)},t.push(e);var n=new X("size");return n.xform=function(t,e){return T(e)?Number(e):e},t.push(n),t.push(new X("timeCreated")),t.push(new X("updated")),t.push(new X("md5Hash",null,!0)),t.push(new X("cacheControl",null,!0)),t.push(new X("contentDisposition",null,!0)),t.push(new X("contentEncoding",null,!0)),t.push(new X("contentLanguage",null,!0)),t.push(new X("contentType",null,!0)),t.push(new X("metadata","customMetadata",!0)),Y=t}()},t.prototype.child=function(t){vt("child",[yt()],arguments);var e=W(this.location.path,t),n=new z(this.location.bucket,e);return this.newRef(this.service,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this.location.path);if(null===t)return null;var e=new z(this.location.bucket,t);return this.newRef(this.service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new z(this.location.bucket,"");return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return G(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),vt("put",[_t(),wt(!0)],arguments),this.throwIfRoot_("put"),new Tt(this,this.service,this.location,this.mappings(),new H(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=v.RAW),vt("putString",[yt(),yt(b,!0),wt(!0)],arguments),this.throwIfRoot_("putString");var r=_(e,t),i=Object.assign({},n);return!T(i.contentType)&&T(r.contentType)&&(i.contentType=r.contentType),new Tt(this,this.service,this.location,this.mappings(),new H(r.data,!0),i)},t.prototype.delete=function(){var t=this;return vt("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then((function(e){var n=ht(t.service,t.location);return t.service.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){vt("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.list({pageToken:e})];case 1:return n=o.sent(),(r=t.prefixes).push.apply(r,n.prefixes),(i=t.items).push.apply(i,n.items),null==n.nextPageToken?[3,3]:[4,this.listAllHelper(t,n.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},t.prototype.list=function(t){vt("list",[Ct(!0)],arguments);var e=this;return this.service.getAuthToken().then((function(n){var r=t||{},i=lt(e.service,e.location,"/",r.pageToken,r.maxResults);return e.service.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return vt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(e){var n=at(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return vt("updateMetadata",[wt()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var r=ut(e.service,e.location,t,e.mappings());return e.service.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return vt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(e){var n=ct(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw d();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new a("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(t)},t}(),Ot=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}(),At=function(){function t(t,e,n,r,i,o,s,a,l,c,u){var h=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=s,this.errorCallback_=a,this.progressCallback_=c,this.timeout_=l,this.pool_=u,this.promise_=new Promise((function(t,e){h.resolve_=t,h.reject_=e,h.start_()}))}return t.prototype.start_=function(){var t=this;function e(e,n){var r,i=t.resolve_,o=t.reject_,s=n.xhr;if(n.wasSuccessCode)try{var l=t.callback_(s,s.getResponseText());I(l)?i(l):i()}catch(h){o(h)}else null!==s?((r=c()).setServerResponseProp(s.getResponseText()),o(t.errorCallback_?t.errorCallback_(s,r):r)):o(r=n.canceled?t.appDelete_?f():u():new a("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new Nt(!1,null,!0)):this.backoffId_=function(e,n,r){var i=1,s=null,a=!1,l=0;function c(){return 2===l}var u=!1;function h(){for(var t=[],e=0;e=500&&t<600,n=-1!==[408,429].indexOf(t),r=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||r},t}(),Nt=function(){return function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n}}(),Pt=function(){function t(e,n,r,i){var o;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,this.authProvider_=n,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=r,this.bucket_=null!=i?z.makeFromBucketSpec(i):t.extractBucket_(null===(o=this.app_)||void 0===o?void 0:o.options),this.internals_=new Dt(this)}return t.extractBucket_=function(t){var e=null==t?void 0:t.storageBucket;return null==e?null:z.makeFromBucketSpec(e)},t.prototype.getAuthToken=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return(t=this.authProvider_.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:if(null!==(e=n.sent()))return[2,e.accessToken];n.label=2;case 2:return[2,null]}}))}))},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach((function(t){return t.cancel()})),this.requests_.clear()},t.prototype.makeStorageReference=function(t){return new It(this,t)},t.prototype.makeRequest=function(t,e){var n=this;if(this.deleted_)return new Ot(f());var r=function(t,e,n,r){var o=K(t.urlParams),s=t.url+o,a=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(a,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(a,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==i.a?i.a.SDK_VERSION:"AppManager")}(a),new At(s,t.method,a,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}(t,this.appId_,e,this.pool_);return this.requests_.add(r),r.getPromise().then((function(){return n.requests_.delete(r)}),(function(){return n.requests_.delete(r)})),r},t.prototype.ref=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(vt("ref",[yt(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new It(this,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!=typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{z.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return vt("refFromURL",[yt(e,!1)],arguments),new It(this,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){vt("setMaxUploadRetryTime",[Et()],arguments),this.maxUploadRetryTime_=t},Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxOperationRetryTime=function(t){vt("setMaxOperationRetryTime",[Et()],arguments),this.maxOperationRetryTime_=t},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),t}(),Dt=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},t}();function Rt(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new Pt(n,r,new U,e)}function Mt(t){var e={TaskState:S,TaskEvent:x,StringFormat:v,Storage:Pt,Reference:It};t.INTERNAL.registerComponent(new s.Component("storage",Rt,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.3.41")}Mt(i.a)},LvDl:function(t,e,n){(function(t){var r;(function(){var i="Expected a function",o="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",f="[object Map]",g="[object Number]",m="[object Object]",v="[object RegExp]",b="[object Set]",y="[object String]",_="[object Symbol]",w="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",x="[object Float32Array]",S="[object Float64Array]",k="[object Int8Array]",T="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",A="[object Uint16Array]",N="[object Uint32Array]",P=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,R=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,F=RegExp(M.source),j=RegExp(L.source),U=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,z=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,G=RegExp(W.source),$=/^\s+|\s+$/g,K=/^\s+/,Q=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Y=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/\\(\\)?/g,et=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,rt=/^[-+]0x[0-9a-f]+$/i,it=/^0b[01]+$/i,ot=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ut=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="["+dt+"]",ft="["+ht+"]",gt="\\d+",mt="[a-z\\xdf-\\xf6\\xf8-\\xff]",vt="[^\\ud800-\\udfff"+dt+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",bt="\\ud83c[\\udffb-\\udfff]",yt="[^\\ud800-\\udfff]",_t="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+mt+"|"+vt+")",xt="(?:"+Ct+"|"+vt+")",St="(?:"+ft+"|"+bt+")?",kt="[\\ufe0e\\ufe0f]?"+St+"(?:\\u200d(?:"+[yt,_t,wt].join("|")+")[\\ufe0e\\ufe0f]?"+St+")*",Tt="(?:"+["[\\u2700-\\u27bf]",_t,wt].join("|")+")"+kt,It="(?:"+[yt+ft+"?",ft,_t,wt,"[\\ud800-\\udfff]"].join("|")+")",Ot=RegExp("['\u2019]","g"),At=RegExp(ft,"g"),Nt=RegExp(bt+"(?="+bt+")|"+It+kt,"g"),Pt=RegExp([Ct+"?"+mt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[pt,Ct,"$"].join("|")+")",xt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[pt,Ct+Et,"$"].join("|")+")",Ct+"?"+Et+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ct+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Tt].join("|"),"g"),Dt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Lt=-1,Ft={};Ft[x]=Ft[S]=Ft[k]=Ft[T]=Ft[I]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[A]=Ft[N]=!0,Ft[a]=Ft[l]=Ft[C]=Ft[c]=Ft[E]=Ft[u]=Ft[h]=Ft[d]=Ft[f]=Ft[g]=Ft[m]=Ft[v]=Ft[b]=Ft[y]=Ft[w]=!1;var jt={};jt[a]=jt[l]=jt[C]=jt[E]=jt[c]=jt[u]=jt[x]=jt[S]=jt[k]=jt[T]=jt[I]=jt[f]=jt[g]=jt[m]=jt[v]=jt[b]=jt[y]=jt[_]=jt[O]=jt["[object Uint8ClampedArray]"]=jt[A]=jt[N]=!0,jt[h]=jt[d]=jt[w]=!1;var Ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Bt=parseInt,Ht="object"==typeof global&&global&&global.Object===Object&&global,zt="object"==typeof self&&self&&self.Object===Object&&self,qt=Ht||zt||Function("return this")(),Wt=e&&!e.nodeType&&e,Gt=Wt&&"object"==typeof t&&t&&!t.nodeType&&t,$t=Gt&&Gt.exports===Wt,Kt=$t&&Ht.process,Qt=function(){try{return Gt&&Gt.require&&Gt.require("util").types||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),Xt=Qt&&Qt.isArrayBuffer,Yt=Qt&&Qt.isDate,Jt=Qt&&Qt.isMap,Zt=Qt&&Qt.isRegExp,te=Qt&&Qt.isSet,ee=Qt&&Qt.isTypedArray;function ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function re(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function ce(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function Ne(t,e){for(var n=t.length;n--&&be(e,t[n],0)>-1;);return n}function Pe(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var De=Ee({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Re=Ee({"&":"&","<":"<",">":">",'"':""","'":"'"});function Me(t){return"\\"+Ut[t]}function Le(t){return Dt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function je(t,e){return function(n){return t(e(n))}}function Ue(t,e){for(var n=-1,r=t.length,i=0,s=[];++n",""":'"',"'":"'"}),We=function t(e){var n,r=(e=null==e?qt:We.defaults(qt.Object(),e,We.pick(qt,Mt))).Array,ht=e.Date,dt=e.Error,pt=e.Function,ft=e.Math,gt=e.Object,mt=e.RegExp,vt=e.String,bt=e.TypeError,yt=r.prototype,_t=gt.prototype,wt=e["__core-js_shared__"],Ct=pt.prototype.toString,Et=_t.hasOwnProperty,xt=0,St=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",kt=_t.toString,Tt=Ct.call(gt),It=qt._,Nt=mt("^"+Ct.call(Et).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=$t?e.Buffer:void 0,Ut=e.Symbol,Ht=e.Uint8Array,zt=Dt?Dt.allocUnsafe:void 0,Wt=je(gt.getPrototypeOf,gt),Gt=gt.create,Kt=_t.propertyIsEnumerable,Qt=yt.splice,ge=Ut?Ut.isConcatSpreadable:void 0,Ee=Ut?Ut.iterator:void 0,Ge=Ut?Ut.toStringTag:void 0,$e=function(){try{var t=Yi(gt,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ke=e.clearTimeout!==qt.clearTimeout&&e.clearTimeout,Qe=ht&&ht.now!==qt.Date.now&&ht.now,Xe=e.setTimeout!==qt.setTimeout&&e.setTimeout,Ye=ft.ceil,Je=ft.floor,Ze=gt.getOwnPropertySymbols,tn=Dt?Dt.isBuffer:void 0,en=e.isFinite,nn=yt.join,rn=je(gt.keys,gt),on=ft.max,sn=ft.min,an=ht.now,ln=e.parseInt,cn=ft.random,un=yt.reverse,hn=Yi(e,"DataView"),dn=Yi(e,"Map"),pn=Yi(e,"Promise"),fn=Yi(e,"Set"),gn=Yi(e,"WeakMap"),mn=Yi(gt,"create"),vn=gn&&new gn,bn={},yn=To(hn),_n=To(dn),wn=To(pn),Cn=To(fn),En=To(gn),xn=Ut?Ut.prototype:void 0,Sn=xn?xn.valueOf:void 0,kn=xn?xn.toString:void 0;function Tn(t){if(qs(t)&&!Ds(t)&&!(t instanceof Nn)){if(t instanceof An)return t;if(Et.call(t,"__wrapped__"))return Io(t)}return new An(t)}var In=function(){function t(){}return function(e){if(!zs(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function An(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Nn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Qn(t,e,n,r,i,o){var s,l=1&e,h=2&e,w=4&e;if(n&&(s=i?n(t,r,i,o):n(t)),void 0!==s)return s;if(!zs(t))return t;var P=Ds(t);if(P){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Et.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!l)return gi(t,s)}else{var D=to(t),R=D==d||D==p;if(Fs(t))return ci(t,l);if(D==m||D==a||R&&!i){if(s=h||R?{}:no(t),!l)return h?function(t,e){return mi(t,Zi(t),e)}(t,function(t,e){return t&&mi(e,wa(e),t)}(s,t)):function(t,e){return mi(t,Ji(t),e)}(t,Wn(s,t))}else{if(!jt[D])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case C:return ui(t);case c:case u:return new r(+t);case E:return function(t,e){var n=e?ui(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case x:case S:case k:case T:case I:case O:case"[object Uint8ClampedArray]":case A:case N:return hi(t,n);case f:return new r;case g:case y:return new r(t);case v:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case b:return new r;case _:return Sn?gt(Sn.call(t)):{}}}(t,D,l)}}o||(o=new Ln);var M=o.get(t);if(M)return M;o.set(t,s),Qs(t)?t.forEach((function(r){s.add(Qn(r,e,n,r,t,o))})):Ws(t)&&t.forEach((function(r,i){s.set(i,Qn(r,e,n,i,t,o))}));var L=P?void 0:(w?h?qi:zi:h?wa:_a)(t);return ie(L||t,(function(r,i){L&&(r=t[i=r]),Hn(s,i,Qn(r,e,n,i,t,o))})),s}function Xn(t,e,n){var r=n.length;if(null==t)return!r;for(t=gt(t);r--;){var i=n[r],o=t[i];if(void 0===o&&!(i in t)||!(0,e[i])(o))return!1}return!0}function Yn(t,e,n){if("function"!=typeof t)throw new bt(i);return bo((function(){t.apply(void 0,n)}),e)}function Jn(t,e,n,r){var i=-1,o=le,s=!0,a=t.length,l=[],c=e.length;if(!a)return l;n&&(e=ue(e,Te(n))),r?(o=ce,s=!1):e.length>=200&&(o=Oe,s=!1,e=new Mn(e));t:for(;++i-1},Dn.prototype.set=function(t,e){var n=this.__data__,r=zn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Pn,map:new(dn||Dn),string:new Pn}},Rn.prototype.delete=function(t){var e=Qi(this,t).delete(t);return this.size-=e?1:0,e},Rn.prototype.get=function(t){return Qi(this,t).get(t)},Rn.prototype.has=function(t){return Qi(this,t).has(t)},Rn.prototype.set=function(t,e){var n=Qi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.clear=function(){this.__data__=new Dn,this.size=0},Ln.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ln.prototype.get=function(t){return this.__data__.get(t)},Ln.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Dn){var r=n.__data__;if(!dn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(t,e),this.size=n.size,this};var Zn=yi(ar),tr=yi(lr,!0);function er(t,e){var n=!0;return Zn(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function nr(t,e,n){for(var r=-1,i=t.length;++r0&&n(a)?e>1?ir(a,e-1,n,r,i):he(i,a):r||(i[i.length]=a)}return i}var or=_i(),sr=_i(!0);function ar(t,e){return t&&or(t,e,_a)}function lr(t,e){return t&&sr(t,e,_a)}function cr(t,e){return ae(e,(function(e){return Vs(t[e])}))}function ur(t,e){for(var n=0,r=(e=oi(e,t)).length;null!=t&&ne}function fr(t,e){return null!=t&&Et.call(t,e)}function gr(t,e){return null!=t&&e in gt(t)}function mr(t,e,n){for(var i=n?ce:le,o=t[0].length,s=t.length,a=s,l=r(s),c=1/0,u=[];a--;){var h=t[a];a&&e&&(h=ue(h,Te(e))),c=sn(h.length,c),l[a]=!n&&(e||o>=120&&h.length>=120)?new Mn(a&&h):void 0}h=t[0];var d=-1,p=l[0];t:for(;++d=a?l:l*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(Sr(t,(function(t,n,i){return{criteria:ue(e,(function(e){return e(t)})),index:++r,value:t}})))}function Nr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)a!==t&&Qt.call(a,l,1),Qt.call(t,l,1);return t}function Dr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;io(i)?Qt.call(t,i,1):Yr(t,i)}}return t}function Rr(t,e){return t+Je(cn()*(e-t+1))}function Mr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Je(e/2))&&(t+=t)}while(e);return n}function Lr(t,e){return yo(po(t,e,Ga),t+"")}function Fr(t){return jn(Oa(t))}function jr(t,e){var n=Oa(t);return Co(n,Kn(e,0,n.length))}function Ur(t,e,n,r){if(!zs(t))return t;for(var i=-1,o=(e=oi(e,t)).length,s=o-1,a=t;null!=a&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i>>1,s=t[o];null!==s&&!Ys(s)&&(n?s<=e:s=200){var c=e?null:Mi(t);if(c)return Ve(c);s=!1,i=Oe,l=new Mn}else l=e?[]:a;t:for(;++r=r?t:zr(t,e,n)}var li=Ke||function(t){return qt.clearTimeout(t)};function ci(t,e){if(e)return t.slice();var n=t.length,r=zt?zt(n):new t.constructor(n);return t.copy(r),r}function ui(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function hi(t,e){var n=e?ui(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function di(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ys(t),s=void 0!==e,a=null===e,l=e==e,c=Ys(e);if(!a&&!c&&!o&&t>e||o&&s&&l&&!a&&!c||r&&s&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&t1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&oo(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=gt(e);++r-1?i[o?e[s]:s]:void 0}}function Si(t){return Hi((function(e){var n=e.length,r=n,o=An.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new bt(i);if(o&&!a&&"wrapper"==Gi(s))var a=new An([],!0)}for(r=a?r:n;++r1&&y.reverse(),h&&ca))return!1;var c=o.get(t),u=o.get(e);if(c&&u)return c==e&&u==t;var h=-1,d=!0,p=2&n?new Mn:void 0;for(o.set(t,e),o.set(e,t);++h-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(s,(function(n){var r="_."+n[0];e&n[1]&&!le(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Y);return e?e[1].split(J):[]}(r),n)))}function wo(t){var e=0,n=0;return function(){var r=an(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Co(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Ko(t,n)}));function es(t){var e=Tn(t);return e.__chain__=!0,e}function ns(t,e){return e(t)}var rs=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return $n(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Nn&&io(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ns,args:[i],thisArg:void 0}),new An(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)})),is=vi((function(t,e,n){Et.call(t,n)?++t[n]:Gn(t,n,1)})),os=xi(Po),ss=xi(Do);function as(t,e){return(Ds(t)?ie:Zn)(t,Ki(e,3))}function ls(t,e){return(Ds(t)?oe:tr)(t,Ki(e,3))}var cs=vi((function(t,e,n){Et.call(t,n)?t[n].push(e):Gn(t,n,[e])})),us=Lr((function(t,e,n){var i=-1,o="function"==typeof e,s=Ms(t)?r(t.length):[];return Zn(t,(function(t){s[++i]=o?ne(e,t,n):vr(t,e,n)})),s})),hs=vi((function(t,e,n){Gn(t,n,e)}));function ds(t,e){return(Ds(t)?ue:Sr)(t,Ki(e,3))}var ps=vi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),fs=Lr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&oo(t,e[0],e[1])?e=[]:n>2&&oo(e[0],e[1],e[2])&&(e=[e[0]]),Ar(t,ir(e,1),[])})),gs=Qe||function(){return qt.Date.now()};function ms(t,e,n){return e=n?void 0:e,Fi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function vs(t,e){var n;if("function"!=typeof e)throw new bt(i);return t=ra(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var bs=Lr((function(t,e,n){var r=1;if(n.length){var i=Ue(n,$i(bs));r|=32}return Fi(t,r,e,n,i)})),ys=Lr((function(t,e,n){var r=3;if(n.length){var i=Ue(n,$i(ys));r|=32}return Fi(e,r,t,n,i)}));function _s(t,e,n){var r,o,s,a,l,c,u=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new bt(i);function f(e){var n=r,i=o;return r=o=void 0,u=e,a=t.apply(i,n)}function g(t){return u=t,l=bo(v,e),h?f(t):a}function m(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-u>=s}function v(){var t=gs();if(m(t))return b(t);l=bo(v,function(t){var n=e-(t-c);return d?sn(n,s-(t-u)):n}(t))}function b(t){return l=void 0,p&&r?f(t):(r=o=void 0,a)}function y(){var t=gs(),n=m(t);if(r=arguments,o=this,c=t,n){if(void 0===l)return g(c);if(d)return li(l),l=bo(v,e),f(c)}return void 0===l&&(l=bo(v,e)),a}return e=oa(e)||0,zs(n)&&(h=!!n.leading,s=(d="maxWait"in n)?on(oa(n.maxWait)||0,e):s,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&li(l),u=0,r=c=o=l=void 0},y.flush=function(){return void 0===l?a:b(gs())},y}var ws=Lr((function(t,e){return Yn(t,1,e)})),Cs=Lr((function(t,e,n){return Yn(t,oa(e)||0,n)}));function Es(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new bt(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Es.Cache||Rn),n}function xs(t){if("function"!=typeof t)throw new bt(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Es.Cache=Rn;var Ss=si((function(t,e){var n=(e=1==e.length&&Ds(e[0])?ue(e[0],Te(Ki())):ue(ir(e,1),Te(Ki()))).length;return Lr((function(r){for(var i=-1,o=sn(r.length,n);++i=e})),Ps=br(function(){return arguments}())?br:function(t){return qs(t)&&Et.call(t,"callee")&&!Kt.call(t,"callee")},Ds=r.isArray,Rs=Xt?Te(Xt):function(t){return qs(t)&&dr(t)==C};function Ms(t){return null!=t&&Hs(t.length)&&!Vs(t)}function Ls(t){return qs(t)&&Ms(t)}var Fs=tn||ol,js=Yt?Te(Yt):function(t){return qs(t)&&dr(t)==u};function Us(t){if(!qs(t))return!1;var e=dr(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!$s(t)}function Vs(t){if(!zs(t))return!1;var e=dr(t);return e==d||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Bs(t){return"number"==typeof t&&t==ra(t)}function Hs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function zs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function qs(t){return null!=t&&"object"==typeof t}var Ws=Jt?Te(Jt):function(t){return qs(t)&&to(t)==f};function Gs(t){return"number"==typeof t||qs(t)&&dr(t)==g}function $s(t){if(!qs(t)||dr(t)!=m)return!1;var e=Wt(t);if(null===e)return!0;var n=Et.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ct.call(n)==Tt}var Ks=Zt?Te(Zt):function(t){return qs(t)&&dr(t)==v},Qs=te?Te(te):function(t){return qs(t)&&to(t)==b};function Xs(t){return"string"==typeof t||!Ds(t)&&qs(t)&&dr(t)==y}function Ys(t){return"symbol"==typeof t||qs(t)&&dr(t)==_}var Js=ee?Te(ee):function(t){return qs(t)&&Hs(t.length)&&!!Ft[dr(t)]},Zs=Pi(xr),ta=Pi((function(t,e){return t<=e}));function ea(t){if(!t)return[];if(Ms(t))return Xs(t)?ze(t):gi(t);if(Ee&&t[Ee])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ee]());var e=to(t);return(e==f?Fe:e==b?Ve:Oa)(t)}function na(t){return t?(t=oa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var e=na(t),n=e%1;return e==e?n?e-n:e:0}function ia(t){return t?Kn(ra(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Ys(t))return NaN;if(zs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=zs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace($,"");var n=it.test(t);return n||st.test(t)?Bt(t.slice(2),n?2:8):rt.test(t)?NaN:+t}function sa(t){return mi(t,wa(t))}function aa(t){return null==t?"":Qr(t)}var la=bi((function(t,e){if(co(e)||Ms(e))mi(e,_a(e),t);else for(var n in e)Et.call(e,n)&&Hn(t,n,e[n])})),ca=bi((function(t,e){mi(e,wa(e),t)})),ua=bi((function(t,e,n,r){mi(e,wa(e),t,r)})),ha=bi((function(t,e,n,r){mi(e,_a(e),t,r)})),da=Hi($n),pa=Lr((function(t,e){t=gt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&oo(e[0],e[1],i)&&(r=1);++n1),e})),mi(t,qi(t),n),r&&(n=Qn(n,7,Vi));for(var i=e.length;i--;)Yr(n,e[i]);return n})),Sa=Hi((function(t,e){return null==t?{}:function(t,e){return Nr(t,e,(function(e,n){return ma(t,n)}))}(t,e)}));function ka(t,e){if(null==t)return{};var n=ue(qi(t),(function(t){return[t]}));return e=Ki(e),Nr(t,n,(function(t,n){return e(t,n[0])}))}var Ta=Li(_a),Ia=Li(wa);function Oa(t){return null==t?[]:Ie(t,_a(t))}var Aa=Ci((function(t,e,n){return e=e.toLowerCase(),t+(n?Na(e):e)}));function Na(t){return Ua(aa(t).toLowerCase())}function Pa(t){return(t=aa(t))&&t.replace(lt,De).replace(At,"")}var Da=Ci((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ra=Ci((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ma=wi("toLowerCase"),La=Ci((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fa=Ci((function(t,e,n){return t+(n?" ":"")+Ua(e)})),ja=Ci((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Ua=wi("toUpperCase");function Va(t,e,n){return t=aa(t),void 0===(e=n?void 0:e)?function(t){return Rt.test(t)}(t)?function(t){return t.match(Pt)||[]}(t):function(t){return t.match(Z)||[]}(t):t.match(e)||[]}var Ba=Lr((function(t,e){try{return ne(t,void 0,e)}catch(n){return Us(n)?n:new dt(n)}})),Ha=Hi((function(t,e){return ie(e,(function(e){e=ko(e),Gn(t,e,bs(t[e],t))})),t}));function za(t){return function(){return t}}var qa=Si(),Wa=Si(!0);function Ga(t){return t}function $a(t){return Cr("function"==typeof t?t:Qn(t,1))}var Ka=Lr((function(t,e){return function(n){return vr(n,t,e)}})),Qa=Lr((function(t,e){return function(n){return vr(t,n,e)}}));function Xa(t,e,n){var r=_a(e),i=cr(e,r);null!=n||zs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=cr(e,_a(e)));var o=!(zs(n)&&"chain"in n&&!n.chain),s=Vs(t);return ie(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,he([this.value()],arguments))})})),t}function Ya(){}var Ja=Oi(ue),Za=Oi(se),tl=Oi(fe);function el(t){return so(t)?Ce(ko(t)):function(t){return function(e){return ur(e,t)}}(t)}var nl=Ni(),rl=Ni(!0);function il(){return[]}function ol(){return!1}var sl,al=Ii((function(t,e){return t+e}),0),ll=Ri("ceil"),cl=Ii((function(t,e){return t/e}),1),ul=Ri("floor"),hl=Ii((function(t,e){return t*e}),1),dl=Ri("round"),pl=Ii((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new bt(i);return t=ra(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=ms,Tn.assign=la,Tn.assignIn=ca,Tn.assignInWith=ua,Tn.assignWith=ha,Tn.at=da,Tn.before=vs,Tn.bind=bs,Tn.bindAll=Ha,Tn.bindKey=ys,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ds(t)?t:[t]},Tn.chain=es,Tn.chunk=function(t,e,n){e=(n?oo(t,e,n):void 0===e)?1:on(ra(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=r(Ye(i/e));oi?0:i+n),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=n>r?0:ia(r);n>>0)?(t=aa(t))&&("string"==typeof e||null!=e&&!Ks(e))&&!(e=Qr(e))&&Le(t)?ai(ze(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new bt(i);return e=null==e?0:on(ra(e),0),Lr((function(n){var r=n[e],i=ai(n,0,e);return r&&he(i,r),ne(t,this,i)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?zr(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?zr(t,0,(e=n||void 0===e?1:ra(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?zr(t,(e=r-(e=n||void 0===e?1:ra(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?Zr(t,Ki(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?Zr(t,Ki(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new bt(i);return zs(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_s(t,e,{leading:r,maxWait:e,trailing:o})},Tn.thru=ns,Tn.toArray=ea,Tn.toPairs=Ta,Tn.toPairsIn=Ia,Tn.toPath=function(t){return Ds(t)?ue(t,ko):Ys(t)?[t]:gi(So(aa(t)))},Tn.toPlainObject=sa,Tn.transform=function(t,e,n){var r=Ds(t),i=r||Fs(t)||Js(t);if(e=Ki(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:zs(t)&&Vs(o)?In(Wt(t)):{}}return(i?ie:ar)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return ms(t,1)},Tn.union=qo,Tn.unionBy=Wo,Tn.unionWith=Go,Tn.uniq=function(t){return t&&t.length?Xr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Xr(t,Ki(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Xr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Yr(t,e)},Tn.unzip=$o,Tn.unzipWith=Ko,Tn.update=function(t,e,n){return null==t?t:Jr(t,e,ii(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:Jr(t,e,ii(n),r)},Tn.values=Oa,Tn.valuesIn=function(t){return null==t?[]:Ie(t,wa(t))},Tn.without=Qo,Tn.words=Va,Tn.wrap=function(t,e){return ks(ii(e),t)},Tn.xor=Xo,Tn.xorBy=Yo,Tn.xorWith=Jo,Tn.zip=Zo,Tn.zipObject=function(t,e){return ni(t||[],e||[],Hn)},Tn.zipObjectDeep=function(t,e){return ni(t||[],e||[],Ur)},Tn.zipWith=ts,Tn.entries=Ta,Tn.entriesIn=Ia,Tn.extend=ca,Tn.extendWith=ua,Xa(Tn,Tn),Tn.add=al,Tn.attempt=Ba,Tn.camelCase=Aa,Tn.capitalize=Na,Tn.ceil=ll,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==e&&(e=(e=oa(e))==e?e:0),Kn(oa(t),e,n)},Tn.clone=function(t){return Qn(t,4)},Tn.cloneDeep=function(t){return Qn(t,5)},Tn.cloneDeepWith=function(t,e){return Qn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Qn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Xn(t,e,_a(e))},Tn.deburr=Pa,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=cl,Tn.endsWith=function(t,e,n){t=aa(t),e=Qr(e);var r=t.length,i=n=void 0===n?r:Kn(ra(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=Os,Tn.escape=function(t){return(t=aa(t))&&j.test(t)?t.replace(L,Re):t},Tn.escapeRegExp=function(t){return(t=aa(t))&&G.test(t)?t.replace(W,"\\$&"):t},Tn.every=function(t,e,n){var r=Ds(t)?se:er;return n&&oo(t,e,n)&&(e=void 0),r(t,Ki(e,3))},Tn.find=os,Tn.findIndex=Po,Tn.findKey=function(t,e){return me(t,Ki(e,3),ar)},Tn.findLast=ss,Tn.findLastIndex=Do,Tn.findLastKey=function(t,e){return me(t,Ki(e,3),lr)},Tn.floor=ul,Tn.forEach=as,Tn.forEachRight=ls,Tn.forIn=function(t,e){return null==t?t:or(t,Ki(e,3),wa)},Tn.forInRight=function(t,e){return null==t?t:sr(t,Ki(e,3),wa)},Tn.forOwn=function(t,e){return t&&ar(t,Ki(e,3))},Tn.forOwnRight=function(t,e){return t&&lr(t,Ki(e,3))},Tn.get=ga,Tn.gt=As,Tn.gte=Ns,Tn.has=function(t,e){return null!=t&&eo(t,e,fr)},Tn.hasIn=ma,Tn.head=Mo,Tn.identity=Ga,Tn.includes=function(t,e,n,r){t=Ms(t)?t:Oa(t),n=n&&!r?ra(n):0;var i=t.length;return n<0&&(n=on(i+n,0)),Xs(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&be(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ra(n);return i<0&&(i=on(r+i,0)),be(t,e,i)},Tn.inRange=function(t,e,n){return e=na(e),void 0===n?(n=e,e=0):n=na(n),function(t,e,n){return t>=sn(e,n)&&t=-9007199254740991&&t<=9007199254740991},Tn.isSet=Qs,Tn.isString=Xs,Tn.isSymbol=Ys,Tn.isTypedArray=Js,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return qs(t)&&to(t)==w},Tn.isWeakSet=function(t){return qs(t)&&"[object WeakSet]"==dr(t)},Tn.join=function(t,e){return null==t?"":nn.call(t,e)},Tn.kebabCase=Da,Tn.last=Uo,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ra(n))<0?on(r+i,0):sn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):ve(t,_e,i,!0)},Tn.lowerCase=Ra,Tn.lowerFirst=Ma,Tn.lt=Zs,Tn.lte=ta,Tn.max=function(t){return t&&t.length?nr(t,Ga,pr):void 0},Tn.maxBy=function(t,e){return t&&t.length?nr(t,Ki(e,2),pr):void 0},Tn.mean=function(t){return we(t,Ga)},Tn.meanBy=function(t,e){return we(t,Ki(e,2))},Tn.min=function(t){return t&&t.length?nr(t,Ga,xr):void 0},Tn.minBy=function(t,e){return t&&t.length?nr(t,Ki(e,2),xr):void 0},Tn.stubArray=il,Tn.stubFalse=ol,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=hl,Tn.nth=function(t,e){return t&&t.length?Or(t,ra(e)):void 0},Tn.noConflict=function(){return qt._===this&&(qt._=It),this},Tn.noop=Ya,Tn.now=gs,Tn.pad=function(t,e,n){t=aa(t);var r=(e=ra(e))?He(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ai(Je(i),n)+t+Ai(Ye(i),n)},Tn.padEnd=function(t,e,n){t=aa(t);var r=(e=ra(e))?He(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=cn();return sn(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return Rr(t,e)},Tn.reduce=function(t,e,n){var r=Ds(t)?de:xe,i=arguments.length<3;return r(t,Ki(e,4),n,i,Zn)},Tn.reduceRight=function(t,e,n){var r=Ds(t)?pe:xe,i=arguments.length<3;return r(t,Ki(e,4),n,i,tr)},Tn.repeat=function(t,e,n){return e=(n?oo(t,e,n):void 0===e)?1:ra(e),Mr(aa(t),e)},Tn.replace=function(){var t=arguments,e=aa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,i=(e=oi(e,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(t,4294967295);t-=4294967295;for(var i=ke(r,e=Ki(e));++n=o)return t;var a=n-He(r);if(a<1)return r;var l=s?ai(s,0,a).join(""):t.slice(0,a);if(void 0===i)return l+r;if(s&&(a+=l.length-a),Ks(i)){if(t.slice(a).search(i)){var c,u=l;for(i.global||(i=mt(i.source,aa(nt.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var h=c.index;l=l.slice(0,void 0===h?a:h)}}else if(t.indexOf(Qr(i),a)!=a){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r},Tn.unescape=function(t){return(t=aa(t))&&F.test(t)?t.replace(M,qe):t},Tn.uniqueId=function(t){var e=++xt;return aa(t)+e},Tn.upperCase=ja,Tn.upperFirst=Ua,Tn.each=as,Tn.eachRight=ls,Tn.first=Mo,Xa(Tn,(sl={},ar(Tn,(function(t,e){Et.call(Tn.prototype,e)||(sl[e]=t)})),sl),{chain:!1}),Tn.VERSION="4.17.20",ie(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),ie(["drop","take"],(function(t,e){Nn.prototype[t]=function(n){n=void 0===n?1:on(ra(n),0);var r=this.__filtered__&&!e?new Nn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Nn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ie(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Nn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ki(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Nn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Nn.prototype[t]=function(){return this.__filtered__?new Nn(this):this[n](1)}})),Nn.prototype.compact=function(){return this.filter(Ga)},Nn.prototype.find=function(t){return this.filter(t).head()},Nn.prototype.findLast=function(t){return this.reverse().find(t)},Nn.prototype.invokeMap=Lr((function(t,e){return"function"==typeof t?new Nn(this):this.map((function(n){return vr(n,t,e)}))})),Nn.prototype.reject=function(t){return this.filter(xs(Ki(t)))},Nn.prototype.slice=function(t,e){t=ra(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Nn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ra(e))<0?n.dropRight(-e):n.take(e-t)),n)},Nn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Nn.prototype.toArray=function(){return this.take(4294967295)},ar(Nn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Tn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Tn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof Nn,l=s[0],c=a||Ds(e),u=function(t){var e=i.apply(Tn,he([t],s));return r&&h?e[0]:e};c&&n&&"function"==typeof l&&1!=l.length&&(a=c=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,f=a&&!d;if(!o&&c){e=f?e:new Nn(this);var g=t.apply(e,s);return g.__actions__.push({func:ns,args:[u],thisArg:void 0}),new An(g,h)}return p&&f?t.apply(this,s):(g=this.thru(u),p?r?g.value()[0]:g.value():g)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ds(i)?i:[],t)}return this[n]((function(n){return e.apply(Ds(n)?n:[],t)}))}})),ar(Nn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";Et.call(bn,r)||(bn[r]=[]),bn[r].push({name:e,func:n})}})),bn[ki(void 0,2).name]=[{name:"wrapper",func:void 0}],Nn.prototype.clone=function(){var t=new Nn(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},Nn.prototype.reverse=function(){if(this.__filtered__){var t=new Nn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Nn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ds(t),r=e<0,i=n?t.length:0,o=function(t,e,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var r=Io(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Nn){var e=t;return this.__actions__.length&&(e=new Nn(this)),(e=e.reverse()).__actions__.push({func:ns,args:[zo],thisArg:void 0}),new An(e,this.__chain__)}return this.thru(zo)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ti(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Ee&&(Tn.prototype[Ee]=function(){return this}),Tn}();qt._=We,void 0===(r=(function(){return We}).call(e,n,e,t))||(t.exports=r)}).call(this)}).call(this,n("YuTi")(t))},NOtv:function(t,e,n){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))}),e.splice(i,0,n)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=n("3JDX")(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},NSPt:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r,s=n("mrSG"),a=n("zVF4"),l=n("q/0M"),c=n("S+S0"),u=function(){function t(t){this.domStorage_=t,this.prefix_="firebase:"}return t.prototype.set=function(t,e){null==e?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),a.stringify(e))},t.prototype.get=function(t){var e=this.domStorage_.getItem(this.prefixedName_(t));return null==e?null:a.jsonEval(e)},t.prototype.remove=function(t){this.domStorage_.removeItem(this.prefixedName_(t))},t.prototype.prefixedName_=function(t){return this.prefix_+t},t.prototype.toString=function(){return this.domStorage_.toString()},t}(),h=function(){function t(){this.cache_={},this.isInMemoryStorage=!0}return t.prototype.set=function(t,e){null==e?delete this.cache_[t]:this.cache_[t]=e},t.prototype.get=function(t){return a.contains(this.cache_,t)?this.cache_[t]:null},t.prototype.remove=function(t){delete this.cache_[t]},t}(),d=function(t){try{if("undefined"!=typeof window&&void 0!==window[t]){var e=window[t];return e.setItem("firebase:sentinel","cache"),e.removeItem("firebase:sentinel"),new u(e)}}catch(n){}return new h},p=d("localStorage"),f=d("sessionStorage"),g=new l.Logger("@firebase/database"),m=(i=1,function(){return i++}),v=function(t){var e=a.stringToByteArray(t),n=new a.Sha1;n.update(e);var r=n.digest();return a.base64.encodeByteArray(r)},b=function(){for(var t=[],e=0;en?n:i+e));return r};function M(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}var L,F,j,U,V,B,H,z,q,W,G=function(t){var e,n,r,i,o;a.assert(!T(t),"Invalid JSON number"),0===t?(n=0,r=0,e=1/t==-1/0?1:0):(e=t<0,(t=Math.abs(t))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(t)/Math.LN2),1023))+1023,r=Math.round(t*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(t/Math.pow(2,-1074))));var s=[];for(o=52;o;o-=1)s.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(e?1:0),s.reverse();var l=s.join(""),c="";for(o=0;o<64;o+=8){var u=parseInt(l.substr(o,8),2).toString(16);1===u.length&&(u="0"+u),c+=u}return c.toLowerCase()},$=new RegExp("^-?(0*)\\d{1,10}$"),K=function(t){if($.test(t)){var e=Number(t);if(e>=-2147483648&&e<=2147483647)return e}return null},Q=function(t){try{t()}catch(e){setTimeout((function(){throw k("Exception was thrown by user callback.",e.stack||""),e}),Math.floor(0))}},X=function(t,e){var n=setTimeout(t,e);return"object"==typeof n&&n.unref&&n.unref(),n},Y=function(){function t(t,e){if(void 0===e){this.pieces_=t.split("/");for(var n=0,r=0;r0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=e}return Object.defineProperty(t,"Empty",{get:function(){return new t("")},enumerable:!1,configurable:!0}),t.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},t.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},t.prototype.popFront=function(){var e=this.pieceNum_;return e=this.pieces_.length)return null;for(var e=[],n=this.pieceNum_;n0&&n.push(i[r])}return new t(n,0)},t.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},t.relativePath=function(e,n){var r=e.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return t.relativePath(e.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+e+")")},t.comparePaths=function(t,e){for(var n=t.slice(),r=e.slice(),i=0;it.getLength())return!1;for(;e0&&(this.byteLength_+=1),this.parts_.push(t),this.byteLength_+=a.stringLength(t),this.checkValid_()},t.prototype.pop=function(){var t=this.parts_.pop();this.byteLength_-=a.stringLength(t),this.parts_.length>0&&(this.byteLength_-=1)},t.prototype.checkValid_=function(){if(this.byteLength_>t.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+t.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>t.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+t.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},t.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},t}(),Z=function(){function t(t,e,n,r,i,o){void 0===i&&(i=""),void 0===o&&(o=!1),this.secure=e,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.includeNamespaceInQueryParams=o,this.host=t.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=p.get("host:"+t)||this.host}return t.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},t.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},t.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},t.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},t.prototype.updateHost=function(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&p.set("host:"+this.host,this.internalHost))},t.prototype.connectionURL=function(t,e){var n;if(a.assert("string"==typeof t,"typeof type must == string"),a.assert("object"==typeof e,"typeof params must == object"),"websocket"===t)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==t)throw new Error("Unknown connection type: "+t);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(e.ns=this.namespace);var r=[];return M(e,(function(t,e){r.push(t+"="+e)})),n+r.join("&")},t.prototype.toString=function(){var t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t},t.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},t}(),tt=function(t){var e=et(t),n=e.namespace;return"firebase.com"===e.domain&&S(e.host+" is no longer supported. Please use .firebaseio.com instead"),n&&"undefined"!==n||"localhost"===e.domain||S("Cannot parse Firebase url. Please use https://.firebaseio.com"),e.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&k("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),{repoInfo:new Z(e.host,e.secure,n,"ws"===e.scheme||"wss"===e.scheme,"",n!==e.subdomain),path:new Y(e.pathString)}},et=function(t){var e="",n="",r="",i="",o="",a=!0,l="https",c=443;if("string"==typeof t){var u=t.indexOf("//");u>=0&&(l=t.substring(0,u-1),t=t.substring(u+2));var h=t.indexOf("/");-1===h&&(h=t.length);var d=t.indexOf("?");-1===d&&(d=t.length),e=t.substring(0,Math.min(h,d)),h0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(o){}e+="/"+i}return e}(t.substring(h,d)));var p=function(t){var e,n,r={};"?"===t.charAt(0)&&(t=t.substring(1));try{for(var i=s.__values(t.split("&")),o=i.next();!o.done;o=i.next()){var a=o.value;if(0!==a.length){var l=a.split("=");2===l.length?r[decodeURIComponent(l[0])]=decodeURIComponent(l[1]):k("Invalid query segment '"+a+"' in query '"+t+"'")}}}catch(c){e={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}(t.substring(Math.min(t.length,d)));(u=e.indexOf(":"))>=0?(a="https"===l||"wss"===l,c=parseInt(e.substring(u+1),10)):u=e.length;var f=e.slice(0,u);if("localhost"===f.toLowerCase())n="localhost";else if(f.split(".").length<=2)n=f;else{var g=e.indexOf(".");r=e.substring(0,g).toLowerCase(),n=e.substring(g+1),o=r}"ns"in p&&(o=p.ns)}return{host:e,port:c,domain:n,subdomain:r,secure:a,scheme:l,pathString:i,namespace:o}},nt=/[\[\].#$\/\u0000-\u001F\u007F]/,rt=/[\[\].#$\u0000-\u001F\u007F]/,it=function(t){return"string"==typeof t&&0!==t.length&&!nt.test(t)},ot=function(t){return"string"==typeof t&&0!==t.length&&!rt.test(t)},st=function(t){return null===t||"string"==typeof t||"number"==typeof t&&!T(t)||t&&"object"==typeof t&&a.contains(t,".sv")},at=function(t,e,n,r,i){i&&void 0===n||lt(a.errorPrefix(t,e,i),n,r)},lt=function(t,e,n){var r=n instanceof Y?new J(n,t):n;if(void 0===e)throw new Error(t+"contains undefined "+r.toErrorString());if("function"==typeof e)throw new Error(t+"contains a function "+r.toErrorString()+" with contents = "+e.toString());if(T(e))throw new Error(t+"contains "+e.toString()+" "+r.toErrorString());if("string"==typeof e&&e.length>10485760/3&&a.stringLength(e)>10485760)throw new Error(t+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+e.substring(0,50)+"...')");if(e&&"object"==typeof e){var i=!1,o=!1;if(M(e,(function(e,n){if(".value"===e)i=!0;else if(".priority"!==e&&".sv"!==e&&(o=!0,!it(e)))throw new Error(t+" contains an invalid key ("+e+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(e),lt(t,n,r),r.pop()})),i&&o)throw new Error(t+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ct=function(t,e,n,r,i){if(!i||void 0!==n){var o=a.errorPrefix(t,e,i);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var s=[];M(n,(function(t,e){var n=new Y(t);if(lt(o,e,r.child(n)),".priority"===n.getBack()&&!st(e))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)})),function(t,e){var n,r;for(n=0;n=0;e--)r[e]=L.charAt(t%64),t=Math.floor(t/64);a.assert(0===t,"Cannot push at time == 0");var i=r.join("");if(n){for(e=11;e>=0&&63===j[e];e--)j[e]=0;j[e]++}else for(e=0;e<12;e++)j[e]=Math.floor(64*Math.random());for(e=0;e<12;e++)i+=L.charAt(j[e]);return a.assert(20===i.length,"nextPushId: Length should be 20."),i}),wt=function(){function t(t,e){this.name=t,this.node=e}return t.Wrap=function(e,n){return new t(e,n)},t}(),Ct=function(){function t(){}return t.prototype.getCompare=function(){return this.compare.bind(this)},t.prototype.indexedValueChanged=function(t,e){var n=new wt(I,t),r=new wt(I,e);return 0!==this.compare(n,r)},t.prototype.minPost=function(){return wt.MIN},t}(),Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s.__extends(e,t),Object.defineProperty(e,"__EMPTY_NODE",{get:function(){return U},set:function(t){U=t},enumerable:!1,configurable:!0}),e.prototype.compare=function(t,e){return A(t.name,e.name)},e.prototype.isDefinedOn=function(t){throw a.assertionError("KeyIndex.isDefinedOn not expected to be called.")},e.prototype.indexedValueChanged=function(t,e){return!1},e.prototype.minPost=function(){return wt.MIN},e.prototype.maxPost=function(){return new wt(O,U)},e.prototype.makePost=function(t,e){return a.assert("string"==typeof t,"KeyIndex indexValue must always be a string."),new wt(t,U)},e.prototype.toString=function(){return".key"},e}(Ct),xt=new Et,St=function(t){return"number"==typeof t?"number:"+G(t):"string:"+t},kt=function(t){if(t.isLeafNode()){var e=t.val();a.assert("string"==typeof e||"number"==typeof e||"object"==typeof e&&a.contains(e,".sv"),"Priority must be a string or number.")}else a.assert(t===V||t.isEmpty(),"priority of unexpected type.");a.assert(t===V||t.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Tt=function(){function t(e,n){void 0===n&&(n=t.__childrenNodeConstructor.EMPTY_NODE),this.value_=e,this.priorityNode_=n,this.lazyHash_=null,a.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),kt(this.priorityNode_)}return Object.defineProperty(t,"__childrenNodeConstructor",{get:function(){return B},set:function(t){B=t},enumerable:!1,configurable:!0}),t.prototype.isLeafNode=function(){return!0},t.prototype.getPriority=function(){return this.priorityNode_},t.prototype.updatePriority=function(e){return new t(this.value_,e)},t.prototype.getImmediateChild=function(e){return".priority"===e?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.getChild=function(e){return e.isEmpty()?this:".priority"===e.getFront()?this.priorityNode_:t.__childrenNodeConstructor.EMPTY_NODE},t.prototype.hasChild=function(){return!1},t.prototype.getPredecessorChildName=function(t,e){return null},t.prototype.updateImmediateChild=function(e,n){return".priority"===e?this.updatePriority(n):n.isEmpty()&&".priority"!==e?this:t.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,n).updatePriority(this.priorityNode_)},t.prototype.updateChild=function(e,n){var r=e.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(a.assert(".priority"!==r||1===e.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,t.__childrenNodeConstructor.EMPTY_NODE.updateChild(e.popFront(),n)))},t.prototype.isEmpty=function(){return!1},t.prototype.numChildren=function(){return 0},t.prototype.forEachChild=function(t,e){return!1},t.prototype.val=function(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},t.prototype.hash=function(){if(null===this.lazyHash_){var t="";this.priorityNode_.isEmpty()||(t+="priority:"+St(this.priorityNode_.val())+":");var e=typeof this.value_;t+=e+":",t+="number"===e?G(this.value_):this.value_,this.lazyHash_=v(t)}return this.lazyHash_},t.prototype.getValue=function(){return this.value_},t.prototype.compareTo=function(e){return e===t.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof t.__childrenNodeConstructor?-1:(a.assert(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))},t.prototype.compareToLeafNode_=function(e){var n=typeof e.value_,r=typeof this.value_,i=t.VALUE_TYPE_ORDER.indexOf(n),o=t.VALUE_TYPE_ORDER.indexOf(r);return a.assert(i>=0,"Unknown leaf type: "+n),a.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_0},t.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var t=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}},t}(),At=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:Pt.EMPTY_NODE,this.right=null!=o?o:Pt.EMPTY_NODE}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.count=function(){return this.left.count()+1+this.right.count()},t.prototype.isEmpty=function(){return!1},t.prototype.inorderTraversal=function(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)},t.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},t.prototype.minKey=function(){return this.min_().key},t.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},t.prototype.insert=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.insert(t,e,n))).fixUp_()},t.prototype.removeMin_=function(){if(this.left.isEmpty())return Pt.EMPTY_NODE;var t=this;return t.left.isRed_()||t.left.left.isRed_()||(t=t.moveRedLeft_()),(t=t.copy(null,null,null,t.left.removeMin_(),null)).fixUp_()},t.prototype.remove=function(t,e){var n,r;if(e(t,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(t,e),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===e(t,n.key)){if(n.right.isEmpty())return Pt.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(t,e))}return n.fixUp_()},t.prototype.isRed_=function(){return this.color},t.prototype.fixUp_=function(){var t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t},t.prototype.moveRedLeft_=function(){var t=this.colorFlip_();return t.right.left.isRed_()&&(t=(t=(t=t.copy(null,null,null,null,t.right.rotateRight_())).rotateLeft_()).colorFlip_()),t},t.prototype.moveRedRight_=function(){var t=this.colorFlip_();return t.left.left.isRed_()&&(t=(t=t.rotateRight_()).colorFlip_()),t},t.prototype.rotateLeft_=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.rotateRight_=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.colorFlip_=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.checkMaxDepth_=function(){var t=this.check_();return Math.pow(2,t)<=this.count()+1},t.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)},t.RED=!0,t.BLACK=!1,t}(),Nt=function(){function t(){}return t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new At(t,e,null)},t.prototype.remove=function(t,e){return this},t.prototype.count=function(){return 0},t.prototype.isEmpty=function(){return!0},t.prototype.inorderTraversal=function(t){return!1},t.prototype.reverseTraversal=function(t){return!1},t.prototype.minKey=function(){return null},t.prototype.maxKey=function(){return null},t.prototype.check_=function(){return 0},t.prototype.isRed_=function(){return!1},t}(),Pt=function(){function t(e,n){void 0===n&&(n=t.EMPTY_NODE),this.comparator_=e,this.root_=n}return t.prototype.insert=function(e,n){return new t(this.comparator_,this.root_.insert(e,n,this.comparator_).copy(null,null,At.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,At.BLACK,null,null))},t.prototype.get=function(t){for(var e,n=this.root_;!n.isEmpty();){if(0===(e=this.comparator_(t,n.key)))return n.value;e<0?n=n.left:e>0&&(n=n.right)}return null},t.prototype.getPredecessorKey=function(t){for(var e,n=this.root_,r=null;!n.isEmpty();){if(0===(e=this.comparator_(t,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}e<0?n=n.left:e>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},t.prototype.isEmpty=function(){return this.root_.isEmpty()},t.prototype.count=function(){return this.root_.count()},t.prototype.minKey=function(){return this.root_.minKey()},t.prototype.maxKey=function(){return this.root_.maxKey()},t.prototype.inorderTraversal=function(t){return this.root_.inorderTraversal(t)},t.prototype.reverseTraversal=function(t){return this.root_.reverseTraversal(t)},t.prototype.getIterator=function(t){return new Ot(this.root_,null,this.comparator_,!1,t)},t.prototype.getIteratorFrom=function(t,e){return new Ot(this.root_,t,this.comparator_,!1,e)},t.prototype.getReverseIteratorFrom=function(t,e){return new Ot(this.root_,t,this.comparator_,!0,e)},t.prototype.getReverseIterator=function(t){return new Ot(this.root_,null,this.comparator_,!0,t)},t.EMPTY_NODE=new Nt,t}(),Dt=Math.log(2),Rt=function(){function t(t){this.count=parseInt(Math.log(t+1)/Dt,10),this.current_=this.count-1;var e=parseInt(Array(this.count+1).join("1"),2);this.bits_=t+1&e}return t.prototype.nextBitIsOne=function(){var t=!(this.bits_&1<0;)r.getNext(),i=r.peek();return r},t.prototype.compareTo=function(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===Bt?-1:0},t.prototype.withIndex=function(e){if(e===xt||this.indexMap_.hasIndex(e))return this;var n=this.indexMap_.addIndex(e,this.children_);return new t(this.children_,this.priorityNode_,n)},t.prototype.isIndexed=function(t){return t===xt||this.indexMap_.hasIndex(t)},t.prototype.equals=function(t){if(t===this)return!0;if(t.isLeafNode())return!1;var e=t;if(this.getPriority().equals(e.getPriority())){if(this.children_.count()===e.children_.count()){for(var n=this.getIterator(It),r=e.getIterator(It),i=n.getNext(),o=r.getNext();i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},t.prototype.resolveIndex_=function(t){return t===xt?null:this.indexMap_.get(t.toString())},t.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,t}(),Bt=new(function(t){function e(){return t.call(this,new Pt(Ut),Vt.EMPTY_NODE,Ft.Default)||this}return s.__extends(e,t),e.prototype.compareTo=function(t){return t===this?0:1},e.prototype.equals=function(t){return t===this},e.prototype.getPriority=function(){return this},e.prototype.getImmediateChild=function(t){return Vt.EMPTY_NODE},e.prototype.isEmpty=function(){return!1},e}(Vt));function Ht(t,e){if(void 0===e&&(e=null),null===t)return Vt.EMPTY_NODE;if("object"==typeof t&&".priority"in t&&(e=t[".priority"]),a.assert(null===e||"string"==typeof e||"number"==typeof e||"object"==typeof e&&".sv"in e,"Invalid priority type found: "+typeof e),"object"==typeof t&&".value"in t&&null!==t[".value"]&&(t=t[".value"]),"object"!=typeof t||".sv"in t)return new Tt(t,Ht(e));if(t instanceof Array){var n=Vt.EMPTY_NODE;return M(t,(function(e,r){if(a.contains(t,e)&&"."!==e.substring(0,1)){var i=Ht(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(e,i))}})),n.updatePriority(Ht(e))}var r=[],i=!1;if(M(t,(function(t,e){if("."!==t.substring(0,1)){var n=Ht(e);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new wt(t,n)))}})),0===r.length)return Vt.EMPTY_NODE;var o=Mt(r,jt,(function(t){return t.name}),Ut);if(i){var s=Mt(r,It.getCompare());return new Vt(o,Ht(e),new Ft({".priority":s},{".priority":It}))}return new Vt(o,Ht(e),Ft.Default)}Object.defineProperties(wt,{MIN:{value:new wt(I,Vt.EMPTY_NODE)},MAX:{value:new wt(O,Bt)}}),Et.__EMPTY_NODE=Vt.EMPTY_NODE,Tt.__childrenNodeConstructor=Vt,V=Bt,function(t){z=t}(Bt),function(t){H=t}(Ht);var zt,qt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s.__extends(e,t),e.prototype.compare=function(t,e){var n=t.node.compareTo(e.node);return 0===n?A(t.name,e.name):n},e.prototype.isDefinedOn=function(t){return!0},e.prototype.indexedValueChanged=function(t,e){return!t.equals(e)},e.prototype.minPost=function(){return wt.MIN},e.prototype.maxPost=function(){return wt.MAX},e.prototype.makePost=function(t,e){var n=Ht(t);return new wt(e,n)},e.prototype.toString=function(){return".value"},e}(Ct)),Wt=function(t){function e(e){var n=t.call(this)||this;return n.indexPath_=e,a.assert(!e.isEmpty()&&".priority"!==e.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return s.__extends(e,t),e.prototype.extractChild=function(t){return t.getChild(this.indexPath_)},e.prototype.isDefinedOn=function(t){return!t.getChild(this.indexPath_).isEmpty()},e.prototype.compare=function(t,e){var n=this.extractChild(t.node),r=this.extractChild(e.node),i=n.compareTo(r);return 0===i?A(t.name,e.name):i},e.prototype.makePost=function(t,e){var n=Ht(t),r=Vt.EMPTY_NODE.updateChild(this.indexPath_,n);return new wt(e,r)},e.prototype.maxPost=function(){var t=Vt.EMPTY_NODE.updateChild(this.indexPath_,Bt);return new wt(O,t)},e.prototype.toString=function(){return this.indexPath_.slice().join("/")},e}(Ct),Gt=function(){function t(t,e,n){this.node_=t,this.ref_=e,this.index_=n}return t.prototype.val=function(){return a.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},t.prototype.exportVal=function(){return a.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},t.prototype.toJSON=function(){return a.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},t.prototype.exists=function(){return a.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},t.prototype.child=function(e){a.validateArgCount("DataSnapshot.child",0,1,arguments.length),e=String(e),pt("DataSnapshot.child",1,e,!1);var n=new Y(e),r=this.ref_.child(n);return new t(this.node_.getChild(n),r,It)},t.prototype.hasChild=function(t){a.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),pt("DataSnapshot.hasChild",1,t,!1);var e=new Y(t);return!this.node_.getChild(e).isEmpty()},t.prototype.getPriority=function(){return a.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},t.prototype.forEach=function(e){var n=this;if(a.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),a.validateCallback("DataSnapshot.forEach",1,e,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,(function(r,i){return e(new t(i,n.ref_.child(r),It))}))},t.prototype.hasChildren=function(){return a.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(t.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!1,configurable:!0}),t.prototype.numChildren=function(){return a.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},t.prototype.getRef=function(){return a.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),$t=function(){function t(t,e,n,r){this.eventType=t,this.eventRegistration=e,this.snapshot=n,this.prevName=r}return t.prototype.getPath=function(){var t=this.snapshot.getRef();return"value"===this.eventType?t.path:t.getParent().path},t.prototype.getEventType=function(){return this.eventType},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+a.stringify(this.snapshot.exportVal())},t}(),Kt=function(){function t(t,e,n){this.eventRegistration=t,this.error=e,this.path=n}return t.prototype.getPath=function(){return this.path},t.prototype.getEventType=function(){return"cancel"},t.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},t.prototype.toString=function(){return this.path.toString()+":cancel"},t}(),Qt=function(){function t(t,e,n){this.callback_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){return"value"===t},t.prototype.createEvent=function(t,e){var n=e.getQueryParams().getIndex();return new $t("value",this,new Gt(t.snapshotNode,e.getRef(),n))},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var r=this.callback_;return function(){r.call(e,t.snapshot)}},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new Kt(this,t,e):null},t.prototype.matches=function(e){return e instanceof t&&(!e.callback_||!this.callback_||e.callback_===this.callback_&&e.context_===this.context_)},t.prototype.hasAnyCallback=function(){return null!==this.callback_},t}(),Xt=function(){function t(t,e,n){this.callbacks_=t,this.cancelCallback_=e,this.context_=n}return t.prototype.respondsTo=function(t){var e="children_added"===t?"child_added":t;return a.contains(this.callbacks_,e="children_removed"===e?"child_removed":e)},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new Kt(this,t,e):null},t.prototype.createEvent=function(t,e){a.assert(null!=t.childName,"Child events should have a childName.");var n=e.getRef().child(t.childName),r=e.getQueryParams().getIndex();return new $t(t.type,this,new Gt(t.snapshotNode,n,r),t.prevName)},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(e,t.error)}}var r=this.callbacks_[t.eventType];return function(){r.call(e,t.snapshot,t.prevName)}},t.prototype.matches=function(e){var n=this;if(e instanceof t){if(!this.callbacks_||!e.callbacks_)return!0;if(this.context_===e.context_){var r=Object.keys(e.callbacks_),i=Object.keys(this.callbacks_),o=r.length;if(o===i.length){if(1===o){var s=r[0],a=i[0];return!(a!==s||e.callbacks_[s]&&this.callbacks_[a]&&e.callbacks_[s]!==this.callbacks_[a])}return i.every((function(t){return e.callbacks_[t]===n.callbacks_[t]}))}}}return!1},t.prototype.hasAnyCallback=function(){return null!==this.callbacks_},t}(),Yt=function(){function t(t,e,n,r){this.repo=t,this.path=e,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(t,"__referenceConstructor",{get:function(){return a.assert(zt,"Reference.ts has not been loaded"),zt},set:function(t){zt=t},enumerable:!1,configurable:!0}),t.validateQueryEndpoints_=function(t){var e=null,n=null;if(t.hasStart()&&(e=t.getIndexStartValue()),t.hasEnd()&&(n=t.getIndexEndValue()),t.getIndex()===xt){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(t.hasStart()){if(t.getIndexStartName()!==I)throw new Error(r);if("string"!=typeof e)throw new Error(i)}if(t.hasEnd()){if(t.getIndexEndName()!==O)throw new Error(r);if("string"!=typeof n)throw new Error(i)}}else if(t.getIndex()===It){if(null!=e&&!st(e)||null!=n&&!st(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(a.assert(t.getIndex()instanceof Wt||t.getIndex()===qt,"unknown index type."),null!=e&&"object"==typeof e||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},t.validateLimit_=function(t){if(t.hasStart()&&t.hasEnd()&&t.hasLimit()&&!t.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},t.prototype.validateNoPreviousOrderByCall_=function(t){if(!0===this.orderByCalled_)throw new Error(t+": You can't combine multiple orderBy calls.")},t.prototype.getQueryParams=function(){return this.queryParams_},t.prototype.getRef=function(){return a.validateArgCount("Query.ref",0,0,arguments.length),new t.__referenceConstructor(this.repo,this.path)},t.prototype.on=function(e,n,r,i){a.validateArgCount("Query.on",2,4,arguments.length),ht("Query.on",1,e,!1),a.validateCallback("Query.on",2,n,!1);var o=t.getCancelAndContextArgs_("Query.on",r,i);if("value"===e)this.onValueEvent(n,o.cancel,o.context);else{var s={};s[e]=n,this.onChildEvent(s,o.cancel,o.context)}return n},t.prototype.onValueEvent=function(t,e,n){var r=new Qt(t,e||null,n||null);this.repo.addEventCallbackForQuery(this,r)},t.prototype.onChildEvent=function(t,e,n){var r=new Xt(t,e,n);this.repo.addEventCallbackForQuery(this,r)},t.prototype.off=function(t,e,n){a.validateArgCount("Query.off",0,3,arguments.length),ht("Query.off",1,t,!0),a.validateCallback("Query.off",2,e,!0),a.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===t){var o=e||null;r=new Qt(o,null,n||null)}else t&&(e&&((i={})[t]=e),r=new Xt(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},t.prototype.once=function(e,n,r,i){var o=this;a.validateArgCount("Query.once",1,4,arguments.length),ht("Query.once",1,e,!1),a.validateCallback("Query.once",2,n,!0);var s=t.getCancelAndContextArgs_("Query.once",r,i),l=!0,c=new a.Deferred;c.promise.catch((function(){}));var u=function(t){l&&(l=!1,o.off(e,u),n&&n.bind(s.context)(t),c.resolve(t))};return this.on(e,u,(function(t){o.off(e,u),s.cancel&&s.cancel.bind(s.context)(t),c.reject(t)})),c.promise},t.prototype.limitToFirst=function(e){if(a.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToFirst(e),this.orderByCalled_)},t.prototype.limitToLast=function(e){if(a.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof e||Math.floor(e)!==e||e<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new t(this.repo,this.path,this.queryParams_.limitToLast(e),this.orderByCalled_)},t.prototype.orderByChild=function(e){if(a.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===e)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===e)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===e)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');pt("Query.orderByChild",1,e,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new Y(e);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new Wt(n),i=this.queryParams_.orderBy(r);return t.validateQueryEndpoints_(i),new t(this.repo,this.path,i,!0)},t.prototype.orderByKey=function(){a.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var e=this.queryParams_.orderBy(xt);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByPriority=function(){a.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var e=this.queryParams_.orderBy(It);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByValue=function(){a.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var e=this.queryParams_.orderBy(qt);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.startAt=function(e,n){void 0===e&&(e=null),a.validateArgCount("Query.startAt",0,2,arguments.length),at("Query.startAt",1,e,this.path,!0),dt("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(e,n);if(t.validateLimit_(r),t.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===e&&(e=null,n=null),new t(this.repo,this.path,r,this.orderByCalled_)},t.prototype.endAt=function(e,n){void 0===e&&(e=null),a.validateArgCount("Query.endAt",0,2,arguments.length),at("Query.endAt",1,e,this.path,!0),dt("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(e,n);if(t.validateLimit_(r),t.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new t(this.repo,this.path,r,this.orderByCalled_)},t.prototype.equalTo=function(t,e){if(a.validateArgCount("Query.equalTo",1,2,arguments.length),at("Query.equalTo",1,t,this.path,!1),dt("Query.equalTo",2,e,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(t,e).endAt(t,e)},t.prototype.toString=function(){return a.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},t.prototype.toJSON=function(){return a.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},t.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},t.prototype.queryIdentifier=function(){var t=this.queryObject(),e=D(t);return"{}"===e?"default":e},t.prototype.isEqual=function(e){if(a.validateArgCount("Query.isEqual",1,1,arguments.length),!(e instanceof t)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var r=this.repo===e.repo,i=this.path.equals(e.path),o=this.queryIdentifier()===e.queryIdentifier();return r&&i&&o},t.getCancelAndContextArgs_=function(t,e,n){var r={cancel:null,context:null};if(e&&n)r.cancel=e,a.validateCallback(t,3,r.cancel,!0),r.context=n,a.validateContextObject(t,4,r.context,!0);else if(e)if("object"==typeof e&&null!==e)r.context=e;else{if("function"!=typeof e)throw new Error(a.errorPrefix(t,3,!0)+" must either be a cancel callback or a context object.");r.cancel=e}return r},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),Jt=function(){function t(t){this.node_=t}return t.prototype.getImmediateChild=function(e){return new t(this.node_.getImmediateChild(e))},t.prototype.node=function(){return this.node_},t}(),Zt=function(){function t(t,e){this.syncTree_=t,this.path_=e}return t.prototype.getImmediateChild=function(e){var n=this.path_.child(e);return new t(this.syncTree_,n)},t.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},t}(),te=function(t,e,n){return t&&"object"==typeof t?(a.assert(".sv"in t,"Unexpected leaf node or priority contents"),"string"==typeof t[".sv"]?ee(t[".sv"],e,n):"object"==typeof t[".sv"]?ne(t[".sv"],e):void a.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2))):t},ee=function(t,e,n){switch(t){case"timestamp":return n.timestamp;default:a.assert(!1,"Unexpected server value: "+t)}},ne=function(t,e,n){t.hasOwnProperty("increment")||a.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2));var r=t.increment;"number"!=typeof r&&a.assert(!1,"Unexpected increment value: "+r);var i=e.node();if(a.assert(null!=i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var o=i.getValue();return"number"!=typeof o?r:o+r},re=function(t,e,n,r){return oe(e,new Zt(n,t),r)},ie=function(t,e,n){return oe(t,new Jt(e),n)};function oe(t,e,n){var r,i=t.getPriority().val(),o=te(i,e.getImmediateChild(".priority"),n);if(t.isLeafNode()){var s=t,a=te(s.getValue(),e,n);return a!==s.getValue()||o!==s.getPriority().val()?new Tt(a,Ht(o)):t}var l=t;return r=l,o!==l.getPriority().val()&&(r=r.updatePriority(new Tt(o))),l.forEachChild(It,(function(t,i){var o=oe(i,e.getImmediateChild(t),n);o!==i&&(r=r.updateImmediateChild(t,o))})),r}var se,ae,le=function(){function t(){this.value=null,this.children=new Map}return t.prototype.find=function(t){if(null!=this.value)return this.value.getChild(t);if(!t.isEmpty()&&this.children.size>0){var e=t.getFront();return t=t.popFront(),this.children.has(e)?this.children.get(e).find(t):null}return null},t.prototype.remember=function(e,n){if(e.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(e,n);else{var r=e.getFront();this.children.has(r)||this.children.set(r,new t);var i=this.children.get(r);e=e.popFront(),i.remember(e,n)}},t.prototype.forget=function(t){if(t.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var e=this.value;this.value=null;var n=this;return e.forEachChild(It,(function(t,e){n.remember(new Y(t),e)})),this.forget(t)}if(this.children.size>0){var r=t.getFront();return t=t.popFront(),this.children.has(r)&&this.children.get(r).forget(t)&&this.children.delete(r),0===this.children.size}return!0},t.prototype.forEachTree=function(t,e){null!==this.value?e(t,this.value):this.forEachChild((function(n,r){var i=new Y(t.toString()+"/"+n);r.forEachTree(i,e)}))},t.prototype.forEachChild=function(t){this.children.forEach((function(e,n){t(n,e)}))},t}(),ce=function(t){return t[t.OVERWRITE=0]="OVERWRITE",t[t.MERGE=1]="MERGE",t[t.ACK_USER_WRITE=2]="ACK_USER_WRITE",t[t.LISTEN_COMPLETE=3]="LISTEN_COMPLETE",t}({}),ue=function(){function t(t,e,n,r){this.fromUser=t,this.fromServer=e,this.queryId=n,this.tagged=r,a.assert(!r||e,"Tagged queries must be from server.")}return t.User=new t(!0,!1,null,!1),t.Server=new t(!1,!0,null,!1),t.forServerTaggedQuery=function(e){return new t(!1,!0,e,!0)},t}(),he=function(){function t(t,e,n){this.path=t,this.affectedTree=e,this.revert=n,this.type=ce.ACK_USER_WRITE,this.source=ue.User}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return a.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new Y(e));return new t(Y.Empty,n,this.revert)}return a.assert(this.path.getFront()===e,"operationForChild called for unrelated child."),new t(this.path.popFront(),this.affectedTree,this.revert)},t}(),de=function(){function t(t,e){void 0===e&&(se||(se=new Pt(N)),e=se),this.value=t,this.children=e}return t.fromObject=function(e){var n=t.Empty;return M(e,(function(t,e){n=n.set(new Y(t),e)})),n},t.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},t.prototype.findRootMostMatchingPathAndValue=function(t,e){if(null!=this.value&&e(this.value))return{path:Y.Empty,value:this.value};if(t.isEmpty())return null;var n=t.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(t.popFront(),e);return null!=i?{path:new Y(n).child(i.path),value:i.value}:null}return null},t.prototype.findRootMostValueAndPath=function(t){return this.findRootMostMatchingPathAndValue(t,(function(){return!0}))},t.prototype.subtree=function(e){if(e.isEmpty())return this;var n=e.getFront(),r=this.children.get(n);return null!==r?r.subtree(e.popFront()):t.Empty},t.prototype.set=function(e,n){if(e.isEmpty())return new t(n,this.children);var r=e.getFront(),i=(this.children.get(r)||t.Empty).set(e.popFront(),n),o=this.children.insert(r,i);return new t(this.value,o)},t.prototype.remove=function(e){if(e.isEmpty())return this.children.isEmpty()?t.Empty:new t(null,this.children);var n=e.getFront(),r=this.children.get(n);if(r){var i=r.remove(e.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?t.Empty:new t(this.value,o)}return this},t.prototype.get=function(t){if(t.isEmpty())return this.value;var e=t.getFront(),n=this.children.get(e);return n?n.get(t.popFront()):null},t.prototype.setTree=function(e,n){if(e.isEmpty())return n;var r,i=e.getFront(),o=(this.children.get(i)||t.Empty).setTree(e.popFront(),n);return r=o.isEmpty()?this.children.remove(i):this.children.insert(i,o),new t(this.value,r)},t.prototype.fold=function(t){return this.fold_(Y.Empty,t)},t.prototype.fold_=function(t,e){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(t.child(r),e)})),e(t,this.value,n)},t.prototype.findOnPath=function(t,e){return this.findOnPath_(t,Y.Empty,e)},t.prototype.findOnPath_=function(t,e,n){var r=!!this.value&&n(e,this.value);if(r)return r;if(t.isEmpty())return null;var i=t.getFront(),o=this.children.get(i);return o?o.findOnPath_(t.popFront(),e.child(i),n):null},t.prototype.foreachOnPath=function(t,e){return this.foreachOnPath_(t,Y.Empty,e)},t.prototype.foreachOnPath_=function(e,n,r){if(e.isEmpty())return this;this.value&&r(n,this.value);var i=e.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(e.popFront(),n.child(i),r):t.Empty},t.prototype.foreach=function(t){this.foreach_(Y.Empty,t)},t.prototype.foreach_=function(t,e){this.children.inorderTraversal((function(n,r){r.foreach_(t.child(n),e)})),this.value&&e(t,this.value)},t.prototype.foreachChild=function(t){this.children.inorderTraversal((function(e,n){n.value&&t(e,n.value)}))},t.Empty=new t(null),t}(),pe=function(){function t(t,e){this.source=t,this.path=e,this.type=ce.LISTEN_COMPLETE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,Y.Empty):new t(this.source,this.path.popFront())},t}(),fe=function(){function t(t,e,n){this.source=t,this.path=e,this.snap=n,this.type=ce.OVERWRITE}return t.prototype.operationForChild=function(e){return this.path.isEmpty()?new t(this.source,Y.Empty,this.snap.getImmediateChild(e)):new t(this.source,this.path.popFront(),this.snap)},t}(),ge=function(){function t(t,e,n){this.source=t,this.path=e,this.children=n,this.type=ce.MERGE}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){var n=this.children.subtree(new Y(e));return n.isEmpty()?null:n.value?new fe(this.source,Y.Empty,n.value):new t(this.source,Y.Empty,n)}return a.assert(this.path.getFront()===e,"Can't get a merge for a child not on the path of the operation"),new t(this.source,this.path.popFront(),this.children)},t.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},t}(),me=function(){function t(t,e,n){this.node_=t,this.fullyInitialized_=e,this.filtered_=n}return t.prototype.isFullyInitialized=function(){return this.fullyInitialized_},t.prototype.isFiltered=function(){return this.filtered_},t.prototype.isCompleteForPath=function(t){if(t.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var e=t.getFront();return this.isCompleteForChild(e)},t.prototype.isCompleteForChild=function(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)},t.prototype.getNode=function(){return this.node_},t}(),ve=function(){function t(t,e){this.eventCache_=t,this.serverCache_=e}return t.prototype.updateEventSnap=function(e,n,r){return new t(new me(e,n,r),this.serverCache_)},t.prototype.updateServerSnap=function(e,n,r){return new t(this.eventCache_,new me(e,n,r))},t.prototype.getEventCache=function(){return this.eventCache_},t.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},t.prototype.getServerCache=function(){return this.serverCache_},t.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},t.Empty=new t(new me(Vt.EMPTY_NODE,!1,!1),new me(Vt.EMPTY_NODE,!1,!1)),t}(),be=function(){function t(t,e,n,r,i){this.type=t,this.snapshotNode=e,this.childName=n,this.oldSnap=r,this.prevName=i}return t.valueChange=function(e){return new t(t.VALUE,e)},t.childAddedChange=function(e,n){return new t(t.CHILD_ADDED,n,e)},t.childRemovedChange=function(e,n){return new t(t.CHILD_REMOVED,n,e)},t.childChangedChange=function(e,n,r){return new t(t.CHILD_CHANGED,n,e,r)},t.childMovedChange=function(e,n){return new t(t.CHILD_MOVED,n,e)},t.CHILD_ADDED="child_added",t.CHILD_REMOVED="child_removed",t.CHILD_CHANGED="child_changed",t.CHILD_MOVED="child_moved",t.VALUE="value",t}(),ye=function(){function t(t){this.index_=t}return t.prototype.updateChild=function(t,e,n,r,i,o){a.assert(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=t.getImmediateChild(e);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?t:(null!=o&&(n.isEmpty()?t.hasChild(e)?o.trackChildChange(be.childRemovedChange(e,s)):a.assert(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?o.trackChildChange(be.childAddedChange(e,n)):o.trackChildChange(be.childChangedChange(e,n,s))),t.isLeafNode()&&n.isEmpty()?t:t.updateImmediateChild(e,n).withIndex(this.index_))},t.prototype.updateFullNode=function(t,e,n){return null!=n&&(t.isLeafNode()||t.forEachChild(It,(function(t,r){e.hasChild(t)||n.trackChildChange(be.childRemovedChange(t,r))})),e.isLeafNode()||e.forEachChild(It,(function(e,r){if(t.hasChild(e)){var i=t.getImmediateChild(e);i.equals(r)||n.trackChildChange(be.childChangedChange(e,r,i))}else n.trackChildChange(be.childAddedChange(e,r))}))),e.withIndex(this.index_)},t.prototype.updatePriority=function(t,e){return t.isEmpty()?Vt.EMPTY_NODE:t.updatePriority(e)},t.prototype.filtersNodes=function(){return!1},t.prototype.getIndexedFilter=function(){return this},t.prototype.getIndex=function(){return this.index_},t}(),_e=function(){function t(){this.changeMap=new Map}return t.prototype.trackChildChange=function(t){var e=t.type,n=t.childName;a.assert(e===be.CHILD_ADDED||e===be.CHILD_CHANGED||e===be.CHILD_REMOVED,"Only child changes supported for tracking"),a.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(e===be.CHILD_ADDED&&i===be.CHILD_REMOVED)this.changeMap.set(n,be.childChangedChange(n,t.snapshotNode,r.snapshotNode));else if(e===be.CHILD_REMOVED&&i===be.CHILD_ADDED)this.changeMap.delete(n);else if(e===be.CHILD_REMOVED&&i===be.CHILD_CHANGED)this.changeMap.set(n,be.childRemovedChange(n,r.oldSnap));else if(e===be.CHILD_CHANGED&&i===be.CHILD_ADDED)this.changeMap.set(n,be.childAddedChange(n,t.snapshotNode));else{if(e!==be.CHILD_CHANGED||i!==be.CHILD_CHANGED)throw a.assertionError("Illegal combination of changes: "+t+" occurred after "+r);this.changeMap.set(n,be.childChangedChange(n,t.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,t)},t.prototype.getChanges=function(){return Array.from(this.changeMap.values())},t}(),we=new(function(){function t(){}return t.prototype.getCompleteChild=function(t){return null},t.prototype.getChildAfterChild=function(t,e,n){return null},t}()),Ce=function(){function t(t,e,n){void 0===n&&(n=null),this.writes_=t,this.viewCache_=e,this.optCompleteServerCache_=n}return t.prototype.getCompleteChild=function(t){var e=this.viewCache_.getEventCache();if(e.isCompleteForChild(t))return e.getNode().getImmediateChild(t);var n=null!=this.optCompleteServerCache_?new me(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(t,n)},t.prototype.getChildAfterChild=function(t,e,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,e,1,n,t);return 0===i.length?null:i[0]},t}(),Ee=function(){return function(t,e){this.viewCache=t,this.changes=e}}(),xe=function(){function t(t){this.filter_=t}return t.prototype.assertIndexed=function(t){a.assert(t.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),a.assert(t.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},t.prototype.applyOperation=function(e,n,r,i){var o,s,l=new _e;if(n.type===ce.OVERWRITE){var c=n;c.source.fromUser?o=this.applyUserOverwrite_(e,c.path,c.snap,r,i,l):(a.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||e.getServerCache().isFiltered()&&!c.path.isEmpty(),o=this.applyServerOverwrite_(e,c.path,c.snap,r,i,s,l))}else if(n.type===ce.MERGE){var u=n;u.source.fromUser?o=this.applyUserMerge_(e,u.path,u.children,r,i,l):(a.assert(u.source.fromServer,"Unknown source."),s=u.source.tagged||e.getServerCache().isFiltered(),o=this.applyServerMerge_(e,u.path,u.children,r,i,s,l))}else if(n.type===ce.ACK_USER_WRITE){var h=n;o=h.revert?this.revertUserWrite_(e,h.path,r,i,l):this.ackUserWrite_(e,h.path,h.affectedTree,r,i,l)}else{if(n.type!==ce.LISTEN_COMPLETE)throw a.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(e,n.path,r,l)}var d=l.getChanges();return t.maybeAddValueEvent_(e,o,d),new Ee(o,d)},t.maybeAddValueEvent_=function(t,e,n){var r=e.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=t.getCompleteEventSnap();(n.length>0||!t.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(be.valueChange(e.getCompleteEventSnap()))}},t.prototype.generateEventCacheAfterServerEvent_=function(t,e,n,r,i){var o=t.getEventCache();if(null!=n.shadowingWrite(e))return t;var s=void 0,l=void 0;if(e.isEmpty())if(a.assert(t.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),t.getServerCache().isFiltered()){var c=t.getCompleteServerSnap(),u=n.calcCompleteEventChildren(c instanceof Vt?c:Vt.EMPTY_NODE);s=this.filter_.updateFullNode(t.getEventCache().getNode(),u,i)}else{var h=n.calcCompleteEventCache(t.getCompleteServerSnap());s=this.filter_.updateFullNode(t.getEventCache().getNode(),h,i)}else{var d=e.getFront();if(".priority"===d){a.assert(1===e.getLength(),"Can't have a priority with additional path components");var p=o.getNode();l=t.getServerCache().getNode();var f=n.calcEventCacheAfterServerOverwrite(e,p,l);s=null!=f?this.filter_.updatePriority(p,f):o.getNode()}else{var g=e.popFront(),m=void 0;if(o.isCompleteForChild(d)){l=t.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(e,o.getNode(),l);m=null!=v?o.getNode().getImmediateChild(d).updateChild(g,v):o.getNode().getImmediateChild(d)}else m=n.calcCompleteChild(d,t.getServerCache());s=null!=m?this.filter_.updateChild(o.getNode(),d,m,g,r,i):o.getNode()}}return t.updateEventSnap(s,o.isFullyInitialized()||e.isEmpty(),this.filter_.filtersNodes())},t.prototype.applyServerOverwrite_=function(t,e,n,r,i,o,s){var a,l=t.getServerCache(),c=o?this.filter_:this.filter_.getIndexedFilter();if(e.isEmpty())a=c.updateFullNode(l.getNode(),n,null);else if(c.filtersNodes()&&!l.isFiltered()){var u=l.getNode().updateChild(e,n);a=c.updateFullNode(l.getNode(),u,null)}else{var h=e.getFront();if(!l.isCompleteForPath(e)&&e.getLength()>1)return t;var d=e.popFront(),p=l.getNode().getImmediateChild(h).updateChild(d,n);a=".priority"===h?c.updatePriority(l.getNode(),p):c.updateChild(l.getNode(),h,p,d,we,null)}var f=t.updateServerSnap(a,l.isFullyInitialized()||e.isEmpty(),c.filtersNodes()),g=new Ce(r,f,i);return this.generateEventCacheAfterServerEvent_(f,e,r,g,s)},t.prototype.applyUserOverwrite_=function(t,e,n,r,i,o){var s,a,l=t.getEventCache(),c=new Ce(r,t,i);if(e.isEmpty())a=this.filter_.updateFullNode(t.getEventCache().getNode(),n,o),s=t.updateEventSnap(a,!0,this.filter_.filtersNodes());else{var u=e.getFront();if(".priority"===u)a=this.filter_.updatePriority(t.getEventCache().getNode(),n),s=t.updateEventSnap(a,l.isFullyInitialized(),l.isFiltered());else{var h=e.popFront(),d=l.getNode().getImmediateChild(u),p=void 0;if(h.isEmpty())p=n;else{var f=c.getCompleteChild(u);p=null!=f?".priority"===h.getBack()&&f.getChild(h.parent()).isEmpty()?f:f.updateChild(h,n):Vt.EMPTY_NODE}if(d.equals(p))s=t;else{var g=this.filter_.updateChild(l.getNode(),u,p,h,c,o);s=t.updateEventSnap(g,l.isFullyInitialized(),this.filter_.filtersNodes())}}}return s},t.cacheHasChild_=function(t,e){return t.getEventCache().isCompleteForChild(e)},t.prototype.applyUserMerge_=function(e,n,r,i,o,s){var a=this,l=e;return r.foreach((function(r,c){var u=n.child(r);t.cacheHasChild_(e,u.getFront())&&(l=a.applyUserOverwrite_(l,u,c,i,o,s))})),r.foreach((function(r,c){var u=n.child(r);t.cacheHasChild_(e,u.getFront())||(l=a.applyUserOverwrite_(l,u,c,i,o,s))})),l},t.prototype.applyMerge_=function(t,e){return e.foreach((function(e,n){t=t.updateChild(e,n)})),t},t.prototype.applyServerMerge_=function(t,e,n,r,i,o,s){var a=this;if(t.getServerCache().getNode().isEmpty()&&!t.getServerCache().isFullyInitialized())return t;var l,c=t;l=e.isEmpty()?n:de.Empty.setTree(e,n);var u=t.getServerCache().getNode();return l.children.inorderTraversal((function(e,n){if(u.hasChild(e)){var l=t.getServerCache().getNode().getImmediateChild(e),h=a.applyMerge_(l,n);c=a.applyServerOverwrite_(c,new Y(e),h,r,i,o,s)}})),l.children.inorderTraversal((function(e,n){var l=!t.getServerCache().isCompleteForChild(e)&&null==n.value;if(!u.hasChild(e)&&!l){var h=t.getServerCache().getNode().getImmediateChild(e),d=a.applyMerge_(h,n);c=a.applyServerOverwrite_(c,new Y(e),d,r,i,o,s)}})),c},t.prototype.ackUserWrite_=function(t,e,n,r,i,o){if(null!=r.shadowingWrite(e))return t;var s=t.getServerCache().isFiltered(),a=t.getServerCache();if(null!=n.value){if(e.isEmpty()&&a.isFullyInitialized()||a.isCompleteForPath(e))return this.applyServerOverwrite_(t,e,a.getNode().getChild(e),r,i,s,o);if(e.isEmpty()){var l=de.Empty;return a.getNode().forEachChild(xt,(function(t,e){l=l.set(new Y(t),e)})),this.applyServerMerge_(t,e,l,r,i,s,o)}return t}var c=de.Empty;return n.foreach((function(t,n){var r=e.child(t);a.isCompleteForPath(r)&&(c=c.set(t,a.getNode().getChild(r)))})),this.applyServerMerge_(t,e,c,r,i,s,o)},t.prototype.listenComplete_=function(t,e,n,r){var i=t.getServerCache(),o=t.updateServerSnap(i.getNode(),i.isFullyInitialized()||e.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,e,n,we,r)},t.prototype.revertUserWrite_=function(t,e,n,r,i){var o;if(null!=n.shadowingWrite(e))return t;var s=new Ce(n,t,r),l=t.getEventCache().getNode(),c=void 0;if(e.isEmpty()||".priority"===e.getFront()){var u=void 0;if(t.getServerCache().isFullyInitialized())u=n.calcCompleteEventCache(t.getCompleteServerSnap());else{var h=t.getServerCache().getNode();a.assert(h instanceof Vt,"serverChildren would be complete if leaf node"),u=n.calcCompleteEventChildren(h)}c=this.filter_.updateFullNode(l,u=u,i)}else{var d=e.getFront(),p=n.calcCompleteChild(d,t.getServerCache());null==p&&t.getServerCache().isCompleteForChild(d)&&(p=l.getImmediateChild(d)),(c=null!=p?this.filter_.updateChild(l,d,p,e.popFront(),s,i):t.getEventCache().getNode().hasChild(d)?this.filter_.updateChild(l,d,Vt.EMPTY_NODE,e.popFront(),s,i):l).isEmpty()&&t.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(t.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,o,i))}return o=t.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(Y.Empty),t.updateEventSnap(c,o,this.filter_.filtersNodes())},t}(),Se=function(){function t(t){this.query_=t,this.index_=this.query_.getQueryParams().getIndex()}return t.prototype.generateEventsForChanges=function(t,e,n){var r=this,i=[],o=[];return t.forEach((function(t){t.type===be.CHILD_CHANGED&&r.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push(be.childMovedChange(t.childName,t.snapshotNode))})),this.generateEventsForType_(i,be.CHILD_REMOVED,t,n,e),this.generateEventsForType_(i,be.CHILD_ADDED,t,n,e),this.generateEventsForType_(i,be.CHILD_MOVED,o,n,e),this.generateEventsForType_(i,be.CHILD_CHANGED,t,n,e),this.generateEventsForType_(i,be.VALUE,t,n,e),i},t.prototype.generateEventsForType_=function(t,e,n,r,i){var o=this,s=n.filter((function(t){return t.type===e}));s.sort(this.compareChanges_.bind(this)),s.forEach((function(e){var n=o.materializeSingleChange_(e,i);r.forEach((function(r){r.respondsTo(e.type)&&t.push(r.createEvent(n,o.query_))}))}))},t.prototype.materializeSingleChange_=function(t,e){return"value"===t.type||"child_removed"===t.type||(t.prevName=e.getPredecessorChildName(t.childName,t.snapshotNode,this.index_)),t},t.prototype.compareChanges_=function(t,e){if(null==t.childName||null==e.childName)throw a.assertionError("Should only compare child_ events.");var n=new wt(t.childName,t.snapshotNode),r=new wt(e.childName,e.snapshotNode);return this.index_.compare(n,r)},t}(),ke=function(){function t(t,e){this.query_=t,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new ye(n.getIndex()),i=n.getNodeFilter();this.processor_=new xe(i);var o=e.getServerCache(),s=e.getEventCache(),a=r.updateFullNode(Vt.EMPTY_NODE,o.getNode(),null),l=i.updateFullNode(Vt.EMPTY_NODE,s.getNode(),null),c=new me(a,o.isFullyInitialized(),r.filtersNodes()),u=new me(l,s.isFullyInitialized(),i.filtersNodes());this.viewCache_=new ve(u,c),this.eventGenerator_=new Se(this.query_)}return t.prototype.getQuery=function(){return this.query_},t.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},t.prototype.getCompleteServerCache=function(t){var e=this.viewCache_.getCompleteServerSnap();return e&&(this.query_.getQueryParams().loadsAllData()||!t.isEmpty()&&!e.getImmediateChild(t.getFront()).isEmpty())?e.getChild(t):null},t.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},t.prototype.addEventRegistration=function(t){this.eventRegistrations_.push(t)},t.prototype.removeEventRegistration=function(t,e){var n=[];if(e){a.assert(null==t,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(t){var i=t.createCancelEvent(e=e,r);i&&n.push(i)}))}if(t){for(var i=[],o=0;othis.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:t,snap:e,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(t,e)),this.lastWriteId_=n},t.prototype.addMerge=function(t,e,n){a.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:t,children:e,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(t,e),this.lastWriteId_=n},t.prototype.getWrite=function(t){for(var e=0;e=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,o=!1,s=this.allWrites_.length-1;i&&s>=0;){var l=this.allWrites_[s];l.visible&&(s>=n&&this.recordContainsPath_(l,r.path)?i=!1:r.path.contains(l.path)&&(o=!0)),s--}return!!i&&(o?(this.resetTree_(),!0):(r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):M(r.children,(function(t){e.visibleWrites_=e.visibleWrites_.removeWrite(r.path.child(t))})),!0))},t.prototype.getCompleteWriteData=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcCompleteEventCache=function(e,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(e);return!i&&o.isEmpty()?n:i||null!=n||o.hasCompleteWrite(Y.Empty)?t.layerTree_(this.allWrites_,(function(t){return(t.visible||i)&&(!r||!~r.indexOf(t.writeId))&&(t.path.contains(e)||e.contains(t.path))}),e).apply(n||Vt.EMPTY_NODE):null}var s=this.visibleWrites_.getCompleteNode(e);if(null!=s)return s;var a=this.visibleWrites_.childCompoundWrite(e);return a.isEmpty()?n:null!=n||a.hasCompleteWrite(Y.Empty)?a.apply(n||Vt.EMPTY_NODE):null},t.prototype.calcCompleteEventChildren=function(t,e){var n=Vt.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(t);if(r)return r.isLeafNode()||r.forEachChild(It,(function(t,e){n=n.updateImmediateChild(t,e)})),n;if(e){var i=this.visibleWrites_.childCompoundWrite(t);return e.forEachChild(It,(function(t,e){var r=i.childCompoundWrite(new Y(t)).apply(e);n=n.updateImmediateChild(t,r)})),i.getCompleteChildren().forEach((function(t){n=n.updateImmediateChild(t.name,t.node)})),n}return this.visibleWrites_.childCompoundWrite(t).getCompleteChildren().forEach((function(t){n=n.updateImmediateChild(t.name,t.node)})),n},t.prototype.calcEventCacheAfterServerOverwrite=function(t,e,n,r){a.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=t.child(e);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(e):o.apply(r.getChild(e))},t.prototype.calcCompleteChild=function(t,e,n){var r=t.child(e),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(e)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(e)):null},t.prototype.shadowingWrite=function(t){return this.visibleWrites_.getCompleteNode(t)},t.prototype.calcIndexedSlice=function(t,e,n,r,i,o){var s,a=this.visibleWrites_.childCompoundWrite(t),l=a.getCompleteNode(Y.Empty);if(null!=l)s=l;else{if(null==e)return[];s=a.apply(e)}if((s=s.withIndex(o)).isEmpty()||s.isLeafNode())return[];for(var c=[],u=o.getCompare(),h=i?s.getReverseIteratorFrom(n,o):s.getIteratorFrom(n,o),d=h.getNext();d&&c.length0?this.allWrites_[this.allWrites_.length-1].writeId:-1},t.DefaultFilter_=function(t){return t.visible},t.layerTree_=function(t,e,n){for(var r=Ie.Empty,i=0;i0&&!r&&(u?this.listenProvider_.stopListening(t.queryForListening_(e),null):c.forEach((function(e){var n=i.queryToTagMap.get(t.makeQueryKey_(e));i.listenProvider_.stopListening(t.queryForListening_(e),n)}))),this.removeTags_(c)}return a},t.prototype.calcCompleteEventCache=function(t,e){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(t,(function(e,n){var r=Y.relativePath(e,t),i=n.getCompleteServerCache(r);if(i)return i}));return n.calcCompleteEventCache(t,r,e,!0)},t.prototype.collectDistinctViewsForSubTree_=function(t){return t.fold((function(t,e,n){if(e&&e.hasCompleteView())return[e.getCompleteView()];var r=[];return e&&(r=e.getQueryViews()),M(n,(function(t,e){r=r.concat(e)})),r}))},t.prototype.removeTags_=function(e){for(var n=0;n0&&a.contains(t.statsToReport_,e)&&(n[e]=i,r=!0)})),r&&this.server_.reportStats(n),X(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},t}(),Fe=function(){function t(){this.eventLists_=[],this.recursionDepth_=0}return t.prototype.queueEvents=function(t){for(var e=null,n=0;n0,"Requires a non-empty array")}return t.prototype.trigger=function(t){for(var e=[],n=1;ndocument.domain="'+document.domain+'";<\/script>');var s=""+o+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(l){C("frame writing exception"),l.stack&&C(l.stack),C(l)}}}return t.createIFrame_=function(){var t=document.createElement("iframe");if(t.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(t);try{t.contentWindow.document||C("No IE domain setting required")}catch(n){var e=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+e+"';document.close();})())"}return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t},t.prototype.close=function(){var t=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)}),Math.floor(0)));var e=this.onDisconnect;e&&(this.onDisconnect=null,e())},t.prototype.startLongPoll=function(t,e){for(this.myID=t,this.myPW=e,this.alive=!0;this.newRequest_(););},t.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var t={};t.id=this.myID,t.pw=this.myPW,t.ser=this.currentSerial;for(var e=this.urlFn(t),n="",r=0;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+30+n.length<=1870;){var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return this.addLongPollTag_(e+=n,this.currentSerial),!0}return!1},t.prototype.enqueueSegment=function(t,e,n){this.pendingSegs.push({seg:t,ts:e,d:n}),this.alive&&this.newRequest_()},t.prototype.addLongPollTag_=function(t,e){var n=this;this.outstandingRequests.add(e);var r=function(){n.outstandingRequests.delete(e),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(t,(function(){clearTimeout(i),r()}))},t.prototype.addTag=function(t,e){var n=this;a.isNodeSdk()?this.doNodeLongPoll(t,e):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){var t=r.readyState;t&&"loaded"!==t&&"complete"!==t||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),e())},r.onerror=function(){C("Long-poll script failed to load: "+t),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}}),Math.floor(1))},t}(),We="",Ge=null;"undefined"!=typeof MozWebSocket?Ge=MozWebSocket:"undefined"!=typeof WebSocket&&(Ge=WebSocket);var $e=function(){function t(e,n,r,i,o){this.connId=e,this.applicationId=r,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=E(this.connId),this.stats_=Re.getCollection(n),this.connURL=t.connectionURL_(n,i,o)}return t.connectionURL_=function(t,e,n){var r={v:"5"};return!a.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),e&&(r.s=e),n&&(r.ls=n),t.connectionURL("websocket",r)},t.prototype.open=function(t,e){var n=this;this.onDisconnect=e,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(a.isNodeSdk()){var r={headers:{"User-Agent":"Firebase/5/"+We+"/"+process.platform+"/"+(a.CONSTANTS.NODE_ADMIN?"AdminNode":"Node"),"X-Firebase-GMPID":this.applicationId||""}},i=process.env,o=0===this.connURL.indexOf("wss://")?i.HTTPS_PROXY||i.https_proxy:i.HTTP_PROXY||i.http_proxy;o&&(r.proxy={origin:o}),this.mySock=new Ge(this.connURL,[],r)}else this.mySock=new Ge(this.connURL,[],r={headers:{"X-Firebase-GMPID":this.applicationId||""}})}catch(l){this.log_("Error instantiating WebSocket.");var s=l.message||l.data;return s&&this.log_(s),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(t){n.handleIncomingFrame(t)},this.mySock.onerror=function(t){n.log_("WebSocket error. Closing connection.");var e=t.message||t.data;e&&n.log_(e),n.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Ge&&!t.forceDisallow_},t.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(t){if(this.frames.push(t),this.frames.length===this.totalFrames){var e=this.frames.join("");this.frames=null;var n=a.jsonEval(e);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(t){this.totalFrames=t,this.frames=[]},t.prototype.extractFrameCount_=function(t){if(a.assert(null===this.frames,"We already have a frame buffer"),t.length<=6){var e=Number(t);if(!isNaN(e))return this.handleNewFrameCount_(e),null}return this.handleNewFrameCount_(1),t},t.prototype.handleIncomingFrame=function(t){if(null!==this.mySock){var e=t.data;if(this.bytesReceived+=e.length,this.stats_.incrementCounter("bytes_received",e.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(e);else{var n=this.extractFrameCount_(e);null!==n&&this.appendFrame_(n)}}},t.prototype.send=function(t){this.resetKeepAlive();var e=a.stringify(t);this.bytesSent+=e.length,this.stats_.incrementCounter("bytes_sent",e.length);var n=R(e,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r0)return this.transports_[0];throw new Error("No transports available")},t.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},t}(),Qe=function(){function t(t,e,n,r,i,o,s,a){this.id=t,this.repoInfo_=e,this.applicationId_=n,this.onMessage_=r,this.onReady_=i,this.onDisconnect_=o,this.onKill_=s,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=E("c:"+this.id+":"),this.transportManager_=new Ke(e),this.log_("Connection created"),this.start_()}return t.prototype.start_=function(){var t=this,e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){t.conn_&&t.conn_.open(n,r)}),Math.floor(0));var i=e.healthyTimeout||0;i>0&&(this.healthyTimeout_=X((function(){t.healthyTimeout_=null,t.isHealthy_||(t.conn_&&t.conn_.bytesReceived>102400?(t.log_("Connection exceeded healthy timeout but has received "+t.conn_.bytesReceived+" bytes. Marking connection healthy."),t.isHealthy_=!0,t.conn_.markConnectionHealthy()):t.conn_&&t.conn_.bytesSent>10240?t.log_("Connection exceeded healthy timeout but has sent "+t.conn_.bytesSent+" bytes. Leaving connection alive."):(t.log_("Closing unhealthy connection after timeout."),t.close()))}),Math.floor(i)))},t.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},t.prototype.disconnReceiver_=function(t){var e=this;return function(n){t===e.conn_?e.onConnectionLost_(n):t===e.secondaryConn_?(e.log_("Secondary connection lost."),e.onSecondaryConnectionLost_()):e.log_("closing an old connection")}},t.prototype.connReceiver_=function(t){var e=this;return function(n){2!==e.state_&&(t===e.rx_?e.onPrimaryMessageReceived_(n):t===e.secondaryConn_?e.onSecondaryMessageReceived_(n):e.log_("message on old connection"))}},t.prototype.sendRequest=function(t){this.sendData_({t:"d",d:t})},t.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},t.prototype.onSecondaryControl_=function(t){if("t"in t){var e=t.t;"a"===e?this.upgradeIfSecondaryHealthy_():"r"===e?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===e&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},t.prototype.onSecondaryMessageReceived_=function(t){var e=P("t",t),n=P("d",t);if("c"===e)this.onSecondaryControl_(n);else{if("d"!==e)throw new Error("Unknown protocol layer: "+e);this.pendingDataMessages.push(n)}},t.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},t.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},t.prototype.onPrimaryMessageReceived_=function(t){var e=P("t",t),n=P("d",t);"c"===e?this.onControl_(n):"d"===e&&this.onDataMessage_(n)},t.prototype.onDataMessage_=function(t){this.onPrimaryResponse_(),this.onMessage_(t)},t.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},t.prototype.onControl_=function(t){var e=P("t",t);if("d"in t){var n=t.d;if("h"===e)this.onHandshake_(n);else if("n"===e){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime());var t=(new Date).getTime()-this.lastConnectionAttemptTime_,e=Math.max(0,this.reconnectDelay_-t);e=Math.random()*e,this.log_("Trying to reconnect in "+e+"ms"),this.scheduleConnect_(e),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},e.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+e.nextConnectionId_++,o=this,s=this.lastSessionId,l=!1,c=null,u=function(){c?c.close():(l=!0,r())};this.realtime_={close:u,sendRequest:function(t){a.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(t)}};var h=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(h).then((function(e){l?C("getToken() completed but was canceled"):(C("getToken() completed. Creating connection."),o.authToken_=e&&e.accessToken,c=new Qe(i,o.repoInfo_,o.applicationId_,t,n,r,(function(t){k(t+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")}),s))})).then(null,(function(t){o.log_("Failed to get token: "+t),l||(a.CONSTANTS.NODE_ADMIN&&k(t),u())}))}},e.prototype.interrupt=function(t){C("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},e.prototype.resume=function(t){C("Resuming connection for reason: "+t),delete this.interruptReasons_[t],a.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},e.prototype.handleTimestamp_=function(t){var e=t-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:e})},e.prototype.cancelSentTransactions_=function(){for(var t=0;t=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},e.prototype.onSecurityDebugPacket_=function(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t.msg.replace("\n","\nFIREBASE: "))},e.prototype.restoreState_=function(){var t,e,n,r;this.tryAuth();try{for(var i=s.__values(this.listens.values()),o=i.next();!o.done;o=i.next()){var a=o.value;try{for(var l=(n=void 0,s.__values(a.values())),c=l.next();!c.done;c=l.next())this.sendListen_(c.value)}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(p){t={error:p}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}for(var u=0;u=200&&l.status<300){try{t=a.jsonEval(l.responseText)}catch(e){k("Failed to parse JSON response for "+s+": "+l.responseText)}n(null,t)}else 401!==l.status&&404!==l.status&&k("Got unsuccessful REST response for "+s+" Status: "+l.status),n(l.status);n=null}},l.open("GET",s,!0),l.send()}))},e}(Xe),Ze=function(){function t(t,e,n,r){var i=this;if(this.repoInfo_=t,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Fe,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new le,this.persistentConnection_=null,this.stats_=Re.getCollection(t),e||("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Je(this.repoInfo_,this.onDataUpdate_.bind(this),r),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if(null!=o){if("object"!=typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{a.stringify(o)}catch(s){throw new Error("Invalid authOverride provided: "+s)}}this.persistentConnection_=new Ye(this.repoInfo_,n.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),r,o),this.server_=this.persistentConnection_}r.addTokenChangeListener((function(t){i.server_.refreshAuthToken(t)})),this.statsReporter_=Re.getOrCreateReporter(t,(function(){return new Le(i.stats_,i.server_)})),this.transactionsInit_(),this.infoData_=new Pe,this.infoSyncTree_=new Ne({startListening:function(t,e,n,r){var o=[],s=i.infoData_.getNode(t.path);return s.isEmpty()||(o=i.infoSyncTree_.applyServerOverwrite(t.path,s),setTimeout((function(){r("ok")}),0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Ne({startListening:function(t,e,n,r){return i.server_.listen(t,n,e,(function(e,n){var o=r(e,n);i.eventQueue_.raiseEventsForChangedPath(t.path,o)})),[]},stopListening:function(t,e){i.server_.unlisten(t,e)}})}return t.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},t.prototype.name=function(){return this.repoInfo_.namespace},t.prototype.serverTime=function(){var t=this.infoData_.getNode(new Y(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t},t.prototype.generateServerValues=function(){return(t=(t={timestamp:this.serverTime()})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t},t.prototype.onDataUpdate_=function(t,e,n,r){this.dataUpdateCount++;var i=new Y(t);e=this.interceptServerDataCallback_?this.interceptServerDataCallback_(t,e):e;var o=[];if(r)if(n){var s=a.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyTaggedQueryMerge(i,s,r)}else{var l=Ht(e);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,l,r)}else if(n){var c=a.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyServerMerge(i,c)}else{var u=Ht(e);o=this.serverSyncTree_.applyServerOverwrite(i,u)}var h=i;o.length>0&&(h=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(h,o)},t.prototype.interceptServerData_=function(t){this.interceptServerDataCallback_=t},t.prototype.onConnectStatus_=function(t){this.updateInfo_("connected",t),!1===t&&this.runOnDisconnectEvents_()},t.prototype.onServerInfoUpdate_=function(t){var e=this;M(t,(function(t,n){e.updateInfo_(t,n)}))},t.prototype.updateInfo_=function(t,e){var n=new Y("/.info/"+t),r=Ht(e);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},t.prototype.getNextWriteId_=function(){return this.nextWriteId_++},t.prototype.setWithPriority=function(t,e,n,r){var i=this;this.log_("set",{path:t.toString(),value:e,priority:n});var o=this.generateServerValues(),s=Ht(e,n),a=this.serverSyncTree_.calcCompleteEventCache(t),l=ie(s,a,o),c=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserOverwrite(t,l,c,!0);this.eventQueue_.queueEvents(u),this.server_.put(t.toString(),s.val(!0),(function(e,n){var o="ok"===e;o||k("set at "+t+" failed: "+e);var s=i.serverSyncTree_.ackUserWrite(c,!o);i.eventQueue_.raiseEventsForChangedPath(t,s),i.callOnCompleteCallback(r,e,n)}));var h=this.abortTransactions_(t);this.rerunTransactions_(h),this.eventQueue_.raiseEventsForChangedPath(h,[])},t.prototype.update=function(t,e,n){var r=this;this.log_("update",{path:t.toString(),value:e});var i=!0,o=this.generateServerValues(),s={};if(M(e,(function(e,n){i=!1,s[e]=re(t.child(e),Ht(n),r.serverSyncTree_,o)})),i)C("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var a=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(t,s,a);this.eventQueue_.queueEvents(l),this.server_.merge(t.toString(),e,(function(e,i){var o="ok"===e;o||k("update at "+t+" failed: "+e);var s=r.serverSyncTree_.ackUserWrite(a,!o),l=s.length>0?r.rerunTransactions_(t):t;r.eventQueue_.raiseEventsForChangedPath(l,s),r.callOnCompleteCallback(n,e,i)})),M(e,(function(e){var n=r.abortTransactions_(t.child(e));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(t,[])}},t.prototype.runOnDisconnectEvents_=function(){var t=this;this.log_("onDisconnectEvents");var e=this.generateServerValues(),n=new le;this.onDisconnect_.forEachTree(Y.Empty,(function(r,i){var o=re(r,i,t.serverSyncTree_,e);n.remember(r,o)}));var r=[];n.forEachTree(Y.Empty,(function(e,n){r=r.concat(t.serverSyncTree_.applyServerOverwrite(e,n));var i=t.abortTransactions_(e);t.rerunTransactions_(i)})),this.onDisconnect_=new le,this.eventQueue_.raiseEventsForChangedPath(Y.Empty,r)},t.prototype.onDisconnectCancel=function(t,e){var n=this;this.server_.onDisconnectCancel(t.toString(),(function(r,i){"ok"===r&&n.onDisconnect_.forget(t),n.callOnCompleteCallback(e,r,i)}))},t.prototype.onDisconnectSet=function(t,e,n){var r=this,i=Ht(e);this.server_.onDisconnectPut(t.toString(),i.val(!0),(function(e,o){"ok"===e&&r.onDisconnect_.remember(t,i),r.callOnCompleteCallback(n,e,o)}))},t.prototype.onDisconnectSetWithPriority=function(t,e,n,r){var i=this,o=Ht(e,n);this.server_.onDisconnectPut(t.toString(),o.val(!0),(function(e,n){"ok"===e&&i.onDisconnect_.remember(t,o),i.callOnCompleteCallback(r,e,n)}))},t.prototype.onDisconnectUpdate=function(t,e,n){var r=this;if(a.isEmpty(e))return C("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(t.toString(),e,(function(i,o){"ok"===i&&M(e,(function(e,n){var i=Ht(n);r.onDisconnect_.remember(t.child(e),i)})),r.callOnCompleteCallback(n,i,o)}))},t.prototype.addEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.addEventRegistration(t,e):this.serverSyncTree_.addEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.removeEventCallbackForQuery=function(t,e){var n;n=".info"===t.path.getFront()?this.infoSyncTree_.removeEventRegistration(t,e):this.serverSyncTree_.removeEventRegistration(t,e),this.eventQueue_.raiseEventsAtPath(t.path,n)},t.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},t.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},t.prototype.stats=function(t){if(void 0===t&&(t=!1),"undefined"!=typeof console){var e;t?(this.statsListener_||(this.statsListener_=new Me(this.stats_)),e=this.statsListener_.get()):e=this.stats_.get();var n=Object.keys(e).reduce((function(t,e){return Math.max(e.length,t)}),0);M(e,(function(t,e){for(var r=t,i=t.length;i=0)return null!=i&&i.trackChildChange(be.childChangedChange(e,n,d)),l.updateImmediateChild(e,n);null!=i&&i.trackChildChange(be.childRemovedChange(e,d));var g=l.updateImmediateChild(e,Vt.EMPTY_NODE);return null!=p&&this.rangedFilter_.matches(p)?(null!=i&&i.trackChildChange(be.childAddedChange(p.name,p.node)),g.updateImmediateChild(p.name,p.node)):g}return n.isEmpty()?t:h&&o(u,c)>=0?(null!=i&&(i.trackChildChange(be.childRemovedChange(u.name,u.node)),i.trackChildChange(be.childAddedChange(e,n))),l.updateImmediateChild(e,n).updateImmediateChild(u.name,Vt.EMPTY_NODE)):t},t}(),nn=function(){function t(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=It}return t.prototype.hasStart=function(){return this.startSet_},t.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},t.prototype.getIndexStartValue=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},t.prototype.getIndexStartName=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:I},t.prototype.hasEnd=function(){return this.endSet_},t.prototype.getIndexEndValue=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},t.prototype.getIndexEndName=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:O},t.prototype.hasLimit=function(){return this.limitSet_},t.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},t.prototype.getLimit=function(){return a.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},t.prototype.getIndex=function(){return this.index_},t.prototype.copy_=function(){var e=new t;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e},t.prototype.limit=function(t){var e=this.copy_();return e.limitSet_=!0,e.limit_=t,e.viewFrom_="",e},t.prototype.limitToFirst=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},t.prototype.limitToLast=function(e){var n=this.copy_();return n.limitSet_=!0,n.limit_=e,n.viewFrom_=t.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},t.prototype.startAt=function(t,e){var n=this.copy_();return n.startSet_=!0,void 0===t&&(t=null),n.indexStartValue_=t,null!=e?(n.startNameSet_=!0,n.indexStartName_=e):(n.startNameSet_=!1,n.indexStartName_=""),n},t.prototype.endAt=function(t,e){var n=this.copy_();return n.endSet_=!0,void 0===t&&(t=null),n.indexEndValue_=t,void 0!==e?(n.endNameSet_=!0,n.indexEndName_=e):(n.endNameSet_=!1,n.indexEndName_=""),n},t.prototype.orderBy=function(t){var e=this.copy_();return e.index_=t,e},t.prototype.getQueryObject=function(){var e=t.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[e.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[e.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[e.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[e.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[e.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?e.VIEW_FROM_LEFT:e.VIEW_FROM_RIGHT),n[e.VIEW_FROM]=r}return this.index_!==It&&(n[e.INDEX]=this.index_.toString()),n},t.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},t.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===It},t.prototype.getNodeFilter=function(){return this.loadsAllData()?new ye(this.getIndex()):this.hasLimit()?new en(this):new tn(this)},t.prototype.toRestQueryStringParameters=function(){var e,n=t.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===It?e=n.PRIORITY_INDEX:this.index_===qt?e=n.VALUE_INDEX:this.index_===xt?e=n.KEY_INDEX:(a.assert(this.index_ instanceof Wt,"Unrecognized index type!"),e=this.index_.toString()),r[n.ORDER_BY]=a.stringify(e),this.startSet_&&(r[n.START_AT]=a.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+a.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=a.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+a.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},t.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},t.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},t.DEFAULT=new t,t}(),rn=function(t){function e(e,n){if(!(e instanceof Ze))throw new Error("new Reference() no longer supported - use app.database().");return t.call(this,e,n,nn.DEFAULT,!1)||this}return s.__extends(e,t),e.prototype.getKey=function(){return a.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},e.prototype.child=function(t){return a.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof t?t=String(t):t instanceof Y||(null===this.path.getFront()?ft("Reference.child",1,t,!1):pt("Reference.child",1,t,!1)),new e(this.repo,this.path.child(t))},e.prototype.getParent=function(){a.validateArgCount("Reference.parent",0,0,arguments.length);var t=this.path.parent();return null===t?null:new e(this.repo,t)},e.prototype.getRoot=function(){a.validateArgCount("Reference.root",0,0,arguments.length);for(var t=this;null!==t.getParent();)t=t.getParent();return t},e.prototype.databaseProp=function(){return this.repo.database},e.prototype.set=function(t,e){a.validateArgCount("Reference.set",1,2,arguments.length),gt("Reference.set",this.path),at("Reference.set",1,t,this.path,!1),a.validateCallback("Reference.set",2,e,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path,t,null,n.wrapCallback(e)),n.promise},e.prototype.update=function(t,e){if(a.validateArgCount("Reference.update",1,2,arguments.length),gt("Reference.update",this.path),Array.isArray(t)){for(var n={},r=0;r0},t.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},t.prototype.forEachChild=function(e){var n=this;M(this.node_.children,(function(r,i){e(new t(r,n,i))}))},t.prototype.forEachDescendant=function(t,e,n){e&&!n&&t(this),this.forEachChild((function(e){e.forEachDescendant(t,!0,n)})),e&&n&&t(this)},t.prototype.forEachAncestor=function(t,e){for(var n=e?this:this.parent();null!==n;){if(t(n))return!0;n=n.parent()}return!1},t.prototype.forEachImmediateDescendantWithValue=function(t){this.forEachChild((function(e){null!==e.getValue()?t(e):e.forEachImmediateDescendantWithValue(t)}))},t.prototype.path=function(){return new Y(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},t.prototype.name=function(){return this.name_},t.prototype.parent=function(){return this.parent_},t.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},t.prototype.updateChild_=function(t,e){var n=e.isEmpty(),r=a.contains(this.node_.children,t);n&&r?(delete this.node_.children[t],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[t]=e.node_,this.node_.childCount++,this.updateParents_())},t}(),an=function(t){return t[t.RUN=0]="RUN",t[t.SENT=1]="SENT",t[t.COMPLETED=2]="COMPLETED",t[t.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",t[t.NEEDS_ABORT=4]="NEEDS_ABORT",t}({});Ze.MAX_TRANSACTION_RETRIES_=25,Ze.prototype.transactionsInit_=function(){this.transactionQueueTree_=new sn},Ze.prototype.startTransaction=function(t,e,n,r){this.log_("transaction on "+t);var i=function(){},o=new rn(this,t);o.on("value",i);var s={path:t,update:e,onComplete:n,status:null,order:m(),applyLocally:r,retryCount:0,unwatcher:function(){o.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},l=this.getLatestState_(t);s.currentInputSnapshot=l;var c=s.update(l.val());if(void 0===c){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var u=new Gt(s.currentInputSnapshot,new rn(this,s.path),It);s.onComplete(null,!1,u)}}else{lt("transaction failed: Data returned ",c,s.path),s.status=an.RUN;var h=this.transactionQueueTree_.subTree(t),d=h.getValue()||[];d.push(s),h.setValue(d);var p=void 0;"object"==typeof c&&null!==c&&a.contains(c,".priority")?(p=a.safeGet(c,".priority"),a.assert(st(p),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):p=(this.serverSyncTree_.calcCompleteEventCache(t)||Vt.EMPTY_NODE).getPriority().val(),p=p;var f=this.generateServerValues(),g=Ht(c,p),v=ie(g,l,f);s.currentOutputSnapshotRaw=g,s.currentOutputSnapshotResolved=v,s.currentWriteId=this.getNextWriteId_();var b=this.serverSyncTree_.applyUserOverwrite(t,v,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(t,b),this.sendReadyTransactions_()}},Ze.prototype.getLatestState_=function(t,e){return this.serverSyncTree_.calcCompleteEventCache(t,e)||Vt.EMPTY_NODE},Ze.prototype.sendReadyTransactions_=function(t){var e=this;if(void 0===t&&(t=this.transactionQueueTree_),t||this.pruneCompletedTransactionsBelowNode_(t),null!==t.getValue()){var n=this.buildTransactionQueue_(t);a.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(t){return t.status===an.RUN}))&&this.sendTransactionQueue_(t.path(),n)}else t.hasChildren()&&t.forEachChild((function(t){e.sendReadyTransactions_(t)}))},Ze.prototype.sendTransactionQueue_=function(t,e){for(var n=this,r=e.map((function(t){return t.currentWriteId})),i=this.getLatestState_(t,r),o=i,s=i.hash(),l=0;l=Ze.MAX_TRANSACTION_RETRIES_)c=!0,u="maxretry",r=r.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0));else{var h=this.getLatestState_(s.path,i);s.currentInputSnapshot=h;var d=t[o].update(h.val());if(void 0!==d){lt("transaction failed: Data returned ",d,s.path);var p=Ht(d);"object"==typeof d&&null!=d&&a.contains(d,".priority")||(p=p.updatePriority(h.getPriority()));var f=s.currentWriteId,g=this.generateServerValues(),m=ie(p,h,g);s.currentOutputSnapshotRaw=p,s.currentOutputSnapshotResolved=m,s.currentWriteId=this.getNextWriteId_(),i.splice(i.indexOf(f),1),r=(r=r.concat(this.serverSyncTree_.applyUserOverwrite(s.path,m,s.currentWriteId,s.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(f,!0))}else c=!0,u="nodata",r=r.concat(this.serverSyncTree_.ackUserWrite(s.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(e,r),r=[],c&&(t[o].status=an.COMPLETED,setTimeout(t[o].unwatcher,Math.floor(0)),t[o].onComplete))if("nodata"===u){var v=new rn(this,t[o].path),b=new Gt(t[o].currentInputSnapshot,v,It);n.push(t[o].onComplete.bind(null,null,!1,b))}else n.push(t[o].onComplete.bind(null,new Error(u),!1,null))}for(this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_),o=0;o0?n:null)}t.forEachChild((function(t){e.pruneCompletedTransactionsBelowNode_(t)}))},Ze.prototype.abortTransactions_=function(t){var e=this,n=this.getAncestorTransactionNode_(t).path(),r=this.transactionQueueTree_.subTree(t);return r.forEachAncestor((function(t){e.abortTransactionsOnNode_(t)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(t){e.abortTransactionsOnNode_(t)})),n},Ze.prototype.abortTransactionsOnNode_=function(t){var e=t.getValue();if(null!==e){for(var n=[],r=[],i=-1,o=0;o=0},t.prototype.asNumber=function(){if("static"===this._source)return 0;var t=Number(this._value);return isNaN(t)&&(t=0),t},t.prototype.getSource=function(){return this._source},t}(),v=function(){function t(t,e,n,r,i){this.app=t,this._client=e,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return t.prototype.setLogLevel=function(t){switch(t){case"debug":this._logger.logLevel=l.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=l.LogLevel.SILENT;break;default:this._logger.logLevel=l.LogLevel.ERROR}},Object.defineProperty(t.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),t.prototype.activate=function(){return s.__awaiter(this,void 0,void 0,(function(){var t,e,n;return s.__generator(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return t=r.sent(),n=t[1],(e=t[0])&&e.config&&e.eTag&&e.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(e.config),this._storage.setActiveConfigEtag(e.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},t.prototype.ensureInitialized=function(){var t=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){t._isInitializationComplete=!0}))),this._initializePromise},t.prototype.fetch=function(){return s.__awaiter(this,void 0,void 0,(function(){var t,e,n,r=this;return s.__generator(this,(function(i){switch(i.label){case 0:t=new f,setTimeout((function(){return s.__awaiter(r,void 0,void 0,(function(){return s.__generator(this,(function(e){return t.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:t})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return e=i.sent(),n=(o=e)instanceof a.FirebaseError&&-1!==o.code.indexOf("fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),e;case 6:return[2]}var o}))}))},t.prototype.fetchAndActivate=function(){return s.__awaiter(this,void 0,void 0,(function(){return s.__generator(this,(function(t){switch(t.label){case 0:return[4,this.fetch()];case 1:return t.sent(),[2,this.activate()]}}))}))},t.prototype.getAll=function(){var t,e,n=this;return(t=this._storageCache.getActiveConfig(),e=this.defaultConfig,void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(s.__assign(s.__assign({},t),e))).reduce((function(t,e){return t[e]=n.getValue(e),t}),{})},t.prototype.getBoolean=function(t){return this.getValue(t).asBoolean()},t.prototype.getNumber=function(t){return this.getValue(t).asNumber()},t.prototype.getString=function(t){return this.getValue(t).asString()},t.prototype.getValue=function(t){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+t+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var e=this._storageCache.getActiveConfig();return e&&void 0!==e[t]?new m("remote",e[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new m("default",String(this.defaultConfig[t])):(this._logger.debug('Returning static value for key "'+t+'". Define a default or remote value if this is unintentional.'),new m("static"))},t}();function b(t,e){var n=t.target.error||void 0;return d.create(e,{originalErrorMessage:n&&n.message})}var y=function(){function t(t,e,n,r){void 0===r&&(r=new Promise((function(t,e){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(t){e(b(t,"storage-open"))},n.onsuccess=function(e){t(e.target.result)},n.onupgradeneeded=function(t){var e=t.target.result;switch(t.oldVersion){case 0:e.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=t,this.appName=e,this.namespace=n,this.openDbPromise=r}return t.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},t.prototype.setLastFetchStatus=function(t){return this.set("last_fetch_status",t)},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.set("last_successful_fetch_timestamp_millis",t)},t.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},t.prototype.setLastSuccessfulFetchResponse=function(t){return this.set("last_successful_fetch_response",t)},t.prototype.getActiveConfig=function(){return this.get("active_config")},t.prototype.setActiveConfig=function(t){return this.set("active_config",t)},t.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},t.prototype.setActiveConfigEtag=function(t){return this.set("active_config_etag",t)},t.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},t.prototype.setThrottleMetadata=function(t){return this.set("throttle_metadata",t)},t.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},t.prototype.get=function(t){return s.__awaiter(this,void 0,void 0,(function(){var e,n=this;return s.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise((function(r,i){var o=e.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),s=n.createCompositeKey(t);try{var a=o.get(s);a.onerror=function(t){i(b(t,"storage-get"))},a.onsuccess=function(t){var e=t.target.result;r(e?e.value:void 0)}}catch(l){i(d.create("storage-get",{originalErrorMessage:l&&l.message}))}}))]}}))}))},t.prototype.set=function(t,e){return s.__awaiter(this,void 0,void 0,(function(){var n,r=this;return s.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,o){var s=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),a=r.createCompositeKey(t);try{var l=s.put({compositeKey:a,value:e});l.onerror=function(t){o(b(t,"storage-set"))},l.onsuccess=function(){i()}}catch(c){o(d.create("storage-set",{originalErrorMessage:c&&c.message}))}}))]}}))}))},t.prototype.delete=function(t){return s.__awaiter(this,void 0,void 0,(function(){var e,n=this;return s.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return e=r.sent(),[2,new Promise((function(r,i){var o=e.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=n.createCompositeKey(t);try{var a=o.delete(s);a.onerror=function(t){i(b(t,"storage-delete"))},a.onsuccess=function(){r()}}catch(l){i(d.create("storage-delete",{originalErrorMessage:l&&l.message}))}}))]}}))}))},t.prototype.createCompositeKey=function(t){return[this.appId,this.appName,this.namespace,t].join()},t}(),_=function(){function t(t){this.storage=t}return t.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},t.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},t.prototype.getActiveConfig=function(){return this.activeConfig},t.prototype.loadFromStorage=function(){return s.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,i,o;return s.__generator(this,(function(s){switch(s.label){case 0:return t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return(r=s.sent())&&(this.lastFetchStatus=r),[4,e];case 2:return(i=s.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(o=s.sent())&&(this.activeConfig=o),[2]}}))}))},t.prototype.setLastFetchStatus=function(t){return this.lastFetchStatus=t,this.storage.setLastFetchStatus(t)},t.prototype.setLastSuccessfulFetchTimestampMillis=function(t){return this.lastSuccessfulFetchTimestampMillis=t,this.storage.setLastSuccessfulFetchTimestampMillis(t)},t.prototype.setActiveConfig=function(t){return this.activeConfig=t,this.storage.setActiveConfig(t)},t}();function w(t){var e=1e3*Math.pow(2,t),n=Math.round(.5*e*(Math.random()-.5)*2);return Math.min(144e5,e+n)}function C(t,e){return new Promise((function(n,r){var i=Math.max(e-Date.now(),0),o=setTimeout(n,i);t.addEventListener((function(){clearTimeout(o),r(d.create("fetch-throttle",{throttleEndTimeMillis:e}))}))}))}var E=function(){function t(t,e){this.client=t,this.storage=e}return t.prototype.fetch=function(t){return s.__awaiter(this,void 0,void 0,(function(){var e;return s.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return e=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(t,e)]}}))}))},t.prototype.attemptFetch=function(t,e){var n=e.throttleEndTimeMillis,r=e.backoffCount;return s.__awaiter(this,void 0,void 0,(function(){var e,i,o;return s.__generator(this,(function(s){switch(s.label){case 0:return[4,C(t.signal,n)];case 1:s.sent(),s.label=2;case 2:return s.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return e=s.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return s.sent(),[2,e];case 5:if(!function(t){if(!(t instanceof a.FirebaseError))return!1;var e=Number(t.httpStatus);return 429===e||500===e||503===e||504===e}(i=s.sent()))throw i;return o={throttleEndTimeMillis:Date.now()+w(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(o)];case 6:return s.sent(),[2,this.attemptFetch(t,o)];case 7:return[2]}}))}))},t}(),x="@firebase/remote-config";function S(t){t.INTERNAL.registerComponent(new c.Component("remoteConfig",(function(e,n){var r=e.getProvider("app").getImmediate(),i=e.getProvider("installations").getImmediate();if("undefined"==typeof window)throw d.create("registration-window");var o=r.options,s=o.projectId,a=o.apiKey,c=o.appId;if(!s)throw d.create("registration-project-id");if(!a)throw d.create("registration-api-key");if(!c)throw d.create("registration-app-id");var h=new y(c,r.name,n=n||"firebase"),f=new _(h),g=new l.Logger(x);g.logLevel=l.LogLevel.ERROR;var m=new p(i,t.SDK_VERSION,n,s,a,c),b=new E(m,h),w=new u(b,h,f,g),C=new v(r,w,f,h,g);return C.ensureInitialized(),C}),"PUBLIC").setMultipleInstances(!0)),t.registerVersion(x,"0.1.26")}S(i),e.registerRemoteConfig=S},PDX0:function(t,e){(function(e){t.exports=e}).call(this,{})},QN7Q:function(t,e){var n=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return e.apply(t,r.concat(n.call(arguments)))}}},"S+S0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mrSG"),i=n("zVF4"),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),s=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.optional,i=this.normalizeInstanceIdentifier(e.identifier);try{var o=this.getOrInitializeService(i);if(!o){if(n)return null;throw Error("Service "+this.name+" is not available")}return o}catch(s){if(n)return null;throw s}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(u){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=r.__read(o.value,2),a=s[1],l=this.normalizeInstanceIdentifier(s[0]);try{var c=this.getOrInitializeService(l);a.resolve(c)}catch(u){}}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}(),a=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new s(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=a,e.Provider=s},TypT:function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),r=0,i=n.length;r1?{type:p[i],data:t.substring(1)}:{type:p[i]}:f}i=new Uint8Array(t)[0];var o=s(t,1);return g&&"blob"===n&&(o=new g([o])),{type:p[i],data:o}},e.decodeBase64Packet=function(t,e){var n=p[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var i=r.decode(t.substr(1));return"blob"===e&&g&&(i=new g([i])),{type:n,data:i}},e.encodePayload=function(t,n,r){"function"==typeof n&&(r=n,n=null);var i=o(t);return n&&i?g&&!h?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void m(t,(function(t,r){e.encodePacket(t,!!i&&n,!1,(function(t){r(null,function(t){return t.length+":"+t}(t))}))}),(function(t,e){return r(e.join(""))})):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===t)return r(f,0,1);for(var o,s,a="",l=0,c=t.length;l0;){for(var a=new Uint8Array(i),l=0===a[0],c="",u=1;255!==a[u];u++){if(c.length>310)return r(f,0,1);c+=a[u]}i=s(i,2+c.length),c=parseInt(c);var h=s(i,0,c);if(l)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(g){var d=new Uint8Array(h);for(h="",u=0;u>6,s[l++]=128|63&o):o<55296||o>=57344?(s[l++]=224|o>>12,s[l++]=128|o>>6&63,s[l++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++r)),s[l++]=240|o>>18,s[l++]=128|o>>12&63,s[l++]=128|o>>6&63,s[l++]=128|63&o);t=s}else{if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var c=[],u=[];for(r=0;r<64;++r){var h=t[r]||0;c[r]=92^h,u[r]=54^h}Sha256.call(this,e,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var r,i,o=0,s=t.length,a=this.blocks;o>2]|=t[o]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(a[i>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=a[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,n,r,i,o,s=this.h0,a=this.h1,l=this.h2,c=this.h3,u=this.h4,h=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=a&l,t=0;t<64;t+=4)this.first?(this.is224?(n=300032,p=(e=f[0]-1413257819)-150054599<<0,c=e+24177077<<0):(n=704751109,p=(e=f[0]-210244248)-1521486534<<0,c=e+143694565<<0),this.first=!1):(p=c+(e=p+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&h^~u&d)+K[t]+f[t])<<0,c=e+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((n=s&a)^s&l^o))<<0),d=l+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&u^~p&h)+K[t+1]+f[t+1])<<0,l=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((r=c&s)^c&a^n))<<0,h=a+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&u)+K[t+2]+f[t+2])<<0,a=e+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((i=l&c)^l&s^r))<<0,u=s+(e=u+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&p)+K[t+3]+f[t+3])<<0,s=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((o=a&l)^a&c^i))<<0;this.h0=this.h0+s<<0,this.h1=this.h1+a<<0,this.h2=this.h2+l<<0,this.h3=this.h3+c<<0,this.h4=this.h4+u<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,l=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s];return this.is224||(l+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3,i=this.h4,o=this.h5,s=this.h6,a=this.h7,l=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o,s>>24&255,s>>16&255,s>>8&255,255&s];return this.is224||l.push(a>>24&255,a>>16&255,a>>8&255,255&a),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=(function(){return exports}).call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()},bQlE:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r;n("fSjL");var o,s,a,l,c=n("mrSG"),u=n("zVF4"),h=n("q/0M"),d=n("S+S0"),p=((o={})["trace started"]="Trace {$traceName} was started before.",o["trace stopped"]="Trace {$traceName} is not running.",o["no window"]="Window is not available.",o["no app id"]="App id is not available.",o["no project id"]="Project id is not available.",o["no api key"]="Api key is not available.",o["invalid cc log"]="Attempted to queue invalid cc event",o["FB not default"]="Performance can only start when Firebase app instance is the default one.",o["RC response not ok"]="RC response is not ok",o["invalid attribute name"]="Attribute name {$attributeName} is invalid.",o["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",o["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",o["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",o),f=new u.ErrorFactory("performance","Performance",p),g=function(){function t(t){if(this.window=t,!t)throw f.create("no window");this.performance=t.performance,this.PerformanceObserver=t.PerformanceObserver,this.windowLocation=t.location,this.navigator=t.navigator,this.document=t.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=t.localStorage),t.perfMetrics&&t.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=t.perfMetrics.onFirstInputDelay)}return t.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},t.prototype.mark=function(t){this.performance&&this.performance.mark&&this.performance.mark(t)},t.prototype.measure=function(t,e,n){this.performance&&this.performance.measure&&this.performance.measure(t,e,n)},t.prototype.getEntriesByType=function(t){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(t):[]},t.prototype.getEntriesByName=function(t){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(t):[]},t.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},t.prototype.requiredApisAvailable=function(){return!!(fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled)},t.prototype.setupObserver=function(t,e){this.PerformanceObserver&&new this.PerformanceObserver((function(t){for(var n=0,r=t.getEntries();n1)throw f.create("invalid String merger input");for(var r=[],i=0;ii&&r.push(e.charAt(i));return r.join("")}var v,b=function(){function t(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=m("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=m("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return t.prototype.getAppId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!t)throw f.create("no app id");return t},t.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw f.create("no project id");return t},t.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw f.create("no api key");return t},t.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},t.getInstance=function(){return void 0===l&&(l=new t),l},t}();function y(){return v}var _=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.VISIBLE=1]="VISIBLE",t[t.HIDDEN=2]="HIDDEN",t}({}),w=["firebase_","google_","ga_"],C=new RegExp("^[a-zA-Z]\\w*$");function E(){var t=g.getInstance().navigator;return"serviceWorker"in t?t.serviceWorker.controller?2:3:1}function x(){switch(g.getInstance().document.visibilityState){case"visible":return _.VISIBLE;case"hidden":return _.HIDDEN;default:return _.UNKNOWN}}function S(){var t=g.getInstance().navigator.connection;switch(t&&t.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var k=new h.Logger("Performance");function T(t){if(!t)return t;var e=b.getInstance(),n=t.entries||{};return e.loggingEnabled=void 0===n.fpr_enabled||"true"===String(n.fpr_enabled),n.fpr_log_source&&(e.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(e.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(e.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(e.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(e.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),e.logTraceAfterSampling=I(e.tracesSamplingRate),e.logNetworkAfterSampling=I(e.networkRequestsSamplingRate),t}function I(t){return Math.random()<=t}k.logLevel=h.LogLevel.INFO;var O,A=1;function N(){return A=2,O=O||function(){var t=g.getInstance().document;return new Promise((function(e){if(t&&"complete"!==t.readyState){var n=function(){"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())};t.addEventListener("readystatechange",n)}else e()}))}().then((function(){return(t=b.getInstance().installationsService.getId()).then((function(t){v=t})),t;var t})).then((function(t){return function(t){var e=function(){var t=g.getInstance().localStorage;if(t){var e=t.getItem("@firebase/performance/configexpire");if(e&&Number(e)>Date.now()){var n=t.getItem("@firebase/performance/config");if(n)try{return JSON.parse(n)}catch(o){return}}}}();return e?(T(e),Promise.resolve()):function(t){return(e=b.getInstance().installationsService.getToken(),e.then((function(t){})),e).then((function(e){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+b.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+b.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+e},body:JSON.stringify({app_instance_id:t,app_instance_id_token:e,app_id:b.getInstance().getAppId(),app_version:"0.3.10",sdk_version:"0.0.1"})});return fetch(r).then((function(t){if(t.ok)return t.json();throw f.create("RC response not ok")}))})).catch((function(){k.info("Could not fetch config, will use default configs")}));var e}(t).then(T).then((function(t){return function(t){var e=g.getInstance().localStorage;t&&e&&(e.setItem("@firebase/performance/config",JSON.stringify(t)),e.setItem("@firebase/performance/configexpire",String(Date.now()+60*b.getInstance().configTimeToLive*60*1e3)))}(t)}),(function(){}))}(t)})).then((function(){return P()}),(function(){return P()}))}function P(){A=3}var D,R=3,M=[],L=!1;function F(t){if(!t.eventTime||!t.message)throw f.create("invalid cc log");M=c.__spreadArrays(M,[t])}function j(t,e){D||(D=function(t){return function(){for(var e=[],n=0;n100)&&(e&&e.startsWith("_wt_")&&z.indexOf(t)>-1||!t.startsWith("_"))}(t,this.name))throw f.create("invalid custom metric name",{customMetricName:t});this.counters[t]=e},t.prototype.getMetric=function(t){return this.counters[t]||0},t.prototype.putAttribute=function(t,e){var n=function(t){return!(0===t.length||t.length>40||w.some((function(e){return t.startsWith(e)}))||!t.match(C))}(t),r=function(t){return 0!==t.length&&t.length<=100}(e);if(n&&r)this.customAttributes[t]=e;else{if(!n)throw f.create("invalid attribute name",{attributeName:t});if(!r)throw f.create("invalid attribute value",{attributeValue:e})}},t.prototype.getAttribute=function(t){return this.customAttributes[t]},t.prototype.removeAttribute=function(t){void 0!==this.customAttributes[t]&&delete this.customAttributes[t]},t.prototype.getAttributes=function(){return c.__assign({},this.customAttributes)},t.prototype.setStartTime=function(t){this.startTimeUs=t},t.prototype.setDuration=function(t){this.durationUs=t},t.prototype.calculateTraceMetrics=function(){var t=this.api.getEntriesByName(this.traceMeasure),e=t&&t[0];e&&(this.durationUs=Math.floor(1e3*e.duration),this.startTimeUs=Math.floor(1e3*(e.startTime+this.api.getTimeOrigin())))},t.createOobTrace=function(e,n,r){var i=g.getInstance().getUrl();if(i){var o=new t("_wt_"+i,!0),s=Math.floor(1e3*g.getInstance().getTimeOrigin());if(o.setStartTime(s),e&&e[0]&&(o.setDuration(Math.floor(1e3*e[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*e[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*e[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*e[0].loadEventEnd))),n){var a=n.find((function(t){return"first-paint"===t.name}));a&&a.startTime&&o.putMetric("_fp",Math.floor(1e3*a.startTime));var l=n.find((function(t){return"first-contentful-paint"===t.name}));l&&l.startTime&&o.putMetric("_fcp",Math.floor(1e3*l.startTime)),r&&o.putMetric("_fid",Math.floor(1e3*r))}U(o)}},t.createUserTimingTrace=function(e){U(new t(e,!1,e))},t}();function W(t){var e=t;if(e&&void 0!==e.responseStart){var n=g.getInstance().getTimeOrigin(),r=Math.floor(1e3*(e.startTime+n)),i=e.responseStart?Math.floor(1e3*(e.responseStart-e.startTime)):void 0,o=Math.floor(1e3*(e.responseEnd-e.startTime));!function(t){var e=b.getInstance();if(e.instrumentationEnabled){var n=t.url,r=e.logEndPointUrl.split("?")[0],i=e.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&e.loggingEnabled&&e.logNetworkAfterSampling&&setTimeout((function(){return j(t,0)}),0)}}({url:e.name&&e.name.split("?")[0],responsePayloadBytes:e.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o})}}function G(){y()&&(setTimeout((function(){return function(){var t=g.getInstance(),e=t.getEntriesByType("navigation"),n=t.getEntriesByType("paint");if(t.onFirstInputDelay){var r=setTimeout((function(){q.createOobTrace(e,n),r=void 0}),5e3);t.onFirstInputDelay((function(t){r&&(clearTimeout(r),q.createOobTrace(e,n,t))}))}else q.createOobTrace(e,n)}()}),0),setTimeout((function(){return function(){for(var t=g.getInstance(),e=0,n=t.getEntriesByType("resource");e0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(M=c.__spreadArrays(n,M),k.info("Retry transport request later.")),R=3,t(i)}))})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:b.getInstance().logSource,log_event:n},e).catch((function(){M=c.__spreadArrays(e,M),R--,k.info("Tries left: "+R+"."),t(1e4)}))}():t(1e4)}),e)}(5500),L=!0),N().then(G,G)):k.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled.")}return t.prototype.trace=function(t){return new q(t)},Object.defineProperty(t.prototype,"instrumentationEnabled",{get:function(){return b.getInstance().instrumentationEnabled},set:function(t){b.getInstance().instrumentationEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataCollectionEnabled",{get:function(){return b.getInstance().dataCollectionEnabled},set:function(t){b.getInstance().dataCollectionEnabled=t},enumerable:!1,configurable:!0}),t}();function Q(t){t.INTERNAL.registerComponent(new d.Component("performance",(function(t){return function(t,e){if("[DEFAULT]"!==t.name)throw f.create("FB not default");if("undefined"==typeof window)throw f.create("no window");return function(t){a=t}(window),b.getInstance().firebaseAppInstance=t,b.getInstance().installationsService=e,new K(t)}(t.getProvider("app").getImmediate(),t.getProvider("installations").getImmediate())}),"PUBLIC")),t.registerVersion("@firebase/performance","0.3.10")}Q(i),e.registerPerformance=Q},cpc2:function(t,e,n){function r(t){if(t)return function(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}(t)}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},p.prototype.cleanup=function(){c("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();c("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(c("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(c("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(c("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},fSjL:function(t,e,n){"use strict";n.r(e),n.d(e,"registerInstallations",(function(){return $}));var r,i=n("wj3C"),o=n.n(i),s=n("S+S0"),a=n("mrSG"),l=n("zVF4"),c=n("nbvr"),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),h=new l.ErrorFactory("installations","Installations",u);function d(t){return t instanceof l.FirebaseError&&t.code.includes("request-failed")}function p(t){return"https://firebaseinstallations.googleapis.com/v1/projects/"+t.projectId+"/installations"}function f(t){return{token:t.token,requestStatus:2,expiresIn:(e=t.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()};var e}function g(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,e.json()];case 1:return n=i.sent(),[2,h.create("request-failed",{requestName:t,serverCode:(r=n.error).code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function m(t){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey})}function v(t,e){var n=e.refreshToken,r=m(t);return r.append("Authorization",function(t){return"FIS_v2 "+t}(n)),r}function b(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return[4,t()];case 1:return(e=n.sent()).status>=500&&e.status<600?[2,t()]:[2,e]}}))}))}function y(t,e){var n=e.fid;return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return e=p(t),r=m(t),i={method:"POST",headers:r,body:JSON.stringify({fid:n,authVersion:"FIS_v2",appId:t.appId,sdkVersion:"w:0.4.15"})},[4,b((function(){return fetch(e,i)}))];case 1:return(o=a.sent()).ok?[4,o.json()]:[3,3];case 2:return[2,{fid:(s=a.sent()).fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:f(s.authToken)}];case 3:return[4,g("Create Installation",o)];case 4:throw a.sent()}}))}))}function _(t){return new Promise((function(e){setTimeout(e,t)}))}var w=/^[cdef][\w-]{21}$/;function C(){try{var t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;var e=function(t){return(e=t,btoa(String.fromCharCode.apply(String,Object(a.__spread)(e))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var e}(t);return w.test(e)?e:""}catch(r){return""}}function E(t){return t.appName+"!"+t.appId}var x=new Map;function S(t,e){var n=E(t);k(n,e),function(t,e){var n=I();n&&n.postMessage({key:t,fid:e}),O()}(n,e)}function k(t,e){var n,r,i=x.get(t);if(i)try{for(var o=Object(a.__values)(i),s=o.next();!s.done;s=o.next())(0,s.value)(e)}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var T=null;function I(){return!T&&"BroadcastChannel"in self&&((T=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(t){k(t.data.key,t.data.fid)}),T}function O(){0===x.size&&T&&(T.close(),T=null)}var A="firebase-installations-store",N=null;function P(){return N||(N=Object(c.openDb)("firebase-installations-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(A)}}))),N}function D(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n=E(t),[4,P()];case 1:return r=a.sent(),i=r.transaction(A,"readwrite"),[4,(o=i.objectStore(A)).get(n)];case 2:return s=a.sent(),[4,o.put(e,n)];case 3:return a.sent(),[4,i.complete];case 4:return a.sent(),s&&s.fid===e.fid||S(t,e.fid),[2,e]}}))}))}function R(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return e=E(t),[4,P()];case 1:return n=i.sent(),[4,(r=n.transaction(A,"readwrite")).objectStore(A).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function M(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,l;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n=E(t),[4,P()];case 1:return r=a.sent(),i=r.transaction(A,"readwrite"),[4,(o=i.objectStore(A)).get(n)];case 2:return s=a.sent(),void 0!==(l=e(s))?[3,4]:[4,o.delete(n)];case 3:return a.sent(),[3,6];case 4:return[4,o.put(l,n)];case 5:a.sent(),a.label=6;case 6:return[4,i.complete];case 7:return a.sent(),!l||s&&s.fid===l.fid||S(t,l.fid),[2,l]}}))}))}function L(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,M(t,(function(n){var r=function(t){return U(t||{fid:C(),registrationStatus:0})}(n),i=function(t,e){if(0===e.registrationStatus){if(!navigator.onLine)return{installationEntry:e,registrationPromise:Promise.reject(h.create("app-offline"))};var n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:function(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,y(t,e)];case 1:return n=i.sent(),[2,D(t,n)];case 2:return d(r=i.sent())&&409===r.serverCode?[4,R(t)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,D(t,{fid:e.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}))}))}(t,n)}}return 1===e.registrationStatus?{installationEntry:e,registrationPromise:F(t)}:{installationEntry:e}}(t,r);return e=i.registrationPromise,i.installationEntry}))];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,e]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:e}]}}))}))}function F(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return[4,j(t)];case 1:e=o.sent(),o.label=2;case 2:return 1!==e.registrationStatus?[3,5]:[4,_(100)];case 3:return o.sent(),[4,j(t)];case 4:return e=o.sent(),[3,2];case 5:return 0!==e.registrationStatus?[3,7]:[4,L(t)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,e]}}))}))}function j(t){return M(t,(function(t){if(!t)throw h.create("installation-not-found");return U(t)}))}function U(t){return 1===(e=t).registrationStatus&&e.registrationTime+1e4>2],o+=t[(3&r[n])<<4|r[n+1]>>4],o+=t[(15&r[n+1])<<2|r[n+2]>>6],o+=t[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,r,i,o,s,a=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var u=new ArrayBuffer(a),h=new Uint8Array(u);for(e=0;e>4,h[c++]=(15&i)<<4|o>>2,h[c++]=(3&o)<<6|63&s;return u}}()},gFX4:function(t,e,n){var r=n("zJ60"),i=n("Uwu7"),o=n("eOtv"),s=n("NOtv")("socket.io-client");t.exports=e=l;var a=e.managers={};function l(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),l=i.source,c=i.id;return e.forceNew||e["force new connection"]||!1===e.multiplex||a[c]&&i.path in a[c].nsps?(s("ignoring socket cache for %s",l),n=o(l,e)):(a[c]||(s("new io instance for %s",l),a[c]=o(l,e)),n=a[c]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=l,e.Manager=n("eOtv"),e.Socket=n("KFGy")},gHGA:function(t,e,n){"use strict";n.r(e);var r,i=n("wj3C"),o=n.n(i),s=(n("fSjL"),n("S+S0")),a=n("mrSG"),l=n("zVF4"),c=n("nbvr"),u=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occured while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occured while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occured while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),h=new l.ErrorFactory("messaging","Messaging",u);function d(t){return h.create("missing-app-config-values",{valueName:t})}var p="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",f=function(t){return t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked",t}({});function g(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,Object(a.__spread)(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function m(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(e),r=new Uint8Array(n.length),i=0;i0&&"string"==typeof t.token&&t.token.length>0&&"string"==typeof e.auth&&e.auth.length>0&&"string"==typeof e.p256dh&&e.p256dh.length>0&&"string"==typeof e.endpoint&&e.endpoint.length>0&&"string"==typeof e.swScope&&e.swScope.length>0&&"string"==typeof e.vapidKey&&e.vapidKey.length>0}var y="firebase-messaging-store",_=null;function w(){return _||(_=Object(c.openDb)("firebase-messaging-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(y)}}))),_}function C(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return e=S(t),[4,w()];case 1:return[4,i.sent().transaction(y).objectStore(y).get(e)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,v(t.appConfig.senderId)];case 4:return(r=i.sent())?[4,E(t,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}))}))}function E(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return n=S(t),[4,w()];case 1:return r=o.sent(),[4,(i=r.transaction(y,"readwrite")).objectStore(y).put(e,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,e]}}))}))}function x(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return e=S(t),[4,w()];case 1:return n=i.sent(),[4,(r=n.transaction(y,"readwrite")).objectStore(y).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function S(t){return t.appConfig.appId}function k(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return[4,A(t)];case 1:n=a.sent(),r=N(e),i={method:"POST",headers:n,body:JSON.stringify(r)},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(O(t.appConfig),i)];case 3:return[4,a.sent().json()];case 4:return o=a.sent(),[3,6];case 5:throw s=a.sent(),h.create("token-subscribe-failed",{errorInfo:s});case 6:if(o.error)throw h.create("token-subscribe-failed",{errorInfo:o.error.message});if(!o.token)throw h.create("token-subscribe-no-token");return[2,o.token]}}))}))}function T(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return[4,A(t)];case 1:n=a.sent(),r=N(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(O(t.appConfig)+"/"+e.token,i)];case 3:return[4,a.sent().json()];case 4:return o=a.sent(),[3,6];case 5:throw s=a.sent(),h.create("token-update-failed",{errorInfo:s});case 6:if(o.error)throw h.create("token-update-failed",{errorInfo:o.error.message});if(!o.token)throw h.create("token-update-no-token");return[2,o.token]}}))}))}function I(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(s){switch(s.label){case 0:return[4,A(t)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(O(t.appConfig)+"/"+e,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw h.create("token-unsubscribe-failed",{errorInfo:i.error.message});return[3,6];case 5:throw o=s.sent(),h.create("token-unsubscribe-failed",{errorInfo:o});case 6:return[2]}}))}))}function O(t){return"https://fcmregistrations.googleapis.com/v1/projects/"+t.projectId+"/registrations"}function A(t){var e=t.appConfig,n=t.installations;return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return t=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":"FIS "+t})]}}))}))}function N(t){var e=t.vapidKey,n={web:{endpoint:t.endpoint,auth:t.auth,p256dh:t.p256dh}};return e!==p&&(n.web.applicationPubKey=e),n}function P(t,e,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:if("granted"!==Notification.permission)throw h.create("permission-blocked");return[4,L(e,n)];case 1:return r=a.sent(),[4,C(t)];case 2:return i=a.sent(),o={vapidKey:n,swScope:e.scope,endpoint:r.endpoint,auth:g(r.getKey("auth")),p256dh:g(r.getKey("p256dh"))},i?[3,3]:[2,M(t,o)];case 3:if(u=(c=o).endpoint===(l=i.subscriptionOptions).endpoint,c.vapidKey===l.vapidKey&&u&&c.auth===l.auth&&c.p256dh===l.p256dh)return[3,8];a.label=4;case 4:return a.trys.push([4,6,,7]),[4,I(t,i.token)];case 5:return a.sent(),[3,7];case 6:return s=a.sent(),console.warn(s),[3,7];case 7:return[2,M(t,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,R({token:i.token,createTime:Date.now(),subscriptionOptions:o},t,e)]:[2,i.token];case 9:return[2]}var l,c,u}))}))}function D(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,C(t)];case 1:return(n=i.sent())?[4,I(t,n.token)]:[3,4];case 2:return i.sent(),[4,x(t)];case 3:i.sent(),i.label=4;case 4:return[4,e.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function R(t,e,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(a.__generator)(this,(function(s){switch(s.label){case 0:return s.trys.push([0,3,,5]),[4,T(e,t)];case 1:return r=s.sent(),i=Object(a.__assign)(Object(a.__assign)({},t),{token:r,createTime:Date.now()}),[4,E(e,i)];case 2:return s.sent(),[2,r];case 3:return o=s.sent(),[4,D(e,n)];case 4:throw s.sent(),o;case 5:return[2]}}))}))}function M(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,k(t,e)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:e},[4,E(t,r)];case 2:return i.sent(),[2,r.token]}}))}))}function L(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,t.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:m(e)})]}}))}))}function F(t){return"object"==typeof t&&!!t&&"google.c.a.c_id"in t}var j=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(t){return e.messageEventListener(t)}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.getToken=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.vapidKey||(this.vapidKey=p),[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),"default"!==Notification.permission?[3,3]:[4,Notification.requestPermission()];case 2:e.sent(),e.label=3;case 3:if("granted"!==Notification.permission)throw h.create("permission-blocked");return[2,P(this.firebaseDependencies,t,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.getServiceWorkerRegistration()];case 1:return t=e.sent(),[2,D(this.firebaseDependencies,t)]}}))}))},t.prototype.requestPermission=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(t=e.sent()))return[2];throw h.create("denied"===t?"permission-blocked":"permission-default")}}))}))},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw h.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw h.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(t){if(!(t instanceof ServiceWorkerRegistration))throw h.create("invalid-sw-registration");if(this.swRegistration)throw h.create("use-sw-after-get-token");this.swRegistration=t},t.prototype.onMessage=function(t){var e=this;return this.onMessageCallback=t,function(){e.onMessageCallback=null}},t.prototype.setBackgroundMessageHandler=function(){throw h.create("only-available-in-sw")},t.prototype.onTokenRefresh=function(){return function(){}},t.prototype.getServiceWorkerRegistration=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:if(this.swRegistration)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),t=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 2:return t.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,4];case 3:throw e=n.sent(),h.create("failed-service-worker-registration",{browserErrorMessage:e.message});case 4:return[2,this.swRegistration]}}))}))},t.prototype.messageEventListener=function(t){var e;return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(s){switch(s.label){case 0:return(null===(e=t.data)||void 0===e?void 0:e.firebaseMessaging)?(r=(n=t.data.firebaseMessaging).type,i=n.payload,this.onMessageCallback&&r===f.PUSH_RECEIVED&&("function"==typeof this.onMessageCallback?this.onMessageCallback(i):this.onMessageCallback.next(i)),F(o=i.data)&&"1"===o["google.c.a.e"]?[4,this.logEvent(r,o)]:[3,2]):[2];case 1:s.sent(),s.label=2;case 2:return[2]}}))}))},t.prototype.logEvent=function(t,e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return n=function(t){switch(t){case f.NOTIFICATION_CLICKED:return"notification_open";case f.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:e["google.c.a.c_id"],message_name:e["google.c.a.c_l"],message_time:e["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},t}(),U=function(){function t(t){var e=this;this.firebaseDependencies=t,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(t){t.waitUntil(e.onPush(t))})),self.addEventListener("pushsubscriptionchange",(function(t){t.waitUntil(e.onSubChange(t))})),self.addEventListener("notificationclick",(function(t){t.waitUntil(e.onNotificationClick(t))}))}return Object.defineProperty(t.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),t.prototype.setBackgroundMessageHandler=function(t){if(!t||"function"!=typeof t)throw h.create("invalid-bg-handler");this.bgMessageHandler=t},t.prototype.getToken=function(){var t,e;return Object(a.__awaiter)(this,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,C(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(e=null===(t=null==n?void 0:n.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==e?e:p,r.label=2;case 2:return[2,P(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return D(this.firebaseDependencies,self.registration)},t.prototype.requestPermission=function(){throw h.create("only-available-in-window")},t.prototype.usePublicVapidKey=function(t){if(null!==this.vapidKey)throw h.create("use-vapid-key-after-get-token");if("string"!=typeof t||0===t.length)throw h.create("invalid-vapid-key");this.vapidKey=t},t.prototype.useServiceWorker=function(){throw h.create("only-available-in-window")},t.prototype.onMessage=function(){throw h.create("only-available-in-window")},t.prototype.onTokenRefresh=function(){throw h.create("only-available-in-window")},t.prototype.onPush=function(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return(e=function(t){var e=t.data;if(!e)return null;try{return e.json()}catch(n){return null}}(t))?[4,H()]:[2];case 1:return function(t){return t.some((function(t){return"visible"===t.visibilityState&&!t.url.startsWith("chrome-extension://")}))}(n=i.sent())?[2,B(n,e)]:(r=function(t){var e;if(t&&"object"==typeof t.notification){var n=Object(a.__assign)({},t.notification);return n.data=Object(a.__assign)(Object(a.__assign)({},t.notification.data),((e={}).FCM_MSG=t,e)),n}}(e))?[4,q(r)]:[3,3];case 2:return i.sent(),[3,5];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(e)]:[3,5];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},t.prototype.onSubChange=function(t){var e,n;return Object(a.__awaiter)(this,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return t.newSubscription?[3,2]:[4,D(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,C(this.firebaseDependencies)];case 3:return r=i.sent(),[4,D(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,P(this.firebaseDependencies,self.registration,null!==(n=null===(e=null==r?void 0:r.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==n?n:p)];case 5:return i.sent(),[2]}}))}))},t.prototype.onNotificationClick=function(t){var e,n;return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return(r=null===(n=null===(e=t.notification)||void 0===e?void 0:e.data)||void 0===n?void 0:n.FCM_MSG)?t.action?[2]:(t.stopImmediatePropagation(),t.notification.close(),(i=function(t){var e,n,r;return(null!==(n=null===(e=t.fcmOptions)||void 0===e?void 0:e.link)&&void 0!==n?n:null===(r=t.notification)||void 0===r?void 0:r.click_action)||(F(t.data)?self.location.origin:null)}(r))?[4,V(i)]:[2]):[2];case 1:return(o=a.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return o=a.sent(),[4,new Promise((function(t){setTimeout(t,3e3)}))];case 3:return a.sent(),[3,6];case 4:return[4,o.focus()];case 5:o=a.sent(),a.label=6;case 6:return o?(s=z(f.NOTIFICATION_CLICKED,r),[2,o.postMessage(s)]):[2]}}))}))},t}();function V(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r,i,o,s,l;return Object(a.__generator)(this,(function(c){switch(c.label){case 0:return e=new URL(t,self.location.href),[4,H()];case 1:n=c.sent();try{for(r=Object(a.__values)(n),i=r.next();!i.done;i=r.next())if(o=i.value,new URL(o.url,self.location.href).host===e.host)return[2,o]}catch(u){s={error:u}}finally{try{i&&!i.done&&(l=r.return)&&l.call(r)}finally{if(s)throw s.error}}return[2,null]}}))}))}function B(t,e){var n,r,i=z(f.PUSH_RECEIVED,e);try{for(var o=Object(a.__values)(t),s=o.next();!s.done;s=o.next())s.value.postMessage(i)}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function H(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function z(t,e){return{firebaseMessaging:{type:t,payload:e}}}function q(t){var e,n=null!==(e=t.title)&&void 0!==e?e:"",r=t.actions,i=Notification.maxActions;return r&&i&&r.length>i&&console.warn("This browser only supports "+i+" actions. The remaining actions will not be displayed."),self.registration.showNotification(n,t)}var W={isSupported:G};function G(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}o.a.INTERNAL.registerComponent(new s.Component("messaging",(function(t){var e=t.getProvider("app").getImmediate(),n={app:e,appConfig:function(t){var e,n;if(!t||!t.options)throw d("App Configuration Object");if(!t.name)throw d("App Name");var r=t.options;try{for(var i=Object(a.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var s=o.value;if(!r[s])throw d(s)}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return{appName:t.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(e),installations:t.getProvider("installations").getImmediate(),analyticsProvider:t.getProvider("analytics-internal")};if(!G())throw h.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new U(n):new j(n)}),"PUBLIC").setServiceProps(W))},iqUP:function(t,e,n){"use strict";var r,i=(r=n("wj3C"))&&"object"==typeof r&&"default"in r?r.default:r;n("LOEa"),n("NSPt"),n("6Joi"),n("ABqa"),n("gHGA"),n("LmZi"),n("bQlE"),n("3Kre"),n("O1kn"),i.registerVersion("firebase","7.17.1","app"),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/';\n"),i.registerVersion("firebase","7.17.1"),t.exports=i},kSER:function(t,e){t.exports=function(t,e){for(var n=[],r=(e=e||0)||0;r=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function l(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{l(r.next(t))}catch(e){o(e)}}function a(t){try{l(r.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e1||a(t,e)}))})}function a(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,c):u(o[0][2],n)}catch(r){u(o[0][3],r)}var n}function l(t){a("next",t)}function c(t){a("throw",t)}function u(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},nbvr:function(t,e,n){!function(t){"use strict";function e(t){return Array.prototype.slice.call(t)}function n(t){return new Promise((function(e,n){t.onsuccess=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function r(t,e,r){var i,o=new Promise((function(o,s){n(i=t[e].apply(t,r)).then(o,s)}));return o.request=i,o}function i(t,e,n){var i=r(t,e,n);return i.then((function(t){if(t)return new u(t,i.request)}))}function o(t,e,n){n.forEach((function(n){Object.defineProperty(t.prototype,n,{get:function(){return this[e][n]},set:function(t){this[e][n]=t}})}))}function s(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return r(this[e],i,arguments)})}))}function a(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return this[e][r].apply(this[e],arguments)})}))}function l(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return i(this[e],r,arguments)})}))}function c(t){this._index=t}function u(t,e){this._cursor=t,this._request=e}function h(t){this._store=t}function d(t){this._tx=t,this.complete=new Promise((function(e,n){t.oncomplete=function(){e()},t.onerror=function(){n(t.error)},t.onabort=function(){n(t.error)}}))}function p(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new d(n)}function f(t){this._db=t}o(c,"_index",["name","keyPath","multiEntry","unique"]),s(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),l(c,"_index",IDBIndex,["openCursor","openKeyCursor"]),o(u,"_cursor",["direction","key","primaryKey","value"]),s(u,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(u.prototype[t]=function(){var e=this,r=arguments;return Promise.resolve().then((function(){return e._cursor[t].apply(e._cursor,r),n(e._request).then((function(t){if(t)return new u(t,e._request)}))}))})})),h.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},h.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},o(h,"_store",["name","keyPath","indexNames","autoIncrement"]),s(h,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),l(h,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),a(h,"_store",IDBObjectStore,["deleteIndex"]),d.prototype.objectStore=function(){return new h(this._tx.objectStore.apply(this._tx,arguments))},o(d,"_tx",["objectStoreNames","mode"]),a(d,"_tx",IDBTransaction,["abort"]),p.prototype.createObjectStore=function(){return new h(this._db.createObjectStore.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),a(p,"_db",IDBDatabase,["deleteObjectStore","close"]),f.prototype.transaction=function(){return new d(this._db.transaction.apply(this._db,arguments))},o(f,"_db",["name","version","objectStoreNames"]),a(f,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(t){[h,c].forEach((function(n){t in n.prototype&&(n.prototype[t.replace("open","iterate")]=function(){var n=e(arguments),r=n[n.length-1],i=this._store||this._index,o=i[t].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})}))})),[c,h].forEach((function(t){t.prototype.getAll||(t.prototype.getAll=function(t,e){var n=this,r=[];return new Promise((function(i){n.iterateCursor(t,(function(t){t?(r.push(t.value),void 0===e||r.length!=e?t.continue():i(r)):i(r)}))}))})})),t.openDb=function(t,e,n){var i=r(indexedDB,"open",[t,e]),o=i.request;return o&&(o.onupgradeneeded=function(t){n&&n(new p(o.result,t.oldVersion,o.transaction))}),i.then((function(t){return new f(t)}))},t.deleteDb=function(t){return r(indexedDB,"deleteDatabase",[t])},Object.defineProperty(t,"__esModule",{value:!0})}(e)},"oIG/":function(t,e){var n,r,i,o=String.fromCharCode;function s(t){for(var e,n,r=[],i=0,o=t.length;i=55296&&e<=56319&&i=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(t,e){return o(t>>e&63|128)}function c(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(a(t,e)||(t=65533),n=o(t>>12&15|224),n+=l(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=l(t,12),n+=l(t,6)),n+o(63&t|128)}function u(){if(i>=r)throw Error("Invalid byte index");var t=255&n[i];if(i++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(t){var e,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&n[i],i++,0==(128&e))return e;if(192==(224&e)){if((o=(31&e)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|u()<<6|u())>=2048)return a(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,r=s(t),i=r.length,o=-1,a="";++o65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(c)}}},"q/0M":function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e=(null!=r?r:e.logLevel)&&t({level:s[n].toLowerCase(),message:a,args:i,type:e.name})}},r=0,i=o;r=0&&d.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var v=f.initializeApp;f.initializeApp=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}n.r(e),n.d(e,"ErrorCode",(function(){return Kn})),n.d(e,"EventType",(function(){return Qn})),n.d(e,"WebChannel",(function(){return Xn})),n.d(e,"XhrIo",(function(){return Yn})),n.d(e,"createWebChannelTransport",(function(){return $n}));var i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=s||{},a=o||self;function l(){}function c(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&void 0!==t.splice&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==t.call&&void 0!==t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&void 0===t.call)return"object";return e}function u(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function f(t,e,n){return t.call.apply(t.bind,arguments)}function g(t,e,n){if(!t)throw Error();if(2e?1:0}t:{var A=a.navigator;if(A){var N=A.userAgent;if(N){k=N;break t}}k=""}function P(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function D(t){var e={};for(var n in t)e[n]=t[n];return e}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function M(t,e){for(var n,r,i=1;iparseFloat(G)){F=String(K);break t}}F=G}var Q={};function X(t){return function(t,e){var n=Q;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e()}(t,(function(){for(var e=0,n=T(String(F)).split("."),r=T(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var it="closure_listenable_"+(1e6*Math.random()|0),ot=0;function st(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.aa=i,this.key=++ot,this.V=this.X=!1}function at(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function lt(t){this.src=t,this.a={},this.b=0}function ct(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=w(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(at(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ut(t,e,n,r){for(var i=0;i>>0);function wt(t){return"function"==c(t)?t:(t[_t]||(t[_t]=function(e){return t.handleEvent(e)}),t[_t])}function Ct(){_.call(this),this.c=new lt(this),this.J=this,this.A=null}function Et(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;oe.length?he:(e=e.substr(r,n),t.w=r+n,e))}function me(t){t.P=b()+t.N,ve(t,t.N)}function ve(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Jt(m(t.Qa,t),e)}function be(t){t.h&&(a.clearTimeout(t.h),t.h=null)}function ye(t){0==t.g.u||t.l||Rn(t.g,t)}function _e(t){be(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,Lt(t.O),zt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function we(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||tn(n.b,t)))if(n.A=t.H,!t.o&&tn(n.b,t)&&3==n.u){try{var r=n.ja.a.parse(e)}catch(g){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Jt(m(n.Na,n),6e3));if(1>=Ze(n.b)&&n.O){try{n.O()}catch(g){}n.O=void 0}}else Ln(n,11)}else if((t.o||n.a==t)&&Dn(n),!S(e))for(e=r=n.ja.a.parse(e),r=0;re||3==e&&!H&&!this.a.Y())){this.l||4!=e||7==n||Kt(8==n||0>=r?3:2),be(this);var i=this.a.S();this.H=i;var o=this.a.Y();if(this.b=200==i){if(this.R&&!this.o){e:{if(this.a){var s,a=this.a;if((s=a.a?a.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(s)){var l=s;break e}}l=null}if(!l){this.b=!1,this.c=3,Xt(12),_e(this),ye(this);break t}this.o=!0,we(this,l)}this.F?(fe(this,e,o),H&&this.b&&3==e&&(Ht(this.G,this.O,"tick",this.Ra),this.O.start())):we(this,o),4==e&&_e(this),this.b&&!this.l&&(4==e?Rn(this.g,this):(this.b=!1,me(this)))}else 400==i&&0e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Pe(t,e,n){e instanceof ze?(t.b=e,function(t,e){e&&!t.f&&(qe(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(We(this,e),$e(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Le(e,Be)),t.b=new ze(e,t.a))}function De(t,e,n){t.b.set(e,n)}function Re(t){return De(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),t}function Me(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Le(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,Fe),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Fe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Te.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Le(e,je,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Le(e,je,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(Le(n,"/"==n.charAt(0)?Ve:Ue,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Le(n,He)),t.join("")};var je=/[#\/\?@]/g,Ue=/[#\?:]/g,Ve=/[#\?]/g,Be=/[#\?@]/g,He=/#/g;function ze(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function qe(t){t.a||(t.a=new Ee,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n2*t.c&&xe(t)))}function Ge(t,e){return qe(t),e=Ke(t,e),Se(t.a.b,e)}function $e(t,e,n){We(t,e),0=t.f}function Ze(t){return t.b?1:t.a?t.a.size:0}function tn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function en(t,e){t.a?t.a.add(e):t.b=e}function nn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function rn(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var i=t.c;try{for(var o=r(t.a.values()),s=o.next();!s.done;s=o.next())i=i.concat(s.value.i)}catch(a){e={error:a}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return x(t.c)}function on(){}function sn(){this.a=new on}function an(t,e,n){var r=n||"";try{Ce(t,(function(t,n){var i=t;h(t)&&(i=xt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function ln(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Xe.prototype.cancel=function(){var t,e;if(this.c=rn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=r(this.a.values()),i=n.next();!i.done;i=n.next())i.value.cancel()}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},on.prototype.stringify=function(t){return a.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return a.JSON.parse(t,void 0)};var cn=a.JSON.parse;function un(t){Ct.call(this),this.headers=new Ee,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=hn,this.B=this.F=!1}y(un,Ct);var hn="",dn=/^https?$/i,pn=["POST","PUT"];function fn(t){return"content-type"==t.toLowerCase()}function gn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,mn(t),bn(t)}function mn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function vn(t){if(t.b&&void 0!==s&&(!t.s[1]||4!=_n(t)||2!=t.S()))if(t.l&&4==_n(t))Ft(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==_n(t)){t.b=!1;try{var e,n=t.S();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.D).match(ke)[1]||null;if(!o&&a.self&&a.self.location){var l=a.self.location.protocol;o=l.substr(0,l.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<_n(t)?t.a.statusText:""}catch(u){c=""}t.f=c+" ["+t.S()+"]",mn(t)}}finally{bn(t)}}}function bn(t,e){if(t.a){yn(t);var n=t.a,r=t.s[0]?l:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function yn(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(a.clearTimeout(t.m),t.m=null)}function _n(t){return t.a?t.a.readyState:0}function wn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return P(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):De(t,e,n))}function Cn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function En(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=Cn("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=Cn("baseRetryDelayMs",5e3,t),this.Ga=Cn("retryDelaySeedMs",1e4,t),this.Da=Cn("forwardChannelMaxRetries",2,t),this.ga=Cn("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new Xe(t&&t.concurrentRequestLimit),this.ja=new sn,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function xn(t){if(Sn(t),3==t.u){var e=t.H++,n=Ie(t.v);De(n,"SID",t.B),De(n,"RID",e),De(n,"TYPE","terminate"),On(t,n),(e=new le(t,e,void 0)).B=2,e.f=Re(Ie(n)),n=!1,a.navigator&&a.navigator.sendBeacon&&(n=a.navigator.sendBeacon(e.f.toString(),"")),!n&&a.Image&&((new Image).src=e.f,n=!0),n||(e.a=Un(e.g,null),e.a.$(e.f)),e.s=b(),me(e)}Fn(t)}function Sn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(a.clearTimeout(t.i),t.i=null),Dn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&a.clearTimeout(t.g),t.g=null)}function kn(t,e){t.f.push(new Qe(t.Fa++,e)),3==t.u&&Tn(t)}function Tn(t){Je(t.b)||t.g||(t.g=!0,Nt(t.xa,t),t.o=0)}function In(t,e){var n;n=e?e.W:t.H++;var r=Ie(t.v);De(r,"SID",t.B),De(r,"RID",n),De(r,"AID",t.G),On(t,r),t.h&&t.j&&wn(r,t.h,t.j),n=new le(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=An(t,n,1e3),n.setTimeout(Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),en(t.b,n),de(n,r,e)}function On(t,e){t.c&&Ce({},(function(t,n){De(e,n,t)}))}function An(t,e,n){n=Math.min(t.f.length,n);var r=t.c?m(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var s=["count="+n];-1==o?0(c-=o))o=Math.max(0,i[l].b-100),a=!1;else try{an(u,s,"req"+c+"_")}catch(h){r&&r(u)}}if(a){r=s.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function Nn(t){t.a||t.i||(t.J=1,Nt(t.wa,t),t.m=0)}function Pn(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Jt(m(t.wa,t),Mn(t,t.m)),t.m++,0))}function Dn(t){null!=t.l&&(a.clearTimeout(t.l),t.l=null)}function Rn(t,e){var n=null;if(t.a==e){Dn(t),t.a=null;var r=2}else{if(!tn(t.b,e))return;n=e.i,nn(t.b,e),r=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==r){n=e.j?e.j.length:0,e=b()-e.s;var i=t.o;(r=Gt()).dispatchEvent(new Yt(r,n,e,i)),Tn(t)}else Nn(t);else if(3==(i=e.c)||0==i&&0=t.b.f-(t.g?1:0)||(t.g?(t.f=e.i.concat(t.f),0):1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da)||(t.g=Jt(m(t.xa,t,e),Mn(t,t.o)),t.o++,0)))}(t,e)||2==r&&Pn(t)))switch(n&&0e?null:"string"==typeof t?t.charAt(e):t[e]}(i.K()),n=a.FormData&&t instanceof a.FormData,!(0<=w(pn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{yn(this),0r&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(t),o=new Uint8Array(n-e),s=e,a=0;s{throw t},0)}const a={closed:!0,next(t){},error(t){if(o.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const u=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof u?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[p](){return this}static create(t,e,n){const r=new f(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let s=this;r(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==a&&(s=Object.create(e),r(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;o.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=o;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(s(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function v(t){return t}function b(...t){return y(t)}function y(t){return 0===t.length?v:1===t.length?t[0]:function(e){return t.reduce((t,e)=>e(t),e)}}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){o.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=w(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(i){n(i),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:y(t)(this)}toPromise(t){return new(t=w(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function w(t){if(t||(t=o.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const C=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class E extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class x extends f{constructor(t){super(t),this.destination=t}}let S=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new x(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new C;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let i=0;inew k(t,e),t})();class k extends S{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function T(t){return t&&"function"==typeof t.schedule}class I extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const O=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[m])return r=t,t=>{const e=r[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(P(t))return O(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s),t);if(t&&"function"==typeof t[N])return e=t,t=>{const n=e[N]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function M(t,e,n,r,i=new I(t,n,r)){if(!i.closed)return e instanceof _?e.subscribe(i):R(e)(i)}class L extends f{notifyNext(t,e,n,r,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function F(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new j(t,e))}}class j{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new U(t,this.project,this.thisArg))}}class U extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function V(t,e){return new _(n=>{const r=new h;let i=0;return r.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>{const i=t[m]();r.add(i.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(D(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(P(t))return V(t,e);if(function(t){return t&&"function"==typeof t[N]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[N](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(R(t))}function H(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(H((n,r)=>B(t(n,r)).pipe(F((t,i)=>e(n,t,r,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new q(t,this.project,this.concurrent))}}class q extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function W(t=Number.POSITIVE_INFINITY){return H(v,t)}function G(t,e){return e?V(t,e):new _(O(t))}function $(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return T(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:W(e)(G(t,n))}function K(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new X(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class X extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Y extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new Z(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return K()(this)}}const J=(()=>{const t=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Z extends x{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function tt(){return new S}function et(){return t=>{return K()((e=tt,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,J);return r.source=t,r.subjectFactory=n,r})(t));var e}}function nt(t){return{toString:t}.toString()}function rt(t,e,n){return nt(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return r.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,r){const i=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const it=rt("Inject",t=>({token:t})),ot=rt("Optional"),st=rt("Self"),at=rt("SkipSelf");var lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function ct(t){for(let e in t)if(t[e]===ct)return e;throw Error("Could not find renamed property on target object.")}function ut(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function dt(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function pt(t){return ft(t,t[mt])||ft(t,t[yt])}function ft(t,e){return e&&e.token===t?e:null}function gt(t){return t&&(t.hasOwnProperty(vt)||t.hasOwnProperty(_t))?t[vt]:null}const mt=ct({"\u0275prov":ct}),vt=ct({"\u0275inj":ct}),bt=ct({"\u0275provFallback":ct}),yt=ct({ngInjectableDef:ct}),_t=ct({ngInjectorDef:ct});function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function Ct(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Et=ct({__forward_ref__:ct});function xt(t){return t.__forward_ref__=xt,t.toString=function(){return wt(this())},t}function St(t){return kt(t)?t():t}function kt(t){return"function"==typeof t&&t.hasOwnProperty(Et)&&t.__forward_ref__===xt}const Tt="undefined"!=typeof globalThis&&globalThis,It="undefined"!=typeof window&&window,Ot="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,At="undefined"!=typeof global&&global,Nt=Tt||At||It||Ot,Pt=ct({"\u0275cmp":ct}),Dt=ct({"\u0275dir":ct}),Rt=ct({"\u0275pipe":ct}),Mt=ct({"\u0275mod":ct}),Lt=ct({"\u0275loc":ct}),Ft=ct({"\u0275fac":ct}),jt=ct({__NG_ELEMENT_ID__:ct});class Ut{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Vt=new Ut("INJECTOR",-1),Bt={},Ht=/\n/gm,zt=ct({provide:String,useValue:ct});let qt,Wt=void 0;function Gt(t){const e=Wt;return Wt=t,e}function $t(t){const e=qt;return qt=t,e}function Kt(t,e=lt.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Yt(t,void 0,e):Wt.get(t,e<.Optional?null:void 0,e)}function Qt(t,e=lt.Default){return(qt||Kt)(St(t),e)}const Xt=Qt;function Yt(t,e,n){const r=pt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n<.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${wt(t)}]`)}function Jt(t){const e=[];for(let n=0;nArray.isArray(t)?ne(t,e):e(t))}function re(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ie(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function oe(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function ae(t,e){const n=le(t,e);if(n>=0)return t[1|n]}function le(t,e){return function(t,e,n){let r=0,i=t.length>>1;for(;i!==r;){const n=r+(i-r>>1),o=t[n<<1];if(e===o)return n<<1;o>e?i=n:r=n+1}return~(i<<1)}(t,e)}const ce=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),ue=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),he={},de=[];let pe=0;function fe(t){return nt(()=>{const e=t.type,n=e.prototype,r={},i={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||de,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ue.Emulated,id:"c",styles:t.styles||de,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,s=t.features,a=t.pipes;return i.id+=pe++,i.inputs=ye(t.inputs,r),i.outputs=ye(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(ge):null,i.pipeDefs=a?()=>("function"==typeof a?a():a).map(me):null,i})}function ge(t){return Ce(t)||function(t){return t[Dt]||null}(t)}function me(t){return function(t){return t[Rt]||null}(t)}const ve={};function be(t){const e={type:t.type,bootstrap:t.bootstrap||de,declarations:t.declarations||de,imports:t.imports||de,exports:t.exports||de,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&nt(()=>{ve[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}const _e=fe;function we(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ce(t){return t[Pt]||null}function Ee(t,e){return t.hasOwnProperty(Ft)?t[Ft]:null}function xe(t,e){const n=t[Mt]||null;if(!n&&!0===e)throw new Error(`Type ${wt(t)} does not have '\u0275mod' property.`);return n}function Se(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Te(t){return 0!=(8&t.flags)}function Ie(t){return 2==(2&t.flags)}function Oe(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function Ne(t){return 0!=(512&t[2])}let Pe=void 0;function De(){return void 0!==Pe?Pe:"undefined"!=typeof document?document:void 0}function Re(t){return!!t.listen}const Me={createRenderer:(t,e)=>De()};function Le(t){for(;Array.isArray(t);)t=t[0];return t}function Fe(t,e){return Le(e[t+20])}function je(t,e){return Le(e[t.index])}function Ue(t,e){return t.data[e+20]}function Ve(t,e){return t[e+20]}function Be(t,e){const n=e[t];return Se(n)?n:n[0]}function He(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ze(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function We(t,e){return null===t||null==e?null:t[e]}function Ge(t){t[18]=0}function $e(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Ke={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Qe(){return Ke.bindingsEnabled}function Xe(){return Ke.lFrame.lView}function Ye(){return Ke.lFrame.tView}function Je(t){Ke.lFrame.contextLView=t}function Ze(){return Ke.lFrame.previousOrParentTNode}function tn(t,e){Ke.lFrame.previousOrParentTNode=t,Ke.lFrame.isParent=e}function en(){return Ke.lFrame.isParent}function nn(){Ke.lFrame.isParent=!1}function rn(){return Ke.checkNoChangesMode}function on(t){Ke.checkNoChangesMode=t}function sn(){const t=Ke.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function an(){return Ke.lFrame.bindingIndex}function ln(){return Ke.lFrame.bindingIndex++}function cn(t){const e=Ke.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function un(t,e){const n=Ke.lFrame;n.bindingIndex=n.bindingRootIndex=t,hn(e)}function hn(t){Ke.lFrame.currentDirectiveIndex=t}function dn(t){const e=Ke.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function pn(){return Ke.lFrame.currentQueryIndex}function fn(t){Ke.lFrame.currentQueryIndex=t}function gn(t,e){const n=vn();Ke.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function mn(t,e){const n=vn(),r=t[1];Ke.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function vn(){const t=Ke.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function yn(){const t=Ke.lFrame;return Ke.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const _n=yn;function wn(){const t=yn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.currentSanitizer=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Cn(){return Ke.lFrame.selectedIndex}function En(t){Ke.lFrame.selectedIndex=t}function xn(){const t=Ke.lFrame;return Ue(t.tView,t.selectedIndex)}function Sn(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[s]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(s)):o.call(s)}class Nn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pn(t,e,n){const r=Re(t);let i=0;for(;ie){s=o-1;break}}}for(;o>16}function Vn(t,e){let n=Un(t),r=e;for(;n>0;)r=r[15],n--;return r}function Bn(t){return"string"==typeof t?t:null==t?"":""+t}function Hn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Bn(t)}const zn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function qn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Wn(t){return{name:"document",target:t.ownerDocument}}function Gn(t){return t instanceof Function?t():t}let $n=!0;function Kn(t){const e=$n;return $n=t,e}let Qn=0;function Xn(t,e){const n=Jn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Yn(r.data,t),Yn(e,null),Yn(r.blueprint,null));const i=Zn(t,e),o=t.injectorIndex;if(Fn(i)){const t=jn(i),n=Vn(i,e),r=n[1].data;for(let i=0;i<8;i++)e[o+i]=n[t+i]|r[t+i]}return e[o+8]=i,o}function Yn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Zn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],r=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function tr(t,e,n){!function(t,e,n){let r="string"!=typeof n?n[jt]:n.charCodeAt(0)||0;null==r&&(r=n[jt]=Qn++);const i=255&r,o=1<0?255&e:e}(n);if("function"==typeof i){gn(e,t);try{const t=i();if(null!=t||r<.Optional)return t;throw new Error(`No provider for ${Hn(n)}!`)}finally{_n()}}else if("number"==typeof i){if(-1===i)return new lr(t,e);let o=null,s=Jn(t,e),a=-1,l=r<.Host?e[16][6]:null;for((-1===s||r<.SkipSelf)&&(a=-1===s?Zn(t,e):e[s+8],ar(r,!1)?(o=e[1],s=jn(a),e=Vn(a,e)):s=-1);-1!==s;){a=e[s+8];const t=e[1];if(sr(i,s,t.data)){const t=rr(s,e,n,o,r,l);if(t!==nr)return t}ar(r,e[1].data[s+8]===l)&&sr(i,s,e)?(o=t,s=jn(a),e=Vn(a,e)):s=-1}}}if(r<.Optional&&void 0===i&&(i=null),0==(r&(lt.Self|lt.Host))){const t=e[9],o=$t(void 0);try{return t?t.get(n,i,r<.Optional):Yt(n,i,r<.Optional)}finally{$t(o)}}if(r<.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${Hn(n)}]`)}const nr={};function rr(t,e,n,r,i,o){const s=e[1],a=s.data[t+8],l=ir(a,s,n,null==r?Ie(a)&&$n:r!=s&&3===a.type,i<.Host&&o===a);return null!==l?or(e,s,l,a):nr}function ir(t,e,n,r,i){const o=t.providerIndexes,s=e.data,a=65535&o,l=t.directiveStart,c=o>>16,u=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h=l&&t.type===n)return h}if(i){const t=s[l];if(t&&Ae(t)&&t.type===n)return l}return null}function or(t,e,n,r){let i=t[n];const o=e.data;if(i instanceof Nn){const s=i;if(s.resolving)throw new Error("Circular dep for "+Hn(o[n]));const a=Kn(s.canSeeViewProviders);let l;s.resolving=!0,s.injectImpl&&(l=$t(s.injectImpl)),gn(t,r);try{i=t[n]=s.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{onChanges:r,onInit:i,doCheck:o}=e;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{s.injectImpl&&$t(l),Kn(a),s.resolving=!1,_n()}}return i}function sr(t,e,n){const r=64&t,i=32&t;let o;return o=128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(o&1<{const t=cr(St(e));return t?t():null};let n=Ee(e);if(null===n){const t=gt(e);n=t&&t.factory}return n||null}function ur(t){return nt(()=>{const e=t.prototype.constructor,n=e[Ft]||cr(e),r=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){const t=i[Ft]||cr(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function hr(t){return t.ngDebugContext}function dr(t){return t.ngOriginalError}function pr(t,...e){t.error(...e)}class fr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||pr}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?hr(t)?hr(t):this._findContext(dr(t)):null}_findOriginalError(t){let e=dr(t);for(;e&&dr(e);)e=dr(e);return e}}class gr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class mr extends gr{getTypeName(){return"HTML"}}class vr extends gr{getTypeName(){return"Style"}}class br extends gr{getTypeName(){return"Script"}}class yr extends gr{getTypeName(){return"URL"}}class _r extends gr{getTypeName(){return"ResourceURL"}}function wr(t){return t instanceof gr?t.changingThisBreaksApplicationSecurity:t}function Cr(t,e){const n=Er(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Er(t){return t instanceof gr&&t.getTypeName()||null}let xr=!0,Sr=!1;function kr(){return Sr=!0,xr}class Tr{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t=""+t+"";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0Ar(t.trim())).join(", ")),this.buf.push(" ",e,'="',Wr(s),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Fr.hasOwnProperty(e)&&!Dr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Wr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const zr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qr=/([^\#-~ |!])/g;function Wr(t){return t.replace(/&/g,"&").replace(zr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(qr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Gr;function $r(t,e){let n=null;try{Gr=Gr||new Tr(t);let r=e?String(e):"";n=Gr.getInertBodyElement(r);let i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Gr.getInertBodyElement(r)}while(r!==o);const s=new Hr,a=s.sanitizeChildren(Kr(n)||n);return kr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Kr(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Kr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const Qr=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),Xr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Yr=/^url\(([^)]+)\)$/;function Jr(t){const e=ei();return e?e.sanitize(Qr.HTML,t)||"":Cr(t,"HTML")?wr(t):$r(De(),Bn(t))}function Zr(t){const e=ei();return e?e.sanitize(Qr.URL,t)||"":Cr(t,"URL")?wr(t):Ar(Bn(t))}function ti(t){const e=ei();if(e)return e.sanitize(Qr.RESOURCE_URL,t)||"";if(Cr(t,"ResourceURL"))return wr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ei(){const t=Xe();return t&&t[12]}function ni(t,e){t.__ngContext__=e}function ri(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ii(){throw new Error("Cannot mix multi providers and regular providers")}function oi(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===r||t.charCodeAt(i+n)<=32)return i}n=i+1}}function si(t,e,n){let r=0;for(;ro?"":i[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==oi(e,c,0)||2&r&&c!==t){if(ui(r))return!1;s=!0}}}}else{if(!s&&!ui(r)&&!ui(l))return!1;if(s&&ui(l))continue;s=!1,r=l|1&r}}return ui(r)||s}function ui(t){return 0==(1&t)}function hi(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let n=!1;for(;i-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||ui(s)||(e+=fi(o,i),i=""),r=s,o=o||!ui(r);n++}return""!==i&&(e+=fi(o,i)),e}const mi={};function vi(t){const e=t[3];return ke(e)?e[3]:e}function bi(t){return _i(t[13])}function yi(t){return _i(t[4])}function _i(t){for(;null!==t&&!ke(t);)t=t[4];return t}function wi(t){Ci(Ye(),Xe(),Cn()+t,rn())}function Ci(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&kn(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Tn(e,r,0,n)}En(n)}function Ei(t,e){return t<<17|e<<2}function xi(t){return t>>17&32767}function Si(t){return 2|t}function ki(t){return(131068&t)>>2}function Ti(t,e){return-131069&t|e<<2}function Ii(t){return 1|t}function Oi(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&Ci(t,e,0,rn()),n(r,i)}finally{En(o)}}function Fi(t,e,n){if(Te(e)){const r=e.directiveEnd;for(let i=e.directiveStart;i0&&function t(e){for(let r=bi(e);null!==r;r=yi(r))for(let e=10;e0&&t(n)}const n=e[1].components;if(null!==n)for(let r=0;r0&&t(i)}}(n)}}function oo(t,e){const n=Be(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function po(t){return t[7]||(t[7]=[])}function fo(t){return t.cleanup||(t.cleanup=[])}function go(t,e,n){return(null===t||Ae(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function mo(t,e){const n=t[9],r=n?n.get(fr,null):null;r&&r.handleError(e)}function vo(t,e,n,r,i){for(let o=0;o0&&(t[n-1][4]=r[4]);const o=ie(t,10+e);wo(r[1],r,!1,null);const s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function xo(t,e){if(!(256&e[2])){const n=e[11];Re(n)&&n.destroyNode&&Lo(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ko(t[1],t);for(;e;){let n=null;if(Se(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Se(e)&&ko(e[1],e),e=So(e,t);null===e&&(e=t),Se(e)&&ko(e[1],e),n=e&&e[4]}e=n}}(e)}}function So(t,e){let n;return Se(t)&&(n=t[6])&&2===n.type?bo(n,t):t[3]===e?null:t[3]}function ko(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Re(e[11])&&e[11].destroy();const r=e[17];if(null!==r&&ke(e[3])){r!==e[3]&&Co(r,e);const n=e[19];null!==n&&n.detachView(t)}}}function To(t,e,n){let r=e.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){const t=n[6];return 2===t.type?yo(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return je(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==ue.ShadowDom&&n!==ue.Native)return null}return je(r,n)}function Io(t,e,n,r){Re(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Oo(t,e,n){Re(t)?t.appendChild(e,n):e.appendChild(n)}function Ao(t,e,n,r){null!==r?Io(t,e,n,r):Oo(t,e,n)}function No(t,e){return Re(t)?t.parentNode(e):e.parentNode}function Po(t,e){if(2===t.type){const n=bo(t,e);return null===n?null:Ro(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?je(t,e):null}function Do(t,e,n,r){const i=To(t,r,e);if(null!=i){const t=e[11],o=Po(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}xo(this._lView[1],this._lView)}onDestroy(t){var e,n,r;e=this._lView[1],r=t,po(n=this._lView).push(r),e.firstCreatePass&&fo(e).push(n[7].length-1,null)}markForCheck(){ao(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){lo(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){on(!0);try{lo(t,e,n)}finally{on(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Lo(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Bo extends Vo{constructor(t){super(t),this._view=t}detectChanges(){co(this._view)}checkNoChanges(){!function(t){on(!0);try{co(t)}finally{on(!1)}}(this._view)}get context(){return null}}let Ho,zo,qo;function Wo(t,e,n){return Ho||(Ho=class extends t{}),new Ho(je(e,n))}function Go(t,e,n,r){return zo||(zo=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Ni(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Di(e,n,t),new Vo(n)}}),0===n.type?new zo(r,n,Wo(e,n,r)):null}function $o(t,e,n,r){let i;qo||(qo=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Wo(e,this._hostTNode,this._hostView)}get injector(){return new lr(this._hostTNode,this._hostView)}get parentInjector(){const t=Zn(this._hostTNode,this._hostView),e=Vn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let r=Un(t),i=e,o=e[6];for(;r>1;)i=i[15],o=i[6],r--;return o}(t,this._hostView,this._hostTNode);return Fn(t)&&null!=n?new lr(n,e):new lr(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,i){const o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){const t=o.get(te,null);t&&(i=t)}const s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),ke(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new qo(e,e[6],e[3]);r.detach(r.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r{class t{}return t.__NG_ELEMENT_ID__=()=>Xo(),t})();const Xo=Ko,Yo=new Ut("Set Injector scope."),Jo={},Zo={},ts=[];let es=void 0;function ns(){return void 0===es&&(es=new Zt),es}function rs(t,e=null,n=null,r){return new is(t,n,e||ns(),r)}class is{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ne(e,n=>this.processProvider(n,t,e)),ne([t],t=>this.processInjectorType(t,[],i)),this.records.set(Vt,as(void 0,this));const o=this.records.get(Yo);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof t?null:wt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Bt,n=lt.Default){this.assertNotDestroyed();const r=Gt(this);try{if(!(n<.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Ut)&&pt(t);e=n&&this.injectableDefInScope(n)?as(os(t),Jo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n<.Self?ns():this.parent).get(t,e=n<.Optional&&e===Bt?null:e)}catch(o){if("NullInjectorError"===o.name){if((o.ngTempTokenPath=o.ngTempTokenPath||[]).unshift(wt(t)),r)throw o;return function(t,e,n,r){const i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=wt(e);if(Array.isArray(e))i=e.map(wt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):wt(r)))}i=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(Ht,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(o,t,"R3InjectorError",this.source)}throw o}finally{Gt(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(wt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let r=gt(t);const i=null==r&&t.ngModule||void 0,o=void 0===i?t:i,s=-1!==n.indexOf(o);if(void 0!==i&&(r=gt(i)),null==r)return!1;if(null!=r.imports&&!s){let t;n.push(o);try{ne(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||ts))}}this.injectorDefTypes.add(o),this.records.set(o,as(r.factory,Jo));const a=r.providers;if(null!=a&&!s){const e=t;ne(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let r=cs(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return ls(t)?as(void 0,t.useValue):as(ss(t,e,n),Jo)}(t,e,n);if(cs(t)||!0!==t.multi){const t=this.records.get(r);t&&void 0!==t.multi&&ii()}else{let e=this.records.get(r);e?void 0===e.multi&&ii():(e=as(void 0,Jo,!0),e.factory=()=>Jt(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,i)}hydrate(t,e){var n;return e.value===Zo?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(wt(t)):e.value===Jo&&(e.value=Zo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function os(t){const e=pt(t),n=null!==e?e.factory:Ee(t);if(null!==n)return n;const r=gt(t);if(null!==r)return r.factory;if(t instanceof Ut)throw new Error(`Token ${wt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=oe(e,"?");throw new Error(`Can't resolve all parameters for ${wt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[bt]&&t[bt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ss(t,e,n){let r=void 0;if(cs(t)){const e=St(t);return Ee(e)||os(e)}if(ls(t))r=()=>St(t.useValue);else if((i=t)&&i.useFactory)r=()=>t.useFactory(...Jt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>Qt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let r="";throw t&&e&&(r=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${wt(t)}'`+r)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(i)||os(i);r=()=>new i(...Jt(t.deps))}var i;return r}function as(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ls(t){return null!==t&&"object"==typeof t&&zt in t}function cs(t){return"function"==typeof t}const us=function(t,e,n){return function(t,e=null,n=null,r){const i=rs(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let hs=(()=>{class t{static create(t,e){return Array.isArray(t)?us(t,e,""):us(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Bt,t.NULL=new Zt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Qt(Vt)}),t.__NG_ELEMENT_ID__=-1,t})();const ds=new Ut("AnalyzeForEntryComponents");let ps=new Map;const fs=new Set;function gs(t){return"string"==typeof t?t:t.text()}function ms(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let s=0;sa(Le(t[r.index])).target:r.index;if(Re(n)){let s=null;if(!a&&l&&(s=function(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;on?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,i,r.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,h=!1;else{o=Ks(r,e,o,!1);const t=n.listen(p.name||f,i,o);u.push(o,t),c&&c.push(i,m,g,g+1)}}else o=Ks(r,e,o,!0),f.addEventListener(i,o,s),u.push(o),c&&c.push(i,m,g,s)}const d=r.outputs;let p;if(h&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Ke.lFrame.contextLView))[8]}(t)}function Xs(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i=0}const ia={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function oa(t){return t.substring(ia.key,ia.keyEnd)}function sa(t,e){const n=ia.textEnd;return n===e?-1:(e=ia.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,ia.key=e,n),aa(t,e,n))}function aa(t,e,n){for(;e=0;n=sa(e,n))se(t,oa(e),!0)}function da(t,e,n,r){const i=Xe(),o=Ye(),s=cn(2);if(o.firstUpdatePass&&ga(o,t,s,r),e!==mi&&xs(i,s,e)){let a;null==n&&(a=function(){const t=Ke.lFrame;return null===t?null:t.currentSanitizer}())&&(n=a),ba(o,o.data[Cn()+20],i,i[11],t,i[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=wt(wr(t)))),t}(e,n),r,s)}}function pa(t,e,n,r){const i=Ye(),o=cn(2);i.firstUpdatePass&&ga(i,null,o,r);const s=Xe();if(n!==mi&&xs(s,o,n)){const a=i.data[Cn()+20];if(wa(a,r)&&!fa(i,o)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=Ct(t,n||"")),Ms(i,a,s,n,r)}else!function(t,e,n,r,i,o,s,a){i===mi&&(i=ea);let l=0,c=0,u=0=t.expandoStartIndex}function ga(t,e,n,r){const i=t.data;if(null===i[n+1]){const o=i[Cn()+20],s=fa(t,n);wa(o,r)&&null===e&&!s&&(e=!1),e=function(t,e,n,r){const i=dn(t);let o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=va(n=ma(null,t,e,n,r),e.attrs,r),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==i)if(n=ma(i,t,e,n,r),null===o){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==ki(r))return t[xi(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=ma(null,t,e,n[1],r),n=va(n,e.attrs,r),function(t,e,n,r){t[xi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else o=function(t,e,n){let r=void 0;const i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else c=n;if(i)if(0!==l){const e=xi(t[a+1]);t[r+1]=Ei(e,a),0!==e&&(t[e+1]=Ti(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=Ei(a,0),0!==a&&(t[a+1]=Ti(t[a+1],r)),a=r;else t[r+1]=Ei(l,0),0===a?a=r:t[l+1]=Ti(t[l+1],r),l=r;u&&(t[r+1]=Si(t[r+1])),na(t,c,r,!0),na(t,c,r,!1),function(t,e,n,r,i){const o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&le(o,e)>=0&&(n[r+1]=Ii(n[r+1]))}(e,c,t,r,o),s=Ei(a,l),o?e.classBindings=s:e.styleBindings=s}(i,o,e,n,s,r)}}function ma(t,e,n,r,i){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[i],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[i+1];u===mi&&(u=c?ea:void 0);let h=c?ae(u,r):l===r?u:void 0;if(o&&!_a(h)&&(h=ae(e,r)),_a(h)&&(a=h,s))return a;const d=t[i+1];i=s?xi(d):ki(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=ae(t,r))}return a}function _a(t){return void 0!==t}function wa(t,e){return 0!=(t.flags&(e?16:32))}function Ca(t,e=""){const n=Xe(),r=Ye(),i=t+20,o=r.firstCreatePass?Pi(r,n[6],t,3,null,null):r.data[i],s=n[i]=function(t,e){return Re(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Do(r,n,s,o),tn(o,!1)}function Ea(t){return xa("",t,""),Ea}function xa(t,e,n){const r=Xe(),i=Is(r,t,e,n);return i!==mi&&function(t,e,n){const r=Fe(e,t),i=t[11];Re(i)?i.setValue(r,n):r.textContent=n}(r,Cn(),i),xa}function Sa(t,e,n){pa(se,ha,Is(Xe(),t,e,n),!0)}function ka(t,e,n,r,i){pa(se,ha,function(t,e,n,r,i,o){const s=Ss(t,an(),n,i);return cn(2),s?e+Bn(n)+r+Bn(i)+o:mi}(Xe(),t,e,n,r,i),!0)}function Ta(t,e,n){const r=Xe();return xs(r,ln(),e)&&qi(Ye(),xn(),r,t,e,r[11],n,!0),Ta}function Ia(t,e,n){const r=Xe();if(xs(r,ln(),e)){const i=Ye(),o=xn();qi(i,o,r,t,e,go(dn(i.data),o,r),n,!0)}return Ia}function Oa(t,e){const n=He(t)[1],r=n.data.length-1;Sn(n,{directiveStart:r,directiveEnd:r+1})}function Aa(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const r=[t];for(;e;){let i=void 0;if(Ae(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);const e=t;e.inputs=Na(t.inputs),e.declaredInputs=Na(t.declaredInputs),e.outputs=Na(t.outputs);const n=i.hostBindings;n&&Ra(t,n);const o=i.viewQuery,s=i.contentQueries;if(o&&Pa(t,o),s&&Da(t,s),ut(t.inputs,i.inputs),ut(t.declaredInputs,i.declaredInputs),ut(t.outputs,i.outputs),Ae(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}e.afterContentChecked=e.afterContentChecked||i.afterContentChecked,e.afterContentInit=t.afterContentInit||i.afterContentInit,e.afterViewChecked=t.afterViewChecked||i.afterViewChecked,e.afterViewInit=t.afterViewInit||i.afterViewInit,e.doCheck=t.doCheck||i.doCheck,e.onDestroy=t.onDestroy||i.onDestroy,e.onInit=t.onInit||i.onInit}const e=i.features;if(e)for(let r=0;r=0;r--){const i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Mn(i.hostAttrs,n=Mn(n,i.hostAttrs))}}(r)}function Na(t){return t===he?{}:t===de?[]:t}function Pa(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function Da(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,i)=>{e(t,r,i),n(t,r,i)}:e}function Ra(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}class Ma{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function La(t){t.type.prototype.ngOnChanges&&(t.setInput=Fa,t.onChanges=function(){const t=ja(this),e=t&&t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}})}function Fa(t,e,n,r){const i=ja(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],l=s[a];o[a]=new Ma(l&&l.currentValue,e,s===he),t[r]=e}function ja(t){return t.__ngSimpleChanges__||null}function Ua(t,e,n,r,i){if(t=St(t),Array.isArray(t))for(let o=0;o>16;if(cs(t)||!t.multi){const r=new Nn(l,i,Ns),p=Ha(a,e,i?u:u+d,h);-1===p?(tr(Xn(c,s),o,a),Va(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(r),s.push(r)):(n[p]=r,s[p]=r)}else{const p=Ha(a,e,u+d,h),f=Ha(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(i&&!m||!i&&!g){tr(Xn(c,s),o,a);const u=function(t,e,n,r,i){const o=new Nn(t,n,Ns);return o.multi=[],o.index=e,o.componentProviders=0,Ba(o,i,r&&!n),o}(i?qa:za,n.length,i,r,l);!i&&m&&(n[f].providerFactory=u),Va(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(u),s.push(u)}else Va(o,t,p>-1?p:f,Ba(n[i?f:p],l,!i&&r));!i&&r&&m&&n[f].componentProviders++}}}function Va(t,e,n,r){const i=cs(e);if(i||e.useClass){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[r,o]):s[t+1].push(r,o)}else s.push(n,o)}}}function Ba(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ha(t,e,n,r){for(let i=n;i{n.providersResolver=(n,r)=>function(t,e,n){const r=Ye();if(r.firstCreatePass){const i=Ae(t);Ua(n,r.data,r.blueprint,i,!0),Ua(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}La.ngInherit=!0;class $a{}class Ka{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${wt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Qa=(()=>{class t{}return t.NULL=new Ka,t})(),Xa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Ya(t),t})();const Ya=function(t){return Wo(t,Ze(),Xe())};class Ja{}const Za=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>el(),t})();const el=function(){const t=Xe(),e=Be(Ze().index,t);return function(t){const e=t[11];if(Re(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Se(e)?e:t)};let nl=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class rl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const il=new rl("9.1.12");class ol{constructor(){}supports(t){return ws(t)}create(t){return new al(t)}}const sl=(t,e)=>e;class al{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||sl}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,i=null;for(;e||n;){const o=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==i&&ys(i.trackById,r)?(o&&(i=this._verifyReinsertion(i,t,r,e)),ys(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,r,e),o=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(ys(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(ys(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ll(e,n),i,r),t}_verifyReinsertion(t,e,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ul),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ul),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ll{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class cl{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&ys(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class ul{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new cl,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function hl(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new fl(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){ys(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class fl{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let gl=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new ol])}),t})(),ml=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new at,new ot]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new dl])}),t})();const vl=[new dl],bl=new gl([new ol]),yl=new ml(vl);let _l=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wl(t,Xa),t})();const wl=function(t,e){return Go(t,e,Ze(),Xe())};let Cl=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>El(t,Xa),t})();const El=function(t,e){return $o(t,e,Ze(),Xe())},xl={};class Sl extends Qa{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ce(t);return new Il(e,this.ngModule)}}function kl(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Tl=new Ut("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>zn});class Il extends $a{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(gi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return kl(this.componentDef.inputs)}get outputs(){return kl(this.componentDef.outputs)}create(t,e,n,r){const i=(r=r||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const o=t.get(n,xl,i);return o!==xl||r===xl?o:e.get(n,r,i)}}}(t,r.injector):t,o=i.get(Ja,Me),s=i.get(nl,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Re(t))return t.selectRootElement(e,n===ue.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Ai(l,o.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),d={components:[],scheduler:zn,clean:ho,playerHandler:null,flags:0},p=Bi(0,-1,null,1,0,null,null,null,null,null),f=Ni(null,p,d,u,null,null,o,a,s,i);let g,m;mn(f,null);try{const t=function(t,e,n,r,i,o){const s=n[1];n[20]=t;const a=Pi(s,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ms(a,l,!0),null!==t&&(Pn(i,t,l),null!==a.classes&&Uo(i,t,a.classes),null!==a.styles&&jo(i,t,a.styles)));const c=r.createRenderer(t,e),u=Ni(n,Vi(e),null,e.onPush?64:16,n[20],a,r,c,void 0);return s.firstCreatePass&&(tr(Xn(a,n),s,e.type),Xi(s,a),Ji(a,n.length,1)),so(n,u),n[20]=u}(c,this.componentDef,f,o,a);if(c)if(n)Pn(a,c,["ng-version",il.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,i=2;for(;r0&&Uo(a,c,e.join(" "))}if(m=Ue(p,0),void 0!==e){const t=m.projection=[];for(let n=0;nt(s,e)),e.contentQueries&&e.contentQueries(1,s,n.length-1);const a=Ze();if(o.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){En(a.index-20);const t=n[1];Gi(t,e),$i(t,n,e.hostVars),Ki(e,s)}return s}(t,this.componentDef,f,d,[Oa]),Di(p,f,null)}finally{wn()}const v=new Ol(this.componentType,g,Wo(Xa,m,f),f,m);return n&&!h||(p.node.child=m),v}}class Ol extends class{}{constructor(t,e,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Bo(r),function(t,e,n,r){let i=t.node;null==i&&(t.node=i=Hi(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=t}get injector(){return new lr(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Al=void 0;var Nl=["en",[["a","p"],["AM","PM"],Al],[["AM","PM"],Al,Al],[["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"]],Al,[["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"]],Al,[["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}",Al,"{1} 'at' {0}",Al],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Pl={};function Dl(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Rl(e);if(n)return n;const r=e.split("-")[0];if(n=Rl(r),n)return n;if("en"===r)return Nl;throw new Error(`Missing locale data for the locale "${t}".`)}function Rl(t){return t in Pl||(Pl[t]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[t]),Pl[t]}const Ml=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();let Ll="en-US";function Fl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ll=t.toLowerCase().replace(/_/g,"-"))}const jl=new Map;class Ul extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Sl(this);const n=xe(t),r=t[Lt]||null;r&&Fl(r),this._bootstrapComponents=Gn(n.bootstrap),this._r3Injector=rs(t,e,[{provide:te,useValue:this},{provide:Qa,useValue:this.componentFactoryResolver}],wt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=hs.THROW_IF_NOT_FOUND,n=lt.Default){return t===hs||t===te||t===Vt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Vl extends ee{constructor(t){super(),this.moduleType=t,null!==xe(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${wt(e)} vs ${wt(e.name)}`)})(t,jl.get(t),e),jl.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ul(this.moduleType,t)}}function Bl(t,e,n,r){return Gl(Xe(),sn(),t,e,n,r)}function Hl(t,e,n,r,i){return $l(Xe(),sn(),t,e,n,r,i)}function zl(t,e,n,r,i,o){return function(t,e,n,r,i,o,s,a){const l=e+n;return function(t,e,n,r,i){const o=Ss(t,e,n,r);return xs(t,e+2,i)||o}(t,l,i,o,s)?Es(t,l+3,a?r.call(a,i,o,s):r(i,o,s)):Wl(t,l+3)}(Xe(),sn(),t,e,n,r,i,o)}function ql(t,e,n,r,i,o,s,a){const l=sn()+t,c=Xe(),u=ks(c,l,n,r,i,o);return xs(c,l+4,s)||u?Es(c,l+5,a?e.call(a,n,r,i,o,s):e(n,r,i,o,s)):function(t,e){return t[e]}(c,l+5)}function Wl(t,e){const n=t[e];return n===mi?void 0:n}function Gl(t,e,n,r,i,o){const s=e+n;return xs(t,s,i)?Es(t,s+1,o?r.call(o,i):r(i)):Wl(t,s+1)}function $l(t,e,n,r,i,o,s){const a=e+n;return Ss(t,a,i,o)?Es(t,a+2,s?r.call(s,i,o):r(i,o)):Wl(t,a+2)}function Kl(t,e){const n=Ye();let r;const i=t+20;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const o=r.factory||(r.factory=Ee(r.type)),s=$t(Ns),a=Kn(!1),l=o();return Kn(a),$t(s),function(t,e,n,r){const i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(n,Xe(),t,l),l}function Ql(t,e,n){const r=Xe(),i=Ve(r,t);return Jl(r,Yl(r,t)?Gl(r,sn(),e,i.transform,n,i):i.transform(n))}function Xl(t,e,n,r){const i=Xe(),o=Ve(i,t);return Jl(i,Yl(i,t)?$l(i,sn(),e,o.transform,n,r,o):o.transform(n,r))}function Yl(t,e){return t[1].data[e+20].pure}function Jl(t,e){return _s.isWrapped(e)&&(e=_s.unwrap(e),t[an()]=mi),e}class Zl extends S{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(r,i,o);return t instanceof h&&t.add(s),s}}function tc(){return this._results[bs()]()}class ec{constructor(){this.dirty=!0,this._results=[],this.changes=new Zl,this.length=0;const t=bs(),e=ec.prototype;e[t]||(e[t]=tc)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r0)i.push(a[e/2]);else{const o=s[e+1],a=n[-r];for(let e=10;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(_c,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Cc=new Ut("AppId"),Ec={provide:Cc,useFactory:function(){return`${xc()}${xc()}${xc()}`},deps:[]};function xc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Sc=new Ut("Platform Initializer"),kc=new Ut("Platform ID"),Tc=new Ut("appBootstrapListener");let Ic=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Oc=new Ut("LocaleId"),Ac=new Ut("DefaultCurrencyCode");class Nc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Pc=function(t){return new Vl(t)},Dc=Pc,Rc=function(t){return Promise.resolve(Pc(t))},Mc=function(t){const e=Pc(t),n=Gn(xe(t).declarations).reduce((t,e)=>{const n=Ce(e);return n&&t.push(new Il(n)),t},[]);return new Nc(e,n)},Lc=Mc,Fc=function(t){return Promise.resolve(Mc(t))};let jc=(()=>{class t{constructor(){this.compileModuleSync=Dc,this.compileModuleAsync=Rc,this.compileModuleAndAllComponentsSync=Lc,this.compileModuleAndAllComponentsAsync=Fc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Uc=new Ut("compilerOptions"),Vc=(()=>Promise.resolve(0))();function Bc(t){"undefined"==typeof Zone?Vc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Hc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Zl(!1),this.onMicrotaskEmpty=new Zl(!1),this.onStable=new Zl(!1),this.onError=new Zl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=Nt.requestAnimationFrame,e=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Nt,()=>{t.lastRequestAnimationFrameId=-1,Gc(t),Wc(t)}),Gc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,i,o,s,a)=>{try{return $c(t),n.invokeTask(i,o,s,a)}finally{e&&"eventTask"===o.type&&e(),Kc(t)}},onInvoke:(e,n,r,i,o,s,a)=>{try{return $c(t),e.invoke(r,i,o,s,a)}finally{Kc(t)}},onHasTask:(e,n,r,i)=>{e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Gc(t),Wc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,r,i)=>(e.handleError(r,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Hc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Hc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,t,qc,zc,zc);try{return i.runTask(o,e,n)}finally{i.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function zc(){}const qc={};function Wc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Gc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function $c(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Kc(t){t._nesting--,Wc(t)}class Qc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Zl,this.onMicrotaskEmpty=new Zl,this.onStable=new Zl,this.onError=new Zl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let Xc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Hc.assertNotInAngularZone(),Bc(()=>{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())Bc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Qt(Hc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Yc=(()=>{class t{constructor(){this._applications=new Map,tu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return tu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Jc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let Zc,tu=new Jc,eu=function(t,e,n){const r=t.get(Uc,[]).concat(e),i=new Vl(n);if(0===ps.size)return Promise.resolve(i);const o=function(t){const e=[];return t.forEach(t=>t&&e.push(...t)),e}(r.map(t=>t.providers));if(0===o.length)return Promise.resolve(i);const s=function(){const t=Nt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),a=hs.create({providers:o}).get(s.ResourceLoader);return function(t){const e=[],n=new Map;function r(t){let e=n.get(t);if(!e){const r=(t=>Promise.resolve(a.get(t)))(t);n.set(t,e=r.then(gs))}return e}return ps.forEach((t,n)=>{const i=[];t.templateUrl&&i.push(r(t.templateUrl).then(e=>{t.template=e}));const o=t.styleUrls,s=t.styles||(t.styles=[]),a=t.styles.length;o&&o.forEach((e,n)=>{s.push(""),i.push(r(e).then(r=>{s[a+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)}))});const l=Promise.all(i).then(()=>function(t){fs.delete(t)}(n));e.push(l)}),ps=new Map,Promise.all(e).then(()=>{})}().then(()=>i)};const nu=new Ut("AllowMultipleToken");class ru{constructor(t,e){this.name=t,this.token=e}}function iu(t,e,n=[]){const r="Platform: "+e,i=new Ut(r);return(e=[])=>{let o=ou();if(!o||o.injector.get(nu,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:Yo,useValue:"platform"});!function(t){if(Zc&&!Zc.destroyed&&!Zc.injector.get(nu,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Zc=t.get(su);const e=t.get(Sc,null);e&&e.forEach(t=>t())}(hs.create({providers:t,name:r}))}return function(t){const e=ou();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function ou(){return Zc&&!Zc.destroyed?Zc:null}let su=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Qc:("zone.js"===t?void 0:t)||new Hc({enableLongStackTrace:kr(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Hc,useValue:n}];return n.run(()=>{const e=hs.create({providers:r,parent:this.injector,name:t.moduleType.name}),i=t.create(e),o=i.injector.get(fr,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>cu(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{o.handleError(t)}})),function(t,e,n){try{const r=n();return Hs(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(o,n,()=>{const t=i.injector.get(wc);return t.runInitializers(),t.donePromise.then(()=>(Fl(i.injector.get(Oc,"en-US")||"en-US"),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=au({},e);return eu(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lu);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${wt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Qt(hs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function au(t,e){return Array.isArray(e)?e.reduce(au,t):Object.assign(Object.assign({},t),e)}let lu=(()=>{class t{constructor(t,e,n,r,i,o){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=kr(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Hc.assertNotInAngularZone(),Bc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Hc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=$(s,a.pipe(et()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof $a?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(hs.NULL,[],e||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const o=i.injector.get(Xc,null);return o&&i.injector.get(Yc).registerApplication(i.location.nativeElement,o),this._loadComponent(i),kr()&&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");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;cu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Tc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),cu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Qt(Hc),Qt(Ic),Qt(hs),Qt(fr),Qt(Qa),Qt(wc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function cu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class uu{}class hu{}const du={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let pu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||du}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>fu(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),i="NgFactory";return void 0===r&&(r="default",i=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+i]).then(t=>fu(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(Qt(jc),Qt(hu,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function fu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const gu=iu(null,"core",[{provide:kc,useValue:"unknown"},{provide:su,deps:[hs]},{provide:Yc,deps:[]},{provide:Ic,deps:[]}]),mu=[{provide:lu,useClass:lu,deps:[Hc,Ic,hs,fr,Qa,wc]},{provide:Tl,deps:[Hc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:wc,useClass:wc,deps:[[new ot,_c]]},{provide:jc,useClass:jc,deps:[]},Ec,{provide:gl,useFactory:function(){return bl},deps:[]},{provide:ml,useFactory:function(){return yl},deps:[]},{provide:Oc,useFactory:function(t){return Fl(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new it(Oc),new ot,new at]]},{provide:Ac,useValue:"USD"}];let vu=(()=>{class t{constructor(t){}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(lu))},providers:mu}),t})();const bu={apiKey:"AIzaSyB1WdsTsEAjHKo8Ztzxcniu_XK-tZqAf_k",authDomain:"nhg-events.firebaseapp.com",projectId:"nhg-events",storageBucket:"nhg-events.appspot.com",messagingSenderId:"563970705437",appId:"1:563970705437:web:ea6e277a64e50257bd1ef4"};let yu=null;function _u(){return yu}const wu=new Ut("DocumentToken");let Cu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Eu,token:t,providedIn:"platform"}),t})();function Eu(){return Qt(Su)}const xu=new Ut("Location Initialized");let Su=(()=>{class t extends Cu{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=_u().getLocation(),this._history=_u().getHistory()}getBaseHrefFromDOM(){return _u().getBaseHref(this._doc)}onPopState(t){_u().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){_u().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){ku()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){ku()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({factory:Tu,token:t,providedIn:"platform"}),t})();function ku(){return!!window.history.pushState}function Tu(){return new Su(Qt(wu))}function Iu(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Ou(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Au(t){return t&&"?"!==t[0]?"?"+t:t}let Nu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Pu,token:t,providedIn:"root"}),t})();function Pu(t){const e=Qt(wu).location;return new Ru(Qt(Cu),e&&e.origin||"")}const Du=new Ut("appBaseHref");let Ru=(()=>{class t extends Nu{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Iu(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+Au(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const i=this.prepareExternalUrl(n+Au(r));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){const i=this.prepareExternalUrl(n+Au(r));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Cu),Qt(Du,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Mu=(()=>{class t extends Nu{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Iu(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let i=this.prepareExternalUrl(n+Au(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,r){let i=this.prepareExternalUrl(n+Au(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Cu),Qt(Du,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Lu=(()=>{class t{constructor(t,e){this._subject=new Zl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Ou(ju(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+Au(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,ju(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Au(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Au(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)})}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Qt(Nu),Qt(Cu))},t.normalizeQueryParams=Au,t.joinWithSlash=Iu,t.stripTrailingSlash=Ou,t.\u0275prov=ht({factory:Fu,token:t,providedIn:"root"}),t})();function Fu(){return new Lu(Qt(Nu),Qt(Cu))}function ju(t){return t.replace(/\/index.html$/,"")}const Uu=function(){var t={Decimal:0,Percent:1,Currency:2,Scientific:3};return t[t.Decimal]="Decimal",t[t.Percent]="Percent",t[t.Currency]="Currency",t[t.Scientific]="Scientific",t}(),Vu=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}(),Bu=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),Hu=function(){var t={Narrow:0,Abbreviated:1,Wide:2,Short:3};return t[t.Narrow]="Narrow",t[t.Abbreviated]="Abbreviated",t[t.Wide]="Wide",t[t.Short]="Short",t}(),zu=function(){var t={Short:0,Medium:1,Long:2,Full:3};return t[t.Short]="Short",t[t.Medium]="Medium",t[t.Long]="Long",t[t.Full]="Full",t}(),qu=function(){var t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return t[t.Decimal]="Decimal",t[t.Group]="Group",t[t.List]="List",t[t.PercentSign]="PercentSign",t[t.PlusSign]="PlusSign",t[t.MinusSign]="MinusSign",t[t.Exponential]="Exponential",t[t.SuperscriptingExponent]="SuperscriptingExponent",t[t.PerMille]="PerMille",t[t.Infinity]="Infinity",t[t.NaN]="NaN",t[t.TimeSeparator]="TimeSeparator",t[t.CurrencyDecimal]="CurrencyDecimal",t[t.CurrencyGroup]="CurrencyGroup",t}();function Wu(t,e){return Xu(Dl(t)[Ml.DateFormat],e)}function Gu(t,e){return Xu(Dl(t)[Ml.TimeFormat],e)}function $u(t,e){return Xu(Dl(t)[Ml.DateTimeFormat],e)}function Ku(t,e){const n=Dl(t),r=n[Ml.NumberSymbols][e];if(void 0===r){if(e===qu.CurrencyDecimal)return n[Ml.NumberSymbols][qu.Decimal];if(e===qu.CurrencyGroup)return n[Ml.NumberSymbols][qu.Group]}return r}function Qu(t){if(!t[Ml.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[Ml.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xu(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Yu(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const Ju=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Zu={},th=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,eh=function(){var t={Short:0,ShortGMT:1,Long:2,Extended:3};return t[t.Short]="Short",t[t.ShortGMT]="ShortGMT",t[t.Long]="Long",t[t.Extended]="Extended",t}(),nh=function(){var t={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return t[t.FullYear]="FullYear",t[t.Month]="Month",t[t.Date]="Date",t[t.Hours]="Hours",t[t.Minutes]="Minutes",t[t.Seconds]="Seconds",t[t.FractionalSeconds]="FractionalSeconds",t[t.Day]="Day",t}(),rh=function(){var t={DayPeriods:0,Days:1,Months:2,Eras:3};return t[t.DayPeriods]="DayPeriods",t[t.Days]="Days",t[t.Months]="Months",t[t.Eras]="Eras",t}();function ih(t,e,n,r){let i=function(t){if(ph(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(Ju))return function(t){const e=new Date(0);let n=0,r=0;const i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,l,c),e}(n)}const e=new Date(t);if(!ph(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const r=function(t){return Dl(t)[Ml.LocaleId]}(e);if(Zu[r]=Zu[r]||{},Zu[r][n])return Zu[r][n];let i="";switch(n){case"shortDate":i=Wu(e,zu.Short);break;case"mediumDate":i=Wu(e,zu.Medium);break;case"longDate":i=Wu(e,zu.Long);break;case"fullDate":i=Wu(e,zu.Full);break;case"shortTime":i=Gu(e,zu.Short);break;case"mediumTime":i=Gu(e,zu.Medium);break;case"longTime":i=Gu(e,zu.Long);break;case"fullTime":i=Gu(e,zu.Full);break;case"short":const n=t(e,"shortTime"),r=t(e,"shortDate");i=oh($u(e,zu.Short),[n,r]);break;case"medium":const o=t(e,"mediumTime"),s=t(e,"mediumDate");i=oh($u(e,zu.Medium),[o,s]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");i=oh($u(e,zu.Long),[a,l]);break;case"full":const c=t(e,"fullTime"),u=t(e,"fullDate");i=oh($u(e,zu.Full),[c,u])}return i&&(Zu[r][n]=i),i}(n,e)||e;let o,s=[];for(;e;){if(o=th.exec(e),!o){s.push(e);break}{s=s.concat(o.slice(1));const t=s.pop();if(!t)break;e=t}}let a=i.getTimezoneOffset();r&&(a=dh(r,a),i=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(dh(e,r)-r))}(i,r));let l="";return s.forEach(t=>{const e=function(t){if(hh[t])return hh[t];let e;switch(t){case"G":case"GG":case"GGG":e=lh(rh.Eras,Hu.Abbreviated);break;case"GGGG":e=lh(rh.Eras,Hu.Wide);break;case"GGGGG":e=lh(rh.Eras,Hu.Narrow);break;case"y":e=ah(nh.FullYear,1,0,!1,!0);break;case"yy":e=ah(nh.FullYear,2,0,!0,!0);break;case"yyy":e=ah(nh.FullYear,3,0,!1,!0);break;case"yyyy":e=ah(nh.FullYear,4,0,!1,!0);break;case"M":case"L":e=ah(nh.Month,1,1);break;case"MM":case"LL":e=ah(nh.Month,2,1);break;case"MMM":e=lh(rh.Months,Hu.Abbreviated);break;case"MMMM":e=lh(rh.Months,Hu.Wide);break;case"MMMMM":e=lh(rh.Months,Hu.Narrow);break;case"LLL":e=lh(rh.Months,Hu.Abbreviated,Bu.Standalone);break;case"LLLL":e=lh(rh.Months,Hu.Wide,Bu.Standalone);break;case"LLLLL":e=lh(rh.Months,Hu.Narrow,Bu.Standalone);break;case"w":e=uh(1);break;case"ww":e=uh(2);break;case"W":e=uh(1,!0);break;case"d":e=ah(nh.Date,1);break;case"dd":e=ah(nh.Date,2);break;case"E":case"EE":case"EEE":e=lh(rh.Days,Hu.Abbreviated);break;case"EEEE":e=lh(rh.Days,Hu.Wide);break;case"EEEEE":e=lh(rh.Days,Hu.Narrow);break;case"EEEEEE":e=lh(rh.Days,Hu.Short);break;case"a":case"aa":case"aaa":e=lh(rh.DayPeriods,Hu.Abbreviated);break;case"aaaa":e=lh(rh.DayPeriods,Hu.Wide);break;case"aaaaa":e=lh(rh.DayPeriods,Hu.Narrow);break;case"b":case"bb":case"bbb":e=lh(rh.DayPeriods,Hu.Abbreviated,Bu.Standalone,!0);break;case"bbbb":e=lh(rh.DayPeriods,Hu.Wide,Bu.Standalone,!0);break;case"bbbbb":e=lh(rh.DayPeriods,Hu.Narrow,Bu.Standalone,!0);break;case"B":case"BB":case"BBB":e=lh(rh.DayPeriods,Hu.Abbreviated,Bu.Format,!0);break;case"BBBB":e=lh(rh.DayPeriods,Hu.Wide,Bu.Format,!0);break;case"BBBBB":e=lh(rh.DayPeriods,Hu.Narrow,Bu.Format,!0);break;case"h":e=ah(nh.Hours,1,-12);break;case"hh":e=ah(nh.Hours,2,-12);break;case"H":e=ah(nh.Hours,1);break;case"HH":e=ah(nh.Hours,2);break;case"m":e=ah(nh.Minutes,1);break;case"mm":e=ah(nh.Minutes,2);break;case"s":e=ah(nh.Seconds,1);break;case"ss":e=ah(nh.Seconds,2);break;case"S":e=ah(nh.FractionalSeconds,1);break;case"SS":e=ah(nh.FractionalSeconds,2);break;case"SSS":e=ah(nh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=ch(eh.Short);break;case"ZZZZZ":e=ch(eh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=ch(eh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=ch(eh.Long);break;default:return null}return hh[t]=e,e}(t);l+=e?e(i,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function oh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function sh(t,e,n="-",r,i){let o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===nh.Hours)0===a&&-12===n&&(a=12);else if(t===nh.FractionalSeconds)return l=e,sh(a,3).substr(0,l);var l;const c=Ku(s,qu.MinusSign);return sh(a,e,c,r,i)}}function lh(t,e,n=Bu.Format,r=!1){return function(i,o){return function(t,e,n,r,i,o){switch(n){case rh.Months:return function(t,e,n){const r=Dl(t),i=Xu([r[Ml.MonthsFormat],r[Ml.MonthsStandalone]],e);return Xu(i,n)}(e,i,r)[t.getMonth()];case rh.Days:return function(t,e,n){const r=Dl(t),i=Xu([r[Ml.DaysFormat],r[Ml.DaysStandalone]],e);return Xu(i,n)}(e,i,r)[t.getDay()];case rh.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(o){const t=function(t){const e=Dl(t);return Qu(e),(e[Ml.ExtraData][2]||[]).map(t=>"string"==typeof t?Yu(t):[Yu(t[0]),Yu(t[1])])}(e),n=function(t,e,n){const r=Dl(t);Qu(r);const i=Xu([r[Ml.ExtraData][0],r[Ml.ExtraData][1]],e)||[];return Xu(i,n)||[]}(e,i,r);let o;if(t.forEach((t,e)=>{if(Array.isArray(t)){const{hours:r,minutes:i}=t[0],{hours:l,minutes:c}=t[1];s>=r&&a>=i&&(s0?Math.floor(i/60):Math.ceil(i/60);switch(t){case eh.Short:return(i>=0?"+":"")+sh(s,2,o)+sh(Math.abs(i%60),2,o);case eh.ShortGMT:return"GMT"+(i>=0?"+":"")+sh(s,1,o);case eh.Long:return"GMT"+(i>=0?"+":"")+sh(s,2,o)+":"+sh(Math.abs(i%60),2,o);case eh.Extended:return 0===r?"Z":(i>=0?"+":"")+sh(s,2,o)+":"+sh(Math.abs(i%60),2,o);default:throw new Error(`Unknown zone width "${t}"`)}}}function uh(t,e=!1){return function(n,r){let i;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();i=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-t.getTime();i=1+Math.round(e/6048e5)}var o;return sh(i,t,Ku(r,qu.MinusSign))}}const hh={};function dh(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function ph(t){return t instanceof Date&&!isNaN(t.valueOf())}const fh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function gh(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class mh{}let vh=(()=>{class t extends mh{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return Dl(t)[Ml.PluralCase]}(e||this.locale)(t)){case Vu.Zero:return"zero";case Vu.One:return"one";case Vu.Two:return"two";case Vu.Few:return"few";case Vu.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Qt(Oc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function bh(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(i)}return null}let yh=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ws(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+wt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(gl),Ns(ml),Ns(Xa),Ns(tl))},t.\u0275dir=_e({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class _h{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let wh=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){kr()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new _h(null,this._ngForOf,-1,-1),null===r?void 0:r),i=new Ch(t,n);e.push(i)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const i=this._viewContainer.get(n);this._viewContainer.move(i,r);const o=new Ch(t,i);e.push(o)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl),Ns(_l),Ns(gl))},t.\u0275dir=_e({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Ch{constructor(t,e){this.record=t,this.view=e}}let Eh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new xh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Sh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Sh("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl),Ns(_l))},t.\u0275dir=_e({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class xh{constructor(){this.$implicit=null,this.ngIf=null}}function Sh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${wt(e)}'.`)}class kh{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Th=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new kh(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl),Ns(_l),Ns(Th,1))},t.\u0275dir=_e({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),Oh=(()=>{class t{constructor(t,e,n){n._addDefault(new kh(t,e))}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl),Ns(_l),Ns(Th,1))},t.\u0275dir=_e({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ah=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,r]=t.split(".");null!=(e=null!=e&&r?`${e}${r}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(ml),Ns(tl))},t.\u0275dir=_e({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),Nh=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl))},t.\u0275dir=_e({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[La]}),t})();function Ph(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${wt(t)}'`)}class Dh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Rh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Mh=new Rh,Lh=new Dh;let Fh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):ys(this._latestValue,this._latestReturnedValue)?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,_s.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(Hs(e))return Mh;if(zs(e))return Lh;throw Ph(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=lt.Default){const e=Ko(!0);if(null!=e||t<.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=we({name:"async",type:t,pure:!1}),t})(),jh=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",r,i){if(null==e||""===e||e!=e)return null;try{return ih(e,n,i||this.locale,r)}catch(o){throw Ph(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(Ns(Oc))},t.\u0275pipe=we({name:"date",type:t,pure:!0}),t})(),Uh=(()=>{class t{constructor(t){this._locale=t}transform(e,n,r){if(function(t){return null==t||""===t||t!=t}(e))return null;r=r||this._locale;try{return function(t,e,n){return function(t,e,n,r,i,o,s=!1){let a="",l=!1;if(isFinite(t)){let c=function(t){let e,n,r,i,o,s=Math.abs(t)+"",a=0;for((n=s.indexOf("."))>-1&&(s=s.replace(".","")),(r=s.search(/e/i))>0?(n<0&&(n=r),n+=+s.slice(r+1),s=s.substring(0,r)):n<0&&(n=s.length),r=0;"0"===s.charAt(r);r++);if(r===(o=s.length))e=[0],n=1;else{for(o--;"0"===s.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(s.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);s&&(c=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(c));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){const t=o.match(fh);if(null===t)throw new Error(o+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(u=gh(e)),null!=n&&(h=gh(n)),null!=r?d=gh(r):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,i=r.length-t.integerLen;const o=Math.min(Math.max(e,i),n);let s=o+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let t=s;t=5)if(s-1<0){for(let e=0;e>s;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;i=c?r.pop():l=!1),e>=10?1:0}),0);u&&(r.unshift(u),t.integerLen++)}(c,h,d);let p=c.digits,f=c.integerLen;const g=c.exponent;let m=[];for(l=p.every(t=>!t);f0?m=p.splice(f,p.length):(m=p,p=[0]);const v=[];for(p.length>=e.lgSize&&v.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)v.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&v.unshift(p.join("")),a=v.join(Ku(n,r)),m.length&&(a+=Ku(n,i)+m.join("")),g&&(a+=Ku(n,qu.Exponential)+"+"+g)}else a=Ku(n,qu.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],s=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],a=s[0],l=s[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:mh,useClass:vh}]}),t})();function Bh(t){return"browser"===t}let Hh=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new zh(Qt(wu),window,Qt(fr))}),t})();class zh{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{const e=this.document.querySelector("#"+t);if(e)return void this.scrollToElement(e);const n=this.document.querySelector(`[name='${t}']`);if(n)return void this.scrollToElement(n)}catch(e){this.errorHandler.handleError(e)}}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}supportScrollRestoration(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}class qh extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new qh,yu||(yu=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Gh||(Gh=document.querySelector("base"),Gh)?Gh.getAttribute("href"):null;return null==e?null:(n=e,Wh||(Wh=document.createElement("a")),Wh.setAttribute("href",n),"/"===Wh.pathname.charAt(0)?Wh.pathname:"/"+Wh.pathname);var n}resetBaseElement(){Gh=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return bh(document.cookie,t)}}let Wh,Gh=null;const $h=new Ut("TRANSITION_ID"),Kh=[{provide:_c,useFactory:function(t,e,n){return()=>{n.get(wc).donePromise.then(()=>{const n=_u();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[$h,wu,hs],multi:!0}];class Qh{static init(){var t;t=new Qh,tu=t}addToWindow(t){Nt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Nt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Nt.getAllAngularRootElements=()=>t.getAllRootElements(),Nt.frameworkStabilizers||(Nt.frameworkStabilizers=[]),Nt.frameworkStabilizers.push(t=>{const e=Nt.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?_u().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Xh=new Ut("EventManagerPlugins");let Yh=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),td=(()=>{class t extends Zh{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>_u().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ed={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/"},nd=/%COMP%/g;function rd(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let od=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new sd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ue.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new ad(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ue.Native:case ue.ShadowDom:return new ld(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=rd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Qt(Yh),Qt(td),Qt(Cc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class sd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(ed[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const i=ed[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=ed[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&Za.DashCase?t.style.setProperty(e,n,r&Za.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&Za.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,id(n)):this.eventManager.addEventListener(t,e,id(n))}}class ad extends sd{constructor(t,e,n,r){super(t),this.component=n;const i=rd(r+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(nd,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(nd,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class ld extends sd{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===ue.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=rd(r.id,r.styles,[]);for(let o=0;o{class t extends Jh{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ud=["alt","control","meta","shift"],hd={"\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"},dd={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"},pd={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let fd=(()=>{class t extends Jh{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_u().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=t._normalizeKey(n.pop());let o="";if(ud.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;const s={};return s.domEventName=r,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&dd.hasOwnProperty(e)&&(e=dd[e]))}return hd[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ud.forEach(r=>{r!=n&&(0,pd[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return i=>{t.getEventFullKey(i)===e&&r.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),gd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Qt(md)},token:t,providedIn:"root"}),t})(),md=(()=>{class t extends gd{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Qr.NONE:return e;case Qr.HTML:return Cr(e,"HTML")?wr(e):$r(this._doc,String(e));case Qr.STYLE:return Cr(e,"Style")?wr(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(Yr);return e&&Ar(e[1])===e[1]||t.match(Xr)&&function(t){let e=!0,n=!0;for(let r=0;r{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:Cc,useValue:e.appId},{provide:$h,useExisting:Cc},Kh]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(t,12))},providers:bd,imports:[Vh,vu]}),t})();"undefined"!=typeof window&&window;class _d{}function wd(t,e){return{type:7,name:t,definitions:e,options:{}}}function Cd(t,e=null){return{type:4,styles:e,timings:t}}function Ed(t,e=null){return{type:2,steps:t,options:e}}function xd(t){return{type:6,styles:t,offset:null}}function Sd(t,e,n){return{type:0,name:t,styles:e,options:n}}function kd(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function Td(t){Promise.resolve(null).then(t)}class Id{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Td(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Od{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const i=this.players.length;0==i?Td(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Ad(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nd(t){switch(t.length){case 0:return new Id;case 1:return t[0];default:return new Od(t)}}function Pd(t,e,n,r,i={},o={}){const s=[],a=[];let l=-1,c=null;if(r.forEach(t=>{const n=t.offset,r=n==l,u=r&&c||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case"!":a=i[n];break;case"*":a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}u[r]=a}),r||a.push(u),c=u,l=n}),s.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${s.join(t)}`)}return a}function Dd(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Rd(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Rd(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Rd(n,"destroy",t)))}}function Rd(t,e,n){const r=n.totalTime,i=Md(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function Md(t,e,n,r,i="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!s}}function Ld(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function Fd(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let jd=(t,e)=>!1,Ud=(t,e)=>!1,Vd=(t,e,n)=>[];const Bd=Ad();(Bd||"undefined"!=typeof Element)&&(jd=(t,e)=>t.contains(e),Ud=(()=>{if(Bd||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Ud}})(),Vd=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let Hd=null,zd=!1;function qd(t){Hd||(Hd=("undefined"!=typeof document?document.body:null)||{},zd=!!Hd.style&&"WebkitAppearance"in Hd.style);let e=!0;return Hd.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Hd.style,!e&&zd)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Hd.style),e}const Wd=Ud,Gd=jd,$d=Vd;function Kd(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let Qd=(()=>{class t{validateStyleProperty(t){return qd(t)}matchesElement(t,e){return Wd(t,e)}containsElement(t,e){return Gd(t,e)}query(t,e,n){return $d(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,i,o=[],s){return new Id(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Xd=(()=>{class t{}return t.NOOP=new Qd,t})();function Yd(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Jd(parseFloat(e[1]),e[2])}function Jd(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Zd(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,i=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=Jd(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(i=Jd(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else r=t;if(!n){let n=!1,o=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:i,easing:o}}(t,e,n)}function tp(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function ep(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else tp(t,n);return n}function np(t,e,n){return n?e+":"+n+";":""}function rp(t){let e="";for(let n=0;n{const i=dp(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),Ad()&&rp(t))}function op(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=dp(e);t.style[n]=""}),Ad()&&rp(t))}function sp(t){return Array.isArray(t)?1==t.length?t[0]:Ed(t):t}const ap=new RegExp("{{\\s*(.+?)\\s*}}","g");function lp(t){let e=[];if("string"==typeof t){let n;for(;n=ap.exec(t);)e.push(n[1]);ap.lastIndex=0}return e}function cp(t,e,n){const r=t.toString(),i=r.replace(ap,(t,r)=>{let i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function up(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const hp=/-+([a-z0-9])/g;function dp(t){return t.replace(hp,(...t)=>t[1].toUpperCase())}function pp(t,e){return 0===t||0===e}function fp(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],s=[];if(r.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var i=1;ifunction(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],o=r[2],s=r[3];e.push(_p(i,s)),"<"!=o[0]||"*"==i&&"*"==s||e.push(_p(s,i))}(t,n,e)):n.push(t),n}const bp=new Set(["true","1"]),yp=new Set(["false","0"]);function _p(t,e){const n=bp.has(t)||yp.has(t),r=bp.has(e)||yp.has(e);return(i,o)=>{let s="*"==t||t==i,a="*"==e||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?bp.has(t):yp.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?bp.has(e):yp.has(e)),s&&a}}const wp=new RegExp("s*:selfs*,?","g");function Cp(t,e,n){return new Ep(t).build(e,n)}class Ep{constructor(t){this._driver=t}build(t,e){const n=new xp(e);return this._resetContextStyleTimingState(n),gp(this,sp(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const i=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,r+=i.depCount,o.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:o,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,o=r||{};if(n.styles.forEach(t=>{if(Sp(t)){const e=t;Object.keys(e).forEach(t=>{lp(e[t]).forEach(t=>{o.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=up(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=gp(this,sp(t.animation),e);return{type:1,matchers:vp(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:kp(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>gp(this,t,e)),options:kp(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const i=t.steps.map(t=>{e.currentTime=n;const i=gp(this,t,e);return r=Math.max(r,e.currentTime),i});return e.currentTime=r,{type:3,steps:i,options:kp(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Tp(Zd(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Tp(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||Zd(r,e),Tp(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let i=t.styles?t.styles:xd({});if(5==i.type)r=this.visitKeyframes(i,e);else{let i=t.styles,o=!1;if(!i){o=!0;const t={};n.easing&&(t.easing=n.easing),i=xd(t)}e.currentTime+=n.duration+n.delay;const s=this.visitStyle(i,e);s.isEmptyStep=o,r=s}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?"*"==t?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,i=null;return n.forEach(t=>{if(Sp(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},i=lp(t);i.length&&i.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let o=!1,s=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Sp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Sp(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(r++,c=n.offset=l),s=s||c<0||c>1,o=o||c0&&r{const o=u>0?r==h?1:u*r:i[r],s=o*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:gp(this,sp(t.animation),e),options:kp(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:kp(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:kp(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[i,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(wp,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,".ng-animating"),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Ld(e.collectedStyles,e.currentQuerySelector,{});const s=gp(this,sp(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:kp(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Zd(t.timings,e.errors,!0);return{type:12,animation:gp(this,sp(t.animation),e),timings:n,options:null}}}class xp{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Sp(t){return!Array.isArray(t)&&"object"==typeof t}function kp(t){var e;return t?(t=tp(t)).params&&(t.params=(e=t.params)?tp(e):null):t={},t}function Tp(t,e,n){return{duration:t,delay:e,easing:n}}function Ip(t,e,n,r,i,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}class Op{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ap=new RegExp(":enter","g"),Np=new RegExp(":leave","g");function Pp(t,e,n,r,i,o={},s={},a,l,c=[]){return(new Dp).buildKeyframes(t,e,n,r,i,o,s,a,l,c)}class Dp{buildKeyframes(t,e,n,r,i,o,s,a,l,c=[]){l=l||new Op;const u=new Mp(t,e,l,r,i,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),gp(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Ip(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const i=null!=n.duration?Yd(n.duration):null,o=null!=n.delay?Yd(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),gp(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const i=t.options;if(i&&(i.params||i.delay)&&(r=e.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Rp);const t=Yd(i.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>gp(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?Yd(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);i&&s.delayNextStep(i),gp(this,o,s),r=Math.max(r,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Zd(e.params?cp(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},i=r.delay?Yd(r.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Rp);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,r)=>{e.currentQueryIndex=r;const s=e.createSubContext(t.options,n);i&&s.delayNextStep(i),n===e.element&&(a=s.currentTimeline),gp(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;gp(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}const Rp={};class Mp{constructor(t,e,n,r,i,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Rp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Lp(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=Yd(n.duration)),null!=n.delay&&(r.delay=Yd(n.delay));const i=n.params;if(i){let t=r.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=cp(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,i=new Mp(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=Rp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Fp(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,i,o){let s=[];if(r&&s.push(this.element),t.length>0){t=(t=t.replace(Ap,"."+this._enterClassName)).replace(Np,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return i||0!=s.length||o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class Lp{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Lp(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||"*",this._currentKeyframe[t]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const i=r&&r.params||{},o=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]="*"})):ep(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=cp(o[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:"*"),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,o)=>{const s=ep(i,!0);Object.keys(s).forEach(n=>{const r=s[n];"!"==r?t.add(n):"*"==r&&e.add(n)}),n||(s.offset=o/this.duration),r.push(s)});const i=t.size?up(t.values()):[],o=e.size?up(e.values()):[];if(n){const t=r[0],e=tp(t);t.offset=0,e.offset=1,r=[t,e]}return Ip(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}}class Fp extends Lp{constructor(t,e,n,r,i,o,s=!1){super(t,e,o.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],o=n+e,s=e/o,a=ep(t[0],!1);a.offset=0,i.push(a);const l=ep(t[0],!1);l.offset=jp(s),i.push(l);const c=t.length-1;for(let r=1;r<=c;r++){let s=ep(t[r],!1);s.offset=jp((e+s.offset*n)/o),i.push(s)}n=o,e=0,r="",t=i}return Ip(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function jp(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Up{}class Vp extends Up{normalizePropertyName(t,e){return dp(t)}normalizeStyleValue(t,e,n,r){let i="";const o=n.toString().trim();if(Bp[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+i}}const Bp=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Hp(t,e,n,r,i,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const zp={};class qp{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,i){return t.some(t=>t(e,n,r,i))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}build(t,e,n,r,i,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||zp,d=this.buildStyles(n,s&&s.params||zp,u),p=a&&a.params||zp,f=this.buildStyles(r,p,u),g=new Set,m=new Map,v=new Map,b="void"===r,y={params:Object.assign(Object.assign({},h),p)},_=c?[]:Pp(t,e,this.ast.animation,i,o,d,f,y,l,u);let w=0;if(_.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return Hp(e,this._triggerName,n,r,b,d,f,[],[],m,v,w,u);_.forEach(t=>{const n=t.element,r=Ld(m,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const i=Ld(v,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&g.add(n)});const C=up(g.values());return Hp(e,this._triggerName,n,r,b,d,f,_,C,m,v,w)}}class Wp{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=tp(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let o=i[t];o.length>1&&(o=cp(o,r,e)),n[t]=o})}}),n}}class Gp{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Wp(t.style,t.options&&t.options.params||{})}),$p(this.states,"true","1"),$p(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new qp(t,e,this.states))}),this.fallbackTransition=new qp(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(i=>i.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function $p(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Kp=new Op;class Qp{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=Cp(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,i=Pd(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],i=this._animations[t];let o;const s=new Map;if(i?(o=Pp(this._driver,e,i,"ng-enter","ng-leave",{},{},n,Kp,r),o.forEach(t=>{const e=Ld(s,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),o=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,"*")})});const a=Nd(o.map(t=>{const e=s.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const i=Md(e,"","","");return Dd(this._getPlayer(t),n,i,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const Xp=[],Yp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Jp={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Zp{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=tp(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const tf=new Zp("void");class ef{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,cf(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const o=Ld(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);const a=Ld(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(cf(t,"ng-trigger"),cf(t,"ng-trigger-"+e),a[e]=tf),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const i=this._getTrigger(e),o=new rf(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(cf(t,"ng-trigger"),cf(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new Zp(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=tf),"void"!==l.value&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i{op(t,n),ip(t,r)})}return}const c=Ld(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=i.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!r)return;u=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(cf(t,"ng-animate-queued"),o.onStart(()=>{uf(t,"ng-animate-queued")})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,".ng-trigger",!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const i=this._engine.statesByElement.get(t);if(i){const o=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Nd(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,o=this._engine.statesByElement.get(t)[r]||tf,s=new Zp("void"),a=new rf(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:i,fromState:o,toState:s,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==Yp||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){cf(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,o=this._elementListeners.get(i);o&&o.forEach(e=>{if(e.name==n.triggerName){const r=Md(i,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Dd(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class nf{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new ef(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),cf(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),uf(t,"ng-animate-disabled"))}removeNode(t,e,n,r){if(of(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,i){return of(e)?this._fetchNamespace(t).listen(e,n,r,i):()=>{}}_buildInstruction(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,".ng-trigger",!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Nd(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Yp,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Nd(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new Op,r=[],i=new Map,o=[],s=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+f++;p.set(e,n),t.forEach(t=>cf(t,n))});const g=[],m=new Set,v=new Set;for(let A=0;Am.add(t)):v.add(t))}const b=new Map,y=lf(h,Array.from(m));y.forEach((t,e)=>{const n="ng-leave"+f++;b.set(e,n),t.forEach(t=>cf(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>uf(t,n))}),y.forEach((t,e)=>{const n=b.get(e);t.forEach(t=>uf(t,n))}),g.forEach(t=>{this.processLeaveNode(t)})});const _=[],w=[];for(let A=this._namespaceList.length-1;A>=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(_.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!u||!this.driver.containsElement(u,i),h=b.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,h,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>op(i,f.fromStyles)),e.onDestroy(()=>ip(i,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>op(i,f.fromStyles)),e.onDestroy(()=>ip(i,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),o.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Ld(s,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=l.get(e);r||l.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),_.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ld(C,e,[]).push(t),t.destroy()})});const x=g.filter(t=>df(t,a,l)),S=new Map;af(S,this.driver,v,l,"*").forEach(t=>{df(t,a,l)&&x.push(t)});const k=new Map;d.forEach((t,e)=>{af(k,this.driver,new Set(t),a,"!")}),x.forEach(t=>{const e=S.get(t),n=k.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const T=[],I=[],O={};o.forEach(t=>{const{element:e,player:o,instruction:s}=t;if(n.has(e)){if(c.has(e))return o.onDestroy(()=>ip(e,s.toStyles)),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);let t=O;if(E.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>E.set(e,t))}const n=this._buildAnimation(o.namespaceId,s,C,i,k,S);if(o.setRealPlayer(n),t===O)T.push(o);else{const e=this.playersByElement.get(t);e&&e.length&&(o.parentPlayer=Nd(e)),r.push(o)}}else op(e,s.fromStyles),o.onDestroy(()=>ip(e,s.toStyles)),I.push(o),c.has(e)&&r.push(o)}),I.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=Nd(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let A=0;A!t.destroyed);r.length?hf(this,t,r):this.processLeaveNode(t)}return g.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,i){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||"void"==i;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&o.push(e)})}}return(n||r)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const r=e.element,i=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==r,l=Ld(n,t,[]);this._getPreviousPlayers(t,a,i,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}op(r,e.fromStyles)}_buildAnimation(t,e,n,r,i,o){const s=e.triggerName,a=e.element,l=[],c=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;c.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Id(e.duration,e.delay);const p=h!==a,f=function(t){const e=[];return function t(e,n){for(let r=0;rt.getRealPlayer())).filter(t=>!!t.element&&t.element===h),g=i.get(h),m=o.get(h),v=Pd(0,this._normalizer,0,e.keyframes,g,m),b=this._buildPlayer(e,v,f);if(e.subTimeline&&r&&u.add(h),p){const e=new rf(t,s,h);e.setRealPlayer(b),l.push(e)}return b});l.forEach(t=>{Ld(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>cf(t,"ng-animating"));const d=Nd(h);return d.onDestroy(()=>{c.forEach(t=>uf(t,"ng-animating")),ip(a,e.toStyles)}),u.forEach(t=>{Ld(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Id(t.duration,t.delay)}}class rf{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Id,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Dd(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ld(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function of(t){return t&&1===t.nodeType}function sf(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function af(t,e,n,r,i){const o=[];n.forEach(t=>o.push(sf(t)));const s=[];r.forEach((n,r)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Jp,s.push(r))}),t.set(r,o)});let a=0;return n.forEach(t=>sf(t,o[a++])),s}function lf(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let o=i.get(e);if(o)return o;const s=e.parentNode;return o=n.has(s)?s:r.has(s)?1:t(s),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}function cf(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function uf(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function hf(t,e,n){Nd(n).onDone(()=>t.processLeaveNode(e))}function df(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(t=>i.add(t)):e.set(t,r),n.delete(t),!0}class pf{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new nf(t,e,n),this._timelineEngine=new Qp(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,i){const o=t+"-"+r;let s=this._triggerCache[o];if(!s){const t=[],e=Cp(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e){return new Gp(t,e)}(r,e),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,i]=Fd(n);this._timelineEngine.command(t,e,i,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,i){if("@"==n.charAt(0)){const[t,r]=Fd(n);return this._timelineEngine.listen(t,e,r,i)}return this._transitionEngine.listen(t,e,n,r,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ff(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=mf(e[0]),e.length>1&&(r=mf(e[e.length-1]))):e&&(n=mf(e)),n||r?new gf(t,n,r):null}let gf=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ip(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ip(this._element,this._initialStyles),this._endStyles&&(ip(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(op(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(op(this._element,this._endStyles),this._endStyles=null),ip(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function mf(t){let e=null;const n=Object.keys(t);for(let r=0;rthis._handleCallback(t)}apply(){!function(t,e){const n=xf(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Cf(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=xf(t,"").split(","),r=wf(n,e);r>=0&&(n.splice(r,1),Ef(t,"",n.join(",")))}(this._element,this._name))}}function yf(t,e,n){Ef(t,"PlayState",n,_f(t,e))}function _f(t,e){const n=xf(t,"");return n.indexOf(",")>0?wf(n.split(","),e):wf([n],e)}function wf(t,e){for(let n=0;n=0)return n;return-1}function Cf(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Ef(t,e,n,r){const i="animation"+e;if(null!=r){const e=t.style[i];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[i]=n}function xf(t,e){return t.style["animation"+e]}class Sf{constructor(t,e,n,r,i,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new bf(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:mp(this.element,n))})}this.currentSnapshot=t}}class kf extends Id{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Kd(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Tf{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return qd(t)}matchesElement(t,e){return Wd(t,e)}containsElement(t,e){return Gd(t,e)}query(t,e,n){return $d(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Kd(t));let r=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);r+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${e}: ${n};\n`)}}),r+=i+"}\n"}),r+="}\n";const o=document.createElement("style");return o.innerHTML=r,o}animate(t,e,n,r,i,o=[],s){s&&this._notifyFaultyScrubber();const a=o.filter(t=>t instanceof Sf),l={};pp(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=fp(t,e,l));if(0==n)return new kf(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=ff(t,e),p=new Sf(t,e,u,n,r,i,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class If{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:mp(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Of{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Af().toString()),this._cssKeyframesDriver=new Tf}validateStyleProperty(t){return qd(t)}matchesElement(t,e){return Wd(t,e)}containsElement(t,e){return Gd(t,e)}query(t,e,n){return $d(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,i,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},c=o.filter(t=>t instanceof If);pp(n,r)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=ff(t,e=fp(t,e=e.map(t=>ep(t,!1)),l));return new If(t,e,a,u)}}function Af(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Nf=(()=>{class t extends _d{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ue.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Ed(t):t;return Rf(this._renderer,null,e,"register",[n]),new Pf(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ja),Qt(wu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Pf extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Df(this._id,t,e||{},this._renderer)}}class Df{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Rf(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Rf(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}let Mf=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Lf("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const o=e=>{Array.isArray(e)?e.forEach(o):this.engine.registerTrigger(r,i,t,e.name,e)};return e.data.animation.forEach(o),new Ff(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ja),Qt(pf),Qt(Hc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Lf{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class Ff extends Lf{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if("@"==e.charAt(0)){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,r,i,o,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let jf=(()=>{class t extends pf{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu),Qt(Xd),Qt(Up))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Uf=[{provide:Xd,useFactory:function(){return"function"==typeof Af()?new Of:new Tf}},{provide:new Ut("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:_d,useClass:Nf},{provide:Up,useFactory:function(){return new Vp}},{provide:pf,useClass:jf},{provide:Ja,useFactory:function(t,e,n){return new Mf(t,e,n)},deps:[od,pf,Hc]}];let Vf=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:Uf,imports:[yd]}),t})();function Bf(t,e){return new _(n=>{const r=t.length;if(0===r)return void n.complete();const i=new Array(r);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),i[a]=t},error:t=>n.error(t),complete:()=>{o++,o!==r&&c||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}const Hf=new Ut("NgValueAccessor"),zf={provide:Hf,useExisting:xt(()=>qf),multi:!0};let qf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&qs("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[Ga([zf])]}),t})();const Wf={provide:Hf,useExisting:xt(()=>$f),multi:!0},Gf=new Ut("CompositionEventMode");let $f=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=_u()?_u().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa),Ns(Gf,8))},t.\u0275dir=_e({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&qs("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[Ga([Wf])]}),t})(),Kf=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t}),t})(),Qf=(()=>{class t extends Kf{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Xf(e||t)},t.\u0275dir=_e({type:t,features:[Aa]}),t})();const Xf=ur(Qf);function Yf(){throw new Error("unimplemented")}class Jf extends Kf{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return Yf()}get asyncValidator(){return Yf()}}class Zf{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let tg=(()=>{class t extends Zf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(Jf,2))},t.\u0275dir=_e({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&ca("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Aa]}),t})(),eg=(()=>{class t extends Zf{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,2))},t.\u0275dir=_e({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&ca("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Aa]}),t})();function ng(t){return null==t||0===t.length}const rg=new Ut("NgValidators"),ig=new Ut("NgAsyncValidators"),og=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class sg{static min(t){return e=>{if(ng(e.value)||ng(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(ng(e.value)||ng(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return ng(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return ng(t.value)||og.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(ng(e.value))return null;const n=e.value?e.value.length:0;return n{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return sg.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(ng(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(ag);return 0==e.length?null:function(t){return cg(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(ag);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return Bf(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Bf(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Bf(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(F(t=>e(...t)))}return Bf(t,null)}(function(t,e){return e.map(e=>e(t))}(t,e).map(lg)).pipe(F(cg))}}}function ag(t){return null!=t}function lg(t){const e=Hs(t)?B(t):t;if(!zs(e))throw new Error("Expected validator to return Promise or Observable.");return e}function cg(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function ug(t){return t.validate?e=>t.validate(e):t}function hg(t){return t.validate?e=>t.validate(e):t}const dg={provide:Hf,useExisting:xt(()=>pg),multi:!0};let pg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&qs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ga([dg])]}),t})();const fg={provide:Hf,useExisting:xt(()=>mg),multi:!0};let gg=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),mg=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Jf),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa),Ns(gg),Ns(hs))},t.\u0275dir=_e({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&qs("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ga([fg])]}),t})();const vg={provide:Hf,useExisting:xt(()=>bg),multi:!0};let bg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&qs("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Ga([vg])]}),t})();const yg='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',_g='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',wg='\n
\n
\n \n
\n
';class Cg{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+yg)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${_g}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${wg}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+yg)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+_g)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}. \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}const Eg={provide:Hf,useExisting:xt(()=>xg),multi:!0};let xg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=ys}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&qs("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Ga([Eg])]}),t})();const Sg={provide:Hf,useExisting:xt(()=>kg),multi:!0};let kg=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=ys}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Og(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Og(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Og(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Ag(t,e){null==t&&Pg(e,"Cannot find control with"),t.validator=sg.compose([t.validator,e.validator]),t.asyncValidator=sg.composeAsync([t.asyncValidator,e.asyncValidator])}function Ng(t){return Pg(t,"There is no FormControl instance attached to form control element with")}function Pg(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Dg(t){return null!=t?sg.compose(t.map(ug)):null}function Rg(t){return null!=t?sg.composeAsync(t.map(hg)):null}function Mg(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!ys(e,n.currentValue)}const Lg=[qf,bg,pg,xg,kg,mg];function Fg(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function jg(t,e){if(!e)return null;Array.isArray(e)||Pg(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,i=void 0;return e.forEach(e=>{var o;e.constructor===$f?n=e:(o=e,Lg.some(t=>o.constructor===t)?(r&&Pg(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Pg(t,"More than one custom value accessor matches form control with"),i=e))}),i||r||n||(Pg(t,"No valid value accessor for form control with"),null)}function Ug(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Vg(t,e,n,r){kr()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(Cg.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function Bg(t){const e=zg(t)?t.validators:t;return Array.isArray(e)?Dg(e):e||null}function Hg(t,e){const n=zg(e)?e.asyncValidators:t;return Array.isArray(n)?Rg(n):n||null}function zg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class qg{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Bg(t)}setAsyncValidators(t){this.asyncValidator=Hg(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=lg(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Gg?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof $g&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Zl,this.statusChanges=new Zl}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){zg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Wg extends qg{constructor(t=null,e,n){super(Bg(e),Hg(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Gg extends qg{constructor(t,e,n){super(Bg(e),Hg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Wg?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class $g extends qg{constructor(t,e,n){super(Bg(e),Hg(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Wg?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Kg={provide:Qf,useExisting:xt(()=>Xg)},Qg=(()=>Promise.resolve(null))();let Xg=(()=>{class t extends Qf{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Zl,this.form=new Gg({},Dg(t),Rg(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Qg.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Ig(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Qg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Ug(this._directives,t)})}addFormGroup(t){Qg.then(()=>{const e=this._findContainer(t.path),n=new Gg({});Ag(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Qg.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Qg.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Fg(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Ns(rg,10),Ns(ig,10))},t.\u0275dir=_e({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&qs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ga([Kg]),Aa]}),t})(),Yg=(()=>{class t extends Qf{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Tg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Dg(this._validators)}get asyncValidator(){return Rg(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return Jg(e||t)},t.\u0275dir=_e({type:t,features:[Aa]}),t})();const Jg=ur(Yg);class Zg{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 ${yg}\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
\n \n \n
\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 ${_g}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${wg}`)}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: \n Example 2: ')}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 ${_g}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${wg}`)}}const tm={provide:Qf,useExisting:xt(()=>em)};let em=(()=>{class t extends Yg{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof Xg||Zg.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,5),Ns(rg,10),Ns(ig,10))},t.\u0275dir=_e({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Ga([tm]),Aa]}),t})();const nm={provide:Jf,useExisting:xt(()=>im)},rm=(()=>Promise.resolve(null))();let im=(()=>{class t extends Jf{constructor(t,e,n,r){super(),this.control=new Wg,this._registered=!1,this.update=new Zl,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=jg(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Mg(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Tg(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Dg(this._rawValidators)}get asyncValidator(){return Rg(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ig(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof em)&&this._parent instanceof Yg?Zg.formGroupNameException():this._parent instanceof em||this._parent instanceof Xg||Zg.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Zg.missingNameException()}_updateValue(t){rm.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;rm.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,9),Ns(rg,10),Ns(ig,10),Ns(Hf,10))},t.\u0275dir=_e({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Ga([nm]),Aa,La]}),t})(),om=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=_e({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const sm=new Ut("NgModelWithFormControlWarning"),am={provide:Jf,useExisting:xt(()=>lm)};let lm=(()=>{class t extends Jf{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new Zl,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=jg(this,n)}set isDisabled(t){Cg.disabledAttrWarning()}ngOnChanges(e){this._isControlChanged(e)&&(Ig(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Mg(e,this.viewModel)&&(Vg("formControl",t,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return Dg(this._rawValidators)}get asyncValidator(){return Rg(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Ns(rg,10),Ns(ig,10),Ns(Hf,10),Ns(sm,8))},t.\u0275dir=_e({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ga([am]),Aa,La]}),t._ngModelWarningSentOnce=!1,t})();const cm={provide:Qf,useExisting:xt(()=>um)};let um=(()=>{class t extends Qf{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Zl}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Ig(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Ug(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Ag(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Ag(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Fg(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){e.valueAccessor.registerOnChange(()=>Ng(e)),e.valueAccessor.registerOnTouched(()=>Ng(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Ig(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Dg(this._validators);this.form.validator=sg.compose([this.form.validator,t]);const e=Rg(this._asyncValidators);this.form.asyncValidator=sg.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||Cg.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(Ns(rg,10),Ns(ig,10))},t.\u0275dir=_e({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&qs("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ga([cm]),Aa,La]}),t})();const hm={provide:Qf,useExisting:xt(()=>dm)};let dm=(()=>{class t extends Yg{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){gm(this._parent)&&Cg.groupParentException()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,13),Ns(rg,10),Ns(ig,10))},t.\u0275dir=_e({type:t,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Ga([hm]),Aa]}),t})();const pm={provide:Qf,useExisting:xt(()=>fm)};let fm=(()=>{class t extends Qf{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Tg(null==this.name?this.name:this.name.toString(),this._parent)}get validator(){return Dg(this._validators)}get asyncValidator(){return Rg(this._asyncValidators)}_checkParentType(){gm(this._parent)&&Cg.arrayParentException()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,13),Ns(rg,10),Ns(ig,10))},t.\u0275dir=_e({type:t,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Ga([pm]),Aa]}),t})();function gm(t){return!(t instanceof dm||t instanceof um||t instanceof fm)}const mm={provide:Jf,useExisting:xt(()=>vm)};let vm=(()=>{class t extends Jf{constructor(t,e,n,r,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new Zl,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=jg(this,r)}set isDisabled(t){Cg.disabledAttrWarning()}ngOnChanges(e){this._added||this._setUpControl(),Mg(e,this.viewModel)&&(Vg("formControlName",t,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Tg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Dg(this._rawValidators)}get asyncValidator(){return Rg(this._rawAsyncValidators)}_checkParentType(){!(this._parent instanceof dm)&&this._parent instanceof Yg?Cg.ngModelGroupException():this._parent instanceof dm||this._parent instanceof um||this._parent instanceof fm||Cg.controlParentException()}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qf,13),Ns(rg,10),Ns(ig,10),Ns(Hf,10),Ns(sm,8))},t.\u0275dir=_e({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ga([mm]),Aa,La]}),t._ngModelWarningSentOnce=!1,t})(),bm=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),ym=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Gg(n,{asyncValidators:i,updateOn:o,validators:r})}control(t,e,n){return new Wg(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new $g(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Wg||t instanceof Gg||t instanceof $g?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),_m=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[gg],imports:[bm]}),t})(),wm=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:sm,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[ym,gg],imports:[bm]}),t})();function Cm(...t){let e=t[t.length-1];return T(e)?(t.pop(),V(t,e)):G(t)}function Em(t,e,n,i){return r(n)&&(i=n,n=void 0),i?Em(t,e,n).pipe(F(t=>l(t)?i(...t):i(t))):new _(r=>{!function t(e,n,r,i,o){let s;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,r,o),s=()=>t.removeEventListener(n,r,o)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,r),s=()=>t.off(n,r)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,r),s=()=>t.removeListener(n,r)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let s=0,a=e.length;s1?Array.prototype.slice.call(arguments):t)}),r,n)})}function xm(){}function Sm(t,e,n){return function(r){return r.lift(new km(t,e,n))}}class km{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Tm(t,this.nextOrObserver,this.error,this.complete))}}class Tm extends f{constructor(t,e,n,i){super(t),this._tapNext=xm,this._tapError=xm,this._tapComplete=xm,this._tapError=n||xm,this._tapComplete=i||xm,r(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||xm,this._tapError=e.error||xm,this._tapComplete=e.complete||xm)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function Im(t,e){return function(n){return n.lift(new Om(t,e))}}class Om{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Am(t,this.predicate,this.thisArg))}}class Am extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}class Nm extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class Pm extends Nm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Dm=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Rm extends Dm{constructor(t,e=Dm.now){super(t,()=>Rm.delegate&&Rm.delegate!==this?Rm.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Rm.delegate&&Rm.delegate!==this?Rm.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Mm=new Rm(Pm);class Lm{constructor(t,e){this.period=t,this.scheduler=e}call(t,e){return e.subscribe(new Fm(t,this.period,this.scheduler))}}class Fm extends f{constructor(t,e,n){super(t),this.period=e,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(jm,e,{subscriber:this,period:e}))}_next(t){this.lastValue=t,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function jm(t){let{subscriber:e,period:n}=t;e.notifyNext(),this.schedule(t,n)}function Um(t,e,n,r){const i=window&&!!window.document&&window.document.documentElement;let o=i&&e?window:n;if(t&&(o=t&&i&&"string"==typeof t?function(t,e,n){return(n?window.document:e).querySelector(t)}(t,n.nativeElement,r):t,!o))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return o}function Vm(t){return t&&!t.firstChange}const Bm={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},Hm={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class zm{constructor(t=!0){this.vertical=t,this.propsMap=t?Bm:Hm}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function qm(t){return["Window","global"].some(e=>Object.prototype.toString.call(t).includes(e))}function Wm(t,e){return t?e.document.documentElement:null}function Gm(t,e){const n=function({container:t,isWindow:e,axis:n}){const{offsetHeightKey:r,clientHeightKey:i}=$m(n);return Km(t,e,r,i)}(e);return e.isWindow?function(t,e,n){const{axis:r,container:i,isWindow:o}=n,{offsetHeightKey:s,clientHeightKey:a}=$m(r),l=t+Qm(Wm(o,i),r,o),c=Km(e.nativeElement,o,s,a);return{height:t,scrolled:l,totalToScroll:function(t,e,n){const r=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[r]+Qm(t,e,n)}(e.nativeElement,r,o)+c,isWindow:o}}(n,t,e):function(t,e,n){const{axis:r,container:i}=n;return{height:t,scrolled:i[r.scrollTopKey()],totalToScroll:i[r.scrollHeightKey()],isWindow:!1}}(n,0,e)}function $m(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function Km(t,e,n,r){if(isNaN(t[n])){const n=Wm(e,t);return n?n[r]:0}return t[n]}function Qm(t,e,n){const r=e.pageYOffsetKey(),i=e.scrollTopKey(),o=e.offsetTopKey();return isNaN(window.pageYOffset)?Wm(n,t)[i]:t.ownerDocument?t.ownerDocument.defaultView[r]:t[o]}function Xm(t,e,n){let r,i;if(t.totalToScroll<=0)return!1;const o=t.isWindow?t.scrolled:t.height+t.scrolled;return n?(r=(t.totalToScroll-o)/t.totalToScroll,i=e.down/10):(r=t.scrolled/(t.scrolled+(t.totalToScroll-o)),i=e.up/10),r<=i}class Ym{constructor({totalToScroll:t}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=t}updateScrollPosition(t){return this.lastScrollPosition=t}updateTotalToScroll(t){this.lastTotalToScroll!==t&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=t)}updateScroll(t,e){this.updateScrollPosition(t),this.updateTotalToScroll(e)}updateTriggeredFlag(t,e){e?this.triggered.down=t:this.triggered.up=t}isTriggeredScroll(t,e){return e?this.triggered.down===t:this.triggered.up===t}}function Jm(t){const{scrollDown:e,stats:{scrolled:n}}=t;return{type:e?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:n}}}let Zm=(()=>{class t{constructor(t,e){this.element=t,this.zone=e,this.scrolled=new Zl,this.scrolledUp=new Zl,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:t,infiniteScrollDisabled:e,infiniteScrollDistance:n}){const r=Vm(t),i=Vm(e),o=Vm(n),s=!i&&!this.infiniteScrollDisabled||i&&!e.currentValue||o;(r||i||o)&&(this.destroyScroller(),s&&this.setup())}setup(){"undefined"!=typeof window&&this.zone.runOutsideAngular(()=>{this.disposeScroller=function(t){const{scrollContainer:e,scrollWindow:n,element:r,fromRoot:i}=t,o=function({windowElement:t,axis:e}){return function(t,e){const n=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return Object.assign(Object.assign({},t),{container:n})}({axis:e,isWindow:qm(t)},t)}({axis:new zm(!t.horizontal),windowElement:Um(e,n,r,i)}),s=new Ym({totalToScroll:Gm(r,o)}),a={up:t.upDistance,down:t.downDistance};return function(t){let e=Em(t.container,"scroll");return t.throttle&&(e=e.pipe(function(t,e=Mm){return n=>n.lift(new Lm(t,e))}(t.throttle))),e}({container:o.container,throttle:t.throttle}).pipe(H(()=>Cm(Gm(r,o))),F(t=>function(t,e,n){const{scrollDown:r,fire:i}=function(t,e,n){const r=function(t,e){return ts.updateScroll(t.scrolled,t.totalToScroll)),Im(({fire:e,scrollDown:n,stats:{totalToScroll:r}})=>function(t,e,n){return!(!t||!e)||!(n||!e)}(t.alwaysCallback,e,s.isTriggeredScroll(r,n))),Sm(({scrollDown:t,stats:{totalToScroll:e}})=>{s.updateTriggeredFlag(e,t)}),F(Jm))}({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(t=>this.zone.run(()=>this.handleOnScroll(t)))})}handleOnScroll({type:t,payload:e}){switch(t){case"[NGX_ISE] DOWN":return this.scrolled.emit(e);case"[NGX_ISE] UP":return this.scrolledUp.emit(e);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(Hc))},t.\u0275dir=_e({type:t,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[La]}),t})(),tv=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[],imports:[[]]}),t})();var ev=n("mrSG");class nv{constructor(t,e,n,r,i,o,s,a,l,c,u,h,d,p){this.uid=t,this.accountCreated=e,this.email=n,this.displayName=r,this.photoURL=i,this.emailVerified=o,this.firstName=s,this.lastName=a,this.department=l,this.organization=c,this.jobTitle=u,this.conversations=h,this.roleToken=d,this.meetingPulseKey=p}}class rv extends S{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new C;return this._value}next(t){super.next(this._value=t)}}var iv=n("iqUP"),ov=n("bCcq");function sv(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new av(t,e,n))}}class av{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new lv(t,this.accumulator,this.seed,this.hasSeed))}}class lv extends f{constructor(t,e,n,r){super(t),this.accumulator=e,this._seed=n,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=n,this.destination.next(n)}}const cv=new _(t=>t.complete());function uv(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):cv}function hv(t,e){return new _(e?n=>e.schedule(dv,0,{error:t,subscriber:n}):e=>e.error(t))}function dv({error:t,subscriber:e}){e.error(t)}let pv=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Cm(this.value);case"E":return hv(this.error);case"C":return uv()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();function fv(t,e=0){return function(n){return n.lift(new gv(t,e))}}class gv{constructor(t,e=0){this.scheduler=t,this.delay=e}call(t,e){return e.subscribe(new mv(t,this.scheduler,this.delay))}}class mv extends f{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(mv.dispatch,this.delay,new vv(t,this.destination)))}_next(t){this.scheduleMessage(pv.createNext(t))}_error(t){this.scheduleMessage(pv.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(pv.createComplete()),this.unsubscribe()}}class vv{constructor(t,e){this.notification=t,this.destination=e}}class bv extends Pm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class yv extends Rm{}const _v=new yv(bv);let wv=1;const Cv=(()=>Promise.resolve())(),Ev={};function xv(t){return t in Ev&&(delete Ev[t],!0)}const Sv={setImmediate(t){const e=wv++;return Ev[e]=!0,Cv.then(()=>xv(e)&&t()),e},clearImmediate(t){xv(t)}};class kv extends Pm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=Sv.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(Sv.clearImmediate(e),t.scheduled=void 0)}}class Tv extends Rm{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r=0}class Av extends _{constructor(t,e=0,n=Iv){super(),this.source=t,this.delayTime=e,this.scheduler=n,(!Ov(e)||e<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=Iv)}static create(t,e=0,n=Iv){return new Av(t,e,n)}static dispatch(t){const{source:e,subscriber:n}=t;return this.add(e.subscribe(n))}_subscribe(t){return this.scheduler.schedule(Av.dispatch,this.delayTime,{source:this.source,subscriber:t})}}class Nv{constructor(t,e){this.scheduler=t,this.delay=e}call(t,e){return new Av(e,this.delay,this.scheduler).subscribe(t)}}var Pv=n("Wcq6");function Dv(){}class Rv{constructor(t,e=_v){this.zone=t,this.delegate=e}now(){return this.delegate.now()}schedule(t,e,n){const r=this.zone;return this.delegate.schedule((function(e){r.runGuarded(()=>{t.apply(this,[e])})}),e,n)}}class Mv{constructor(t){this.zone=t,this.task=null}call(t,e){const n=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Dv,{},Dv,Dv)),e.pipe(Sm({next:n,complete:n,error:n})).subscribe(t).add(n)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}class Lv{constructor(t){this.ngZone=t,this.outsideAngular=t.runOutsideAngular(()=>new Rv(Zone.current)),this.insideAngular=t.run(()=>new Rv(Zone.current,Mm))}}function Fv(t){return function(e){return(e=e.lift(new Mv(t.ngZone))).pipe(function(t,e=0){return function(n){return n.lift(new Nv(t,e))}}(t.outsideAngular),fv(t.insideAngular))}}const jv=["ngOnDestroy"],Uv=new Ut("angularfire2.app.options"),Vv=new Ut("angularfire2.app.nameOrConfig"),Bv=new rl("6.0.2");function Hv(t,e,n){const r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",Pv.apps.filter(t=>t&&t.name===r.name)[0]||e.runOutsideAngular(()=>Object(Pv.initializeApp)(t,r))}const zv={provide:class{},useFactory:Hv,deps:[Uv,Hc,[new ot,Vv]]};let qv=(()=>{class t{constructor(t){Object(Pv.registerVersion)("angularfire",Bv.full,t.toString()),Object(Pv.registerVersion)("angular",il.full)}static initializeApp(e,n){return{ngModule:t,providers:[{provide:Uv,useValue:e},{provide:Vv,useValue:n}]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(kc))},providers:[zv]}),t})();var Wv=n("wj3C"),Gv=n.n(Wv),$v=n("6Joi");function Kv(t,e){return function(t,e=Mm){return new _(n=>{let r;return null!=e?e.schedule(()=>{r=t.onSnapshot(n)}):r=t.onSnapshot(n),()=>{null!=r&&r()}})}(t,e)}function Qv(t,e){return Kv(t,e).pipe(F(t=>({payload:t,type:"query"})))}function Xv(t,e){return Qv(t,e).pipe(F(t=>t.payload.docChanges().map(t=>({type:t.type,payload:t}))))}function Yv(t,e,n){return Qv(t,n).pipe(F(t=>t.payload.docChanges()),sv((t,n)=>function(t,e,n){return e.forEach(e=>{n.indexOf(e.type)>-1&&(t=function(t,e){switch(e.type){case"added":t[e.newIndex]&&t[e.newIndex].doc.ref.isEqual(e.doc.ref)||t.splice(e.newIndex,0,e);break;case"modified":(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref))&&(e.oldIndex!==e.newIndex?(t.splice(e.oldIndex,1),t.splice(e.newIndex,0,e)):t.splice(e.newIndex,1,e));break;case"removed":t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref)&&t.splice(e.oldIndex,1)}return t}(t,e))}),t}(t,n,e),[]),F(t=>t.map(t=>({type:t.type,payload:t}))))}function Jv(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}class Zv{constructor(t,e,n){this.ref=t,this.query=e,this.afs=n}stateChanges(t){return t&&0!==t.length?Xv(this.query,this.afs.schedulers.outsideAngular).pipe(F(e=>e.filter(e=>t.indexOf(e.type)>-1)),Im(t=>t.length>0),this.afs.keepUnstableUntilFirst):Xv(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(sv((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=Jv(t);return Yv(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(t={}){return Qv(this.query,this.afs.schedulers.outsideAngular).pipe(F(e=>e.payload.docs.map(e=>t.idField?Object.assign(Object.assign({},e.data()),{[t.idField]:e.id}):e.data())),this.afs.keepUnstableUntilFirst)}get(t){return B(this.query.get(t)).pipe(fv(this.afs.schedulers.insideAngular))}add(t){return this.ref.add(t)}doc(t){return new tb(this.ref.doc(t),this.afs)}}class tb{constructor(t,e){this.ref=t,this.afs=e}set(t,e){return this.ref.set(t,e)}update(t){return this.ref.update(t)}delete(){return this.ref.delete()}collection(t,e){const n=this.ref.collection(t),{ref:r,query:i}=ob(n,e);return new Zv(r,i,this.afs)}snapshotChanges(){return Kv(this.ref,this.afs.schedulers.outsideAngular).pipe(F(t=>({payload:t,type:"value"}))).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return this.snapshotChanges().pipe(F(t=>t.payload.data()))}get(t){return B(this.ref.get(t)).pipe(fv(this.afs.schedulers.insideAngular))}}class eb{constructor(t,e){this.query=t,this.afs=e}stateChanges(t){return t&&0!==t.length?Xv(this.query,this.afs.schedulers.outsideAngular).pipe(F(e=>e.filter(e=>t.indexOf(e.type)>-1)),Im(t=>t.length>0),this.afs.keepUnstableUntilFirst):Xv(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}auditTrail(t){return this.stateChanges(t).pipe(sv((t,e)=>[...t,...e],[]))}snapshotChanges(t){const e=Jv(t);return Yv(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}valueChanges(){return Qv(this.query,this.afs.schedulers.outsideAngular).pipe(F(t=>t.payload.docs.map(t=>t.data())),this.afs.keepUnstableUntilFirst)}get(t){return B(this.query.get(t)).pipe(fv(this.afs.schedulers.insideAngular))}}const nb=new Ut("angularfire2.enableFirestorePersistence"),rb=new Ut("angularfire2.firestore.persistenceSettings"),ib=new Ut("angularfire2.firestore.settings");function ob(t,e=(t=>t)){return{query:e(t),ref:t}}let sb=(()=>{class t{constructor(t,e,n,r,i,o,s){this.schedulers=new Lv(o),this.keepUnstableUntilFirst=Fv(this.schedulers),this.firestore=o.runOutsideAngular(()=>{const n=Hv(t,o,e);$v.registerFirestore&&Object($v.registerFirestore)(Gv.a);const i=n.firestore();return r&&i.settings(r),i}),this.persistenceEnabled$=n&&!function(t){return"server"===t}(i)?o.runOutsideAngular(()=>{try{return B(this.firestore.enablePersistence(s||void 0).then(()=>!0,()=>!1))}catch(t){return Cm(!1)}}):Cm(!1)}collection(t,e){let n;n="string"==typeof t?this.firestore.collection(t):t;const{ref:r,query:i}=ob(n,e),o=this.schedulers.ngZone.run(()=>r);return new Zv(o,i,this)}collectionGroup(t,e){const n=e||(t=>t),r=this.firestore.collectionGroup(t);return new eb(n(r),this)}doc(t){let e;e="string"==typeof t?this.firestore.doc(t):t;const n=this.schedulers.ngZone.run(()=>e);return new tb(n,this)}createId(){return this.firestore.collection("_").doc().id}}return t.\u0275fac=function(e){return new(e||t)(Qt(Uv),Qt(Vv,8),Qt(nb,8),Qt(ib,8),Qt(kc),Qt(Hc),Qt(rb,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(Uv),Qt(Vv,8),Qt(nb,8),Qt(ib,8),Qt(kc),Qt(Hc),Qt(rb,8))},token:t,providedIn:"any"}),t})(),ab=(()=>{class t{static enablePersistence(e){return{ngModule:t,providers:[{provide:nb,useValue:!0},{provide:rb,useValue:e}]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[sb]}),t})();function lb(t,e){return"function"==typeof e?n=>n.pipe(lb((n,r)=>B(t(n,r)).pipe(F((t,i)=>e(n,t,r,i))))):e=>e.lift(new cb(t))}class cb{constructor(t){this.project=t}call(t,e){return e.subscribe(new ub(t,this.project))}}class ub extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const i=new I(this,e,n),o=this.destination;o.add(i),this.innerSubscription=M(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,i){this.destination.next(e)}}class hb extends S{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new db(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let o;if(this.closed)throw new C;if(this.isStopped||this.hasError?o=h.EMPTY:(this.observers.push(t),o=new E(this,t)),r&&t.add(t=new mv(t,r)),e)for(let s=0;se&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}class db{constructor(t,e){this.time=t,this.value=e}}const pb=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),fb=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function gb(t){return e=>0===t?uv():e.lift(new mb(t))}class mb{constructor(t){if(this.total=t,this.total<0)throw new fb}call(t,e){return e.subscribe(new vb(t,this.total))}}class vb extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}function bb(t=null){return e=>e.lift(new yb(t))}class yb{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new _b(t,this.defaultValue))}}class _b extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function wb(t=xb){return e=>e.lift(new Cb(t))}class Cb{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new Eb(t,this.errorFactory))}}class Eb extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function xb(){return new pb}function Sb(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Im((e,n)=>t(e,n,r)):v,gb(1),n?bb(e):wb(()=>new pb))}let kb=(()=>{class t{constructor(t,e,r,i){const o=new Lv(i),s=Fv(o),a=Cm(void 0).pipe(fv(o.outsideAngular),lb(()=>i.runOutsideAngular(()=>n.e(5).then(n.bind(null,"6nsN")))),F(()=>Hv(t,i,e)),F(t=>i.runOutsideAngular(()=>t.auth())),function(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:void 0,refCount:!1,scheduler:void 0},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let i,o,s=0,a=!1,l=!1;return function(c){s++,i&&!a||(a=!1,i=new hb(t,e,r),o=c.subscribe({next(t){i.next(t)},error(t){a=!0,i.error(t)},complete(){l=!0,o=void 0,i.complete()}}));const u=i.subscribe(this);this.add(()=>{s--,u.unsubscribe(),o&&!l&&n&&0===s&&(o.unsubscribe(),o=void 0,i=void 0)})}}(r))}({bufferSize:1,refCount:!1}));return a.pipe(Sb()).subscribe(),this.authState=a.pipe(lb(t=>i.runOutsideAngular(()=>new _(t.onAuthStateChanged.bind(t)))),s),this.user=a.pipe(lb(t=>i.runOutsideAngular(()=>new _(t.onIdTokenChanged.bind(t)))),s),this.idToken=this.user.pipe(lb(t=>t?B(t.getIdToken()):Cm(null))),this.idTokenResult=this.user.pipe(lb(t=>t?B(t.getIdTokenResult()):Cm(null))),((t,e,n)=>new Proxy(t,{get:(r,i)=>n.runOutsideAngular(()=>{if(t[i])return t[i];if(jv.includes(i))return()=>{};const r=e.toPromise().then(t=>{const e=t&&t[i];return"function"==typeof e?e.bind(t):e&&e.then?e.then(t=>n.run(()=>t)):n.run(()=>e)});return new Proxy(()=>{},{get:(t,e)=>r[e],apply:(t,e,n)=>r.then(t=>t&&t(...n))})})}))(this,a,i)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Uv),Qt(Vv,8),Qt(kc),Qt(Hc))},t.\u0275prov=ht({factory:function(){return new t(Qt(Uv),Qt(Vv,8),Qt(kc),Qt(Hc))},token:t,providedIn:"any"}),t})(),Tb=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[kb]}),t})();const Ib={};class Ob{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ab(t,this.resultSelector))}}class Ab extends L{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Ib),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{let n;try{n=t()}catch(r){return void e.error(r)}return(n?B(n):uv()).subscribe(e)})}function Pb(){return W(1)}function Db(t){return function(e){return 0===t?uv():e.lift(new Rb(t))}}class Rb{constructor(t){if(this.total=t,this.total<0)throw new fb}call(t,e){return e.subscribe(new Mb(t,this.total))}}class Mb extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let i=0;i=2;return r=>r.pipe(t?Im((e,n)=>t(e,n,r)):v,Db(1),n?bb(e):wb(()=>new pb))}function Fb(t){return function(e){const n=new jb(t),r=e.lift(n);return n.caught=r}}class jb{constructor(t){this.selector=t}call(t,e){return e.subscribe(new Ub(t,this.selector,this.caught))}}class Ub extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const r=new I(this,void 0,void 0);this.add(r);const i=M(this,n,void 0,void 0,r);i!==r&&this.add(i)}}}class Vb{constructor(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}call(t,e){return e.subscribe(new Bb(t,this.predicate,this.thisArg,this.source))}}class Bb extends f{constructor(t,e,n,r){super(t),this.predicate=e,this.thisArg=n,this.source=r,this.index=0,this.thisArg=n||this}notifyComplete(t){this.destination.next(t),this.destination.complete()}_next(t){let e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)}_complete(){this.notifyComplete(!0)}}function Hb(...t){return Pb()(Cm(...t))}function zb(t,e){return H(t,e,1)}function qb(t,e){return arguments.length>=2?function(n){return b(sv(t,e),Db(1),bb(e))(n)}:function(e){return b(sv((e,n,r)=>t(e,n,r+1)),Db(1))(e)}}function Wb(t){return e=>e.lift(new Gb(t))}class Gb{constructor(t){this.callback=t}call(t,e){return e.subscribe(new $b(t,this.callback))}}class $b extends f{constructor(t,e){super(t),this.add(new h(e))}}class Kb{constructor(t,e){this.id=t,this.url=e}}class Qb extends Kb{constructor(t,e,n="imperative",r=null){super(t,e),this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Xb extends Kb{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Yb extends Kb{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jb extends Kb{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Zb extends Kb{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ty extends Kb{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ey extends Kb{constructor(t,e,n,r,i){super(t,e),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 ny extends Kb{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ry extends Kb{constructor(t,e,n,r){super(t,e),this.urlAfterRedirects=n,this.state=r}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class iy{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class oy{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class sy{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ay{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ly{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class cy{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class uy{constructor(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&js(0,"router-outlet")},directives:function(){return[mw]},encapsulation:2}),t})();class dy{constructor(t){this.params=t||{}}has(t){return this.params.hasOwnProperty(t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function py(t){return new dy(t)}function fy(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function gy(t,e,n){const r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthe.indexOf(t)>-1):t===e}function Ey(t){return Array.prototype.concat.apply([],t)}function xy(t){return t.length>0?t[t.length-1]:null}function Sy(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ky(t){return zs(t)?t:Hs(t)?B(Promise.resolve(t)):Cm(t)}function Ty(t,e,n){return n?function(t,e){return wy(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Ny(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>Cy(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Ny(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Ny(n.segments,i))return!1;for(const e in r.children){if(!n.children[e])return!1;if(!t(n.children[e],r.children[e]))return!1}return!0}{const t=i.slice(0,n.segments.length),o=i.slice(n.segments.length);return!!Ny(n.segments,t)&&!!n.children.primary&&e(n.children.primary,r,o)}}(e,n,n.segments)}(t.root,e.root)}class Iy{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=py(this.queryParams)),this._queryParamMap}toString(){return My.serialize(this)}}class Oy{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Sy(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ly(this)}}class Ay{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=py(this.parameters)),this._parameterMap}toString(){return Hy(this)}}function Ny(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function Py(t,e){let n=[];return Sy(t.children,(t,r)=>{"primary"===r&&(n=n.concat(e(t,r)))}),Sy(t.children,(t,r)=>{"primary"!==r&&(n=n.concat(e(t,r)))}),n}class Dy{}class Ry{parse(t){const e=new $y(t);return new Iy(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return Ly(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",r=[];return Sy(e.children,(e,n)=>{"primary"!==n&&r.push(`${n}:${t(e,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=Py(e,(n,r)=>"primary"===r?[t(e.children.primary,!1)]:[`${r}:${t(n,!1)}`]);return`${Ly(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${jy(e)}=${jy(t)}`).join("&"):`${jy(e)}=${jy(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const My=new Ry;function Ly(t){return t.segments.map(t=>Hy(t)).join("/")}function Fy(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jy(t){return Fy(t).replace(/%3B/gi,";")}function Uy(t){return Fy(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vy(t){return decodeURIComponent(t)}function By(t){return Vy(t.replace(/\+/g,"%20"))}function Hy(t){return`${Uy(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Uy(t)}=${Uy(e[t])}`).join("")}`;var e}const zy=/^[^\/()?;=#]+/;function qy(t){const e=t.match(zy);return e?e[0]:""}const Wy=/^[^=?&#]+/,Gy=/^[^?&#]+/;class $y{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oy([],{}):new Oy([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Oy(t,e)),n}parseSegment(){const t=qy(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Ay(Vy(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=qy(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=qy(this.remaining);t&&(n=t,this.capture(n))}t[Vy(e)]=Vy(n)}parseQueryParam(t){const e=function(t){const e=t.match(Wy);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Gy);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=By(e),i=By(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(i)}else t[r]=i}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=qy(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(":")):t&&(i="primary");const o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new Oy([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ky{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Qy(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Qy(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Xy(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Xy(t,this._root).map(t=>t.value)}}function Qy(t,e){if(t===e.value)return e;for(const n of e.children){const e=Qy(t,n);if(e)return e}return null}function Xy(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Xy(t,n);if(r.length)return r.unshift(e),r}return[]}class Yy{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Jy(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Zy extends Ky{constructor(t,e){super(t),this.snapshot=e,o_(this,t)}toString(){return this.snapshot.toString()}}function t_(t,e){const n=function(t,e){const n=new r_([],{},{},"",{},"primary",e,null,t.root,-1,{});return new i_("",new Yy(n,[]))}(t,e),r=new rv([new Ay("",{})]),i=new rv({}),o=new rv({}),s=new rv({}),a=new rv(""),l=new e_(r,i,s,a,o,"primary",e,n.root);return l.snapshot=n.root,new Zy(new Yy(l,[]),n)}class e_{constructor(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(F(t=>py(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(F(t=>py(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function n_(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class r_{constructor(t,e,n,r,i,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=py(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=py(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class i_ extends Ky{constructor(t,e){super(e),this.url=t,o_(this,e)}toString(){return s_(this._root)}}function o_(t,e){e.value._routerState=t,e.children.forEach(e=>o_(t,e))}function s_(t){const e=t.children.length>0?` { ${t.children.map(s_).join(", ")} } `:"";return`${t.value}${e}`}function a_(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wy(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wy(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nwy(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||l_(t.parent,e.parent))}function c_(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function u_(t,e,n,r,i){let o={};return r&&Sy(r,(t,e)=>{o[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new Iy(n.root===t?e:function t(e,n,r){const i={};return Sy(e.children,(e,o)=>{i[o]=e===n?r:t(e,n,r)}),new Oy(e.segments,i)}(n.root,t,e),o,i)}class h_{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&c_(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(r&&r!==xy(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class d_{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function p_(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function f_(t,e,n){if(t||(t=new Oy([],{})),0===t.segments.length&&t.hasChildren())return g_(t,e,n);const r=function(t,e,n){let r=0,i=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;i=n.length)return o;const e=t.segments[i],s=p_(n[r]),a=r0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!y_(s,a,e))return o;r+=2}else{if(!y_(s,{},e))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(i[r]=f_(t.children[r],e,n))}),Sy(t.children,(t,e)=>{void 0===r[e]&&(i[e]=t)}),new Oy(t.segments,i)}}function m_(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i{null!==t&&(e[n]=m_(new Oy([],{}),0,t))}),e}function b_(t){const e={};return Sy(t,(t,n)=>e[n]=""+t),e}function y_(t,e,n){return t==n.path&&wy(e,n.parameters)}class __{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),a_(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Jy(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),Sy(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(r===i)if(r.component){const i=n.getContext(r.outlet);i&&this.deactivateChildRoutes(t,e,i.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Jy(t),i=t.value.component?n.children:e;Sy(r,(t,e)=>this.deactivateRouteAndItsChildren(t,i)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Jy(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new cy(t.value.snapshot))}),t.children.length&&this.forwardEvent(new ay(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,i=e?e.value:null;if(a_(r),r===i)if(r.component){const i=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,i.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),w_(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),i=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=i,e.outlet&&e.outlet.activateWith(r,i),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function w_(t){a_(t.value),t.children.forEach(w_)}function C_(t){return"function"==typeof t}function E_(t){return t instanceof Iy}class x_{constructor(t){this.segmentGroup=t||null}}class S_{constructor(t){this.urlTree=t}}function k_(t){return new _(e=>e.error(new x_(t)))}function T_(t){return new _(e=>e.error(new S_(t)))}function I_(t){return new _(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class O_{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(te)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(F(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Fb(t=>{if(t instanceof S_)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof x_)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(F(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Fb(t=>{if(t instanceof x_)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new Oy([],{primary:t}):t;return new Iy(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(F(t=>new Oy([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Cm({});const n=[],r=[],i={};return Sy(t,(t,o)=>{const s=e(o,t).pipe(F(t=>i[o]=t));"primary"===o?n.push(s):r.push(s)}),Cm.apply(null,n.concat(r)).pipe(Pb(),Lb(),F(()=>i))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,i,o){return Cm(...n).pipe(F(s=>this.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Fb(t=>{if(t instanceof x_)return Cm(null);throw t}))),Pb(),Sb(t=>!!t),Fb((t,n)=>{if(t instanceof pb||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,i))return Cm(new Oy([],{}));throw new x_(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,i,o,s){return D_(r)!==o?k_(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):k_(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?T_(i):this.lineralizeSegments(n,i).pipe(H(n=>{const i=new Oy(n,{});return this.expandSegment(t,i,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=A_(e,r,i);if(!s)return k_(e);const u=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?T_(u):this.lineralizeSegments(r,u).pipe(H(r=>this.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(F(t=>(n._loadedConfig=t,new Oy(r,{})))):Cm(new Oy(r,{}));const{matched:i,consumedSegments:o,lastChild:s}=A_(e,n,r);if(!i)return k_(e);const a=r.slice(s);return this.getChildConfig(t,n,r).pipe(H(t=>{const n=t.module,r=t.routes,{segmentGroup:i,slicedSegments:s}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>P_(t,e,n)&&"primary"!==D_(n))}(t,n,r)?{segmentGroup:N_(new Oy(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&"primary"!==D_(r)&&(n[D_(r)]=new Oy([],{}));return n}(r,new Oy(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>P_(t,e,n))}(t,n,r)?{segmentGroup:N_(new Oy(t.segments,function(t,e,n,r){const i={};for(const o of n)P_(t,e,o)&&!r[D_(o)]&&(i[D_(o)]=new Oy([],{}));return Object.assign(Object.assign({},r),i)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,a,r);return 0===s.length&&i.hasChildren()?this.expandChildren(n,r,i).pipe(F(t=>new Oy(o,t))):0===r.length&&0===s.length?Cm(new Oy(o,{})):this.expandSegment(n,i,r,s,"primary",!0).pipe(F(t=>new Oy(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Cm(new my(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Cm(e._loadedConfig):function(t,e,n){const r=e.canLoad;return r&&0!==r.length?B(r).pipe(F(r=>{const i=t.get(r);let o;if(function(t){return t&&C_(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!C_(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return ky(o)})).pipe(Pb(),(i=t=>!0===t,t=>t.lift(new Vb(i,void 0,t)))):Cm(!0);var i}(t.injector,e,n).pipe(H(n=>n?this.configLoader.load(t.injector,e).pipe(F(t=>(e._loadedConfig=t,t))):function(t){return new _(e=>e.error(fy(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Cm(new my([],t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Cm(n);if(r.numberOfChildren>1||!r.children.primary)return I_(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const i=this.createSegmentGroup(t,e.root,n,r);return new Iy(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return Sy(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const i=this.createSegments(t,e.segments,n,r);let o={};return Sy(e.children,(e,i)=>{o[i]=this.createSegmentGroup(t,e,n,r)}),new Oy(i,o)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function A_(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||gy)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function N_(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new Oy(t.segments.concat(e.segments),e.children)}return t}function P_(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function D_(t){return t.outlet||"primary"}class R_{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class M_{constructor(t,e){this.component=t,this.route=e}}function L_(t,e,n){const r=t._root;return function t(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=Jy(n);return e.children.forEach(e=>{!function(e,n,r,i,o={canDeactivateChecks:[],canActivateChecks:[]}){const s=e.value,a=n?n.value:null,l=r?r.getContext(e.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Ny(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Ny(t.url,e.url)||!wy(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!l_(t,e)||!wy(t.queryParams,e.queryParams);case"paramsChange":default:return!l_(t,e)}}(a,s,s.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new R_(i)):(s.data=a.data,s._resolvedData=a._resolvedData),t(e,n,s.component?l?l.children:null:r,i,o),c&&o.canDeactivateChecks.push(new M_(l&&l.outlet&&l.outlet.component||null,a))}else a&&j_(n,l,o),o.canActivateChecks.push(new R_(i)),t(e,null,s.component?l?l.children:null:r,i,o)}(e,s[e.value.outlet],r,i.concat([e.value]),o),delete s[e.value.outlet]}),Sy(s,(t,e)=>j_(t,r.getContext(e),o)),o}(r,e?e._root:null,n,[r.value])}function F_(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function j_(t,e,n){const r=Jy(t),i=t.value;Sy(r,(t,r)=>{j_(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new M_(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}const U_=Symbol("INITIAL_VALUE");function V_(){return lb(t=>function(...t){let e=null,n=null;return T(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),G(t,n).lift(new Ob(e))}(...t.map(t=>t.pipe(gb(1),function(...t){const e=t[t.length-1];return T(e)?(t.pop(),n=>Hb(t,n,e)):e=>Hb(t,e)}(U_)))).pipe(sv((t,e)=>{let n=!1;return e.reduce((t,r,i)=>{if(t!==U_)return t;if(r===U_&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||E_(r))return r}return t},t)},U_),Im(t=>t!==U_),F(t=>E_(t)?t:!0===t),gb(1)))}function B_(t,e){return null!==t&&e&&e(new ly(t)),Cm(!0)}function H_(t,e){return null!==t&&e&&e(new sy(t)),Cm(!0)}function z_(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?Cm(r.map(r=>Nb(()=>{const i=F_(r,e,n);let o;if(function(t){return t&&C_(t.canActivate)}(i))o=ky(i.canActivate(e,t));else{if(!C_(i))throw new Error("Invalid CanActivate guard");o=ky(i(e,t))}return o.pipe(Sb())}))).pipe(V_()):Cm(!0)}function q_(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Nb(()=>Cm(e.guards.map(i=>{const o=F_(i,e.node,n);let s;if(function(t){return t&&C_(t.canActivateChild)}(o))s=ky(o.canActivateChild(r,t));else{if(!C_(o))throw new Error("Invalid CanActivateChild guard");s=ky(o(r,t))}return s.pipe(Sb())})).pipe(V_())));return Cm(i).pipe(V_())}class W_{}class G_{constructor(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){try{const t=Q_(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new r_([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Yy(n,e),i=new i_(this.url,r);return this.inheritParamsAndData(i._root),Cm(i)}catch(t){return new _(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=n_(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=Py(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const o of t)try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(i){if(!(i instanceof W_))throw i}if(this.noLeftoversInUrl(e,n,r))return[];throw new W_}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new W_;if((t.outlet||"primary")!==r)throw new W_;let i,o=[],s=[];if("**"===t.path){const o=n.length>0?xy(n).parameters:{};i=new r_(n,o,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,J_(t),r,t.component,t,$_(e),K_(e)+n.length,Z_(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new W_;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||gy)(n,t,e);if(!r)throw new W_;const i={};Sy(r.posParams,(t,e)=>{i[e]=t.path});const o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=a.consumedSegments,s=n.slice(a.lastChild),i=new r_(o,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,J_(t),r,t.component,t,$_(e),K_(e)+o.length,Z_(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=Q_(e,o,s,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Yy(i,t)]}if(0===a.length&&0===c.length)return[new Yy(i,[])];const u=this.processSegment(a,l,c,"primary");return[new Yy(i,u)]}}function $_(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function K_(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Q_(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(n=>X_(t,e,n)&&"primary"!==Y_(n))}(t,n,r)){const i=new Oy(e,function(t,e,n,r){const i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&"primary"!==Y_(o)){const n=new Oy([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,i[Y_(o)]=n}return i}(t,e,r,new Oy(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>X_(t,e,n))}(t,n,r)){const o=new Oy(t.segments,function(t,e,n,r,i,o){const s={};for(const a of r)if(X_(t,n,a)&&!i[Y_(a)]){const n=new Oy([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Y_(a)]=n}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Oy(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function X_(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Y_(t){return t.outlet||"primary"}function J_(t){return t.data||{}}function Z_(t){return t.resolve||{}}function tw(t,e,n,r){const i=F_(t,e,r);return ky(i.resolve?i.resolve(e,n):i(e,n))}function ew(t){return function(e){return e.pipe(lb(e=>{const n=t(e);return n?B(n).pipe(F(()=>e)):B([e])}))}}class nw{}class rw{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}const iw=new Ut("ROUTES");class ow{constructor(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(F(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new my(Ey(r.injector.get(iw)).map(_y),r)}))}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):ky(t()).pipe(H(t=>t instanceof ee?Cm(t):B(this.compiler.compileModuleAsync(t))))}}class sw{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function aw(t){throw t}function lw(t,e,n){return e.parse("/")}function cw(t,e){return Cm(null)}let uw=(()=>{class t{constructor(t,e,n,r,i,o,s,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new S,this.errorHandler=aw,this.malformedUriErrorHandler=lw,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:cw,afterPreactivation:cw},this.urlHandlingStrategy=new sw,this.routeReuseStrategy=new rw,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(te),this.console=i.get(Ic);const l=i.get(Hc);this.isNgZoneEnabled=l instanceof Hc,this.resetConfig(a),this.currentUrlTree=new Iy(new Oy([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ow(o,s,t=>this.triggerEvent(new iy(t)),t=>this.triggerEvent(new oy(t))),this.routerState=t_(this.currentUrlTree,this.rootComponentType),this.transitions=new rv({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(Im(t=>0!==t.id),F(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),lb(t=>{let n=!1,r=!1;return Cm(t).pipe(Sm(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),lb(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Cm(t).pipe(lb(t=>{const n=this.transitions.getValue();return e.next(new Qb(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?cv:[t]}),lb(t=>Promise.resolve(t)),(r=this.ngModule.injector,i=this.configLoader,o=this.urlSerializer,s=this.config,function(t){return t.pipe(lb(t=>function(t,e,n,r,i){return new O_(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,s).pipe(F(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Sm(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,i){return function(o){return o.pipe(H(o=>function(t,e,n,r,i="emptyOnly",o="legacy"){return new G_(t,e,n,r,i,o).recognize()}(t,e,o.urlAfterRedirects,n(o.urlAfterRedirects),r,i).pipe(F(t=>Object.assign(Object.assign({},o),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Sm(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Sm(t=>{const n=new Zb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,i,o,s;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:i,restoredState:o,extras:s}=t,a=new Qb(n,this.serializeUrl(r),i,o);e.next(a);const l=t_(r,this.rootComponentType).snapshot;return Cm(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),cv}),ew(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),Sm(t=>{const e=new ty(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),F(t=>Object.assign(Object.assign({},t),{guards:L_(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(H(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=n;return 0===s.length&&0===o.length?Cm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return B(t).pipe(H(t=>function(t,e,n,r,i){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Cm(o.map(o=>{const s=F_(o,e,i);let a;if(function(t){return t&&C_(t.canDeactivate)}(s))a=ky(s.canDeactivate(t,e,n,r));else{if(!C_(s))throw new Error("Invalid CanDeactivate guard");a=ky(s(t,e,n,r))}return a.pipe(Sb())})).pipe(V_()):Cm(!0)}(t.component,t.route,n,e,r)),Sb(t=>!0!==t,!0))}(s,r,i,t).pipe(H(n=>n&&"boolean"==typeof n?function(t,e,n,r){return B(e).pipe(zb(e=>B([H_(e.route.parent,r),B_(e.route,r),q_(t,e.path,n),z_(t,e.route,n)]).pipe(Pb(),Sb(t=>!0!==t,!0))),Sb(t=>!0!==t,!0))}(r,o,t,e):Cm(n)),F(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Sm(t=>{if(E_(t.guardsResult)){const e=fy(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Sm(t=>{const e=new ey(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Im(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new Yb(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),ew(t=>{if(t.guards.canActivateChecks.length)return Cm(t).pipe(Sm(t=>{const e=new ny(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(e=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(H(t=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=t;return i.length?B(i).pipe(zb(t=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return Cm({});if(1===i.length){const o=i[0];return tw(t[o],e,n,r).pipe(F(t=>({[o]:t})))}const o={};return B(i).pipe(H(i=>tw(t[i],e,n,r).pipe(F(t=>(o[i]=t,t))))).pipe(Lb(),F(()=>o))}(t._resolve,t,e,r).pipe(F(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),n_(t,n).resolve),null)))}(t.route,r,e,n)),qb((t,e)=>t),F(e=>t)):Cm(t)}))}),Sm(t=>{const e=new ry(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}));var e,n}),ew(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:i,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:i,skipLocationChange:!!o,replaceUrl:!!s})}),F(t=>{const e=function(t,e,n){const r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){const i=r.value;i._futureSnapshot=n.value;const o=function(e,n,r){return n.children.map(n=>{for(const i of r.children)if(e.shouldReuseRoute(i.value.snapshot,n.value))return t(e,n,i);return t(e,n)})}(e,n,r);return new Yy(i,o)}{const r=e.retrieve(n.value);if(r){const t=r.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let r=0;rt(e,n));return new Yy(r,o)}}var i}(t,e._root,n?n._root:void 0);return new Zy(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Sm(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(i=this.rootContexts,o=this.routeReuseStrategy,s=t=>this.triggerEvent(t),F(t=>(new __(o,t.targetRouterState,t.currentRouterState,s).activate(i),t))),Sm({next(){n=!0},complete(){n=!0}}),Wb(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new Yb(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Fb(n=>{if(r=!0,(i=n)&&i.ngNavigationCancelingError){const r=E_(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const i=new Yb(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(i),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new Jb(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(o){t.reject(o)}}var i;return cv}));var i,o,s}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",r=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,r,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){vy(t),this.config=t.map(_y),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:s,preserveFragment:a}=e;kr()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i;let u=null;if(s)switch(s){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=r||null}else u=o?this.currentUrlTree.queryParams:r||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,r,i){if(0===n.length)return u_(e.root,e.root,e,r,i);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new h_(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,i)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return Sy(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===i?(r.split("/").forEach((r,i)=>{0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new h_(n,e,r)}(n);if(o.toRoot())return u_(e.root,new Oy([],{}),e,r,i);const s=function(t,e,n){if(t.isAbsolute)return new d_(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new d_(n.snapshot._urlSegment,!0,0);const r=c_(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new d_(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?g_(s.segmentGroup,s.index,o.commands):f_(s.segmentGroup,s.index,o.commands);return u_(s.segmentGroup,a,e,r,i)}(l,this.currentUrlTree,t,u,c)}navigateByUrl(t,e={skipLocationChange:!1}){kr()&&this.isNgZoneEnabled&&!Hc.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=E_(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new Xb(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,i){const o=this.getTransition();if(o&&"imperative"!==e&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==e&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==e&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);let s,a,l;i?(s=i.resolve,a=i.reject,l=i.promise):l=new Promise((t,e)=>{s=t,a=e});const c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:s,reject:a,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(t){Ds()},t.\u0275dir=_e({type:t}),t})(),hw=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){kr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:pw(this.skipLocationChange),replaceUrl:pw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:pw(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pw(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(uw),Ns(e_),Ps("tabindex"),Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&qs("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),t})(),dw=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(t=>{t instanceof Xb&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){kr()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref()}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:pw(this.skipLocationChange),replaceUrl:pw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:pw(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:pw(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(uw),Ns(e_),Ns(Nu))},t.\u0275dir=_e({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&qs("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(Ta("href",e.href,Zr),Ts("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[La]}),t})();function pw(t){return""===t||!!t}class fw{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new gw,this.attachRef=null}}class gw{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new fw,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}let mw=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new Zl,this.deactivateEvents=new Zl,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new vw(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Ns(gw),Ns(Cl),Ns(Qa),Ps("name"),Ns(Qo))},t.\u0275dir=_e({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class vw{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===e_?this.route:t===gw?this.childContexts:this.parent.get(t,e)}}class bw{}class yw{preload(t,e){return Cm(null)}}let _w=(()=>{class t{constructor(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i,this.loader=new ow(e,n,e=>t.triggerEvent(new iy(e)),e=>t.triggerEvent(new oy(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Im(t=>t instanceof Xb),zb(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(te);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return B(n).pipe(W(),F(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(H(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(Qt(uw),Qt(uu),Qt(jc),Qt(hs),Qt(bw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ww=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Qb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Xb&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof uy&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new uy(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(t){Ds()},t.\u0275dir=_e({type:t}),t})();const Cw=new Ut("ROUTER_CONFIGURATION"),Ew=new Ut("ROUTER_FORROOT_GUARD"),xw=[Lu,{provide:Dy,useClass:Ry},{provide:uw,useFactory:function(t,e,n,r,i,o,s,a={},l,c){const u=new uw(null,t,e,n,r,i,o,Ey(s));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),a.errorHandler&&(u.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(u.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=_u();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(u.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(u.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(u.relativeLinkResolution=a.relativeLinkResolution),u},deps:[Dy,gw,Lu,hs,uu,jc,iw,Cw,[class{},new ot],[nw,new ot]]},gw,{provide:e_,useFactory:function(t){return t.routerState.root},deps:[uw]},{provide:uu,useClass:pu},_w,yw,class{preload(t,e){return e().pipe(Fb(()=>Cm(null)))}},{provide:Cw,useValue:{enableTracing:!1}}];function Sw(){return new ru("Router",uw)}let kw=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[xw,Aw(e),{provide:Ew,useFactory:Ow,deps:[[uw,new ot,new at]]},{provide:Cw,useValue:n||{}},{provide:Nu,useFactory:Iw,deps:[Cu,[new it(Du),new ot],Cw]},{provide:ww,useFactory:Tw,deps:[uw,Hh,Cw]},{provide:bw,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:yw},{provide:ru,multi:!0,useFactory:Sw},[Nw,{provide:_c,multi:!0,useFactory:Pw,deps:[Nw]},{provide:Rw,useFactory:Dw,deps:[Nw]},{provide:Tc,multi:!0,useExisting:Rw}]]}}static forChild(e){return{ngModule:t,providers:[Aw(e)]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(Ew,8),Qt(uw,8))}}),t})();function Tw(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ww(t,e,n)}function Iw(t,e,n={}){return n.useHash?new Mu(t,e):new Ru(t,e)}function Ow(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Aw(t){return[{provide:ds,multi:!0,useValue:t},{provide:iw,multi:!0,useValue:t}]}let Nw=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new S}appInitializer(){return this.injector.get(xu,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(uw),r=this.injector.get(Cw);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Cm(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Cw),n=this.injector.get(_w),r=this.injector.get(ww),i=this.injector.get(uw),o=this.injector.get(lu);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(Qt(hs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Pw(t){return t.appInitializer.bind(t)}function Dw(t){return t.bootstrapListener.bind(t)}const Rw=new Ut("Router Initializer");class Mw{constructor(t,e){this.defaultTranscoder=t,this.subject=e}has(t){return this.subject.has(t)}get(t,e){return this.subject.get(t,e||this.defaultTranscoder)}set(t,e,n){this.subject.set(t,e,n||this.defaultTranscoder)}remove(t){this.subject.remove(t)}clear(){this.subject.clear()}withDefaultTranscoder(t){return new Mw(t,this.subject)}}class Lw{constructor(t){this.defaultTranscoder=t}get(t,e){const n=this.getItem(t);return void 0!==n?(e||this.defaultTranscoder).decode(n):void 0}set(t,e,n){this.setItem(t,(n||this.defaultTranscoder).encode(e))}withDefaultTranscoder(t){return new Mw(t,this)}}class Fw{encode(t){return JSON.stringify(t)}decode(t){try{return JSON.parse(t)}catch(e){return}}}class jw{encode(t){return t}decode(t){return t}}class Uw{encode(t){return t.toString()}decode(t){return"true"===t||"false"!==t&&void 0}}class Vw{encode(t){return t.toString()}decode(t){const e=Number(t);return Number.isFinite(e)?e:void 0}}class Bw{encode(t){return t.toISOString()}decode(t){const e=Date.parse(t);return isNaN(e)?void 0:new Date(e)}}class Hw{encode(t){return t.valueOf().toString()}decode(t){const e=parseInt(t,10);return isNaN(e)?void 0:new Date(e)}}const zw={JSON:new Fw,STRING:new jw,BOOLEAN:new Uw,NUMBER:new Vw,DATE_ISO_STRING:new Bw,DATE_EPOCH_TIME:new Hw};class qw extends Lw{constructor(){super(zw.JSON),this.storage=new Map}has(t){return this.storage.has(t)}remove(t){this.storage.delete(t)}clear(){this.storage.clear()}getItem(t){if(this.storage.has(t))return this.storage.get(t)}setItem(t,e){this.storage.set(t,e)}}class Ww extends Lw{constructor(t){super(zw.JSON),this.storage=t}has(t){return null!==this.storage.getItem(t)}remove(t){this.storage.removeItem(t)}clear(){this.storage.clear()}getItem(t){const e=this.storage.getItem(t);return null!==e?e:void 0}setItem(t,e){return this.storage.setItem(t,e)}}const Gw=new Ut("LOCAL_STORAGE",{providedIn:"root",factory:function(){try{if("undefined"!=typeof localStorage&&function(t){if(!t)return!1;try{const e=Date.now(),n="storage-test-entry-"+e,r="storage-test-value-"+e;t.setItem(n,r);const i=t.getItem(n);return t.removeItem(n),i===r}catch(e){return!1}}(localStorage))return new Ww(localStorage)}catch(t){}return new qw}});let $w=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),Kw=(()=>{class t{constructor(t,e){this.storage=t,this.afs=e,this.localStorageValueChanges=new rv("none")}getUserDataFromLocalStorage(){return null==this.storage.get("user_nowevents")?null:this.storage.get("user_nowevents")}setUserDataToLocalStorage(t,e){console.log("test"),this.storage.set("user_nowevents",t),this.localStorageUserData=new nv(t.uid,t.accountCreated,t.email,t.displayName,t.photoURL,t.emailVerified,t.firstName,t.lastName,t.department,t.organization,t.jobTitle,t.conversations,t.roleToken,t.meetingPulseKey),this.localStorageValueChanges.next(e)}clearUserDataFromLocalStorage(){this.storage.remove("user_nowevents")}setEvent(t){this.storage.set("event_nowevents",t)}syncUserDataFromFirestore(t){return this.afs.collection("users",e=>e.where("uid","==",t)).valueChanges()}}return t.\u0275fac=function(e){return new(e||t)(Qt(Gw),Qt(sb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Qw={target:null,action:"click",duration:650,easing:"easeInOutQuad",offset:0,offsetMap:new Map},Xw={easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t,easeOutElastic:t=>Math.pow(2,-10*t)*Math.sin((t-1/4)*(2*Math.PI)/1)+1};function Yw(t){return t===window}class Jw{constructor(t,e,n,r,i,o){this.container=t,this.listenerTarget=e,this.isWindow=n,this.to=r,this.options=i,this.isBrowser=o,this.loop=()=>{this.timeLapsed+=this.tick,this.percentage=this.timeLapsed/this.options.duration,this.percentage=this.percentage>1?1:this.percentage,this.position=this.startPosition+(this.startPosition-this.to<=0?1:-1)*this.distance*Xw[this.options.easing](this.percentage),null!==this.lastPosition&&this.position===this.lastPosition?this.stop():(this.source$.next(this.position),this.isWindow?this.listenerTarget.scrollTo(0,Math.floor(this.position)):this.container.scrollTop=Math.floor(this.position),this.lastPosition=this.position)},this.tick=16,this.interval=null,this.lastPosition=null,this.timeLapsed=0,this.windowScrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,this.startPosition=this.container?this.isWindow?this.windowScrollTop:this.container.scrollTop:this.windowScrollTop,this.container&&!this.isWindow&&(this.to=this.to-this.container.getBoundingClientRect().top+this.startPosition);const s=this.startPosition-this.to;this.distance=this.container?Math.abs(this.startPosition-this.to):this.to,this.mappedOffset=this.options.offset,this.isBrowser&&this.options.offsetMap.forEach((t,e)=>this.mappedOffset=window.innerWidth>e?t:this.mappedOffset),this.distance+=this.mappedOffset*(s<=0?1:-1),this.source$=new hb}start(){return clearInterval(this.interval),this.interval=setInterval(this.loop,this.tick),this.source$.asObservable()}stop(){clearInterval(this.interval),this.interval=null,this.source$.complete()}}let Zw=(()=>{let t=class{constructor(t,e){this.document=t,this.platformId=e,this.interruptiveEvents=["mousewheel","DOMMouseScroll","touchstart"]}scrollTo(t){return Bh(this.platformId)?this.start(t):(new hb).asObservable()}start(t){const e=Object.assign(Object.assign({},Qw),t);this.animation&&this.animation.stop();const n=this.getNode(e.target);if(e.target&&!n)return hv("Unable to find Target Element");const r=this.getContainer(e,n);if(e.container&&!r)return hv("Unable to find Container Element");const i=this.getListenerTarget(r)||window;let o=r?r.getBoundingClientRect().top:0;n&&(o=Yw(i)?window.scrollY+n.getBoundingClientRect().top:n.getBoundingClientRect().top),this.animation=new Jw(r,i,Yw(i),o,e,Bh(this.platformId));const s=()=>this.animation.stop();this.addInterruptiveEventListeners(i,s);const a=this.animation.start();return this.subscribeToAnimation(a,i,s),a}subscribeToAnimation(t,e,n){const r=t.subscribe(()=>{},()=>{},()=>{this.removeInterruptiveEventListeners(this.interruptiveEvents,e,n),r.unsubscribe()})}getContainer(t,e){let n=null;return t.container?n=this.getNode(t.container,!0):e&&(n=this.getFirstScrollableParent(e)),n}addInterruptiveEventListeners(t,e){t||(t=window),this.interruptiveEvents.forEach(n=>t.addEventListener(n,e,!!this.supportPassive()&&{passive:!0}))}supportPassive(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:()=>{t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(e){}return t}removeInterruptiveEventListeners(t,e,n){e||(e=window),t.forEach(t=>e.removeEventListener(t,n))}getFirstScrollableParent(t){let e=window.getComputedStyle(t);const n=/(auto|scroll|overlay)/;if("fixed"===e.position)return null;let r=t;for(;r.parentElement;)if(r=r.parentElement,e=window.getComputedStyle(r),"absolute"!==e.position&&"hidden"!==e.overflow&&"hidden"!==e.overflowY&&(n.test(e.overflow+e.overflowY)||"BODY"===r.tagName))return r;return null}getNode(t,e=!1){let n;var r;return"string"==typeof(r=t)||r instanceof String?n=!e||"body"!==t&&"BODY"!==t?this.document.getElementById(function(t){return"#"===t.substring(0,1)?t.substring(1):t}(t)):this.document.body:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}(t)?n=this.document.getElementById(String(t)):function(t){return t instanceof Xa}(t)?n=t.nativeElement:function(t){return t instanceof HTMLElement}(t)&&(n=t),n}getListenerTarget(t){return t?this.isDocumentBody(t)?window:t:null}isDocumentBody(t){return"BODY"===t.tagName.toUpperCase()}};return t.\u0275fac=function(e){return new(e||t)(Qt(wu),Qt(kc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var tC;let eC=(()=>{let t=tC=class{static forRoot(){return{ngModule:tC,providers:[Zw]}}};return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),nC=(()=>{class t{constructor(t,e,n,r,i){this.afs=t,this.localStorageService=e,this.router=n,this._scrollToService=r,this.afAuth=i,this.chat={chatId:"",messages:[]},this.messages=[],this.showMessages=!1,this.message="",this.conversationArray=[],this.newChatAddedAlertSubject=new rv("none"),this.chatListFromDB=[],this.userChatProfiles=[],this.totalUnreadCount=0,this.localStorageServiceUserData=this.localStorageService.localStorageUserData}triggerScrollTo(){this._scrollToService.scrollTo({target:"destination"})}messageButtonPressedAlert(){this.newChatAddedAlertSubject.next("newchat")}selectUser(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){this.localStorageServiceUserData=this.localStorageService.getUserDataFromLocalStorage(),null==this.localStorageServiceUserData.conversations&&(this.localStorageServiceUserData.conversations=[]);let e=[...this.localStorageServiceUserData.conversations].find(e=>e.uid==t.uid);e?this.getChat(e.chatId).subscribe(t=>{this.temp=t,this.chat=this.temp[0],this.messages=null==this.chat.messages?[]:this.chat.messages,this.showMessages=!0}):(this.addNewChat().then(()=>Object(ev.__awaiter)(this,void 0,void 0,(function*(){yield this.addConvo(t)}))).then(()=>Object(ev.__awaiter)(this,void 0,void 0,(function*(){(yield this.getCurrentUser()).subscribe(()=>{new Promise((t,e)=>{this.afs.collection("users").doc(this.localStorageServiceUserData.uid).get().subscribe(e=>{this.localStorageUserDataObject=new nv(e.data().uid,e.data().accountCreated,e.data().email,e.data().displayName,e.data().photoURL,e.data().emailVerified,e.data().firstName,e.data().lastName,e.data().department,e.data().organization,e.data().jobTitle,e.data().conversations),t(!0)})}).then(()=>{this.localStorageService.setUserDataToLocalStorage(this.localStorageUserDataObject,"users/conversations"),this.localStorageServiceUserData=this.localStorageService.getUserDataFromLocalStorage(),null==this.localStorageServiceUserData.conversations&&(this.localStorageServiceUserData.conversations=[]);let e=[...this.localStorageServiceUserData.conversations].find(e=>e.uid==t.uid);e&&this.getChat(e.chatId).subscribe(t=>{this.temp=t,this.chat=this.temp[0],this.messages=null==this.chat.messages?[]:this.chat.messages,this.showMessages=!0})})})}))),this.showMessages=!0)}))}addConvo(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){let e={firstName:t.firstName,uid:t.uid,chatId:this.chat.chatId},n={firstName:this.localStorageServiceUserData.firstName,uid:this.localStorageServiceUserData.uid,chatId:this.chat.chatId},r=this.afs.doc("users/"+this.localStorageServiceUserData.uid),i=this.afs.doc("users/"+t.uid);r.get().subscribe(t=>{let n=t.data();return n.conversations&&null!=n.conversations||(n.conversations=[]),n.conversations.push(e),r.update({conversations:n.conversations})}),i.get().subscribe(t=>{let e=t.data();return e.conversations&&null!=e.conversations||(e.conversations=[]),e.conversations.push(n),i.update({conversations:e.conversations})})}))}addNewChat(){const t=this.afs.createId();return this.afs.doc("conversations/"+t).set({chatId:t,messages:[]}).then(()=>{this.chat={chatId:t,messages:[]}})}getChat(t){return this.afs.collection("conversations",e=>e.where("chatId","==",t)).valueChanges()}getCurrentUser(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return this.afs.doc("users/"+this.localStorageService.getUserDataFromLocalStorage().uid).valueChanges()}))}updateMessageStatus(t){this.getConversationItems(t).then(()=>{const e=this.afs.doc("conversations/"+t);console.log(t);for(let t=this.conversationArray.length-1;0<=t&&this.conversationArray[t].senderId!==this.localStorageService.getUserDataFromLocalStorage().uid&&(this.conversationArray[t].senderId===this.localStorageService.getUserDataFromLocalStorage().uid||!0!==this.conversationArray[t].messageReadStatus);t--)this.conversationArray[t].senderId!==this.localStorageService.getUserDataFromLocalStorage().uid&&!1===this.conversationArray[t].messageReadStatus&&(this.conversationArray[t].messageReadStatus=!0);e.update({messages:this.conversationArray}),this.conversationArray=[]})}getNumberOfUnreadMessage(t){let e,n=0;return new Promise((r,i)=>{this.getConversationItems(t).then(i=>{e=i,this.afs.doc("conversations/"+t);for(let t=e.length-1;0<=t&&e[t].senderId!==this.localStorageService.getUserDataFromLocalStorage().uid&&(e[t].senderId===this.localStorageService.getUserDataFromLocalStorage().uid||!0!==e[t].messageReadStatus);t--)e[t].senderId!==this.localStorageService.getUserDataFromLocalStorage().uid&&!1===e[t].messageReadStatus&&n++;r(n)})})}getConversationItems(t){return null!=t&&null!=t||(t="0"),new Promise((e,n)=>{this.afs.collection("conversations").doc(t).get().subscribe(t=>{void 0!==t.data()?(console.log(t.data()),this.conversationArray=null===t.data().messages||void 0===t.data().messages?[]:t.data().messages):this.conversationArray=[],e(this.conversationArray)})})}sendMessage(){""!=this.message?this.afAuth.currentUser.then(t=>{console.log(t);let e={senderId:t.uid,senderName:this.localStorageService.getUserDataFromLocalStorage().firstName,timestamp:iv.firestore.Timestamp.fromDate(new Date),content:this.message,messageReadStatus:!1};this.message="",this.messages.push(e),this.pushNewMessage(this.messages).then(()=>{}),setTimeout(()=>{this.localStorageService.localStorageValueChanges.next("users/conversations"),this.newChatAddedAlertSubject.next("newchat")},1e3)}):alert("Enter message")}pushNewMessage(t){return this.afs.doc("conversations/"+this.chat.chatId).update({messages:t})}getAllChatArrayForSideNavBar(t){this.afs.collection("users").doc(t).get().subscribe(e=>{this.chatListFromDB=null!==e.data().conversations||void 0!==e.data().conversations?e.data().conversations:[];let n=[];for(let r of this.chatListFromDB)this.getUserBasicInfoFromUid(r.uid).then(e=>{this.getTimestampAndLastMessage(r.chatId).then(i=>{this.getNumberOfUnreadMessage(r.chatId).then(o=>{this.totalUnreadCount=0,n.push({uid:r.uid,photoURL:e.userProfileByUid,firstName:e.userChatName,lastMessage:i.userLastMessage,timestamp:i.userMessageTimeStamp,chatId:r.chatId,numberOfNotifications:o,conversations:[{chatId:r.chatId,uid:t,firstName:r.firstName}]});for(let t of n)this.totalUnreadCount+=t.numberOfNotifications;this.userChatProfiles=n.sort((function(t,e){return e.timestamp-t.timestamp}))})})})})}getUserBasicInfoFromUid(t){let e="";return new Promise((n,r)=>{this.afs.collection("users").doc(t).get().subscribe(r=>{console.log(t),null===r.data().photoURL?(this.userProfileByUid="/assets/default-profile.png",e="/assets/default-profile.png"):(this.userProfileByUid=r.data().photoURL,e=r.data().photoURL),this.userChatName=r.data().firstName;let i={userChatName:r.data().firstName,userProfileByUid:e};n(i)})})}getTimestampAndLastMessage(t){let e="",n="",r=0;return new Promise((i,o)=>{this.afs.collection("conversations").doc(t).get().subscribe(t=>{0==t.data().messages.length?(e="No Message",n="0",r=0):(e=t.data().messages[t.data().messages.length-1].content,n=t.data().messages[t.data().messages.length-1].timestamp,r=t.data().messages.length),i({userLastMessage:e,userMessageTimeStamp:n,userChatLength:r})})})}getOnlyOneConversationChanges(t){return this.afs.collection("conversations",e=>e.where("chatId","==",t)).valueChanges()}getValueChangesForChatList(t){this.localStorageService.syncUserDataFromFirestore(t).subscribe(()=>{this.afs.collection("users").doc(t).get().subscribe(e=>{const n=new nv(e.data().uid,e.data().accountCreated,e.data().email,e.data().displayName,e.data().photoURL,e.data().emailVerified,e.data().firstName,e.data().lastName,e.data().department,e.data().organization,e.data().jobTitle,e.data().conversations,e.data().roleToken,e.data().meetingPulseKey);this.localStorageService.setUserDataToLocalStorage(n,"syncuserdata");const r=this.localStorageService.getUserDataFromLocalStorage();for(let i of r.conversations)this.getOnlyOneConversationChanges(i.chatId).subscribe(()=>{this.getAllChatArrayForSideNavBar(t)});0===r.conversations.length&&this.getAllChatArrayForSideNavBar(t)})})}}return t.\u0275fac=function(e){return new(e||t)(Qt(sb),Qt(Kw),Qt(uw),Qt(Zw),Qt(kb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class rC{}class iC{}class oC{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),i=t.slice(e+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(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof oC?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new oC;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof oC?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class sC{encodeKey(t){return aC(t)}encodeValue(t){return aC(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function aC(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class lC{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new sC,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[i,o]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],s=n.get(i)||[];s.push(o),n.set(i,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new lC({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function cC(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function uC(t){return"undefined"!=typeof Blob&&t instanceof Blob}function hC(t){return"undefined"!=typeof FormData&&t instanceof FormData}class dC{constructor(t,e,n,r){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,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 oC),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new dC(e,n,i,{params:l,headers:a,reportProgress:s,responseType:r,withCredentials:o})}}const pC=function(){var t={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return t[t.Sent]="Sent",t[t.UploadProgress]="UploadProgress",t[t.ResponseHeader]="ResponseHeader",t[t.DownloadProgress]="DownloadProgress",t[t.Response]="Response",t[t.User]="User",t}();class fC{constructor(t,e=200,n="OK"){this.headers=t.headers||new oC,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class gC extends fC{constructor(t={}){super(t),this.type=pC.ResponseHeader}clone(t={}){return new gC({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class mC extends fC{constructor(t={}){super(t),this.type=pC.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new mC({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class vC extends fC{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function bC(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let yC=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof dC)r=t;else{let i=void 0;i=n.headers instanceof oC?n.headers:new oC(n.headers);let o=void 0;n.params&&(o=n.params instanceof lC?n.params:new lC({fromObject:n.params})),r=new dC(t,e,void 0!==n.body?n.body:null,{headers:i,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Cm(r).pipe(zb(t=>this.handler.handle(t)));if(t instanceof dC||"events"===n.observe)return i;const o=i.pipe(Im(t=>t instanceof mC));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return o.pipe(F(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return o.pipe(F(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return o.pipe(F(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return o.pipe(F(t=>t.body))}case"response":return o;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new lC).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,bC(n,e))}post(t,e,n={}){return this.request("POST",t,bC(n,e))}put(t,e,n={}){return this.request("PUT",t,bC(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Qt(rC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class _C{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const wC=new Ut("HTTP_INTERCEPTORS");let CC=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const EC=/^\)\]\}',?\n/;class xC{}let SC=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),kC=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let i=null;const o=()=>{if(null!==i)return i;const e=1223===n.status?204:n.status,r=n.statusText||"OK",o=new oC(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return i=new gC({headers:o,status:e,statusText:r,url:s}),i},s=()=>{let{headers:r,status:i,statusText:s,url:a}=o(),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"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(EC,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new mC({body:l,headers:r,status:i,statusText:s,url:a||void 0})),e.complete()):e.error(new vC({error:l,headers:r,status:i,statusText:s,url:a||void 0}))},a=t=>{const{url:r}=o(),i=new vC({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(i)};let l=!1;const c=r=>{l||(e.next(o()),l=!0);let i={type:pC.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(i.total=r.total),"text"===t.responseType&&n.responseText&&(i.partialText=n.responseText),e.next(i)},u=t=>{let n={type:pC.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",c),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:pC.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",s),t.reportProgress&&(n.removeEventListener("progress",c),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Qt(xC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const TC=new Ut("XSRF_COOKIE_NAME"),IC=new Ut("XSRF_HEADER_NAME");class OC{}let AC=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=bh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu),Qt(kc),Qt(TC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),NC=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(OC),Qt(IC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),PC=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(wC,[]);this.chain=t.reduceRight((t,e)=>new _C(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(Qt(iC),Qt(hs))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),DC=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:NC,useClass:CC}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:TC,useValue:e.cookieName}:[],e.headerName?{provide:IC,useValue:e.headerName}:[]]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[NC,{provide:wC,useExisting:NC,multi:!0},{provide:OC,useClass:AC},{provide:TC,useValue:"XSRF-TOKEN"},{provide:IC,useValue:"X-XSRF-TOKEN"}]}),t})(),RC=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[yC,{provide:rC,useClass:PC},kC,{provide:iC,useExisting:kC},SC,{provide:xC,useExisting:SC}],imports:[[DC.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})(),MC=(()=>{class t{constructor(t,e,n,r,i,o,s){this.afs=t,this.afAuth=e,this.router=n,this.ngZone=r,this.localStorageService=i,this.chatService=o,this.httpClient=s,this.profilePhotoSubject=new rv("../../assets/default-profile.png"),this.firstTimeLoggedIn=!0,this.loggedIn=!0,this.afAuth.authState.subscribe(t=>{if(t){this.userData=t,this.chatService.getValueChangesForChatList(this.userData.uid);const e=this.localStorageService.getUserDataFromLocalStorage();null!==e&&this.profilePhotoSubject.next(null===e.photoURL?"/assets/default-profile.png":e.photoURL)}else console.log("Logged out"),this.localStorageService.clearUserDataFromLocalStorage()})}forgotPassword(t){return this.afAuth.sendPasswordResetEmail(t).then(()=>{window.alert("Password reset email sent, check your inbox."),this.router.navigate(["login"])}).catch(t=>{window.alert("There is no registration record corresponding to this email. Hint: use the email you previously registered with.")})}signUp(t,e,n,r,i,o,s){return this.afAuth.createUserWithEmailAndPassword(t,e).then(e=>{this.emailVerificationRequired?(this.setUserDataForSignUp(e.user,n,r,i,o,s),this.sendVerificationMail(t,n,r)):(this.setUserDataForSignUp(e.user,n,r,i,o,s),window.alert("Thank you for registering for NHG Quality Webinar! A confirmation email will be sent to your registered email shortly."),this.router.navigate(["login"]))}).catch(t=>{window.alert(t.message)})}setUserDataForSignUp(t,e,n,r,i,o){const s=Object(ov.sha256)("Fr2Df8kQ9v5Sqg3G"+t.uid+e+" "+n+t.email),a=btoa(JSON.stringify({client:"trial",id:t.uid,name:e+" "+n,email:t.email,signature:s})),l=this.afs.doc("users/"+t.uid);let c={uid:t.uid,accountCreated:iv.firestore.Timestamp.fromDate(new Date),email:t.email,displayName:t.displayName,photoURL:t.photoURL,emailVerified:t.emailVerified,firstName:e,lastName:n,department:r,organization:i,jobTitle:o,conversations:[],meetingPulseKey:a};return l.set(c,{merge:!0})}sendVerificationMail(t,e,n){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return this.afAuth.currentUser.then(t=>t.sendEmailVerification()).then(()=>{this.router.navigate(["verify-email"])})}))}getCurrentUser(){return this.afAuth.currentUser}signIn(t,e){return this.afAuth.signInWithEmailAndPassword(t,e).then(e=>{console.log("Results for Logging in: ",e.user),this.emailVerificationRequired?1==e.user.emailVerified?this.currentUserInfo=this.afs.collection("users").doc(e.user.uid).get().subscribe(t=>{if(null!=t){null==t.data().photoURL?this.profilePhotoSubject.next("/assets/default-profile.png"):this.profilePhotoSubject.next(t.data().photoURL);const n=new nv(t.data().uid,t.data().accountCreated,t.data().email,t.data().displayName,t.data().photoURL,e.user.emailVerified,t.data().firstName,t.data().lastName,t.data().department,t.data().organization,t.data().jobTitle,t.data().conversations,t.data().roleToken,t.data().meetingPulseKey);this.localStorageService.setUserDataToLocalStorage(n,"signin"),this.router.navigate(["/plenary/Keynote"])}}):(window.alert("Please verify your email. A verification email has been sent to your email address."),this.currentUserInfo=this.afs.collection("users").doc(e.user.uid).get().subscribe(e=>{this.sendVerificationMail(t,e.data().firstName,e.data().lastName)})):this.currentUserInfo=this.afs.collection("users").doc(e.user.uid).get().subscribe(t=>{if(null!=t){null==t.data().photoURL?this.profilePhotoSubject.next("/assets/default-profile.png"):this.profilePhotoSubject.next(t.data().photoURL);const n=new nv(t.data().uid,t.data().accountCreated,t.data().email,t.data().displayName,t.data().photoURL,e.user.emailVerified,t.data().firstName,t.data().lastName,t.data().department,t.data().organization,t.data().jobTitle,t.data().conversations,t.data().roleToken,t.data().meetingPulseKey);this.localStorageService.setUserDataToLocalStorage(n,"signin"),this.router.navigate(["/plenary/Keynote"])}})}).catch(t=>{window.alert("There is no registration record corresponding to this email. Registeration has closed.")})}setEmailVerifiedFromAngularFireAuthAPI(t,e){console.log("Checking email verification status: ",e),this.afs.collection("users").doc(t).get().subscribe(n=>this.afs.doc("users/"+t).update({emailVerified:e}))}get isLoggedIn(){const t=this.localStorageService.getUserDataFromLocalStorage();return this.emailVerificationRequired?!!t&&null!==t&&!1!==t.emailVerified:!!t}signOut(){return this.afAuth.signOut().then(()=>{this.localStorageService.clearUserDataFromLocalStorage(),this.router.navigate(["login"])})}}return t.\u0275fac=function(e){return new(e||t)(Qt(sb),Qt(kb),Qt(uw),Qt(Hc),Qt(Kw),Qt(nC),Qt(yC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function LC(t){return e=>e.lift(new FC(t))}class FC{constructor(t){this.notifier=t}call(t,e){const n=new jC(t),r=M(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class jC extends L{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,r,i){this.seenValue=!0,this.complete()}notifyComplete(){}}class UC{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new VC(t,this.compare,this.keySelector))}}class VC extends f{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}function BC(t){return e=>e.lift(new HC(t))}class HC{constructor(t){this.total=t}call(t,e){return e.subscribe(new zC(t,this.total))}}class zC extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}function qC(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}class WC extends Pm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}class GC extends Rm{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,r=-1,i=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++r{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Bh(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&&!KC)&&"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 t.\u0275fac=function(e){return new(e||t)(Qt(kc))},t.\u0275prov=ht({factory:function(){return new t(Qt(kc))},token:t,providedIn:"root"}),t})(),JC=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();function ZC(t){return function(){if(null==QC&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>QC=!0}))}finally{QC=QC||!1}return QC}()?t:!!t.capture}function tE(t){return null!=t&&""+t!="false"}function eE(t){return Array.isArray(t)?t:[t]}function nE(t){return null==t?"":"string"==typeof t?t:t+"px"}function rE(t){return t instanceof Xa?t.nativeElement:t}let iE=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),oE=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[iE]}),t})(),sE=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(jD){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===lE(e))return!1;if(!this.isVisible(e))return!1}let r=t.nodeName.toLowerCase(),i=lE(t);return t.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||aE(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(YC))},t.\u0275prov=ht({factory:function(){return new t(Qt(YC))},token:t,providedIn:"root"}),t})();function aE(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function lE(t){if(!aE(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class cE{constructor(t,e,n,r,i=!1){this._element=t,this._checker=e,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(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}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(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(gb(1)).subscribe(t)}}let uE=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new cE(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(Qt(sE),Qt(Hc),Qt(wu))},t.\u0275prov=ht({factory:function(){return new t(Qt(sE),Qt(Hc),Qt(wu))},token:t,providedIn:"root"}),t})(),hE=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=tE(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=tE(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(uE),Ns(wu))},t.\u0275dir=_e({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[La]}),t})();class dE extends cE{constructor(t,e,n,r,i,o,s){super(t,e,n,r,s.defer),this._focusTrapManager=i,this._inertStrategy=o,this._focusTrapManager.register(this)}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}destroy(){this._focusTrapManager.deregister(this),super.destroy()}_enable(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}_disable(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}}const pE="undefined"!=typeof Element&&!!Element.prototype.closest;function fE(t,e){return t.matches?t.matches(e):t.msMatchesSelector(e)}class gE{constructor(){this._listener=null}preventFocus(t){this._listener&&t._document.removeEventListener("focus",this._listener,!0),this._listener=e=>this._trapFocus(t,e),t._ngZone.runOutsideAngular(()=>{t._document.addEventListener("focus",this._listener,!0)})}allowFocus(t){this._listener&&(t._document.removeEventListener("focus",this._listener,!0),this._listener=null)}_trapFocus(t,e){const n=e.target,r=t._element;r.contains(n)||null!==function(t,e){if(!(t instanceof Node))return null;let n=t;for(;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(pE?n.closest("div.cdk-overlay-pane"):function(t,e){let n=t;for(;null!=n&&!(n instanceof Element&&fE(n,"div.cdk-overlay-pane"));)n=n.parentNode;return n||null}(n))}(n)||setTimeout(()=>{t.enabled&&!r.contains(t._document.activeElement)&&t.focusFirstTabbableElement()})}}class mE{constructor(){this.defer=!1}}const vE=new Ut("FOCUS_TRAP_INERT_STRATEGY");let bE=(()=>{class t{constructor(){this._focusTrapStack=[]}register(t){this._focusTrapStack=this._focusTrapStack.filter(e=>e!==t);let e=this._focusTrapStack;e.length&&e[e.length-1]._disable(),e.push(t),t._enable()}deregister(t){t._disable();const e=this._focusTrapStack,n=e.indexOf(t);-1!==n&&(e.splice(n,1),e.length&&e[e.length-1]._enable())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yE=(()=>{class t{constructor(t,e,n,r,i){this._checker=t,this._ngZone=e,this._focusTrapManager=n,this._document=r,this._inertStrategy=i||new gE}create(t,e=new mE){let n;return"boolean"==typeof e?(n=new mE,n.defer=e):n=e,new dE(t,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(sE),Qt(Hc),Qt(bE),Qt(wu),Qt(vE,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(sE),Qt(Hc),Qt(bE),Qt(wu),Qt(vE,8))},token:t,providedIn:"root"}),t})();const _E=new Ut("cdk-focus-monitor-default-options"),wE=ZC({passive:!0,capture:!0});let CE=(()=>{class t{constructor(t,e,n,r){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=function(t){return 0===t.buttons}(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=EE(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=EE(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let r=e;r;r=r.parentElement)n.call(this,t,r)},this._document=n,this._detectionMode=(null==r?void 0:r.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return Cm(null);const n=rE(t),r=function(t){if(function(){if(null==XC){const t="undefined"!=typeof document?document.head:null;XC=!(!t||!t.createShadowRoot&&!t.attachShadow)}return XC}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject.asObservable();const o={checkChildren:e,subject:new S,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()}stopMonitoring(t){const e=rE(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const r=rE(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=EE(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==EE(t))return;const r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,wE),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,wE)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,wE),t.addEventListener("mousedown",this._documentMousedownListener,wE),t.addEventListener("touchstart",this._documentTouchstartListener,wE),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,wE),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,wE),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,wE),t.removeEventListener("mousedown",this._documentMousedownListener,wE),t.removeEventListener("touchstart",this._documentTouchstartListener,wE),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Qt(Hc),Qt(YC),Qt(wu,8),Qt(_E,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(Hc),Qt(YC),Qt(wu,8),Qt(_E,8))},token:t,providedIn:"root"}),t})();function EE(t){return t.composedPath?t.composedPath()[0]:t.target}let xE=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(Qt(YC),Qt(wu))},t.\u0275prov=ht({factory:function(){return new t(Qt(YC),Qt(wu))},token:t,providedIn:"root"}),t})(),SE=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(xE))},imports:[[JC,oE]]}),t})();class kE{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new TE(t,this.durationSelector))}}class TE extends L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const r=M(this,n);!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,r){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function IE(t,e=Mm){return n=()=>function(t=0,e,n){let r=-1;return Ov(e)?r=Number(e)<1?1:Number(e):T(e)&&(n=e),T(n)||(n=Mm),new _(e=>{const i=Ov(t)?t:+t-n.now();return n.schedule(qC,i,{index:0,period:r,subscriber:e})})}(t,e),function(t){return t.lift(new kE(n))};var n}const OE=new Ut("cdk-dir-doc",{providedIn:"root",factory:function(){return Xt(wu)}});let AE=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Zl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Qt(OE,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(OE,8))},token:t,providedIn:"root"}),t})(),NE=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),PE=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new S,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(IE(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Cm()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Im(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,r)=>{this._scrollableContainsElement(r,t)&&e.push(r)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Em(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Hc),Qt(YC),Qt(wu,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(Hc),Qt(YC),Qt(wu,8))},token:t,providedIn:"root"}),t})(),DE=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new S,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(IE(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Qt(YC),Qt(Hc),Qt(wu,8))},t.\u0275prov=ht({factory:function(){return new t(Qt(YC),Qt(Hc),Qt(wu,8))},token:t,providedIn:"root"}),t})(),RE=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),ME=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[NE,JC,RE],NE,RE]}),t})();function LE(){throw Error("Host already has a portal attached")}class FE{attach(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&LE(),this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class jE extends FE{constructor(t,e,n,r){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=r}}class UE extends FE{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class VE extends FE{constructor(t){super(),this.element=t instanceof Xa?t.nativeElement:t}}class BE extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&LE(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof jE?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof UE?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof VE?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,r,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=t=>{if(!this._document)throw Error("Cannot attach DOM portal without _document constructor parameter");const e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");const n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.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(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let HE=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class zE{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=nE(-this._previousScrollPosition.left),t.style.top=nE(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,r=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=r,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}function qE(){return Error("Scroll strategy has already been attached.")}class WE{constructor(t,e,n,r){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){if(this._overlayRef)throw qE();this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class GE{enable(){}disable(){}attach(){}}function $E(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function KE(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class QE{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(t){if(this._overlayRef)throw qE();this._overlayRef=t}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 t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();$E(t,[{width:e,height:n,bottom:n,right:e,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 XE=(()=>{class t{constructor(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new GE,this.close=t=>new WE(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new zE(this._viewportRuler,this._document),this.reposition=t=>new QE(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=r}}return t.\u0275fac=function(e){return new(e||t)(Qt(PE),Qt(DE),Qt(Hc),Qt(wu))},t.\u0275prov=ht({factory:function(){return new t(Qt(PE),Qt(DE),Qt(Hc),Qt(wu))},token:t,providedIn:"root"}),t})();class YE{constructor(t){if(this.scrollStrategy=new GE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class JE{constructor(t,e,n,r,i){this.offsetX=n,this.offsetY=r,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class ZE{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}function tx(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "top", "bottom" or "center".`)}function ex(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error(`ConnectedPosition: Invalid ${t} "${e}". Expected "start", "end" or "center".`)}let nx=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({factory:function(){return new t(Qt(wu))},token:t,providedIn:"root"}),t})(),rx=(()=>{class t extends nx{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({factory:function(){return new t(Qt(wu))},token:t,providedIn:"root"}),t})(),ix=(()=>{class t extends nx{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays;for(let r=n.length-1;r>-1;r--){const i=n[r];if(!(i._outsidePointerEvents.observers.length<1)){if([...i.getConfig().excludeFromOutsideClick,i.overlayElement].some(t=>t.contains(e)))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu),Qt(YC))},t.\u0275prov=ht({factory:function(){return new t(Qt(wu),Qt(YC))},token:t,providedIn:"root"}),t})();const ox=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let sx=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||ox){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new S,this._outsidePointerEvents=new S,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(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(gb(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())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=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._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&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._keydownEvents.asObservable()}outsidePointerEvents(){return this._outsidePointerEvents.asObservable()}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=nE(this._config.width),t.height=nE(this._config.height),t.minWidth=nE(this._config.minWidth),t.minHeight=nE(this._config.minHeight),t.maxWidth=nE(this._config.maxWidth),t.maxHeight=nE(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"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 t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const r=t.classList;eE(e).forEach(t=>{t&&(n?r.add(t):r.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.asObservable().pipe(LC($(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)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const lx=/([A-Za-z%]+)$/;class cx{constructor(t,e,n,r,i){this._viewportRuler=e,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 S,this._resizeSubscription=h.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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 t=this._originRect,e=this._overlayRect,n=this._viewportRect,r=[];let i;for(let o of this._preferredPositions){let s=this._getOriginPoint(t,o),a=this._getOverlayPoint(s,e,o),l=this._getOverlayFit(a,e,n,o);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(o,s);this._canFitWithFlexibleDimensions(l,a,n)?r.push({position:o,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,o)}):(!i||i.overlayFit.visibleAreae&&(e=r,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.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&&ux(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 t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,r;if("center"==e.originX)n=t.left+t.width/2;else{const r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return r="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:r}}_getOverlayPoint(t,e,n){let r,i;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+r,y:t.y+i}}_getOverlayFit(t,e,n,r){let{x:i,y:o}=t,s=this._getOffset(r,"x"),a=this._getOffset(r,"y");s&&(i+=s),a&&(o+=a);let l=0-o,c=o+e.height-n.height,u=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,l,c),d=u*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:u==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const r=n.bottom-e.y,i=n.right-e.x,o=hx(this._overlayRef.getConfig().minHeight),s=hx(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=s&&s<=i;return(t.fitsInViewportVertically||null!=o&&o<=r)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const r=this._viewportRect,i=Math.max(t.x+e.width-r.right,0),o=Math.max(t.y+e.height-r.bottom,0),s=Math.max(r.top-n.top-t.y,0),a=Math.max(r.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=r.width?a||-i:t.xr&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.y-r/2)}if("end"===e.overlayX&&!r||"start"===e.overlayX&&r)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!r||"end"===e.overlayX&&r)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),r=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>r&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-r/2)}return{top:o,left:l,bottom:s,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;r.height=nE(n.height),r.top=nE(n.top),r.bottom=nE(n.bottom),r.width=nE(n.width),r.left=nE(n.left),r.right=nE(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(r.maxHeight=nE(t)),i&&(r.maxWidth=nE(i))}this._lastBoundingBoxSize=n,ux(this._boundingBox.style,r)}_resetBoundingBoxStyles(){ux(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ux(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const r=this._viewportRuler.getViewportScrollPosition();ux(n,this._getExactOverlayY(e,t,r)),ux(n,this._getExactOverlayX(e,t,r))}else n.position="static";let s="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(s+=`translateX(${a}px) `),l&&(s+=`translateY(${l}px)`),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=nE(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=nE(o.maxWidth):i&&(n.maxWidth="")),ux(this._pane.style,n)}_getExactOverlayY(t,e,n){let r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=o,"bottom"===t.overlayY?r.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":r.top=nE(i.y),r}_getExactOverlayX(t,e,n){let r,i={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),r=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===r?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=nE(o.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:KE(t,n),isOriginOutsideView:$E(t,n),isOverlayClipped:KE(e,n),isOverlayOutsideView:$E(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(t=>{ex("originX",t.originX),tx("originY",t.originY),ex("overlayX",t.overlayX),tx("overlayY",t.overlayY)})}_addPanelClasses(t){this._pane&&eE(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Xa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function ux(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function hx(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(lx);return n&&"px"!==n?null:parseFloat(e)}return t||null}class dx{constructor(t,e,n,r,i,o,s){this._preferredPositions=[],this._positionStrategy=new cx(n,r,i,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e)}get onPositionChange(){return this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,r){const i=new JE(t,e,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class px{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:i,maxWidth:o,maxHeight:s}=n,a=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==i&&"100vh"!==i||s&&"100%"!==s&&"100vh"!==s);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let fx=(()=>{class t{constructor(t,e,n,r){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=r}global(){return new px}connectedTo(t,e,n){return new dx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new cx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Qt(DE),Qt(wu),Qt(YC),Qt(sx))},t.\u0275prov=ht({factory:function(){return new t(Qt(DE),Qt(wu),Qt(YC),Qt(sx))},token:t,providedIn:"root"}),t})(),gx=0,mx=(()=>{class t{constructor(t,e,n,r,i,o,s,a,l,c,u){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._keyboardDispatcher=i,this._injector=o,this._ngZone=s,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=u}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new YE(t);return i.direction=i.direction||this._directionality.value,new ax(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+gx++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(lu)),new BE(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Qt(XE),Qt(sx),Qt(Qa),Qt(fx),Qt(rx),Qt(hs),Qt(Hc),Qt(wu),Qt(AE),Qt(Lu,8),Qt(ix,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const vx={provide:new Ut("cdk-connected-overlay-scroll-strategy"),deps:[mx],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let bx=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[mx,vx],imports:[[NE,HE,ME],ME]}),t})();const yx=["*"],_x=["mdbBtn",""],wx=["card"];function Cx(t,e){if(1&t){const t=Bs();Ls(0,"div",6),Ls(1,"a",7),qs("click",(function(){return Je(t),Qs().previousSlide()})),js(2,"i",8),Fs(),Ls(3,"a",7),qs("click",(function(){return Je(t),Qs().nextSlide()})),js(4,"i",9),Fs(),Fs()}if(2&t){const t=Qs();wi(1),ca("disabled",0===t.activeSlide&&t.noWrap),wi(2),ca("disabled",t.isLast(t.activeSlide)&&t.noWrap)}}function Ex(t,e){if(1&t){const t=Bs();Ls(0,"li",12),qs("click",(function(){Je(t);const n=e.index;return Qs(2).selectSlide(n)})),Fs()}2&t&&ca("active",!0===e.$implicit.active)}function xx(t,e){if(1&t&&(Ls(0,"ol",10),Os(1,Ex,1,2,"li",11),Fs()),2&t){const t=Qs();wi(1),Rs("ngForOf",t.slides)}}function Sx(t,e){if(1&t){const t=Bs();Ls(0,"li",12),qs("click",(function(){Je(t);const n=e.index;return Qs(2).selectSlide(n)})),js(1,"img",13),Fs()}if(2&t){const t=e.$implicit,n=Qs(2);ca("active",!0===t.active),wi(1),Zs("src",n.getImg(t),Zr)}}function kx(t,e){if(1&t&&(Ls(0,"ol",10),Os(1,Sx,2,3,"li",11),Fs()),2&t){const t=Qs();wi(1),Rs("ngForOf",t.slides)}}function Tx(t,e){if(1&t){const t=Bs();Ls(0,"a",14),qs("click",(function(){return Je(t),Qs().previousSlide()})),js(1,"span",15),Ls(2,"span",16),Ca(3,"Previous"),Fs(),Fs()}if(2&t){const t=Qs();ca("disabled",0===t.activeSlide&&t.noWrap)}}function Ix(t,e){if(1&t){const t=Bs();Ls(0,"a",17),qs("click",(function(){return Je(t),Qs().nextSlide()})),js(1,"span",18),Ls(2,"span",16),Ca(3,"Next"),Fs(),Fs()}if(2&t){const t=Qs();ca("disabled",t.isLast(t.activeSlide)&&t.noWrap)}}const Ox=["mdbCollapse",""],Ax=["mdbDropdown",""],Nx=function(t,e,n,r,i){return{fas:t,far:e,fab:n,fal:r,fad:i}},Px=["mdbModal",""],Dx=["navbar"],Rx=["mobile"],Mx=["nav"],Lx=["container"],Fx=["toggler"];function jx(t,e){1&t&&Js(0,4,["*ngIf","this.doubleNav == true"])}function Ux(t,e){if(1&t){const t=Bs();Ls(0,"button",7,8),qs("click",(function(e){return Je(t),Qs(2).toggle(),e.preventDefault()})),js(2,"span",9),Fs()}if(2&t){const t=Qs(2);Ts("aria-controls",t.collapseId)("aria-expanded",t.ariaExpanded)}}function Vx(t,e){if(1&t&&(Ls(0,"div"),Os(1,Ux,3,2,"button",6),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",0!==t.el.nativeElement.children.length)}}const Bx=[[["mdb-navbar-brand"]],[["logo"]],"*",[["links"]],[["navlinks"]]],Hx=function(t){return{container:t}},zx=function(t){return{display:t}},qx=function(t,e,n){return{collapse:t,show:e,collapsing:n}},Wx=["mdb-navbar-brand","logo","*","links","navlinks"],Gx=function(t){return{disabled:t}};function $x(t,e){if(1&t){const t=Bs();Ls(0,"button",5),qs("click",(function(){return Je(t),Qs().remove()})),Ca(1," \xd7\n"),Fs()}}function Kx(t,e){if(1&t&&(Ls(0,"div"),Ca(1),Fs()),2&t){const t=Qs();ua(t.options.titleClass),Ts("aria-label",t.title),wi(1),xa(" ",t.title,"\n")}}function Qx(t,e){if(1&t&&js(0,"div",6),2&t){const t=Qs();ua(t.options.messageClass),Rs("innerHTML",t.message,Jr)}}function Xx(t,e){if(1&t&&(Ls(0,"div"),Ca(1),Fs()),2&t){const t=Qs();ua(t.options.messageClass),Ts("aria-label",t.message),wi(1),xa(" ",t.message,"\n")}}function Yx(t,e){if(1&t){const t=Bs();Ls(0,"button",7),qs("click",(function(){return Je(t),Qs().onActionClick()})),Ca(1),Fs()}if(2&t){const t=Qs();Rs("ngClass",t.options.actionButtonClass),wi(1),Ea(t.options.actionButton)}}function Jx(t,e){if(1&t&&(Ls(0,"div"),js(1,"div",8),Fs()),2&t){const t=Qs();wi(1),la("width",t.width,"%")}}const Zx=["sidenav"],tS=["overlay"],eS=["itemsList"],nS=["tabEl"];function rS(t,e){1&t&&js(0,"span",8)}function iS(t,e){if(1&t){const t=Bs();Ls(0,"span"),Ls(1,"span",13),qs("click",(function(e){Je(t);const n=Qs(2).$implicit,r=Qs();return e.preventDefault(),r.removeTab(n)})),Fs(),Fs()}}const oS=function(t){return{"waves-light":t}};function sS(t,e){if(1&t&&(Ls(0,"a",9,10),js(2,"span",11),Os(3,iS,2,0,"span",12),Fs()),2&t){const t=Qs().$implicit,e=Qs();ca("active",t.active)("disabled",t.disabled),Rs("ngClass",Bl(8,oS,!e.disableWaves)),wi(2),Rs("mdbNgTransclude",t.headingRef)("innerHTML",t.heading,Jr),wi(1),Rs("ngIf",t.removable)}}function aS(t,e){if(1&t){const t=Bs();Ls(0,"span"),Ls(1,"span",13),qs("click",(function(e){Je(t);const n=Qs(2).$implicit,r=Qs();return e.preventDefault(),r.removeTab(n)})),Fs(),Fs()}}function lS(t,e){if(1&t&&(Ls(0,"a",14,10),js(2,"span",11),Os(3,aS,2,0,"span",12),Fs()),2&t){const t=Qs().$implicit,e=Qs();ca("active",t.active)("disabled",t.disabled),Rs("ngClass",Bl(8,oS,!e.disableWaves)),wi(2),Rs("mdbNgTransclude",t.headingRef)("innerHTML",t.heading,Jr),wi(1),Rs("ngIf",t.removable)}}const cS=function(t,e,n){return{"ml-auto":t,"list-group-item-action":e,"nav-item":n}};function uS(t,e){if(1&t){const t=Bs();Ls(0,"li",2),qs("click",(function(n){Je(t);const r=e.index;return Qs().click(n,r)})),Os(1,rS,1,0,"span",5),Os(2,sS,4,10,"a",6),Os(3,lS,4,10,"a",7),Fs()}if(2&t){const t=e.$implicit,n=e.index,r=Qs();ua(t.customClass),ca("active",t.active)("disabled",t.disabled),Rs("ngClass",zl(11,cS,"content"===t.type&&0===n,r.buttonClass.includes("list-group"),"content"!==t.type)),wi(1),Rs("ngIf","content"!==r.tabs[n].type&&r.tabs[n+1]&&"content"===r.tabs[n+1].type),wi(1),Rs("ngIf","content"!==t.type),wi(1),Rs("ngIf","content"===t.type)}}const hS=["plate"],dS=["hand"],pS=["fg"],fS=["bg"],gS=function(t,e){return{left:t,top:e}},mS=function(t){return{active:t}},vS=function(t){return{visibility:t}},bS=["focus"],yS=["digitalMinute"];function _S(t,e){if(1&t){const t=Bs();Ls(0,"div",34),Ls(1,"span",35),qs("click",(function(){return Je(t),Qs()._setAmPm("AM")}))("keydown.enter",(function(){return Je(t),Qs()._setAmPm("AM")})),Ca(2,"AM"),Fs(),Ls(3,"span",35),qs("click",(function(){return Je(t),Qs()._setAmPm("PM")}))("keydown.enter",(function(){return Je(t),Qs()._setAmPm("PM")})),Ca(4,"PM"),Fs(),Fs()}if(2&t){const t=Qs();wi(1),Rs("ngClass",Bl(2,mS,"AM"==t._selectedTime.ampm)),wi(2),Rs("ngClass",Bl(4,mS,"PM"==t._selectedTime.ampm))}}function wS(t,e){if(1&t&&(Ls(0,"div",36),Ca(1),Fs()),2&t){const t=e.$implicit;Zs("id",t.hour),Rs("ngClass",Bl(4,Gx,t.disabled))("ngStyle",Hl(6,gS,t.left+"px",t.top+"px")),wi(1),xa(" ",t.hour," ")}}function CS(t,e){if(1&t&&(Ls(0,"div",37),Ca(1),Fs()),2&t){const t=e.$implicit;Rs("ngClass",Bl(3,Gx,t.disabled))("ngStyle",Hl(5,gS,t.left+"px",t.top+"px")),wi(1),xa(" ",t.min," ")}}function ES(t,e){if(1&t){const t=Bs();Ls(0,"button",38),qs("click",(function(){return Je(t),Qs()._clearBtnClicked()})),Ca(1),Fs()}if(2&t){const t=Qs();wi(1),xa(" ",t.clearButton," ")}}function xS(t,e){if(1&t){const t=Bs();Ls(0,"button",39),qs("click",(function(){return Je(t),Qs()._closeBtnClicked()})),Ca(1),Fs()}if(2&t){const t=Qs();wi(1),xa(" ",t.closeButton," ")}}const SS=function(t,e){return{active:t,disabled:e}},kS=function(t){return{"mdb-timepicker-dial-out":t}};let TS=(()=>{class t{constructor(t,e){this._el=t,this._renderer=e}ngOnInit(){this._renderer.addClass(this._el.nativeElement,"badge"),this.color&&this.color.split(" ").forEach(t=>{this._renderer.addClass(this._el.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-badge"]],hostVars:16,hostBindings:function(t,e){2&t&&ca("badge-default",e.default)("badge-primary",e.primary)("badge-secondary",e.secondary)("badge-success",e.success)("badge-info",e.info)("badge-warning",e.warning)("badge-danger",e.danger)("badge-pill",e.pill)},inputs:{default:"default",primary:"primary",secondary:"secondary",success:"success",info:"info",warning:"warning",danger:"danger",pill:"pill",classInside:"classInside",color:"color",class:"class"},ngContentSelectors:yx,decls:2,vars:4,template:function(t,e){1&t&&(Ys(),Ls(0,"span"),Js(1),Fs()),2&t&&ka("",e.class," ",e.classInside,"")},styles:[".badge{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);border-radius:.125rem;color:#fff!important}.badge-pill{border-radius:10rem;padding-right:.6rem;padding-left:.6rem}.badge-primary{background-color:#4285f4!important;color:#fff!important}.badge-danger{background-color:#ff3547!important;color:#fff!important}.badge-warning{background-color:#fb3!important;color:#fff!important}.badge-success{background-color:#00c851!important;color:#fff!important}.badge-info{background-color:#33b5e5!important;color:#fff!important}.badge-default{background-color:#2bbbad!important;color:#fff!important}.badge-secondary{background-color:#a6c!important;color:#fff!important}.badge-dark{background-color:#212121!important;color:#fff!important}.badge-light{background-color:#e0e0e0!important;color:#000!important}"],encapsulation:2,changeDetection:0}),t})(),IS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),OS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),AS=(()=>{class t{constructor(t,e){this.el=t,this.renderer=e,this.color="",this.rounded=!1,this.gradient="",this.outline=!1,this.flat=!1,this.size="",this.block=!1,this.floating=!1}ngOnInit(){this.colorClass="btn-"+this.color,this.gradientClass=this.gradient+"-gradient",this.outlineClass="btn-outline-"+this.color,this.flatClass="btn-flat",this.roundedClass="btn-rounded",this.sizeClass="btn-"+this.size,this.blockClass="btn-block",this.floatingClass="btn-floating",this.renderer.addClass(this.el.nativeElement,"btn"),this.initClasses()}ngOnChanges(t){if(t.color&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.color&&""!==this.color&&(this.colorClass="btn-"+this.color,this.renderer.addClass(this.el.nativeElement,this.colorClass)),this.outline)){const t=this.outlineClass;this.outlineClass="btn-outline-"+this.color,this.renderer.removeClass(this.el.nativeElement,t),this.renderer.addClass(this.el.nativeElement,this.outlineClass)}t.gradient&&(this.renderer.removeClass(this.el.nativeElement,this.gradientClass),""!==this.gradient&&(this.gradientClass=this.gradient+"-gradient",this.renderer.addClass(this.el.nativeElement,this.gradientClass))),t.outline&&(this.outline||this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.outline&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.outlineClass)),this.outlineClass="btn-outline-"+this.color),t.flat&&(this.renderer.removeClass(this.el.nativeElement,this.flatClass),this.flat&&(this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.gradient&&this.renderer.removeClass(this.el.nativeElement,this.gradientClass),this.outline&&this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.rounded&&this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.renderer.addClass(this.el.nativeElement,this.flatClass))),t.rounded&&(this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.rounded&&(this.roundedClass="btn-rounded",this.renderer.addClass(this.el.nativeElement,this.roundedClass))),t.size&&(this.renderer.removeClass(this.el.nativeElement,this.sizeClass),""!==this.size&&(this.sizeClass="btn-"+this.size,this.renderer.addClass(this.el.nativeElement,this.sizeClass))),t.block&&(this.renderer.removeClass(this.el.nativeElement,this.blockClass),this.block&&(this.blockClass="btn-block",this.renderer.addClass(this.el.nativeElement,this.blockClass))),t.floating&&(this.floating||(this.renderer.removeClass(this.el.nativeElement,this.floatingClass),this.renderer.addClass(this.el.nativeElement,"btn")),this.floating&&(this.floatingClass="btn-floating",this.renderer.addClass(this.el.nativeElement,this.floatingClass),this.renderer.removeClass(this.el.nativeElement,"btn")))}initClasses(){""!==this.color&&this.renderer.addClass(this.el.nativeElement,this.colorClass),this.rounded&&this.renderer.addClass(this.el.nativeElement,this.roundedClass),this.gradient&&(""!==this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.gradientClass)),this.outline&&(this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.renderer.addClass(this.el.nativeElement,this.outlineClass)),this.flat&&(this.color&&this.renderer.removeClass(this.el.nativeElement,this.colorClass),this.gradient&&this.renderer.removeClass(this.el.nativeElement,this.gradientClass),this.outline&&this.renderer.removeClass(this.el.nativeElement,this.outlineClass),this.rounded&&this.renderer.removeClass(this.el.nativeElement,this.roundedClass),this.renderer.addClass(this.el.nativeElement,this.flatClass)),this.size&&this.renderer.addClass(this.el.nativeElement,this.sizeClass),this.block&&this.renderer.addClass(this.el.nativeElement,this.blockClass),this.floating&&(this.renderer.addClass(this.el.nativeElement,this.floatingClass),this.renderer.removeClass(this.el.nativeElement,"btn"))}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["","mdbBtn",""]],inputs:{color:"color",rounded:"rounded",gradient:"gradient",outline:"outline",flat:"flat",size:"size",block:"block",floating:"floating"},features:[La],attrs:_x,ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},styles:[".btn{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);padding:.84rem 2.14rem;font-size:.81rem;transition:all .2s ease-in-out;margin:.375rem;border:0;border-radius:.125rem;cursor:pointer;text-transform:uppercase;white-space:normal;word-wrap:break-word;color:inherit}.btn:active,.btn:focus,.btn:hover{outline:0}.btn:active,.btn:focus,.btn:hover,.btn:not([disabled]):not(.disabled).active,.btn:not([disabled]):not(.disabled):active{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn .fab,.btn .far,.btn .fas{position:relative;font-size:.9rem}.btn .fab.right,.btn .far.right,.btn .fas.right{margin-left:.3rem}.btn .fab.left,.btn .far.left,.btn .fas.left{margin-right:.3rem}.btn.btn-lg .fab,.btn.btn-lg .far,.btn.btn-lg .fas{font-size:1rem}.btn.btn-md .fab,.btn.btn-md .far,.btn.btn-md .fas{font-size:.8rem}.btn.btn-sm .fab,.btn.btn-sm .far,.btn.btn-sm .fas{font-size:.7rem}.btn.btn-tb{padding:.3rem 1rem}.btn.disabled:active,.btn.disabled:focus,.btn.disabled:hover,.btn:disabled:active,.btn:disabled:focus,.btn:disabled:hover{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.btn.btn-block{margin:inherit}.btn.btn-link{color:#000;box-shadow:none;background-color:transparent}.btn.btn-link:active,.btn.btn-link:focus,.btn.btn-link:hover{box-shadow:none!important;background-color:transparent}.btn[class*=btn-outline-]{padding-top:.7rem;padding-bottom:.7rem}.btn[class*=btn-outline-].btn-lg{padding-top:.88rem;padding-bottom:.88rem}.btn[class*=btn-outline-].btn-md{padding-top:.58rem;padding-bottom:.58rem}.btn[class*=btn-outline-].btn-sm{padding-top:.38rem;padding-bottom:.38rem}.btn-group .btn{margin:0}.btn-floating .fa-lg,.btn .fa-lg{font-size:1.33333em!important}.btn-floating .fa-xs,.btn .fa-xs{font-size:.75em!important}.btn-floating .fa-sm,.btn .fa-sm{font-size:.875em!important}.btn-floating .fa-1x,.btn .fa-1x{font-size:1em!important}.btn-floating .fa-2x,.btn .fa-2x{font-size:2em!important}.btn-floating .fa-3x,.btn .fa-3x{font-size:3em!important}.btn-floating .fa-4x,.btn .fa-4x{font-size:4em!important}.btn-floating .fa-5x,.btn .fa-5x{font-size:5em!important}.btn-floating .fa-6x,.btn .fa-6x{font-size:6em!important}.btn-floating .fa-7x,.btn .fa-7x{font-size:7em!important}.btn-floating .fa-8x,.btn .fa-8x{font-size:8em!important}.btn-floating .fa-9x,.btn .fa-9x{font-size:9em!important}.btn-floating .fa-10x,.btn .fa-10x{font-size:10em!important}.btn-primary{background-color:#4285f4!important;color:#fff}.btn-primary:hover{background-color:#5a95f5;color:#fff}.btn-primary.focus,.btn-primary:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-primary.active,.btn-primary:active,.btn-primary:focus{background-color:#0b51c5}.btn-primary.dropdown-toggle{background-color:#4285f4!important}.btn-primary.dropdown-toggle:focus,.btn-primary.dropdown-toggle:hover{background-color:#5a95f5!important}.btn-primary:not([disabled]):not(.disabled).active,.btn-primary:not([disabled]):not(.disabled):active,.show>.btn-primary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#0b51c5!important}.btn-primary:not([disabled]):not(.disabled).active:focus,.btn-primary:not([disabled]):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.primary-ic{color:#4285f4!important}.primary-ic:focus,.primary-ic:hover{color:#4285f4}table.table a.btn.btn-primary{color:#fff}.btn-outline-primary{border:2px solid #4285f4!important;background-color:transparent!important;color:#4285f4!important}.btn-outline-primary.active,.btn-outline-primary:active,.btn-outline-primary:active:focus,.btn-outline-primary:focus,.btn-outline-primary:hover{border-color:#4285f4!important;background-color:transparent!important;color:#4285f4!important}.btn-outline-primary:not([disabled]):not(.disabled).active,.btn-outline-primary:not([disabled]):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#4285f4!important}.btn-outline-primary:not([disabled]):not(.disabled).active:focus,.btn-outline-primary:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-danger{background-color:#ff3547!important;color:#fff}.btn-danger:hover{background-color:#ff4f5e;color:#fff}.btn-danger.focus,.btn-danger:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-danger.active,.btn-danger:active,.btn-danger:focus{background-color:#ce0012}.btn-danger.dropdown-toggle{background-color:#ff3547!important}.btn-danger.dropdown-toggle:focus,.btn-danger.dropdown-toggle:hover{background-color:#ff4f5e!important}.btn-danger:not([disabled]):not(.disabled).active,.btn-danger:not([disabled]):not(.disabled):active,.show>.btn-danger.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#ce0012!important}.btn-danger:not([disabled]):not(.disabled).active:focus,.btn-danger:not([disabled]):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.danger-ic{color:#ff3547!important}.danger-ic:focus,.danger-ic:hover{color:#ff3547}table.table a.btn.btn-danger{color:#fff}.btn-outline-danger{border:2px solid #ff3547!important;background-color:transparent!important;color:#ff3547!important}.btn-outline-danger.active,.btn-outline-danger:active,.btn-outline-danger:active:focus,.btn-outline-danger:focus,.btn-outline-danger:hover{border-color:#ff3547!important;background-color:transparent!important;color:#ff3547!important}.btn-outline-danger:not([disabled]):not(.disabled).active,.btn-outline-danger:not([disabled]):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ff3547!important}.btn-outline-danger:not([disabled]):not(.disabled).active:focus,.btn-outline-danger:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning{background-color:#fb3!important;color:#fff}.btn-warning:hover{background-color:#ffc44d;color:#fff}.btn-warning.focus,.btn-warning:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning.active,.btn-warning:active,.btn-warning:focus{background-color:#c80}.btn-warning.dropdown-toggle{background-color:#fb3!important}.btn-warning.dropdown-toggle:focus,.btn-warning.dropdown-toggle:hover{background-color:#ffc44d!important}.btn-warning:not([disabled]):not(.disabled).active,.btn-warning:not([disabled]):not(.disabled):active,.show>.btn-warning.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#c80!important}.btn-warning:not([disabled]):not(.disabled).active:focus,.btn-warning:not([disabled]):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.warning-ic{color:#fb3!important}.warning-ic:focus,.warning-ic:hover{color:#fb3}table.table a.btn.btn-warning{color:#fff}.btn-outline-warning{border:2px solid #fb3!important;background-color:transparent!important;color:#fb3!important}.btn-outline-warning.active,.btn-outline-warning:active,.btn-outline-warning:active:focus,.btn-outline-warning:focus,.btn-outline-warning:hover{border-color:#fb3!important;background-color:transparent!important;color:#fb3!important}.btn-outline-warning:not([disabled]):not(.disabled).active,.btn-outline-warning:not([disabled]):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fb3!important}.btn-outline-warning:not([disabled]):not(.disabled).active:focus,.btn-outline-warning:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-success{background-color:#00c851!important;color:#fff}.btn-success:hover{background-color:#00e25b;color:#fff}.btn-success.focus,.btn-success:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-success.active,.btn-success:active,.btn-success:focus{background-color:#006228}.btn-success.dropdown-toggle{background-color:#00c851!important}.btn-success.dropdown-toggle:focus,.btn-success.dropdown-toggle:hover{background-color:#00e25b!important}.btn-success:not([disabled]):not(.disabled).active,.btn-success:not([disabled]):not(.disabled):active,.show>.btn-success.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#006228!important}.btn-success:not([disabled]):not(.disabled).active:focus,.btn-success:not([disabled]):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.success-ic{color:#00c851!important}.success-ic:focus,.success-ic:hover{color:#00c851}table.table a.btn.btn-success{color:#fff}.btn-outline-success{border:2px solid #00c851!important;background-color:transparent!important;color:#00c851!important}.btn-outline-success.active,.btn-outline-success:active,.btn-outline-success:active:focus,.btn-outline-success:focus,.btn-outline-success:hover{border-color:#00c851!important;background-color:transparent!important;color:#00c851!important}.btn-outline-success:not([disabled]):not(.disabled).active,.btn-outline-success:not([disabled]):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00c851!important}.btn-outline-success:not([disabled]):not(.disabled).active:focus,.btn-outline-success:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-info{background-color:#33b5e5!important;color:#fff}.btn-info:hover{background-color:#4abde8;color:#fff}.btn-info.focus,.btn-info:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-info.active,.btn-info:active,.btn-info:focus{background-color:#14799e}.btn-info.dropdown-toggle{background-color:#33b5e5!important}.btn-info.dropdown-toggle:focus,.btn-info.dropdown-toggle:hover{background-color:#4abde8!important}.btn-info:not([disabled]):not(.disabled).active,.btn-info:not([disabled]):not(.disabled):active,.show>.btn-info.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#14799e!important}.btn-info:not([disabled]):not(.disabled).active:focus,.btn-info:not([disabled]):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.info-ic{color:#33b5e5!important}.info-ic:focus,.info-ic:hover{color:#33b5e5}table.table a.btn.btn-info{color:#fff}.btn-outline-info{border:2px solid #33b5e5!important;background-color:transparent!important;color:#33b5e5!important}.btn-outline-info.active,.btn-outline-info:active,.btn-outline-info:active:focus,.btn-outline-info:focus,.btn-outline-info:hover{border-color:#33b5e5!important;background-color:transparent!important;color:#33b5e5!important}.btn-outline-info:not([disabled]):not(.disabled).active,.btn-outline-info:not([disabled]):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#33b5e5!important}.btn-outline-info:not([disabled]):not(.disabled).active:focus,.btn-outline-info:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-default{background-color:#2bbbad!important;color:#fff}.btn-default:hover{background-color:#30cfc0;color:#fff}.btn-default.focus,.btn-default:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-default.active,.btn-default:active,.btn-default:focus{background-color:#186860}.btn-default.dropdown-toggle{background-color:#2bbbad!important}.btn-default.dropdown-toggle:focus,.btn-default.dropdown-toggle:hover{background-color:#30cfc0!important}.btn-default:not([disabled]):not(.disabled).active,.btn-default:not([disabled]):not(.disabled):active,.show>.btn-default.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#186860!important}.btn-default:not([disabled]):not(.disabled).active:focus,.btn-default:not([disabled]):not(.disabled):active:focus,.show>.btn-default.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.default-ic{color:#2bbbad!important}.default-ic:focus,.default-ic:hover{color:#2bbbad}table.table a.btn.btn-default{color:#fff}.btn-outline-default{border:2px solid #2bbbad!important;background-color:transparent!important;color:#2bbbad!important}.btn-outline-default.active,.btn-outline-default:active,.btn-outline-default:active:focus,.btn-outline-default:focus,.btn-outline-default:hover{border-color:#2bbbad!important;background-color:transparent!important;color:#2bbbad!important}.btn-outline-default:not([disabled]):not(.disabled).active,.btn-outline-default:not([disabled]):not(.disabled):active,.show>.btn-outline-default.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#2bbbad!important}.btn-outline-default:not([disabled]):not(.disabled).active:focus,.btn-outline-default:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-default.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-secondary{background-color:#a6c!important;color:#fff}.btn-secondary:hover{background-color:#b579d2;color:#fff}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-secondary.active,.btn-secondary:active,.btn-secondary:focus{background-color:#739}.btn-secondary.dropdown-toggle{background-color:#a6c!important}.btn-secondary.dropdown-toggle:focus,.btn-secondary.dropdown-toggle:hover{background-color:#b579d2!important}.btn-secondary:not([disabled]):not(.disabled).active,.btn-secondary:not([disabled]):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#739!important}.btn-secondary:not([disabled]):not(.disabled).active:focus,.btn-secondary:not([disabled]):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.secondary-ic{color:#a6c!important}.secondary-ic:focus,.secondary-ic:hover{color:#a6c}table.table a.btn.btn-secondary{color:#fff}.btn-outline-secondary{border:2px solid #a6c!important;background-color:transparent!important;color:#a6c!important}.btn-outline-secondary.active,.btn-outline-secondary:active,.btn-outline-secondary:active:focus,.btn-outline-secondary:focus,.btn-outline-secondary:hover{border-color:#a6c!important;background-color:transparent!important;color:#a6c!important}.btn-outline-secondary:not([disabled]):not(.disabled).active,.btn-outline-secondary:not([disabled]):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#a6c!important}.btn-outline-secondary:not([disabled]):not(.disabled).active:focus,.btn-outline-secondary:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-elegant{background-color:#2e2e2e!important;color:#fff}.btn-elegant:hover{background-color:#3b3b3b;color:#fff}.btn-elegant.focus,.btn-elegant:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-elegant.active,.btn-elegant:active,.btn-elegant:focus{background-color:#000}.btn-elegant.dropdown-toggle{background-color:#2e2e2e!important}.btn-elegant.dropdown-toggle:focus,.btn-elegant.dropdown-toggle:hover{background-color:#3b3b3b!important}.btn-elegant:not([disabled]):not(.disabled).active,.btn-elegant:not([disabled]):not(.disabled):active,.show>.btn-elegant.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-elegant:not([disabled]):not(.disabled).active:focus,.btn-elegant:not([disabled]):not(.disabled):active:focus,.show>.btn-elegant.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.elegant-ic{color:#2e2e2e!important}.elegant-ic:focus,.elegant-ic:hover{color:#2e2e2e}table.table a.btn.btn-elegant{color:#fff}.btn-outline-elegant{border:2px solid #2e2e2e!important;background-color:transparent!important;color:#2e2e2e!important}.btn-outline-elegant.active,.btn-outline-elegant:active,.btn-outline-elegant:active:focus,.btn-outline-elegant:focus,.btn-outline-elegant:hover{border-color:#2e2e2e!important;background-color:transparent!important;color:#2e2e2e!important}.btn-outline-elegant:not([disabled]):not(.disabled).active,.btn-outline-elegant:not([disabled]):not(.disabled):active,.show>.btn-outline-elegant.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#2e2e2e!important}.btn-outline-elegant:not([disabled]):not(.disabled).active:focus,.btn-outline-elegant:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-elegant.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-unique{background-color:#880e4f!important;color:#fff}.btn-unique:hover{background-color:#9f105c;color:#fff}.btn-unique.focus,.btn-unique:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-unique.active,.btn-unique:active,.btn-unique:focus{background-color:#2c0419}.btn-unique.dropdown-toggle{background-color:#880e4f!important}.btn-unique.dropdown-toggle:focus,.btn-unique.dropdown-toggle:hover{background-color:#9f105c!important}.btn-unique:not([disabled]):not(.disabled).active,.btn-unique:not([disabled]):not(.disabled):active,.show>.btn-unique.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2c0419!important}.btn-unique:not([disabled]):not(.disabled).active:focus,.btn-unique:not([disabled]):not(.disabled):active:focus,.show>.btn-unique.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.unique-ic{color:#880e4f!important}.unique-ic:focus,.unique-ic:hover{color:#880e4f}table.table a.btn.btn-unique{color:#fff}.btn-outline-unique{border:2px solid #880e4f!important;background-color:transparent!important;color:#880e4f!important}.btn-outline-unique.active,.btn-outline-unique:active,.btn-outline-unique:active:focus,.btn-outline-unique:focus,.btn-outline-unique:hover{border-color:#880e4f!important;background-color:transparent!important;color:#880e4f!important}.btn-outline-unique:not([disabled]):not(.disabled).active,.btn-outline-unique:not([disabled]):not(.disabled):active,.show>.btn-outline-unique.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#880e4f!important}.btn-outline-unique:not([disabled]):not(.disabled).active:focus,.btn-outline-unique:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-unique.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark-green{background-color:#388e3c!important;color:#fff}.btn-dark-green:hover{background-color:#3fa044;color:#fff}.btn-dark-green.focus,.btn-dark-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark-green.active,.btn-dark-green:active,.btn-dark-green:focus{background-color:#1b451d}.btn-dark-green.dropdown-toggle{background-color:#388e3c!important}.btn-dark-green.dropdown-toggle:focus,.btn-dark-green.dropdown-toggle:hover{background-color:#3fa044!important}.btn-dark-green:not([disabled]):not(.disabled).active,.btn-dark-green:not([disabled]):not(.disabled):active,.show>.btn-dark-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1b451d!important}.btn-dark-green:not([disabled]):not(.disabled).active:focus,.btn-dark-green:not([disabled]):not(.disabled):active:focus,.show>.btn-dark-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.dark-green-ic{color:#388e3c!important}.dark-green-ic:focus,.dark-green-ic:hover{color:#388e3c}table.table a.btn.btn-dark-green{color:#fff}.btn-outline-dark-green{border:2px solid #388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-dark-green.active,.btn-outline-dark-green:active,.btn-outline-dark-green:active:focus,.btn-outline-dark-green:focus,.btn-outline-dark-green:hover{border-color:#388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-dark-green:not([disabled]):not(.disabled).active,.btn-outline-dark-green:not([disabled]):not(.disabled):active,.show>.btn-outline-dark-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#388e3c!important}.btn-outline-dark-green:not([disabled]):not(.disabled).active:focus,.btn-outline-dark-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-dark-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-mdb-color{background-color:#59698d!important;color:#fff}.btn-mdb-color:hover{background-color:#63759d;color:#fff}.btn-mdb-color.focus,.btn-mdb-color:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-mdb-color.active,.btn-mdb-color:active,.btn-mdb-color:focus{background-color:#323a4e}.btn-mdb-color.dropdown-toggle{background-color:#59698d!important}.btn-mdb-color.dropdown-toggle:focus,.btn-mdb-color.dropdown-toggle:hover{background-color:#63759d!important}.btn-mdb-color:not([disabled]):not(.disabled).active,.btn-mdb-color:not([disabled]):not(.disabled):active,.show>.btn-mdb-color.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#323a4e!important}.btn-mdb-color:not([disabled]):not(.disabled).active:focus,.btn-mdb-color:not([disabled]):not(.disabled):active:focus,.show>.btn-mdb-color.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.mdb-color-ic{color:#59698d!important}.mdb-color-ic:focus,.mdb-color-ic:hover{color:#59698d}table.table a.btn.btn-mdb-color{color:#fff}.btn-outline-mdb-color{border:2px solid #59698d!important;background-color:transparent!important;color:#59698d!important}.btn-outline-mdb-color.active,.btn-outline-mdb-color:active,.btn-outline-mdb-color:active:focus,.btn-outline-mdb-color:focus,.btn-outline-mdb-color:hover{border-color:#59698d!important;background-color:transparent!important;color:#59698d!important}.btn-outline-mdb-color:not([disabled]):not(.disabled).active,.btn-outline-mdb-color:not([disabled]):not(.disabled):active,.show>.btn-outline-mdb-color.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#59698d!important}.btn-outline-mdb-color:not([disabled]):not(.disabled).active:focus,.btn-outline-mdb-color:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-mdb-color.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-red{background-color:#d32f2f!important;color:#fff}.btn-red:hover{background-color:#d74444;color:#fff}.btn-red.focus,.btn-red:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-red.active,.btn-red:active,.btn-red:focus{background-color:#811b1b}.btn-red.dropdown-toggle{background-color:#d32f2f!important}.btn-red.dropdown-toggle:focus,.btn-red.dropdown-toggle:hover{background-color:#d74444!important}.btn-red:not([disabled]):not(.disabled).active,.btn-red:not([disabled]):not(.disabled):active,.show>.btn-red.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#811b1b!important}.btn-red:not([disabled]):not(.disabled).active:focus,.btn-red:not([disabled]):not(.disabled):active:focus,.show>.btn-red.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.red-ic{color:#d32f2f!important}.red-ic:focus,.red-ic:hover{color:#d32f2f}table.table a.btn.btn-red{color:#fff}.btn-outline-red{border:2px solid #d32f2f!important;background-color:transparent!important;color:#d32f2f!important}.btn-outline-red.active,.btn-outline-red:active,.btn-outline-red:active:focus,.btn-outline-red:focus,.btn-outline-red:hover{border-color:#d32f2f!important;background-color:transparent!important;color:#d32f2f!important}.btn-outline-red:not([disabled]):not(.disabled).active,.btn-outline-red:not([disabled]):not(.disabled):active,.show>.btn-outline-red.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#d32f2f!important}.btn-outline-red:not([disabled]):not(.disabled).active:focus,.btn-outline-red:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-red.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-pink{background-color:#ec407a!important;color:#fff}.btn-pink:hover{background-color:#ee578a;color:#fff}.btn-pink.focus,.btn-pink:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-pink.active,.btn-pink:active,.btn-pink:focus{background-color:#b41249}.btn-pink.dropdown-toggle{background-color:#ec407a!important}.btn-pink.dropdown-toggle:focus,.btn-pink.dropdown-toggle:hover{background-color:#ee578a!important}.btn-pink:not([disabled]):not(.disabled).active,.btn-pink:not([disabled]):not(.disabled):active,.show>.btn-pink.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#b41249!important}.btn-pink:not([disabled]):not(.disabled).active:focus,.btn-pink:not([disabled]):not(.disabled):active:focus,.show>.btn-pink.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.pink-ic{color:#ec407a!important}.pink-ic:focus,.pink-ic:hover{color:#ec407a}table.table a.btn.btn-pink{color:#fff}.btn-outline-pink{border:2px solid #ec407a!important;background-color:transparent!important;color:#ec407a!important}.btn-outline-pink.active,.btn-outline-pink:active,.btn-outline-pink:active:focus,.btn-outline-pink:focus,.btn-outline-pink:hover{border-color:#ec407a!important;background-color:transparent!important;color:#ec407a!important}.btn-outline-pink:not([disabled]):not(.disabled).active,.btn-outline-pink:not([disabled]):not(.disabled):active,.show>.btn-outline-pink.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ec407a!important}.btn-outline-pink:not([disabled]):not(.disabled).active:focus,.btn-outline-pink:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-pink.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-purple{background-color:#8e24aa!important;color:#fff}.btn-purple:hover{background-color:#a028bf;color:#fff}.btn-purple.focus,.btn-purple:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-purple.active,.btn-purple:active,.btn-purple:focus{background-color:#481256}.btn-purple.dropdown-toggle{background-color:#8e24aa!important}.btn-purple.dropdown-toggle:focus,.btn-purple.dropdown-toggle:hover{background-color:#a028bf!important}.btn-purple:not([disabled]):not(.disabled).active,.btn-purple:not([disabled]):not(.disabled):active,.show>.btn-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#481256!important}.btn-purple:not([disabled]):not(.disabled).active:focus,.btn-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.purple-ic{color:#8e24aa!important}.purple-ic:focus,.purple-ic:hover{color:#8e24aa}table.table a.btn.btn-purple{color:#fff}.btn-outline-purple{border:2px solid #8e24aa!important;background-color:transparent!important;color:#8e24aa!important}.btn-outline-purple.active,.btn-outline-purple:active,.btn-outline-purple:active:focus,.btn-outline-purple:focus,.btn-outline-purple:hover{border-color:#8e24aa!important;background-color:transparent!important;color:#8e24aa!important}.btn-outline-purple:not([disabled]):not(.disabled).active,.btn-outline-purple:not([disabled]):not(.disabled):active,.show>.btn-outline-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#8e24aa!important}.btn-outline-purple:not([disabled]):not(.disabled).active:focus,.btn-outline-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-purple{background-color:#512da8!important;color:#fff}.btn-deep-purple:hover{background-color:#5b32bc;color:#fff}.btn-deep-purple.focus,.btn-deep-purple:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-purple.active,.btn-deep-purple:active,.btn-deep-purple:focus{background-color:#2a1758}.btn-deep-purple.dropdown-toggle{background-color:#512da8!important}.btn-deep-purple.dropdown-toggle:focus,.btn-deep-purple.dropdown-toggle:hover{background-color:#5b32bc!important}.btn-deep-purple:not([disabled]):not(.disabled).active,.btn-deep-purple:not([disabled]):not(.disabled):active,.show>.btn-deep-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2a1758!important}.btn-deep-purple:not([disabled]):not(.disabled).active:focus,.btn-deep-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-deep-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.deep-purple-ic{color:#512da8!important}.deep-purple-ic:focus,.deep-purple-ic:hover{color:#512da8}table.table a.btn.btn-deep-purple{color:#fff}.btn-outline-deep-purple{border:2px solid #512da8!important;background-color:transparent!important;color:#512da8!important}.btn-outline-deep-purple.active,.btn-outline-deep-purple:active,.btn-outline-deep-purple:active:focus,.btn-outline-deep-purple:focus,.btn-outline-deep-purple:hover{border-color:#512da8!important;background-color:transparent!important;color:#512da8!important}.btn-outline-deep-purple:not([disabled]):not(.disabled).active,.btn-outline-deep-purple:not([disabled]):not(.disabled):active,.show>.btn-outline-deep-purple.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#512da8!important}.btn-outline-deep-purple:not([disabled]):not(.disabled).active:focus,.btn-outline-deep-purple:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-deep-purple.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-indigo{background-color:#3f51b5!important;color:#fff}.btn-indigo:hover{background-color:#4d5ec1;color:#fff}.btn-indigo.focus,.btn-indigo:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-indigo.active,.btn-indigo:active,.btn-indigo:focus{background-color:#252f69}.btn-indigo.dropdown-toggle{background-color:#3f51b5!important}.btn-indigo.dropdown-toggle:focus,.btn-indigo.dropdown-toggle:hover{background-color:#4d5ec1!important}.btn-indigo:not([disabled]):not(.disabled).active,.btn-indigo:not([disabled]):not(.disabled):active,.show>.btn-indigo.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#252f69!important}.btn-indigo:not([disabled]):not(.disabled).active:focus,.btn-indigo:not([disabled]):not(.disabled):active:focus,.show>.btn-indigo.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.indigo-ic{color:#3f51b5!important}.indigo-ic:focus,.indigo-ic:hover{color:#3f51b5}table.table a.btn.btn-indigo{color:#fff}.btn-outline-indigo{border:2px solid #3f51b5!important;background-color:transparent!important;color:#3f51b5!important}.btn-outline-indigo.active,.btn-outline-indigo:active,.btn-outline-indigo:active:focus,.btn-outline-indigo:focus,.btn-outline-indigo:hover{border-color:#3f51b5!important;background-color:transparent!important;color:#3f51b5!important}.btn-outline-indigo:not([disabled]):not(.disabled).active,.btn-outline-indigo:not([disabled]):not(.disabled):active,.show>.btn-outline-indigo.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#3f51b5!important}.btn-outline-indigo:not([disabled]):not(.disabled).active:focus,.btn-outline-indigo:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-indigo.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue{background-color:#1976d2!important;color:#fff}.btn-blue:hover{background-color:#2083e4;color:#fff}.btn-blue.focus,.btn-blue:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue.active,.btn-blue:active,.btn-blue:focus{background-color:#0e4377}.btn-blue.dropdown-toggle{background-color:#1976d2!important}.btn-blue.dropdown-toggle:focus,.btn-blue.dropdown-toggle:hover{background-color:#2083e4!important}.btn-blue:not([disabled]):not(.disabled).active,.btn-blue:not([disabled]):not(.disabled):active,.show>.btn-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#0e4377!important}.btn-blue:not([disabled]):not(.disabled).active:focus,.btn-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.blue-ic{color:#1976d2!important}.blue-ic:focus,.blue-ic:hover{color:#1976d2}table.table a.btn.btn-blue{color:#fff}.btn-outline-blue{border:2px solid #1976d2!important;background-color:transparent!important;color:#1976d2!important}.btn-outline-blue.active,.btn-outline-blue:active,.btn-outline-blue:active:focus,.btn-outline-blue:focus,.btn-outline-blue:hover{border-color:#1976d2!important;background-color:transparent!important;color:#1976d2!important}.btn-outline-blue:not([disabled]):not(.disabled).active,.btn-outline-blue:not([disabled]):not(.disabled):active,.show>.btn-outline-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#1976d2!important}.btn-outline-blue:not([disabled]):not(.disabled).active:focus,.btn-outline-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-blue{background-color:#82b1ff!important;color:#fff}.btn-light-blue:hover{background-color:#9cc1ff;color:#fff}.btn-light-blue.focus,.btn-light-blue:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-blue.active,.btn-light-blue:active,.btn-light-blue:focus{background-color:#1c71ff}.btn-light-blue.dropdown-toggle{background-color:#82b1ff!important}.btn-light-blue.dropdown-toggle:focus,.btn-light-blue.dropdown-toggle:hover{background-color:#9cc1ff!important}.btn-light-blue:not([disabled]):not(.disabled).active,.btn-light-blue:not([disabled]):not(.disabled):active,.show>.btn-light-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1c71ff!important}.btn-light-blue:not([disabled]):not(.disabled).active:focus,.btn-light-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-light-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-blue-ic{color:#82b1ff!important}.light-blue-ic:focus,.light-blue-ic:hover{color:#82b1ff}table.table a.btn.btn-light-blue{color:#fff}.btn-outline-light-blue{border:2px solid #82b1ff!important;background-color:transparent!important;color:#82b1ff!important}.btn-outline-light-blue.active,.btn-outline-light-blue:active,.btn-outline-light-blue:active:focus,.btn-outline-light-blue:focus,.btn-outline-light-blue:hover{border-color:#82b1ff!important;background-color:transparent!important;color:#82b1ff!important}.btn-outline-light-blue:not([disabled]):not(.disabled).active,.btn-outline-light-blue:not([disabled]):not(.disabled):active,.show>.btn-outline-light-blue.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#82b1ff!important}.btn-outline-light-blue:not([disabled]):not(.disabled).active:focus,.btn-outline-light-blue:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light-blue.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-cyan{background-color:#00bcd4!important;color:#fff}.btn-cyan:hover{background-color:#00d3ee;color:#fff}.btn-cyan.focus,.btn-cyan:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-cyan.active,.btn-cyan:active,.btn-cyan:focus{background-color:#00626e}.btn-cyan.dropdown-toggle{background-color:#00bcd4!important}.btn-cyan.dropdown-toggle:focus,.btn-cyan.dropdown-toggle:hover{background-color:#00d3ee!important}.btn-cyan:not([disabled]):not(.disabled).active,.btn-cyan:not([disabled]):not(.disabled):active,.show>.btn-cyan.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#00626e!important}.btn-cyan:not([disabled]):not(.disabled).active:focus,.btn-cyan:not([disabled]):not(.disabled):active:focus,.show>.btn-cyan.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.cyan-ic{color:#00bcd4!important}.cyan-ic:focus,.cyan-ic:hover{color:#00bcd4}table.table a.btn.btn-cyan{color:#fff}.btn-outline-cyan{border:2px solid #00bcd4!important;background-color:transparent!important;color:#00bcd4!important}.btn-outline-cyan.active,.btn-outline-cyan:active,.btn-outline-cyan:active:focus,.btn-outline-cyan:focus,.btn-outline-cyan:hover{border-color:#00bcd4!important;background-color:transparent!important;color:#00bcd4!important}.btn-outline-cyan:not([disabled]):not(.disabled).active,.btn-outline-cyan:not([disabled]):not(.disabled):active,.show>.btn-outline-cyan.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00bcd4!important}.btn-outline-cyan:not([disabled]):not(.disabled).active:focus,.btn-outline-cyan:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-cyan.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-teal{background-color:#00796b!important;color:#fff}.btn-teal:hover{background-color:#009382;color:#fff}.btn-teal.focus,.btn-teal:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-teal.active,.btn-teal:active,.btn-teal:focus{background-color:#001311}.btn-teal.dropdown-toggle{background-color:#00796b!important}.btn-teal.dropdown-toggle:focus,.btn-teal.dropdown-toggle:hover{background-color:#009382!important}.btn-teal:not([disabled]):not(.disabled).active,.btn-teal:not([disabled]):not(.disabled):active,.show>.btn-teal.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#001311!important}.btn-teal:not([disabled]):not(.disabled).active:focus,.btn-teal:not([disabled]):not(.disabled):active:focus,.show>.btn-teal.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.teal-ic{color:#00796b!important}.teal-ic:focus,.teal-ic:hover{color:#00796b}table.table a.btn.btn-teal{color:#fff}.btn-outline-teal{border:2px solid #00796b!important;background-color:transparent!important;color:#00796b!important}.btn-outline-teal.active,.btn-outline-teal:active,.btn-outline-teal:active:focus,.btn-outline-teal:focus,.btn-outline-teal:hover{border-color:#00796b!important;background-color:transparent!important;color:#00796b!important}.btn-outline-teal:not([disabled]):not(.disabled).active,.btn-outline-teal:not([disabled]):not(.disabled):active,.show>.btn-outline-teal.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#00796b!important}.btn-outline-teal:not([disabled]):not(.disabled).active:focus,.btn-outline-teal:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-teal.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-green{background-color:#388e3c!important;color:#fff}.btn-green:hover{background-color:#3fa044;color:#fff}.btn-green.focus,.btn-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-green.active,.btn-green:active,.btn-green:focus{background-color:#1b451d}.btn-green.dropdown-toggle{background-color:#388e3c!important}.btn-green.dropdown-toggle:focus,.btn-green.dropdown-toggle:hover{background-color:#3fa044!important}.btn-green:not([disabled]):not(.disabled).active,.btn-green:not([disabled]):not(.disabled):active,.show>.btn-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#1b451d!important}.btn-green:not([disabled]):not(.disabled).active:focus,.btn-green:not([disabled]):not(.disabled):active:focus,.show>.btn-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.green-ic{color:#388e3c!important}.green-ic:focus,.green-ic:hover{color:#388e3c}table.table a.btn.btn-green{color:#fff}.btn-outline-green{border:2px solid #388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-green.active,.btn-outline-green:active,.btn-outline-green:active:focus,.btn-outline-green:focus,.btn-outline-green:hover{border-color:#388e3c!important;background-color:transparent!important;color:#388e3c!important}.btn-outline-green:not([disabled]):not(.disabled).active,.btn-outline-green:not([disabled]):not(.disabled):active,.show>.btn-outline-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#388e3c!important}.btn-outline-green:not([disabled]):not(.disabled).active:focus,.btn-outline-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-green{background-color:#8bc34a!important;color:#fff}.btn-light-green:hover{background-color:#97c95d;color:#fff}.btn-light-green.focus,.btn-light-green:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light-green.active,.btn-light-green:active,.btn-light-green:focus{background-color:#577d2a}.btn-light-green.dropdown-toggle{background-color:#8bc34a!important}.btn-light-green.dropdown-toggle:focus,.btn-light-green.dropdown-toggle:hover{background-color:#97c95d!important}.btn-light-green:not([disabled]):not(.disabled).active,.btn-light-green:not([disabled]):not(.disabled):active,.show>.btn-light-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#577d2a!important}.btn-light-green:not([disabled]):not(.disabled).active:focus,.btn-light-green:not([disabled]):not(.disabled):active:focus,.show>.btn-light-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-green-ic{color:#8bc34a!important}.light-green-ic:focus,.light-green-ic:hover{color:#8bc34a}table.table a.btn.btn-light-green{color:#fff}.btn-outline-light-green{border:2px solid #8bc34a!important;background-color:transparent!important;color:#8bc34a!important}.btn-outline-light-green.active,.btn-outline-light-green:active,.btn-outline-light-green:active:focus,.btn-outline-light-green:focus,.btn-outline-light-green:hover{border-color:#8bc34a!important;background-color:transparent!important;color:#8bc34a!important}.btn-outline-light-green:not([disabled]):not(.disabled).active,.btn-outline-light-green:not([disabled]):not(.disabled):active,.show>.btn-outline-light-green.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#8bc34a!important}.btn-outline-light-green:not([disabled]):not(.disabled).active:focus,.btn-outline-light-green:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light-green.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-lime{background-color:#afb42b!important;color:#fff}.btn-lime:hover{background-color:#c3c930;color:#fff}.btn-lime.focus,.btn-lime:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-lime.active,.btn-lime:active,.btn-lime:focus{background-color:#5f6217}.btn-lime.dropdown-toggle{background-color:#afb42b!important}.btn-lime.dropdown-toggle:focus,.btn-lime.dropdown-toggle:hover{background-color:#c3c930!important}.btn-lime:not([disabled]):not(.disabled).active,.btn-lime:not([disabled]):not(.disabled):active,.show>.btn-lime.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#5f6217!important}.btn-lime:not([disabled]):not(.disabled).active:focus,.btn-lime:not([disabled]):not(.disabled):active:focus,.show>.btn-lime.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.lime-ic{color:#afb42b!important}.lime-ic:focus,.lime-ic:hover{color:#afb42b}table.table a.btn.btn-lime{color:#fff}.btn-outline-lime{border:2px solid #afb42b!important;background-color:transparent!important;color:#afb42b!important}.btn-outline-lime.active,.btn-outline-lime:active,.btn-outline-lime:active:focus,.btn-outline-lime:focus,.btn-outline-lime:hover{border-color:#afb42b!important;background-color:transparent!important;color:#afb42b!important}.btn-outline-lime:not([disabled]):not(.disabled).active,.btn-outline-lime:not([disabled]):not(.disabled):active,.show>.btn-outline-lime.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#afb42b!important}.btn-outline-lime:not([disabled]):not(.disabled).active:focus,.btn-outline-lime:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-lime.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-yellow{background-color:#fbc02d!important;color:#fff}.btn-yellow:hover{background-color:#fbc846;color:#fff}.btn-yellow.focus,.btn-yellow:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-yellow.active,.btn-yellow:active,.btn-yellow:focus{background-color:#be8904}.btn-yellow.dropdown-toggle{background-color:#fbc02d!important}.btn-yellow.dropdown-toggle:focus,.btn-yellow.dropdown-toggle:hover{background-color:#fbc846!important}.btn-yellow:not([disabled]):not(.disabled).active,.btn-yellow:not([disabled]):not(.disabled):active,.show>.btn-yellow.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#be8904!important}.btn-yellow:not([disabled]):not(.disabled).active:focus,.btn-yellow:not([disabled]):not(.disabled):active:focus,.show>.btn-yellow.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.yellow-ic{color:#fbc02d!important}.yellow-ic:focus,.yellow-ic:hover{color:#fbc02d}table.table a.btn.btn-yellow{color:#fff}.btn-outline-yellow{border:2px solid #fbc02d!important;background-color:transparent!important;color:#fbc02d!important}.btn-outline-yellow.active,.btn-outline-yellow:active,.btn-outline-yellow:active:focus,.btn-outline-yellow:focus,.btn-outline-yellow:hover{border-color:#fbc02d!important;background-color:transparent!important;color:#fbc02d!important}.btn-outline-yellow:not([disabled]):not(.disabled).active,.btn-outline-yellow:not([disabled]):not(.disabled):active,.show>.btn-outline-yellow.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fbc02d!important}.btn-outline-yellow:not([disabled]):not(.disabled).active:focus,.btn-outline-yellow:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-yellow.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-amber{background-color:#ffa000!important;color:#fff}.btn-amber:hover{background-color:#ffaa1a;color:#fff}.btn-amber.focus,.btn-amber:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-amber.active,.btn-amber:active,.btn-amber:focus{background-color:#996000}.btn-amber.dropdown-toggle{background-color:#ffa000!important}.btn-amber.dropdown-toggle:focus,.btn-amber.dropdown-toggle:hover{background-color:#ffaa1a!important}.btn-amber:not([disabled]):not(.disabled).active,.btn-amber:not([disabled]):not(.disabled):active,.show>.btn-amber.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#996000!important}.btn-amber:not([disabled]):not(.disabled).active:focus,.btn-amber:not([disabled]):not(.disabled):active:focus,.show>.btn-amber.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.amber-ic{color:#ffa000!important}.amber-ic:focus,.amber-ic:hover{color:#ffa000}table.table a.btn.btn-amber{color:#fff}.btn-outline-amber{border:2px solid #ffa000!important;background-color:transparent!important;color:#ffa000!important}.btn-outline-amber.active,.btn-outline-amber:active,.btn-outline-amber:active:focus,.btn-outline-amber:focus,.btn-outline-amber:hover{border-color:#ffa000!important;background-color:transparent!important;color:#ffa000!important}.btn-outline-amber:not([disabled]):not(.disabled).active,.btn-outline-amber:not([disabled]):not(.disabled):active,.show>.btn-outline-amber.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ffa000!important}.btn-outline-amber:not([disabled]):not(.disabled).active:focus,.btn-outline-amber:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-amber.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-orange{background-color:#f57c00!important;color:#fff}.btn-orange:hover{background-color:#ff8910;color:#fff}.btn-orange.focus,.btn-orange:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-orange.active,.btn-orange:active,.btn-orange:focus{background-color:#8f4800}.btn-orange.dropdown-toggle{background-color:#f57c00!important}.btn-orange.dropdown-toggle:focus,.btn-orange.dropdown-toggle:hover{background-color:#ff8910!important}.btn-orange:not([disabled]):not(.disabled).active,.btn-orange:not([disabled]):not(.disabled):active,.show>.btn-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#8f4800!important}.btn-orange:not([disabled]):not(.disabled).active:focus,.btn-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.orange-ic{color:#f57c00!important}.orange-ic:focus,.orange-ic:hover{color:#f57c00}table.table a.btn.btn-orange{color:#fff}.btn-outline-orange{border:2px solid #f57c00!important;background-color:transparent!important;color:#f57c00!important}.btn-outline-orange.active,.btn-outline-orange:active,.btn-outline-orange:active:focus,.btn-outline-orange:focus,.btn-outline-orange:hover{border-color:#f57c00!important;background-color:transparent!important;color:#f57c00!important}.btn-outline-orange:not([disabled]):not(.disabled).active,.btn-outline-orange:not([disabled]):not(.disabled):active,.show>.btn-outline-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#f57c00!important}.btn-outline-orange:not([disabled]):not(.disabled).active:focus,.btn-outline-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-orange{background-color:#ff7043!important;color:#fff}.btn-deep-orange:hover{background-color:#ff835d;color:#fff}.btn-deep-orange.focus,.btn-deep-orange:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-deep-orange.active,.btn-deep-orange:active,.btn-deep-orange:focus{background-color:#dc3500}.btn-deep-orange.dropdown-toggle{background-color:#ff7043!important}.btn-deep-orange.dropdown-toggle:focus,.btn-deep-orange.dropdown-toggle:hover{background-color:#ff835d!important}.btn-deep-orange:not([disabled]):not(.disabled).active,.btn-deep-orange:not([disabled]):not(.disabled):active,.show>.btn-deep-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#dc3500!important}.btn-deep-orange:not([disabled]):not(.disabled).active:focus,.btn-deep-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-deep-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.deep-orange-ic{color:#ff7043!important}.deep-orange-ic:focus,.deep-orange-ic:hover{color:#ff7043}table.table a.btn.btn-deep-orange{color:#fff}.btn-outline-deep-orange{border:2px solid #ff7043!important;background-color:transparent!important;color:#ff7043!important}.btn-outline-deep-orange.active,.btn-outline-deep-orange:active,.btn-outline-deep-orange:active:focus,.btn-outline-deep-orange:focus,.btn-outline-deep-orange:hover{border-color:#ff7043!important;background-color:transparent!important;color:#ff7043!important}.btn-outline-deep-orange:not([disabled]):not(.disabled).active,.btn-outline-deep-orange:not([disabled]):not(.disabled):active,.show>.btn-outline-deep-orange.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#ff7043!important}.btn-outline-deep-orange:not([disabled]):not(.disabled).active:focus,.btn-outline-deep-orange:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-deep-orange.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-brown{background-color:#795548!important;color:#fff}.btn-brown:hover{background-color:#896052;color:#fff}.btn-brown.focus,.btn-brown:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-brown.active,.btn-brown:active,.btn-brown:focus{background-color:#392822}.btn-brown.dropdown-toggle{background-color:#795548!important}.btn-brown.dropdown-toggle:focus,.btn-brown.dropdown-toggle:hover{background-color:#896052!important}.btn-brown:not([disabled]):not(.disabled).active,.btn-brown:not([disabled]):not(.disabled):active,.show>.btn-brown.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#392822!important}.btn-brown:not([disabled]):not(.disabled).active:focus,.btn-brown:not([disabled]):not(.disabled):active:focus,.show>.btn-brown.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.brown-ic{color:#795548!important}.brown-ic:focus,.brown-ic:hover{color:#795548}table.table a.btn.btn-brown{color:#fff}.btn-outline-brown{border:2px solid #795548!important;background-color:transparent!important;color:#795548!important}.btn-outline-brown.active,.btn-outline-brown:active,.btn-outline-brown:active:focus,.btn-outline-brown:focus,.btn-outline-brown:hover{border-color:#795548!important;background-color:transparent!important;color:#795548!important}.btn-outline-brown:not([disabled]):not(.disabled).active,.btn-outline-brown:not([disabled]):not(.disabled):active,.show>.btn-outline-brown.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#795548!important}.btn-outline-brown:not([disabled]):not(.disabled).active:focus,.btn-outline-brown:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-brown.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-grey{background-color:#616161!important;color:#fff}.btn-grey:hover{background-color:#6e6e6e;color:#fff}.btn-grey.focus,.btn-grey:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-grey.active,.btn-grey:active,.btn-grey:focus{background-color:#2e2e2e}.btn-grey.dropdown-toggle{background-color:#616161!important}.btn-grey.dropdown-toggle:focus,.btn-grey.dropdown-toggle:hover{background-color:#6e6e6e!important}.btn-grey:not([disabled]):not(.disabled).active,.btn-grey:not([disabled]):not(.disabled):active,.show>.btn-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#2e2e2e!important}.btn-grey:not([disabled]):not(.disabled).active:focus,.btn-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.grey-ic{color:#616161!important}.grey-ic:focus,.grey-ic:hover{color:#616161}table.table a.btn.btn-grey{color:#fff}.btn-outline-grey{border:2px solid #616161!important;background-color:transparent!important;color:#616161!important}.btn-outline-grey.active,.btn-outline-grey:active,.btn-outline-grey:active:focus,.btn-outline-grey:focus,.btn-outline-grey:hover{border-color:#616161!important;background-color:transparent!important;color:#616161!important}.btn-outline-grey:not([disabled]):not(.disabled).active,.btn-outline-grey:not([disabled]):not(.disabled):active,.show>.btn-outline-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#616161!important}.btn-outline-grey:not([disabled]):not(.disabled).active:focus,.btn-outline-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue-grey{background-color:#78909c!important;color:#fff}.btn-blue-grey:hover{background-color:#879ca7;color:#fff}.btn-blue-grey.focus,.btn-blue-grey:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-blue-grey.active,.btn-blue-grey:active,.btn-blue-grey:focus{background-color:#4a5b64}.btn-blue-grey.dropdown-toggle{background-color:#78909c!important}.btn-blue-grey.dropdown-toggle:focus,.btn-blue-grey.dropdown-toggle:hover{background-color:#879ca7!important}.btn-blue-grey:not([disabled]):not(.disabled).active,.btn-blue-grey:not([disabled]):not(.disabled):active,.show>.btn-blue-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#4a5b64!important}.btn-blue-grey:not([disabled]):not(.disabled).active:focus,.btn-blue-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-blue-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.blue-grey-ic{color:#78909c!important}.blue-grey-ic:focus,.blue-grey-ic:hover{color:#78909c}table.table a.btn.btn-blue-grey{color:#fff}.btn-outline-blue-grey{border:2px solid #78909c!important;background-color:transparent!important;color:#78909c!important}.btn-outline-blue-grey.active,.btn-outline-blue-grey:active,.btn-outline-blue-grey:active:focus,.btn-outline-blue-grey:focus,.btn-outline-blue-grey:hover{border-color:#78909c!important;background-color:transparent!important;color:#78909c!important}.btn-outline-blue-grey:not([disabled]):not(.disabled).active,.btn-outline-blue-grey:not([disabled]):not(.disabled):active,.show>.btn-outline-blue-grey.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#78909c!important}.btn-outline-blue-grey:not([disabled]):not(.disabled).active:focus,.btn-outline-blue-grey:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-blue-grey.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark{background-color:#212121!important;color:#fff}.btn-dark:hover{background-color:#2e2e2e;color:#fff}.btn-dark.focus,.btn-dark:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-dark.active,.btn-dark:active,.btn-dark:focus{background-color:#000}.btn-dark.dropdown-toggle{background-color:#212121!important}.btn-dark.dropdown-toggle:focus,.btn-dark.dropdown-toggle:hover{background-color:#2e2e2e!important}.btn-dark:not([disabled]):not(.disabled).active,.btn-dark:not([disabled]):not(.disabled):active,.show>.btn-dark.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-dark:not([disabled]):not(.disabled).active:focus,.btn-dark:not([disabled]):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.dark-ic{color:#212121!important}.dark-ic:focus,.dark-ic:hover{color:#212121}table.table a.btn.btn-dark{color:#fff}.btn-outline-dark{border:2px solid #212121!important;background-color:transparent!important;color:#212121!important}.btn-outline-dark.active,.btn-outline-dark:active,.btn-outline-dark:active:focus,.btn-outline-dark:focus,.btn-outline-dark:hover{border-color:#212121!important;background-color:transparent!important;color:#212121!important}.btn-outline-dark:not([disabled]):not(.disabled).active,.btn-outline-dark:not([disabled]):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#212121!important}.btn-outline-dark:not([disabled]):not(.disabled).active:focus,.btn-outline-dark:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light{background-color:#e0e0e0!important;color:#000}.btn-light:hover{background-color:#ededed;color:#000}.btn-light.focus,.btn-light:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-light.active,.btn-light:active,.btn-light:focus{background-color:#adadad}.btn-light.dropdown-toggle{background-color:#e0e0e0!important}.btn-light.dropdown-toggle:focus,.btn-light.dropdown-toggle:hover{background-color:#ededed!important}.btn-light:not([disabled]):not(.disabled).active,.btn-light:not([disabled]):not(.disabled):active,.show>.btn-light.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#adadad!important}.btn-light:not([disabled]):not(.disabled).active:focus,.btn-light:not([disabled]):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.light-ic{color:#e0e0e0!important}.light-ic:focus,.light-ic:hover{color:#e0e0e0}table.table a.btn.btn-light{color:#000}.btn-outline-light{border:2px solid #e0e0e0!important;background-color:transparent!important;color:#e0e0e0!important}.btn-outline-light.active,.btn-outline-light:active,.btn-outline-light:active:focus,.btn-outline-light:focus,.btn-outline-light:hover{border-color:#e0e0e0!important;background-color:transparent!important;color:#e0e0e0!important}.btn-outline-light:not([disabled]):not(.disabled).active,.btn-outline-light:not([disabled]):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#e0e0e0!important}.btn-outline-light:not([disabled]):not(.disabled).active:focus,.btn-outline-light:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-white{background-color:#fff!important;color:#000}.btn-white:hover{background-color:#fff;color:#000}.btn-white.focus,.btn-white:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-white.active,.btn-white:active,.btn-white:focus{background-color:#ccc}.btn-white.dropdown-toggle,.btn-white.dropdown-toggle:focus,.btn-white.dropdown-toggle:hover{background-color:#fff!important}.btn-white:not([disabled]):not(.disabled).active,.btn-white:not([disabled]):not(.disabled):active,.show>.btn-white.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#ccc!important}.btn-white:not([disabled]):not(.disabled).active:focus,.btn-white:not([disabled]):not(.disabled):active:focus,.show>.btn-white.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.white-ic{color:#fff!important}.white-ic:focus,.white-ic:hover{color:#fff}a.btn:not([href]):not([tabindex]),a.btn:not([href]):not([tabindex]):focus,a.btn:not([href]):not([tabindex]):hover,table.table a.btn.btn-white{color:#000}.btn-outline-white{border:2px solid #fff!important;background-color:transparent!important;color:#fff!important}.btn-outline-white.active,.btn-outline-white:active,.btn-outline-white:active:focus,.btn-outline-white:focus,.btn-outline-white:hover{border-color:#fff!important;background-color:transparent!important;color:#fff!important}.btn-outline-white:not([disabled]):not(.disabled).active,.btn-outline-white:not([disabled]):not(.disabled):active,.show>.btn-outline-white.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#fff!important}.btn-outline-white:not([disabled]):not(.disabled).active:focus,.btn-outline-white:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-white.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-black{background-color:#000!important;color:#fff}.btn-black:hover{background-color:#0d0d0d;color:#fff}.btn-black.focus,.btn-black:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-black.active,.btn-black:active,.btn-black:focus{background-color:#000}.btn-black.dropdown-toggle{background-color:#000!important}.btn-black.dropdown-toggle:focus,.btn-black.dropdown-toggle:hover{background-color:#0d0d0d!important}.btn-black:not([disabled]):not(.disabled).active,.btn-black:not([disabled]):not(.disabled):active,.show>.btn-black.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:#000!important}.btn-black:not([disabled]):not(.disabled).active:focus,.btn-black:not([disabled]):not(.disabled):active:focus,.show>.btn-black.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.black-ic{color:#000!important}.black-ic:focus,.black-ic:hover{color:#000}a.btn:not([href]):not([tabindex]),a.btn:not([href]):not([tabindex]):focus,a.btn:not([href]):not([tabindex]):hover,table.table a.btn.btn-black{color:#fff}.btn-outline-black{border:2px solid #000!important;background-color:transparent!important;color:#000!important}.btn-outline-black.active,.btn-outline-black:active,.btn-outline-black:active:focus,.btn-outline-black:focus,.btn-outline-black:hover{border-color:#000!important;background-color:transparent!important;color:#000!important}.btn-outline-black:not([disabled]):not(.disabled).active,.btn-outline-black:not([disabled]):not(.disabled):active,.show>.btn-outline-black.dropdown-toggle{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);background-color:transparent!important;border-color:#000!important}.btn-outline-black:not([disabled]):not(.disabled).active:focus,.btn-outline-black:not([disabled]):not(.disabled):active:focus,.show>.btn-outline-black.dropdown-toggle:focus{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#fff}.btn.purple-gradient{transition:.5s ease;color:#fff}.btn.purple-gradient:active,.btn.purple-gradient:active:focus .btn.purple-gradient.active,.btn.purple-gradient:focus,.btn.purple-gradient:hover{background:linear-gradient(#ff88ce,#8f8bf7)}.btn.peach-gradient{transition:.5s ease;color:#fff}.btn.peach-gradient:active,.btn.peach-gradient:active:focus .btn.peach-gradient.active,.btn.peach-gradient:focus,.btn.peach-gradient:hover{background:linear-gradient(#ffdf89,#fc7b7b)}.btn.aqua-gradient{transition:.5s ease;color:#fff}.btn.aqua-gradient:active,.btn.aqua-gradient:active:focus .btn.aqua-gradient.active,.btn.aqua-gradient:focus,.btn.aqua-gradient:hover{background:linear-gradient(#3aa2ff,#1fffac)}.btn.blue-gradient{transition:.5s ease;color:#fff}.btn.blue-gradient:active,.btn.blue-gradient:active:focus .btn.blue-gradient.active,.btn.blue-gradient:focus,.btn.blue-gradient:hover{background:linear-gradient(#5ed1fc,#3647b3)}.btn mdb-icon{position:relative;font-size:.9rem}.btn mdb-icon.right{margin-left:.3rem}.btn mdb-icon.left{margin-right:.3rem}.btn.btn-lg{padding:1rem 2.4rem;font-size:.94rem}.btn.btn-lg mdb-icon{font-size:1rem}.btn.btn-md{padding:.7rem 1.6rem;font-size:.7rem}.btn.btn-md mdb-icon{font-size:.8rem}.btn.btn-sm{padding:.5rem 1.6rem;font-size:.64rem}.btn.btn-sm mdb-icon{font-size:.7rem}.btn.btn-flat{font-weight:500;background-color:transparent;color:inherit}.btn.btn-flat,.btn.btn-flat:not([disabled]):not(.disabled):active{box-shadow:none}.btn-floating{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);width:47px;height:47px;position:relative;z-index:1;vertical-align:middle;display:inline-block;overflow:hidden;transition:all .2s ease-in-out;margin:10px;border-radius:50%;padding:0;cursor:pointer}.btn-floating i{font-size:1.25rem;line-height:47px;display:inline-block;width:inherit;text-align:center;color:#fff}.fixed-action-btn{right:35px;bottom:35px;margin-bottom:0;padding-top:15px}.fixed-action-btn ul{display:flex;flex-direction:column;transition:height .4s;position:absolute;bottom:64px;height:64px;left:0;right:0;margin:0 0 15px;padding:0;text-align:center}.fixed-action-btn ul li{display:flex;margin-bottom:15px;margin-left:auto;margin-right:auto;z-index:0}.fixed-action-btn ul a.btn-floating{opacity:0;transition-duration:.4s;transform:scale(.4) translate(0)}.fixed-action-btn ul a.btn-floating.shown{transform:scale(1) translate(0);opacity:1}.fixed-action-btn.active ul{height:300px}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn-rounded{border-radius:10em!important}.btn-group>.btn-rounded:not(:last-child):not(.dropdown-toggle),.btn-group>.btn-rounded:not(:last-child)>.btn-rounded{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.btn-group>.btn-rounded:not(:first-child),.btn-group>.btn-rounded:not(:first-child)>.btn-rounded{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.waves-input-wrapper{display:inline-block}.btn.btn-flat{color:inherit!important}.btn-flat{background:transparent;color:inherit!important;position:relative;padding:8px 30px;border:none;margin:10px;text-transform:uppercase;text-decoration:none;outline:none!important;box-shadow:none}.btn-flat:focus,.btn-flat:hover{background-color:transparent;box-shadow:none}.fixed-action-btn{position:fixed;z-index:998}.fixed-action-btn .fixed_collapse{left:0;right:0;text-align:center;position:absolute;bottom:70px;margin:0}.btn-floating mdb-icon{display:inline-block;width:inherit;text-align:center;color:#fff}.btn-floating .fixed-button-caption{background:#000;color:#fff;border-radius:.25rem;padding:.25rem .5rem;white-space:nowrap}.btn-floating:hover{box-shadow:0 8px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.btn-floating:before{border-radius:0}.btn-floating.btn-sm{width:36.1538461538px;height:36.1538461538px}.btn-floating.btn-sm i{font-size:.9615384615rem;line-height:36.1538461538px}.btn-floating.btn-lg{width:61.1px;height:61.1px}.btn-floating.btn-lg i{font-size:1.625rem;line-height:61.1px}.btn.btn-floating{position:fixed}[type=checkbox].onFocusSelect,[type=radio].onFocusSelect{visibility:visible!important;opacity:0!important}"],encapsulation:2}),t})(),NS=(()=>{class t{constructor(t,e){this.renderer=t,this.el=e}ngOnInit(){this.createCaptionElement()}createCaptionElement(){const t=this.renderer.createElement("p"),e=this.renderer.createText(this.caption);this.renderer.appendChild(t,e),this.renderer.appendChild(this.el.nativeElement,t),this.paragraphEl=t}showCaption(){this.renderer.addClass(this.paragraphEl,"fixed-button-caption"),this.renderer.setStyle(this.paragraphEl,"position","absolute"),this.renderer.setStyle(this.paragraphEl,"right","60px"),this.renderer.setStyle(this.paragraphEl,"top","10px"),this.renderer.setStyle(this.el.nativeElement,"overflow","visible")}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["","mdbFixedCaption",""]],inputs:{caption:["mdbFixedCaption","caption"],collapseButtonActivator:["collapseButton","collapseButtonActivator"]}}),t})(),PS=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),DS=(()=>{class t{constructor(t,e){this._el=t,this._r=e}ngOnInit(){this._r.addClass(this._el.nativeElement,"card-footer")}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-footer"]],ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2,changeDetection:0}),t})(),RS=(()=>{class t{constructor(t,e){this._el=t,this._r=e}ngOnInit(){this._r.addClass(this._el.nativeElement,"card-title")}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-title"]],ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2,changeDetection:0}),t})(),MS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-text"]],inputs:{class:"class"},ngContentSelectors:yx,decls:2,vars:3,template:function(t,e){1&t&&(Ys(),Ls(0,"p"),Js(1),Fs()),2&t&&Sa("card-text ",e.class," ")},encapsulation:2,changeDetection:0}),t})(),LS=(()=>{class t{constructor(t,e){this._el=t,this._r=e}set cascade(t){t&&this._r.addClass(this._el.nativeElement,"card-body-cascade")}ngOnInit(){this._r.addClass(this._el.nativeElement,"card-body"),this.class&&this.class.split(" ").forEach(t=>{this._r.addClass(this._el.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-body"]],inputs:{cascade:"cascade",class:"class"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2,changeDetection:0}),t})(),FS=(()=>{class t{constructor(t,e){this._el=t,this._r=e}set narrower(t){t?this._r.addClass(this._el.nativeElement,"narrower"):!t&&this._el.nativeElement.classList.contains("narrower")&&this._r.removeClass(this._el.nativeElement,"narrower")}set reverse(t){t?this._r.addClass(this._el.nativeElement,"reverse"):!t&&this._el.nativeElement.classList.contains("reserse")&&this._r.removeClass(this._el.nativeElement,"reverse")}set dark(t){t?this._r.addClass(this._el.nativeElement,"card-dark"):!t&&this._el.nativeElement.classList.contains("card-dark")&&this._r.removeClass(this._el.nativeElement,"card-dark")}set bgColor(t){t&&this._r.addClass(this._el.nativeElement,t)}set borderColor(t){t&&this._r.addClass(this._el.nativeElement,t)}ngOnInit(){this._r.addClass(this._el.nativeElement,"card"),this.cascade&&this._r.addClass(this._el.nativeElement,"card-cascade"),this.wider&&this._r.addClass(this._el.nativeElement,"wider"),this.narrower&&this._r.addClass(this._el.nativeElement,"narrower"),this.class&&this.class.split(" ").forEach(t=>{this._r.addClass(this._el.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-card"]],viewQuery:function(t,e){var n;1&t&&hc(wx,!0),2&t&&uc(n=gc())&&(e.card=n.first)},inputs:{narrower:"narrower",reverse:"reverse",dark:"dark",bgColor:"bgColor",borderColor:"borderColor",class:"class",cascade:"cascade",wider:"wider",imageBackground:"imageBackground"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},styles:[".card{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);border:0;font-weight:400}.card[class*=border]{border:1px solid #9e9e9e;box-shadow:none}.card .card-body h1,.card .card-body h2,.card .card-body h3,.card .card-body h4,.card .card-body h5,.card .card-body h6{font-weight:400}.card .card-body .card-title a,.card .card-body .card-title a:hover{transition:.2s ease-in-out}.card .card-body .card-text{color:#747373;font-size:.9rem;font-weight:400}.card .md-form label{font-weight:300}.card-text:last-child{margin-bottom:1rem!important}mdb-card-img img.img-fluid{width:100%}.card.card-image{background-size:cover;background-position:50%;width:100%}.card.card-image [class*=rgba-]{border-radius:.25rem}.card.card-cascade .view.view-cascade{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.25rem}.card.card-cascade .view.view-cascade.gradient-card-header{color:#fff;padding:1.6rem 1rem;text-align:center}.card.card-cascade .view.view-cascade.gradient-card-header .card-header-title{font-weight:500}.card.card-cascade .view.view-cascade.gradient-card-header .btn-floating{background-color:hsla(0,0%,100%,.2)}.card.card-cascade.wider{box-shadow:none;background-color:transparent}.card.card-cascade.wider .view.view-cascade{z-index:2}.card.card-cascade.wider .card-body.card-body-cascade{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);margin-left:4%;margin-right:4%;background:#fff;z-index:1;border-radius:0 0 .25rem .25rem}.card.card-cascade.wider .card-body.card-body-cascade .card-footer{margin-left:-1.25rem;margin-right:-1.25rem}.card.card-cascade.wider.reverse .card-body.card-body-cascade{z-index:3;margin-top:-1rem;border-radius:.25rem;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}.card.card-cascade.narrower{margin-top:1.25rem}.card.card-cascade.narrower .view.view-cascade{margin-left:4%;margin-right:4%;margin-top:-1.25rem}.card.card-cascade.panel-cascade .view{text-align:center;color:#fff}.card.card-cascade.panel-cascade .list-group .list-group-item{margin-bottom:0;border:0;border-bottom:1px solid #eee;color:#495057}.card.card-cascade.panel-cascade .list-group .list-group-item:hover{background-color:#eee}.card .btn-action{margin-top:-1.44rem;margin-bottom:-1.44rem}.card .activator{position:absolute;right:0;font-size:1.2rem}.card .card-reveal{position:absolute;width:100%;overflow-y:auto;top:100%;height:100%;z-index:1;display:none}.card .card-reveal .content{position:relative}.card.ovf-hidden{overflow:hidden}.card .card-share{position:relative}.card .card-share .social-reveal{position:absolute;top:-1.44rem;right:1.88rem;visibility:hidden;width:auto;transform:translateZ(0);transform:translateX(0);transition:transform .35s ease}.card .card-share .social-reveal-active{z-index:11;visibility:visible;transform:translateZ(0);transform:translateX(-48px);transition:transform .35s ease}.card-wrapper .card-rotating .card-title,.card .card-reveal .card-title{cursor:pointer}.card-wrapper .card-rotating .card-title i,.card .card-reveal .card-title i{color:#9e9e9e;position:absolute;right:.63rem}.card-wrapper{perspective:800px;position:relative;margin:0;width:100%}.card-wrapper .card-up{height:200px;overflow:hidden}.card-wrapper .card-up img{vertical-align:middle}.card-wrapper .avatar{display:block;margin-top:-60px;overflow:hidden;width:120px}.card-wrapper .avatar img{border:5px solid #fff;background:none repeat scroll 0 0 #fff;width:100%}.card-wrapper .card-rotating{height:100%;transform-style:preserve-3d;transition:.5s}.card-wrapper .card-rotating .face{width:100%;position:absolute;background:#fff;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:2}.card-wrapper .card-rotating.flipped{transform:rotateY(180deg)}.card-wrapper .card-rotating .front{z-index:1}.card-wrapper .card-rotating .back,.card-wrapper .card-rotating .front{transition:1s}.testimonial-card .card-up{overflow:hidden;height:120px;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.testimonial-card .avatar{border-radius:50%;width:120px;margin-top:-60px;overflow:hidden;border:5px solid #fff}.testimonial-card .avatar img{width:100%}.testimonial-card .card-body{text-align:center}"],encapsulation:2,changeDetection:0}),t})(),jS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-img"]],inputs:{src:"src",alt:"alt"},decls:1,vars:2,consts:[[1,"img-fluid",3,"src","alt"]],template:function(t,e){1&t&&js(0,"img",0),2&t&&Rs("src",e.src,Zr)("alt",e.alt)},encapsulation:2,changeDetection:0}),t})(),US=(()=>{class t{constructor(t,e){this._el=t,this._r=e}ngOnInit(){this._r.addClass(this._el.nativeElement,"card-header"),this.class&&this.class.split(" ").forEach(t=>{this._r.addClass(this._el.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-card-header"]],inputs:{class:"class"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2,changeDetection:0}),t})(),VS=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})();var BS="undefined"!=typeof window&&window||{},HS=BS.document;const zS=BS.navigator;function qS(){return"bs4"===BS.__theme}let WS=(()=>{class t{constructor(t){this.animated=!1,this.directionNext=!1,this.directionLeft=!1,this.directionPrev=!1,this.directionRight=!1,this.el=null,this.el=t}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa))},t.\u0275cmp=fe({type:t,selectors:[["mdb-slide"],["mdb-carousel-item"]],hostVars:14,hostBindings:function(t,e){2&t&&ca("animated",e.animated)("carousel-item-next",e.directionNext)("carousel-item-left",e.directionLeft)("carousel-item-prev",e.directionPrev)("carousel-item-right",e.directionRight)("carousel-item",e.el)("active",e.active)},inputs:{active:"active"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2}),t})(),GS=(()=>{class t{constructor(){this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.keyboard=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var $S=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.NEXT=1]="NEXT",t[t.PREV=2]="PREV",t}({});let KS=(()=>{class t{constructor(t,e,n,r,i){this.el=e,this.cdRef=r,this.renderer=i,this.SWIPE_ACTION={LEFT:"swipeleft",RIGHT:"swiperight"},this._destroy$=new S,this.destroyed=!1,this.animationEnd=!0,this.isBrowser=!1,this.isControls=!0,this.class="",this.type="",this.animation="",this.allowSwipe=!0,this.activeSlideChange=new Zl(!1),this.isBrowser=Bh(n),Object.assign(this,t)}get slides(){return this._slidesList.toArray()}set activeSlide(t){this._slidesList&&t!==this._currentActiveSlide&&this._select(t)}get activeSlide(){return this._currentActiveSlide}checkNavigation(){return"carousel-multi-item"!==this.type}checkDots(){return"carousel-thumbnails"!==this.type}getImg(t){return t.el.nativeElement.querySelector("img").src}get interval(){return this._interval}set interval(t){this._interval=t,this.restartTimer()}get isBs4(){return!qS()}ngOnDestroy(){this.destroyed=!0,this._destroy$.next(),this._destroy$.complete()}ngAfterViewInit(){this.play(),this._slidesList.changes.pipe(LC(this._destroy$)).subscribe(t=>{this._slidesList=t,setTimeout(()=>{this._select(0)},0)}),this.activeSlideIndex?setTimeout(()=>{this._select(this.activeSlideIndex),this.activeSlideChange.emit({relatedTarget:this.activeSlide})},0):setTimeout(()=>{this._select(0)},0),this.isControls&&(this.carouselIndicators=this.el.nativeElement.querySelectorAll(".carousel-indicators > li"),this.carouselIndicators.length&&this.activeSlideIndex?this.renderer.addClass(this.carouselIndicators[this.activeSlideIndex],"active"):this.carouselIndicators.length&&this.renderer.addClass(this.carouselIndicators[0],"active"))}swipe(t=this.SWIPE_ACTION.RIGHT){this.allowSwipe&&(t===this.SWIPE_ACTION.RIGHT&&(this.previousSlide(),this.cdRef.markForCheck()),t===this.SWIPE_ACTION.LEFT&&(this.nextSlide(),this.cdRef.markForCheck()))}nextSlide(t=!1){this.restartTimer();const e=this.el.nativeElement.getElementsByTagName("video"),n=this.findNextSlideIndex($S.NEXT,t);if(e.length>0)for(let r=0;r0)for(let i=0;i{const r=this.slides[this._currentActiveSlide].el.nativeElement;this.renderer.setStyle(r,"opacity","0"),this.renderer.setStyle(r,"transition","all 600ms"),this.renderer.setStyle(r,"display","block"),this.renderer.setStyle(n.el.nativeElement,"display","block"),this.renderer.setStyle(n.el.nativeElement,"opacity","1"),this.renderer.setStyle(n.el.nativeElement,"transition","all 600ms"),1===e?this.activeSlideChange.emit({direction:"Next",relatedTarget:this.activeSlide}):2===e&&this.activeSlideChange.emit({direction:"Prev",relatedTarget:this.activeSlide}),n.directionNext=!1,this.animationEnd=!0,this.activeSlide=t,this.activeSlideChange.emit({direction:"Next",relatedTarget:this.activeSlide}),this.play(),this.cdRef.markForCheck()},0))}slideAnimation(t,e){const n=this.slides[this._currentActiveSlide],r=this.slides[t];this.animationEnd&&(e===$S.NEXT&&(this.animationEnd=!1,r.directionNext=!0,this.isBrowser&&setTimeout(()=>{r.directionLeft=!0,n.directionLeft=!0,this.cdRef.markForCheck()},100)),e===$S.PREV&&(this.animationEnd=!1,r.directionPrev=!0,this.isBrowser&&setTimeout(()=>{r.directionRight=!0,n.directionRight=!0,this.cdRef.markForCheck()},100)),this.isBrowser&&setTimeout(()=>{let i;r.directionLeft=!1,r.directionNext=!1,n.directionLeft=!1,n.directionNext=!1,r.directionRight=!1,r.directionPrev=!1,n.directionRight=!1,n.directionPrev=!1,this.animationEnd=!0,this.activeSlide=t,e===$S.NEXT?i="Next":e===$S.PREV&&(i="Prev"),this.activeSlideChange.emit({direction:i,relatedTarget:this.activeSlide}),this.play(),this.cdRef.markForCheck()},700))}selectSlide(t){this.pause(),"slide"===this.animation?this.activeSlidet&&this.slideAnimation(t,$S.PREV):"fade"===this.animation?t!==this.activeSlide&&this.fadeAnimation(t):this.animation||setTimeout(()=>{const e=tt.active)}isLast(t){return t+1>=this.slides.length}findNextSlideIndex(t,e){let n=0;if(e||!this.isLast(this.activeSlide)||t===$S.PREV||!this.noWrap){switch(t){case $S.NEXT:n=this.isLast(this._currentActiveSlide)?!e&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case $S.PREV:n=this._currentActiveSlide>0?this._currentActiveSlide-1:!e&&this.noWrap?this._currentActiveSlide:this.slides.length-1;break;default:throw new Error("Unknown direction")}return n}}_select(t){if(isNaN(t))return void this.pause();const e=this.slides[this._currentActiveSlide];e&&(e.active=!1);const n=this.slides[t];n&&(this._currentActiveSlide=t,n.active=!0,this.activeSlide=t),this.cdRef.markForCheck()}restartTimer(){if(this.resetTimer(),this.isBrowser){const t=+this.interval;!isNaN(t)&&t>0&&(this.currentInterval=setInterval(()=>{const t=+this.interval;this.isPlaying&&!isNaN(this.interval)&&t>0&&this.slides.length?this.nextSlide():this.pause()},t))}}resetTimer(){this.isBrowser&&this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}hasClass(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}classAdd(t,e){t.classList?t.classList.add(e):this.hasClass(t,e)||(t.className+=" "+e)}removeClass(t,e){if(t.classList)t.classList.remove(e);else if(this.hasClass(t,e)){const n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}keyboardControl(t){this.keyboard&&(39===t.keyCode&&this.nextSlide(),37===t.keyCode&&this.previousSlide())}focus(){this.el.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(Ns(GS),Ns(Xa),Ns(kc),Ns(Qo),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-carousel"]],contentQueries:function(t,e,n){var r;1&t&&fc(n,WS,!1),2&t&&uc(r=gc())&&(e._slidesList=r)},hostBindings:function(t,e){1&t&&qs("mouseleave",(function(){return e.play()}))("mouseenter",(function(){return e.pause()}))("keyup",(function(t){return e.keyboardControl(t)}))("click",(function(){return e.focus()}))},inputs:{isControls:"isControls",class:"class",type:"type",animation:"animation",allowSwipe:"allowSwipe",activeSlide:"activeSlide",interval:"interval",noWrap:"noWrap",noPause:"noPause",keyboard:"keyboard",activeSlideIndex:"activeSlideIndex"},outputs:{activeSlideChange:"activeSlideChange"},ngContentSelectors:yx,decls:8,vars:9,consts:[["tabindex","0",3,"swipeleft","swiperight","mouseenter","mouseleave","mouseup"],["class","controls-top",4,"ngIf"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner"],["class","carousel-control-prev",3,"disabled","click",4,"ngIf"],["class","carousel-control-next",3,"disabled","click",4,"ngIf"],[1,"controls-top"],["mdbBtn","","floating","true",3,"click"],[1,"fas","fa-chevron-left"],[1,"fas","fa-chevron-right"],[1,"carousel-indicators"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],[1,"d-block","w-100","img-fluid",3,"src"],[1,"carousel-control-prev",3,"click"],["aria-hidden","true",1,"carousel-control-prev-icon"],[1,"sr-only"],[1,"carousel-control-next",3,"click"],["aria-hidden","true",1,"carousel-control-next-icon"]],template:function(t,e){1&t&&(Ys(),Ls(0,"div",0),qs("swipeleft",(function(t){return e.swipe(t.type)}))("swiperight",(function(t){return e.swipe(t.type)}))("mouseenter",(function(){return e.pause()}))("mouseleave",(function(){return e.play()}))("mouseup",(function(){return e.play()})),Os(1,Cx,5,4,"div",1),Os(2,xx,2,1,"ol",2),Os(3,kx,2,1,"ol",2),Ls(4,"div",3),Js(5),Fs(),Os(6,Tx,4,2,"a",4),Os(7,Ix,4,2,"a",5),Fs()),2&t&&(ka("carousel ",e.class," ",e.type,""),wi(1),Rs("ngIf",e.slides.length>1&&!e.checkNavigation()&&e.isControls),wi(1),Rs("ngIf",e.slides.length>1&&e.checkDots()&&e.isControls),wi(1),Rs("ngIf",e.slides.length>1&&!e.checkDots()&&e.isControls),wi(3),Rs("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls),wi(1),Rs("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls))},directives:[Eh,AS,wh],styles:[".carousel .carousel-control-next-icon,.carousel .carousel-control-prev-icon{width:2.25rem;height:2.25rem}.carousel .carousel-indicators li{width:.625rem;height:.625rem;border-radius:50%;cursor:pointer}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{opacity:1}.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-right.active{opacity:0}.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item-prev.active,.carousel-fade .carousel-item.active{transform:translateX(0)}@supports (transform-style:preserve-3d){.carousel-fade .carousel-item-left.active,.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item-prev.active,.carousel-fade .carousel-item.active{transform:translateZ(0)}}.carousel-control-next,.carousel-control-prev,.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:flex;overflow:hidden}.carousel,.carousel-multi-item,.carousel-thumbnails{outline:none}.carousel-fade .carousel-inner .carousel-item{opacity:0;transition-property:opacity}.carousel-fade .carousel-inner .active{opacity:1;transition:all .6s}.carousel-fade .carousel-inner>.carousel-item.active,.carousel-fade .carousel-inner>.carousel-item.next.left,.carousel-fade .carousel-inner>.carousel-item.prev.right{opacity:1;transition:all .6s;transform:translateZ(0)}.carousel-multi-item{margin-bottom:5rem}.carousel-multi-item .carousel-inner .carousel-item.active,.carousel-multi-item .carousel-item-next,.carousel-multi-item .carousel-item-prev{display:block}.carousel-multi-item .carousel-inner.v-2 .carousel-item-next,.carousel-multi-item .carousel-inner.v-2 .carousel-item-prev,.carousel-multi-item .carousel-inner.v-2 .carousel-item.active{display:flex}.carousel-multi-item .carousel-inner.v-2 .carousel-item-next,.carousel-multi-item .carousel-inner.v-2 .carousel-item-right.active{transform:translateX(33%)}.carousel-multi-item .carousel-inner.v-2 .carousel-item-left.active,.carousel-multi-item .carousel-inner.v-2 .carousel-item-prev{transform:translateX(-33%)}.carousel-multi-item .carousel-inner.v-2 .carousel-item-left,.carousel-multi-item .carousel-inner.v-2 .carousel-item-right{transform:translateX(0)}.carousel-multi-item .carousel-indicators li{height:1.25rem;width:1.25rem;max-width:1.25rem;background-color:#4285f4;margin-bottom:-3.75rem}.carousel-multi-item .carousel-indicators .active{height:1.56rem;width:1.56rem;max-width:1.56rem;background-color:#4285f4;border-radius:50%}.carousel-multi-item .controls-top{text-align:center;margin-bottom:1.88rem}.carousel-multi-item .controls-top .btn-floating{background:#4285f4}.carousel-multi-item .carousel-indicators{margin-bottom:-2em}.carousel-multi-item .card-cascade.narrower{margin-top:1.25rem;margin-bottom:.3rem}@media (min-width:768px){.carousel-multi-item .col-md-4{float:left;width:33.333333%;max-width:100%}}@media only screen and (max-width:992px){.carousel-multi-item .carousel-indicators li{margin-bottom:-1.88rem}}.carousel-thumbnails .carousel-indicators{white-space:nowrap;overflow-x:auto;position:static;left:auto;width:auto;margin-left:0;margin-right:0}.carousel-thumbnails .carousel-indicators>li{width:auto;height:auto;text-indent:0}.carousel-thumbnails .carousel-indicators>li .active img{opacity:1}.wrapper-carousel-fix .carousel-fade .active.carousel-item-left,.wrapper-carousel-fix .carousel-fade .active.carousel-item-right{transition:transform .6s ease;transition-property:opacity}.carousel-thumbnails{margin-bottom:5rem}.carousel-thumbnails .carousel-indicators{margin-bottom:-4.69rem;position:absolute;left:0}.carousel-thumbnails .carousel-indicators li{height:auto;width:6.25rem;max-width:6.25rem;border:none}.carousel-thumbnails .carousel-indicators .active{background-color:#fff;height:auto;width:auto;opacity:1}.carousel-thumbnails .carousel-indicators img{max-width:6.25rem;height:auto;overflow:hidden;display:block}"],encapsulation:2,changeDetection:0}),t})(),QS=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[GS],imports:[[Vh,PS]]}),t})(),XS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),YS=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),JS=(()=>{class t{constructor(t){this._cdRef=t,this.isCollapsed=!0,this.showBsCollapse=new Zl,this.shownBsCollapse=new Zl,this.hideBsCollapse=new Zl,this.hiddenBsCollapse=new Zl,this.collapsed=new Zl,this.expanded=new Zl,this.overflow="hidden"}onExpandBodyDone(t){setTimeout(()=>{"expanded"===t.toState?(this.shownBsCollapse.emit(this),this.expanded.emit(this),this.overflow="visible",this.showCaptions()):(this.hiddenBsCollapse.emit(this),this.collapsed.emit(this))},0)}showCaptions(){this.captions.forEach(t=>t.showCaption())}toggle(){this.isCollapsed?this.show():this.hide()}show(){this.expandAnimationState="expanded",this.isCollapsed=!1,this.showBsCollapse.emit(this),this._cdRef.markForCheck()}hide(){this.overflow="hidden",this.expandAnimationState="collapsed",this.isCollapsed=!0,this.hideBsCollapse.emit(this),this._cdRef.markForCheck()}initializeCollapseState(){this.isCollapsed?this.hide():this.show()}ngOnInit(){this.initializeCollapseState()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qo))},t.\u0275cmp=fe({type:t,selectors:[["","mdbCollapse",""]],contentQueries:function(t,e,n){var r;1&t&&fc(n,NS,!1),2&t&&uc(r=gc())&&(e.captions=r)},hostVars:3,hostBindings:function(t,e){1&t&&Ws("@expandBody.done",(function(t){return e.onExpandBodyDone(t)})),2&t&&(Ia("@expandBody",e.expandAnimationState),la("overflow",e.overflow))},inputs:{isCollapsed:"isCollapsed"},outputs:{showBsCollapse:"showBsCollapse",shownBsCollapse:"shownBsCollapse",hideBsCollapse:"hideBsCollapse",hiddenBsCollapse:"hiddenBsCollapse",collapsed:"collapsed",expanded:"expanded"},exportAs:["bs-collapse"],attrs:Ox,ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2,data:{animation:[wd("expandBody",[Sd("collapsed",xd({height:"0px"})),Sd("expanded",xd({height:"*"})),kd("expanded <=> collapsed",Cd("500ms ease"))])]},changeDetection:0}),t})(),ZS=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class tk{constructor(t,e){this.open=t,this.close=e||t}isManual(){return"manual"===this.open||"manual"===this.close}}const ek={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};"undefined"!=typeof window&&window,"undefined"==typeof console||console;class nk{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class rk{constructor(t,e,n,r,i,o,s,a){this._viewContainerRef=t,this._renderer=e,this._elementRef=n,this._injector=r,this._componentFactoryResolver=i,this._ngZone=o,this._applicationRef=s,this._posService=a,this.onBeforeShow=new Zl,this.onShown=new Zl,this.onBeforeHide=new Zl,this.onHidden=new Zl,this.shown=new Zl,this.hidden=new Zl,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}to(t){return this.container=t||this.container,this}position(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}provide(t){return this._providers.push(t),this}show(t={}){if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.data);const e=hs.create({providers:this._providers,parent:this._injector});if(this._componentRef=this._componentFactory.create(e,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,t),this.container instanceof Xa&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document){const t=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);t&&t.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(t){this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;const e=this._listenOpts.hide=()=>t.hide?t.hide():void this.hide(),n=this._listenOpts.show=e=>{t.show?t.show(e):this.show(e),e()};return this._unregisterListenersFn=function(t,e){const n=function(t,e=ek){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{const n=e[t[0]]||t;return new tk(n[0],n[1])}),i=r.filter(t=>t.isManual());if(i.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===i.length&&r.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return r}(e.triggers),r=e.target;if(1===n.length&&n[0].isManual())return Function.prototype;const i=[],o=[],s=()=>{o.forEach(t=>i.push(t())),o.length=0};return n.forEach(n=>{const a=n.open===n.close,l=a?e.toggle:e.show;a||o.push(()=>t.listen(r,n.close,e.hide)),i.push(t.listen(r,n.open,()=>l(s)))}),()=>{i.forEach(t=>t())}}(this._renderer,{target:t.target,triggers:t.triggers,show:n,hide:e,toggle:t=>{this.isShown?e():n(t)}}),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=null)}attachInline(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts&&this._listenOpts.outsideClick){const t=this._componentRef.location.nativeElement;setTimeout(()=>{var e;this._globalListener=(e={targets:[t,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide()}).outsideClick?this._renderer.listen("document","click",t=>{e.target&&e.target.contains(t.target)||e.targets&&e.targets.some(e=>e.contains(t.target))||e.hide()}):Function.prototype})}var t;this._listenOpts.outsideEsc&&(this._globalListener=(t={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide()}).outsideEsc?this._renderer.listen("document","keyup.esc",e=>{t.target&&t.target.contains(e.target)||t.targets&&t.targets.some(t=>t.contains(e.target))||t.hide()}):Function.prototype)}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}_getContentRef(t,e){if(!t)return new nk([]);if(t instanceof _l){if(this._viewContainerRef){const e=this._viewContainerRef.createEmbeddedView(t);return e.markForCheck(),new nk([e.rootNodes],e)}const e=t.createEmbeddedView({});return this._applicationRef.attachView(e),new nk([e.rootNodes],e)}if("function"==typeof t){const n=this._componentFactoryResolver.resolveComponentFactory(t),r=hs.create({providers:this._providers,parent:this._injector}),i=n.create(r);return Object.assign(i.instance,e),this._applicationRef.attachView(i.hostView),new nk([[i.location.nativeElement]],i.hostView,i)}return new nk([[this._renderer.createText(""+t)]])}}function ik(t,e){if(1!==t.nodeType)return[];const n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function ok(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function sk(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:e,overflowX:n,overflowY:r}=ik(t);return/(auto|scroll|overlay)/.test(String(e)+String(r)+String(n))?t:sk(ok(t))}const ak="undefined"!=typeof window&&"undefined"!=typeof document,lk=ak&&!(!window.MSInputMethodContext||!document.documentMode),ck=ak&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function uk(t){return 11===t?lk:10===t?ck:lk||ck}function hk(t){if(!t)return document.documentElement;const e=uk(10)?document.body:null;let n,r=t.offsetParent||null;for(;r===e&&t.nextElementSibling&&"BODY"!==t.nodeName;)n=t.nextElementSibling,r=n.offsetParent;const i=r&&r.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===ik(r,"position")?hk(r):r:n?n.ownerDocument.documentElement:document.documentElement}function dk(t){return null!==t.parentNode?dk(t.parentNode):t}function pk(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;const n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);const{commonAncestorContainer:s}=o;if(t!==s&&e!==s||r.contains(i))return function(t){const{nodeName:e}=t;return"BODY"!==e&&("HTML"===e||hk(t.firstElementChild)===t)}(s)?s:hk(s);const a=dk(t);return a.host?pk(a.host,e):pk(t,dk(e).host)}function fk(t,e){const n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t[`border${n}Width`])+parseFloat(t[`border${r}Width`])}function gk(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],uk(10)?parseInt(n["offset"+t],10)+parseInt(r["margin"+("Height"===t?"Top":"Left")],10)+parseInt(r["margin"+("Height"===t?"Bottom":"Right")],10):0)}function mk(t){const e=t.body,n=t.documentElement,r=uk(10)&&getComputedStyle(n);return{height:gk("Height",e,n,r),width:gk("Width",e,n,r)}}function vk(t,e="top"){const n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){const e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}return t[n]}function bk(t){return Object.assign(Object.assign({},t),{right:t.left+t.width,bottom:t.top+t.height})}function yk(t){let e={};try{if(uk(10)){e=t.getBoundingClientRect();const n=vk(t,"top"),r=vk(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(s){return}const n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?mk(t.ownerDocument):{};let i=t.offsetWidth-(r.width||t.clientWidth||n.right-n.left),o=t.offsetHeight-(r.height||t.clientHeight||n.bottom-n.top);if(i||o){const e=ik(t);i-=fk(e,"x"),o-=fk(e,"y"),n.width-=i,n.height-=o}return bk(n)}function _k(t,e,n=!1){const r=uk(10),i="HTML"===e.nodeName,o=yk(t),s=yk(e),a=sk(t),l=ik(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));let h=bk({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){const t=parseFloat(l.marginTop),e=parseFloat(l.marginLeft);h.top-=c-t,h.bottom-=c-t,h.left-=u-e,h.right-=u-e,h.marginTop=t,h.marginLeft=e}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=function(t,e,n=!1){const r=vk(e,"top"),i=vk(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(h,e)),h}function wk(t){if(!t||!t.parentElement||uk())return document.documentElement;let e=t.parentElement;for(;e&&"none"===ik(e,"transform");)e=e.parentElement;return e||document.documentElement}function Ck(t,e,n=0,r,i=!1){let o={top:0,left:0};const s=i?wk(t):pk(t,e);if("viewport"===r)o=function(t,e=!1){const n=t.ownerDocument.documentElement,r=_k(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:vk(n),a=e?0:vk(n,"left");return bk({top:s-Number(r.top)+Number(r.marginTop),left:a-Number(r.left)+Number(r.marginLeft),width:i,height:o})}(s,i);else{let n;"scrollParent"===r?(n=sk(ok(e)),"BODY"===n.nodeName&&(n=t.ownerDocument.documentElement)):n="window"===r?t.ownerDocument.documentElement:r;const a=_k(n,s,i);if("HTML"!==n.nodeName||function t(e){const n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===ik(e,"position")||t(ok(e)))}(s))o=a;else{const{height:e,width:n}=mk(t.ownerDocument);o.top+=a.top-a.marginTop,o.bottom=Number(e)+Number(a.top),o.left+=a.left-a.marginLeft,o.right=Number(n)+Number(a.left)}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function Ek({width:t,height:e}){return t*e}function xk(t,e,n,r,i=["top","left","bottom","right"],o="viewport",s=0){if(-1===t.indexOf("auto"))return t;const a=Ck(n,r,s,o),l={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},c=Object.keys(l).map(t=>Object.assign(Object.assign({key:t},l[t]),{area:Ek(l[t])})).sort((t,e)=>e.area-t.area);let u=c.filter(({width:t,height:e})=>t>=n.clientWidth&&e>=n.clientHeight);u=i.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:u[e]}),{});const h=u.length>0?u[0].key:c[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/auto/g,h),h+(d?"-"+d:"")}function Sk(t){const e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:Number(t.offsetWidth)+r,height:Number(t.offsetHeight)+n}}function kk(t,e,n=null){return _k(e,n?wk(t):pk(t,e),n)}function Tk(t,e,n){const r=n.split(" ")[0],i=Sk(t),o={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(r),a=s?"top":"left",l=s?"left":"top",c=s?"height":"width",u=s?"width":"height";return o[a]=e[a]+e[c]/2-i[c]/2,o[l]=r===l?e[l]-i[u]:e[function(t){const e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,t=>e[t])}(l)],o}function Ik(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function Ok(t,e,n){Object.keys(e).forEach(r=>{let i="";var o;-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(o=e[r])&&!isNaN(parseFloat(o))&&isFinite(o)&&(i="px"),n?n.setStyle(t,r,`${String(e[r])}${i}`):t.style[r]=String(e[r])+i})}function Ak(t){let e=t.offsets.target;const n=t.instance.target.querySelector(".arrow");if(!n)return t;const r=-1!==["left","right"].indexOf(t.placement),i=r?"height":"width",o=r?"Top":"Left",s=o.toLowerCase(),a=r?"left":"top",l=r?"bottom":"right",c=Sk(n)[i];t.offsets.host[l]-ce[l]&&(e[s]+=Number(t.offsets.host[s])+Number(c)-Number(e[l])),e=bk(e);const u=Number(t.offsets.host[s])+Number(t.offsets.host[i]/2-c/2),h=ik(t.instance.target),d=parseFloat(h["margin"+o]),p=parseFloat(h[`border${o}Width`]);let f=u-e[s]-d-p;return f=Math.max(Math.min(e[i]-c,f),0),t.offsets.arrow={[s]:Math.round(f),[a]:""},t.instance.arrow=n,t}function Nk(t){if(t.offsets.target=bk(t.offsets.target),!Ik(t.options,"flip"))return t.offsets.target=Object.assign(Object.assign({},t.offsets.target),Tk(t.instance.target,t.offsets.host,t.placement)),t;const e=Ck(t.instance.target,t.instance.host,0,"viewport",!1);let n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"";const i=t.offsets.host,o=t.instance.target,s=t.instance.host,a=r?xk("auto",i,o,s,["top","bottom"]):xk("auto",i,o,s),l=[n,a];return l.forEach((i,o)=>{if(n!==i||l.length===o+1)return t;n=t.placement.split(" ")[0];const s="left"===n&&Math.floor(t.offsets.target.right)>Math.floor(t.offsets.host.left)||"right"===n&&Math.floor(t.offsets.target.left)Math.floor(t.offsets.host.top)||"bottom"===n&&Math.floor(t.offsets.target.top)Math.floor(e.right),u=Math.floor(t.offsets.target.top)Math.floor(e.bottom),d="left"===n&&a||"right"===n&&c||"top"===n&&u||"bottom"===n&&h,p=-1!==["top","bottom"].indexOf(n),f=p&&"left"===r&&a||p&&"right"===r&&c||!p&&"left"===r&&u||!p&&"right"===r&&h;(s||d||f)&&((s||d)&&(n=l[o+1]),f&&(r=function(t){return"right"===t?"left":"left"===t?"right":t}(r)),t.placement=n+(r?" "+r:""),t.offsets.target=Object.assign(Object.assign({},t.offsets.target),Tk(t.instance.target,t.offsets.host,t.placement)))}),t}function Pk(t){if(!Ik(t.options,"preventOverflow"))return t;const e="transform",n=t.instance.target.style,{top:r,left:i,[e]:o}=n;n.top="",n.left="",n[e]="";const s=Ck(t.instance.target,t.instance.host,0,"scrollParent",!1);n.top=r,n.left=i,n[e]=o;const a={primary(e){let n=t.offsets.target[e];return t.offsets.target[e]s[e]&&(r=Math.min(t.offsets.target[n],s[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),{[n]:r}}};let l;return["left","right","top","bottom"].forEach(e=>{l=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign(Object.assign({},t.offsets.target),a[l](e))}),t}function Dk(t){const e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){const{host:e,target:i}=t.offsets,o=-1!==["bottom","top"].indexOf(n),s=o?"left":"top",a=o?"width":"height",l={left:{[s]:e[s]},right:{[s]:e[s]+e[a]-e[a]}};t.offsets.target=Object.assign(Object.assign({},i),l[r])}return t}class Rk{position(t,e){return this.offset(t,e)}offset(t,e){return kk(e,t)}positionElements(t,e,n,r,i){return[Nk,Dk,Pk,Ak].reduce((t,e)=>e(t),function(t,e,n,r){const i=kk(t,e),o=!!n.match(/auto/g);let s=n.match(/auto\s(left|right|top|bottom)/g)?n.split(" ")[1]||"":n;const a=Tk(t,i,s);return s=xk(s,i,t,e),{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:a,host:i,arrow:null},positionFixed:!1,placement:s,placementAuto:o}}(e,t,n,i))}}const Mk=new Rk;let Lk=(()=>{class t{constructor(t,e,n){this._ngZone=n,this.update$$=new S,this.positionElements=new Map,Bh(e)&&this._ngZone.runOutsideAngular(()=>{$(Em(window,"scroll"),Em(window,"resize"),Cm(0,$C),this.update$$).subscribe(()=>{this.positionElements.forEach(e=>{var n,r,i,o,s,a;n=Fk(e.target),r=Fk(e.element),i=e.attachment,o=e.appendToBody,s=this.options,a=t.createRenderer(null,null),function(t,e){const n=t.instance.target,r=function(t){return{width:t.offsets.target.width,height:t.offsets.target.height,left:Math.floor(t.offsets.target.left),top:Math.round(t.offsets.target.top),bottom:Math.round(t.offsets.target.bottom),right:Math.floor(t.offsets.target.right)}}(t);Ok(n,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${r.left}px, ${r.top}px, 0px)`},e),t.instance.arrow&&Ok(t.instance.arrow,t.offsets.arrow,e),t.placementAuto&&(e?(e.setAttribute(n,"class",n.className.replace(/bs-popover-auto/g,"bs-popover-"+t.placement)),e.setAttribute(n,"class",n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement)),e.setAttribute(n,"class",n.className.replace(/\sauto/g,"s"+t.placement)),n.className.match(/popover/g)&&e.addClass(n,"popover-auto"),n.className.match(/tooltip/g)&&e.addClass(n,"tooltip-auto")):(n.className=n.className.replace(/bs-popover-auto/g,"bs-popover-"+t.placement),n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-"+t.placement),n.className=n.className.replace(/\sauto/g,"s"+t.placement),n.className.match(/popover/g)&&n.classList.add("popover-auto"),n.className.match(/tooltip/g)&&n.classList.add("tooltip-auto"))),e?e.setAttribute(n,"class",n.className.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0])):n.className=n.className.replace(/left|right|top|bottom/g,""+t.placement.split(" ")[0])}(Mk.positionElements(n,r,i,o,s),a)})})})}position(t){this.addPositionElement(t)}addPositionElement(t){this.positionElements.set(Fk(t.element),t)}calcPosition(){this.update$$.next()}deletePositionElement(t){this.positionElements.delete(Fk(t))}setOptions(t){this.options=t}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ja),Qt(kc),Qt(Hc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Fk(t){return t&&"string"==typeof t?document.querySelector(t):t instanceof Xa?t.nativeElement:t}let jk=(()=>{class t{constructor(t,e,n,r,i){this._componentFactoryResolver=t,this._ngZone=e,this._injector=n,this._posService=r,this._applicationRef=i}createLoader(t,e,n){return new rk(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Qa),Qt(Hc),Qt(hs),Qt(Lk),Qt(lu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Uk=(()=>{class t{constructor(){this.autoClose=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Vk=(()=>{class t{constructor(){this.direction="down",this.isOpenChange=new Zl,this.isDisabledChange=new Zl,this.toggleClick=new Zl,this.dropdownMenu=new Promise(t=>{this.resolveDropdownMenu=t})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Bk=(()=>{class t{constructor(t){this._state=t,this.isOpen=!1,this.display="block",this.position="absolute",this._subscription=t.isOpenChange.subscribe(t=>{this.isOpen=t})}get direction(){return this._state.direction}ngOnDestroy(){this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Vk))},t.\u0275cmp=fe({type:t,selectors:[["mdb-dropdown-container"]],hostVars:4,hostBindings:function(t,e){2&t&&la("display",e.display)("position",e.position)},ngContentSelectors:yx,decls:2,vars:8,template:function(t,e){1&t&&(Ys(),Ls(0,"div"),Js(1),Fs()),2&t&&ca("dropup","up"===e.direction)("dropdown","down"===e.direction)("show",e.isOpen)("open",e.isOpen)},directives:function(){return[Hk]},encapsulation:2,changeDetection:0}),t})(),Hk=(()=>{class t{constructor(t,e,n,r,i,o,s){this._elementRef=t,this._renderer=e,this._viewContainerRef=n,this._cis=r,this._config=i,this._state=o,this.cdRef=s,this.dropupDefault=!1,this.dynamicPosition=!1,this._destroy$=new S,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:Vk,useValue:this._state}),this.onShown=this._dropdown.onShown,this.shown=this._dropdown.shown,this.onHidden=this._dropdown.onHidden,this.hidden=this._dropdown.hidden,this.isOpenChange=this._state.isOpenChange,this._state.autoClose=this._config.autoClose}get isDropup(){return this.dropup?(this._isDropupDefault=!1,this.dropup):this.dropupDefault?(this._isDropupDefault=!0,this.dropupDefault):this.dropupDefault&&this.dropup?(this._isDropupDefault=!1,this.dropup):void 0}set autoClose(t){"boolean"==typeof t&&(this._state.autoClose=t)}get autoClose(){return this._state.autoClose}set isDisabled(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()}get isDisabled(){return this._isDisabled}get isOpen(){return this._showInline?this._isInlineOpen:this._dropdown.isShown}set isOpen(t){t?this.show():this.hide()}get isBs4(){return!qS()}ngOnInit(){this._isInited||(this._isInited=!0,this._showInline=!this.container,this._dropup=this.dropup,this._dropdown.listen({triggers:this.triggers,show:()=>this.show()}),this._state.toggleClick.pipe(LC(this._destroy$)).subscribe(t=>this.toggle(t)),this._state.isDisabledChange.pipe(LC(this._destroy$)).subscribe(t=>{!0===t&&this.hide()}),this._showInline&&this._state.dropdownMenu.then(t=>{this._inlinedMenu=t.viewContainer.createEmbeddedView(t.templateRef)}),this._state.isOpenChange.pipe(LC(this._destroy$)).subscribe(()=>{setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector(".dropdown-menu"),e=t.getBoundingClientRect().left;t.classList.contains("dropdown-menu-right")&&e<=t.clientWidth&&this._renderer.setStyle(t,"right",e<0?e+"px":"0")},0)}))}show(){if(this.isOpen||this.isDisabled)return;const t=this._elementRef.nativeElement.children[0],e=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(e.parentNode.classList.contains("btn-group")||e.parentNode.classList.contains("dropdown")||this._isDropupDefault||e.parentNode.classList.add("dropdown"),this.dropup&&!this._isDropupDefault&&e.parentNode.classList.add("dropup-material"),"BUTTON"!==t.tagName?e.classList.add("A"===t.tagName?"a-various-dropdown":"various-dropdown"):(t.classList.contains("btn-sm")&&e.classList.add("small-dropdown"),t.classList.contains("btn-md")&&e.classList.add("medium-dropdown"),t.classList.contains("btn-lg")&&e.classList.add("large-dropdown")),setTimeout(()=>{if(e.classList.add("fadeInDropdown"),this.dynamicPosition){const t=e.getBoundingClientRect(),n={top:t.top<0,bottom:t.bottom>(window.innerHeight||document.documentElement.clientHeight)};this.dropup&&n.top?this.dropup=!1:!this.dropup&&n.bottom&&(this.dropup=!0)}},0),this._showInline)return this._isInlineOpen=!0,e.parentNode.classList.contains("dropdown")||e.parentNode.classList.contains("dropup-material")?setTimeout(()=>{this.onShown.emit(!0),this.shown.emit(!0)},560):setTimeout(()=>{this.onShown.emit(!0),this.shown.emit(!0)},0),void this._state.isOpenChange.emit(!0);this._state.dropdownMenu.then(t=>{const e=!0===this.dropup||!0===this.dropupDefault;this._state.direction=e?"up":"down";const n=this.placement||(e?"top left":"bottom left");this._dropdown.attach(Bk).to(this.container).position({attachment:n}).show({content:t.templateRef,placement:n}),this._state.isOpenChange.emit(!0)})}hide(){if(!this.isOpen)return;this.dropup!==this._dropup&&(this.dropup=this._dropup);const t=this._elementRef.nativeElement.querySelector(".dropdown-menu");t.classList.remove("fadeInDropdown"),t.parentNode.classList.contains("dropdown")||t.parentNode.classList.contains("dropup-material")?setTimeout(()=>{this._showInline?(this._isInlineOpen=!1,this.onHidden.emit(!0),this.hidden.emit(!0),this.cdRef.markForCheck()):this._dropdown.hide(),this._state.isOpenChange.emit(!1)},560):setTimeout(()=>{this._showInline?(this._isInlineOpen=!1,this.onHidden.emit(!0),this.hidden.emit(!0),this.cdRef.markForCheck()):this._dropdown.hide(),this._state.isOpenChange.emit(!1)},0)}toggle(t){return this.isOpen||!1===t?this.hide():this.show()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._dropdown.dispose()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl),Ns(Cl),Ns(jk),Ns(Uk),Ns(Vk),Ns(Qo))},t.\u0275cmp=fe({type:t,selectors:[["","mdbDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(t,e){2&t&&ca("dropup",e.isDropup)("open",e.isOpen)("show",e.isOpen)},inputs:{dropupDefault:"dropupDefault",dynamicPosition:"dynamicPosition",autoClose:"autoClose",isDisabled:"isDisabled",isOpen:"isOpen",dropup:"dropup",placement:"placement",triggers:"triggers",container:"container"},outputs:{onShown:"onShown",shown:"shown",onHidden:"onHidden",hidden:"hidden",isOpenChange:"isOpenChange"},exportAs:["bs-dropdown"],features:[Ga([Vk])],attrs:Ax,ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},styles:[".dropdown-menu .dropdown-item:active{background-color:#757575}.show>.dropdown-menu{display:block}.show>a{outline:0}.dropdown-menu{margin-top:5px}.various-dropdown{transform:translate3d(0,21px,0)!important}.a-various-dropdown{transform:translate3d(0,29px,0)!important}.medium-dropdown{transform:translate3d(0,36px,0)!important}.small-dropdown{transform:translate3d(5px,34px,0)!important}.large-dropdown{transform:translate3d(5px,57px,0)!important}.btn-group>.dropdown-menu{transform:translate3d(0,43px,0)}.dropup>.dropdown-menu{display:none;transform:translate3d(117px,0,0)!important;will-change:transform}.dropup.show .dropdown-menu{display:block;opacity:0}.dropup.show .fadeInDropdown{opacity:1}.dropup-material.show .dropdown-menu{transition:.55s}.dropdown-menu{display:none;position:absolute;transform:translate3d(6px,49px,0);top:0;left:0;will-change:transform}.dropdown.show .dropdown-menu{display:block;opacity:0;transition:.55s}.dropdown.show .fadeInDropdown{opacity:1}.dropdown .dropdown-menu,.dropleft .dropdown-menu,.dropright .dropdown-menu,.dropup-material .dropdown-menu{padding:.5rem}.dropdown .dropdown-menu.dropdown-primary .dropdown-item.active,.dropdown .dropdown-menu.dropdown-primary .dropdown-item:active,.dropdown .dropdown-menu.dropdown-primary .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-primary .dropdown-item.active,.dropleft .dropdown-menu.dropdown-primary .dropdown-item:active,.dropleft .dropdown-menu.dropdown-primary .dropdown-item:hover,.dropright .dropdown-menu.dropdown-primary .dropdown-item.active,.dropright .dropdown-menu.dropdown-primary .dropdown-item:active,.dropright .dropdown-menu.dropdown-primary .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item:hover{background-color:#4285f4!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-primary .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-primary .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-primary .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-primary .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-primary .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-primary .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-primary .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-primary .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-primary .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-primary .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-danger .dropdown-item.active,.dropdown .dropdown-menu.dropdown-danger .dropdown-item:active,.dropdown .dropdown-menu.dropdown-danger .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-danger .dropdown-item.active,.dropleft .dropdown-menu.dropdown-danger .dropdown-item:active,.dropleft .dropdown-menu.dropdown-danger .dropdown-item:hover,.dropright .dropdown-menu.dropdown-danger .dropdown-item.active,.dropright .dropdown-menu.dropdown-danger .dropdown-item:active,.dropright .dropdown-menu.dropdown-danger .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item:hover{background-color:#c00!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-danger .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-danger .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-danger .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-danger .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-danger .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-danger .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-danger .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-danger .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-danger .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-danger .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-default .dropdown-item.active,.dropdown .dropdown-menu.dropdown-default .dropdown-item:active,.dropdown .dropdown-menu.dropdown-default .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-default .dropdown-item.active,.dropleft .dropdown-menu.dropdown-default .dropdown-item:active,.dropleft .dropdown-menu.dropdown-default .dropdown-item:hover,.dropright .dropdown-menu.dropdown-default .dropdown-item.active,.dropright .dropdown-menu.dropdown-default .dropdown-item:active,.dropright .dropdown-menu.dropdown-default .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-default .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-default .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-default .dropdown-item:hover{background-color:#2bbbad!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-default .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-default .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-default .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-default .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-default .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-default .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-default .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-default .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-default .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-default .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-default .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-default .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-secondary .dropdown-item.active,.dropdown .dropdown-menu.dropdown-secondary .dropdown-item:active,.dropdown .dropdown-menu.dropdown-secondary .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item.active,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item:active,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item:hover,.dropright .dropdown-menu.dropdown-secondary .dropdown-item.active,.dropright .dropdown-menu.dropdown-secondary .dropdown-item:active,.dropright .dropdown-menu.dropdown-secondary .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item:hover{background-color:#a6c!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-secondary .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-secondary .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-secondary .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-secondary .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-secondary .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-secondary .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-secondary .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-secondary .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-success .dropdown-item.active,.dropdown .dropdown-menu.dropdown-success .dropdown-item:active,.dropdown .dropdown-menu.dropdown-success .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-success .dropdown-item.active,.dropleft .dropdown-menu.dropdown-success .dropdown-item:active,.dropleft .dropdown-menu.dropdown-success .dropdown-item:hover,.dropright .dropdown-menu.dropdown-success .dropdown-item.active,.dropright .dropdown-menu.dropdown-success .dropdown-item:active,.dropright .dropdown-menu.dropdown-success .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-success .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-success .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-success .dropdown-item:hover{background-color:#00c851!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-success .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-success .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-success .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-success .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-success .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-success .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-success .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-success .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-success .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-success .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-success .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-success .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-info .dropdown-item.active,.dropdown .dropdown-menu.dropdown-info .dropdown-item:active,.dropdown .dropdown-menu.dropdown-info .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-info .dropdown-item.active,.dropleft .dropdown-menu.dropdown-info .dropdown-item:active,.dropleft .dropdown-menu.dropdown-info .dropdown-item:hover,.dropright .dropdown-menu.dropdown-info .dropdown-item.active,.dropright .dropdown-menu.dropdown-info .dropdown-item:active,.dropright .dropdown-menu.dropdown-info .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-info .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-info .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-info .dropdown-item:hover{background-color:#33b5e5!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-info .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-info .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-info .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-info .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-info .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-info .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-info .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-info .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-info .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-info .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-info .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-info .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-warning .dropdown-item.active,.dropdown .dropdown-menu.dropdown-warning .dropdown-item:active,.dropdown .dropdown-menu.dropdown-warning .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-warning .dropdown-item.active,.dropleft .dropdown-menu.dropdown-warning .dropdown-item:active,.dropleft .dropdown-menu.dropdown-warning .dropdown-item:hover,.dropright .dropdown-menu.dropdown-warning .dropdown-item.active,.dropright .dropdown-menu.dropdown-warning .dropdown-item:active,.dropright .dropdown-menu.dropdown-warning .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item:hover{background-color:#fb3!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-warning .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-warning .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-warning .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-warning .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-warning .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-warning .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-warning .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-warning .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-warning .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-warning .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-dark .dropdown-item.active,.dropdown .dropdown-menu.dropdown-dark .dropdown-item:active,.dropdown .dropdown-menu.dropdown-dark .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-dark .dropdown-item.active,.dropleft .dropdown-menu.dropdown-dark .dropdown-item:active,.dropleft .dropdown-menu.dropdown-dark .dropdown-item:hover,.dropright .dropdown-menu.dropdown-dark .dropdown-item.active,.dropright .dropdown-menu.dropdown-dark .dropdown-item:active,.dropright .dropdown-menu.dropdown-dark .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item:hover{background-color:#2e2e2e!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-dark .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-dark .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-dark .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-dark .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-dark .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-dark .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-dark .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-dark .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-dark .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-dark .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu.dropdown-ins .dropdown-item.active,.dropdown .dropdown-menu.dropdown-ins .dropdown-item:active,.dropdown .dropdown-menu.dropdown-ins .dropdown-item:hover,.dropleft .dropdown-menu.dropdown-ins .dropdown-item.active,.dropleft .dropdown-menu.dropdown-ins .dropdown-item:active,.dropleft .dropdown-menu.dropdown-ins .dropdown-item:hover,.dropright .dropdown-menu.dropdown-ins .dropdown-item.active,.dropright .dropdown-menu.dropdown-ins .dropdown-item:active,.dropright .dropdown-menu.dropdown-ins .dropdown-item:hover,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item.active,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item:active,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item:hover{background-color:#2e5e86!important;box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.dropdown .dropdown-menu.dropdown-ins .dropdown-item.active.disabled,.dropdown .dropdown-menu.dropdown-ins .dropdown-item:active.disabled,.dropdown .dropdown-menu.dropdown-ins .dropdown-item:hover.disabled,.dropleft .dropdown-menu.dropdown-ins .dropdown-item.active.disabled,.dropleft .dropdown-menu.dropdown-ins .dropdown-item:active.disabled,.dropleft .dropdown-menu.dropdown-ins .dropdown-item:hover.disabled,.dropright .dropdown-menu.dropdown-ins .dropdown-item.active.disabled,.dropright .dropdown-menu.dropdown-ins .dropdown-item:active.disabled,.dropright .dropdown-menu.dropdown-ins .dropdown-item:hover.disabled,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item.active.disabled,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item:active.disabled,.dropup-material .dropdown-menu.dropdown-ins .dropdown-item:hover.disabled{background-color:transparent;box-shadow:none}.dropdown .dropdown-menu .dropdown-item,.dropleft .dropdown-menu .dropdown-item,.dropright .dropdown-menu .dropdown-item,.dropup-material .dropdown-menu .dropdown-item{padding:.5rem;margin-left:0;font-size:.9rem}.dropdown .dropdown-menu .dropdown-item.disabled,.dropleft .dropdown-menu .dropdown-item.disabled,.dropright .dropdown-menu .dropdown-item.disabled,.dropup-material .dropdown-menu .dropdown-item.disabled{color:#868e96}.dropdown .dropdown-menu .dropdown-item.disabled:active,.dropdown .dropdown-menu .dropdown-item.disabled:focus,.dropdown .dropdown-menu .dropdown-item.disabled:hover,.dropleft .dropdown-menu .dropdown-item.disabled:active,.dropleft .dropdown-menu .dropdown-item.disabled:focus,.dropleft .dropdown-menu .dropdown-item.disabled:hover,.dropright .dropdown-menu .dropdown-item.disabled:active,.dropright .dropdown-menu .dropdown-item.disabled:focus,.dropright .dropdown-menu .dropdown-item.disabled:hover,.dropup-material .dropdown-menu .dropdown-item.disabled:active,.dropup-material .dropdown-menu .dropdown-item.disabled:focus,.dropup-material .dropdown-menu .dropdown-item.disabled:hover{box-shadow:none;color:#868e96!important;background-color:transparent!important}.dropdown .dropdown-menu .dropdown-item:active,.dropdown .dropdown-menu .dropdown-item:hover,.dropleft .dropdown-menu .dropdown-item:active,.dropleft .dropdown-menu .dropdown-item:hover,.dropright .dropdown-menu .dropdown-item:active,.dropright .dropdown-menu .dropdown-item:hover,.dropup-material .dropdown-menu .dropdown-item:active,.dropup-material .dropdown-menu .dropdown-item:hover{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);color:#fff;background-color:#4285f4;border-radius:.125rem;transition:all .1s linear}.dropdown-menu-right,.navbar-nav .dropdown-menu-right{right:0;left:auto}.dropdown-menu.animated{-webkit-animation-duration:.55s;animation-duration:.55s;-webkit-animation-timing-function:ease;animation-timing-function:ease}"],encapsulation:2}),t})(),zk=(()=>{class t{constructor(t,e,n){t.resolveDropdownMenu({templateRef:n,viewContainer:e})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Vk),Ns(Cl),Ns(_l))},t.\u0275dir=_e({type:t,selectors:[["","mdbDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]}),t})(),qk=(()=>{class t{constructor(t,e,n,r){this._state=t,this._element=e,this._renderer=n,this._cdRef=r,this._subscriptions=[],this.ariaHaspopup=!0,this.isDisabled=null,this._state.isOpenChange.subscribe(t=>{this.isOpen=t,t?(this._documentClickListener=this._renderer.listen("document","click",t=>{this._state.autoClose&&2!==t.button&&!this._element.nativeElement.contains(t.target)&&(this._state.toggleClick.emit(!1),this._cdRef.detectChanges())}),this._escKeyUpListener=this._renderer.listen(this._element.nativeElement,"keyup.esc",()=>{this._state.autoClose&&(this._state.toggleClick.emit(!1),this._cdRef.detectChanges())})):(this._documentClickListener(),this._escKeyUpListener())}),this._subscriptions.push(this._state.isDisabledChange.subscribe(t=>this.isDisabled=t||null))}onClick(){this.isDisabled||this._state.toggleClick.emit()}ngOnDestroy(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();for(const t of this._subscriptions)t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Vk),Ns(Xa),Ns(tl),Ns(Qo))},t.\u0275dir=_e({type:t,selectors:[["","mdbDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(t,e){1&t&&qs("click",(function(){return e.onClick()})),2&t&&Ts("aria-haspopup",e.ariaHaspopup)("disabled",e.isDisabled)("aria-expanded",e.isOpen)},exportAs:["bs-dropdown-toggle"]}),t})(),Wk=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[jk,Lk,Vk,{provide:Uk,useValue:e||{autoClose:!0}}]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();class Gk{constructor(){}static reflow(t){}static getStyles(t){let e=t.ownerDocument.defaultView;return e&&e.opener||(e=BS),e.getComputedStyle(t)}focusTrapModal(t,e){let n,r,i;n=e.nativeElement.querySelectorAll("a[href], button, textarea, input, select, form, mdb-select, mdb-auto-completer, mdb-checkbox, mdb-range-input"),r=n[0],i=n[n.length-1],"Tab"!==t.key&&9!==t.keyCode||(t.shiftKey?HS&&HS.activeElement===r&&(i.focus(),t.preventDefault()):HS&&HS.activeElement===i&&(r.focus(),t.preventDefault()))}getClosestEl(t,e){for(;t&&t!==HS;t=t.parentNode)if(t.matches&&t.matches(e))return t;return null}getCoords(t){const e=t.getBoundingClientRect(),n=HS.body,r=HS.documentElement,i=e.left+(BS.pageXOffset||r.scrollLeft||n.scrollLeft)-(r.clientLeft||n.clientLeft||0);return{top:Math.round(e.top+(BS.pageYOffset||r.scrollTop||n.scrollTop)-(r.clientTop||n.clientTop||0)),left:Math.round(i)}}}let $k=(()=>{class t{constructor(t,e){this._el=t,this._renderer=e,this.fab=!1,this.far=!1,this.fal=!1,this.fad=!1,this.fas=!0,this.sizeClass="",this.utils=new Gk}ngOnInit(){this.size&&(this.sizeClass="fa-"+this.size);const t=this._el.nativeElement.classList;this.fab=t.contains("fab"),this.far=t.contains("far"),this.fas=t.contains("fas"),this.fal=t.contains("fal"),this.fad=t.contains("fad");const e=this.utils.getClosestEl(this._el.nativeElement,".md-form")||this.utils.getClosestEl(this._el.nativeElement,".md-outline");e&&e.childNodes.forEach(t=>{this._renderer.listen(t,"focus",()=>{this._renderer.addClass(this._el.nativeElement,"active")}),this._renderer.listen(t,"blur",()=>{this._renderer.removeClass(this._el.nativeElement,"active")})})}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-icon"]],inputs:{icon:"icon",size:"size",class:"class",classInside:"classInside"},decls:1,vars:13,consts:[[3,"ngClass"]],template:function(t,e){var n,r,i,o,s,a,l,c,u;1&t&&js(0,"i",0),2&t&&(n="fa-",r=e.icon,i=" ",o=e.class,s=" ",a=e.classInside,l=" ",c=e.sizeClass,u="",pa(se,ha,function(t,e,n,r,i,o,s,a,l,c){const u=ks(t,an(),n,i,s,l);return cn(4),u?e+Bn(n)+r+Bn(i)+o+Bn(s)+a+Bn(l)+c:mi}(Xe(),n,r,i,o,s,a,l,c,u),!0),Rs("ngClass",ql(7,Nx,e.fas,e.far,e.fab,e.fal,e.fad)))},directives:[yh],encapsulation:2,changeDetection:0}),t})(),Kk=(()=>{class t{constructor(t,e){this._el=t,this._r=e,this._r.addClass(this._el.nativeElement,"fas")}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275dir=_e({type:t,selectors:[["","fas",""],["","solid",""]]}),t})(),Qk=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),Xk=0,Yk=(()=>{class t{constructor(t,e){this.el=t,this.renderer=e,this.id="mdb-error-"+Xk++,this.errorMsg=!0,this.messageId=this.id,this.utils=new Gk}_calculateMarginTop(){const t=this.el.nativeElement.parentNode.querySelector(".form-check"),e=t?t.offsetHeight:null;e&&(this.el.nativeElement.style.top=e+e/(e/12.5)+"px")}ngOnInit(){this.prefix=this.el.nativeElement.parentNode.querySelector(".prefix"),this.prefix&&this.prefix.classList.add("error-message");const t=this.utils.getClosestEl(this.el.nativeElement,".md-textarea");if(this._calculateMarginTop(),t){let e=t.offsetHeight+4+"px";this.renderer.setStyle(this.el.nativeElement,"top",e),this.textareaListenFunction=this.renderer.listen(t,"keyup",()=>{e=t.offsetHeight+4+"px",this.renderer.setStyle(this.el.nativeElement,"top",e)})}}ngOnDestroy(){this.textareaListenFunction&&this.textareaListenFunction(),this.prefix&&this.prefix.classList.remove("error-message")}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-error"]],hostVars:3,hostBindings:function(t,e){2&t&&(Ts("id",e.messageId),ca("error-message",e.errorMsg))},inputs:{id:"id"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},styles:[".error-message,.success-message{position:absolute;top:40px;left:0;font-size:.8rem}textarea~.error-message,textarea~.success-message{top:unset;bottom:-20px}.error-message{color:#f44336}.success-message{color:#00c851}"],encapsulation:2}),t})(),Jk=0,Zk=(()=>{class t{constructor(t,e){this.el=t,this.renderer=e,this.id="mdb-success-"+Jk++,this.successMsg=!0,this.messageId=this.id,this.utils=new Gk}_calculateMarginTop(){const t=this.el.nativeElement.parentNode.querySelector(".form-check"),e=t?t.offsetHeight:null;e&&(this.el.nativeElement.style.top=e+e/(e/12.5)+"px")}ngOnInit(){this.prefix=this.el.nativeElement.parentNode.querySelector(".prefix"),this.prefix&&this.prefix.classList.add("success-message");const t=this.utils.getClosestEl(this.el.nativeElement,".md-textarea");if(this._calculateMarginTop(),t){let e=t.offsetHeight+4+"px";this.renderer.setStyle(this.el.nativeElement,"top",e),this.textareaListenFunction=this.renderer.listen(t,"keyup",()=>{e=t.offsetHeight+4+"px",this.renderer.setStyle(this.el.nativeElement,"top",e)})}}ngOnDestroy(){this.textareaListenFunction&&this.textareaListenFunction(),this.prefix&&this.prefix.classList.remove("success-message")}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-success"]],hostVars:3,hostBindings:function(t,e){2&t&&(Ts("id",e.messageId),ca("success-message",e.successMsg))},inputs:{id:"id"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},styles:[".error-message,.success-message{position:absolute;top:40px;left:0;font-size:.8rem}textarea~.error-message,textarea~.success-message{top:unset;bottom:-20px}.error-message{color:#f44336}.success-message{color:#00c851}"],encapsulation:2}),t})(),tT=(()=>{class t{constructor(t,e){this.renderer=t,this.el=e,this._validate=!0,this._validateSuccess=!0,this._validateError=!0}get validate(){return this._validate}set validate(t){this._validate=t,this.updateErrorClass(),this.updateSuccessClass()}get validateSuccess(){return this._validateSuccess}set validateSuccess(t){this._validateSuccess=t,this.updateSuccessClass()}get validateError(){return this._validateError}set validateError(t){this._validateError=t,this.updateErrorClass(),this.updateSuccessClass()}updateSuccessClass(){this.validate&&this.validateSuccess?this.renderer.addClass(this.el.nativeElement,"validate-success"):this.renderer.removeClass(this.el.nativeElement,"validate-success")}updateErrorClass(){this.validate&&this.validateError?this.renderer.addClass(this.el.nativeElement,"validate-error"):this.renderer.removeClass(this.el.nativeElement,"validate-error")}ngOnInit(){this.updateSuccessClass(),this.updateErrorClass()}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["","mdbValidate",""]],inputs:{validate:"validate",validateSuccess:"validateSuccess",validateError:"validateError",mdbValidate:"mdbValidate"}}),t})(),eT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),nT=(()=>{class t{constructor(t,e,n){this.el=t,this._renderer=e,this.elLabel=null,this.elIcon=null,this.focusCheckbox=!0,this.focusRadio=!0,this.isBrowser=!1,this.isClicked=!1,this.element=null,this.isBrowser=Bh(n)}onfocus(){try{this._renderer.addClass(this.elLabel,"active"),this.isClicked=!0}catch(t){}}onblur(){try{""===this.el.nativeElement.value&&this._renderer.removeClass(this.elLabel,"active"),this.isClicked=!1}catch(t){}}onchange(){try{this.checkValue()}catch(t){}}onkeydown(t){try{if("number"===t.target.type){if(t.shiftKey)switch(t.keyCode){case 38:t.target.value=+t.target.value+10;break;case 40:t.target.value=+t.target.value-10}if(t.altKey)switch(t.keyCode){case 38:t.target.value=+t.target.value+.1;break;case 40:t.target.value=+t.target.value-.1}}}catch(e){}this.delayedResize()}oncut(){try{setTimeout(()=>{this.delayedResize()},0)}catch(t){}}onpaste(){try{setTimeout(()=>{this.delayedResize()},0)}catch(t){}}ondrop(){try{setTimeout(()=>{this.delayedResize()},0)}catch(t){}}ngAfterViewInit(){if(this.isBrowser)try{this.element=document.querySelector(".md-textarea-auto"),this.element&&this.delayedResize()}catch(e){}const t=this.el.nativeElement.type;this.focusCheckbox&&"checkbox"===t&&this._renderer.addClass(this.el.nativeElement,"onFocusSelect"),this.focusRadio&&"radio"===t&&this._renderer.addClass(this.el.nativeElement,"onFocusSelect")}ngAfterViewChecked(){this.initComponent(),this.checkValue()}resize(){this.el.nativeElement.classList.contains("md-textarea-auto")&&(this._renderer.setStyle(this.el.nativeElement,"height","auto"),this.el.nativeElement.scrollHeight&&this._renderer.setStyle(this.el.nativeElement,"height",this.el.nativeElement.scrollHeight+"px"))}delayedResize(){setTimeout(()=>{this.resize()},0)}initComponent(){let t,e;if(this.isBrowser){try{t=this.el.nativeElement.id}catch(n){}try{e=this.el.nativeElement.parentNode}catch(n){}this.elLabel=e.querySelector('label[for="'+t+'"]')||e.querySelector("label"),this.elLabel&&""!==this.el.nativeElement.value&&this._renderer.addClass(this.elLabel,"active"),this.elIcon=e.querySelector("i")||!1}}checkValue(){let t="";null!=this.elLabel&&(t=this.el.nativeElement.value||"",""===t&&(this._renderer.removeClass(this.elLabel,"active"),this.elIcon&&this._renderer.removeClass(this.elIcon,"active")),(""===t&&this.isClicked||""===t&&this.el.nativeElement.placeholder||""===t&&this.el.nativeElement.attributes.placeholder)&&this._renderer.addClass(this.elLabel,"active"))}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl),Ns(kc))},t.\u0275dir=_e({type:t,selectors:[["","mdbInput",""]],hostBindings:function(t,e){1&t&&qs("focus",(function(){return e.onfocus()}))("blur",(function(){return e.onblur()}))("change",(function(){return e.onchange()}))("keydown",(function(t){return e.onkeydown(t)}))("cut",(function(){return e.oncut()}))("paste",(function(){return e.onpaste()}))("drop",(function(){return e.ondrop()}))},inputs:{focusCheckbox:"focusCheckbox",focusRadio:"focusRadio"}}),t})(),rT=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),iT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),oT=(()=>{class t{hide(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const sT={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",containerClass:"",animated:!0,scroll:!1,data:{}};let aT=(()=>{class t{constructor(t,e){this.element=t,this.renderer=e,this.classNameBackDrop=!0,this._isShown=!1}get isAnimated(){return this._isAnimated}set isAnimated(t){this._isAnimated=t}get isShown(){return this._isShown}set isShown(t){this._isShown=t,t?(this.renderer.addClass(this.element.nativeElement,"in"),qS()||this.renderer.addClass(this.element.nativeElement,"show")):(this.renderer.removeClass(this.element.nativeElement,"in"),qS()||this.renderer.removeClass(this.element.nativeElement,"show"))}ngOnInit(){this.renderer.addClass(this.element.nativeElement,"fade"),Gk.reflow(this.element.nativeElement),this.isShown=!0}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-modal-backdrop"]],hostVars:2,hostBindings:function(t,e){2&t&&ca("modal-backdrop",e.classNameBackDrop)},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),lT=(()=>{class t{constructor(t,e,n,r,i){this._element=t,this._focusTrapFactory=e,this._renderer=r,this.onShow=new Zl,this.open=new Zl,this.onShown=new Zl,this.opened=new Zl,this.onHide=new Zl,this.close=new Zl,this.onHidden=new Zl,this.closed=new Zl,this.isAnimated=!0,this._isShown=!1,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.timerHideModal=0,this.timerRmBackDrop=0,this.isNested=!1,this.utils=new Gk,this._backdrop=i.createLoader(t,n,r)}set config(t){this._config=this.getConfig(t)}get config(){return this._config}get isShown(){return this._isShown}onClick(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||(this.dismissReason="backdrop-click",this.hide(t))}onEsc(){this.config.keyboard&&(this.dismissReason="esc",this.hide())}ngOnDestroy(){this.config=void 0,this._isShown&&(this._isShown=!1,this.hideModal(),this._backdrop.dispose())}ngAfterViewInit(){this._config=this._config||this.getConfig(),setTimeout(()=>{this._config.show&&this.show()},0),this._createFocusTrap()}ngOnChanges(){this.config.backdrop?this.showBackdrop():this.removeBackdrop()}toggle(){return this._isShown?this.hide():this.show()}show(){this.dismissReason=null,this.onShow.emit(this),this.open.emit(this),this._isShown||(clearTimeout(this.timerHideModal),clearTimeout(this.timerRmBackDrop),this._isShown=!0,this.checkScrollbar(),this.setScrollbar(),HS&&HS.body&&(HS.body.classList.contains("modal-open")?this.isNested=!0:this._renderer.addClass(HS.body,"modal-open")),this.showBackdrop(()=>{this.showElement()}),!this.config.backdrop&&this.config.ignoreBackdropClick&&(this._renderer.setStyle(this._element.nativeElement,"position","fixed"),-1!==zS.userAgent.indexOf("Safari")&&-1===zS.userAgent.indexOf("Chrome")&&(this._renderer.setStyle(this._element.nativeElement,"overflow","unset"),this._renderer.setStyle(this._element.nativeElement,"overflow-y","unset"),this._renderer.setStyle(this._element.nativeElement,"overflow-x","unset"))))}hide(t){t&&t.preventDefault();const e=Array.from(this._element.nativeElement.querySelectorAll("iframe")),n=Array.from(this._element.nativeElement.querySelectorAll("video"));e.forEach(t=>{const e=t.getAttribute("src");this._renderer.setAttribute(t,"src",e)}),n.forEach(t=>{t.pause()}),this.onHide.emit(this),this.close.emit(this),this._isShown&&(clearTimeout(this.timerHideModal),clearTimeout(this.timerRmBackDrop),this._isShown=!1,this._renderer.removeClass(this._element.nativeElement,"in"),qS()||this._renderer.removeClass(this._element.nativeElement,"show"),this.isAnimated?this.timerHideModal=setTimeout(()=>this.hideModal(),300):this.hideModal())}getConfig(t){return Object.assign({},sT,t)}showElement(){this._element.nativeElement.parentNode&&this._element.nativeElement.parentNode.nodeType===Node.ELEMENT_NODE||HS&&HS.body&&HS.body.appendChild(this._element.nativeElement),this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","false"),this._renderer.setStyle(this._element.nativeElement,"display","block"),this._renderer.setProperty(this._element.nativeElement,"scrollTop",0),this.isAnimated&&Gk.reflow(this._element.nativeElement),this._renderer.addClass(this._element.nativeElement,"in"),qS()||this._renderer.addClass(this._element.nativeElement,"show");const t=()=>{this._config.focus&&this._element.nativeElement.focus(),this.onShown.emit(this),this.opened.emit(this)};this.isAnimated?setTimeout(t,300):t()}_createFocusTrap(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._element.nativeElement))}hideModal(){this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","true"),this._renderer.setStyle(this._element.nativeElement,"display","none"),this.showBackdrop(()=>{this.isNested||HS&&HS.body&&this._renderer.removeClass(HS.body,"modal-open"),this.resetAdjustments(),this.focusOtherModal(),this.onHidden.emit(this),this.closed.emit(this)})}showBackdrop(t){if(!this._isShown||!this.config.backdrop||this.backdrop&&this.backdrop.instance.isShown)if(!this._isShown&&this.backdrop){this.backdrop.instance.isShown=!1;const e=()=>{this.removeBackdrop(),t&&t()};this.backdrop.instance.isAnimated?this.timerRmBackDrop=setTimeout(e,150):e()}else t&&t();else{if(this.removeBackdrop(),this._backdrop.attach(aT).to("body").show({isAnimated:this.isAnimated}),this.backdrop=this._backdrop._componentRef,!t)return;if(!this.isAnimated)return void t();setTimeout(t,150)}}removeBackdrop(){this._backdrop.hide(),this.backdrop=void 0}focusOtherModal(){try{const t=this._element.nativeElement.parentElement.querySelectorAll(".in[mdbModal]");if(!t.length)return;t[t.length-1].nativeElement.focus()}catch(t){}}resetAdjustments(){this._renderer.setStyle(this._element.nativeElement,"paddingLeft",""),this._renderer.setStyle(this._element.nativeElement,"paddingRight","")}checkScrollbar(){this.isBodyOverflowing=HS.body.clientWidth.modal-content{position:absolute;bottom:0}.modal .modal-dialog.modal-top-left{top:10px;left:10px}.modal .modal-dialog.modal-top-right{top:10px;right:10px}.modal .modal-dialog.modal-bottom-left{left:10px;bottom:10px}.modal .modal-dialog.modal-bottom-right{right:10px;bottom:10px}}.modal .modal-side.modal-top{top:0}.modal .modal-side.modal-left{left:0}.modal .modal-side.modal-right{right:0}.modal .modal-side.modal-bottom{bottom:0}.modal .modal-side.modal-top-left{top:10px;left:10px}.modal .modal-side.modal-top-right{top:10px;right:10px}.modal .modal-side.modal-bottom-left{left:10px;bottom:10px}.modal .modal-side.modal-bottom-right{right:10px;bottom:10px}.modal.fade.top:not(.show) .modal-dialog{transform:translate3d(0,-25%,0)}.modal.fade.left:not(.show) .modal-dialog{transform:translate3d(-25%,0,0)}.modal.fade.right:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.modal.fade.bottom:not(.show) .modal-dialog{transform:translate3d(0,25%,0)}.modal.fade.in{opacity:1}.modal.fade.in .modal-dialog{transform:translate(0)}.modal.fade.in .modal-dialog .relative{display:inline-block}.modal.modal-scrolling{position:relative}.modal.modal-scrolling .modal-dialog{position:fixed;z-index:1050}.modal.modal-content-clickable{top:auto;bottom:auto}.modal.modal-content-clickable .modal-dialog{position:fixed}.modal .modal-fluid{width:100%;max-width:100%}.modal .modal-fluid .modal-content{width:100%}.modal .modal-frame{position:absolute;width:100%;max-width:100%;margin:0}@media (max-width:767px){.modal .modal-frame{padding:.5rem}}.modal .modal-frame.modal-bottom{bottom:0}.modal .modal-full-height{display:flex;position:absolute;width:400px;min-height:100%;margin:0;top:0;right:0}@media (max-width:576px){.modal .modal-full-height{width:100%;padding:.5rem}}@media (max-width:992px){.modal .modal-full-height{width:100%;height:unset;position:unset}}@media (max-width:992px){.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin:1.75rem auto;min-height:unset}}@media (max-width:768px){.modal .modal-full-height.modal-bottom{margin-top:1.75rem}}@media (min-width:768px) and (max-width:992px){.modal .modal-full-height.modal-bottom{margin-bottom:1.75rem}.modal .modal-full-height.modal-bottom .modal-content{bottom:1rem}}@media (max-width:992px){.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin-left:auto;margin-right:auto}}.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-top{display:block;width:100%;height:auto}.modal .modal-full-height.modal-top{bottom:auto}.modal .modal-full-height.modal-bottom{bottom:0}.modal .modal-full-height .modal-content{width:100%}.modal .modal-full-height.modal-lg{max-width:90%;width:90%}@media (min-width:992px){.modal .modal-full-height.modal-lg{max-width:800px;width:800px}}@media (min-width:1200px){.modal .modal-full-height.modal-lg{max-width:1000px;width:1000px}}.modal .modal-side{position:absolute;right:10px;bottom:10px;margin:0;min-width:100px}@media (max-width:768px){.modal .modal-side{padding-left:.5rem}}.modal-dialog.cascading-modal{margin-top:10%}.modal-dialog.cascading-modal .modal-header{text-align:center;margin:-2rem 1rem 1rem;padding:1.5rem;border:none;flex-direction:column}.modal-dialog.cascading-modal .modal-header .close{margin-right:2.5rem}.modal-dialog.cascading-modal .modal-header.white-text .close{color:#fff;opacity:1}.modal-dialog.cascading-modal .modal-header .title{width:100%;margin-bottom:0;font-size:1.25rem}.modal-dialog.cascading-modal .modal-header .title .fa{margin-right:9px}.modal-dialog.cascading-modal .modal-header .social-buttons{margin-top:1.5rem}.modal-dialog.cascading-modal .modal-header .social-buttons a{font-size:1rem}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs{margin:-1.5rem 1rem 0}.modal-dialog.cascading-modal .modal-c-tabs .tab-content{padding:1.7rem 0 0}.modal-dialog.cascading-modal .modal-body,.modal-dialog.cascading-modal .modal-footer{color:#616161;padding-right:2rem;padding-left:2rem}.modal-dialog.cascading-modal .modal-body .additional-option,.modal-dialog.cascading-modal .modal-footer .additional-option{text-align:center;margin-top:1rem}.modal-dialog.cascading-modal.modal-avatar{margin-top:6rem}.modal-dialog.cascading-modal.modal-avatar .modal-header{margin:-6rem 2rem -1rem}.modal-dialog.cascading-modal.modal-avatar .modal-header img{width:130px}.modal-dialog.modal-notify .heading{margin:0;padding:.3rem;color:#fff;font-size:1.15rem}.modal-dialog.modal-notify .modal-header{border:0}.modal-dialog.modal-notify .close{opacity:1}.modal-dialog.modal-notify .modal-body{padding:1.5rem;color:#616161}.modal-dialog.modal-notify .btn-outline-secondary-modal{background-color:transparent}.modal-dialog.modal-notify.modal-info .modal-header{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .fa{color:#5394ff}.modal-dialog.modal-notify.modal-info .badge{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal{background:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal:active,.modal-dialog.modal-notify.modal-info .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-info .btn-primary-modal:hover{background-color:#6da4ff!important}.modal-dialog.modal-notify.modal-info .btn-primary-modal.active{background-color:#0059ec!important}.modal-dialog.modal-notify.modal-info .btn-outline-secondary-modal{border:2px solid #5394ff;color:#5394ff!important}.modal-dialog.modal-notify.modal-warning .modal-header{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .fa{color:#ff8e38}.modal-dialog.modal-notify.modal-warning .badge{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal{background:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal:active,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:hover{background-color:#ff9c52!important}.modal-dialog.modal-notify.modal-warning .btn-primary-modal.active{background-color:#d15a00!important}.modal-dialog.modal-notify.modal-warning .btn-outline-secondary-modal{border:2px solid #ff8e38;color:#ff8e38!important}.modal-dialog.modal-notify.modal-success .modal-header{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .fa{color:#01d36b}.modal-dialog.modal-notify.modal-success .badge{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal{background:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal:active,.modal-dialog.modal-notify.modal-success .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-success .btn-primary-modal:hover{background-color:#01ec78!important}.modal-dialog.modal-notify.modal-success .btn-primary-modal.active{background-color:#016d38!important}.modal-dialog.modal-notify.modal-success .btn-outline-secondary-modal{border:2px solid #01d36b;color:#01d36b!important}.modal-dialog.modal-notify.modal-danger .modal-header{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .fa{color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .badge{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal{background:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal:active,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:hover{background-color:#ff6565!important}.modal-dialog.modal-notify.modal-danger .btn-primary-modal.active{background-color:#e40000!important}.modal-dialog.modal-notify.modal-danger .btn-outline-secondary-modal{border:2px solid #ff4b4b;color:#ff4b4b!important}.modal-sm .modal-content{margin:0 auto;max-width:300px}@media (min-width:768px){.modal-sm{max-width:300px}}.modal .modal-fluid,.modal .modal-frame{width:100%;max-width:100%}.modal-ext .modal-content .modal-header{text-align:center}.modal-ext .modal-content .options{float:left}.modal-ext .modal-content .modal-body .text-xs-center fieldset{margin-top:20px}.modal-ext .modal-content .call{margin-top:1rem}.modal-ext .modal-content .modal-body{padding:2rem 2rem 1rem}.modal-content:not(.card-image) .close{position:absolute;right:15px}.modal-cart li p{margin:5px;font-weight:400}.modal-cart li p .badge{margin-left:10px;margin-top:3px;font-weight:400;position:absolute}.modal-cart li p .quantity{font-size:16px;margin-right:7px;font-weight:300}.modal-cart .cartPageLink{margin-left:10px}.modal-cart .cartPageLink a{text-decoration:underline;color:#666}.modal-cart .total{float:right;font-weight:400}.cf-phone{margin-left:7px}.side-modal{position:fixed;width:400px;height:100%;width:100%;z-index:9999}.side-modal .modal-dialog{position:absolute;bottom:10px;right:10px;width:400px;margin:10px}@media (max-width:760px){.side-modal .modal-dialog{display:none}}.side-modal .modal-header{padding:1rem}.side-modal .modal-header .heading{margin:0;padding:0}.side-modal .modal-content{border:none}.modal-dynamic>:first-child{display:flex;flex-direction:column;height:100%}.side-modal.fade:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.transparent-bd{opacity:0!important}.modal-backdrop,.modal-backdrop.in{opacity:.5}#exampleModalScroll{overflow-x:hidden;overflow-y:auto}.modal-open .modal{overflow-x:hidden;overflow-y:hidden}.form-dark .card-image{background-size:100%}"],encapsulation:2}),t})(),cT=(()=>{class t{constructor(t,e,n){this._renderer=n,this.modalClass="modal",this.tabindex=-1,this.role="dialog",this.modal=!0,this.isShown=!1,this.isModalHiding=!1,this._element=e,this.config=Object.assign({},t)}onClick(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||(this.mdbModalService.setDismissReason("backdrop-click"),this.hide())}onEsc(){this.config.keyboard&&this.level===this.mdbModalService.getModalsCount()&&(this.mdbModalService.setDismissReason("esc"),this.hide())}ngOnInit(){this.config.animated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),window&&-1!==window.navigator.userAgent.indexOf("Edge")&&this.config&&-1===this.config.toString().indexOf("side-modal")||window&&-1!==window.navigator.userAgent.indexOf("Edge")&&this.config&&-1===this.config.toString().indexOf("modal-full-height")?(this.isShown=!0,this._renderer.addClass(this._element.nativeElement,qS()?"in":"show"),this._renderer.setStyle(this._element.nativeElement,"transition","transform 0.3s ease-out"),this._renderer.setStyle(this._element.nativeElement,"transform","translate(0, 25px)")):setTimeout(()=>{this.isShown=!0,this._renderer.addClass(this._element.nativeElement,qS()?"in":"show")},this.isAnimated?150:0),document&&document.body&&(1===this.mdbModalService.getModalsCount()&&(this.mdbModalService.checkScrollbar(),this.mdbModalService.setScrollbar()),this._renderer.addClass(document.body,"modal-open")),this.config.containerClass&&this.updateContainerClass(),this.config.scroll&&this._renderer.setStyle(this._element.nativeElement,"overflow-y","auto")}focusModalElement(){this.config.focus&&this._element.nativeElement.focus()}updateContainerClass(){if(this.config.containerClass){const t=this.config.containerClass.split(" ");for(let e=0;e{const e=t.getAttribute("src");this._renderer.setAttribute(t,"src",e)}),e.forEach(t=>{t.pause()}),setTimeout(()=>{this.isShown=!1,document&&document.body&&1===this.mdbModalService.getModalsCount()&&this._renderer.removeClass(document.body,"modal-open"),this.mdbModalService.hide(this.level),this.isModalHiding=!1},this.isAnimated?300:0)}}return t.\u0275fac=function(e){return new(e||t)(Ns(iT),Ns(Xa),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-modal-container"]],hostVars:4,hostBindings:function(t,e){1&t&&qs("click",(function(t){return e.onClick(t)}))("keydown.esc",(function(){return e.onEsc()}),!1,qn),2&t&&(Ta("tabindex",e.tabindex),Ts("role",e.role),ca("modal",e.modal))},ngContentSelectors:yx,decls:3,vars:2,consts:[["role","document","cdkTrapFocus",""],[1,"modal-content","modal-dynamic"]],template:function(t,e){1&t&&(Ys(),Ls(0,"div",0),Ls(1,"div",1),Js(2),Fs(),Fs()),2&t&&ua("modal-dialog"+(e.config.class?" "+e.config.class:""))},directives:[hE],styles:[".img-fluid,.modal-dialog.cascading-modal.modal-avatar .modal-header,.video-fluid{max-width:100%;height:auto}.flex-center{display:flex;justify-content:center;align-items:center;height:100%}.flex-center p{margin:0}.flex-center ul{text-align:center}.flex-center ul li{margin-bottom:1rem}.flex-center ul li:last-of-type{margin-bottom:0}.hr-light{border-top:1px solid #fff}.hr-dark{border-top:1px solid #666}.w-responsive{width:75%}@media (max-width:740px){.w-responsive{width:100%}}.collapsible-body{display:none}.jumbotron{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);border-radius:.125rem;background-color:#fff}.bg-primary{background-color:#4285f4!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#1266f1!important}.border-primary{border-color:#4285f4!important}.bg-danger{background-color:#ff3547!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#ff0219!important}.border-danger{border-color:#ff3547!important}.bg-warning{background-color:#fb3!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#fa0!important}.border-warning{border-color:#fb3!important}.bg-success{background-color:#00c851!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#00953c!important}.border-success{border-color:#00c851!important}.bg-info{background-color:#33b5e5!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#1a9bcb!important}.border-info{border-color:#33b5e5!important}.bg-default{background-color:#2bbbad!important}a.bg-default:focus,a.bg-default:hover,button.bg-default:focus,button.bg-default:hover{background-color:#219287!important}.border-default{border-color:#2bbbad!important}.bg-secondary{background-color:#a6c!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#9540bf!important}.border-secondary{border-color:#a6c!important}.bg-dark{background-color:#212121!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#080808!important}.border-dark{border-color:#212121!important}.bg-light{background-color:#e0e0e0!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#c7c7c7!important}.border-light{border-color:#e0e0e0!important}.card-img-100{width:100px;height:100px}.card-img-64{width:64px;height:64px}.mml-1{margin-left:-.25rem!important}.flex-1{flex:1}body.modal-open{overflow:auto}.modal-dialog .modal-content{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.modal-dialog .modal-content .modal-header{border-top-left-radius:.125rem;border-top-right-radius:.125rem}.modal-dialog.cascading-modal .close{opacity:1;text-shadow:none;color:#fff;outline:0}.modal-dialog.cascading-modal .modal-header{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border-radius:.125rem}.modal-dialog.cascading-modal .modal-header .close{margin-right:1rem}.modal-dialog.cascading-modal .modal-header .title .fab,.modal-dialog.cascading-modal .modal-header .title .far,.modal-dialog.cascading-modal .modal-header .title .fas{margin-right:9px}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);display:flex}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs li{flex:1}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs li a{text-align:center}.modal-dialog.cascading-modal .modal-c-tabs .tab-content{box-shadow:unset}.modal-dialog.cascading-modal.modal-avatar .modal-header{box-shadow:none;margin:-6rem 0 -1rem}.modal-dialog.cascading-modal.modal-avatar .modal-header img{box-shadow:0 8px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);margin-left:auto;margin-right:auto}.modal-dialog.modal-notify .modal-header{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.modal-dialog.modal-notify.modal-primary .modal-header{background-color:#4285f4}.modal-dialog.modal-notify.modal-primary .fab,.modal-dialog.modal-notify.modal-primary .far,.modal-dialog.modal-notify.modal-primary .fas{color:#4285f4}.modal-dialog.modal-notify.modal-primary .badge{background-color:#4285f4}.modal-dialog.modal-notify.modal-primary .btn .fab,.modal-dialog.modal-notify.modal-primary .btn .far,.modal-dialog.modal-notify.modal-primary .btn .fas{color:#fff}.modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fab,.modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .far,.modal-dialog.modal-notify.modal-primary .btn.btn-outline-primary .fas{color:#4285f4}.modal-dialog.modal-notify.modal-danger .modal-header{background-color:#ff3547}.modal-dialog.modal-notify.modal-danger .fab,.modal-dialog.modal-notify.modal-danger .far,.modal-dialog.modal-notify.modal-danger .fas{color:#ff3547}.modal-dialog.modal-notify.modal-danger .badge{background-color:#ff3547}.modal-dialog.modal-notify.modal-danger .btn .fab,.modal-dialog.modal-notify.modal-danger .btn .far,.modal-dialog.modal-notify.modal-danger .btn .fas{color:#fff}.modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fab,.modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .far,.modal-dialog.modal-notify.modal-danger .btn.btn-outline-danger .fas{color:#ff3547}.modal-dialog.modal-notify.modal-warning .modal-header{background-color:#fb3}.modal-dialog.modal-notify.modal-warning .fab,.modal-dialog.modal-notify.modal-warning .far,.modal-dialog.modal-notify.modal-warning .fas{color:#fb3}.modal-dialog.modal-notify.modal-warning .badge{background-color:#fb3}.modal-dialog.modal-notify.modal-warning .btn .fab,.modal-dialog.modal-notify.modal-warning .btn .far,.modal-dialog.modal-notify.modal-warning .btn .fas{color:#fff}.modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fab,.modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .far,.modal-dialog.modal-notify.modal-warning .btn.btn-outline-warning .fas{color:#fb3}.modal-dialog.modal-notify.modal-success .modal-header{background-color:#00c851}.modal-dialog.modal-notify.modal-success .fab,.modal-dialog.modal-notify.modal-success .far,.modal-dialog.modal-notify.modal-success .fas{color:#00c851}.modal-dialog.modal-notify.modal-success .badge{background-color:#00c851}.modal-dialog.modal-notify.modal-success .btn .fab,.modal-dialog.modal-notify.modal-success .btn .far,.modal-dialog.modal-notify.modal-success .btn .fas{color:#fff}.modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fab,.modal-dialog.modal-notify.modal-success .btn.btn-outline-success .far,.modal-dialog.modal-notify.modal-success .btn.btn-outline-success .fas{color:#00c851}.modal-dialog.modal-notify.modal-info .modal-header{background-color:#33b5e5}.modal-dialog.modal-notify.modal-info .fab,.modal-dialog.modal-notify.modal-info .far,.modal-dialog.modal-notify.modal-info .fas{color:#33b5e5}.modal-dialog.modal-notify.modal-info .badge{background-color:#33b5e5}.modal-dialog.modal-notify.modal-info .btn .fab,.modal-dialog.modal-notify.modal-info .btn .far,.modal-dialog.modal-notify.modal-info .btn .fas{color:#fff}.modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fab,.modal-dialog.modal-notify.modal-info .btn.btn-outline-info .far,.modal-dialog.modal-notify.modal-info .btn.btn-outline-info .fas{color:#33b5e5}@media (min-width:768px){.modal .modal-dialog.modal-top{top:0}.modal .modal-dialog.modal-left{left:0}.modal .modal-dialog.modal-right{right:0}.modal .modal-dialog.modal-bottom{bottom:0}.modal .modal-dialog.modal-top-left{top:10px;left:10px}.modal .modal-dialog.modal-top-right{top:10px;right:10px}.modal .modal-dialog.modal-bottom-left{bottom:10px;left:10px}.modal .modal-dialog.modal-bottom-right{bottom:10px;right:10px}}@media (min-width:992px){.modal.modal-scrolling{position:relative}.modal.modal-scrolling .modal-dialog{position:fixed;z-index:1050}.modal.modal-content-clickable{top:auto;bottom:auto}.modal.modal-content-clickable .modal-dialog{position:fixed}.modal .modal-fluid{width:100%;max-width:100%}.modal .modal-fluid .modal-content{width:100%}.modal .modal-frame{position:absolute;margin:0!important;width:100%;max-width:100%!important}.modal .modal-frame.modal-bottom{bottom:0}.modal .modal-frame.modal-dialog{height:inherit}.modal .modal-full-height{position:absolute;display:flex;margin:0;width:400px;height:auto;min-height:100%;top:0;right:0}.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-top{display:block;width:100%;max-width:100%;height:auto}.modal .modal-full-height.modal-top{bottom:auto}.modal .modal-full-height.modal-bottom{min-height:0;top:auto}.modal .modal-full-height .modal-content{width:100%}.modal .modal-full-height.modal-lg{width:90%;max-width:90%}}@media (min-width:992px) and (min-width:992px){.modal .modal-full-height.modal-lg{width:800px;max-width:800px}}@media (min-width:992px) and (min-width:1200px){.modal .modal-full-height.modal-lg{width:1000px;max-width:1000px}}@media (min-width:992px){.modal .modal-side{position:absolute;bottom:10px;right:10px;margin:0;width:400px}}body.scrollable{overflow-y:auto}.modal-dialog .modal-content{border:0}.modal{padding-right:0!important}@media (min-width:768px){.modal .modal-dialog.modal-top{top:0;left:0;right:0}.modal .modal-dialog.modal-left{left:0}.modal .modal-dialog.modal-right{right:0}.modal .modal-dialog.modal-bottom>.modal-content{position:absolute;bottom:0}.modal .modal-dialog.modal-top-left{top:10px;left:10px}.modal .modal-dialog.modal-top-right{top:10px;right:10px}.modal .modal-dialog.modal-bottom-left{left:10px;bottom:10px}.modal .modal-dialog.modal-bottom-right{right:10px;bottom:10px}}.modal .modal-side.modal-top{top:0}.modal .modal-side.modal-left{left:0}.modal .modal-side.modal-right{right:0}.modal .modal-side.modal-bottom{bottom:0}.modal .modal-side.modal-top-left{top:10px;left:10px}.modal .modal-side.modal-top-right{top:10px;right:10px}.modal .modal-side.modal-bottom-left{left:10px;bottom:10px}.modal .modal-side.modal-bottom-right{right:10px;bottom:10px}.modal.fade.top:not(.show) .modal-dialog{transform:translate3d(0,-25%,0)}.modal.fade.left:not(.show) .modal-dialog{transform:translate3d(-25%,0,0)}.modal.fade.right:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.modal.fade.bottom:not(.show) .modal-dialog{transform:translate3d(0,25%,0)}.modal.fade.in{opacity:1}.modal.fade.in .modal-dialog{transform:translate(0)}.modal.fade.in .modal-dialog .relative{display:inline-block}.modal.modal-scrolling{position:relative}.modal.modal-scrolling .modal-dialog{position:fixed;z-index:1050}.modal.modal-content-clickable{top:auto;bottom:auto}.modal.modal-content-clickable .modal-dialog{position:fixed}.modal .modal-fluid{width:100%;max-width:100%}.modal .modal-fluid .modal-content{width:100%}.modal .modal-frame{position:absolute;width:100%;max-width:100%;margin:0}@media (max-width:767px){.modal .modal-frame{padding:.5rem}}.modal .modal-frame.modal-bottom{bottom:0}.modal .modal-full-height{display:flex;position:absolute;width:400px;min-height:100%;margin:0;top:0;right:0}@media (max-width:576px){.modal .modal-full-height{width:100%;padding:.5rem}}@media (max-width:992px){.modal .modal-full-height{width:100%;height:unset;position:unset}}@media (max-width:992px){.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin:1.75rem auto;min-height:unset}}@media (max-width:768px){.modal .modal-full-height.modal-bottom{margin-top:1.75rem}}@media (min-width:768px) and (max-width:992px){.modal .modal-full-height.modal-bottom{margin-bottom:1.75rem}.modal .modal-full-height.modal-bottom .modal-content{bottom:1rem}}@media (max-width:992px){.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-left,.modal .modal-full-height.modal-right,.modal .modal-full-height.modal-top{margin-left:auto;margin-right:auto}}.modal .modal-full-height.modal-bottom,.modal .modal-full-height.modal-top{display:block;width:100%;height:auto}.modal .modal-full-height.modal-top{bottom:auto}.modal .modal-full-height.modal-bottom{bottom:0}.modal .modal-full-height .modal-content{width:100%}.modal .modal-full-height.modal-lg{max-width:90%;width:90%}@media (min-width:992px){.modal .modal-full-height.modal-lg{max-width:800px;width:800px}}@media (min-width:1200px){.modal .modal-full-height.modal-lg{max-width:1000px;width:1000px}}.modal .modal-side{position:absolute;right:10px;bottom:10px;margin:0;min-width:100px}@media (max-width:768px){.modal .modal-side{padding-left:.5rem}}.modal-dialog.cascading-modal{margin-top:10%}.modal-dialog.cascading-modal .modal-header{text-align:center;margin:-2rem 1rem 1rem;padding:1.5rem;border:none;flex-direction:column}.modal-dialog.cascading-modal .modal-header .close{margin-right:2.5rem}.modal-dialog.cascading-modal .modal-header.white-text .close{color:#fff;opacity:1}.modal-dialog.cascading-modal .modal-header .title{width:100%;margin-bottom:0;font-size:1.25rem}.modal-dialog.cascading-modal .modal-header .title .fa{margin-right:9px}.modal-dialog.cascading-modal .modal-header .social-buttons{margin-top:1.5rem}.modal-dialog.cascading-modal .modal-header .social-buttons a{font-size:1rem}.modal-dialog.cascading-modal .modal-c-tabs .md-tabs{margin:-1.5rem 1rem 0}.modal-dialog.cascading-modal .modal-c-tabs .tab-content{padding:1.7rem 0 0}.modal-dialog.cascading-modal .modal-body,.modal-dialog.cascading-modal .modal-footer{color:#616161;padding-right:2rem;padding-left:2rem}.modal-dialog.cascading-modal .modal-body .additional-option,.modal-dialog.cascading-modal .modal-footer .additional-option{text-align:center;margin-top:1rem}.modal-dialog.cascading-modal.modal-avatar{margin-top:6rem}.modal-dialog.cascading-modal.modal-avatar .modal-header{margin:-6rem 2rem -1rem}.modal-dialog.cascading-modal.modal-avatar .modal-header img{width:130px}.modal-dialog.modal-notify .heading{margin:0;padding:.3rem;color:#fff;font-size:1.15rem}.modal-dialog.modal-notify .modal-header{border:0}.modal-dialog.modal-notify .close{opacity:1}.modal-dialog.modal-notify .modal-body{padding:1.5rem;color:#616161}.modal-dialog.modal-notify .btn-outline-secondary-modal{background-color:transparent}.modal-dialog.modal-notify.modal-info .modal-header{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .fa{color:#5394ff}.modal-dialog.modal-notify.modal-info .badge{background-color:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal{background:#5394ff}.modal-dialog.modal-notify.modal-info .btn-primary-modal:active,.modal-dialog.modal-notify.modal-info .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-info .btn-primary-modal:hover{background-color:#6da4ff!important}.modal-dialog.modal-notify.modal-info .btn-primary-modal.active{background-color:#0059ec!important}.modal-dialog.modal-notify.modal-info .btn-outline-secondary-modal{border:2px solid #5394ff;color:#5394ff!important}.modal-dialog.modal-notify.modal-warning .modal-header{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .fa{color:#ff8e38}.modal-dialog.modal-notify.modal-warning .badge{background-color:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal{background:#ff8e38}.modal-dialog.modal-notify.modal-warning .btn-primary-modal:active,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-warning .btn-primary-modal:hover{background-color:#ff9c52!important}.modal-dialog.modal-notify.modal-warning .btn-primary-modal.active{background-color:#d15a00!important}.modal-dialog.modal-notify.modal-warning .btn-outline-secondary-modal{border:2px solid #ff8e38;color:#ff8e38!important}.modal-dialog.modal-notify.modal-success .modal-header{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .fa{color:#01d36b}.modal-dialog.modal-notify.modal-success .badge{background-color:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal{background:#01d36b}.modal-dialog.modal-notify.modal-success .btn-primary-modal:active,.modal-dialog.modal-notify.modal-success .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-success .btn-primary-modal:hover{background-color:#01ec78!important}.modal-dialog.modal-notify.modal-success .btn-primary-modal.active{background-color:#016d38!important}.modal-dialog.modal-notify.modal-success .btn-outline-secondary-modal{border:2px solid #01d36b;color:#01d36b!important}.modal-dialog.modal-notify.modal-danger .modal-header{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .fa{color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .badge{background-color:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal{background:#ff4b4b}.modal-dialog.modal-notify.modal-danger .btn-primary-modal:active,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:focus,.modal-dialog.modal-notify.modal-danger .btn-primary-modal:hover{background-color:#ff6565!important}.modal-dialog.modal-notify.modal-danger .btn-primary-modal.active{background-color:#e40000!important}.modal-dialog.modal-notify.modal-danger .btn-outline-secondary-modal{border:2px solid #ff4b4b;color:#ff4b4b!important}.modal-sm .modal-content{margin:0 auto;max-width:300px}@media (min-width:768px){.modal-sm{max-width:300px}}.modal .modal-fluid,.modal .modal-frame{width:100%;max-width:100%}.modal-ext .modal-content .modal-header{text-align:center}.modal-ext .modal-content .options{float:left}.modal-ext .modal-content .modal-body .text-xs-center fieldset{margin-top:20px}.modal-ext .modal-content .call{margin-top:1rem}.modal-ext .modal-content .modal-body{padding:2rem 2rem 1rem}.modal-content:not(.card-image) .close{position:absolute;right:15px}.modal-cart li p{margin:5px;font-weight:400}.modal-cart li p .badge{margin-left:10px;margin-top:3px;font-weight:400;position:absolute}.modal-cart li p .quantity{font-size:16px;margin-right:7px;font-weight:300}.modal-cart .cartPageLink{margin-left:10px}.modal-cart .cartPageLink a{text-decoration:underline;color:#666}.modal-cart .total{float:right;font-weight:400}.cf-phone{margin-left:7px}.side-modal{position:fixed;width:400px;height:100%;width:100%;z-index:9999}.side-modal .modal-dialog{position:absolute;bottom:10px;right:10px;width:400px;margin:10px}@media (max-width:760px){.side-modal .modal-dialog{display:none}}.side-modal .modal-header{padding:1rem}.side-modal .modal-header .heading{margin:0;padding:0}.side-modal .modal-content{border:none}.modal-dynamic>:first-child{display:flex;flex-direction:column;height:100%}.side-modal.fade:not(.show) .modal-dialog{transform:translate3d(25%,0,0)}.transparent-bd{opacity:0!important}.modal-backdrop,.modal-backdrop.in{opacity:.5}#exampleModalScroll{overflow-x:hidden;overflow-y:auto}.modal-open .modal{overflow-x:hidden;overflow-y:hidden}.form-dark .card-image{background-size:100%}"],encapsulation:2}),t})(),uT=(()=>{class t{constructor(t,e){this.clf=e,this.config=sT,this.open=new Zl,this.opened=new Zl,this.close=new Zl,this.closed=new Zl,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason="",this.loaders=[],this._backdropLoader=this.clf.createLoader(this.el,this.vcr,this.renderer),this.renderer=t.createRenderer(null,null)}show(t,e){return this.modalsCount++,this._createLoaders(),this.config=Object.assign({},sT,e),this._showBackdrop(),this.lastDismissReason=null,this._showModal(t)}hide(t){1===this.modalsCount&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1?this.modalsCount-1:0,setTimeout(()=>{this._hideModal(t),this.removeLoaders(t)},this.config.animated?150:0)}_showBackdrop(){const t=this.config.backdrop||"static"===this.config.backdrop,e=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),t&&e&&(this._backdropLoader.attach(aT).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}_hideBackdrop(){this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(()=>this.removeBackdrop(),this.config.animated?150:0))}_showModal(t){const e=this.loaders[this.loaders.length-1],n=new oT,r=e.provide({provide:iT,useValue:this.config}).provide({provide:oT,useValue:n}).attach(cT).to("body").show({content:t,isAnimated:this.config.animated,data:this.config.data,mdbModalService:this});return r.instance.focusModalElement(),r.instance.level=this.getModalsCount(),n.hide=()=>{r.instance.hide()},n.content=e.getInnerComponent()||null,n}_hideModal(t){const e=this.loaders[t-1];e&&e.hide()}getModalsCount(){return this.modalsCount}setDismissReason(t){this.lastDismissReason=t}removeBackdrop(){this._backdropLoader.hide(),this.backdropRef=null}checkScrollbar(){this.isBodyOverflowing=document.body.clientWidth{t.instance.level=e+1})}copyEvent(t,e){t.subscribe(()=>{e.emit(this.lastDismissReason)})}}return t.\u0275fac=function(e){return new(e||t)(Qt(Ja),Qt(jk))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),hT=(()=>{class t{static forRoot(){return{ngModule:t,providers:[uT,jk,Lk]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[SE]]}),t})(),dT=(()=>{class t{constructor(){this.navbarLinkClicks=new S}getNavbarLinkClicks(){return this.navbarLinkClicks.asObservable()}setNavbarLinkClicks(){this.navbarLinkClicks.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),pT=(()=>{class t{constructor(t,e){this._navbarService=t,this.renderer=e,this.linkClick=new Zl}ngAfterContentInit(){setTimeout(()=>{this.links.forEach(t=>{this.renderer.listen(t.nativeElement,"click",()=>{this._navbarService.setNavbarLinkClicks()})})},0)}}return t.\u0275fac=function(e){return new(e||t)(Ns(dT),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["links"]],contentQueries:function(t,e,n){var r;1&t&&fc(n,dw,!0,Xa),2&t&&uc(r=gc())&&(e.links=r)},outputs:{linkClick:"linkClick"},ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2}),t})(),fT=(()=>{class t{constructor(t,e,n,r,i){this.renderer=t,this._navbarService=e,this._cdRef=n,this._ngZone=r,this._document=i,this.containerInside=!0,this.collapseId="navbarCollapse",this.scrollSensitivity=120,this.scrollableNavbar=!1,this._destroy$=new S,this.shown=!1,this.duration=350,this.collapse=!0,this.showClass=!1,this.collapsing=!1,this._itemsLength=0,this.ariaExpanded=!1,this._navbarService.getNavbarLinkClicks().pipe(LC(this._destroy$)).subscribe(t=>{this.closeNavbarOnClick(t)})}closeNavbarOnClick(t){this.navbarLinkClicks=t,this.showClass&&this.hide()}addTogglerIconClasses(){this.iconBackground&&(Array.isArray(this.iconBackground)?this.iconBackground.forEach(t=>{this.renderer.addClass(this.toggler.nativeElement,t)}):this.renderer.addClass(this.toggler.nativeElement,this.iconBackground))}_listenToScroll(){this._ngZone.runOutsideAngular(()=>{Em(this._document,"scroll").pipe(LC(this._destroy$)).subscribe(()=>{window.pageYOffset>this.scrollSensitivity?this.renderer.addClass(this.navbar.nativeElement,"top-nav-collapse"):this.renderer.removeClass(this.navbar.nativeElement,"top-nav-collapse")})})}ngOnInit(){const t=this.SideClass.split(" ");this.doubleNav=-1!==t.indexOf("double-nav")}ngAfterViewInit(){this.containerInside||Array.from(this.container.nativeElement.children).forEach(t=>{this.renderer.appendChild(this.navbar.nativeElement,t),this.container.nativeElement.remove()}),0===this.el.nativeElement.children.length&&this.el.nativeElement.remove(),this.addTogglerIconClasses(),this.scrollableNavbar&&this.renderer.addClass(this.el.nativeElement,"collapsed-navbar-scroll"),this.navbar.nativeElement.classList.contains("scrolling-navbar")&&this._listenToScroll()}toggle(){this.collapsing||(this.shown?this.hide():this.show())}show(){this.shown=!0,this.collapse=!1,this.collapsing=!0,this.ariaExpanded=!0,setTimeout(()=>{this.height=this.el.nativeElement.scrollHeight,this.renderer.setStyle(this.el.nativeElement,"height",this.height+"px")},0),setTimeout(()=>{this.collapsing=!1,this.collapse=!0,this.showClass=!0},this.duration),this._cdRef.markForCheck()}hide(){this.shown&&(this.shown=!1,this.collapse=!1,this.showClass=!1,this.collapsing=!0,this.ariaExpanded=!1,setTimeout(()=>{this.renderer.setStyle(this.el.nativeElement,"height","0px")},0),setTimeout(()=>{this.collapsing=!1,this.collapse=!0},this.duration)),this._cdRef.markForCheck()}get displayStyle(){return this.containerInside?"":"flex"}onResize(t){let e=0;e=this.SideClass.includes("navbar-expand-xl")?1200:this.SideClass.includes("navbar-expand-lg")?992:this.SideClass.includes("navbar-expand-md")?768:this.SideClass.includes("navbar-expand-sm")?576:t.target.innerWidth+1,t.target.innerWidth{this.height=this.el.nativeElement.scrollHeight,this.collapse=!0,this.renderer.setStyle(this.el.nativeElement,"opacity","")},4)):(this.collapsing=!1,this.shown=!1,this.showClass=!1,this.collapse=!0,this.ariaExpanded=!1,this.renderer.setStyle(this.el.nativeElement,"height",""))}ngAfterContentChecked(){this.el.nativeElement.firstElementChild&&(this._itemsLength!==this.el.nativeElement.firstElementChild.firstElementChild.children.length&&(this.height=this.el.nativeElement.firstElementChild.firstElementChild.clientHeight,this.renderer.setStyle(this.el.nativeElement,"height",this.height+"px")),this._itemsLength=this.el.nativeElement.firstElementChild.firstElementChild.children.length),this._cdRef.markForCheck()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(dT),Ns(Qo),Ns(Hc),Ns(wu))},t.\u0275cmp=fe({type:t,selectors:[["mdb-navbar"]],contentQueries:function(t,e,n){var r;1&t&&fc(n,pT,!0),2&t&&uc(r=gc())&&(e.links=r.first)},viewQuery:function(t,e){var n;1&t&&(hc(Dx,!0),dc(Rx,!0),hc(Mx,!0),hc(Lx,!0),dc(Fx,!0)),2&t&&(uc(n=gc())&&(e.el=n.first),uc(n=gc())&&(e.mobile=n.first),uc(n=gc())&&(e.navbar=n.first),uc(n=gc())&&(e.container=n.first),uc(n=gc())&&(e.toggler=n.first))},hostBindings:function(t,e){1&t&&qs("resize",(function(t){return e.onResize(t)}),!1,qn)},inputs:{containerInside:"containerInside",collapseId:"collapseId",scrollSensitivity:"scrollSensitivity",scrollableNavbar:"scrollableNavbar",iconBackground:"iconBackground",SideClass:"SideClass"},ngContentSelectors:Wx,decls:12,vars:19,consts:[["nav",""],[3,"ngClass","ngStyle"],["container",""],[4,"ngIf"],[1,"navbar-collapse","collapse",3,"ngClass"],["navbar",""],["class","navbar-toggler","type","button","aria-label","Toggle navigation","mdbWavesEffect","",3,"click",4,"ngIf"],["type","button","aria-label","Toggle navigation","mdbWavesEffect","",1,"navbar-toggler",3,"click"],["toggler",""],[1,"navbar-toggler-icon"]],template:function(t,e){1&t&&(Ys(Bx),Ls(0,"nav",null,0),Ls(2,"div",1,2),Js(4),Js(5,1),Js(6,2),Os(7,jx,1,0,void 0,3),Os(8,Vx,2,1,"div",3),Ls(9,"div",4,5),Js(11,3),Fs(),Fs(),Fs()),2&t&&(ua(e.SideClass),wi(2),Rs("ngClass",Bl(11,Hx,e.containerInside))("ngStyle",Bl(13,zx,e.displayStyle)),wi(5),Rs("ngIf",1==e.doubleNav),wi(1),Rs("ngIf",0==e.doubleNav),wi(1),la("height",e.height),Rs("ngClass",zl(15,qx,e.collapse,e.showClass,e.collapsing)),Ts("id",e.collapseId))},directives:[yh,Ah,Eh],styles:[".navbar{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);font-weight:300}.navbar form .md-form input{margin:0 5px 1px 8px}.navbar .breadcrumb{margin:0;padding:.3rem 0 0 1rem;background-color:inherit;font-size:15px;font-weight:300}.navbar .breadcrumb .breadcrumb-item{color:#fff}.navbar .breadcrumb .breadcrumb-item.active,.navbar .breadcrumb .breadcrumb-item:before{color:hsla(0,0%,100%,.65)}.navbar .navbar-toggler{outline:0;border-width:0}.navbar .nav-flex-icons{flex-direction:row}@media (max-width:992px){.navbar .container{width:100%}.navbar .container .navbar-toggler-right{right:0}}.navbar .nav-item .nav-link{display:block}.navbar .nav-item .nav-link.disabled:active{pointer-events:none}.navbar .nav-item .nav-link .fab,.navbar .nav-item .nav-link .far,.navbar .nav-item .nav-link .fas{padding-right:3px;padding-left:3px}@media (max-width:992px){.navbar .nav-item .nav-link{padding-right:6px;padding-left:6px}}.navbar .dropdown-menu{position:absolute!important;margin-top:0}.navbar .dropdown-menu a{padding:10px;font-size:.9375rem;font-weight:300;color:#000}@media (max-width:600px){.navbar .dropdown-menu form{width:17rem}}@media (min-width:600px){.navbar .dropdown-menu form{width:22rem}}.navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled,.navbar.navbar-light .navbar-nav .nav-item .nav-link.disbled:hover{color:rgba(0,0,0,.5)}.navbar.navbar-light .navbar-toggler-icon{background-image:url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");cursor:pointer}.navbar.navbar-light .breadcrumb .nav-item .nav-link,.navbar.navbar-light .navbar-nav .nav-item .nav-link{color:#000;transition:.35s}.navbar.navbar-light .breadcrumb .nav-item .nav-link:hover,.navbar.navbar-light .navbar-nav .nav-item .nav-link:hover{color:rgba(0,0,0,.75)}.navbar.navbar-light .breadcrumb .nav-item.active>.nav-link,.navbar.navbar-light .navbar-nav .nav-item.active>.nav-link{background-color:rgba(0,0,0,.1)}.navbar.navbar-light .breadcrumb .nav-item.active>.nav-link:hover,.navbar.navbar-light .navbar-nav .nav-item.active>.nav-link:hover,.navbar.navbar-light .navbar-toggler{color:#000}.navbar.navbar-light form .md-form input{border-bottom:1px solid #000}.navbar.navbar-light form .md-form input:focus:not([readonly]){border-color:#4285f4}.navbar.navbar-light form .md-form .form-control{color:#000}.navbar.navbar-light form .md-form .form-control::-moz-placeholder{color:#000;font-weight:300}.navbar.navbar-light form .md-form .form-control::placeholder{color:#000;font-weight:300}.navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled,.navbar.navbar-dark .navbar-nav .nav-item .nav-link.disbled:hover{color:hsla(0,0%,100%,.5)}.navbar.navbar-dark .navbar-toggler-icon{background-image:url(\"data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E\");cursor:pointer}.navbar.navbar-dark .breadcrumb .nav-item .nav-link,.navbar.navbar-dark .navbar-nav .nav-item .nav-link{color:#fff;transition:.35s}.navbar.navbar-dark .breadcrumb .nav-item .nav-link:hover,.navbar.navbar-dark .navbar-nav .nav-item .nav-link:hover{color:hsla(0,0%,100%,.75)}.navbar.navbar-dark .breadcrumb .nav-item.active>.nav-link,.navbar.navbar-dark .navbar-nav .nav-item.active>.nav-link{background-color:hsla(0,0%,100%,.1)}.navbar.navbar-dark .breadcrumb .nav-item.active>.nav-link:hover,.navbar.navbar-dark .navbar-nav .nav-item.active>.nav-link:hover,.navbar.navbar-dark .navbar-toggler{color:#fff}.navbar.navbar-dark form .md-form input{border-bottom:1px solid #fff}.navbar.navbar-dark form .md-form input:focus:not([readonly]){border-color:#4285f4}.navbar.navbar-dark form .md-form .form-control{color:#fff}.navbar.navbar-dark form .md-form .form-control::-moz-placeholder{color:#fff;font-weight:300}.navbar.navbar-dark form .md-form .form-control::placeholder{color:#fff;font-weight:300}@media (min-width:600px){.navbar.scrolling-navbar{transition:background .5s ease-in-out,padding .5s ease-in-out;padding-top:12px;padding-bottom:12px}.navbar.scrolling-navbar .navbar-nav>li{transition-duration:1s}.navbar.scrolling-navbar.top-nav-collapse{padding-top:5px;padding-bottom:5px}}@media (min-width:1200px){.navbar.navbar-expand-xl links,.navbar.navbar-expand-xl navlinks{display:flex;flex-direction:row;align-items:center!important;align-self:center!important;width:100%}}@media (min-width:992px){.navbar>logo>div>a img{margin-left:20px}.navbar.navbar-expand-lg links,.navbar.navbar-expand-lg navlinks{display:flex;flex-direction:row;align-items:center!important;align-self:center!important;width:100%}}@media (min-width:768px){.navbar.navbar-expand-md links,.navbar.navbar-expand-md navlinks{display:flex;flex-direction:row;width:100%}}@media (min-width:576px){.navbar.navbar-expand-sm links,.navbar.navbar-expand-sm navlinks{display:flex;flex-direction:row;width:100%}}@media (max-width:992px){.collapsed-navbar-scroll{max-height:calc(100vh - 40px);overflow-y:scroll}}.navbar-container{order:-1;width:50px!important;padding-left:5px;padding-right:5px}.navbar-nav .dropdown-menu-right.dropdown-menu{left:unset}.navbar-nav .dropdown-menu{top:100%!important;transform:translateZ(0)!important}.breadcrumbs{display:flex;padding-left:5px;padding-right:5px;order:0;align-items:center}@media (min-width:1441px){.breadcrumbs{margin-left:-.6rem}}@supports (-ms-ime-align:auto){@media (min-width:992px){.ie-nav .navbar-nav.nav-flex-icons{position:absolute;top:30%;right:0}.ie-nav .navbar-nav{position:absolute;top:30%;margin-left:88px}.ie-nav .navbar-brand>img{margin-top:-2px;padding-right:16px}}.ie-nav .navbar-toggler{position:absolute;margin-top:-40px;right:0}@media (min-width:992px){.intro-non-fixed-nav>links .navbar-collapse{display:inline-flex!important;align-items:center!important;justify-content:space-between!important}}@media (min-width:992px){.intro-fixed-nav .navbar-nav.nav-flex-icons{position:absolute;top:30%;right:0}.intro-fixed-nav .navbar-nav{position:absolute;top:30%;margin-left:88px}.intro-fixed-nav .navbar-brand img{margin-top:-2px;padding-right:16px}}.intro-fixed-nav .navbar-toggler{position:absolute;margin-top:-40px;right:0}}@media (-ms-high-contrast:active) and (min-width:992px),(-ms-high-contrast:none) and (min-width:992px){.ie-nav .navbar-nav.nav-flex-icons{position:absolute;top:30%;right:0}.ie-nav .navbar-nav{position:absolute;top:30%;margin-left:88px}.ie-nav .navbar-brand>img{margin-top:-2px;padding-right:16px}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ie-nav .navbar-toggler{position:absolute;margin-top:-40px;right:0}}@media (-ms-high-contrast:active) and (min-width:992px),(-ms-high-contrast:none) and (min-width:992px){.intro-non-fixed-nav>links .navbar-collapse{display:inline-flex!important;align-items:center!important;justify-content:space-between!important}}@media (-ms-high-contrast:active) and (min-width:992px),(-ms-high-contrast:none) and (min-width:992px){.intro-fixed-nav .navbar-nav.nav-flex-icons{position:absolute;top:30%;right:0}.intro-fixed-nav .navbar-nav{position:absolute;top:30%;margin-left:88px}.intro-fixed-nav .navbar-brand img{margin-top:-2px;padding-right:16px}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.intro-fixed-nav .navbar-toggler{position:absolute;margin-top:-40px;right:0}}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:none}.navbar .nav-item.avatar{padding:0}.navbar .nav-item.avatar.active{background-color:transparent!important}.navbar .nav-item.avatar .dropdown-toggle{padding:0}.navbar .nav-item.avatar .dropdown-toggle img{height:35px}.navbar .nav-item.avatar .dropdown-toggle:after{display:none}@media (max-width:992px){.double-nav{padding-top:4px;padding-bottom:4px}}@media (max-width:768px){.double-nav .container{padding-left:0;padding-right:0}}.double-nav a{font-size:15px;color:#fff}.double-nav .breadcrumb-dn p{margin:0;padding-top:0;padding-left:1rem}@media (max-width:993px){.double-nav .breadcrumb-dn{display:none}}.double-nav .button-collapse{left:10px;font-size:1.5rem}@media (min-width:1440px){.double-nav .button-collapse{display:none}}@media (max-width:1440px){.double-nav .button-collapse{display:block;position:relative;font-size:1.4rem;margin-right:10px;margin-left:10px}}"],encapsulation:2,changeDetection:0}),t})(),gT=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["logo"],["mdb-navbar-brand"]],ngContentSelectors:yx,decls:1,vars:0,template:function(t,e){1&t&&(Ys(),Js(0))},encapsulation:2}),t})(),mT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[dT],imports:[[Vh]]}),t})(),vT=(()=>{class t{constructor(){this.placement="top",this.triggers="click"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),bT=(()=>{class t{static forRoot(){return{ngModule:t,providers:[vT,jk,Lk]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),yT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),_T=(()=>{class t{constructor(){this._dataSource=[],this._dataSourceChanged=new S}addRow(t){this.getDataSource().push(t)}addRowAfter(t,e){this.getDataSource().splice(t,0,e)}removeRow(t){this.getDataSource().splice(t,1)}rowRemoved(){return new _(t=>{t.next(!0)})}removeLastRow(){this.getDataSource().pop()}getDataSource(){return this._dataSource}setDataSource(t){this._dataSource=t,this._dataSourceChanged.next(this.getDataSource())}dataSourceChange(){return this._dataSourceChanged}filterLocalDataBy(t){return this.getDataSource().filter(e=>Object.keys(e).some(n=>{if(e[n])return e[n].toString().toLowerCase().includes(t)}))}searchLocalDataBy(t){return t?t?this.filterLocalDataBy(t.toLowerCase()):void 0:this.getDataSource()}searchDataObservable(t){return new _(e=>{e.next(this.searchLocalDataBy(t))})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),wT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[_T],imports:[[Vh]]}),t})(),CT=(()=>{class t{constructor(){this.placement="top",this.triggers="hover focus"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),ET=(()=>{class t{static forRoot(){return{ngModule:t,providers:[CT,jk,Lk]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),xT=(()=>{class t{constructor(t){this.el=t}click(t){if(!this.el.nativeElement.classList.contains("disabled")){const e=this.el.nativeElement;e.classList.contains("waves-effect")||(e.className+=" waves-effect");const n=t.clientX-e.getBoundingClientRect().left,r=t.clientY-e.getBoundingClientRect().top,i=document.createElement("div");i.className+="waves-ripple waves-rippling";const o=e.appendChild(i),s=n+"px";i.style.top=r+"px",i.style.left=s;const a="scale("+e.clientWidth/100*3+") translate(0,0)";i.style.webkitTransform=a,i.style.transform=a,i.style.opacity="1";const l=750;i.style.webkitTransitionDuration=l+"ms",i.style.transitionDuration=l+"ms",this.removeRipple(e,o)}}removeRipple(t,e){e.classList.remove("waves-rippling"),setTimeout(()=>{e.style.opacity="0",setTimeout(()=>{t.removeChild(e)},750)},200)}}return t.\u0275fac=function(e){return new(e||t)(Ns(Xa))},t.\u0275dir=_e({type:t,selectors:[["","mdbWavesEffect",""]],hostBindings:function(t,e){1&t&&qs("click",(function(t){return e.click(t)}))}}),t})(),ST=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),kT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[PS,ST.forRoot(),rT.forRoot(),mT,Wk.forRoot(),QS.forRoot(),XS,ZS.forRoot(),hT.forRoot(),ET.forRoot(),bT.forRoot(),Qk,VS.forRoot(),YS,wT,IS,OS,eT,yT],PS,VS,ST,rT,mT,Wk,QS,XS,ZS,hT,ET,bT,Qk,YS,wT,IS,OS,eT,yT]}),t})(),TT=(()=>{class t{static forRoot(){return{ngModule:kT}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[PS,VS,ST,rT,mT,Wk,QS,XS,ZS,hT,ET,bT,Qk,YS,wT,IS,OS,eT,yT]}),t})(),IT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})();class OT{constructor(t,e){this.component=t,this.injector=e}attach(t,e){return this._attachedHost=t,t.attach(this,e)}detach(){const t=this._attachedHost;return this._attachedHost=null,t.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class AT extends class{constructor(){this.setToNullValue=null}attach(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(null),this._attachedPortal=null,null!=this._disposeFn&&(this._disposeFn(),this._disposeFn=this.setToNullValue)}setDisposeFn(t){this._disposeFn=t}}{constructor(t,e,n){super(),this._hostDomElement=t,this._componentFactoryResolver=e,this._appRef=n}attachComponentPortal(t,e){const n=this._componentFactoryResolver.resolveComponentFactory(t.component);let r;return r=n.create(t.injector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()}),e?this._hostDomElement.insertBefore(this._getComponentRootNode(r),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(r)),r}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}class NT{constructor(t){this._portalHost=t}attach(t,e){return this._portalHost.attach(t,e)}detach(){return this._portalHost.detach()}}class PT{getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=document.createElement("div");t.classList.add("overlay-container"),document.body.appendChild(t),this._containerElement=t}}let DT=(()=>{class t{constructor(t,e,n){this._overlayContainer=t,this._componentFactoryResolver=e,this._appRef=n,this._paneElements={}}create(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}getPaneElement(t,e){return this._paneElements[t]||(this._paneElements[t]=this._createPaneElement(t,e)),this._paneElements[t]}_createPaneElement(t,e){const n=document.createElement("div");return n.id="toast-container",n.classList.add(t),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalHost(t){return new AT(t,this._componentFactoryResolver,this._appRef)}_createOverlayRef(t){return new NT(this._createPortalHost(t))}}return t.\u0275fac=function(e){return new(e||t)(Qt(PT),Qt(Qa),Qt(lu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class RT{constructor(t,e,n,r,i,o){this.toastId=t,this.config=e,this.message=n,this.title=r,this.toastType=i,this.toastRef=o,this._onTap=new S,this._onAction=new S}triggerTap(){this._onTap.next(),this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(t){this._onAction.next(t),this._onAction.complete()}onAction(){return this._onAction.asObservable()}}const MT={serviceInstance:new Object};let LT=(()=>{class t{constructor(t,e){this.toastPackage=t,this.appRef=e,this.width=-1,this.state="inactive",this.toastClasses="",this.toastService=MT.serviceInstance,this.message=t.message,this.title=t.title,this.options=t.config,this.toastClasses=`${t.toastType} ${t.config.toastClass}`,this.sub=t.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=t.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.opacity=this.options.opacity}get animationParams(){return{value:this.state,params:{opacity:this.opacity}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",0!==this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width)return;const t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,this.width<=0&&(this.width=0)}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastService.remove(this.toastPackage.toastId),250))}onActionClick(){this.toastPackage.triggerAction(),this.remove()}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){0!=+this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=+this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+this.options.timeOut,this.width=100,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return t.\u0275fac=function(e){return new(e||t)(Ns(RT),Ns(lu))},t.\u0275cmp=fe({type:t,selectors:[["mdb-toast-component"]],hostVars:3,hostBindings:function(t,e){1&t&&qs("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(Ia("@flyInOut",e.animationParams),ua(e.toastClasses))},decls:6,vars:6,consts:[["class","md-toast-close-button",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],[3,"class","innerHTML",4,"ngIf"],["class","btn btn-block md-toast-action mt-2",3,"ngClass","click",4,"ngIf"],[4,"ngIf"],[1,"md-toast-close-button",3,"click"],[3,"innerHTML"],[1,"btn","btn-block","md-toast-action","mt-2",3,"ngClass","click"],[1,"md-toast-progress"]],template:function(t,e){1&t&&(Os(0,$x,2,0,"button",0),Os(1,Kx,2,5,"div",1),Os(2,Qx,1,4,"div",2),Os(3,Xx,2,5,"div",1),Os(4,Yx,2,2,"button",3),Os(5,Jx,2,2,"div",4)),2&t&&(Rs("ngIf",e.options.closeButton),wi(1),Rs("ngIf",e.title),wi(1),Rs("ngIf",e.message&&e.options.enableHtml),wi(1),Rs("ngIf",e.message&&!e.options.enableHtml),wi(1),Rs("ngIf",e.options.actionButton),wi(1),Rs("ngIf",e.options.progressBar))},directives:[Eh,yh],styles:['.md-toast-title{font-weight:400}.md-toast-message{word-wrap:break-word}.md-toast-message a,.md-toast-message label{color:#fff}.md-toast-message a:hover{color:#ccc;text-decoration:none}.md-toast-close-button{color:#fff;position:relative;right:-.3em;top:-.3em;float:right;font-size:1.25rem;font-weight:400;text-shadow:0 1px 0 #fff;opacity:.8;filter:alpha(opacity=80)}.md-toast-close-button:focus,.md-toast-close-button:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.4;filter:alpha(opacity=40)}button.md-toast-close-button{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.md-toast-top-center{top:0;right:0;width:100%}.md-toast-bottom-center{bottom:0;right:0;width:100%}.md-toast-top-full-width{top:0;right:0;width:100%}.md-toast-bottom-full-width{bottom:0;right:0;width:100%}.md-toast-top-left{top:12px;left:12px}.md-toast-top-right{top:12px;right:12px}.md-toast-bottom-right{right:12px;bottom:12px}.md-toast-bottom-left{bottom:12px;left:12px}#toast-container{position:fixed;z-index:999999}#toast-container *{box-sizing:border-box}#toast-container>div{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);color:#fff;position:relative;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:18.75rem;background-position:15px;background-repeat:no-repeat;opacity:.95;filter:alpha(opacity=95)}#toast-container>:hover{opacity:1}#toast-container.md-toast-bottom-center>div,#toast-container.md-toast-top-center>div{width:18.75rem;margin:auto}#toast-container.md-toast-bottom-full-width>div,#toast-container.md-toast-top-full-width>div{width:96%;margin:auto}.md-toast{background-color:#030303}.md-toast-success{background-color:#00c851;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==")!important}.md-toast-error{background-color:#ff3547;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=")!important}.md-toast-info{background-color:#33b5e5;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=")!important}.md-toast-warning{background-color:#fb3;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=")!important}.md-toast-progress{position:absolute;left:0;bottom:0;height:4px;background-color:#000;opacity:.4;filter:alpha(opacity=40)}#toast-container>:hover{transition:.45s;box-shadow:0 8px 17px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19);opacity:1!important;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);filter:alpha(opacity=100);cursor:pointer}#toast-container>mdb-toast-component{display:block;position:relative;overflow:hidden;margin:0 0 6px;padding:15px 15px 15px 50px;width:300px;background-position:15px;background-repeat:no-repeat;color:#fff;opacity:.8;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=80);filter:alpha(opacity=80);box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);color:#fff!important}#toast-container.md-toast-bottom-center>mdb-toast-component,#toast-container.md-toast-top-center>mdb-toast-component{width:300px;margin:auto}#toast-container.md-toast-bottom-full-width>mdb-toast-component,#toast-container.md-toast-top-full-width>mdb-toast-component{width:96%;margin:auto}@media (max-width:240px){#toast-container>mdb-toast-component{padding:8px 8px 8px 50px;width:11em}#toast-container .md-toast-close-button{right:-.2em;top:-.2em}}@media (min-width:241px) and (max-width:480px){#toast-container>mdb-toast-component{padding:8px 8px 8px 50px;width:18em}#toast-container .md-toast-close-button{right:-.2em;top:-.2em}}@media (min-width:481px) and (max-width:768px){#toast-container>mdb-toast-component{padding:15px 15px 15px 50px;width:25em}}.md-toast-action{background-color:transparent}'],encapsulation:2,data:{animation:[wd("flyInOut",[Sd("inactive",xd({opacity:0})),Sd("active",xd({opacity:"{{ opacity }}"}),{params:{opacity:.5}}),Sd("removed",xd({opacity:0})),kd("inactive => active",Cd("300ms ease-in")),kd("active => removed",Cd("300ms ease-in"))])]}}),t})();class FT{constructor(t,e){this._toastPackage=t,this._parentInjector=e}get(t,e){return t===RT&&this._toastPackage?this._toastPackage:this._parentInjector.get(t,e)}}const jT=new Ut("ToastConfig");class UT{constructor(t){this._overlayRef=t,this._afterClosed=new S,this._activate=new S,this._manualClose=new S}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._afterClosed.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}}let VT=(()=>{class t{constructor(t,e,n,r){function i(e,n){return t&&void 0!==e?e:n}this.toastConfig=t,this.overlay=e,this._injector=n,this.sanitizer=r,this.index=0,this.previousToastMessage="",this.currentlyActive=0,this.toasts=[],MT.serviceInstance=this,this.toastConfig=this.applyConfig(t),this.toastConfig.maxOpened=i(this.toastConfig.maxOpened,0),this.toastConfig.autoDismiss=i(this.toastConfig.autoDismiss,!1),this.toastConfig.newestOnTop=i(this.toastConfig.newestOnTop,!0),this.toastConfig.preventDuplicates=i(this.toastConfig.preventDuplicates,!1),this.toastConfig.opacity=i(this.toastConfig.opacity,.5),this.toastConfig.iconClasses||(this.toastConfig.iconClasses={}),this.toastConfig.iconClasses.error=this.toastConfig.iconClasses.error||"md-toast-error",this.toastConfig.iconClasses.info=this.toastConfig.iconClasses.info||"md-toast-info",this.toastConfig.iconClasses.success=this.toastConfig.iconClasses.success||"md-toast-success",this.toastConfig.iconClasses.warning=this.toastConfig.iconClasses.warning||"md-toast-warning",this.toastConfig.timeOut=i(this.toastConfig.timeOut,5e3),this.toastConfig.closeButton=i(this.toastConfig.closeButton,!1),this.toastConfig.extendedTimeOut=i(this.toastConfig.extendedTimeOut,1e3),this.toastConfig.progressBar=i(this.toastConfig.progressBar,!1),this.toastConfig.enableHtml=i(this.toastConfig.enableHtml,!1),this.toastConfig.toastClass=i(this.toastConfig.toastClass,"md-toast"),this.toastConfig.positionClass=i(this.toastConfig.positionClass,"md-toast-top-right"),this.toastConfig.titleClass=i(this.toastConfig.titleClass,"md-toast-title"),this.toastConfig.messageClass=i(this.toastConfig.messageClass,"md-toast-message"),this.toastConfig.tapToDismiss=i(this.toastConfig.tapToDismiss,!0),this.toastConfig.toastComponent=i(this.toastConfig.toastComponent,LT),this.toastConfig.onActivateTick=i(this.toastConfig.onActivateTick,!1),this.toastConfig.actionButton=i(this.toastConfig.actionButton,""),this.toastConfig.actionButtonClass=i(this.toastConfig.actionButtonClass,""),this.toastConfig.opacity=i(this.toastConfig.opacity,.5)}show(t,e,n,r=""){const i=this.applyConfig(n||{}),o=r.includes("md-toast")?r:"md-toast-"+r;return this._buildNotification(o,t,e,i)}success(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.success,t,e,this.applyConfig(n))}error(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.error,t,e,this.applyConfig(n))}info(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.info,t,e,this.applyConfig(n))}warning(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.warning,t,e,this.applyConfig(n))}clear(t){let e;for(e of this.toasts)if(void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}remove(t){const e=this._findToast(t);if(!e)return!1;if(e.activeToast.toastRef.close(),this.toasts.splice(e.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastConfig.maxOpened||!this.toasts.length)return!1;if(this.currentlyActive<=+this.toastConfig.maxOpened&&this.toasts[this.currentlyActive]){const t=this.toasts[this.currentlyActive].toastRef;t.isInactive()||(this.currentlyActive=this.currentlyActive+1,t.activate())}return!0}isDuplicate(t){for(let e=0;e=this.toastConfig.maxOpened&&(i=!0,this.toastConfig.autoDismiss&&this.clear(this.toasts[this.toasts.length-this.toastConfig.maxOpened].toastId)),i)return;const o=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;let s=e;e&&r.enableHtml&&(s=this.sanitizer.sanitize(Qr.HTML,e));const a=new UT(o),l=new RT(this.index,r,s,n,t,a),c={toastId:this.index,message:e,toastRef:a,onShown:a.afterActivate(),onHidden:a.afterClosed(),onTap:l.onTap(),onAction:l.onAction()},u=new FT(l,this._injector),h=new OT(r.toastComponent,u);return c.portal=o.attach(h,this.toastConfig.newestOnTop),i||setTimeout(()=>{c.toastRef.activate(),this.currentlyActive=this.currentlyActive+1}),this.toasts.push(c),c}}return t.\u0275fac=function(e){return new(e||t)(Qt(jT),Qt(DT),Qt(hs),Qt(gd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),BT=(()=>{class t{constructor(t){if(t)throw new Error("ToastModule is already loaded. It should only be imported in your application's main module.")}static forRoot(e){return{ngModule:t,providers:[{provide:jT,useValue:e},PT,DT,VT]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)(Qt(t,12))},imports:[[Vh]]}),t})(),HT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,RC,_m]]}),t})(),zT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),qT=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),WT=(()=>{class t{constructor(){this.locales={en:{dayLabelsFull:{su:"Sunday",mo:"Monday",tu:"Tuesday",we:"Wednesday",th:"Thursday",fr:"Friday",sa:"Saturday"},dayLabels:{su:"Sun",mo:"Mon",tu:"Tue",we:"Wed",th:"Thu",fr:"Fri",sa:"Sat"},monthLabelsFull:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},monthLabels:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},dateFormat:"yyyy-mm-dd",todayBtnTxt:"Today",clearBtnTxt:"Clear",closeBtnTxt:"Close",firstDayOfWeek:"mo",sunHighlight:!1}}}setLocaleOptions(t){Object.entries(t).forEach(t=>{this.locales[t[0]]=t[1]})}getLocaleOptions(t){return t&&this.locales.hasOwnProperty(t)?this.locales[t]:this.locales.en}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),GT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[WT],imports:[[Vh,_m]]}),t})(),$T=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),KT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),QT=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),XT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),YT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),JT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,YS]]}),t})(),ZT=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,JT,bx],JT]}),t})();const tI=`The ${"spinning-preloader-container".split("-").join(" ")} was not found`;let eI=(()=>{class t{constructor(t){this.document=t,this.container=this.document.querySelector(".spinning-preloader-container")}static errorHandler(){throw new TypeError(tI)}start(){this.container.classList.remove("complete")}stop(){this.container.classList.add("complete")}get container(){return this._container}set container(t){this._container=t||this.document.createElement("div")}}return t.\u0275fac=function(e){return new(e||t)(Qt(wu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),nI=(()=>{class t{constructor(){this.animate=!0,this.max=100}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),rI=(()=>{class t{static forRoot(){return{ngModule:t,providers:[nI]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})();Math;let iI=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})(),oI=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})();const sI=[oI,iI,rI];let aI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[oI.forRoot(),iI.forRoot(),rI.forRoot()],oI,iI,rI]}),t})(),lI=(()=>{class t{static forRoot(){return{ngModule:aI}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[sI,oI,iI,rI]}),t})(),cI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),uI=(()=>{class t{constructor(){this.scrollSpys=[],this.activeSubject=new S,this.active$=this.activeSubject}addScrollSpy(t){this.scrollSpys.push(t)}removeScrollSpy(t){const e=this.scrollSpys.findIndex(e=>e.id===t);this.scrollSpys.splice(e,1)}updateActiveState(t,e){const n=this.scrollSpys.find(e=>e.id===t);if(!n)return;const r=n.links.find(t=>t.id===e);this.setActiveLink(r)}removeActiveState(t,e){const n=this.scrollSpys.find(e=>e.id===t);if(!n)return;const r=n.links.find(t=>t.id===e);r&&(r.active=!1,r.detectChanges())}setActiveLink(t){t&&(t.active=!0,t.detectChanges(),this.activeSubject.next(t))}removeActiveLinks(t){const e=this.scrollSpys.find(e=>e.id===t);e&&e.links.forEach(t=>{t.active=!1,t.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),hI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[uI]}),t})(),dI=(()=>{class t{constructor(t,e,n,r,i){this.el=e,this.renderer=n,this._cdRef=r,this.document=i,this.slimSidenav=!1,this.isBrowser=!1,this._sidenavTransform="translateX(-100%)",this.fixed=!0,this._side="left",this.isBrowser=Bh(t)}get side(){return this._side}set side(t){"left"===t?(this._sidenavTransform="translateX(-100%)",this.renderer.removeClass(this.sideNav.nativeElement,"side-nav-right")):(this._sidenavTransform="translateX(100%)",this.renderer.addClass(this.sideNav.nativeElement,"side-nav-right")),this._side=t}ngOnInit(){this.sidenavBreakpoint&&this.sidenavBreakpoint>=BS.innerWidth&&this.hide()}ngAfterViewInit(){if("right"===this._side&&this.renderer.addClass(this.sideNav.nativeElement,"side-nav-right"),this.isBrowser){const t=this.el.nativeElement.children[0].children,e=this.el.nativeElement.querySelector(".sidenav-bg");let n=0;if(e){for(let e=0;e+this.sidenavBreakpoint&&this.shown||this.windwosWidth>+this.sidenavBreakpoint)&&(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.hideOverlay(),this.setShown(!0))):this.windwosWidth>+this.sidenavBreakpoint&&this.windwosWidth!==t&&(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.hideOverlay(),this.setShown(!1)):this.fixed&&this.windwosWidth!==t?(this.windwosWidth<1441&&(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1)),(this.windwosWidth>1440&&this.shown||this.windwosWidth>1440)&&(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.hideOverlay(),this.setShown(!0))):this.windwosWidth>1440&&this.windwosWidth!==t&&(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.hideOverlay(),this.setShown(!1))}}show(){this.isBrowser&&(this.sidenavBreakpoint?this.fixed?this.windwosWidth<+this.sidenavBreakpoint+1?(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0),this.showOverlay()):(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0)):(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0),this.showOverlay()):this.fixed?this.windwosWidth<1441?(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0),this.showOverlay()):(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0)):(this.renderer.setStyle(this.sideNav.nativeElement,"transform","translateX(0%)"),this.renderer.setStyle(this.el.nativeElement,"transform","translateX(0%)"),this.setShown(!0),this.showOverlay()),this._cdRef.markForCheck())}hide(){this.isBrowser&&(this.sidenavBreakpoint?this.fixed?this.windwosWidth<+this.sidenavBreakpoint+1?(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1),this.hideOverlay()):(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1)):(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1),this.hideOverlay()):this.fixed?this.windwosWidth<1441?(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1),this.hideOverlay()):(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1)):(this.renderer.setStyle(this.sideNav.nativeElement,"transform",this._sidenavTransform),this.renderer.setStyle(this.el.nativeElement,"transform",this._sidenavTransform),this.setShown(!1),this.hideOverlay()),this._cdRef.markForCheck())}toggle(){this.shown?this.hide():this.show()}toggleSlim(){const t=this.el.nativeElement.querySelector(".sidenav-bg"),e=this.el.nativeElement.querySelectorAll("mdb-accordion-item-head");this.slimSidenav=!this.slimSidenav,e.forEach(t=>{this.slimSidenav?this.renderer.addClass(t,"overflow-hidden"):this.renderer.removeClass(t,"overflow-hidden")}),this.renderer.addClass(this.sideNav.nativeElement,"overflow-hidden"),this.slimSidenav?(this.renderer.addClass(this.sideNav.nativeElement,"slim"),this.renderer.addClass(t,"slim")):(this.renderer.removeClass(this.sideNav.nativeElement,"slim"),this.renderer.removeClass(t,"slim")),this._cdRef.markForCheck()}showOverlay(){this.renderer.setStyle(this.overlay.nativeElement,"display","block"),setTimeout(()=>{this.renderer.setStyle(this.overlay.nativeElement,"opacity","1")},10)}hideOverlay(){this.renderer.setStyle(this.overlay.nativeElement,"opacity","0"),setTimeout(()=>{this.renderer.setStyle(this.overlay.nativeElement,"display","none")},200)}setShown(t){setTimeout(()=>{this.shown=t},510)}ngOnDestroy(){this.document.body.classList.contains("hidden-sn")?this.renderer.removeClass(this.document.body,"hidden-sn"):this.document.body.classList.contains("fixed-sn")&&this.renderer.removeClass(this.document.body,"fixed-sn")}}return t.\u0275fac=function(e){return new(e||t)(Ns(kc),Ns(Xa),Ns(tl),Ns(Qo),Ns(wu))},t.\u0275cmp=fe({type:t,selectors:[["mdb-sidenav"],["mdb-side-nav"]],viewQuery:function(t,e){var n;1&t&&(hc(Zx,!0),hc(tS,!0)),2&t&&(uc(n=gc())&&(e.sideNav=n.first),uc(n=gc())&&(e.overlay=n.first))},hostBindings:function(t,e){1&t&&qs("resize",(function(){return e.windowsResize()}),!1,qn)},inputs:{fixed:"fixed",side:"side",class:"class",sidenavBreakpoint:"sidenavBreakpoint"},ngContentSelectors:yx,decls:5,vars:3,consts:[["id","slide-out"],["sidenav",""],["id","sidenav-overlay",2,"display","none","opacity","0",3,"click","touchstart"],["overlay",""]],template:function(t,e){1&t&&(Ys(),Ls(0,"ul",0,1),Js(2),Fs(),Ls(3,"div",2,3),qs("click",(function(){return e.hide()}))("touchstart",(function(){return e.hide()})),Fs()),2&t&&Sa("",e.class," side-nav")},styles:['.sn-bg-1{background-image:url(https://mdbootstrap.com/img/Photos/Others/sidenav1.jpg)}.sn-bg-2{background-image:url(https://mdbootstrap.com/img/Photos/Others/sidenav2.jpg)}.sn-bg-3{background-image:url(https://mdbootstrap.com/img/Photos/Others/sidenav3.jpg)}.sn-bg-4{background-image:url(https://mdbootstrap.com/img/Photos/Others/sidenav4.jpg)}.side-nav{position:fixed;width:15rem;left:0;top:0;margin:0;transform:translateX(-100%);height:100%;background-size:cover;background-repeat:no-repeat;background-position:50%;z-index:1040;overflow:hidden;will-change:transform;-webkit-backface-visibility:hidden;backface-visibility:hidden;list-style-type:none;padding:0;color:#fff;box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.side-nav.wide{width:15rem;transition-property:top,bottom,width}.side-nav.wide .logo-wrapper.sn-ad-avatar-wrapper{height:5rem;padding:19px 10px;border-bottom:1px solid hsla(0,0%,100%,.65)}.side-nav.wide .logo-wrapper.sn-ad-avatar-wrapper a{line-height:2.6rem;color:#fff}.side-nav.wide .logo-wrapper.sn-ad-avatar-wrapper a span{padding-left:.7rem;margin-top:-1rem}.side-nav.wide .logo-wrapper.sn-ad-avatar-wrapper a img{max-width:2.5rem;padding:0}.side-nav.wide .collapsible a{padding-left:23px;transition:all .3s ease-in-out}.side-nav.wide .collapsible a .sv-normal{opacity:1;transition:all .1s linear}.side-nav.wide .collapsible a .sv-slim{opacity:0;display:none;transition:all .1s linear}.side-nav.wide .collapsible .sv-slim-icon{padding-left:0;width:30px;height:36px;text-align:left;margin-right:0}.side-nav.wide .collapsible-body a{padding-left:47px}.side-nav.wide .fa-angle-down.rotate-icon{opacity:1;display:block}.side-nav.wide.slim{width:3.75rem;transition-property:top,bottom,width;transition-duration:.2s,.2s,.35s;transition-timing-function:linear,linear,ease;right:3.75rem}.side-nav.wide.slim .collapsible a{padding-left:23px;transition:all .3s ease-in-out}.side-nav.wide.slim .collapsible a .sv-normal{opacity:0;transition:all .1s linear}.side-nav.wide.slim .collapsible a .sv-slim{display:block;opacity:1;transition:all .1s linear}.side-nav.wide.slim .collapsible .sv-slim-icon{padding-left:0;width:30px;height:36px;text-align:left;margin-right:0}.side-nav.wide.slim .fa-angle-down.rotate-icon{opacity:0;display:none}.side-nav>ul{max-height:100vh}.side-nav ul{list-style-type:none;list-style:none;padding-left:0}.side-nav ul li{padding:0}.side-nav.right-aligned{right:0;left:auto;transform:translateX(100%)}.side-nav.side-nav-light .logo-wrapper{border-bottom:1px solid hsla(0,0%,60%,.3)}.side-nav.side-nav-light .logo-wrapper.sn-ad-avatar-wrapper{color:#555}.side-nav.side-nav-light .about{border-bottom:1px solid hsla(0,0%,60%,.3)}.side-nav.side-nav-light .about p{color:#555}.side-nav.side-nav-light .social{border-bottom:1px solid hsla(0,0%,60%,.3)}.side-nav.side-nav-light .social .fab,.side-nav.side-nav-light .social .far,.side-nav.side-nav-light .social .fas{color:#555}.side-nav.side-nav-light .search-form input[type=text]{border-bottom-color:hsla(0,0%,60%,.3);color:#555!important}.side-nav.side-nav-light .search-form input[type=text]::-moz-placeholder{color:#555!important}.side-nav.side-nav-light .search-form input[type=text]::placeholder{color:#555!important}.side-nav.side-nav-light .collapsible a{color:#555}.side-nav.side-nav-light .collapsible-body a{background-color:rgba(0,0,0,.1)}.side-nav.side-nav-light .collapsible li .collapsible-header:hover{background-color:rgba(0,0,0,.05)}.side-nav.side-nav-light .collapsible li .collapsible-header.active{color:#4285f4;background-color:transparent}.side-nav.fixed{left:0;transform:translateX(0);position:fixed}.side-nav.fixed.right-aligned{right:0;left:auto}@media only screen and (max-width:1440px){.side-nav.fixed{transform:translateX(-105%)}.side-nav.fixed.right-aligned{transform:translateX(105%)}}.side-nav .collapsible{padding:0;margin:1rem 0 0}.side-nav .collapsible li a:hover{background-color:rgba(0,0,0,.15)}.side-nav .collapsible>li{border-radius:2px}.side-nav .collapsible>li a.collapsible-header.active,.side-nav .collapsible>li a.collapsible-header:hover{background-color:hsla(0,0%,100%,.15)}.side-nav .collapsible ul{padding:0;list-style-type:none}.side-nav .collapsible a{color:#fff;font-weight:300;font-size:.8rem;height:36px;line-height:36px}.side-nav .collapsible a.active,.side-nav .collapsible a:hover{border-radius:2px}.side-nav .collapsible .fab,.side-nav .collapsible .far,.side-nav .collapsible .fas{font-size:.8rem;margin-right:13px}.side-nav .collapsible-body a{padding-left:47px;height:36px;line-height:36px;background-color:rgba(0,0,0,.15)}.side-nav a{display:block;font-size:1rem;height:56px;line-height:56px;padding-left:20px}.side-nav .fa-angle-down.rotate-icon{position:absolute;right:0;top:.8rem;margin-right:1.25rem}.side-nav .sidenav-bg{top:0;bottom:0;left:0;right:0;width:15rem;z-index:-1;background-attachment:fixed}.side-nav .sidenav-bg:after{width:100%;display:block;content:"";position:absolute;height:100%;top:0;left:0;bottom:0;z-index:-1;margin-bottom:-99999px;padding-bottom:99999px}.side-nav .logo-wrapper{border-bottom:1px solid hsla(0,0%,60%,.3);height:8.75rem}.side-nav .logo-wrapper a{height:8.75rem;width:15rem;padding:0}.side-nav .logo-wrapper img{padding:20% 50px;height:auto}@media (max-height:992px){.side-nav .logo-wrapper,.side-nav .logo-wrapper a{height:80px}.side-nav .logo-wrapper img{padding-top:7%;padding-bottom:7%}}.side-nav .logo-wrapper.sn-avatar-wrapper{padding:10% 33%}.side-nav .logo-wrapper.sn-avatar-wrapper img{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);margin:0;padding:0;max-width:90px}@media only screen and (max-height:992px){.side-nav .logo-wrapper.sn-avatar-wrapper{padding-left:40%;padding-right:40%}.side-nav .logo-wrapper.sn-avatar-wrapper img{max-width:50px}}.side-nav .logo-wrapper.sn-ad-avatar-wrapper{height:auto;margin-bottom:0}.side-nav .logo-wrapper.sn-ad-avatar-wrapper img{max-width:3.75rem;padding:1.25rem .63rem;float:left}.side-nav .logo-wrapper.sn-ad-avatar-wrapper p{font-size:.94rem;padding-top:1.25rem;padding-bottom:1.25rem;margin:0}.side-nav .about{padding:1rem;border-bottom:1px solid hsla(0,0%,100%,.65)}.side-nav .about p{margin-bottom:0;text-align:center}.side-nav .social{padding-top:0;text-align:center;border-bottom:1px solid hsla(0,0%,100%,.65)}.side-nav .social li{display:inline-block;padding-top:.6rem;padding-bottom:.6rem;margin:0}.side-nav .social a{margin:0;padding:0}.side-nav .social .fab,.side-nav .social .far,.side-nav .social .fas{font-size:.9rem;padding-right:.6rem;padding-left:.6rem;color:#dbe4e7;transition:.3s}.side-nav .social .fab:hover,.side-nav .social .far:hover,.side-nav .social .fas:hover{color:#afc4cb;transition:.3s}.side-nav .search-form{padding:0}.side-nav .search-form input[type=text]{border-bottom:1px solid hsla(0,0%,100%,.65);font-weight:300;padding-left:1.88rem}.side-nav .search-form input[type=text]::-moz-placeholder{color:#fff}.side-nav .search-form input[type=text]::placeholder{color:#fff}.side-nav .search-form .form-control{color:#fff;margin-bottom:0}.drag-target{height:100%;width:10px;position:fixed;top:0;z-index:998}#sidenav-overlay{position:fixed;top:0;left:0;right:0;height:120vh;background-color:rgba(0,0,0,.5);z-index:997;will-change:opacity}.transform-fix-input{transform:translateX(0)!important}#sidenav-overlay,.side-nav{transition:.5s}.side-nav{background-color:#2c2f34;overflow-y:auto}.side-nav .sidenav-bg{position:fixed}.side-nav .sidenav-bg:after{margin-bottom:unset;padding-bottom:unset}.side-nav.side-nav-right{left:auto;right:0!important}.side-nav.side-nav-light{background-color:#e5e5e5}.side-nav.side-nav-light .collapsible .card .card-header a h5{color:#555}.side-nav.side-nav-light .collapsible .card .card-header a:hover{background-color:rgba(0,0,0,.05)}.side-nav.side-nav-light .collapsible .card.active .card-header a{background-color:transparent}.side-nav.side-nav-light .collapsible .card.active .card-header a h5,.side-nav.side-nav-light .collapsible .card.active .card-header a h5 i{color:#4285f4}.side-nav.side-nav-light .collapsible .card-body li a{color:#555;background-color:rgba(0,0,0,.1)}.side-nav.side-nav-light .collapsible .card-body li a:hover{background-color:rgba(0,0,0,.15)}.side-nav.side-nav-light a{color:#555;font-weight:400}.side-nav.side-nav-light a .fa{color:#555}.side-nav.side-nav-light input[type=text]{border-bottom-color:hsla(0,0%,60%,.3);color:#555!important}.side-nav.side-nav-light input[type=text]::-webkit-input-placeholder{color:#555!important}.side-nav.side-nav-light input[type=text]::-moz-placeholder{color:#555!important}.side-nav.side-nav-light input[type=text]:-ms-input-placeholder{color:#555!important}.side-nav.side-nav-light input[type=text]:-moz-placeholder{color:#555!important}.side-nav::-webkit-scrollbar{width:4px;height:4px}.side-nav::-webkit-scrollbar-button:end:increment,.side-nav::-webkit-scrollbar-button:start:decrement{display:block;height:0;background-color:transparent}.side-nav::-webkit-scrollbar-track-piece{background-color:transparent;border-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.side-nav::-webkit-scrollbar-thumb:vertical{height:50px;background-color:#999;border-radius:4px}.side-nav input[type=text]:focus:not([readonly]){border-bottom:1px solid #4285f4;box-shadow:0 1px 0 0 #4285f4}.side-nav .collapsible .no-collase .rotate-icon{display:none}.side-nav .collapsible .card{background-color:transparent;border-bottom:0!important}.side-nav .collapsible .card .card-header{padding:0!important}.side-nav .collapsible .card .card-header a{transition:all .3s;height:40px;line-height:40px;border-radius:2px;padding:0}.side-nav .collapsible .card .card-header a h5{padding-left:20px;font-size:.8rem;line-height:40px;font-weight:300;position:relative;color:#fff}.side-nav .collapsible .card .card-header a .fa{font-size:.8rem;margin-right:13px;padding:0}.side-nav .collapsible .card .card-header a .rotate-icon{top:13px;margin-right:20px}.side-nav .collapsible .card.active>mdb-accordion-item-head{background:hsla(0,0%,100%,.15)}.side-nav .collapsible .card.active .card-header a h5{font-weight:300}.side-nav .collapsible .card-body{padding:0!important}.side-nav .collapsible .card-body li a{background-color:rgba(0,0,0,.15);font-size:.8rem;line-height:32px;height:32px;padding-left:47px;font-weight:300;color:#fff;display:block}.side-nav .collapsible .card-body li:first-of-type{border-top:0!important;margin-top:0}.side-nav.wide{transition-property:all;transition-duration:.2s,.2s,.35s;transition-timing-function:linear,linear,ease}.side-nav.wide .slim{width:3.75rem;transition-property:top,bottom,width;transition-duration:.2s,.2s,.35s;transition-timing-function:linear,linear,ease;right:3.75rem}.side-nav.wide .slim .collapsible a{padding-left:23px;transition:all .3s ease-in-out}.side-nav.wide .slim .collapsible a .sv-normal{opacity:0;transition:all .1s linear}.side-nav.wide .slim .collapsible a .sv-slim{display:block;opacity:1;transition:all .1s linear}.side-nav.wide .slim .collapsible .sv-slim-icon{padding-left:0;width:30px;height:36px;text-align:left;margin-right:0}.side-nav.wide .slim .fa-angle-down.rotate-icon{opacity:0;display:none}.slim .mdb-accordion-indicator{display:none}doublenavbar #sidenav-overlay,doublenavbar .side-nav{transition:.2s}doublenavbar links,doublenavbar navlinks{display:flex}header{height:0!important}@media (min-width:992px){.double-nav logo{display:flex;flex-direction:row;align-items:center!important;align-self:center!important;width:100%!important}.double-nav .navbar-brand img{margin-top:2px}}@media (max-width:1440px){.double-nav .button-collapse{display:block;left:10px;top:25%;font-size:1.4rem;margin-top:-2px!important;margin-right:10px;margin-left:10px}}.double-nav .button-collapse-non-fixed{left:10px;font-size:1.5rem}@media (min-width:1440px){.double-nav .button-collapse-non-fixed{display:none}}@media (max-width:599px){.double-nav .button-collapse-non-fixed{margin-top:-6px}}@media (max-width:1440px){.double-nav .button-collapse-non-fixed{display:block;left:10px;top:15px;font-size:1.4rem;margin-right:10px;margin-left:10px}}@media (min-width:600px) and (max-width:993px){.double-nav .button-collapse-non-fixed{top:10px;margin-top:5px}}@media (min-width:600px) and (max-width:993px){.double-nav .button-collapse-non-fixed.hidden-nav>i{top:5px!important;margin-top:-5px!important}}.double-nav .hidden-nav-button-collapse{display:block!important}@media (min-width:600px) and (max-width:993px){.double-nav .hidden-nav-button-collapse{top:25%;margin-top:-3px}}@media (min-width:994px){.double-nav .hidden-nav-button-collapse{margin-top:-3px}}.double-nav .hidden-nav{display:block;top:13px;left:10px;font-size:1.5rem;margin-left:10px}.double-nav .dropdown .dropdown-menu{margin-left:-68px;display:none;position:absolute;transform:translate3d(6px,49px,0);top:0;left:0;will-change:transform}.double-nav .mega-menu{margin-left:0!important;left:240px!important;width:calc(100% - 240px)!important}@media (max-width:1440px){.double-nav .mega-menu{left:0!important;width:100%!important}}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ie-hidden-double-nav{box-sizing:content-box;max-height:40.5px}.breadcrumbs{margin-left:25px!important;margin-top:2px}.breadcrumbs img{margin-left:20px}.ie-double-nav{position:absolute;top:30%;right:0}nav.double-nav{min-height:50px!important}.nav-link{padding-top:0!important;padding-bottom:0!important}.button-collapse,.button-collapse-non-fixed{position:absolute;top:30%!important}.hidden-nav-button-collapse{position:absolute}}@media (-ms-high-contrast:active) and (max-width:599px),(-ms-high-contrast:none) and (max-width:599px){.ie-double-nav{margin-top:-4px}.ie-hidden-double-nav .ie-double-nav{margin-top:0}.button-collapse,.button-collapse-non-fixed{top:5px!important;margin-left:0!important;margin-right:0!important}}@media (-ms-high-contrast:active) and (min-width:600px) and (max-width:992px),(-ms-high-contrast:none) and (min-width:600px) and (max-width:992px){.button-collapse-non-fixed{margin-top:-4px!important}.button-collapse{margin-top:-6px!important}.ie-double-nav{margin-top:0!important}.hidden-nav-button-collapse i{margin-top:10px!important}.breadcrumbs p{margin-top:-8px!important}}@media (-ms-high-contrast:active) and (min-width:993px) and (max-width:1441px),(-ms-high-contrast:none) and (min-width:993px) and (max-width:1441px){.button-collapse,.button-collapse-non-fixed{margin-top:-6px!important}.breadcrumbs>p{margin-top:-2px!important}.navbar-brand>img{margin-top:-2px}.breadcrumbs-non-fixed p{margin-top:2px!important}.hidden-nav-button-collapse{position:absolute!important;margin-left:10px!important}}@media (-ms-high-contrast:active) and (min-width:1441px),(-ms-high-contrast:none) and (min-width:1441px){.hidden-nav-button-collapse{position:absolute!important;margin-left:10px!important}.button-collapse-non-fixed{margin-top:-5px}.breadcrumbs>.navbar-brand img{margin-top:-2px}}@supports (-ms-ime-align:auto){.ie-hidden-double-nav{box-sizing:content-box;max-height:40.5px}.breadcrumbs{margin-left:25px!important;margin-top:2px}.breadcrumbs img{margin-left:20px}.ie-double-nav{position:absolute;top:30%;right:0}nav.double-nav{min-height:50px!important}.nav-link{padding-top:0!important;padding-bottom:0!important}.button-collapse,.button-collapse-non-fixed{position:absolute;top:30%!important}.hidden-nav-button-collapse{position:absolute}@media (max-width:599px){.ie-double-nav{margin-top:-4px}.ie-hidden-double-nav .ie-double-nav{margin-top:0}.button-collapse,.button-collapse-non-fixed{top:5px!important;margin-left:0!important;margin-right:0!important}}@media (min-width:600px) and (max-width:992px){.button-collapse-non-fixed{margin-top:-4px!important}.button-collapse{margin-top:-6px!important}.ie-double-nav{margin-top:0!important}.hidden-nav-button-collapse i{margin-top:10px!important}.breadcrumbs p{margin-top:-8px!important}}@media (min-width:993px) and (max-width:1441px){.button-collapse,.button-collapse-non-fixed{margin-top:-6px!important}.breadcrumbs>p{margin-top:-2px!important}.breadcrumbs>.navbar-brand>img{margin-top:-2px}.breadcrumbs-non-fixed p{margin-top:2px!important}.hidden-nav-button-collapse{position:absolute!important;margin-left:10px!important}}@media (min-width:1441px){.hidden-nav-button-collapse{position:absolute!important;margin-left:10px!important}.button-collapse-non-fixed{margin-top:-5px}.breadcrumbs>.navbar-brand img{margin-top:-2px}}}'],encapsulation:2,changeDetection:0}),t})(),pI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),fI=(()=>{class t{static get defaultEasingLogic(){return t._easingLogic}static set defaultEasingLogic(e){t._easingLogic=e}}return t._interval=10,t._minScrollDistance=2,t._defaultNamespace="default",t.defaultIsVerticalScrolling=!0,t._logLevel=2,t.defaultDuration=1250,t.defaultScrollOffset=0,t.defaultAdvancedInlineOffsetCalculation=!1,t._interruptEvents=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],t._interruptKeys=[33,34,35,36,38,40],t.defaultInterruptible=!0,t._easingLogic={ease:(t,e,n,r)=>n*t/r+e},t})();class gI{static isUndefinedOrNull(t){return void 0===t||null==t}static extractElementPosition(t,e){const n=t.body,r=t.documentElement,i=t.defaultView&&t.defaultView.pageYOffset||r.scrollTop||n.scrollTop,o=t.defaultView&&t.defaultView.pageXOffset||r.scrollLeft||n.scrollLeft,s=r.clientTop||n.clientTop||0,a=r.clientLeft||n.clientLeft||0;if(gI.isUndefinedOrNull(e))return{top:i,left:o};const l=e.getBoundingClientRect(),c=l.left+o-a;return{top:Math.round(l.top+i-s),left:Math.round(c)}}}let mI=(()=>{class t{constructor(){this.runningInstances=[],this.onInterrupted={report:(t,e)=>{if(!e.interruptible)return;let n=!0;"keyup"===t.type?-1===fI._interruptKeys.indexOf(t.keyCode)&&(n=!1):"mousedown"===t.type&&(e.scrollingViews.some(e=>e.contains(t.target))||(n=!1)),n&&this.stopAll(e.namespace)}},t.instanceCounter>0&&kr()&&console.warn("An instance of PageScrollService already exists, usually including one provider should be enough, so double check."),t.instanceCounter++}stopInternal(t,e){const n=this.runningInstances.indexOf(e);return n>=0&&this.runningInstances.splice(n,1),e.interruptListenersAttached&&e.detachInterruptListeners(),!!e.timer&&(clearInterval(e.timer),e.timer=void 0,e.fireEvent(!t),!0)}start(t){if(this.stopAll(t.namespace),null===t.scrollingViews||0===t.scrollingViews.length)return void(kr()&&console.warn("No scrollingViews specified, this ng2-page-scroll does not know which DOM elements to scroll"));let e=!1;t.startScrollPosition=0,t.scrollingViews.forEach(n=>{if(gI.isUndefinedOrNull(n))return;const r=t.getScrollPropertyValue(n);!e&&r&&(t.startScrollPosition=r,e=!0)});const n=t.getCurrentOffset(),r=t.extractScrollTargetPosition();if(t.targetScrollPosition=Math.round((t.verticalScrolling?r.top:r.left)-n),t.distanceToScroll=t.targetScrollPosition-t.startScrollPosition,isNaN(t.distanceToScroll))return kr(),void t.fireEvent(!1);const i=Math.abs(t.distanceToScroll){const e=(new Date).getTime();let n,r=!1;t.endTime<=e?(n=t.targetScrollPosition,r=!0):n=Math.round(t.easingLogic.ease(e-t.startTime,t.startScrollPosition,t.distanceToScroll,t.executionDuration)),t.setScrollPosition(n)||(r=!0),r&&this.stopInternal(!1,t)},fI._interval,t),this.runningInstances.push(t)}stopAll(t){if(this.runningInstances.length>0){let e=!1;for(let n=0;n{class t{static forRoot(){return{ngModule:t,providers:[{provide:mI,useClass:mI}]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),bI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),yI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),_I=(()=>{class t{constructor(t){this.viewRef=t}set mdbNgTransclude(t){this._ngTransclude=t,t&&this.viewRef.createEmbeddedView(t)}get mdbNgTransclude(){return this._ngTransclude}}return t.\u0275fac=function(e){return new(e||t)(Ns(Cl))},t.\u0275dir=_e({type:t,selectors:[["","mdbNgTransclude",""]],inputs:{mdbNgTransclude:"mdbNgTransclude"}}),t})(),wI=(()=>{class t{constructor(){this.type="tabs"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),CI=(()=>{class t{constructor(t,e,n,r,i){this.ripple=n,this.cdRef=r,this.renderer=i,this.tabs=[],this.classMap={},this.isBrowser=null,this.clazz=!0,this.disableWaves=!1,this.showBsTab=new Zl,this.shownBsTab=new Zl,this.hideBsTab=new Zl,this.hiddenBsTab=new Zl,this.getActiveTab=new Zl,this.isBrowser=Bh(t),Object.assign(this,e)}get vertical(){return this._vertical}set vertical(t){this._vertical=t,this.setClassMap()}setActiveTab(t){"content"!==this.tabs[t-1].type?(this.tabs[t-1].active=!0,this.getActiveTab.emit({el:this.tabs[t-1],activeTabIndex:t-1}),this.cdRef.detectChanges()):this.tabs[t-1].select.emit(this.tabs[t-1])}get justified(){return this._justified}set justified(t){this._justified=t,this.setClassMap()}get type(){return this._type}set type(t){this._type=t,this.setClassMap()}click(t,e){const n=this.tabEl.toArray()[this.getActive()],r=this.tabEl.toArray()[e];this.hideBsTab.emit({target:r,relatedTarget:n}),this.showBsTab.emit({target:r,relatedTarget:n}),this.setActiveTab(e+1),"vertical"===this.contentClass||this.disableWaves||(this.ripple.el=r,this.ripple.click(t)),this.hiddenBsTab.emit({target:r,relatedTarget:n}),this.shownBsTab.emit({target:r,relatedTarget:n}),this.cdRef.markForCheck()}ngOnDestroy(){this.isDestroyed=!0}getActive(){const t=this.tabs.map((t,e)=>({index:e,object:t}));for(const e of t)if(e.object.active)return e.index}addTab(t){const e=this.tabs.findIndex(e=>e.tabOrder>t.tabOrder);e>=0?this.tabs.splice(e,0,t):this.tabs.push(t),t.active=1===this.tabs.length&&!1!==t.active}removeTab(t){const e=this.tabs.indexOf(t);if(-1!==e&&!this.isDestroyed){if(t.active&&this.hasAvailableTabs(e)){const t=this.getClosestTabIndex(e);this.tabs[t].active=!0}t.removed.emit(t),this.tabs.splice(e,1),this.cdRef.markForCheck()}}getClosestTabIndex(t){const e=this.tabs.length;if(!e)return-1;for(let n=1;n<=e;n+=1){const e=t-n,r=t+n;if(this.tabs[e]&&!this.tabs[e].disabled)return e;if(this.tabs[r]&&!this.tabs[r].disabled)return r}return-1}hasAvailableTabs(t){const e=this.tabs.length;if(!e)return!1;for(let n=0;n({index:e,object:t}));for(const e of t)if(e.object.active)return{el:e.object,activeTabIndex:e.index}}showActiveIndex(){const t=this.getActiveElement();this.getActiveTab.emit(t)}getFirstActiveTabIndex(){const t=this.tabs.filter(t=>!t.disabled);return this.tabs.indexOf(t[0])}removeActiveTabs(){this.tabs.forEach(t=>{t.active=!1})}initActiveTab(){const t=this.getFirstActiveTabIndex();-1!==t?this.setActiveTab(t+1):this.removeActiveTabs()}ngOnInit(){this.listGet(),this.tabsGet(),this.showActiveIndex()}ngAfterViewInit(){if(this.initActiveTab(),-1!==this.tabs.findIndex(t=>"content"===t.type)){const t=this.renderer.createElement("li"),e=this.tabs.findIndex(t=>"content"===t.type);this.renderer.addClass(t,"nav-item"),this.renderer.addClass(t,"flex-fill"),this.renderer.insertBefore(this.itemsList.nativeElement,t,this.itemsList.nativeElement.children[e])}}}return t.\u0275fac=function(e){return new(e||t)(Ns(kc),Ns(wI),Ns(xT),Ns(Qo),Ns(tl))},t.\u0275cmp=fe({type:t,selectors:[["mdb-tabset"]],viewQuery:function(t,e){var n;1&t&&(hc(eS,!0),dc(nS,!0,Xa)),2&t&&(uc(n=gc())&&(e.itemsList=n.first),uc(n=gc())&&(e.tabEl=n))},hostVars:2,hostBindings:function(t,e){2&t&&ca("tab-container",e.clazz)},inputs:{disableWaves:"disableWaves",vertical:"vertical",justified:"justified",type:"type",buttonClass:"buttonClass",contentClass:"contentClass",tabsButtonsClass:"tabsButtonsClass",tabsContentClass:"tabsContentClass"},outputs:{showBsTab:"showBsTab",shownBsTab:"shownBsTab",hideBsTab:"hideBsTab",hiddenBsTab:"hiddenBsTab",getActiveTab:"getActiveTab"},features:[Ga([xT])],ngContentSelectors:yx,decls:9,vars:14,consts:[[1,"container-fluid"],[1,"row"],[3,"ngClass","click"],["itemsList",""],[3,"ngClass","class","active","disabled","click",4,"ngFor","ngForOf"],["class","d-flex flex-fill",4,"ngIf"],["href","javascript:void(0);","class","nav-link",3,"ngClass","active","disabled",4,"ngIf"],["class","nav-link",3,"ngClass","active","disabled",4,"ngIf"],[1,"d-flex","flex-fill"],["href","javascript:void(0);",1,"nav-link",3,"ngClass"],["tabEl",""],[3,"mdbNgTransclude","innerHTML"],[4,"ngIf"],[1,"fas","fa-times","ml-2",3,"click"],[1,"nav-link",3,"ngClass"]],template:function(t,e){1&t&&(Ys(),Ls(0,"div",0),Ls(1,"div",1),Ls(2,"div"),Ls(3,"ul",2,3),qs("click",(function(t){return t.preventDefault()})),Os(5,uS,4,15,"li",4),Fs(),Fs(),Ls(6,"div"),Ls(7,"div"),Js(8),Fs(),Fs(),Fs(),Fs()),2&t&&(wi(2),ua(e.listGetClass),wi(1),Sa("nav ",e.buttonClass,""),Rs("ngClass",e.classMap),wi(2),Rs("ngForOf",e.tabs),wi(1),ua(e.tabsGetClass),wi(1),Sa("tab-content ",e.contentClass,""))},directives:[yh,wh,Eh,_I],styles:[".md-tabs{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);border:0;padding:.7rem;margin-left:1rem;margin-right:1rem;margin-bottom:-20px;background-color:#2bbbad;z-index:1;position:relative;border-radius:.125rem}.md-tabs .nav-item+.nav-item{margin-left:0}.md-tabs .nav-item.disabled{pointer-events:none!important}.md-tabs .nav-item.disabled .nav-link{color:#6c757d}.md-tabs .nav-link{transition:all .4s;border:0;color:#fff}.md-tabs .nav-item.open .nav-link,.md-tabs .nav-link.active{background-color:rgba(0,0,0,.2);color:#fff;transition:all 1s;border-radius:.125rem}.md-tabs .nav-item.show .nav-link{background-color:#2bbbad;color:#fff;transition:all 1s;border-radius:.125rem}.md-tabs .nav-item.show .nav-link.dropdown-toggle{background-color:rgba(0,0,0,.2)}.tab-content{padding:2rem 1rem 1rem;box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}.tab-content.vertical{padding-top:0}.md-pills{border:0}.md-pills li{padding:.6rem}.md-pills .show>.nav-link{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);color:#fff;background-color:#2bbbad}.md-pills .nav-link{transition:all .4s;border-radius:2px;color:#666;text-align:center}.md-pills .nav-link:hover{background-color:hsla(0,0%,62%,.3)}.md-pills .nav-link.active{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);color:#fff;background-color:#2bbbad}.md-pills .nav-link.active:hover{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}ul.pills-primary{padding:0}.pills-primary .nav-link.active,.pills-primary .show>.nav-link,.tabs-primary{background-color:#4285f4!important}ul.pills-danger{padding:0}.pills-danger .nav-link.active,.pills-danger .show>.nav-link,.tabs-danger{background-color:#ff3547!important}ul.pills-warning{padding:0}.pills-warning .nav-link.active,.pills-warning .show>.nav-link,.tabs-warning{background-color:#fb3!important}ul.pills-success{padding:0}.pills-success .nav-link.active,.pills-success .show>.nav-link,.tabs-success{background-color:#00c851!important}ul.pills-info{padding:0}.pills-info .nav-link.active,.pills-info .show>.nav-link,.tabs-info{background-color:#33b5e5!important}ul.pills-default{padding:0}.pills-default .nav-link.active,.pills-default .show>.nav-link,.tabs-default{background-color:#2bbbad!important}ul.pills-secondary{padding:0}.pills-secondary .nav-link.active,.pills-secondary .show>.nav-link,.tabs-secondary{background-color:#a6c!important}ul.pills-elegant{padding:0}.pills-elegant .nav-link.active,.pills-elegant .show>.nav-link,.tabs-elegant{background-color:#2e2e2e!important}ul.pills-unique{padding:0}.pills-unique .nav-link.active,.pills-unique .show>.nav-link,.tabs-unique{background-color:#880e4f!important}ul.pills-dark-green{padding:0}.pills-dark-green .nav-link.active,.pills-dark-green .show>.nav-link,.tabs-dark-green{background-color:#388e3c!important}ul.pills-mdb-color{padding:0}.pills-mdb-color .nav-link.active,.pills-mdb-color .show>.nav-link,.tabs-mdb-color{background-color:#59698d!important}ul.pills-red{padding:0}.pills-red .nav-link.active,.pills-red .show>.nav-link,.tabs-red{background-color:#d32f2f!important}ul.pills-pink{padding:0}.pills-pink .nav-link.active,.pills-pink .show>.nav-link,.tabs-pink{background-color:#ec407a!important}ul.pills-purple{padding:0}.pills-purple .nav-link.active,.pills-purple .show>.nav-link,.tabs-purple{background-color:#8e24aa!important}ul.pills-deep-purple{padding:0}.pills-deep-purple .nav-link.active,.pills-deep-purple .show>.nav-link,.tabs-deep-purple{background-color:#512da8!important}ul.pills-indigo{padding:0}.pills-indigo .nav-link.active,.pills-indigo .show>.nav-link,.tabs-indigo{background-color:#3f51b5!important}ul.pills-blue{padding:0}.pills-blue .nav-link.active,.pills-blue .show>.nav-link,.tabs-blue{background-color:#1976d2!important}ul.pills-light-blue{padding:0}.pills-light-blue .nav-link.active,.pills-light-blue .show>.nav-link,.tabs-light-blue{background-color:#82b1ff!important}ul.pills-cyan{padding:0}.pills-cyan .nav-link.active,.pills-cyan .show>.nav-link,.tabs-cyan{background-color:#00bcd4!important}ul.pills-teal{padding:0}.pills-teal .nav-link.active,.pills-teal .show>.nav-link,.tabs-teal{background-color:#00796b!important}ul.pills-green{padding:0}.pills-green .nav-link.active,.pills-green .show>.nav-link,.tabs-green{background-color:#388e3c!important}ul.pills-light-green{padding:0}.pills-light-green .nav-link.active,.pills-light-green .show>.nav-link,.tabs-light-green{background-color:#8bc34a!important}ul.pills-lime{padding:0}.pills-lime .nav-link.active,.pills-lime .show>.nav-link,.tabs-lime{background-color:#afb42b!important}ul.pills-yellow{padding:0}.pills-yellow .nav-link.active,.pills-yellow .show>.nav-link,.tabs-yellow{background-color:#fbc02d!important}ul.pills-amber{padding:0}.pills-amber .nav-link.active,.pills-amber .show>.nav-link,.tabs-amber{background-color:#ffa000!important}ul.pills-orange{padding:0}.pills-orange .nav-link.active,.pills-orange .show>.nav-link,.tabs-orange{background-color:#f57c00!important}ul.pills-deep-orange{padding:0}.pills-deep-orange .nav-link.active,.pills-deep-orange .show>.nav-link,.tabs-deep-orange{background-color:#ff7043!important}ul.pills-brown{padding:0}.pills-brown .nav-link.active,.pills-brown .show>.nav-link,.tabs-brown{background-color:#795548!important}ul.pills-grey{padding:0}.pills-grey .nav-link.active,.pills-grey .show>.nav-link,.tabs-grey{background-color:#616161!important}ul.pills-blue-grey{padding:0}.pills-blue-grey .nav-link.active,.pills-blue-grey .show>.nav-link,.tabs-blue-grey{background-color:#78909c!important}ul.pills-dark{padding:0}.pills-dark .nav-link.active,.pills-dark .show>.nav-link,.tabs-dark{background-color:#212121!important}ul.pills-light{padding:0}.pills-light .nav-link.active,.pills-light .show>.nav-link,.tabs-light{background-color:#e0e0e0!important}ul.pills-white{padding:0}.pills-white .nav-link.active,.pills-white .show>.nav-link,.tabs-white{background-color:#fff!important}ul.pills-black{padding:0}.pills-black .nav-link.active,.pills-black .show>.nav-link,.tabs-black{background-color:#000!important}.classic-tabs .nav{white-space:nowrap;overflow-x:auto;position:relative;border-radius:.3rem .3rem 0 0}@media (min-width:62rem){.classic-tabs .nav{overflow-x:hidden}}.classic-tabs .nav li a{display:block;padding:20px 24px;font-size:13px;text-transform:uppercase;color:hsla(0,0%,100%,.7);text-align:center;border-radius:0}.classic-tabs .nav li a:not(.active){margin-bottom:3px}.classic-tabs .nav li a.active{border-bottom:3px solid;color:#fff}@media (min-width:62em){.classic-tabs .nav li:first-child{margin-left:56px}}.classic-tabs .nav.tabs-cyan li a.active{border-color:#ffeb3b}.classic-tabs .nav.tabs-orange li a.active{border-color:#e53935}.classic-tabs .nav.tabs-grey li a.active{border-color:#fff}.classic-tabs .nav.tabs-pink li a.active{border-color:#673ab7}.classic-tabs .nav.tabs-green li a.active{border-color:#1565c0}.classic-tabs .nav.tabs-primary li a.active{border-color:#fff}.classic-tabs .nav.tabs-animated li a.active{border:none}.classic-tabs .nav.tabs-animated.tabs-cyan .floor{background-color:#ffeb3b}.classic-tabs .nav.tabs-animated.tabs-orange .floor{background-color:#e53935}.classic-tabs .nav.tabs-animated.tabs-grey .floor{background-color:#fff}.classic-tabs .nav.tabs-animated.tabs-pink .floor{background-color:#673ab7}.classic-tabs .nav.tabs-animated.tabs-green .floor{background-color:#1565c0}.classic-tabs .nav.tabs-animated.tabs-primary .floor{background-color:#fff}.classic-tabs .nav.tabs-animated .floor{display:inline-block;width:30px;height:3px;position:absolute;z-index:1200;bottom:0;transition:all .4s linear}.classic-tabs .tab-content.card{border-top-left-radius:0;border-top-right-radius:0}.md-tabs{overflow-y:hidden;display:flex;flex-direction:column}@media screen and (min-width:768px){.md-tabs{flex-direction:row}}.md-tabs .nav-item{flex-basis:0;flex-grow:1;text-align:center;margin-bottom:0}.md-tabs .nav-item a{width:100%}.tab-control{background-color:transparent;border:0;padding-left:10px;padding-right:10px;cursor:pointer}.tab-control-icon{color:#fff}.tab-control-icon.disabled{color:#e0e0e0}mdb-tabset .white{box-shadow:0 0 0 0 transparent,0 4px 15px 0 transparent!important}mdb-tabset .white li{margin:0 1em!important}mdb-tabset .white li .nav-link.active{transition:all .4s!important}mdb-tabset .white li .nav-link{color:#666!important}mdb-tabset .white li .nav-link:hover{background-color:hsla(0,0%,62%,.3)}mdb-tabset .white .active a{color:#fff!important;box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12)}mdb-tabset .white .active:hover{box-shadow:0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15)}mdb-tabset .margin li{margin:.5em!important}.classic-tabs{white-space:normal}.classic-tabs .nav.classic-tabs{margin:0 5px;overflow-x:auto;white-space:nowrap}.classic-tabs .tab-content{margin:0 5px 5px;padding-top:0}@media (min-width:992px){.classic-tabs .nav li:last-child{margin-right:56px}}.classic-tabs .nav li:hover{color:hsla(0,0%,100%,.7)}.nav-stacked{display:flex;flex-direction:column}"],encapsulation:2}),t})(),EI=(()=>{class t{constructor(t,e,n,r){this.tabset=e,this.el=n,this.renderer=r,this._disabled=!1,this.select=new Zl,this.deselect=new Zl,this.removed=new Zl,this.addClass=!0,this.test=!0,this._active=!1,this.isBrowser=null,this.isBrowser=Bh(t),this.tabset=e}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled&&this._active&&this.tabset.initActiveTab()}get active(){return this._active}set active(t){this.disabled&&t||!t?this._active&&!t&&(this.renderer.removeClass(this.el.nativeElement,"show"),this.renderer.removeClass(this.el.nativeElement,"active"),this._active=t,this.deselect.emit(this)):(this.renderer.addClass(this.el.nativeElement,"show"),this.renderer.addClass(this.el.nativeElement,"active"),this._active=t,this.select.emit(this),this.tabset.tabs.forEach(t=>{t!==this&&(t.active=!1)}))}ngOnInit(){this.removable=this.removable,this.tabset.addTab(this),this.tabset.initActiveTab()}ngOnDestroy(){this.tabset.removeTab(this)}}return t.\u0275fac=function(e){return new(e||t)(Ns(kc),Ns(CI),Ns(Xa),Ns(tl))},t.\u0275dir=_e({type:t,selectors:[["mdb-tab"],["","mdbTab",""]],hostVars:4,hostBindings:function(t,e){2&t&&ca("tab-pane",e.addClass)("fade",e.test)},inputs:{disabled:"disabled",active:"active",removable:"removable",type:"type",heading:"heading",customClass:"customClass",tabOrder:"tabOrder"},outputs:{select:"select",deselect:"deselect",removed:"removed"}}),t})(),xI=(()=>{class t{static forRoot(){return{ngModule:t,providers:[wI]}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh]]}),t})(),SI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m]]}),t})(),kI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,_m,PS.forRoot(),ST.forRoot()]]}),t})(),TI=(()=>{class t{constructor(t,e,n,r,i,o){this._cdRef=t,this._ngZone=e,this.focusMonitor=n,this.elem=r,this.renderer=i,this._document=o,this._disabledHours=[],this._disabledMinutes=[],this._isMouseDown=!1,this._hoursTicks=[],this._minuteDigitalDisabled=!1,this._minutesTicks=[],this._okButtonDisabled=!1,this._showHours=!0,this._radius={dial:135,inner:80,outer:110,tick:20},this._denominator={1:30,5:6,10:3,15:2,20:1.5},this.touchSupported="ontouchstart"in window,this._setOkBtnDisabled=()=>{const t=Number(this._to24(this._selectedTime).h);this._okButtonDisabled=this._disabledHours[t],this._okButtonDisabled||(this._min&&this._selectedTime.h===this._min.h&&this._selectedTime.ampm===this._min.ampm&&(this._okButtonDisabled=this._selectedTime.mthis._max.m))}}ngOnInit(){this._max=this.max,this._min=this.min,this._selectedTime=this.value;const{ampm:t}=this._selectedTime;this.twelveHour&&(this._selectedTime.ampm="PM"===t?"AM":"PM",this._generateTick(),this._selectedTime.ampm="PM"===this._selectedTime.ampm?"AM":"PM"),this._generateTick(),this._setOkBtnDisabled(),this._setMinuteDigitalDisabled()}ngAfterViewInit(){["mousedown","mouseup","touchend","touchstart"].forEach(t=>{this.renderer.listen(this.plate.nativeElement,t,e=>{"mousedown"!==t&&"touchstart"!==t||this._mousedown(e,!1)})}),this._checkDraw(),setTimeout(()=>{this.focusMonitor.focusVia(this.focus,"keyboard")},0)}_checkDraw(){const{h:t,m:e}=this._selectedTime,n=this._showHours?parseInt(t,0):parseInt(e,0),r=n*(Math.PI/(this._showHours?6:30)),i=this._showHours&&n>0&&n<13?this._radius.inner:this._radius.outer,o=Math.sin(r)*i,s=-Math.cos(r)*i;this.setClockHand(o,s)}_mousedown(t,e){this._isMouseDown=!0;const n=this.plate.nativeElement.getBoundingClientRect(),r=/^touch/.test(t.type),i=n.left+this._radius.dial,o=n.top+this._radius.dial,s=(r?t.touches[0]:t).clientX-i,a=(r?t.touches[0]:t).clientY-o,l=Math.sqrt(s*s+a*a);let c=!1;if(e&&(lthis._radius.outer+this._radius.tick))return;t.preventDefault(),t.stopPropagation(),this._showHours?this.setClockHand(s,a):this.setClockHand(s,a,this.rounding);const u=t=>{this.touchSupported||t.preventDefault(),t.stopPropagation();const e=/^touch/.test(t.type),n=(e?t.touches[0]:t).clientX-i,r=(e?t.touches[0]:t).clientY-o;(c||n!==s||r!==a)&&(c=!0,this._ngZone.run(()=>{this.setClockHand(n,r,this.rounding)}))},h=t=>{this._document.removeEventListener("mousemove",u),this.touchSupported&&this._document.removeEventListener("touchmove",u),this.touchSupported||t.preventDefault();const n=t.clientX-i,r=t.clientY-o;(e||c)&&n===s&&r===a&&this.setClockHand(n,r),this._ngZone.run(()=>{this.autoClose&&!this._showHours&&this._okBtnClicked()}),this._showMinutesClock(),this.digitalMinute.nativeElement.focus(),this._isMouseDown=!1,this._document.removeEventListener("mouseup",h),this.touchSupported&&this._document.removeEventListener("touchend",h),this.picker._emitTimeChangeEvent(this._selectedTime)};this._document.addEventListener("mousemove",u),this.touchSupported&&this._document.addEventListener("touchmove",u),this._document.addEventListener("mouseup",h),this.touchSupported&&this._document.addEventListener("touchend",h)}_closeBtnClicked(){const{ampm:t,h:e,m:n}=this._selectedTime;this._returnHours=`${e}:${n}${t}`,this.picker.close(!1)}_clearBtnClicked(){this._setAmPm("AM"),this._setHour(12),this._setMinute(0),this._generateTick(),this._showHoursClock(),this.picker._setValue(""),this.picker._selectionChange$.next("")}_okBtnClicked(){if(!this._okButtonDisabled){const{ampm:t,h:e,m:n}=this._selectedTime;this._returnHours=`${e}:${n}${t}`,this.picker._setValue(this._returnHours),this.picker._emitTimeDoneEvent(this._selectedTime),this.picker.onChangeCb(this._returnHours),this.picker.close(!0)}}_arrowChangeHour(t){const{h:e,ampm:n}=this._to24(this._selectedTime),r=Number(e),i=[];let o;this._disabledHours.map((t,e)=>!t&&i.push(e));let s="ArrowUp"===t?i.indexOf(r)+1:i.indexOf(r)-1;s=s<0?i.length-1:s,s=s>i.length-1?0:s,o=i[s],this.twelveHour&&(o>=12?(o-=12,"AM"===n&&this._setAmPm("PM")):(o<=0||o<12)&&"PM"===n&&this._setAmPm("AM")),this._showHoursClock(),this._setHour(o),this._checkDraw()}_arrowChangeMinute(t){if(!this._minuteDigitalDisabled){this._showHours&&this._showMinutesClock();const{m:e}=this._selectedTime,n=[];let r;this._generateMinutesDisable(),this._disabledMinutes.map((t,e)=>{t||n.push(e)});let i="ArrowUp"===t?n.indexOf(Number(e))+1:n.indexOf(Number(e))-1;i=i<0?n.length-1:i,i=i>n.length-1?0:i,r=n[i],this._setMinute(r),this._checkDraw()}}_generateMinutesDisable(){for(let t=0;t<60;t++){const e=this.rounding>1&&t%this.rounding!=0,n=this._rangeMinute(t,"min")||this._rangeMinute(t,"max")||e;this._disabledMinutes[t]=n}}_setHour(t){Number(this._selectedTime.h)!==t&&(t=this.twelveHour?(t=t<=0?12:t)>12?1:t:(t=t>=24?0:t)<=-1?23:t,this._selectedTime.h=t>=10?""+t:"0"+t,this._setMinuteDigitalDisabled())}_setMinute(t){Number(this._selectedTime.m)!==t&&(this._selectedTime.m=(t=(t=t>=60?0:t)<=-1?59:t)>=10?""+t:"0"+t,this._setOkBtnDisabled())}_setAmPm(t){this._selectedTime.ampm=t,this._generateTick(),this._setOkBtnDisabled(),this._setMinuteDigitalDisabled(),this._checkDraw(),this.picker._emitTimeChangeEvent(this._selectedTime)}_showHoursClock(){this._generateTick(),this._showHours=!0,this._setOkBtnDisabled(),this._checkDraw()}_showMinutesClock(){this._minuteDigitalDisabled||(this._showHours=!1,this._generateTick(),this._setOkBtnDisabled(),this._generateMinutesDisable(),!0===this._disabledMinutes[Number(this._selectedTime.m)]&&this._setMinute(this._disabledMinutes.indexOf(!1)),this._checkDraw())}_generateTick(){if(this.twelveHour){this._hoursTicks=[];for(let t=1;t<13;t++){const e=t/6*Math.PI,n={hour:t.toString(),left:this._radius.dial+Math.sin(e)*this._radius.outer-this._radius.tick,top:this._radius.dial-Math.cos(e)*this._radius.outer-this._radius.tick,disabled:this._rangeHour(t,"min")||this._rangeHour(t,"max")};this._hoursTicks.push(n)}}else{this._hoursTicks=[];for(let t=0;t<24;t++){const e=t/6*Math.PI,n=t>0&&t<13?this._radius.inner:this._radius.outer,r={hour:0===t?"0"+t.toString():t.toString(),left:this._radius.dial+Math.sin(e)*n-this._radius.tick,top:this._radius.dial-Math.cos(e)*n-this._radius.tick,disabled:this._rangeHour(t,"min")||this._rangeHour(t,"max")};this._hoursTicks.push(r)}}this._minutesTicks=[];for(let t=0;t<60;t+=5){const e=t/30*Math.PI,n=this.rounding>1&&t%this.rounding!=0,r={min:t<10?"0"+t.toString():t.toString(),left:this._radius.dial+Math.sin(e)*this._radius.outer-this._radius.tick,top:this._radius.dial-Math.cos(e)*this._radius.outer-this._radius.tick,disabled:this._rangeMinute(t,"min")||this._rangeMinute(t,"max")||n};this._minutesTicks.push(r)}}setClockHand(t,e,n){let r=Math.atan2(t,-e);const i=this._showHours,o=Math.PI/(i?6:n?this._denominator[n]:30),s=Math.sqrt(t*t+e*e),a=i&&s<(this._radius.outer+this._radius.inner)/2;let l=this._showHours?parseInt(this._selectedTime.h,0):parseInt(this._selectedTime.m,0);const c=a&&!this.twelveHour?this._radius.inner:this._radius.outer;if(r<0&&(r=2*Math.PI+r),l=Math.round(r/o),r=l*o,this.twelveHour&&i){if(0===l&&(l=12),this._isMouseDown&&i&&(this._rangeHour(l,"min")||this._rangeHour(l,"max")))return}else if(!this.twelveHour&&i){if(l=a?l:l+12,l=24===l?0:l,l=a&&0===l?12:l,l=a||12!==l?l:0,this._isMouseDown&&i&&(this._rangeHour(l,"min")||this._rangeHour(l,"max")))return}else n&&(l*=n),60===l&&(l=0);if(i)this.fg.nativeElement.setAttribute("class","mdb-timepicker-canvas-fg");else{if(this._rangeMinute(l,"min")||this._rangeMinute(l,"max"))return void this._cdRef.markForCheck();this.fg.nativeElement.setAttribute("class",l%5==0?"mdb-timepicker-canvas-fg":"mdb-timepicker-canvas-fg active")}const u=Math.sin(r)*(c-this._radius.tick),h=-Math.cos(r)*(c-this._radius.tick),d=Math.sin(r)*c,p=-Math.cos(r)*c;this.hand.nativeElement.setAttribute("x2",u),this.hand.nativeElement.setAttribute("y2",h),this.bg.nativeElement.setAttribute("cx",d),this.bg.nativeElement.setAttribute("cy",p),this.fg.nativeElement.setAttribute("cx",d),this.fg.nativeElement.setAttribute("cy",p),this._showHours?l!==Number(this._selectedTime.h)&&(this._setHour(l),this._setMinuteDigitalDisabled()):l!==Number(this._selectedTime.m)&&this._setMinute(l),this._cdRef.markForCheck()}_to24(t){let e="PM"===t.ampm?Number(t.h)+12:Number(t.h);return e=12===e?0:e,e=24===e?12:e,Object.assign(Object.assign({},t),{h:""+e})}_rangeHour(t,e){let n=!1;const r=Number(this._to24(Object.assign(Object.assign({},this._selectedTime),{h:""+t})).h);if(this.twelveHour){const t=this._min&&Number(this._to24(this._min).h),i=this._max&&Number(this._to24(this._max).h);"min"===e&&this.min&&(n=ri),t>i&&(n=!1,n=t>r&&r>i)}else{const r=this.min&&Number(this._min.h),i=this.max&&Number(this._max.h);"min"===e&&this.min?(n=ti,n&&this._min&&this._min.h>this._max.h&&r<=t&&(n=!1))}return this._disabledHours[r]=n,n}_rangeMinute(t,e){let n=!1;if(!this._showHours)if("min"===e&&this.min){const e=this._min.h===this._selectedTime.h;n=tNumber(this._max.m)&&e}if(this.twelveHour){const r=this._min&&Number(this._to24(this._min).h),i=this._max&&Number(this._to24(this._max).h),o=Number(this._to24(this._selectedTime).h);"min"===e&&r?n=o===r&&tNumber(this._max.m)),n=n||this._disabledHours[o]}return n}_setMinuteDigitalDisabled(){const{h:t}=this._to24(this._selectedTime);this._minuteDigitalDisabled=this._disabledHours[Number(t)]}}return t.\u0275fac=function(e){return new(e||t)(Ns(Qo),Ns(Hc),Ns(CE),Ns(Xa),Ns(tl),Ns(wu))},t.\u0275cmp=fe({type:t,selectors:[["mdb-timepicker-content"]],viewQuery:function(t,e){var n;1&t&&(dc(hS,!0),dc(dS,!0),dc(pS,!0),dc(fS,!0),dc(bS,!0),dc(yS,!0)),2&t&&(uc(n=gc())&&(e.plate=n.first),uc(n=gc())&&(e.hand=n.first),uc(n=gc())&&(e.fg=n.first),uc(n=gc())&&(e.bg=n.first),uc(n=gc())&&(e.focus=n.first),uc(n=gc())&&(e.digitalMinute=n.first))},decls:38,vars:30,consts:[["cdkTrapFocus","",1,"mdb-timepicker-modal"],[1,"mdb-timepicker-header"],[1,"mdb-timepicker-time"],["tabindex","0",1,"hour-digital",3,"ngClass","click","keydown.arrowdown","keydown.arrowup","keydown.enter"],["focus",""],["tabindex","0",1,"minute-digital",3,"ngClass","click","keydown.arrowdown","keydown.arrowup","keydown.enter"],["digitalMinute",""],["class","mdb-timepicker-ampm",4,"ngIf"],[1,"mdb-timepicker-body"],[1,"mdb-timepicker-plate"],["plate",""],[1,"mdb-timepicker-canvas"],["width","270","height","270",1,"mdb-timepicker-svg"],["svg",""],["transform","translate(135,135)"],["g",""],["x1","0","y1","0","x2","0","y2","-90"],["hand",""],["r","5","cx","0","cy","-110",1,"mdb-timepicker-canvas-fg"],["fg",""],["r","20","cx","0","cy","-110",1,"mdb-timepicker-canvas-bg"],["bg",""],["cx","0","cy","0","r","2",1,"mdb-timepicker-canvas-bearing"],["bearing",""],[1,"mdb-timepicker-dial","mdb-timepicker-hours",3,"ngClass","ngStyle"],["hoursPlate",""],["class","mdb-timepicker-tick","style","font-size: 140%;",3,"ngClass","ngStyle","id",4,"ngFor","ngForOf"],[1,"mdb-timepicker-dial","mdb-timepicker-minutes",3,"ngClass","ngStyle"],["minutesPlate",""],["class","mdb-timepicker-tick","style","font-size: 120%;",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],[1,"mdb-timepicker-footer"],["class","mdb-timepicker-btn mdb-timepicker-clear","mdbWavesEffect","","type","button",3,"click",4,"ngIf"],["class","mdb-timepicker-btn mdb-timepicker-close","mdbWavesEffect","","type","button",3,"click",4,"ngIf"],["mdbWavesEffect","","type","button",1,"mdb-timepicker-btn","mdb-timepicker-ok",3,"ngClass","click"],[1,"mdb-timepicker-ampm"],["tabindex","0",3,"ngClass","click","keydown.enter"],[1,"mdb-timepicker-tick",2,"font-size","140%",3,"ngClass","ngStyle","id"],[1,"mdb-timepicker-tick",2,"font-size","120%",3,"ngClass","ngStyle"],["mdbWavesEffect","","type","button",1,"mdb-timepicker-btn","mdb-timepicker-clear",3,"click"],["mdbWavesEffect","","type","button",1,"mdb-timepicker-btn","mdb-timepicker-close",3,"click"]],template:function(t,e){1&t&&(Ls(0,"div",0),Ls(1,"div",1),Ls(2,"div",2),Ls(3,"span",3,4),qs("click",(function(){return e._showHoursClock()}))("keydown.arrowdown",(function(t){return e._arrowChangeHour(t.key)}))("keydown.arrowup",(function(t){return e._arrowChangeHour(t.key)}))("keydown.enter",(function(){return e._showHoursClock()})),Ca(5),Fs(),Ca(6,":"),Ls(7,"span",5,6),qs("click",(function(){return e._showMinutesClock()}))("keydown.arrowdown",(function(t){return e._arrowChangeMinute(t.key)}))("keydown.arrowup",(function(t){return e._arrowChangeMinute(t.key)}))("keydown.enter",(function(){return e._showMinutesClock()})),Ca(9),Fs(),Fs(),Os(10,_S,5,6,"div",7),Fs(),Ls(11,"div",8),Ls(12,"div",9,10),Ls(14,"div",11),Ke.lFrame.currentNamespace="http://www.w3.org/2000/svg",Ls(15,"svg",12,13),Ls(17,"g",14,15),js(19,"line",16,17),js(21,"circle",18,19),js(23,"circle",20,21),js(25,"circle",22,23),Fs(),Fs(),Fs(),Ke.lFrame.currentNamespace=null,Ls(27,"div",24,25),Os(29,wS,2,9,"div",26),Fs(),Ls(30,"div",27,28),Os(32,CS,2,8,"div",29),Fs(),Fs(),Fs(),Ls(33,"div",30),Os(34,ES,2,1,"button",31),Os(35,xS,2,1,"button",32),Ls(36,"button",33),qs("click",(function(){return e._okBtnClicked()})),Ca(37),Fs(),Fs(),Fs()),2&t&&(wi(3),Rs("ngClass",Bl(15,mS,e._showHours)),wi(2),xa(" ",e._selectedTime.h,""),wi(2),Rs("ngClass",Hl(17,SS,!e._showHours,e._minuteDigitalDisabled)),wi(2),Ea(e._selectedTime.m),wi(1),Rs("ngIf",e.twelveHour),wi(17),Rs("ngClass",Bl(20,kS,!e._showHours))("ngStyle",Bl(22,vS,e._showHours?"visible":"hidden")),wi(2),Rs("ngForOf",e._hoursTicks),wi(1),Rs("ngClass",Bl(24,kS,e._showHours))("ngStyle",Bl(26,vS,e._showHours?"hidden":"visible")),wi(2),Rs("ngForOf",e._minutesTicks),wi(2),Rs("ngIf",e.clearButton),wi(1),Rs("ngIf",e.closeButton),wi(1),Rs("ngClass",Bl(28,Gx,e._okButtonDisabled)),wi(1),xa(" ",e.okButton," "))},directives:[hE,yh,Eh,Ah,wh,xT],styles:["@-webkit-keyframes pulse{0%{transform:scaleX(1)}50%{transform:scale3d(1.1,1.1,1.1)}to{transform:scaleX(1)}}@keyframes pulse{0%{transform:scaleX(1)}50%{transform:scale3d(1.1,1.1,1.1)}to{transform:scaleX(1)}}.disabled{cursor:default;opacity:.5}.mdb-timepicker-modal{min-width:328px;background-color:#fff;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;display:table-cell;vertical-align:middle}@media (min-height:28.875em){.mdb-timepicker-modal{display:block;border-color:#898989 #777 #777;border-style:solid;border-width:1px 1px 0;border-radius:5px 5px 0 0;box-shadow:0 .75rem 2.25rem 1rem rgba(0,0,0,.24)}}.mdb-timepicker-header{height:120px;box-sizing:border-box;background-color:#4285f4;padding:24px;display:flex;align-items:center;justify-content:center;color:hsla(0,0%,100%,.55)}.mdb-timepicker-time{font-size:70px;color:hsla(0,0%,100%,.65)}.mdb-timepicker-ampm{margin-left:15px;font-size:18px;display:flex;flex-direction:column;justify-content:space-around;height:100%}span{cursor:pointer}span.active{color:#fff}.mdb-timepicker-tick{border-radius:50%;color:#666;line-height:2.5rem;text-align:center;width:2.5rem;height:2.5rem;position:absolute;cursor:pointer;transition:background-color .3s;background-color:rgba(0,150,136,0);transition:.3s}.mdb-timepicker-tick:hover{background-color:rgba(0,150,136,.25)}.mdb-timepicker-footer{display:flex;justify-content:flex-end;width:100%;padding:12px}.mdb-timepicker-btn{padding:6px 8px;text-transform:uppercase;background:transparent;border:0;border-radius:4px;min-width:64px;transition:.3s}.mdb-timepicker-btn:not(.mdb-timepicker-btn.mdb-timepicker-clear){margin-left:8px}.mdb-timepicker-btn.mdb-timepicker-clear{margin-right:auto}.mdb-timepicker-btn:hover{background-color:rgba(0,150,136,.25)}.mdb-timepicker-plate{background-color:#eee;border-radius:50%;width:270px;height:270px;overflow:visible;position:relative;margin:20px auto auto;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mdb-timepicker-plate .mdb-timepicker-minutes{visibility:hidden}.mdb-timepicker-plate .mdb-timepicker-dial-out{opacity:0}.mdb-timepicker-plate .mdb-timepicker-hours.mdb-timepicker-dial-out{transform:scale(1.2)}.mdb-timepicker-plate .mdb-timepicker-minutes.mdb-timepicker-dial-out{transform:scale(.8)}.mdb-timepicker-canvas,.mdb-timepicker-dial{width:270px;height:270px;position:absolute;left:-1px;top:-1px}.mdb-timepicker-dial{transition:transform .35s,opacity .35s}.mdb-timepicker-dial .mdb-timepicker-tick{border-radius:50%;color:#666;line-height:2.5rem;text-align:center;width:40px;height:40px;position:absolute;cursor:pointer;transition:background-color .3s;background-color:rgba(0,150,136,0)}.mdb-timepicker-dial .mdb-timepicker-tick.active,.mdb-timepicker-dial .mdb-timepicker-tick:hover{background-color:rgba(0,150,136,.25)}.mdb-timepicker-canvas{transition:opacity .3s}.mdb-timepicker-canvas line{stroke:rgba(0,150,136,.25);stroke-width:1}.mdb-timepicker-canvas-out{opacity:.25}.mdb-timepicker-canvas-bearing{stroke:none;fill:rgba(0,77,64,.75)}.mdb-timepicker-canvas-fg{stroke:none;fill:rgba(0,77,64,0)}.mdb-timepicker-canvas-fg.active{fill:rgba(0,77,64,.5)}.mdb-timepicker-canvas-bg{stroke:none;fill:rgba(0,150,136,.25)}.mdb-timepicker-canvas-bg-trans{fill:rgba(0,150,136,.25)}"],encapsulation:2,changeDetection:0}),t})(),II=(()=>{class t{}return t.\u0275mod=be({type:t,bootstrap:function(){return[TI]}}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,bx,SE,PS.forRoot(),ST.forRoot()]]}),t})(),OI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[[Vh,YS]]}),t})(),AI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[],imports:[[qT.forRoot(),SI,lI.forRoot(),xI.forRoot(),YT,GT,kI,II,XT,pI,$T,IT,yI,vI.forRoot(),QT.forRoot(),hI,zT,cI,HT,bI,OI,ZT,JT],qT,KT,SI,lI,xI,YT,GT,kI,II,XT,pI,$T,IT,yI,vI,QT,hI,zT,cI,HT,bI,OI,ZT,JT]}),t})(),NI=(()=>{class t{static forRoot(){return{ngModule:AI}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[qT,KT,SI,lI,xI,YT,GT,kI,II,XT,pI,$T,IT,yI,vI,QT,hI,zT,cI,HT,bI,OI,ZT,JT]}),t})(),PI=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[],imports:[[TT.forRoot(),NI.forRoot()],TT,NI]}),t})(),DI=(()=>{class t{static forRoot(){return{ngModule:PI}}}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},imports:[TT,NI]}),t})();const RI=["chatContainer"],MI=["chatTextBox"],LI=["content"],FI=["chatService.messages"];function jI(t,e){if(1&t&&(Ls(0,"div",20),js(1,"img",21),js(2,"span",22),Fs()),2&t){const t=Qs(2);wi(1),Zs("src",t.userThatIAmTalkingTo.photoURL,Zr)}}function UI(t,e){if(1&t&&(Ls(0,"p",23),Ls(1,"strong"),Ca(2),Fs(),Fs()),2&t){const t=Qs(2);wi(2),Ea(t.userThatIAmTalkingTo.firstName)}}function VI(t,e){if(1&t&&(Ls(0,"mdb-card",29),Ls(1,"mdb-card-body",30),Ls(2,"mdb-card-text",31),Ca(3),Fs(),Fs(),Ls(4,"p",32),Ca(5),Kl(6,"date"),Fs(),Fs()),2&t){const t=Qs().$implicit;wi(3),xa("",t.content," "),wi(2),xa(" ",Xl(6,2,t.timestamp.toDate(),"dd MMM hh:mm"),"")}}function BI(t,e){if(1&t&&(Ls(0,"mdb-card",33),Ls(1,"mdb-card-body",30),Ls(2,"mdb-card-text",31),Ca(3),Fs(),Fs(),Ls(4,"p",32),Ca(5),Kl(6,"date"),Fs(),Fs()),2&t){const t=Qs().$implicit;wi(3),xa("",t.content," "),wi(2),xa(" ",Xl(6,2,t.timestamp.toDate(),"dd MMM hh:mm"),"")}}function HI(t,e){if(1&t&&(Ls(0,"div",26),Os(1,VI,7,5,"mdb-card",27),Os(2,BI,7,5,"mdb-card",28),Fs()),2&t){const t=e.$implicit,n=Qs(3);wi(1),Rs("ngIf",t.senderId!=n.localStorageService.getUserDataFromLocalStorage().uid),wi(1),Rs("ngIf",t.senderId==n.localStorageService.getUserDataFromLocalStorage().uid)}}function zI(t,e){if(1&t&&(Ls(0,"mdb-card-body",24),Os(1,HI,3,2,"div",25),Fs()),2&t){const t=Qs(2);wi(1),Rs("ngForOf",t.chatService.messages)}}function qI(t,e){if(1&t){const t=Bs();Ls(0,"div",1,2),Ls(2,"div",3),Ls(3,"div",4),Ls(4,"mdb-card",5),Ls(5,"mdb-card-header",6),Ls(6,"div",7),Os(7,jI,3,1,"div",8),Ls(8,"div",9),Os(9,UI,3,1,"p",10),Fs(),Fs(),Ls(10,"div",11),Ls(11,"a",12),qs("click",(function(){return Je(t),Qs().closeChatContainer()})),js(12,"mdb-icon",13),Fs(),Fs(),Fs(),Ls(13,"div",14,15),Os(15,zI,2,1,"mdb-card-body",16),Fs(),Ls(16,"mdb-card-footer",17),Ls(17,"input",18,19),qs("ngModelChange",(function(e){return Je(t),Qs().chatService.message=e}))("keydown.enter",(function(){return Je(t),Qs().chatService.sendMessage()}))("focus",(function(e){return Je(t),Qs().onFocus(e)})),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(6),ta("routerLink","/user-profile/",null==t.userThatIAmTalkingTo?null:t.userThatIAmTalkingTo.uid,""),wi(1),Rs("ngIf",t.userThatIAmTalkingTo),wi(2),Rs("ngIf",t.userThatIAmTalkingTo),wi(6),Rs("ngIf",t.chatService.showMessages),wi(2),Rs("ngModel",t.chatService.message)}}let WI=(()=>{class t{constructor(t,e,n,r){this.chatService=t,this.localStorageService=e,this.authService=n,this.renderer=r,this.scrollToBottom=()=>{try{this.content.nativeElement.scrollTop=this.content.nativeElement.scrollHeight}catch(t){}}}ngOnInit(){}ngAfterViewInit(){this.chatContainer.nativeElement.addEventListener("focus",this.onFocus.bind(this)),this.scrollToBottom(),this.messages.changes.subscribe(this.scrollToBottom)}closeChatContainer(){this.renderer.setStyle(this.chatContainer.nativeElement,"display","none"),setTimeout(()=>{this.chatService.updateMessageStatus(this.chatId)},1e3)}openChatContainer(t){console.log(t),this.userThatIAmTalkingTo=t,this.chatService.selectUser(t),console.log(this.userThatIAmTalkingTo.conversations);for(let e=0;e{class t{constructor(t,e,n,r,i){this.authService=t,this.localStorageService=e,this.router=n,this.chatService=r,this.afs=i,this.title="now-events",this.chatIsClicked=!0,this.englishIsActive=!0,this.chineseIsActive=!1,this.malayIsActive=!1,this.tamilIsActive=!1,this.koreanIsActive=!1,this.japaneseIsActive=!1,this.filipinoIsActive=!1,this.indonesianIsActive=!1,this.vietIsActive=!1,this.thaiIsActive=!1,this.sinhalaIsActive=!1}ngOnInit(){console.log(this.router.url),null!==this.localStorageService.getUserDataFromLocalStorage()&&this.localStorageService.getUserDataFromLocalStorage(),this.authService.profilePhotoSubject.asObservable().subscribe(t=>{this.userProfileURL=t}),this.localStorageService.localStorageValueChanges.asObservable().subscribe(t=>{"users/conversations"!==t&&"signin"!==t||console.log("localStorageValueChangedNotification$ invoked:")})}ngAfterViewChecked(){var t,e,n,r,i,o,s,a,l,c,u,h;let d=null===(t=this.googleTranslateElement)||void 0===t?void 0:t.nativeElement.children;d&&this.englishIsActive&&((null===(e=d[0])||void 0===e?void 0:e.innerText.includes("Select Language"))&&(this.englishIsActive=!0),(null===(n=d[0])||void 0===n?void 0:n.innerText.includes("Chinese"))&&(console.log("Chinese Translation Detected"),this.englishIsActive=!1,this.chineseIsActive=!0),(null===(r=d[0])||void 0===r?void 0:r.innerText.includes("Malay"))&&(console.log("Malay Translation Detected"),this.englishIsActive=!1,this.malayIsActive=!0),(null===(i=d[0])||void 0===i?void 0:i.innerText.includes("Tamil"))&&(console.log("Tamil Translation Detected"),this.englishIsActive=!1,this.tamilIsActive=!0),(null===(o=d[0])||void 0===o?void 0:o.innerText.includes("Korean"))&&(console.log("Korean Translation Detected"),this.englishIsActive=!1,this.koreanIsActive=!0),(null===(s=d[0])||void 0===s?void 0:s.innerText.includes("Japanese"))&&(console.log("Japanese Translation Detected"),this.englishIsActive=!1,this.japaneseIsActive=!0),(null===(a=d[0])||void 0===a?void 0:a.innerText.includes("Filipino"))&&(console.log("Indonesian Translation Detected"),this.englishIsActive=!1,this.filipinoIsActive=!0),(null===(l=d[0])||void 0===l?void 0:l.innerText.includes("Indonesian"))&&(console.log("Indonesian Translation Detected"),this.englishIsActive=!1,this.indonesianIsActive=!0),(null===(c=d[0])||void 0===c?void 0:c.innerText.includes("Vietnamese"))&&(console.log("Vietnamese Translation Detected"),this.englishIsActive=!1,this.vietIsActive=!0),(null===(u=d[0])||void 0===u?void 0:u.innerText.includes("Thai"))&&(console.log("Thai Translation Detected"),this.englishIsActive=!1,this.thaiIsActive=!0),(null===(h=d[0])||void 0===h?void 0:h.innerText.includes("Sinhala"))&&(console.log("Sinhala Translation Detected"),this.englishIsActive=!1,this.sinhalaIsActive=!0))}routeLink(){this.router.navigate(["/user-profile",this.localStorageService.getUserDataFromLocalStorage().uid])}googleTranslateClick(t){let e=this.router.url.split("#");0===t?(window.location.href=e[0]+"#googtrans(en|en)",location.reload()):1===t?(window.location.href=e[0]+"#googtrans(en|zh-CN)",location.reload()):2===t?(window.location.href=e[0]+"#googtrans(en|ms)",location.reload()):3===t?(window.location.href=e[0]+"#googtrans(en|ta)",location.reload()):4===t?(window.location.href=e[0]+"#googtrans(en|ko)",location.reload()):5===t?(window.location.href=e[0]+"#googtrans(en|ja)",location.reload()):6===t?(window.location.href=e[0]+"#googtrans(en|tl)",location.reload()):7===t?(window.location.href=e[0]+"#googtrans(en|id)",location.reload()):8===t?(window.location.href=e[0]+"#googtrans(en|vi)",location.reload()):9===t?(window.location.href=e[0]+"#googtrans(en|th)",location.reload()):10===t&&(window.location.href=e[0]+"#googtrans(en|si)",location.reload())}openMessagingSideBar(){this.chatIsClicked=!1,this.sideNav.show()}closeChatContainer(){this.chatboxchild.closeChatContainer()}openChatContainer(t){console.log(t),this.chatboxchild.openChatContainer(t),this.sideNav.hide()}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC),Ns(Kw),Ns(uw),Ns(nC),Ns(sb))},t.\u0275cmp=fe({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(dc(GI,!0),dc($I,!0),dc(KI,!0)),2&t&&(uc(n=gc())&&(e.sideNav=n.first),uc(n=gc())&&(e.chatboxchild=n.first),uc(n=gc())&&(e.googleTranslateElement=n.first))},decls:2,vars:1,consts:[[4,"ngIf"],["class","black-text",4,"ngIf"],["chatboxchild",""],[1,"black-text"],[3,"hidden"],[1,"primaryColor",3,"fixed","side"],["sideNav",""],[1,"my-0","px-3","py-3","black-text",2,"font-size","24px","font-weight","bold"],[1,"row","col-12"],["SideClass","navbar navbar-expand-lg navbar-toggleable-md navbar-light scrolling-navbar fixed-top primaryColor",1,"sticky",3,"containerInside"],["routerLink","#",1,"logo","navbar-brand"],["src","../assets/now-logo-2.png",2,"height","60px"],["src","../assets/logo2.png",2,"height","60px"],["id","google_translate_element",2,"display","none"],["google_translate_element",""],[1,"navbar-nav","ml-auto","nav-flex-icons"],["dropdown","",1,"nav-item","dropdown","d-none","d-md-block"],["dropdownToggle","","mdbWavesEffect","","type","button","mdbWavesEffect","",1,"nav-link","dropdown-toggle","waves-light","black-text"],[1,"img-fluid","z-depth-0",2,"height","25px","width","25px","border-radius","50%",3,"src"],["class","dropdown-menu dropdown primaryColor","role","menu","style","left: -85px;",4,"dropdownMenu"],["mdbWavesEffect","",1,"nav-item","waves-light","d-block","d-md-none"],["routerLink","",1,"nav-link","waves-light","black-text",3,"click"],[1,"nav-link","waves-light","black-text",3,"click"],["mdbDropdown","",1,"dropdown","d-block","d-md-none","black-text"],["mdbDropdownToggle","","size","sm","type","button","mdbBtn","","mdbWavesEffect","",1,"dropdown-toggle","waves-light"],[1,"dropdown-menu"],[1,"dropdown-item","black-text",3,"ngClass","click"],["src","../assets/flags/jp.svg",1,"z-depth-4",2,"height","16px","margin-right","5px"],["style","min-width: 15vw;","class","mb-2 view overlay rounded",3,"click",4,"ngFor","ngForOf"],[1,"mb-2","view","overlay","rounded",2,"min-width","15vw",3,"click"],[1,"d-flex",2,"padding","10px 10px 10px 10px","height","72px","width","100%"],["alt","avatar",1,"avatar","rounded-circle","d-flex","align-self-center","z-depth-1","mr-3",2,"width","50px","height","50px",3,"src"],[1,"mr-3","black-text",2,"line-height","20px","margin-top","8px"],[1,"truncate","black-text",2,"font-size","small"],["style","float: right;",4,"ngIf"],[1,"mask","flex-center","rgba-grey-light"],[2,"float","right"],["pill","true","color","tertiaryColor",2,"position","absolute","right","0"],["role","menu",1,"dropdown-menu","dropdown","primaryColor",2,"left","-85px"],["mdbWavesEffect","",1,"dropdown-item","waves-light","black-text",3,"click"]],template:function(t,e){1&t&&(js(0,"router-outlet"),Os(1,tO,4,1,"div",0)),2&t&&(wi(1),Rs("ngIf",e.authService.isLoggedIn))},directives:[mw,Eh,WI,dI,gT,fT,dw,pT,Hk,qk,xT,zk,AS,yh,wh,TS],styles:[".active[_ngcontent-%COMP%]{color:#000!important;border-bottom:3px solid}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:12vw}.dropdown-item.active[_ngcontent-%COMP%], .dropdown-item[_ngcontent-%COMP%]:active{background-color:unset!important}"]}),t})(),nO=(()=>{class t{constructor(t){this.authService=t}ngOnInit(){this.validatingForm=new Gg({email:new Wg(null,[sg.required,sg.email]),password:new Wg(null,[sg.required,sg.minLength(6),sg.maxLength(128)])})}get email(){return this.validatingForm.get("email")}get password(){return this.validatingForm.get("password")}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC))},t.\u0275cmp=fe({type:t,selectors:[["app-login"]],decls:25,vars:2,consts:[[1,"row","col-12"],[1,"d-none","d-md-block","row","col-12",2,"margin-top","20vh"],[1,"d-block","d-md-none","row","col-12",2,"margin-top","10vh"],[1,"col-md-2","col-lg-2","col-xl-2"],[1,"col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-8","grey","lighten-2",2,"opacity","0.85"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-6","col-xl-6",2,"text-align","center"],["src","../../assets/now-logo.png",1,"vertical-center",2,"margin","0 auto","max-width","100%"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-6","col-xl-6"],[1,"text-center",2,"color","#757575","margin-top","5rem",3,"formGroup"],[1,"md-form","mt-0"],["mdbInput","","mdbValidate","","type","email","formControlName","email","id","emailInput",1,"form-control"],["for","emailInput"],[1,"md-form"],["mdbInput","","mdbValidate","","type","password","formControlName","password","id","passwordInput",1,"form-control"],["for","passwordInput"],["mdbBtn","","rounded","true","mdbWavesEffect","","type","submit",1,"my-4","waves-effect","z-depth-0","white-text",2,"width","300px","max-width","100%","margin","0 auto","background-color","#ff6600",3,"click"],[1,""],[3,"routerLink"]],template:function(t,e){1&t&&(Ls(0,"body"),Ls(1,"div",0),js(2,"div",1),js(3,"div",2),js(4,"div",3),Ls(5,"mdb-card",4),Ls(6,"mdb-card-body",0),Ls(7,"div",5),js(8,"img",6),js(9,"br"),Fs(),Ls(10,"div",7),Ls(11,"form",8),Ls(12,"div",9),js(13,"input",10),Ls(14,"label",11),Ca(15,"E-mail"),Fs(),Fs(),Ls(16,"div",12),js(17,"input",13),Ls(18,"label",14),Ca(19,"Password"),Fs(),Fs(),Ls(20,"button",15),qs("click",(function(){return e.authService.signIn(e.email.value,e.password.value)})),Ca(21,"Login"),Fs(),Fs(),Ls(22,"div",16),Ls(23,"a",17),Ca(24,"Forgot Password?"),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()),2&t&&(wi(11),Rs("formGroup",e.validatingForm),wi(12),Rs("routerLink","/forgot-password"))},directives:[FS,LS,om,eg,um,$f,nT,tT,tg,vm,AS,xT,dw],styles:["body[_ngcontent-%COMP%]{background-image:url(bg.21fe6452b8217cae808d.png);background-position:50%;width:100%;min-height:100vh;background-size:cover;text-align:center}.border-light[_ngcontent-%COMP%]{border-color:#d1315a!important}"]}),t})(),rO=(()=>{class t{constructor(t){this.authService=t,this.passwordLengthBelowSix=!1,this.confirmPasswordLengthBelowSix=!1,this.departmentIsEmpty=!1,this.firstNameIsEmpty=!1,this.lastNameIsEmpty=!1,this.emailIsEmpty=!1,this.passwordIsEmpty=!1,this.confirmPasswordIsEmpty=!1,this.organizationIsEmpty=!1,this.jobTitleIsEmpty=!1}ngOnInit(){this.validatingForm=new Gg({firstName:new Wg("",[sg.required]),lastName:new Wg("",[sg.required]),email:new Wg("",[sg.required,sg.email]),password:new Wg("",[sg.required,sg.minLength(6),sg.maxLength(128)]),confirmPassword:new Wg("",[sg.required,sg.minLength(6),sg.maxLength(128)]),organization:new Wg("",[sg.required]),jobTitle:new Wg("",[sg.required]),department:new Wg("",[sg.required])},this.passwordMatchValidator)}get firstName(){return this.validatingForm.get("firstName")}get lastName(){return this.validatingForm.get("lastName")}get email(){return this.validatingForm.get("email")}get password(){return this.validatingForm.get("password")}get confirmPassword(){return this.validatingForm.get("confirmPassword")}get department(){return this.validatingForm.get("department")}get organization(){return this.validatingForm.get("organization").value}get jobTitle(){return this.validatingForm.get("jobTitle").value}passwordMatchValidator(t){return t.get("password").value===t.get("confirmPassword").value?null:{mismatch:!0}}onPasswordInput(){this.validatingForm.hasError("mismatch")?this.confirmPassword.setErrors([{mismatch:!0}]):this.confirmPassword.setErrors(null),this.passwordLengthBelowSix=this.validatingForm.controls.password.value.length<6}submitForm(){"INVALID"==this.validatingForm.status?(this.departmentIsEmpty=""==this.validatingForm.controls.department.value,this.firstNameIsEmpty=""==this.validatingForm.controls.firstName.value,this.lastNameIsEmpty=""==this.validatingForm.controls.lastName.value,this.emailIsEmpty=""==this.validatingForm.controls.email.value,this.passwordIsEmpty=""==this.validatingForm.controls.password.value,this.confirmPasswordIsEmpty=""==this.validatingForm.controls.confirmPassword.value,this.organizationIsEmpty=""==this.validatingForm.controls.organization.value,this.jobTitleIsEmpty=""==this.validatingForm.controls.jobTitle.value):this.authService.signUp(this.validatingForm.controls.email.value,this.validatingForm.controls.password.value,this.validatingForm.controls.firstName.value,this.validatingForm.controls.lastName.value,this.validatingForm.controls.department.value,this.validatingForm.controls.organization.value,this.validatingForm.controls.jobTitle.value)}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC))},t.\u0275cmp=fe({type:t,selectors:[["app-register"]],decls:19,vars:1,consts:[[1,"row","col-12"],[1,"col-md-2","col-lg-2","col-xl-2"],[1,"col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-8","grey","lighten-2",2,"margin-top","5vh","margin-bottom","5vh","opacity","0.85"],[1,"col-xs-12","col-sm-12","col-md-6",2,"text-align","center"],["src","../../assets/now-logo.png",1,"vertical-center",2,"margin","auto auto","max-width","100%","max-height","100%"],[1,"col-xs-12","col-sm-12","col-md-6"],[3,"routerLink"],["mdbBtn","","rounded","true","mdbWavesEffect","","type","submit",1,"my-4","waves-effect","z-depth-0","white-text",2,"width","300px","max-width","100%","background-color","#ff6600"],[1,"signup-bg","d-none","d-md-block","col-md-6","col-lg-6","col-xl-6"]],template:function(t,e){1&t&&(Ls(0,"body"),Ls(1,"div",0),js(2,"div",1),Ls(3,"mdb-card",2),Ls(4,"mdb-card-body",0),Ls(5,"div",3),js(6,"img",4),js(7,"br"),Fs(),Ls(8,"div",5),js(9,"br"),js(10,"br"),js(11,"br"),js(12,"br"),Ls(13,"h3"),Ca(14,"Registration for this webinar is now closed."),Fs(),Ls(15,"a",6),Ls(16,"button",7),Ca(17,"Login"),Fs(),Fs(),Fs(),Fs(),Fs(),js(18,"div",8),Fs(),Fs()),2&t&&(wi(15),Rs("routerLink","/login"))},directives:[FS,LS,dw,AS,xT],styles:["@media (min-width:768px){body[_ngcontent-%COMP%]{background-image:url(bg.21fe6452b8217cae808d.png);background-position:50%;width:100%;min-height:1000px;background-size:cover;text-align:center}}@media (max-width:768px){body[_ngcontent-%COMP%]{background-image:url(bg.21fe6452b8217cae808d.png);background-position:50%;width:100%;min-height:1150px;background-size:cover;text-align:center}}.border-light[_ngcontent-%COMP%]{border-color:#d1315a!important}.flush-left[_ngcontent-%COMP%]{text-align:left;text-align-last:left;-moz-text-align-last:left}.vertical-center[_ngcontent-%COMP%]{position:relative;top:50%;transform:translateY(-50%)}input[type=text][_ngcontent-%COMP%], input[type=text][_ngcontent-%COMP%]:focus{outline:unset!important}body[_ngcontent-%COMP%], html[_ngcontent-%COMP%]{overflow:auto!important;overflow:initial!important;min-width:0!important}"]}),t})();function iO(t,e){if(1&t){const t=Bs();Ls(0,"div",11),js(1,"div",12),Ls(2,"div",13),Ls(3,"h5"),Ca(4),Fs(),Ls(5,"p"),Ca(6,"Didn't receive the email? "),Ls(7,"a",14),qs("click",(function(){Je(t);const n=e.ngIf;return Qs().authService.sendVerificationMail(n.email,"","")})),Ls(8,"u"),Ca(9,"Click here to resend verification mail"),Fs(),Fs(),Ca(10,"."),Fs(),Ls(11,"button",15),Ca(12,"Login now"),Fs(),Fs(),Fs()}if(2&t){const t=e.ngIf;wi(4),xa(" In order to login, you must verify your account. An email has been sent to ",t.email," with a link to verify your account. If you have not received the email after a few minutes, please check your spam folder or click on the button below to resend the verification email."),wi(7),Rs("routerLink","/login")}}let oO=(()=>{class t{constructor(t){this.authService=t}ngOnInit(){console.log(this.authService.userData)}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC))},t.\u0275cmp=fe({type:t,selectors:[["app-verify-email"]],decls:15,vars:1,consts:[[1,"row","col-12"],[1,"d-none","d-md-block","row","col-12",2,"margin-top","10vh"],[1,"d-block","d-md-none","row","col-12",2,"margin-top","5vh"],[1,"col-md-2","col-lg-2","col-xl-2"],[1,"col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-8","grey","lighten-2",2,"opacity","0.85"],[2,"width","100%"],[1,"col-12","mt-4",2,"text-align","center"],["src","../../assets/now-logo.png",2,"margin","0 auto","max-width","100%"],[1,"col-12","mt-4"],["class","row mt-4",4,"ngIf"],[1,"d-block","d-md-none","row","col-12",2,"margin-bottom","10vh"],[1,"row","mt-4"],[1,"col-lg-2","col-xl-2"],[1,"col-xs-12","col-s-12","col-md-12","col-lg-8","col-xl-8"],[2,"color","blue",3,"click"],["mdbBtn","","color","pink","rounded","true","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-0",3,"routerLink"]],template:function(t,e){1&t&&(Ls(0,"body"),Ls(1,"div",0),js(2,"div",1),js(3,"div",2),js(4,"div",3),Ls(5,"mdb-card",4),Ls(6,"mdb-card-body",5),Ls(7,"div",6),js(8,"img",7),js(9,"br"),Fs(),Ls(10,"div",8),Ls(11,"h1"),Ca(12,"Thank you for registering! Please verify your account."),Fs(),Os(13,iO,13,2,"div",9),Fs(),Fs(),Fs(),js(14,"div",10),Fs(),Fs()),2&t&&(wi(13),Rs("ngIf",e.authService.userData))},directives:[FS,LS,Eh,AS,xT,hw],styles:["body[_ngcontent-%COMP%]{background-image:url(bg.21fe6452b8217cae808d.png);background-position:50%;width:100%;min-height:100vh;background-size:cover;text-align:center}"]}),t})();class sO{constructor(t,e,n,r,i,o,s,a,l,c,u,h,d,p,f,g,m,v){this.end_time=t,this.event_description=e,this.event_id=n,this.event_name=r,this.event_type=i,this.image=o,this.start_time=s,this.speakers=a,this.sponsor_id=l,this.status=c,this.track=u,this.mp_meeting_name=h,this.wowza_rtmp_link=d,this.wowza_preview_poster=p,this.livewebinar_id=f,this.zoom_link=g,this.jitsi_room_name=m,this.vod_links=v}}class aO{constructor(t,e,n,r,i,o,s,a,l,c,u,h,d){this.sponsor_banner=t,this.sponsor_description=e,this.sponsor_id=n,this.sponsor_logo=r,this.sponsor_name=i,this.sponsor_email=o,this.sponsor_website=s,this.sponsor_type=a,this.stream_type=l,this.vimeo_vod_link=c,this.livewebinar_id=u,this.jitsi_room_name=h,this.gruveo_link=d}}var lO=n("LvDl"),cO=n.n(lO);let uO=(()=>{class t{constructor(t,e){this.afs=t,this.router=e}getAllEvents(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((t,e)=>{this.afs.collection("eventStore").get().subscribe(e=>{t(e)})})}))}getAllSponsors(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((t,e)=>{this.afs.collection("sponsorStore").snapshotChanges().subscribe(e=>{t(e)})})}))}getEvent(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((e,n)=>{this.afs.collection("eventStore",e=>e.where("event_name","==",t)).snapshotChanges().subscribe(t=>{e(t)})})}))}getAllSponsorPresentations(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((t,e)=>{this.afs.collection("eventStore",t=>t.where("event_type","==","sponsor-presentation")).snapshotChanges().subscribe(e=>{t(e)})})}))}getAllSponsorTracksBySponsorId(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((e,n)=>{this.afs.collection("eventStore",e=>e.where("event_type","==","sponsor-track").where("sponsor_id","==",t)).snapshotChanges().subscribe(t=>{e(t)})})}))}getSponsorById(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((e,n)=>{this.afs.collection("sponsorStore",e=>e.where("sponsor_id","==",t)).snapshotChanges().subscribe(t=>{e(t)})})}))}getSponsorByName(t){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((e,n)=>{this.afs.collection("sponsorStore",e=>e.where("sponsor_name","==",t)).snapshotChanges().subscribe(t=>{e(t)})})}))}}return t.\u0275fac=function(e){return new(e||t)(Qt(sb),Qt(uw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function hO(t,e,n){return 0===n?[e]:(t.push(e),t)}class dO{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new pO(t,this.delay,this.scheduler))}}class pO extends f{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,i=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(pO.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new fO(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(pv.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(pv.createComplete()),this.unsubscribe()}}class fO{constructor(t,e){this.time=t,this.notification=e}}const gO=function(t,e){return{isMouseDragable:t,isTouchDragable:e}};function mO(t,e){if(1&t&&(Ls(0,"div",4),js(1,"owl-stage",5),Fs()),2&t){const t=Qs();wi(1),Rs("owlDraggable",Hl(3,gO,null==t.owlDOMData?null:t.owlDOMData.isMouseDragable,null==t.owlDOMData?null:t.owlDOMData.isTouchDragable))("stageData",t.stageData)("slidesData",t.slidesData)}}const vO=function(t,e){return{active:t,"owl-dot-text":e}};function bO(t,e){if(1&t){const t=Bs();Ls(0,"div",11),qs("click",(function(){Je(t);const n=e.$implicit;return Qs(2).moveByDot(n.id)})),js(1,"span",12),Fs()}if(2&t){const t=e.$implicit;Rs("ngClass",Hl(2,vO,t.active,t.showInnerContent)),wi(1),Rs("innerHTML",t.innerContent,Jr)}}const yO=function(t){return{disabled:t}};function _O(t,e){if(1&t){const t=Bs();Us(0),Ls(1,"div",6),Ls(2,"div",7),qs("click",(function(){return Je(t),Qs().prev()})),Fs(),Ls(3,"div",8),qs("click",(function(){return Je(t),Qs().next()})),Fs(),Fs(),Ls(4,"div",9),Os(5,bO,2,5,"div",10),Fs(),Vs()}if(2&t){const t=Qs();wi(1),Rs("ngClass",Bl(7,yO,null==t.navData?null:t.navData.disabled)),wi(1),Rs("ngClass",Bl(9,yO,null==t.navData||null==t.navData.prev?null:t.navData.prev.disabled))("innerHTML",null==t.navData||null==t.navData.prev?null:t.navData.prev.htmlText,Jr),wi(1),Rs("ngClass",Bl(11,yO,null==t.navData||null==t.navData.next?null:t.navData.next.disabled))("innerHTML",null==t.navData||null==t.navData.next?null:t.navData.next.htmlText,Jr),wi(1),Rs("ngClass",Bl(13,yO,null==t.dotsData?null:t.dotsData.disabled)),wi(1),Rs("ngForOf",null==t.dotsData?null:t.dotsData.dots)}}const wO=function(t,e,n,r,i){return{"owl-rtl":t,"owl-loaded":e,"owl-responsive":n,"owl-drag":r,"owl-grab":i}};function CO(t,e){}function EO(t,e){1&t&&Os(0,CO,0,0,"ng-template",4),2&t&&Rs("ngTemplateOutlet",Qs().$implicit.tplRef)}const xO=function(t,e,n,r){return{width:t,"margin-left":e,"margin-right":n,left:r}};function SO(t,e){if(1&t){const t=Bs();Us(0),Ls(1,"div",2),qs("animationend",(function(){Je(t);const n=e.$implicit;return Qs().clear(n.id)})),Os(2,EO,1,1,void 0,3),Fs(),Vs()}if(2&t){const t=e.$implicit;wi(1),Rs("ngClass",t.classes)("ngStyle",(n=4,r=xO,i=t.width+"px",o=t.marginL?t.marginL+"px":"",s=t.marginR?t.marginR+"px":"",a=t.left,function(t,e,n,r,i,o,s,a,l){const c=e+n;return ks(t,c,i,o,s,a)?Es(t,c+4,l?r.call(l,i,o,s,a):r(i,o,s,a)):Wl(t,c+4)}(Xe(),sn(),n,r,i,o,s,a,l)))("@autoHeight",t.heightState),wi(1),Rs("ngIf",t.load)}var n,r,i,o,s,a,l}const kO=function(t,e,n,r,i){return{width:t,transform:e,transition:n,"padding-left":r,"padding-right":i}};let TO=(()=>{let t=class{constructor(t){this.eventManager=t,this.resizeSubject=new S,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}get onResize$(){return this.resizeSubject.asObservable()}onResize(t){this.resizeSubject.next(t.target)}onLoaded(t){this.windowWidth=t.target}};return t.\u0275fac=function(e){return new(e||t)(Qt(Yh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class IO{constructor(){this.items=3,this.skip_validateItems=!1,this.loop=!1,this.center=!1,this.rewind=!1,this.mouseDrag=!0,this.touchDrag=!0,this.pullDrag=!0,this.freeDrag=!1,this.margin=0,this.stagePadding=0,this.merge=!1,this.mergeFit=!0,this.autoWidth=!1,this.startPosition=0,this.rtl=!1,this.smartSpeed=250,this.fluidSpeed=!1,this.dragEndSpeed=!1,this.responsive={},this.responsiveRefreshRate=200,this.nav=!1,this.navText=["prev","next"],this.navSpeed=!1,this.slideBy=1,this.dots=!0,this.dotsEach=!1,this.dotsData=!1,this.dotsSpeed=!1,this.autoplay=!1,this.autoplayTimeout=5e3,this.autoplayHoverPause=!1,this.autoplaySpeed=!1,this.autoplayMouseleaveTimeout=1,this.lazyLoad=!1,this.lazyLoadEager=0,this.slideTransition="",this.animateOut=!1,this.animateIn=!1,this.autoHeight=!1,this.URLhashListener=!1}}class OO{constructor(){this.items="number",this.skip_validateItems="boolean",this.loop="boolean",this.center="boolean",this.rewind="boolean",this.mouseDrag="boolean",this.touchDrag="boolean",this.pullDrag="boolean",this.freeDrag="boolean",this.margin="number",this.stagePadding="number",this.merge="boolean",this.mergeFit="boolean",this.autoWidth="boolean",this.startPosition="number|string",this.rtl="boolean",this.smartSpeed="number",this.fluidSpeed="boolean",this.dragEndSpeed="number|boolean",this.responsive={},this.responsiveRefreshRate="number",this.nav="boolean",this.navText="string[]",this.navSpeed="number|boolean",this.slideBy="number|string",this.dots="boolean",this.dotsEach="number|boolean",this.dotsData="boolean",this.dotsSpeed="number|boolean",this.autoplay="boolean",this.autoplayTimeout="number",this.autoplayHoverPause="boolean",this.autoplaySpeed="number|boolean",this.autoplayMouseleaveTimeout="number",this.lazyLoad="boolean",this.lazyLoadEager="number",this.slideTransition="string",this.animateOut="string|boolean",this.animateIn="string|boolean",this.autoHeight="boolean",this.URLhashListener="boolean"}}let AO=(()=>{let t=class{constructor(t){this.errorHandler=t}log(t,...e){kr()&&console.log(t,...e)}error(t){this.errorHandler.handleError(t)}warn(t,...e){console.warn(t,...e)}};return t.\u0275fac=function(e){return new(e||t)(Qt(fr))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var NO=function(t){return t.Event="event",t.State="state",t}({}),PO=function(t){return t.Default="default",t.Inner="inner",t.Outer="outer",t}({});let DO=(()=>{let t=class{constructor(t){this.logger=t,this._viewSettingsShipper$=new S,this._initializedCarousel$=new S,this._changeSettingsCarousel$=new S,this._changedSettingsCarousel$=new S,this._translateCarousel$=new S,this._translatedCarousel$=new S,this._resizeCarousel$=new S,this._resizedCarousel$=new S,this._refreshCarousel$=new S,this._refreshedCarousel$=new S,this._dragCarousel$=new S,this._draggedCarousel$=new S,this.settings={items:0},this.owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1},this.stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0},this._items=[],this._widths=[],this._supress={},this._plugins={},this._current=null,this._clones=[],this._mergers=[],this._speed=null,this._coordinates=[],this._breakpoint=null,this.clonedIdPrefix="cloned-",this._options={},this._invalidated={},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},this._pipe=[{filter:["width","items","settings"],run:t=>{t.current=this._items&&this._items[this.relative(this._current)].id}},{filter:["width","items","settings"],run:t=>{const e=this.settings.margin||"",n=this.settings.rtl,r={"margin-left":n?e:"","margin-right":n?"":e};!this.settings.autoWidth||this.slidesData.forEach(t=>{t.marginL=r["margin-left"],t.marginR=r["margin-right"]}),t.css=r}},{filter:["width","items","settings"],run:t=>{const e=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,n=!this.settings.autoWidth,r=[];let i=null,o=this._items.length;for(t.items={merge:!1,width:e};o--;)i=this._mergers[o],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,r[o]=n?e*i:this._items[o].width?this._items[o].width:e;this._widths=r,this.slidesData.forEach((e,n)=>{e.width=this._widths[n],e.marginR=t.css["margin-right"],e.marginL=t.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const t=[],e=this._items,n=this.settings,r=Math.max(2*n.items,4),i=2*Math.ceil(e.length/2);let o=[],s=[],a=n.loop&&e.length?n.rewind?r:Math.max(r,i):0;for(a/=2;a--;)t.push(this.normalize(t.length/2,!0)),o.push(Object.assign({},this.slidesData[t[t.length-1]])),t.push(this.normalize(e.length-1-(t.length-1)/2,!0)),s.unshift(Object.assign({},this.slidesData[t[t.length-1]]));this._clones=t,o=o.map(t=>(t.id=`${this.clonedIdPrefix}${t.id}`,t.isActive=!1,t.isCloned=!0,t)),s=s.map(t=>(t.id=`${this.clonedIdPrefix}${t.id}`,t.isActive=!1,t.isCloned=!0,t)),this.slidesData=s.concat(this.slidesData).concat(o)}},{filter:["width","items","settings"],run:()=>{const t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,n=[];let r=-1,i=0,o=0;for(;++r{const t=this.settings.stagePadding,e=this._coordinates,n={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.stageData.width=n.width,this.stageData.paddingL=n["padding-left"],this.stageData.paddingR=n["padding-right"]}},{filter:["width","items","settings"],run:t=>{let e=t.current?this.slidesData.findIndex(e=>e.id===t.current):0;e=Math.max(this.minimum(),Math.min(this.maximum(),e)),this.reset(e)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const t=this.settings.rtl?1:-1,e=2*this.settings.stagePadding,n=[];let r,i,o,s,a,l;if(r=this.coordinates(this.current()),"number"==typeof r?r+=e:r=0,i=r+this.width()*t,-1===t&&this.settings.center){const t=this._coordinates.filter(t=>this.settings.items%2==1?t>=r:t>r);r=t.length?t[t.length-1]:r}for(a=0,l=this._coordinates.length;a",i)||this._op(s,"<",r)&&this._op(s,">",i))&&n.push(a);this.slidesData.forEach(t=>(t.isActive=!1,t)),n.forEach(t=>{this.slidesData[t].isActive=!0}),this.settings.center&&(this.slidesData.forEach(t=>(t.isCentered=!1,t)),this.slidesData[this.current()].isCentered=!0)}}]}get invalidated(){return this._invalidated}get states(){return this._states}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(t){const e=new IO,n=this._validateOptions(t,e);this._options=Object.assign(Object.assign({},e),n)}_validateOptions(t,e){const n=Object.assign({},t),r=new OO,i=(n,r)=>(this.logger.log(`options.${r} must be type of ${n}; ${r}=${t[r]} skipped to defaults: ${r}=${e[r]}`),e[r]);for(const o in n)if(n.hasOwnProperty(o))if("number"===r[o])this._isNumeric(n[o])?(n[o]=+n[o],n[o]="items"===o?this._validateItems(n[o],n.skip_validateItems):n[o]):n[o]=i(r[o],o);else if("boolean"===r[o]&&"boolean"!=typeof n[o])n[o]=i(r[o],o);else if("number|boolean"!==r[o]||this._isNumberOrBoolean(n[o]))if("number|string"!==r[o]||this._isNumberOrString(n[o]))if("string|boolean"!==r[o]||this._isStringOrBoolean(n[o])){if("string[]"===r[o])if(Array.isArray(n[o])){let t=!1;n[o].forEach(e=>{t="string"==typeof e}),t||(n[o]=i(r[o],o))}else n[o]=i(r[o],o)}else n[o]=i(r[o],o);else n[o]=i(r[o],o);else n[o]=i(r[o],o);return n}_validateItems(t,e){let n=t;return t>this._items.length?e?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(n=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):t===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),n}setCarouselWidth(t){this._width=t}setup(t,e,n){this.setCarouselWidth(t),this.setItems(e),this._defineSlidesData(),this.setOptions(n),this.settings=Object.assign({},this._options),this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const t=this._width,e=this._options.responsive;let n=-1;if(!Object.keys(e).length)return;if(!t)return void(this.settings.items=1);for(const i in e)e.hasOwnProperty(i)&&+i<=t&&+i>n&&(n=Number(i));this.settings=Object.assign(Object.assign(Object.assign({},this._options),e[n]),{items:e[n]&&e[n].items?this._validateItems(e[n].items,this._options.skip_validateItems):this._options.items}),delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const r=[];this._items.forEach(t=>{r.push(this.settings.merge?t.dataMerge:1)}),this._mergers=r,this._breakpoint=n,this.invalidate("settings")}initialize(t){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),t.forEach(t=>{this._mergers.push(this.settings.merge?t.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let t=0;const e=this._pipe.length,n=t=>this._invalidated[t],r={};for(;t0)&&this._pipe[t].run(r),t++}this.slidesData.forEach(t=>t.classes=this.setCurSlideClasses(t)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(t){switch(t=t||PO.Default){case PO.Inner:case PO.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(t){if(!this._items.length)return!1;this.setCarouselWidth(t),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(t){let e,n=null;return e=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),n={x:+e[0],y:+e[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===t.type&&(this.owlDOMData.isGrab=!0),this.speed(0),n}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(t,e){let n=null,r=null,i=null;const o=this.difference(e.pointer,this.pointer(t)),s=this.difference(e.stage.start,o);return!!this.is("dragging")&&(this.settings.loop?(n=this.coordinates(this.minimum()),r=+this.coordinates(this.maximum()+1)-n,s.x=((s.x-n)%r+r)%r+n):(n=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),r=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),i=this.settings.pullDrag?-1*o.x/5:0,s.x=Math.max(Math.min(s.x,n+i),r+i)),s)}finishDragging(t,e,n){const r=this.difference(e.pointer,this.pointer(t)),i=e.stage.current,o=["right","left"][+(this.settings.rtl?r.x<+this.settings.rtl:r.x>+this.settings.rtl)];let s,a,l;(0!==r.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),s=this.closest(i.x,0!==r.x?o:e.direction),a=this.current(),l=this.current(-1===s?void 0:s),a!==l&&(this.invalidate("position"),this.update()),e.direction=o,(Math.abs(r.x)>3||(new Date).getTime()-e.time>300)&&n()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(t,e){const n=this.width();let r=this.coordinates(),i=-1;this.settings.center&&(r=r.map(t=>(0===t&&(t+=1e-6),t)));for(let o=0;or[o]-30&&tr[o]-n-30&&t",r[o+1]||r[o]-n)?i="left"===e?o+1:o:null===e&&t>r[o]-30&&t",r[this.minimum()])?i=t=this.minimum():this._op(t,"<",r[this.maximum()])&&(i=t=this.maximum())),i}animate(t){const e=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),e&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+t+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(t){return this._states.current[t]&&this._states.current[t]>0}current(t){return void 0===t?this._current:0!==this._items.length?(t=this.normalize(t),this._current!==t&&(this._trigger("change",{property:{name:"position",value:t}}),this._current=t,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(t){return"string"==typeof t&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(t){void 0!==(t=this.normalize(t))&&(this._speed=0,this._current=t,this._suppress(["translate","translated"]),this.animate(this.coordinates(t)),this._release(["translate","translated"]))}normalize(t,e){const n=this._items.length,r=e?0:this._clones.length;return!this._isNumeric(t)||n<1?t=void 0:(t<0||t>=n+r)&&(t=((t-r/2)%n+n)%n+r/2),t}relative(t){return this.normalize(t-=this._clones.length/2,!0)}maximum(t=!1){const e=this.settings;let n,r,i,o=this._coordinates.length;if(e.loop)o=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(n=this._items.length,r=this.slidesData[--n].width,i=this._width;n--&&(r+=+this.slidesData[n].width+this.settings.margin,!(r>i)););o=n+1}else o=e.center?this._items.length-1:this._items.length-e.items;return t&&(o-=this._clones.length/2),Math.max(o,0)}minimum(t=!1){return t?0:this._clones.length/2}items(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),[this._items[t]])}mergers(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])}clones(t){const e=this._clones.length/2,n=e+this._items.length,r=t=>t%2==0?n+t/2:e-(t+1)/2;return void 0===t?this._clones.map((t,e)=>r(e)):this._clones.map((e,n)=>e===t?r(n):null).filter(t=>t)}speed(t){return void 0!==t&&(this._speed=t),this._speed}coordinates(t){let e,n,r=1,i=t-1;return void 0===t?(n=this._coordinates.map((t,e)=>this.coordinates(e)),n):(this.settings.center?(this.settings.rtl&&(r=-1,i=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[i]||0))/2*r):e=this._coordinates[i]||0,e=Math.ceil(e),e)}_duration(t,e,n){return 0===n?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(+n||this.settings.smartSpeed)}to(t,e){let n=this.current(),r=null,i=t-this.relative(n),o=this.maximum(),s=0;const a=+(i>0)-+(i<0),l=this._items.length,c=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(i)>l/2&&(i+=-1*a*l),r=(((t=n+i)-c)%l+l)%l+c,r!==t&&r-i<=o&&r-i>0&&(n=r-i,t=r,s=30,this.reset(n),this.sendChanges())):this.settings.rewind?(o+=1,t=(t%o+o)%o):t=Math.max(c,Math.min(o,t)),setTimeout(()=>{this.speed(this._duration(n,t,e)),this.current(t),this.update()},s)}next(t){t=t||!1,this.to(this.relative(this.current())+1,t)}prev(t){t=t||!1,this.to(this.relative(this.current())-1,t)}onTransitionEnd(t){if(void 0!==t)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let t;return this._width?t=this._width:this.logger.log("Can not detect viewport width."),t}setItems(t){this._items=t}_defineSlidesData(){let t;this.slidesData&&this.slidesData.length&&(t=new Map,this.slidesData.forEach(e=>{e.load&&t.set(e.id,e.load)})),this.slidesData=this._items.map(e=>({id:""+e.id,isActive:!1,tplRef:e.tplRef,dataMerge:e.dataMerge,width:0,isCloned:!1,load:!!t&&t.get(e.id),hashFragment:e.dataHash}))}setCurSlideClasses(t){const e={active:t.isActive,center:t.isCentered,cloned:t.isCloned,animated:t.isAnimated,"owl-animated-in":t.isDefAnimatedIn,"owl-animated-out":t.isDefAnimatedOut};return this.settings.animateIn&&(e[this.settings.animateIn]=t.isCustomAnimatedIn),this.settings.animateOut&&(e[this.settings.animateOut]=t.isCustomAnimatedOut),e}_op(t,e,n){const r=this.settings.rtl;switch(e){case"<":return r?t>n:t":return r?tn;case">=":return r?t<=n:t>=n;case"<=":return r?t>=n:t<=n}}_trigger(t,e,n,r,i){switch(t){case"initialized":this._initializedCarousel$.next(t);break;case"change":this._changeSettingsCarousel$.next(e);break;case"changed":this._changedSettingsCarousel$.next(e);break;case"drag":this._dragCarousel$.next(t);break;case"dragged":this._draggedCarousel$.next(t);break;case"resize":this._resizeCarousel$.next(t);break;case"resized":this._resizedCarousel$.next(t);break;case"refresh":this._refreshCarousel$.next(t);break;case"refreshed":this._refreshedCarousel$.next(t);break;case"translate":this._translateCarousel$.next(t);break;case"translated":this._translatedCarousel$.next(t)}}enter(t){[t].concat(this._states.tags[t]||[]).forEach(t=>{void 0===this._states.current[t]&&(this._states.current[t]=0),this._states.current[t]++})}leave(t){[t].concat(this._states.tags[t]||[]).forEach(t=>{(0===this._states.current[t]||this._states.current[t])&&this._states.current[t]--})}register(t){t.type===NO.State&&(this._states.tags[t.name]=this._states.tags[t.name]?this._states.tags[t.name].concat(t.tags):t.tags,this._states.tags[t.name]=this._states.tags[t.name].filter((e,n)=>this._states.tags[t.name].indexOf(e)===n))}_suppress(t){t.forEach(t=>{this._supress[t]=!0})}_release(t){t.forEach(t=>{delete this._supress[t]})}pointer(t){const e={x:null,y:null};return(t=(t=t.originalEvent||t||window.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(e.x=t.pageX,e.y=t.pageY):(e.x=t.clientX,e.y=t.clientY),e}_isNumeric(t){return!isNaN(parseFloat(t))}_isNumberOrBoolean(t){return this._isNumeric(t)||"boolean"==typeof t}_isNumberOrString(t){return this._isNumeric(t)||"string"==typeof t}_isStringOrBoolean(t){return"string"==typeof t||"boolean"==typeof t}difference(t,e){return{x:t.x-e.x,y:t.y-e.y}}};return t.\u0275fac=function(e){return new(e||t)(Qt(AO))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),RO=(()=>{let t=class{constructor(t){this.carouselService=t,this._initialized=!1,this._pages=[],this._navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}},this._dotsData={disabled:!1,dots:[]},this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const t=$(this.carouselService.getInitializedState().pipe(Sm(t=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),this.carouselService.getChangedState().pipe(Im(t=>"position"===t.property.name),Sm(t=>{this.update()})),this.carouselService.getRefreshedState().pipe(Sm(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})));this.navSubscription=t.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let t,e,n;const r=this.carouselService.clones().length/2,i=r+this.carouselService.items().length,o=this.carouselService.maximum(!0),s=[],a=this.carouselService.settings;let l=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(l=+l,"page"!==a.slideBy&&(a.slideBy=Math.min(+a.slideBy,a.items)),a.dots||"page"===a.slideBy)for(t=r,e=0,n=0;t=l||0===e){if(s.push({start:Math.min(o,t-r),end:t-r+l-1}),Math.min(o,t-r)===o)break;e=0,++n}e+=this.carouselService.mergers(this.carouselService.relative(t))}this._pages=s}draw(){let t;const e=this.carouselService.settings,n=this.carouselService.items(),r=n.length<=e.items;if(this._navData.disabled=!e.nav||r,this._dotsData.disabled=!e.dots||r,e.dots)if(t=this._pages.length-this._dotsData.dots.length,e.dotsData&&0!==t)this._dotsData.dots=[],n.forEach(t=>{this._dotsData.dots.push({active:!1,id:"dot-"+t.id,innerContent:t.dotContent,showInnerContent:!0})});else if(t>0){const e=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let n=0;n=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let t;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(t=>{!0===t.active&&(t.active=!1)}),t=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[t].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const t=this.carouselService.relative(this.carouselService.current());let e;const n=this._pages.filter((e,n)=>e.start<=t&&e.end>=t).pop();return e=this._pages.findIndex(t=>t.start===n.start&&t.end===n.end),e}_getPosition(t){let e,n;const r=this.carouselService.settings;return"page"===r.slideBy?(e=this._current(),n=this._pages.length,t?++e:--e,e=this._pages[(e%n+n)%n].start):(e=this.carouselService.relative(this.carouselService.current()),n=this.carouselService.items().length,t?e+=+r.slideBy:e-=+r.slideBy),e}next(t){this.carouselService.to(this._getPosition(!0),t)}prev(t){this.carouselService.to(this._getPosition(!1),t)}to(t,e,n){let r;!n&&this._pages.length?(r=this._pages.length,this.carouselService.to(this._pages[(t%r+r)%r].start,e)):this.carouselService.to(t,e)}moveByDot(t){const e=this._dotsData.dots.findIndex(e=>t===e.id);this.to(e,this.carouselService.settings.dotsSpeed)}toSlideById(t){const e=this.carouselService.slidesData.findIndex(e=>e.id===t&&!1===e.isCloned);-1!==e&&e!==this.carouselService.current()&&this.carouselService.to(this.carouselService.relative(e),!1)}};return t.\u0275fac=function(e){return new(e||t)(Qt(DO))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const MO=new Ut("WindowToken");class LO{get nativeWindow(){throw new Error("Not implemented.")}}const FO=[{provide:LO,useClass:(()=>{let t=class extends LO{constructor(){super()}get nativeWindow(){return window}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})()},{provide:MO,useFactory:function(t,e){return Bh(e)?t.nativeWindow:{setTimeout:(t,e)=>{},clearTimeout:t=>{}}},deps:[LO,kc]}],jO=new Ut("DocumentToken");class UO{get nativeDocument(){throw new Error("Not implemented.")}}const VO=[{provide:UO,useClass:(()=>{let t=class extends UO{constructor(){super()}get nativeDocument(){return document}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})()},{provide:jO,useFactory:function(t,e){return Bh(e)?t.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[UO,kc]}];let BO=(()=>{let t=class{constructor(t,e,n){this.carouselService=t,this._timeout=null,this._paused=!1,this.winRef=e,this.docRef=n,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const t=$(this.carouselService.getInitializedState().pipe(Sm(()=>{this.carouselService.settings.autoplay&&this.play()})),this.carouselService.getChangedState().pipe(Sm(t=>{this._handleChangeObservable(t)})),this.carouselService.getResizedState().pipe(Sm(()=>{this.carouselService.settings.autoplay?this.play():this.stop()})));this.autoplaySubscription=t.subscribe(()=>{})}play(t,e){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),this.carouselService.is("rotating")||(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(t,e){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!t,this.winRef.setTimeout(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(e||this.carouselService.settings.autoplaySpeed)},t||this.carouselService.settings.autoplayTimeout)}_setAutoPlayInterval(t){this._timeout=this._getNextTimeout(t)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(t){"settings"===t.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===t.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){Cm("translated").pipe(lb(t=>this.carouselService.getTranslatedState()),Sb(),Im(()=>this._isArtificialAutoplayTimeout),Sm(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}};return t.\u0275fac=function(e){return new(e||t)(Qt(DO),Qt(MO),Qt(jO))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),HO=(()=>{let t=class{constructor(t){this.carouselService=t,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const t=$(this.carouselService.getInitializedState().pipe(Sm(()=>{const t=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(e=>e.load=!!t)})),this.carouselService.getChangeState(),this.carouselService.getResizedState()).pipe(Sm(t=>this._defineLazyLoadSlides(t)));this.lazyLoadSubscription=t.subscribe(()=>{})}_defineLazyLoadSlides(t){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(t.property&&"position"===t.property.name||"initialized"===t||"resized"===t)){const e=this.carouselService.settings,n=this.carouselService.clones().length;let r=e.center&&Math.ceil(e.items/2)||e.items,i=e.center&&-1*r||0,o=(t.property&&void 0!==t.property.value?t.property.value:this.carouselService.current())+i;for(e.lazyLoadEager>0&&(r+=e.lazyLoadEager,e.loop&&(o-=e.lazyLoadEager,r++));i++this._load(t)),o++}}_load(t){this.carouselService.slidesData[t].load||(this.carouselService.slidesData[t].load=!0)}};return t.\u0275fac=function(e){return new(e||t)(Qt(DO))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),zO=(()=>{let t=class{constructor(t){this.carouselService=t,this.swapping=!0,this.previous=void 0,this.next=void 0,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const t=this.carouselService.getChangeState().pipe(Sm(t=>{"position"===t.property.name&&(this.previous=this.carouselService.current(),this.next=t.property.value)})),e=$(this.carouselService.getDragState(),this.carouselService.getDraggedState(),this.carouselService.getTranslatedState()).pipe(Sm(t=>this.swapping="translated"===t)),n=$(t,this.carouselService.getTranslateState().pipe(Sm(t=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),e).pipe();this.animateSubscription=n.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let t;this.carouselService.speed(0);const e=this.carouselService.slidesData[this.previous],n=this.carouselService.slidesData[this.next],r=this.carouselService.settings.animateIn,i=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(i&&(t=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(n=>{n.id===e.id&&(n.left=t+"px",n.isAnimated=!0,n.isDefAnimatedOut=!0,n.isCustomAnimatedOut=!0)})),r&&this.carouselService.slidesData.forEach(t=>{t.id===n.id&&(t.isAnimated=!0,t.isDefAnimatedIn=!0,t.isCustomAnimatedIn=!0)}))}clear(t){this.carouselService.slidesData.forEach(e=>{e.id===t&&(e.left="",e.isAnimated=!1,e.isDefAnimatedOut=!1,e.isCustomAnimatedOut=!1,e.isDefAnimatedIn=!1,e.isCustomAnimatedIn=!1,e.classes=this.carouselService.setCurSlideClasses(e))}),this.carouselService.onTransitionEnd()}};return t.\u0275fac=function(e){return new(e||t)(Qt(DO))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),qO=(()=>{let t=class{constructor(t){this.carouselService=t,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const t=$(this.carouselService.getInitializedState().pipe(Sm(t=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(t=>t.heightState="full")})),this.carouselService.getChangedState().pipe(Sm(t=>{this.carouselService.settings.autoHeight&&"position"===t.property.name&&this.update()})),this.carouselService.getRefreshedState().pipe(Sm(t=>{this.carouselService.settings.autoHeight&&this.update()})));this.autoHeightSubscription=t.subscribe(()=>{})}update(){const t=this.carouselService.settings.items;let e=this.carouselService.current(),n=e+t;this.carouselService.settings.center&&(e=t%2==1?e-(t-1)/2:e-t/2,n=t%2==1?e+t:e+t+1),this.carouselService.slidesData.forEach((t,r)=>{t.heightState=r>=e&&r{let t=class{constructor(t,e,n){this.carouselService=t,this.route=e,this.router=n,this.spyDataStreams(),this.route||(this.route={fragment:Cm("no route").pipe(gb(1))}),this.router||(this.router={navigate:(t,e)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const t=$(this.carouselService.getInitializedState().pipe(Sm(()=>this.listenToRoute())),this.carouselService.getChangedState().pipe(Sm(t=>{if(this.carouselService.settings.URLhashListener&&"position"===t.property.name){const t=this.carouselService.current(),e=this.carouselService.slidesData[t].hashFragment;if(!e||e===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:e,relativeTo:this.route})}})));this.hashSubscription=t.subscribe(()=>{})}rewind(t){const e=this.carouselService.slidesData.findIndex(e=>e.hashFragment===t&&!1===e.isCloned);-1!==e&&e!==this.carouselService.current()&&this.carouselService.to(this.carouselService.relative(e),!1)}listenToRoute(){this.route.fragment.pipe(BC("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(t=>{this.currentHashFragment=t,this.rewind(t)})}};return t.\u0275fac=function(e){return new(e||t)(Qt(DO),Qt(e_,8),Qt(uw,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),GO=0,$O=(()=>{let t=class{constructor(t){this.tplRef=t,this.id="owl-slide-"+GO++,this._dataMerge=1,this.width=0,this.dotContent="",this.dataHash=""}set dataMerge(t){this._dataMerge=this.isNumeric(t)?t:1}get dataMerge(){return this._dataMerge}isNumeric(t){return!isNaN(parseFloat(t))}};return t.\u0275fac=function(e){return new(e||t)(Ns(_l))},t.\u0275dir=_e({type:t,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",width:"width",dotContent:"dotContent",dataHash:"dataHash",dataMerge:"dataMerge"}}),t})(),KO=(()=>{let t=class{constructor(t,e,n,r,i,o,s,a,l,c,u,h){this.el=t,this.resizeService=e,this.carouselService=n,this.navigationService=r,this.autoplayService=i,this.lazyLoadService=o,this.animateService=s,this.autoHeightService=a,this.hashService=l,this.logger=c,this.changeDetectorRef=u,this.translated=new Zl,this.dragging=new Zl,this.change=new Zl,this.changed=new Zl,this.initialized=new Zl,this.slidesData=[],this.carouselLoaded=!1,this.docRef=h}onVisibilityChange(t){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":this.autoplayService.play();break;case"hidden":this.autoplayService.stop()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngAfterContentChecked(){}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe(Sm(t=>{t.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,t.toArray(),this.options),this.carouselService.initialize(t.toArray())):(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered"))})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe(Sm(t=>{this.owlDOMData=t.owlDOMData,this.stageData=t.stageData,this.slidesData=t.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=t.navData,this.dotsData=t.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe(Sm(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe(Sm(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe(Sm(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe(lb(t=>$(Cm(t).pipe(Im(()=>"position"===t.property.name),lb(()=>B(this.slidesData)),BC(t.property.value),gb(this.carouselService.settings.items),F(t=>{const e=this.carouselService.clonedIdPrefix,n=t.id.indexOf(e)>=0?t.id.slice(e.length):t.id;return Object.assign(Object.assign({},t),{id:n,isActive:!0})}),qb(hO,[]),F(e=>({slides:e,startPosition:this.carouselService.relative(t.property.value)}))))),Sm(t=>{this.gatherTranslatedData(),this.changed.emit(t.slides.length?t:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe(Sm(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),lb(()=>this.carouselService.getDraggedState().pipe(F(()=>!!this.carouselService.is("animating")))),lb(t=>t?this.carouselService.getTranslatedState().pipe(Sb()):Cm("not animating")),Sm(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=$(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe(Im(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),function(t,e=Mm){var n;const r=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new dO(r,e))}(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(t){this.carouselLoaded&&this.navigationService.moveByDot(t)}to(t){this.carouselLoaded&&this.navigationService.toSlideById(t)}gatherTranslatedData(){let t;const e=this.carouselService.clonedIdPrefix,n=this.slidesData.filter(t=>!0===t.isActive).map(t=>({id:t.id.indexOf(e)>=0?t.id.slice(e.length):t.id,width:t.width,marginL:t.marginL,marginR:t.marginR,center:t.isCentered}));t=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:t,slides:n}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}};return t.\u0275fac=function(e){return new(e||t)(Ns(Xa),Ns(TO),Ns(DO),Ns(RO),Ns(BO),Ns(HO),Ns(zO),Ns(qO),Ns(WO),Ns(AO),Ns(Qo),Ns(jO))},t.\u0275cmp=fe({type:t,selectors:[["owl-carousel-o"]],contentQueries:function(t,e,n){var r;1&t&&fc(n,$O,!1),2&t&&uc(r=gc())&&(e.slides=r)},hostBindings:function(t,e){1&t&&qs("visibilitychange",(function(t){return e.onVisibilityChange(t)}),!1,Wn)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[Ga([RO,BO,DO,HO,zO,qO,WO])],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(t,e){1&t&&(Ls(0,"div",0,1),qs("mouseover",(function(){return e.startPausing()}))("mouseleave",(function(){return e.startPlayML()}))("touchstart",(function(){return e.startPausing()}))("touchend",(function(){return e.startPlayTE()})),Os(2,mO,2,6,"div",2),Os(3,_O,6,15,"ng-container",3),Fs()),2&t&&(Rs("ngClass",ql(3,wO,null==e.owlDOMData?null:e.owlDOMData.rtl,null==e.owlDOMData?null:e.owlDOMData.isLoaded,null==e.owlDOMData?null:e.owlDOMData.isResponsive,null==e.owlDOMData?null:e.owlDOMData.isMouseDragable,null==e.owlDOMData?null:e.owlDOMData.isGrab)),wi(2),Rs("ngIf",e.carouselLoaded),wi(1),Rs("ngIf",e.slides.toArray().length))},directives:function(){return[yh,Eh,QO,wh]},styles:[".owl-theme[_ngcontent-%COMP%] { display: block; }"]}),t})(),QO=(()=>{let t=class{constructor(t,e,n,r,i){this.zone=t,this.el=e,this.renderer=n,this.carouselService=r,this.animateService=i,this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this._oneDragMove$=new S,this.bindOneMouseTouchMove=t=>{this._oneMouseTouchMove(t)},this.bindOnDragMove=t=>{this._onDragMove(t)},this.bindOnDragEnd=t=>{this._onDragEnd(t)},this._oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()}}onMouseDown(t){this.owlDraggable.isMouseDragable&&this._onDragStart(t)}onTouchStart(t){this.owlDraggable.isTouchDragable&&this._onDragStart(t)}onTouchCancel(t){this._onDragEnd(t)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe(Sb()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}_onDragStart(t){let e=null;3!==t.which&&(e=this._prepareDragging(t),this._drag.time=(new Date).getTime(),this._drag.target=t.target,this._drag.stage.start=e,this._drag.stage.current=e,this._drag.pointer=this._pointer(t),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(t){const e=this._difference(this._drag.pointer,this._pointer(t));this.listenerATag&&this.listenerATag(),Math.abs(e.x)<3&&Math.abs(e.y)<3&&this._is("valid")||Math.abs(e.x)<3&&Math.abs(e.x)!1))}_onDragMove(t){let e;const n=this.carouselService.defineNewCoordsDrag(t,this._drag);!1!==n&&(e=n,t.preventDefault(),this._drag.stage.current=e,this._animate(e.x-this._drag.stage.start.x))}_animate(t){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${t}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(t){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(t),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(t){return this.carouselService.prepareDragging(t)}_finishDragging(t){this.carouselService.finishDragging(t,this._drag,this._oneClickHandler)}_pointer(t){return this.carouselService.pointer(t)}_difference(t,e){return this.carouselService.difference(t,e)}_is(t){return this.carouselService.is(t)}_enter(t){this.carouselService.enter(t)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(t){this.animateService.clear(t)}};return t.\u0275fac=function(e){return new(e||t)(Ns(Hc),Ns(Xa),Ns(tl),Ns(DO),Ns(zO))},t.\u0275cmp=fe({type:t,selectors:[["owl-stage"]],hostBindings:function(t,e){1&t&&qs("mousedown",(function(t){return e.onMouseDown(t)}))("touchstart",(function(t){return e.onTouchStart(t)}))("touchcancel",(function(t){return e.onTouchCancel(t)}))("dragstart",(function(){return e.onDragStart()}))("selectstart",(function(){return e.onSelectStart()}))},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(Ls(0,"div"),Ls(1,"div",0),qs("transitionend",(function(){return e.onTransitionEnd()})),Os(2,SO,3,9,"ng-container",1),Fs(),Fs()),2&t&&(wi(1),Rs("ngStyle",ql(2,kO,e.stageData.width+"px",e.stageData.transform,e.stageData.transition,e.stageData.paddingL?e.stageData.paddingL+"px":"",e.stageData.paddingR?e.stageData.paddingR+"px":"")),wi(1),Rs("ngForOf",e.slidesData))},directives:[Ah,wh,yh,Eh,Nh],encapsulation:2,data:{animation:[wd("autoHeight",[Sd("nulled",xd({height:0})),Sd("full",xd({height:"*"})),kd("full => nulled",[Cd("700ms 350ms")]),kd("nulled => full",[Cd(350)])])]}}),t})(),XO=(()=>{let t=class{};return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[FO,TO,VO,AO],imports:[[Vh]]}),t})();const YO=["plenaryCollapsible"],JO=["track1Collapsible"],ZO=["track2Collapsible"],tA=["track3Collapsible"],eA=["track4Collapsible"],nA=["track5Collapsible"],rA=["track6Collapsible"],iA=["track7Collapsible"],oA=["track8Collapsible"],sA=["track9Collapsible"],aA=["track10Collapsible"],lA=["sponsorCollapsible"];function cA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function uA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs().showPlenaryCollapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function hA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs().navigateToRoom(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,cA,2,0,"p",57),Fs(),Os(8,uA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function dA(t,e){1&t&&(Us(0),Os(1,hA,9,7,"ng-template",50),Vs())}function pA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function fA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack1Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function gA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,pA,2,0,"p",57),Fs(),Os(8,fA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function mA(t,e){1&t&&(Us(0),Os(1,gA,9,7,"ng-template",50),Vs())}function vA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",6),Ca(3," Hybrid Events Breakout "),Fs(),Fs(),Ls(4,"div",43),Ls(5,"div",44),Ls(6,"span",45),qs("click",(function(){return Je(t),As(10).prev()})),Ls(7,"div",10),js(8,"mdb-icon",11),Fs(),Fs(),Ls(9,"owl-carousel-o",12,62),Os(11,mA,2,0,"ng-container",14),Fs(),Ls(12,"span",47),qs("click",(function(){return Je(t),As(10).next()})),Ls(13,"div",10),js(14,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(9),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track1SlideStore)}}function bA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function yA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack2Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function _A(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,bA,2,0,"p",57),Fs(),Os(8,yA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function wA(t,e){1&t&&(Us(0),Os(1,_A,9,7,"ng-template",50),Vs())}function CA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",6),Ca(3," NOW Online Events Breakout "),Fs(),Fs(),Ls(4,"div",43),Ls(5,"div",44),Ls(6,"span",45),qs("click",(function(){return Je(t),As(10).prev()})),Ls(7,"div",10),js(8,"mdb-icon",11),Fs(),Fs(),Ls(9,"owl-carousel-o",12,63),Os(11,wA,2,0,"ng-container",14),Fs(),Ls(12,"span",47),qs("click",(function(){return Je(t),As(10).next()})),Ls(13,"div",10),js(14,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(9),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track2SlideStore)}}function EA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function xA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack3Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function SA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,EA,2,0,"p",57),Fs(),Os(8,xA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function kA(t,e){1&t&&(Us(0),Os(1,SA,9,7,"ng-template",50),Vs())}function TA(t,e){if(1&t){const t=Bs();Ls(0,"div",64),Ls(1,"div",5),Ls(2,"p",65),Ca(3," Featured Sponsor - Mischief Makers "),Fs(),Fs(),Ls(4,"div",43),Ls(5,"div",44),Ls(6,"span",45),qs("click",(function(){return Je(t),As(10).prev()})),Ls(7,"div",10),js(8,"mdb-icon",11),Fs(),Fs(),Ls(9,"owl-carousel-o",12,66),Os(11,kA,2,0,"ng-container",14),Fs(),Ls(12,"span",47),qs("click",(function(){return Je(t),As(10).next()})),Ls(13,"div",10),js(14,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(9),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track3SlideStore)}}function IA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function OA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack4Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function AA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,IA,2,0,"p",57),Fs(),Os(8,OA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function NA(t,e){1&t&&(Us(0),Os(1,AA,9,7,"ng-template",50),Vs())}function PA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ca(3," Track 4 "),Fs(),Fs(),Ls(4,"div",7),Ls(5,"div",8),Ls(6,"span",45),qs("click",(function(){return Je(t),As(10).prev()})),Ls(7,"div",10),js(8,"mdb-icon",11),Fs(),Fs(),Ls(9,"owl-carousel-o",12,67),Os(11,NA,2,0,"ng-container",14),Fs(),Ls(12,"span",47),qs("click",(function(){return Je(t),As(10).next()})),Ls(13,"div",10),js(14,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(9),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track4SlideStore)}}function DA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function RA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack5Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function MA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",69),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Os(7,DA,2,0,"p",57),Fs(),Os(8,RA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function LA(t,e){1&t&&(Us(0),Os(1,MA,9,7,"ng-template",50),Vs())}function FA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 5"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,68),Os(12,LA,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track5SlideStore)}}function jA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function UA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack6Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function VA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,jA,2,0,"p",57),Fs(),Os(8,UA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function BA(t,e){1&t&&(Us(0),Os(1,VA,9,7,"ng-template",50),Vs())}function HA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 6"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,70),Os(12,BA,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track6SlideStore)}}function zA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function qA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack7Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function WA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,zA,2,0,"p",57),Fs(),Os(8,qA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function GA(t,e){1&t&&(Us(0),Os(1,WA,9,7,"ng-template",50),Vs())}function $A(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 7"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,71),Os(12,GA,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track7SlideStore)}}function KA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function QA(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack8Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function XA(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,KA,2,0,"p",57),Fs(),Os(8,QA,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function YA(t,e){1&t&&(Us(0),Os(1,XA,9,7,"ng-template",50),Vs())}function JA(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 8"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,72),Os(12,YA,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track8SlideStore)}}function ZA(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function tN(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack9Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function eN(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,ZA,2,0,"p",57),Fs(),Os(8,tN,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function nN(t,e){1&t&&(Us(0),Os(1,eN,9,7,"ng-template",50),Vs())}function rN(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 9"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,73),Os(12,nN,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track9SlideStore)}}function iN(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function oN(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showTrack10Collapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function sN(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs(2).navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,iN,2,0,"p",57),Fs(),Os(8,oN,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function aN(t,e){1&t&&(Us(0),Os(1,sN,9,7,"ng-template",50),Vs())}function lN(t,e){if(1&t){const t=Bs();Ls(0,"div",4),Ls(1,"div",5),Ls(2,"p",65),Ls(3,"strong"),Ca(4,"Track 10"),Fs(),Fs(),Fs(),Ls(5,"div",7),Ls(6,"div",8),Ls(7,"span",45),qs("click",(function(){return Je(t),As(11).prev()})),Ls(8,"div",10),js(9,"mdb-icon",11),Fs(),Fs(),Ls(10,"owl-carousel-o",12,74),Os(12,aN,2,0,"ng-container",14),Fs(),Ls(13,"span",47),qs("click",(function(){return Je(t),As(11).next()})),Ls(14,"div",10),js(15,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(10),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.track10SlideStore)}}function cN(t,e){1&t&&(Ls(0,"p",59),Ca(1,"Event Ended"),Fs())}function uN(t,e){if(1&t){const t=Bs();Ls(0,"div",60),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs().showSponsorCollapsible(e.event_name,e.event_description,e.event_type)})),js(1,"mdb-icon",61),Fs()}}function hN(t,e){if(1&t){const t=Bs();Ls(0,"div",51),js(1,"img",52),Ls(2,"div",53),Ls(3,"div",54),Ca(4),Fs(),Fs(),Ls(5,"div",55),qs("click",(function(){Je(t);const e=Qs().$implicit;return Qs().navigateToBreakout(e.event_type,e.event_name)})),Fs(),Ls(6,"div",56),Os(7,cN,2,0,"p",57),Fs(),Os(8,uN,2,0,"div",58),Fs()}if(2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status&&12399!=t.event_id)}}function dN(t,e){1&t&&(Us(0),Os(1,hN,9,7,"ng-template",50),Vs())}let pN=(()=>{class t{constructor(t,e,n,r,i){this.authService=t,this.eventService=e,this.localStorageService=n,this.router=r,this.chatService=i,this.sponsorBannerStore=[],this.allCollapsible=[],this.dragged=!1,this.down=!1,this.clicked=!1,this.carouselOptions={loop:!0,nav:!1,margin:10,mouseDrag:!0,touchDrag:!0,pullDrag:!0,stagePadding:40,dots:!1,navSpeed:700,responsive:{0:{items:2},400:{items:2},740:{items:5},940:{items:5}}},this.plenarySlideStore=[],this.track1SlideStore=[],this.track2SlideStore=[],this.track3SlideStore=[],this.track4SlideStore=[],this.track5SlideStore=[],this.track6SlideStore=[],this.track7SlideStore=[],this.track8SlideStore=[],this.track9SlideStore=[],this.track10SlideStore=[],this.sponsorSlideStore=[]}ngOnInit(){}ngAfterViewInit(){this.allCollapsible=[this.plenaryCollapsible,this.track1Collapsible,this.track2Collapsible,this.track3Collapsible,this.track4Collapsible,this.track5Collapsible,this.track6Collapsible,this.track7Collapsible,this.track8Collapsible,this.track9Collapsible,this.track10Collapsible],this.eventService.getAllSponsors().then(t=>{let e;for(let n=0;n{let e;this.plenarySlideStore=[],this.sponsorSlideStore=[],this.track1SlideStore=[],this.track2SlideStore=[],this.track3SlideStore=[],this.track4SlideStore=[],this.track5SlideStore=[],this.track6SlideStore=[],this.track7SlideStore=[],this.track8SlideStore=[],this.track9SlideStore=[],this.track10SlideStore=[],this.sponsorSlideStore=[];let n={docs:[]};n.docs=cO.a.sortBy(t.docs,t=>{if(0!=Object.keys(t.data()).length)return console.log(t.data()),[t.data().start_time.seconds,t.data().end_time.seconds,t.data().track]}),t=n;for(let r=0;r(new Date).getTime()?(e.status="LIVE",this.plenarySlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.plenarySlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.plenarySlideStore.push(e)):"sponsor-presentation"===e.event_type?(console.log(e),1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.sponsorSlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.sponsorSlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.sponsorSlideStore.push(e))):null!=e.track&&(1===e.track&&(console.log(e),1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track1SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track1SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track1SlideStore.push(e))),2===e.track&&(1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track2SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track2SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track2SlideStore.push(e))),3===e.track&&(1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track3SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track3SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track3SlideStore.push(e))),4===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track4SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track4SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track4SlideStore.push(e)):5===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track5SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track5SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track5SlideStore.push(e)):6===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track6SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track6SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track6SlideStore.push(e)):7===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track7SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track7SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track7SlideStore.push(e)):8===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track8SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track8SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track8SlideStore.push(e)):9===e.track?1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track9SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track9SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track9SlideStore.push(e)):10===e.track&&(1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds>(new Date).getTime()?(e.status="LIVE",this.track10SlideStore.push(e)):1e3*e.start_time.seconds<(new Date).getTime()&&1e3*e.end_time.seconds<(new Date).getTime()?(e.status="ENDED",this.track10SlideStore.push(e)):1e3*n.start_time.seconds>(new Date).getTime()&&(e.status=ih(new Date(1e3*n.start_time.seconds),"h:mm a","en"),this.track10SlideStore.push(e)))),r+1==t.docs.length){if(this.plenarySlideStore.length>=1&&this.plenarySlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.plenarySlideStore.length;e<5;e++)this.plenarySlideStore.push(t)}if(this.sponsorSlideStore.length>=1&&this.sponsorSlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.sponsorSlideStore.length;e<5;e++)this.sponsorSlideStore.push(t)}if(this.track1SlideStore.length>=1&&this.track1SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track1SlideStore.length;e<5;e++)this.track1SlideStore.push(t)}if(this.track2SlideStore.length>=1&&this.track2SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track2SlideStore.length;e<5;e++)this.track2SlideStore.push(t)}if(this.track3SlideStore.length>=1&&this.track3SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track3SlideStore.length;e<5;e++)this.track3SlideStore.push(t)}if(this.track4SlideStore.length>=1&&this.track4SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track4SlideStore.length;e<5;e++)this.track4SlideStore.push(t)}if(this.track5SlideStore.length>=1&&this.track5SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track5SlideStore.length;e<5;e++)this.track5SlideStore.push(t)}if(this.track6SlideStore.length>=1&&this.track6SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track6SlideStore.length;e<5;e++)this.track6SlideStore.push(t)}if(this.track7SlideStore.length>=1&&this.track7SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track7SlideStore.length;e<5;e++)this.track7SlideStore.push(t)}if(this.track8SlideStore.length>=1&&this.track8SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track8SlideStore.length;e<5;e++)this.track8SlideStore.push(t)}if(this.track9SlideStore.length>=1&&this.track9SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track9SlideStore.length;e<5;e++)this.track9SlideStore.push(t)}if(this.track10SlideStore.length>=1&&this.track10SlideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.track10SlideStore.length;e<5;e++)this.track10SlideStore.push(t)}}}this.plenarySlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.sponsorSlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track1SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),console.log(this.track2SlideStore),this.track2SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),console.log(this.track2SlideStore),this.track3SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track4SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track5SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track6SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track7SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track8SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track9SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1),this.track10SlideStore.sort((t,e)=>"LIVE"==t.status&&"ENDED"==e.status?-1:"ENDED"==t.status&&"LIVE"==e.status?1:"LIVE"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=e.status||"LIVE"==t.status&&"ENDED"==t.status?"ENDED"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status||"LIVE"==e.status&&"ENDED"==e.status?"LIVE"!=t.status&&"LIVE"!=e.status?0:void 0:-1:1:-1:1);for(let r=0;r{let e=t[0].payload.doc.data();this.eventService.getSponsorById(e.sponsor_id).then(t=>{let e=t[0].payload.doc.data();this.router.navigate(["sponsor-microsite",e.sponsor_name])})}):"livewebinar"===t||"video-on-demand"==t?this.router.navigate(["tracks-breakout",e]):"pre-recorded"===t?this.router.navigate([t,e]):"zoom"==t?this.eventService.getEvent(e).then(t=>{let e=t[0].payload.doc.data();window.open(e.zoom_link,"_blank")}):"keynote"==t?this.navigateToRoom("keynote",e):"sponsor-track"===t&&this.eventService.getEvent(e).then(t=>{let e=t[0].payload.doc.data();this.eventService.getSponsorById(e.sponsor_id).then(t=>{console.log(t);let e=t[0].payload.doc.data();console.log(e),this.router.navigate(["sponsor-microsite",e.sponsor_name])})})}navigateSponsor(t){this.router.navigate(["sponsor-microsite",t.sponsor_name])}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC),Ns(uO),Ns(Kw),Ns(uw),Ns(nC))},t.\u0275cmp=fe({type:t,selectors:[["app-dashboard"]],viewQuery:function(t,e){var n;1&t&&(hc(YO,!0),hc(JO,!0),hc(ZO,!0),hc(tA,!0),hc(eA,!0),hc(nA,!0),hc(rA,!0),hc(iA,!0),hc(oA,!0),hc(sA,!0),hc(aA,!0),hc(lA,!0)),2&t&&(uc(n=gc())&&(e.plenaryCollapsible=n.first),uc(n=gc())&&(e.track1Collapsible=n.first),uc(n=gc())&&(e.track2Collapsible=n.first),uc(n=gc())&&(e.track3Collapsible=n.first),uc(n=gc())&&(e.track4Collapsible=n.first),uc(n=gc())&&(e.track5Collapsible=n.first),uc(n=gc())&&(e.track6Collapsible=n.first),uc(n=gc())&&(e.track7Collapsible=n.first),uc(n=gc())&&(e.track8Collapsible=n.first),uc(n=gc())&&(e.track9Collapsible=n.first),uc(n=gc())&&(e.track10Collapsible=n.first),uc(n=gc())&&(e.sponsorCollapsible=n.first))},decls:226,vars:51,consts:[[2,"height","95px"],[1,"carousel","slide","carousel-fade",3,"animation"],["src","../../assets/banner.webp",1,"d-block","w-100",2,"object-fit","cover","height","40vh"],[1,"row","col-12","primaryColor"],[1,"container","col-12",2,"margin-top","20px"],[1,"row","col-12"],[1,"my-4","h3","black-text",2,"margin-left","1rem"],[1,"row","carousel-wrap"],[1,"col-12","slider"],["role","button",1,"handle","handlePrev","active","view","overlay","d-none","d-md-block",3,"click"],[1,"mask","flex-center","rgba-black-strong"],["fas","","icon","angle-left","size","2x",1,"white-text"],[3,"options"],["sessionCar",""],[4,"ngFor","ngForOf"],["role","button",1,"handle","handleNext","active","view","overlay","d-none","d-md-block",3,"click"],["fas","","icon","angle-right","size","2x",1,"white-text"],["mdbCollapse","",2,"width","100%",3,"isCollapsed"],["plenaryCollapsible","bs-collapse"],[2,"height","30px"],[1,"eventInfo",2,"background-image","url(../../assets/preview.png)"],[1,"text-white","rgba-stylish-strong","py-5","px-5"],[1,"py-5"],[1,"h3","white-text"],[1,"mb-4","pb-2","col-6"],["size","md","mdbBtn","","rounded","true","mdbWavesEffect","",1,"mt-2","waves-effect","z-depth-1",2,"background-color","#ff6600",3,"click"],[1,"icons","white-text","top-right"],["type","button","id","closeButton",3,"click"],["fas","","icon","times",1,"mr-2"],["style","margin-top: 20px","class","container col-12",4,"ngIf"],["track1Collapsible","bs-collapse"],["type","button",3,"click"],["track2Collapsible","bs-collapse"],["style","margin-top: 40px; background-color: #262425; padding-bottom: 2rem;","class","container col-12",4,"ngIf"],["track3Collapsible","bs-collapse"],["track4Collapsible","bs-collapse"],["track5Collapsible","bs-collapse"],["track6Collapsible","bs-collapse"],["size","md","mdbBtn","","rounded","true","lass","mt-2 waves-effect z-depth-1","mdbWavesEffect","",2,"background-color","#ff6600",3,"click"],["track7Collapsible","bs-collapse"],["track8Collapsible","bs-collapse"],["track9Collapsible","bs-collapse"],["track10Collapsible","bs-collapse"],[1,"row","col-12","carousel-wrap"],[1,"col-md-12","col-lg-12","col-xl-12","slider"],["role","button",1,"handle","handlePrev","active","view","overlay",3,"click"],["sponsorCarousel",""],["role","button",1,"handle","handleNext","active","view","overlay",3,"click"],["sponsorCollapsible","bs-collapse"],[2,"height","56px"],["carouselSlide",""],[1,"view","overlay",3,"ngClass"],[1,"z-depth-4",3,"src","title"],[2,"position","absolute","top","8px","right","0px","color","white","font-size","small","background-color","red","font-weight","900"],[1,"mx-1"],[1,"mask","flex-center",3,"click"],[3,"ngClass"],["class","white-text",4,"ngIf"],["class","viewMore mask flex-center rgba-black-strong","style","cursor: pointer",3,"click",4,"ngIf"],[1,"white-text"],[1,"viewMore","mask","flex-center","rgba-black-strong",2,"cursor","pointer",3,"click"],["fas","","icon","angle-down","size","2x",1,"white-text"],["track1Carousel",""],["track2Carousel",""],[1,"container","col-12",2,"margin-top","40px","background-color","#262425","padding-bottom","2rem"],[1,"my-4","h3","white-text",2,"margin-left","1rem"],["track3Carousel",""],["track4Carousel",""],["track5Carousel",""],[2,"cursor","pointer",3,"ngClass","click"],["track6Carousel",""],["track7Carousel",""],["track8Carousel",""],["track9Carousel",""],["track10Carousel",""]],template:function(t,e){if(1&t){const t=Bs();js(0,"div",0),Ls(1,"mdb-carousel",1),Ls(2,"mdb-carousel-item"),js(3,"img",2),Fs(),Fs(),Ls(4,"div",3),Ls(5,"div",4),Ls(6,"div",5),Ls(7,"p",6),Ca(8," Keynote "),Fs(),Fs(),Ls(9,"div",7),Ls(10,"div",8),Ls(11,"span",9),qs("click",(function(){return Je(t),As(15).prev()})),Ls(12,"div",10),js(13,"mdb-icon",11),Fs(),Fs(),Ls(14,"owl-carousel-o",12,13),Os(16,dA,2,0,"ng-container",14),Fs(),Ls(17,"span",15),qs("click",(function(){return Je(t),As(15).next()})),Ls(18,"div",10),js(19,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs(),Ls(20,"div",17,18),js(22,"div",19),Ls(23,"mdb-card",20),Ls(24,"div",21),Ls(25,"div",22),Ls(26,"h5",23),Ca(27),Fs(),Ls(28,"p",24),Ca(29),Fs(),Ls(30,"button",25),qs("click",(function(){return e.navigateToRoom(e.plenaryEventType,e.plenaryEventName)})),Ca(31," Watch Now "),Fs(),Ls(32,"div",26),Ls(33,"a",27),qs("click",(function(){return Je(t),As(21).toggle()})),js(34,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(35,vA,15,2,"div",29),Ls(36,"div",17,30),js(38,"div",19),Ls(39,"mdb-card",20),Ls(40,"div",21),Ls(41,"div",22),Ls(42,"h5",23),Ca(43),Fs(),Ls(44,"p",24),Ca(45),Fs(),Ls(46,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track1BreakoutEventType,e.track1BreakoutEventName)})),Ca(47," Watch Now "),Fs(),Ls(48,"div",26),Ls(49,"a",31),qs("click",(function(){return Je(t),As(37).toggle()})),js(50,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(51,CA,15,2,"div",29),Ls(52,"div",17,32),js(54,"div",19),Ls(55,"mdb-card",20),Ls(56,"div",21),Ls(57,"div",22),Ls(58,"h5",23),Ca(59),Fs(),Ls(60,"p",24),Ca(61),Fs(),Ls(62,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track2BreakoutEventType,e.track2BreakoutEventName)})),Ca(63," Watch Now "),Fs(),Ls(64,"div",26),Ls(65,"a",31),qs("click",(function(){return Je(t),As(53).toggle()})),js(66,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(67,TA,15,2,"div",33),Ls(68,"div",17,34),js(70,"div",19),Ls(71,"mdb-card",20),Ls(72,"div",21),Ls(73,"div",22),Ls(74,"h5",23),Ca(75),Fs(),Ls(76,"p",24),Ca(77),Fs(),Ls(78,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track3BreakoutEventType,e.track3BreakoutEventName)})),Ca(79," Watch Now "),Fs(),Ls(80,"div",26),Ls(81,"a",31),qs("click",(function(){return Je(t),As(69).toggle()})),js(82,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(83,PA,15,2,"div",29),Ls(84,"div",17,35),js(86,"div",19),Ls(87,"mdb-card",20),Ls(88,"div",21),Ls(89,"div",22),Ls(90,"h5",23),Ca(91),Fs(),Ls(92,"p",24),Ca(93),Fs(),Ls(94,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track4BreakoutEventType,e.track4BreakoutEventName)})),Ca(95," Watch Now "),Fs(),Ls(96,"div",26),Ls(97,"a",31),qs("click",(function(){return Je(t),As(85).toggle()})),js(98,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(99,FA,16,2,"div",29),Ls(100,"div",17,36),js(102,"div",19),Ls(103,"mdb-card",20),Ls(104,"div",21),Ls(105,"div",22),Ls(106,"h5",23),Ca(107),Fs(),Ls(108,"p",24),Ca(109),Fs(),Ls(110,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track5BreakoutEventType,e.track5BreakoutEventName)})),Ca(111," Watch Now "),Fs(),Ls(112,"div",26),Ls(113,"a",31),qs("click",(function(){return Je(t),As(101).toggle()})),js(114,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(115,HA,16,2,"div",29),Ls(116,"div",17,37),js(118,"div",19),Ls(119,"mdb-card",20),Ls(120,"div",21),Ls(121,"div",22),Ls(122,"h5",23),Ca(123),Fs(),Ls(124,"p",24),Ca(125),Fs(),Ls(126,"button",38),qs("click",(function(){return e.navigateToBreakout(e.track6BreakoutEventType,e.track6BreakoutEventName)})),Ca(127," Watch Now "),Fs(),Ls(128,"div",26),Ls(129,"a",31),qs("click",(function(){return Je(t),As(117).toggle()})),js(130,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(131,$A,16,2,"div",29),Ls(132,"div",17,39),js(134,"div",19),Ls(135,"mdb-card",20),Ls(136,"div",21),Ls(137,"div",22),Ls(138,"h5",23),Ca(139),Fs(),Ls(140,"p",24),Ca(141),Fs(),Ls(142,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track7BreakoutEventType,e.track7BreakoutEventName)})),Ca(143," Watch Now "),Fs(),Ls(144,"div",26),Ls(145,"a",31),qs("click",(function(){return Je(t),As(133).toggle()})),js(146,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(147,JA,16,2,"div",29),Ls(148,"div",17,40),js(150,"div",19),Ls(151,"mdb-card",20),Ls(152,"div",21),Ls(153,"div",22),Ls(154,"h5",23),Ca(155),Fs(),Ls(156,"p",24),Ca(157),Fs(),Ls(158,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track8BreakoutEventType,e.track8BreakoutEventName)})),Ca(159," Watch Now "),Fs(),Ls(160,"div",26),Ls(161,"a",31),qs("click",(function(){return Je(t),As(149).toggle()})),js(162,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(163,rN,16,2,"div",29),Ls(164,"div",17,41),js(166,"div",19),Ls(167,"mdb-card",20),Ls(168,"div",21),Ls(169,"div",22),Ls(170,"h5",23),Ca(171),Fs(),Ls(172,"p",24),Ca(173),Fs(),Ls(174,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track9BreakoutEventType,e.track9BreakoutEventName)})),Ca(175," Watch Now "),Fs(),Ls(176,"div",26),Ls(177,"a",31),qs("click",(function(){return Je(t),As(165).toggle()})),js(178,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Os(179,lN,16,2,"div",29),Ls(180,"div",17,42),js(182,"div",19),Ls(183,"mdb-card",20),Ls(184,"div",21),Ls(185,"div",22),Ls(186,"h5",23),Ca(187),Fs(),Ls(188,"p",24),Ca(189),Fs(),Ls(190,"button",25),qs("click",(function(){return e.navigateToBreakout(e.track10BreakoutEventType,e.track10BreakoutEventName)})),Ca(191," Watch Now "),Fs(),Ls(192,"div",26),Ls(193,"a",31),qs("click",(function(){return Je(t),As(181).toggle()})),js(194,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Ls(195,"div",4),Ls(196,"div",5),Ls(197,"p",6),Ca(198," Sponsors "),Fs(),Fs(),Ls(199,"div",43),Ls(200,"div",44),Ls(201,"span",45),qs("click",(function(){return Je(t),As(205).prev()})),Ls(202,"div",10),js(203,"mdb-icon",11),Fs(),Fs(),Ls(204,"owl-carousel-o",12,46),Os(206,dN,2,0,"ng-container",14),Fs(),Ls(207,"span",47),qs("click",(function(){return Je(t),As(205).next()})),Ls(208,"div",10),js(209,"mdb-icon",16),Fs(),Fs(),Fs(),Fs(),Fs(),Ls(210,"div",17,48),js(212,"div",19),Ls(213,"mdb-card",20),Ls(214,"div",21),Ls(215,"div",22),Ls(216,"h5",23),Ca(217),Fs(),Ls(218,"p",24),Ca(219),Fs(),Ls(220,"button",25),qs("click",(function(){return e.navigateToBreakout(e.sponsorEventType,e.sponsorEventName)})),Ca(221," Watch Now "),Fs(),Ls(222,"div",26),Ls(223,"a",31),qs("click",(function(){return Je(t),As(211).toggle()})),js(224,"mdb-icon",28),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),js(225,"div",49)}2&t&&(wi(1),Rs("animation","fade"),wi(13),Rs("options",e.carouselOptions),wi(2),Rs("ngForOf",e.plenarySlideStore),wi(4),Rs("isCollapsed",!0),wi(7),xa(" ",e.plenaryEventName," "),wi(2),Ea(e.plenaryEventDescription),wi(6),Rs("ngIf",e.track1SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track1BreakoutEventName," "),wi(2),Ea(e.track1BreakoutEventDescription),wi(6),Rs("ngIf",e.track2SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track2BreakoutEventName," "),wi(2),Ea(e.track2BreakoutEventDescription),wi(6),Rs("ngIf",e.track3SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track3BreakoutEventName," "),wi(2),Ea(e.track3BreakoutEventDescription),wi(6),Rs("ngIf",e.track4SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track4BreakoutEventName," "),wi(2),Ea(e.track4BreakoutEventDescription),wi(6),Rs("ngIf",e.track5SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track5BreakoutEventName," "),wi(2),Ea(e.track5BreakoutEventDescription),wi(6),Rs("ngIf",e.track6SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track6BreakoutEventName," "),wi(2),Ea(e.track6BreakoutEventDescription),wi(6),Rs("ngIf",e.track7SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track7BreakoutEventName," "),wi(2),Ea(e.track7BreakoutEventDescription),wi(6),Rs("ngIf",e.track8SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track8BreakoutEventName," "),wi(2),Ea(e.track8BreakoutEventDescription),wi(6),Rs("ngIf",e.track9SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track9BreakoutEventName," "),wi(2),Ea(e.track9BreakoutEventDescription),wi(6),Rs("ngIf",e.track10SlideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.track10BreakoutEventName," "),wi(2),Ea(e.track10BreakoutEventDescription),wi(15),Rs("options",e.carouselOptions),wi(2),Rs("ngForOf",e.sponsorSlideStore),wi(4),Rs("isCollapsed",!0),wi(7),xa(" ",e.sponsorEventName," "),wi(2),Ea(e.sponsorEventDescription))},directives:[KS,WS,$k,Kk,KO,wh,JS,FS,AS,xT,Eh,$O,yh],styles:[".top-right[_ngcontent-%COMP%]{position:absolute;top:4%;right:1%;font-size:1.5rem;font-weight:700}.plenaryVideo[_ngcontent-%COMP%]{height:80vh}.eventInfo[_ngcontent-%COMP%], .plenaryVideo[_ngcontent-%COMP%]{background-attachment:fixed;background-position:50%;background-repeat:no-repeat;background-size:cover}.title[_ngcontent-%COMP%]{position:absolute;top:70%;left:5%;font-size:3rem;font-weight:700}.carousel-wrap[_ngcontent-%COMP%]{width:100%;margin:auto;position:relative}.slider[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;touch-action:pan-y}.slider[_ngcontent-%COMP%] .handle.handleNext[_ngcontent-%COMP%]{right:0}.slider[_ngcontent-%COMP%] .handle.handlePrev[_ngcontent-%COMP%]{left:0}.slider[_ngcontent-%COMP%] .handle.active[_ngcontent-%COMP%]{cursor:pointer}.slider[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;z-index:20;width:4%;text-align:center;justify-content:center;display:flex}.view[_ngcontent-%COMP%] .viewMore[_ngcontent-%COMP%]{top:unset;left:unset;height:20%}.opacity1[_ngcontent-%COMP%]{opacity:1}.img-to-fit[_ngcontent-%COMP%]{width:100%;height:100%}.col[_ngcontent-%COMP%], .col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:0;padding-left:0}.visible[_ngcontent-%COMP%]{display:none!important}"]}),t})();const fN=["chatboxchild"];function gN(t,e){if(1&t&&(Ls(0,"div",22),js(1,"img",23),js(2,"img",24),js(3,"img",25),Fs()),2&t){const t=Qs();wi(1),Rs("src",t.userProfilePictureURL,Zr),wi(1),Rs("src",t.userProfilePictureURL,Zr),wi(1),Rs("src",t.userProfilePictureURL,Zr)}}function mN(t,e){if(1&t){const t=Bs();Ls(0,"button",26),qs("click",(function(){return Je(t),Qs().privateMessage()})),js(1,"mdb-icon",27),Ca(2,"Message "),Fs()}}function vN(t,e){1&t&&(Ls(0,"button",28),js(1,"mdb-icon",29),Ca(2,"Edit "),Fs())}function bN(t,e){if(1&t){const t=Bs();Ls(0,"button",30),qs("click",(function(){return Je(t),Qs().privateMessage()})),js(1,"mdb-icon",27),Ca(2,"Message "),Fs()}}function yN(t,e){1&t&&(Ls(0,"button",31),js(1,"mdb-icon",29),Ca(2,"Edit "),Fs())}let _N=(()=>{class t{constructor(t,e,n,r,i,o){this.document=t,this.activatedRoute=e,this.chatService=n,this.router=r,this.localStorageService=i,this.afs=o,this.userProfileObjectEvent=new Zl,this.zoom_Login=!1,this.self=!0,this.userChatProfiles=[]}ngOnInit(){this.privateMessageUid=this.activatedRoute.snapshot.params.id,this.localStorageService.getUserDataFromLocalStorage(),null==this.privateMessageUid&&(this.privateMessageUid=this.localStorageService.getUserDataFromLocalStorage().uid,this.router.navigateByUrl("/user-profile/"+this.privateMessageUid)),this.privateMessageUid!=this.localStorageService.getUserDataFromLocalStorage().uid&&(this.self=!1),this.afs.collection("users").doc(this.privateMessageUid).get().subscribe(t=>{this.userProfilePictureURL=null==t.data().photoURL||""==t.data().photoURL||null==t.data().photoURL?"/assets/default-profile.png":t.data().photoURL,this.firstAndLastName=t.data().firstName+" "+t.data().lastName,this.jobTitleAndOrganization=t.data().jobTitle+" at "+t.data().organization,this.email=t.data().email,this.department=t.data().department,this.organization=t.data().organization,this.jobTitle=t.data().jobTitle})}privateMessage(){new Promise((t,e)=>{this.afs.collection("users").doc(this.privateMessageUid).get().subscribe(e=>{if(null!==e){this.defaultPhotoURL=null==e.data().photoURL?"/assets/default-profile.png":e.data().photoURL;const n={uid:e.data().uid,accountCreated:e.data().accountCreated,email:e.data().email,displayName:e.data().displayName,photoURL:this.defaultPhotoURL,emailVerified:e.data().emailVerified,firstName:e.data().firstName,lastName:e.data().lastName,department:e.data().department,organization:e.data().organization,jobTitle:e.data().jobTitle,conversations:e.data().conversations};t(n)}})}).then(t=>{console.log(t),this.chatboxchild.openChatContainer(t),this.chatService.messageButtonPressedAlert()})}}return t.\u0275fac=function(e){return new(e||t)(Ns(wu),Ns(e_),Ns(nC),Ns(uw),Ns(Kw),Ns(sb))},t.\u0275cmp=fe({type:t,selectors:[["app-user-profile"]],viewQuery:function(t,e){var n;1&t&&dc(fN,!0),2&t&&uc(n=gc())&&(e.chatboxchild=n.first)},outputs:{userProfileObjectEvent:"userProfileObjectEvent"},decls:46,vars:15,consts:[[1,"row",2,"margin-top","120px"],[1,"col-md-1","col-lg-1","col-xl-1"],[1,"col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[2,"width","100%"],[1,"row","col-12",2,"padding-left","4rem","padding-right","4rem","padding-top","4rem","padding-bottom","4rem"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-2","col-xl-2"],["class","avatar",4,"ngIf"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-10","col-xl-10"],[1,"d-block","d-md-none"],[1,"h1","dark-grey-text","mt-4",2,"margin","auto 0"],[1,"small-text","dark-grey-text",2,"margin","auto 0"],["fas","","icon","envelope",1,"mr-1","orange-text"],["fas","","icon","industry",1,"mr-1","orange-text"],["fas","","icon","building",1,"mr-1","orange-text"],["fas","","icon","user-tie",1,"mr-1","orange-text"],["size","md","mdbBtn","","class","my-4 mr-3 waves-effect z-depth-1","style","width: 100%; background-color:#ff6600;","mdbWavesEffect","",3,"click",4,"ngIf"],["size","md","routerLink","/edit-profile","mdbBtn","","class","my-4 waves-effect z-depth-1;","style","width: 100%; background-color:#ff6600;","mdbWavesEffect","",4,"ngIf"],[1,"d-none","d-md-block",2,"margin-left","3rem"],[1,"h1","dark-grey-text",2,"margin","auto 0"],["size","sm","mdbBtn","","class","my-4 mr-3 waves-effect z-depth-1 edit-button","mdbWavesEffect","","style","background-color:#ff6600;",3,"click",4,"ngIf"],["routerLink","/edit-profile","rounded","true","mdbBtn","","style","background-color:#ff6600;","class","mt-4 waves-effect z-depth-1 edit-button","mdbWavesEffect","",4,"ngIf"],["chatboxchild",""],[1,"avatar"],[1,"rounded","z-depth-1-half","d-none","d-lg-block",2,"max-width","100%",3,"src"],[1,"rounded","z-depth-1-half","d-none","d-md-block","d-lg-none",2,"max-width","100%","margin-left","3rem","margin-bottom","1rem",3,"src"],[1,"rounded","z-depth-1-half","d-block","d-md-none",2,"width","100%",3,"src"],["size","md","mdbBtn","","mdbWavesEffect","",1,"my-4","mr-3","waves-effect","z-depth-1",2,"width","100%","background-color","#ff6600",3,"click"],["fas","","icon","comments",1,"mr-1"],["size","md","routerLink","/edit-profile","mdbBtn","","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-1;",2,"width","100%","background-color","#ff6600"],["fas","","icon","user-edit",1,"mr-1"],["size","sm","mdbBtn","","mdbWavesEffect","",1,"my-4","mr-3","waves-effect","z-depth-1","edit-button",2,"background-color","#ff6600",3,"click"],["routerLink","/edit-profile","rounded","true","mdbBtn","","mdbWavesEffect","",1,"mt-4","waves-effect","z-depth-1","edit-button",2,"background-color","#ff6600"]],template:function(t,e){1&t&&(Ls(0,"div",0),js(1,"div",1),Ls(2,"div",2),Ls(3,"mdb-card",3),Ls(4,"div",4),Ls(5,"div",5),Os(6,gN,4,3,"div",6),Fs(),Ls(7,"div",7),Ls(8,"div",8),Ls(9,"p",9),Ca(10),Fs(),Ls(11,"p",10),js(12,"mdb-icon",11),Ca(13),Fs(),js(14,"hr"),Ls(15,"p",10),js(16,"mdb-icon",12),Ca(17),Fs(),Ls(18,"p",10),js(19,"mdb-icon",13),Ca(20),Fs(),Ls(21,"p",10),js(22,"mdb-icon",14),Ca(23),Fs(),Os(24,mN,3,0,"button",15),Os(25,vN,3,0,"button",16),Fs(),Ls(26,"div",17),Ls(27,"p",18),Ca(28),Fs(),Ls(29,"p",10),js(30,"mdb-icon",11),Ca(31),Fs(),js(32,"hr"),Ls(33,"p",10),js(34,"mdb-icon",12),Ca(35),Fs(),Ls(36,"p",10),js(37,"mdb-icon",13),Ca(38),Fs(),Ls(39,"p",10),js(40,"mdb-icon",14),Ca(41),Fs(),Os(42,bN,3,0,"button",19),Os(43,yN,3,0,"button",20),Fs(),Fs(),Fs(),Fs(),Fs(),js(44,"app-chat-box",null,21),Fs()),2&t&&(wi(6),Rs("ngIf",e.userProfilePictureURL),wi(4),xa(" ",e.firstAndLastName,""),wi(3),xa("",e.email," "),wi(4),xa("",e.department," "),wi(3),xa("",e.organization," "),wi(3),xa("",e.jobTitle," "),wi(1),Rs("ngIf",!e.self),wi(1),Rs("ngIf",e.self),wi(3),Ea(e.firstAndLastName),wi(3),xa("",e.email," "),wi(4),xa("",e.department," "),wi(3),xa("",e.organization," "),wi(3),xa("",e.jobTitle," "),wi(1),Rs("ngIf",!e.self),wi(1),Rs("ngIf",e.self))},directives:[FS,Eh,$k,Kk,WI,AS,xT,hw],styles:[".col[_ngcontent-%COMP%], .col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:0;padding-left:0}.small-text[_ngcontent-%COMP%]{font-size:medium}.edit-button[_ngcontent-%COMP%]{float:right}.filler[_ngcontent-%COMP%]{position:relative;width:50%;padding-right:0;padding-left:0}.btn[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);padding:.84rem 2.14rem;font-size:.81rem;transition:.2s ease-in-out;margin:0;border:0;border-radius:.125rem;cursor:pointer;text-transform:uppercase;white-space:normal;word-wrap:break-word;color:#fff}.card[_ngcontent-%COMP%]{border-radius:.5rem}"]}),t})();function wN(t){const e=function(t){return new _(e=>(t.on("state_changed",t=>e.next(t),t=>e.error(t),()=>e.complete()),()=>t.cancel()))}(t);return{task:t,then:t.then.bind(t),catch:t.catch.bind(t),pause:t.pause.bind(t),cancel:t.cancel.bind(t),resume:t.resume.bind(t),snapshotChanges:()=>e,percentageChanges:()=>e.pipe(F(t=>t.bytesTransferred/t.totalBytes*100))}}function CN(t,e,n){return{getDownloadURL:()=>Cm(void 0).pipe(fv(e.outsideAngular),lb(()=>t.getDownloadURL()),n),getMetadata:()=>Cm(void 0).pipe(fv(e.outsideAngular),lb(()=>t.getMetadata()),n),delete:()=>B(t.delete()),child:r=>CN(t.child(r),e,n),updateMetadata:e=>B(t.updateMetadata(e)),put:(e,n)=>wN(t.put(e,n)),putString:(e,n,r)=>wN(t.putString(e,n,r)),listAll:()=>B(t.listAll())}}n("LmZi");const EN=new Ut("angularfire2.storageBucket");let xN=(()=>{class t{constructor(t,e,n,r,i){this.schedulers=new Lv(i),this.keepUnstableUntilFirst=Fv(this.schedulers),this.storage=i.runOutsideAngular(()=>Hv(t,i,e).storage(n||void 0))}ref(t){return CN(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}upload(t,e,n){return CN(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Qt(Uv),Qt(Vv,8),Qt(EN,8),Qt(kc),Qt(Hc))},t.\u0275prov=ht({factory:function(){return new t(Qt(Uv),Qt(Vv,8),Qt(EN,8),Qt(kc),Qt(Hc))},token:t,providedIn:"any"}),t})(),SN=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[xN]}),t})();const kN=["videoPlayerDiv"];let TN=(()=>{class t{constructor(t,e,n,r,i,o,s){this.localStorageService=t,this.apiService=e,this._document=n,this.storage=r,this.activatedRoute=i,this.router=o,this.sanitizer=s,this.videoInView=!1,this.files=[],this.customOptions={autoplay:!0,loop:!0,nav:!1,margin:10,mouseDrag:!0,touchDrag:!0,pullDrag:!0,dots:!1,navSpeed:700,responsive:{0:{items:1},400:{items:1},740:{items:1},940:{items:1}}},this.sponsorSlideStore=[]}ngOnInit(){}ngAfterViewInit(){try{const t=this.localStorageService.getUserDataFromLocalStorage().meetingPulseKey.replace("=","%3D");this.eventName=this.activatedRoute.snapshot.params.event_name,this.apiService.getEvent(this.eventName).then(e=>{this.event=e[0].payload.doc.data(),this.meetingPulseSrc=this.sanitizer.bypassSecurityTrustResourceUrl("https://global.meet.ps/attendee/nhg?i="+t),this.eventSpeakers=this.event.speakers;const n=this.storage.ref("event_files/"+this.event.event_id);let r="";n.listAll().toPromise().then(t=>{t.items.forEach(t=>{console.log(t.name);let e=t.name;t.getDownloadURL().then(t=>{switch(e.split(".").pop()){case"pptx":r="../../assets/ppt.png";break;case"pdf":r="../../assets/pdf.png";break;case"docx":r="../../assets/doc.png"}this.files.push({filename:e,url:t,src:r})})})}),this.wowza=new wowzaScript(this.event.wowza_rtmp_link,this.event.wowza_preview_poster)})}catch(t){console.log("Error #342")}}onScroll(t){let e=document.scrollingElement.scrollTop,n=this.videoPlayerDiv.nativeElement.getBoundingClientRect().height;this.videoInView=!(e>70+n)}}return t.\u0275fac=function(e){return new(e||t)(Ns(Kw),Ns(uO),Ns(wu),Ns(xN),Ns(e_),Ns(uw),Ns(gd))},t.\u0275cmp=fe({type:t,selectors:[["app-plenary"]],viewQuery:function(t,e){var n;1&t&&dc(kN,!0,Xa),2&t&&uc(n=gc())&&(e.videoPlayerDiv=n.first)},hostBindings:function(t,e){1&t&&qs("scroll",(function(t){return e.onScroll(t)}),!1,qn)},decls:8,vars:0,consts:[[2,"height","70px"],[1,"row","col-12","primaryColor"],["videoPlayerDiv",""],[1,"row","col-12",2,"background-color","white","padding-top","5px","padding-bottom","50px","padding-left","15%","padding-right","15%","background-image","url('../assets/plenarybg.png')","background-size","cover","background-position","center center"],[1,"col-1"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-12","col-xl-12","mt-5",2,"text-align","center"],[2,"padding","75% 0 0 0","position","relative"],["src","https://player.vimeo.com/video/541521154?badge=0&autopause=0&player_id=0&app_id=58479","frameborder","0","allow","autoplay; fullscreen; picture-in-picture","allowfullscreen","","title","NHG Post Edit v02",2,"position","absolute","top","0","left","0","width","100%","height","100%"]],template:function(t,e){1&t&&(js(0,"div",0),Ls(1,"div",1,2),Ls(3,"div",3),js(4,"div",4),Ls(5,"div",5),Ls(6,"div",6),js(7,"iframe",7),Fs(),Fs(),Fs(),Fs())},styles:[".carousel-wrap[_ngcontent-%COMP%]{width:100%;margin:auto;position:relative}.slider[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;touch-action:pan-y}.slider[_ngcontent-%COMP%] .handle.handleNext[_ngcontent-%COMP%]{right:0}.slider[_ngcontent-%COMP%] .handle.handlePrev[_ngcontent-%COMP%]{left:0}.slider[_ngcontent-%COMP%] .handle.active[_ngcontent-%COMP%]{cursor:pointer}.slider[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;z-index:20;width:4%;text-align:center;justify-content:center;display:flex}@media (max-width:768px){.responsiveMeetingPulse[_ngcontent-%COMP%]{height:50vh}}@media (min-width:769px){.responsiveMeetingPulse[_ngcontent-%COMP%]{height:100%}}.col[_ngcontent-%COMP%], .col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:0;padding-left:0}"]}),t})();const IN=["collapsible"],ON=["videoPlayerDiv"];function AN(t,e){1&t&&js(0,"div",52,53)}function NN(t,e){1&t&&js(0,"div",54)}function PN(t,e){if(1&t&&(Ls(0,"div",49),Os(1,AN,2,0,"div",50),Os(2,NN,1,0,"ng-template",null,51,yc),Fs()),2&t){const t=As(3),e=Qs();wi(1),Rs("ngIf","jitsi"===(null==e.sponsor?null:e.sponsor.stream_type))("ngIfElse",t)}}function DN(t,e){if(1&t&&(Ls(0,"div",55),js(1,"iframe",56),Fs()),2&t){const t=Qs();wi(1),Rs("src",t.vimeoVodLink,ti)}}function RN(t,e){if(1&t&&(Ls(0,"div",57),Ls(1,"a",58),js(2,"img",59),Fs(),js(3,"br"),Ca(4),Fs()),2&t){const t=e.$implicit;wi(1),Zs("href",t.url,Zr),Zs("download",t.filename),wi(1),Zs("src",t.src,Zr),wi(2),xa(" ",t.filename," ")}}function MN(t,e){1&t&&(Ls(0,"p",80),Ca(1,"Event Ended"),Fs())}function LN(t,e){if(1&t){const t=Bs();Ls(0,"div",81),qs("click",(function(){Je(t);const e=Qs(2).$implicit;return Qs(2).showCollapsible(e.event_name,e.event_description)})),js(1,"mdb-icon",82),Fs()}}function FN(t,e){if(1&t&&(Ls(0,"div",72),js(1,"img",73),Ls(2,"div",74),Ls(3,"div",75),Ca(4),Fs(),Fs(),js(5,"div",76),Ls(6,"div",77),Os(7,MN,2,0,"p",78),Fs(),Os(8,LN,2,0,"div",79),Fs()),2&t){const t=Qs().$implicit;Rs("ngClass","ENDED"!=t.status?"zoom":""),wi(1),Rs("src",t.image,Zr)("title",t.title),wi(3),Ea(t.status),wi(2),Rs("ngClass","ENDED"==t.status?"mask flex-center rgba-grey-strong opacity1":""),wi(1),Rs("ngIf","ENDED"==t.status),wi(1),Rs("ngIf","ENDED"!=t.status)}}function jN(t,e){1&t&&(Us(0),Os(1,FN,9,7,"ng-template",71),Vs())}function UN(t,e){if(1&t){const t=Bs();Ls(0,"div",60),Ls(1,"div",61),Ls(2,"div",62),Ls(3,"span",63),qs("click",(function(){return Je(t),As(7).prev()})),Ls(4,"div",64),js(5,"mdb-icon",65),Fs(),Fs(),Ls(6,"owl-carousel-o",66,67),Os(8,jN,2,0,"ng-container",68),Fs(),Ls(9,"span",69),qs("click",(function(){return Je(t),As(7).next()})),Ls(10,"div",64),js(11,"mdb-icon",70),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=Qs();wi(6),Rs("options",t.carouselOptions),wi(2),Rs("ngForOf",t.slideStore)}}let VN=(()=>{class t{constructor(t,e,n,r,i,o,s){this.localStorageService=t,this.eventService=e,this.router=n,this.activatedRoute=r,this._document=i,this.storage=o,this.sanitizer=s,this.videoInView=!1,this.presenting=!0,this.files=[],this.vimeoVodLink=this.sanitizer.bypassSecurityTrustResourceUrl(""),this.carouselOptions={loop:!0,nav:!1,margin:10,mouseDrag:!0,touchDrag:!0,pullDrag:!0,stagePadding:40,dots:!1,navSpeed:700,responsive:{0:{items:2},400:{items:2},740:{items:5},940:{items:5}}},this.slideStore=[]}ngOnInit(){let t=this.localStorageService.getUserDataFromLocalStorage().firstName+" "+this.localStorageService.getUserDataFromLocalStorage().lastName;this.sponsorName=this.activatedRoute.snapshot.params.sponsor_name,this.eventService.getSponsorByName(this.sponsorName).then(t=>{this.sponsor=t[0].payload.doc.data(),this.gruveoLink=this.sponsor.gruveo_link,this.vimeoVodLink=this.sanitizer.bypassSecurityTrustResourceUrl(this.sponsor.vimeo_vod_link)}).then(()=>{this.eventService.getAllSponsorPresentations().then(e=>{for(let n=0;n(new Date).getTime()){if(this.presenting=!0,"jitsi"==this.sponsor.stream_type){let e=this.localStorageService.getUserDataFromLocalStorage().email;this.domain="meet.jit.si",this.options={roomName:this.sponsor.jitsi_room_name,width:document.getElementById("jitsiWidth").offsetWidth-15,height:700,parentNode:document.querySelector("#meet"),userInfo:{email:e,displayName:t}},this.jitsiApi=new JitsiMeetExternalAPI(this.domain,this.options)}else"livewebinar"==this.sponsor.stream_type&&(console.log(this.sponsor),this.liveWebinarApi=new liveWebinar(this.sponsor.livewebinar_id,t));break}this.presenting=!1;break}}}),this.eventService.getAllSponsorTracksBySponsorId(this.sponsor.sponsor_id).then(t=>{for(let e=0;e(new Date).getTime()?(r.status="LIVE",this.slideStore.push(r)):1e3*r.start_time.seconds<(new Date).getTime()&&1e3*r.end_time.seconds<(new Date).getTime()?(r.status="ENDED",this.slideStore.push(r)):1e3*n.start_time.seconds>(new Date).getTime()&&(r.status=ih(new Date(1e3*n.start_time.seconds),"h:mm:ss a","en"),this.slideStore.push(r)),e+1==t.length&&this.slideStore.length>=1&&this.slideStore.length<5){let t=new sO("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","","");for(let e=this.slideStore.length;e<5;e++)this.slideStore.push(t)}}});const e=this.storage.ref("sponsor_files/"+this.sponsor.sponsor_id);let n="";e.listAll().toPromise().then(t=>{t.items.forEach(t=>{let e=t.name;t.getDownloadURL().then(t=>{switch(e.split(".").pop()){case"pptx":n="../../assets/ppt.png";break;case"pdf":n="../../assets/pdf.png";break;case"docx":n="../../assets/docx.png"}this.files.push({filename:e,url:t,src:n})})})})})}onScroll(t){let e=document.scrollingElement.scrollTop,n=this.videoPlayerDiv.nativeElement.getBoundingClientRect().height;this.videoInView=!(e>70+n)}videoCall(){window.open(this.gruveoLink,"_blank")}showCollapsible(t,e){let n=this.breakoutEventName;this.breakoutEventName=t,this.breakoutEventDescription=e,this.collapsible.isCollapsed?this.collapsible.toggle():this.collapsible.isCollapsed||n!=this.breakoutEventName||this.collapsible.toggle()}}return t.\u0275fac=function(e){return new(e||t)(Ns(Kw),Ns(uO),Ns(uw),Ns(e_),Ns(wu),Ns(xN),Ns(gd))},t.\u0275cmp=fe({type:t,selectors:[["app-sponsor-microsite"]],viewQuery:function(t,e){var n;1&t&&(hc(IN,!0),dc(ON,!0,Xa)),2&t&&(uc(n=gc())&&(e.collapsible=n.first),uc(n=gc())&&(e.videoPlayerDiv=n.first))},hostBindings:function(t,e){1&t&&qs("scroll",(function(t){return e.onScroll(t)}),!1,qn)},decls:75,vars:19,consts:[[1,"primaryColor",2,"height","120px"],[1,"row","col-12","primaryColor"],["videoPlayerDiv",""],[1,"col-md-1","col-lg-1","col-xl-1"],[1,"row","col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],["class","col-xs-12 col-sm-12 col-md-9 col-lg-9 col-xl-9","id","jitsiWidth",4,"ngIf","ngIfElse"],["preRecordedVideo",""],[1,"d-block","d-md-none","col-12",2,"height","50px"],[1,"col-xs-12","col-sm-12","col-md-3","col-lg-3","col-xl-3"],[3,"buttonClass","contentClass"],["staticTabs",""],["heading","About"],[1,"row"],[1,"col-12",2,"text-align","center"],[2,"max-width","100%",3,"src"],["heading","Contact"],[1,"list-unstyled"],[1,"d-none","d-md-block"],["fas","","icon","envelope","size","lg",1,"pr-2"],[3,"href"],[1,"d-block","d-md-none"],["fas","","icon","envelope","size","xs",1,"pr-2"],["fas","","icon","bookmark","size","lg",1,"pr-2"],["target","_blank",3,"href"],["fas","","icon","bookmark","size","xs",1,"pr-2"],[1,"row",2,"text-align","center"],["mdbBtn","","type","button","rounded","true","mdbWavesEffect","",1,"white-text",2,"background-color","#000","margin","auto auto",3,"click"],["heading","Resource"],[1,"col-12","row",2,"text-align","center"],["class","zoom mr-3 mb-5","style","width: 50px; height: 50px;",4,"ngFor","ngForOf"],[1,"d-none","d-md-block",2,"height","50px"],[1,"row","col-12",2,"padding-bottom","100px"],[1,"col-1"],[1,"col-10"],[1,"row","col-12"],[1,"my-4","h3","black-text",2,"margin-left","1rem"],["style","margin-top: 20px","class","container col-12",4,"ngIf"],["mdbCollapse","",2,"width","100%",3,"isCollapsed"],["collapsible","bs-collapse"],[2,"height","30px"],[1,"eventInfo",2,"background-image","url(../../assets/preview.png)"],[1,"text-white","rgba-stylish-strong","py-5","px-5"],[1,"py-5"],[1,"h3","white-text"],[1,"mb-4","pb-2","col-6"],["size","md","mdbBtn","","rounded","true","mdbWavesEffect","",1,"mt-2","waves-effect","z-depth-1",2,"background-color","#ff6600"],[1,"icons","white-text","top-right"],["type","button",3,"click"],["fas","","icon","times",1,"mr-2"],["id","jitsiWidth",1,"col-xs-12","col-sm-12","col-md-9","col-lg-9","col-xl-9"],["id","meet",4,"ngIf","ngIfElse"],["liveWebinar",""],["id","meet"],["meet",""],["id","embedWidget"],[1,"col-xs-12","col-sm-12","col-md-9","col-lg-9","col-xl-9","embed-container"],["frameborder","0","webkitAllowFullScreen","","mozallowfullscreen","","allowFullScreen","",3,"src"],[1,"zoom","mr-3","mb-5",2,"width","50px","height","50px"],["target","_blank",3,"href","download"],[2,"max-height","100%","max-width","100%",3,"src"],[1,"container","col-12",2,"margin-top","20px"],[1,"row","col-12","carousel-wrap"],[1,"col-12","slider"],["role","button",1,"handle","handlePrev","active","view","overlay",3,"click"],[1,"mask","flex-center","rgba-black-strong"],["fas","","icon","angle-left","size","2x",1,"white-text"],[3,"options"],["carousel",""],[4,"ngFor","ngForOf"],["role","button",1,"handle","handleNext","active","view","overlay",3,"click"],["fas","","icon","angle-right","size","2x",1,"white-text"],["carouselSlide",""],[1,"view","overlay",3,"ngClass"],[1,"z-depth-4",3,"src","title"],[2,"position","absolute","top","8px","right","0px","color","white","font-size","small","background-color","red","font-weight","900"],[1,"mx-1"],[1,"mask","flex-center"],[3,"ngClass"],["class","white-text",4,"ngIf"],["class","viewMore mask flex-center rgba-black-strong","style","cursor: pointer",3,"click",4,"ngIf"],[1,"white-text"],[1,"viewMore","mask","flex-center","rgba-black-strong",2,"cursor","pointer",3,"click"],["fas","","icon","angle-down","size","2x",1,"white-text"]],template:function(t,e){if(1&t){const t=Bs();js(0,"div",0),Ls(1,"div",1,2),js(3,"div",3),Ls(4,"div",4),Os(5,PN,4,2,"div",5),Os(6,DN,2,1,"ng-template",null,6,yc),js(8,"div",7),Ls(9,"div",8),Ls(10,"mdb-tabset",9,10),Ls(12,"mdb-tab",11),Ls(13,"div",12),Ls(14,"div",13),js(15,"br"),js(16,"img",14),js(17,"br"),Ls(18,"p"),Ca(19),Fs(),Fs(),Fs(),Fs(),Ls(20,"mdb-tab",15),Ls(21,"div",12),Ls(22,"div",13),js(23,"br"),Ls(24,"div"),Ls(25,"ul",16),Ls(26,"li"),Ls(27,"div",17),js(28,"mdb-icon",18),Ls(29,"a",19),Ca(30),Fs(),Fs(),Ls(31,"div",20),js(32,"mdb-icon",21),Ls(33,"a",19),Ca(34),Fs(),Fs(),Fs(),js(35,"br"),Ls(36,"li"),Ls(37,"div",17),js(38,"mdb-icon",22),Ls(39,"a",23),Ca(40),Fs(),Fs(),Ls(41,"div",20),js(42,"mdb-icon",24),Ls(43,"a",23),Ca(44),Fs(),Fs(),Fs(),js(45,"br"),Fs(),Ls(46,"div",25),Ls(47,"button",26),qs("click",(function(){return e.videoCall()})),Ca(48," Video call"),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Ls(49,"mdb-tab",27),Ls(50,"div",28),Os(51,RN,5,4,"div",29),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),js(52,"div",30),Ls(53,"div",31),js(54,"div",32),Ls(55,"div",33),Ls(56,"div",34),Ls(57,"p",35),Ca(58," Sponsor Tracks "),Fs(),Fs(),Os(59,UN,12,2,"div",36),Ls(60,"div",37,38),js(62,"div",39),Ls(63,"mdb-card",40),Ls(64,"div",41),Ls(65,"div",42),Ls(66,"h5",43),Ca(67),Fs(),Ls(68,"p",44),Ca(69),Fs(),Ls(70,"button",45),Ca(71," Watch "),Fs(),Ls(72,"div",46),Ls(73,"a",47),qs("click",(function(){return Je(t),As(61).toggle()})),js(74,"mdb-icon",48),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()}if(2&t){const t=As(7);wi(5),Rs("ngIf",e.presenting)("ngIfElse",t),wi(5),Rs("buttonClass","md-tabs tabs-dark tabs-3")("contentClass","card"),wi(6),Rs("src",null==e.sponsor?null:e.sponsor.sponsor_logo,Zr),wi(3),Ea(null==e.sponsor?null:e.sponsor.sponsor_description),wi(10),ta("href","mailto:",null==e.sponsor?null:e.sponsor.sponsor_email,"",Zr),wi(1),Ea(null==e.sponsor?null:e.sponsor.sponsor_email),wi(3),ta("href","mailto:",null==e.sponsor?null:e.sponsor.sponsor_email,"",Zr),wi(1),Ea(null==e.sponsor?null:e.sponsor.sponsor_email),wi(5),Zs("href",null==e.sponsor?null:e.sponsor.sponsor_website,Zr),wi(1),Ea(null==e.sponsor?null:e.sponsor.sponsor_website),wi(3),Zs("href",null==e.sponsor?null:e.sponsor.sponsor_website,Zr),wi(1),Ea(null==e.sponsor?null:e.sponsor.sponsor_website),wi(7),Rs("ngForOf",e.files),wi(8),Rs("ngIf",e.slideStore.length>0),wi(1),Rs("isCollapsed",!0),wi(7),xa(" ",e.breakoutEventName," "),wi(2),Ea(e.breakoutEventDescription)}},directives:[Eh,CI,EI,$k,Kk,AS,xT,wh,JS,FS,KO,$O,yh],styles:[".embed-container[_ngcontent-%COMP%]{--video--width:1296;--video--height:540;position:relative;padding-bottom:calc(var(--video--height)/var(--video--width)*100%);overflow:hidden;max-width:100%;background:#000}.embed-container[_ngcontent-%COMP%] embed[_ngcontent-%COMP%], .embed-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%], .embed-container[_ngcontent-%COMP%] object[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.carousel-wrap[_ngcontent-%COMP%]{width:100%;margin:auto;position:relative}.top-right[_ngcontent-%COMP%]{position:absolute;top:4%;right:1%;font-size:1.5rem;font-weight:700}.slider[_ngcontent-%COMP%]{position:relative;margin:0;padding:0;touch-action:pan-y}.slider[_ngcontent-%COMP%] .handle.handleNext[_ngcontent-%COMP%]{right:0}.slider[_ngcontent-%COMP%] .handle.handlePrev[_ngcontent-%COMP%]{left:0}.slider[_ngcontent-%COMP%] .handle.active[_ngcontent-%COMP%]{cursor:pointer}.slider[_ngcontent-%COMP%] .handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;z-index:20;width:4%;text-align:center;justify-content:center;display:flex}.view[_ngcontent-%COMP%] .viewMore[_ngcontent-%COMP%]{top:unset;left:unset;height:20%}.opacity1[_ngcontent-%COMP%]{opacity:1}.img-to-fit[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.col[_ngcontent-%COMP%], .col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:0;padding-left:0}"]}),t})(),BN=(()=>{class t{constructor(){this.signatureEndpoint="https://4a9ddc145e65.ngrok.io/api/getSignature",this.apiKey="Moa7yjiQQDy7L8Eup9wIFw",this.meetingNumber=71368183696,this.role=1,this.leaveUrl="http://localhost:4200/conference",this.userName="TESTER BABY",this.userEmail="",this.passWord="5xSS8b"}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-conference"]],decls:6,vars:0,consts:[[1,"primaryColor",2,"height","400px"],[1,"row","col-12","primaryColor"]],template:function(t,e){1&t&&(js(0,"div",0),Ls(1,"div",1),Ls(2,"main"),Ls(3,"h1"),Ca(4,"Zoom Angular Web SDK"),Fs(),Fs(),Fs(),js(5,"div",0))},styles:["main[_ngcontent-%COMP%]{width:70%;margin:auto;text-align:center}button[_ngcontent-%COMP%]{margin-top:20px;background-color:#2d8cff;color:#fff;text-decoration:none;padding:10px 40px;display:inline-block;border-radius:10px}button[_ngcontent-%COMP%]:hover{background-color:#2681f2}"]}),t})();function HN(t,e){if(1&t){const t=Bs();Us(0),Ls(1,"div",9),Ls(2,"div",10),qs("click",(function(){Je(t);const n=e.$implicit;return Qs().navigateSponsor(n)})),js(3,"img",11),Fs(),Fs(),Ls(4,"div",12),Ls(5,"div",13),qs("click",(function(){Je(t);const n=e.$implicit;return Qs().navigateSponsor(n)})),js(6,"img",11),Fs(),Fs(),Vs()}if(2&t){const t=e.$implicit;wi(3),Rs("src",t.sponsor_logo,Zr),wi(3),Rs("src",t.sponsor_logo,Zr)}}function zN(t,e){if(1&t){const t=Bs();Us(0),Ls(1,"div",14),Ls(2,"div",10),qs("click",(function(){Je(t);const n=e.$implicit;return Qs().navigateSponsor(n)})),js(3,"img",11),Fs(),Fs(),Ls(4,"div",12),Ls(5,"div",13),qs("click",(function(){Je(t);const n=e.$implicit;return Qs().navigateSponsor(n)})),js(6,"img",11),Fs(),Fs(),Vs()}if(2&t){const t=e.$implicit;wi(3),Rs("src",t.sponsor_logo,Zr),wi(3),Rs("src",t.sponsor_logo,Zr)}}let qN=(()=>{class t{constructor(t,e,n,r){this.authService=t,this.eventService=e,this.localStorageService=n,this.router=r,this.mainSponsorStore=[],this.subSponsorStore=[]}ngOnInit(){this.eventService.getAllSponsors().then(t=>{for(let e=0;e{class t{constructor(t,e,n,r,i,o){this.toast=t,this.localStorageService=e,this.storage=n,this.afs=r,this.router=i,this.authService=o,this.loading=!1}uploadProfilePicture(t){if(null==t)return Promise.resolve();if(t.target.files[0]){if("image"!==t.target.files[0].type.split("/")[0])return void this.toast.error("Wrong file type! Please upload an image file");const n=this.localStorageService.getUserDataFromLocalStorage();var e=Date.now();const r=t.target.files[0],i=`userProfilePicture/${n.uid}_${e}`,o=this.storage.ref(i),s=this.storage.upload(i,r);return s.snapshotChanges().pipe(Wb(()=>{this.downloadURL=o.getDownloadURL(),this.downloadURL.subscribe(t=>{t&&(this.userProfilePictureURL=t,this.afs.collection("users").doc(n.uid).update({photoURL:t,path:i}),console.log("Updated User Database")),console.log(this.userProfilePictureURL),this.authService.profilePhotoSubject.next(this.userProfilePictureURL)})})).subscribe(t=>{t&&(this.uploadPercentage=s.percentageChanges(),console.log(t))}),s}}setUserProfileDetails(t,e,n,r,i,o){console.log("pictureEvent",o),this.uploadProfilePicture(o).then(()=>Object(ev.__awaiter)(this,void 0,void 0,(function*(){this.loading=!0,this.authService.getCurrentUser().then(o=>{this.afs.collection("users").doc(o.uid).get().subscribe(s=>{console.log(s.data()),console.log("getUID: "+JSON.stringify(s.data().uid)),console.log("department: "+JSON.stringify(s.data().department)),console.log("organization: "+JSON.stringify(s.data().organization)),console.log("jobTitle: "+JSON.stringify(s.data().jobTitle));const a=this.afs.doc("users/"+o.uid),l={uid:s.data().uid,accountCreated:s.data().accountCreated,email:s.data().email,displayName:s.data().displayName,photoURL:s.data().photoURL,emailVerified:s.data().emailVerified,firstName:t,lastName:e,department:n,organization:r,jobTitle:i,conversations:s.data().conversations,meetingPulseKey:s.data().meetingPulseKey};return a.set(l,{merge:!0}),console.log("Edit profile",l.photoURL),this.localStorageService.setUserDataToLocalStorage(l,"userprofile"),this.loading=!1,this.router.navigate(["user-profile"])})})})))}}return t.\u0275fac=function(e){return new(e||t)(Qt(VT),Qt(Kw),Qt(xN),Qt(sb),Qt(uw),Qt(MC))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function GN(t,e){if(1&t&&(Ls(0,"div",58),Ca(1),Kl(2,"number"),Fs()),2&t){const t=e.ngIf;wi(1),xa(" ",Ql(2,1,t),"% ")}}function $N(t,e){if(1&t&&(Ls(0,"div",46),Ls(1,"div",47),Ls(2,"div",48),Ls(3,"span",49),Ca(4,"Loading..."),Fs(),Fs(),Ls(5,"div",50),Ls(6,"span",49),Ca(7,"Loading..."),Fs(),Fs(),Ls(8,"div",51),Ls(9,"span",49),Ca(10,"Loading..."),Fs(),Fs(),Ls(11,"div",52),Ls(12,"span",49),Ca(13,"Loading..."),Fs(),Fs(),Ls(14,"div",53),Ls(15,"span",49),Ca(16,"Loading..."),Fs(),Fs(),Ls(17,"div",54),Ls(18,"span",49),Ca(19,"Loading..."),Fs(),Fs(),Ls(20,"div",55),Ls(21,"span",49),Ca(22,"Loading..."),Fs(),Fs(),Ls(23,"div",56),Ls(24,"span",49),Ca(25,"Loading..."),Fs(),Fs(),Os(26,GN,3,3,"div",57),Kl(27,"async"),Fs(),Fs()),2&t){const t=Qs();wi(26),Rs("ngIf",Ql(27,1,t.profileService.uploadPercentage))}}function KN(t,e){if(1&t&&(Ls(0,"div",59),js(1,"img",60),Fs()),2&t){const t=Qs();wi(1),Rs("src",t.userProfilePictureURL,Zr)}}function QN(t,e){1&t&&(Ls(0,"span"),Ca(1,"First Name is required"),Fs())}function XN(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,QN,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.firstName.errors.required)}}function YN(t,e){1&t&&(Ls(0,"span"),Ca(1,"Last Name is required"),Fs())}function JN(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,YN,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.lastName.errors.required)}}function ZN(t,e){1&t&&(Ls(0,"span"),Ca(1,"Job Title is required"),Fs())}function tP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,ZN,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.jobTitle.errors.required)}}function eP(t,e){1&t&&(Ls(0,"span"),Ca(1,"Last Name is required"),Fs())}function nP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,eP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.lastName.errors.required)}}function rP(t,e){1&t&&(Ls(0,"span"),Ca(1,"Department is required"),Fs())}function iP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,rP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.department.errors.required)}}function oP(t,e){1&t&&(Ls(0,"span"),Ca(1,"First Name is required"),Fs())}function sP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,oP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.firstName.errors.required)}}function aP(t,e){1&t&&(Ls(0,"span"),Ca(1,"Last Name is required"),Fs())}function lP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,aP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.lastName.errors.required)}}function cP(t,e){1&t&&(Ls(0,"span"),Ca(1,"First Name is required"),Fs())}function uP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,cP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.firstName.errors.required)}}function hP(t,e){1&t&&(Ls(0,"span"),Ca(1,"Last Name is required"),Fs())}function dP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,hP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.lastName.errors.required)}}function pP(t,e){1&t&&(Ls(0,"span"),Ca(1,"Department is required"),Fs())}function fP(t,e){if(1&t&&(Ls(0,"mdb-error"),Os(1,pP,2,0,"span",21),Fs()),2&t){const t=Qs();wi(1),Rs("ngIf",t.validatingForm.controls.department.errors.required)}}let gP=(()=>{class t{constructor(t,e,n,r,i){this.authService=t,this.afs=e,this.toast=n,this.localStorageService=r,this.profileService=i,this.loading=!1,this.selectedFile=null,this.userProfileImageSrc="/assets/default-profile.png",this.pictureEvent=null}ngOnInit(){const t=this.localStorageService.getUserDataFromLocalStorage();this.validatingForm=new Gg({firstName:new Wg("",[sg.required]),lastName:new Wg("",[sg.required]),organization:new Wg(this.userOrganization,[sg.required]),jobTitle:new Wg(this.userJobTitle,[sg.required]),department:new Wg("",[sg.required])}),this.afs.collection("users").doc(t.uid).get().subscribe(t=>{this.validatingForm.patchValue({firstName:t.data().firstName,lastName:t.data().lastName,department:t.data().department,organization:t.data().organization,jobTitle:t.data().jobTitle}),this.userProfilePictureURL=null==t.data().photoURL||""==t.data().photoURL?"/assets/default-profile.png":t.data().photoURL})}get firstName(){return this.validatingForm.get("firstName")}get lastName(){return this.validatingForm.get("lastName")}get department(){return this.validatingForm.get("department")}get organization(){return this.validatingForm.get("organization")}get jobTitle(){return this.validatingForm.get("jobTitle")}get profilePictureURL(){return this.userProfilePictureURL}get profilePictureEvent(){return this.pictureEvent}onFileSelected(t){if(t.target.files[0]){if("image"!==t.target.files[0].type.split("/")[0])return void this.toast.error("","Wrong file type! Please upload an image file",{positionClass:"md-toast-top-center",opacity:100,timeOut:1500});const e=new FileReader;e.onload=t=>this.userProfileImageSrc=t.target.result,e.readAsDataURL(t.target.files[0]),e.onload=t=>{this.userProfilePictureURL=t.target.result},this.pictureEvent=t}else this.pictureEvent=null}saveChanges(){this.toast.success("","Your profile has been updated.",{positionClass:"md-toast-top-center",opacity:100,timeOut:1500}),this.profileService.setUserProfileDetails(this.firstName.value,this.lastName.value,this.department.value,this.organization.value,this.jobTitle.value,this.profilePictureEvent)}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC),Ns(sb),Ns(VT),Ns(Kw),Ns(WN))},t.\u0275cmp=fe({type:t,selectors:[["app-edit-profile"]],inputs:{file:"file"},decls:79,vars:13,consts:[["style","background-color: black; width: 100vw; height: 100vh; top: 0; position: fixed; z-index: 100; padding-top: 50px; opacity: 0.5; text-align: center;",4,"ngIf"],[2,"height","120px"],[1,"row",2,"margin-top","30px"],[1,"col-md-1","col-lg-1","col-xl-1"],[1,"col-xs-12","col-sm-12","col-md-10","col-lg-10","col-xl-10"],[2,"width","100%"],[1,"row","col-12",2,"padding-left","4rem","padding-right","4rem","padding-top","4rem","padding-bottom","4rem"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-2","col-xl-2",2,"text-align","center"],["class","avatar",4,"ngIf"],["size","sm","routerLink","/edit-profile","mdbBtn","","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-1","d-none","d-md-block",2,"margin-left","3rem","margin","0 auto","background-color","#ff6600",3,"click"],["fas","","icon","camera",1,"mr-1"],[1,"form-group","col-12"],["type","file","id","file","hidden","","name","image","autocomplete","off",3,"change"],["userUploadButton",""],["size","md","routerLink","/edit-profile","mdbBtn","","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-1","d-block","d-md-none",2,"margin-left","3rem","margin","0 auto","width","100%","background-color","#ff6600",3,"click"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-10","col-xl-10",2,"text-align","center"],[1,"text-center",2,"color","#757575",3,"formGroup"],[1,"d-block","d-md-none"],[1,"md-form",2,"width","100%"],["mdbInput","","mdbValidate","","type","text","formControlName","firstName","id","firstNameInputForSmallScreens",1,"form-control"],["for","firstNameInputForSmallScreens"],[4,"ngIf"],["mdbInput","","mdbValidate","","type","text","formControlName","lastName","id","lastNameInputForSmallScreen",1,"form-control"],["for","lastNameInputForSmallScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","jobTitle","id","jobTitleInputInputForSmallScreen",1,"form-control"],["for","jobTitleInputInputForSmallScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","organization","id","organizationInputForSmallScreen",1,"form-control"],["for","organizationInputForSmallScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","department","id","departmentInputForSmallScreen",1,"form-control"],["for","departmentInputForSmallScreen"],[1,"d-none","d-md-block",2,"margin-left","3rem"],[1,"row"],[1,"md-form",2,"width","47.5%","margin-right","5%"],["mdbInput","","mdbValidate","","type","text","formControlName","firstName","id","firstNameInputForLargeScreens",1,"form-control"],["for","firstNameInputForLargeScreens"],[1,"md-form",2,"width","47.5%"],["mdbInput","","mdbValidate","","type","text","formControlName","lastName","id","lastNameInputForLargeScreen",1,"form-control"],["for","lastNameInputForLargeScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","jobTitle","id","jobTitleInputForLargeScreen",1,"form-control"],["for","jobTitleInputForLargeScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","organization","id","organizationInputForLargeScreen",1,"form-control"],["for","organizationInputForLargeScreen"],["mdbInput","","mdbValidate","","type","text","formControlName","department","id","departmentInputForLargeScreen",1,"form-control"],["for","departmentInputForLargeScreen"],["mdbBtn","","rounded","true","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-1","update-button","d-none","d-md-block",2,"margin-left","3rem","background-color","#ff6600",3,"click"],["size","md","rounded","true","mdbWavesEffect","",1,"my-4","waves-effect","z-depth-1","d-block","d-md-none",2,"margin-left","3rem","margin","0 auto","width","100%","background-color","#ff6600",3,"click"],[2,"background-color","black","width","100vw","height","100vh","top","0","position","fixed","z-index","100","padding-top","50px","opacity","0.5","text-align","center"],[2,"margin-top","40vh"],["role","status",1,"spinner-grow","text-primary"],[1,"sr-only"],["role","status",1,"spinner-grow","text-secondary"],["role","status",1,"spinner-grow","text-success"],["role","status",1,"spinner-grow","text-danger"],["role","status",1,"spinner-grow","text-warning"],["role","status",1,"spinner-grow","text-info"],["role","status",1,"spinner-grow","text-light"],["role","status",1,"spinner-grow","text-dark"],["class","white-text h1",4,"ngIf"],[1,"white-text","h1"],[1,"avatar"],[1,"rounded","z-depth-1-half",2,"max-width","100%",3,"src"]],template:function(t,e){if(1&t){const t=Bs();Os(0,$N,28,3,"div",0),js(1,"div",1),Ls(2,"div",2),js(3,"div",3),Ls(4,"div",4),Ls(5,"mdb-card",5),Ls(6,"div",6),Ls(7,"div",7),Os(8,KN,2,1,"div",8),Ls(9,"button",9),qs("click",(function(){return Je(t),As(14).click()})),js(10,"mdb-icon",10),Ca(11,"Upload "),Fs(),Ls(12,"div",11),Ls(13,"input",12,13),qs("change",(function(t){return e.onFileSelected(t)})),Fs(),Fs(),Ls(15,"button",14),qs("click",(function(){return Je(t),As(14).click()})),js(16,"mdb-icon",10),Ca(17,"Upload "),Fs(),Fs(),Ls(18,"div",15),Ls(19,"form",16),Ls(20,"div",17),Ls(21,"div",18),js(22,"input",19),Ls(23,"label",20),Ca(24,"First Name"),Fs(),Os(25,XN,2,1,"mdb-error",21),Fs(),Ls(26,"div",18),js(27,"input",22),Ls(28,"label",23),Ca(29,"Last Name"),Fs(),Os(30,JN,2,1,"mdb-error",21),Fs(),Ls(31,"div",18),js(32,"input",24),Ls(33,"label",25),Ca(34,"Job Title"),Fs(),Os(35,tP,2,1,"mdb-error",21),Fs(),Ls(36,"div",18),js(37,"input",26),Ls(38,"label",27),Ca(39,"Organisation"),Fs(),Os(40,nP,2,1,"mdb-error",21),Fs(),Ls(41,"div",18),js(42,"input",28),Ls(43,"label",29),Ca(44,"Department"),Fs(),Os(45,iP,2,1,"mdb-error",21),Fs(),Fs(),Ls(46,"div",30),Ls(47,"div",31),Ls(48,"div",32),js(49,"input",33),Ls(50,"label",34),Ca(51,"First Name"),Fs(),Os(52,sP,2,1,"mdb-error",21),Fs(),Ls(53,"div",35),js(54,"input",36),Ls(55,"label",37),Ca(56,"Last Name"),Fs(),Os(57,lP,2,1,"mdb-error",21),Fs(),Fs(),Ls(58,"div",31),Ls(59,"div",32),js(60,"input",38),Ls(61,"label",39),Ca(62,"Job Title"),Fs(),Os(63,uP,2,1,"mdb-error",21),Fs(),Ls(64,"div",35),js(65,"input",40),Ls(66,"label",41),Ca(67,"Organisation"),Fs(),Os(68,dP,2,1,"mdb-error",21),Fs(),Fs(),Ls(69,"div",31),Ls(70,"div",32),js(71,"input",42),Ls(72,"label",43),Ca(73,"Department"),Fs(),Os(74,fP,2,1,"mdb-error",21),Fs(),Fs(),Fs(),Fs(),Ls(75,"button",44),qs("click",(function(){return e.saveChanges()})),Ca(76,"Save"),Fs(),Ls(77,"button",45),qs("click",(function(){return e.saveChanges()})),Ca(78,"Save"),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()}2&t&&(Rs("ngIf",e.profileService.loading),wi(8),Rs("ngIf",e.userProfilePictureURL),wi(11),Rs("formGroup",e.validatingForm),wi(6),Rs("ngIf",e.validatingForm.controls.firstName.invalid&&(e.validatingForm.controls.firstName.dirty||e.validatingForm.controls.firstName.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.lastName.invalid&&(e.validatingForm.controls.lastName.dirty||e.validatingForm.controls.lastName.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.jobTitle.invalid&&(e.validatingForm.controls.jobTitle.dirty||e.validatingForm.controls.jobTitle.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.lastName.invalid&&(e.validatingForm.controls.lastName.dirty||e.validatingForm.controls.lastName.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.department.invalid&&(e.validatingForm.controls.department.dirty||e.validatingForm.controls.department.touched)),wi(7),Rs("ngIf",e.validatingForm.controls.firstName.invalid&&(e.validatingForm.controls.firstName.dirty||e.validatingForm.controls.firstName.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.lastName.invalid&&(e.validatingForm.controls.lastName.dirty||e.validatingForm.controls.lastName.touched)),wi(6),Rs("ngIf",e.validatingForm.controls.firstName.invalid&&(e.validatingForm.controls.firstName.dirty||e.validatingForm.controls.firstName.touched)),wi(5),Rs("ngIf",e.validatingForm.controls.lastName.invalid&&(e.validatingForm.controls.lastName.dirty||e.validatingForm.controls.lastName.touched)),wi(6),Rs("ngIf",e.validatingForm.controls.department.invalid&&(e.validatingForm.controls.department.dirty||e.validatingForm.controls.department.touched)))},directives:[Eh,FS,hw,AS,xT,$k,Kk,om,eg,um,$f,nT,tT,tg,vm,Yk],pipes:[Fh,Uh],styles:[".col[_ngcontent-%COMP%], .col-1[_ngcontent-%COMP%], .col-2[_ngcontent-%COMP%], .col-3[_ngcontent-%COMP%], .col-4[_ngcontent-%COMP%], .col-5[_ngcontent-%COMP%], .col-6[_ngcontent-%COMP%], .col-7[_ngcontent-%COMP%], .col-8[_ngcontent-%COMP%], .col-9[_ngcontent-%COMP%], .col-10[_ngcontent-%COMP%], .col-11[_ngcontent-%COMP%], .col-12[_ngcontent-%COMP%], .col-auto[_ngcontent-%COMP%], .col-lg[_ngcontent-%COMP%], .col-lg-1[_ngcontent-%COMP%], .col-lg-2[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%], .col-lg-4[_ngcontent-%COMP%], .col-lg-5[_ngcontent-%COMP%], .col-lg-6[_ngcontent-%COMP%], .col-lg-7[_ngcontent-%COMP%], .col-lg-8[_ngcontent-%COMP%], .col-lg-9[_ngcontent-%COMP%], .col-lg-10[_ngcontent-%COMP%], .col-lg-11[_ngcontent-%COMP%], .col-lg-12[_ngcontent-%COMP%], .col-lg-auto[_ngcontent-%COMP%], .col-md[_ngcontent-%COMP%], .col-md-1[_ngcontent-%COMP%], .col-md-2[_ngcontent-%COMP%], .col-md-3[_ngcontent-%COMP%], .col-md-4[_ngcontent-%COMP%], .col-md-5[_ngcontent-%COMP%], .col-md-6[_ngcontent-%COMP%], .col-md-7[_ngcontent-%COMP%], .col-md-8[_ngcontent-%COMP%], .col-md-9[_ngcontent-%COMP%], .col-md-10[_ngcontent-%COMP%], .col-md-11[_ngcontent-%COMP%], .col-md-12[_ngcontent-%COMP%], .col-md-auto[_ngcontent-%COMP%], .col-sm[_ngcontent-%COMP%], .col-sm-1[_ngcontent-%COMP%], .col-sm-2[_ngcontent-%COMP%], .col-sm-3[_ngcontent-%COMP%], .col-sm-4[_ngcontent-%COMP%], .col-sm-5[_ngcontent-%COMP%], .col-sm-6[_ngcontent-%COMP%], .col-sm-7[_ngcontent-%COMP%], .col-sm-8[_ngcontent-%COMP%], .col-sm-9[_ngcontent-%COMP%], .col-sm-10[_ngcontent-%COMP%], .col-sm-11[_ngcontent-%COMP%], .col-sm-12[_ngcontent-%COMP%], .col-sm-auto[_ngcontent-%COMP%], .col-xl[_ngcontent-%COMP%], .col-xl-1[_ngcontent-%COMP%], .col-xl-2[_ngcontent-%COMP%], .col-xl-3[_ngcontent-%COMP%], .col-xl-4[_ngcontent-%COMP%], .col-xl-5[_ngcontent-%COMP%], .col-xl-6[_ngcontent-%COMP%], .col-xl-7[_ngcontent-%COMP%], .col-xl-8[_ngcontent-%COMP%], .col-xl-9[_ngcontent-%COMP%], .col-xl-10[_ngcontent-%COMP%], .col-xl-11[_ngcontent-%COMP%], .col-xl-12[_ngcontent-%COMP%], .col-xl-auto[_ngcontent-%COMP%]{position:relative;width:100%;padding-right:0;padding-left:0}.update-button[_ngcontent-%COMP%]{float:right}.btn[_ngcontent-%COMP%]{box-shadow:0 2px 5px 0 rgba(0,0,0,.16),0 2px 10px 0 rgba(0,0,0,.12);padding:.84rem 2.14rem;font-size:.81rem;transition:.2s ease-in-out;margin:0;border:0;border-radius:.125rem;cursor:pointer;text-transform:uppercase;white-space:normal;word-wrap:break-word;color:#fff}.flush-left[_ngcontent-%COMP%]{text-align:left;text-align-last:left;-moz-text-align-last:left}.center[_ngcontent-%COMP%]{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.card[_ngcontent-%COMP%]{border-radius:.5rem}input[type=text][_ngcontent-%COMP%], input[type=text][_ngcontent-%COMP%]:focus{outline:unset!important}.md-form[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{border-bottom-width:1px;border-bottom-style:solid;border-bottom:1px solid #000!important}"]}),t})(),mP=(()=>{class t{constructor(t){this.authService=t}ngOnInit(){this.validatingForm=new Gg({email:new Wg(null,[sg.required,sg.email])})}get email(){return this.validatingForm.get("email")}}return t.\u0275fac=function(e){return new(e||t)(Ns(MC))},t.\u0275cmp=fe({type:t,selectors:[["app-forgot-password"]],decls:26,vars:2,consts:[[1,"row","col-12"],[1,"d-none","d-md-block","row","col-12",2,"margin-top","20vh"],[1,"d-block","d-md-none","row","col-12",2,"margin-top","10vh"],[1,"col-md-2","col-lg-2","col-xl-2"],[1,"col-xs-12","col-sm-12","col-md-8","col-lg-8","col-xl-8","grey","lighten-2",2,"opacity","0.85"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-6","col-xl-6",2,"text-align","center"],["src","../../assets/now-logo.png",1,"vertical-center",2,"margin","0 auto","max-width","100%"],[1,"col-xs-12","col-sm-12","col-md-12","col-lg-6","col-xl-6"],[1,"text-center",2,"color","#757575","margin-top","5rem",3,"formGroup"],[1,"md-form","mt-0"],["mdbInput","","mdbValidate","","type","email","formControlName","email",1,"form-control"],["mdbBtn","","rounded","true","mdbWavesEffect","","type","submit",1,"my-4","waves-effect","z-depth-0",2,"width","300px","max-width","100%","margin","0 auto","background-color","#ff6600","color","white",3,"click"],[2,"float","left"],[3,"routerLink"],[1,"d-block","d-md-none","row","col-12",2,"margin-bottom","10vh"]],template:function(t,e){1&t&&(Ls(0,"body"),Ls(1,"div",0),js(2,"div",1),js(3,"div",2),js(4,"div",3),Ls(5,"mdb-card",4),Ls(6,"mdb-card-body",0),Ls(7,"div",5),js(8,"img",6),js(9,"br"),Fs(),Ls(10,"div",7),Ls(11,"form",8),Ls(12,"div",9),js(13,"input",10),Ls(14,"label"),Ca(15,"E-mail"),Fs(),Fs(),Ls(16,"button",11),qs("click",(function(){return e.authService.forgotPassword(e.email.value)})),Ca(17,"Reset Password"),Fs(),js(18,"hr"),Ls(19,"div"),Ls(20,"p",12),Ca(21,"Go back to "),Ls(22,"a",13),Ca(23,"Login"),Fs(),Ca(24,"."),Fs(),Fs(),Fs(),Fs(),Fs(),Fs(),js(25,"div",14),Fs(),Fs()),2&t&&(wi(11),Rs("formGroup",e.validatingForm),wi(11),Rs("routerLink","/login"))},directives:[FS,LS,om,eg,um,$f,nT,tT,tg,vm,AS,xT,dw],styles:["body[_ngcontent-%COMP%]{background-image:url(bg.21fe6452b8217cae808d.png);background-position:50%;width:100%;min-height:100vh;background-size:cover;text-align:center}"]}),t})();var vP="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),bP=new Uint8Array(16);function yP(){if(!vP)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vP(bP)}for(var _P=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,wP=function(t){return"string"==typeof t&&_P.test(t)},CP=[],EP=0;EP<256;++EP)CP.push((EP+256).toString(16).substr(1));var xP=function(t,e,n){var r=(t=t||{}).random||(t.rng||yP)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(CP[t[e+0]]+CP[t[e+1]]+CP[t[e+2]]+CP[t[e+3]]+"-"+CP[t[e+4]]+CP[t[e+5]]+"-"+CP[t[e+6]]+CP[t[e+7]]+"-"+CP[t[e+8]]+CP[t[e+9]]+"-"+CP[t[e+10]]+CP[t[e+11]]+CP[t[e+12]]+CP[t[e+13]]+CP[t[e+14]]+CP[t[e+15]]).toLowerCase();if(!wP(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let SP=(()=>{class t{constructor(t,e){this.afs=t,this.router=e}getAllNetworkingRooms(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return this.afs.collection("networkingRooms").snapshotChanges()}))}updateUserCount(t,e){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){yield iv.firestore().runTransaction(n=>Object(ev.__awaiter)(this,void 0,void 0,(function*(){return n.get(iv.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s")).then(r=>{let i=r.data()[t];if(i[1]+=e,i[1]<=0){if("static-1"==t||"static-2"==t||"static-3"==t)return;n.update(iv.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s"),{[t]:iv.firestore.FieldValue.delete()})}else n.update(iv.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s"),{[t]:i})})}))).then(t=>{console.log("Transaction completed!")})}))}getRoomCount(t){return new Promise((e,n)=>{this.afs.collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s").get().subscribe(n=>{let r=n.data()[t];e(r[1]<5?"pass":void 0===r[1]?"undefined room":"more than 5")})})}createNetworkingRoom(t,e){return this.afs.doc("networkingRooms/QN4lbiXxd6aCeD9mno9s").set({[t]:[e,0]},{merge:!0})}getAllUsers(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){return new Promise((t,e)=>{this.afs.collection("users").get().subscribe(e=>{t(e)})})}))}}return t.\u0275fac=function(e){return new(e||t)(Qt(sb),Qt(uw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function kP(t,e){if(1&t){const t=Bs();Ls(0,"div"),Ls(1,"button",45),qs("click",(function(){return Je(t),Qs().resetFilter()})),Ca(2,"Clear search fields"),Fs(),Fs()}}function TP(t,e){if(1&t){const t=Bs();Ls(0,"div",46),Ls(1,"button",47),qs("click",(function(){return Je(t),Qs().resetFilter()})),Ca(2,"Clear search fields"),Fs(),Fs()}}function IP(t,e){if(1&t&&(Ls(0,"div",48),Ls(1,"mdb-card",49),js(2,"mdb-card-img",50),Ls(3,"mdb-card-body"),Ls(4,"mdb-card-title"),Ls(5,"h4"),Ca(6),Fs(),Fs(),Ls(7,"mdb-card-text"),Ca(8),js(9,"br"),Ca(10),js(11,"br"),Ca(12),Fs(),Ls(13,"a",51),Ca(14,"View Profile"),Fs(),Fs(),Fs(),Fs()),2&t){const t=e.$implicit;wi(2),Zs("src",null==t?null:t.photoUrl),wi(4),xa("",t.firstName+" "+t.lastName," "),wi(2),xa(" Department: ",t.department," "),wi(2),xa(" Organisation: ",t.organization," "),wi(2),xa(" Job Title: ",t.jobTitle," "),wi(1),ta("routerLink","/user-profile/",null==t?null:t.uid,"")}}function OP(t,e){1&t&&(Ls(0,"div",52),Ls(1,"div",53),Ls(2,"span",54),Ca(3,"Loading..."),Fs(),Fs(),Fs())}function AP(t,e){1&t&&js(0,"img",68)}function NP(t,e){1&t&&js(0,"img",68)}function PP(t,e){1&t&&js(0,"img",69)}function DP(t,e){1&t&&js(0,"img",70)}function RP(t,e){1&t&&js(0,"img",71)}function MP(t,e){1&t&&js(0,"img",72)}function LP(t,e){1&t&&js(0,"img",73)}function FP(t,e){1&t&&(Ls(0,"div",74),Ls(1,"p",75),Ca(2,"Room Full"),Fs(),Fs())}function jP(t,e){1&t&&js(0,"img",73)}function UP(t,e){if(1&t){const t=Bs();Us(0,55),Ls(1,"div",56),Ls(2,"div",57),qs("click",(function(){Je(t);const n=e.$implicit;return Qs().navigateToRoom(n.roomId)})),Os(3,AP,1,0,"img",58),Os(4,NP,1,0,"img",58),Os(5,PP,1,0,"img",59),Os(6,DP,1,0,"img",60),Os(7,RP,1,0,"img",61),Os(8,MP,1,0,"img",62),Os(9,LP,1,0,"img",63),Os(10,FP,3,0,"div",64),Os(11,jP,1,0,"img",65),Ls(12,"div",66),Ca(13),Fs(),Ls(14,"div",67),Ca(15),Fs(),Fs(),Fs(),Vs()}if(2&t){const t=e.$implicit;Rs("ngSwitch",t.count),wi(3),Rs("ngSwitchCase",-1),wi(1),Rs("ngSwitchCase",0),wi(1),Rs("ngSwitchCase",1),wi(1),Rs("ngSwitchCase",2),wi(1),Rs("ngSwitchCase",3),wi(1),Rs("ngSwitchCase",4),wi(1),Rs("ngSwitchCase",5),wi(1),Rs("ngSwitchCase",5),wi(3),Ea(t.roomName),wi(2),xa("",t.count,"/5")}}function VP(t,e){1&t&&(Ls(0,"mdb-error"),Ca(1," Please input a valid room name. "),Fs())}function BP(t,e){1&t&&js(0,"mdb-success")}let HP=(()=>{class t{constructor(t,e,n){this.apiService=t,this.networkService=e,this.router=n,this.customOptions={autoplay:!0,loop:!0,nav:!1,margin:10,mouseDrag:!1,touchDrag:!1,pullDrag:!1,dots:!0,navSpeed:700,responsive:{0:{items:1},400:{items:1},740:{items:1},940:{items:1}}},this.networkingRoomStore=[],this.staticNetworkingRoomStore=[],this.users=[],this.staticUsers=[],this.department="",this.searchField="",this.numberOfVisibleUsers=9,this.visibleUsersOnInfiniteScroll=[],this.infiniteScrollLoading=!1,this.filtered=!1,this.sponsorSlideStore=[]}ngOnInit(){this.getAllRooms(),this.getAllUsers().then(()=>{this.users.length(""==this.department||t.department==this.department)&&(t.organization.toLowerCase().includes(this.searchField.toLowerCase())||t.firstName.concat(" "+t.lastName).toLowerCase().includes(this.searchField.toLowerCase()))),this.visibleUsersOnInfiniteScroll=[];for(let t=0;t(""==this.roomName||t.count==this.count)&&t.roomName.toLowerCase().includes(this.roomName.toLowerCase()))}filterRoomCount(){this.networkingRoomStore=this.staticNetworkingRoomStore.filter(t=>(""==this.roomName||t.count==this.count)&&t.roomName.toLowerCase().includes(this.roomName.toLowerCase()))}resetFilter(){this.filtered=!1,this.department="",this.searchField="",this.users=this.staticUsers,this.visibleUsersOnInfiniteScroll=[];for(let t=0;t{this.networkingRoomStore=[];let e=t[0].payload.doc.data();for(let n in e)this.networkingRoomStore.push({roomId:n,roomName:e[n][0],count:e[n][1]});this.networkingRoomStore.sort((t,e)=>e.count-t.count)})}))}getAllUsers(){return Object(ev.__awaiter)(this,void 0,void 0,(function*(){yield this.networkService.getAllUsers().then(t=>{for(let e=0;e{"pass"==e?this.router.navigate(["networking/room",t],{skipLocationChange:!1}):window.alert("Room is full, please try another room.")})}ngOnDestroy(){}onInfiniteScroll(){console.log("scrolled"),console.log(this.users),this.infiniteScrollLoading=!0,setTimeout(()=>{let t=6,e=this.visibleUsersOnInfiniteScroll.length;this.visibleUsersOnInfiniteScroll.length+t>this.users.length&&(t=this.users.length-this.visibleUsersOnInfiniteScroll.length);for(let n=e;n{const n=t=>{e.next(t)};return this.ioSocket.on(t,n),()=>{this.subscribersCounter[t]--,0===this.subscribersCounter[t]&&(this.ioSocket.removeListener(t,n),delete this.eventObservables$[t])}}).pipe(et())),this.eventObservables$[t]}fromOneTimeEvent(t){return new Promise(e=>this.once(t,e))}}function $P(t){return new GP(t)}const KP=new Ut("__SOCKET_IO_CONFIG__");let QP=(()=>{let t=zP=class{static forRoot(t){return{ngModule:zP,providers:[{provide:KP,useValue:t},{provide:GP,useFactory:$P,deps:[KP]}]}}};return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)}}),t})();const XP=["videogrid"],YP=["controls"];function JP(t,e){if(1&t){const t=Bs();Ls(0,"mdb-icon",16),qs("click",(function(){return Je(t),Qs().muteUnmute()})),Fs()}}function ZP(t,e){if(1&t){const t=Bs();Ls(0,"mdb-icon",17),qs("click",(function(){return Je(t),Qs().muteUnmute()})),Fs()}}function tD(t,e){if(1&t){const t=Bs();Ls(0,"mdb-icon",18),qs("click",(function(){return Je(t),Qs().cameraMuteUnmute()})),Fs()}}function eD(t,e){if(1&t){const t=Bs();Ls(0,"mdb-icon",19),qs("click",(function(){return Je(t),Qs().cameraMuteUnmute()})),Fs()}}let nD=(()=>{class t{constructor(t,e,n,r,i,o){this.renderer=t,this.socket=e,this.networkService=n,this.activatedRoute=r,this.router=i,this.localStorageService=o,this.SERVERS={iceServers:[{url:"turn:turn.codekakis.com:5349",username:"test",credential:"test"},{url:"stun:stun.codekakis.com:5349"},{url:"stun:stun.services.mozilla.com"},{url:"stun:stun.l.google.com:19302"}]},this.muted=!1,this.cameramute=!1,this.micStatus="Microphone On",this.videoStatus="Camera On",this.controlsStatus="Hide Controls",this.peers={},this.videoInput=!1,this.audioOutput=!1}ngOnInit(){this.ROOM_ID=this.activatedRoute.snapshot.params.roomid,this.networkService.getRoomCount(this.ROOM_ID).then(t=>{"more than 5"==t?(window.alert("Number of people in room exceeded, please try again later."),this.router.navigate(["/networking"])):"undefined room"==t&&(window.alert("Non-existing room, please select the available rooms from the networking lounge."),this.router.navigate(["/networking"]))}),this.socket.connect()}ngAfterViewInit(){Promise.resolve().then(()=>{this.collapses.forEach(t=>{t.toggle()})});let t=this.renderer.createElement("div");this.renderer.addClass(t,"outer"),this.renderer.addClass(t,"col-4"),this.renderer.addClass(t,"mt-2"),this.renderer.setStyle(t,"margin-left","auto"),this.renderer.setStyle(t,"margin-right","auto");let e=this.renderer.createElement("video");this.renderer.setProperty(e,"muted","muted");let n=this.renderer.createElement("p"),r=this.localStorageService.getUserDataFromLocalStorage().firstName,i=this.localStorageService.getUserDataFromLocalStorage().lastName,o=this.localStorageService.getUserDataFromLocalStorage().uid,s=r+" "+i;navigator.mediaDevices.enumerateDevices().then(t=>{t.forEach(t=>{"videoinput"==t.kind&&(this.videoInput=!0),"audiooutput"==t.kind&&(this.audioOutput=!0)})}).then(()=>{navigator.mediaDevices.getUserMedia({video:!1,audio:this.audioOutput}).then(r=>{this.peer=new Peer({id:o,config:this.SERVERS,host:"api.codekakis.com",path:"/peerjs",port:"443",secure:!0}),this.peer.disconnected&&this.peer.open&&this.peer.reconnect(),this.addVideoStream(e,r,n,t),this.stream=r,this.renderer.setProperty(n,"innerHTML","  "+s+"  "),this.renderer.addClass(n,"top-left-name"),this.peer.on("call",t=>{t.answer(r),this.call=t;const e=this.renderer.createElement("div"),n=this.renderer.createElement("video"),i=this.renderer.createElement("p");this.renderer.addClass(i,"top-left-name"),this.renderer.addClass(e,"outer"),this.renderer.addClass(e,"col-4"),this.renderer.addClass(e,"mt-2"),this.renderer.setStyle(e,"margin-left","auto"),this.renderer.setStyle(e,"margin-right","auto"),this.renderer.setProperty(i,"innerHTML",t.metadata.name),this.peers[t.metadata.caller]=t,t.on("stream",t=>{this.addVideoStream(n,t,i,e)})}),this.socket.on("user-connected",(t,e)=>{this.connectToNewUser(t,r,e,this.mypeerid)}),this.peer.on("open",t=>{this.mypeerid=t,this.networkService.updateUserCount(this.ROOM_ID,1),this.socket.emit("join-room",this.ROOM_ID,t,s)})},t=>{switch(t.name){case"NotFoundError":case"DevicesNotFoundError":window.alert("Please setup your webcam first."),this.error=!0,this.router.navigate(["/networking"]);break;case"SourceUnavailableError":window.alert("Your webcam is busy"),this.error=!0,this.router.navigate(["/networking"]);break;case"PermissionDeniedError":case"SecurityError":window.alert("Permission denied!"),this.error=!0,this.router.navigate(["/networking"]);break;case"NotAllowedError":window.alert("Please allow webcam permission"),this.error=!0,this.router.navigate(["/networking"]);default:window.alert(""+t),this.error=!0,this.router.navigate(["/networking"])}})}),this.socket.on("user-disconnected",t=>{if(this.peers[t]){this.peers[t].close();let n=Object.keys(this.peers);try{-1!==n.findIndex(e=>e===t)&&(0==n.findIndex(e=>e===t)?this.renderer.removeChild(this.videoGrid.nativeElement,this.videoGrid.nativeElement.children[n.findIndex(e=>e===t)+1]):this.renderer.removeChild(this.videoGrid.nativeElement,this.videoGrid.nativeElement.children[n.findIndex(e=>e===t)]))}catch(e){}delete this.peers[t]}})}connectToNewUser(t,e,n,r){let i=this.localStorageService.getUserDataFromLocalStorage().firstName,o=this.localStorageService.getUserDataFromLocalStorage().lastName,s=this.peer.call(t,e,{metadata:{name:i+" "+o,caller:r}});if(void 0===s)return;const a=this.renderer.createElement("video"),l=this.renderer.createElement("div");this.renderer.addClass(l,"outer"),this.renderer.addClass(l,"col-4"),this.renderer.addClass(l,"mt-2"),this.renderer.setStyle(l,"margin-left","auto"),this.renderer.setStyle(l,"margin-right","auto"),this.renderer.setProperty(a,"id",t);let c=this.renderer.createElement("p");this.renderer.setProperty(c,"id",t),this.renderer.setProperty(c,"innerHTML","  "+n+"  "),this.renderer.addClass(c,"top-left-name"),s.on("stream",t=>{this.addVideoStream(a,t,c,l)}),s.on("close",()=>{delete this.peers[t],this.renderer.removeChild(this.videoGrid.nativeElement,l)}),this.peers[t]=s}addVideoStream(t,e,n,r){t.srcObject=e,t.addEventListener("loadedmetadata",()=>{t.play()}),this.renderer.appendChild(r,n),this.renderer.appendChild(r,t),this.renderer.appendChild(this.videoGrid.nativeElement,r)}disconnect(){this.router.navigate(["/networking"])}muteUnmute(){this.muted=!this.muted,this.muted?null!=this.stream.getAudioTracks()[0]&&(this.stream.getAudioTracks()[0].enabled=!1,this.micStatus="Microphone Off"):null!=this.stream.getAudioTracks()[0]&&(this.stream.getAudioTracks()[0].enabled=!0,this.micStatus="Microphone On")}cameraMuteUnmute(){this.cameramute=!this.cameramute,this.cameramute?null!=this.stream.getVideoTracks()[0]&&(this.stream.getVideoTracks()[0].enabled=!1,this.videoStatus="Camera Off"):null!=this.stream.getVideoTracks()[0]&&(this.stream.getVideoTracks()[0].enabled=!0,this.videoStatus="Camera On")}hideUnhideControls(){this.controlsStatus=this.controlsCollapsible.isCollapsed?"Show Controls":"Hide Controls"}ngOnDestroy(){this.error?console.log("error?"):(null!=this.stream&&this.stream.getTracks().forEach(t=>t.stop()),this.socket.emit("disconnect",this.ROOM_ID,this.mypeerid),this.socket.disconnect(),null!=this.peer&&this.peer.disconnect(),null!=this.stream&&this.stream.getTracks().forEach(t=>t.stop()))}}return t.\u0275fac=function(e){return new(e||t)(Ns(tl),Ns(GP),Ns(SP),Ns(e_),Ns(uw),Ns(Kw))},t.\u0275cmp=fe({type:t,selectors:[["app-room"]],viewQuery:function(t,e){var n;1&t&&(dc(XP,!0),dc(YP,!0),dc(JS,!0)),2&t&&(uc(n=gc())&&(e.videoGrid=n.first),uc(n=gc())&&(e.controlsCollapsible=n.first),uc(n=gc())&&(e.collapses=n))},decls:25,vars:8,consts:[[2,"height","calc(100vh - 120px)","margin-top","120px"],["mdbBtn","","color","black","type","button","mdbWavesEffect","",1,"waves-light",2,"position","absolute","bottom","0","z-index","10","opacity","50%","border-radius","50px",3,"click"],[1,"row","col-12"],["videogrid",""],["mdbCollapse","",1,"row","col-12",2,"position","absolute","bottom","0",3,"isCollapsed"],["controls","bs-collapse"],[1,"col-3"],[1,"col-6",2,"width","100%","height","15vh","background-color","black","opacity","50%","border-top-left-radius","25px","border-top-right-radius","25px"],[1,"row","col-12",2,"height","100%"],[1,"col-2",2,"text-align","center"],["class","white-text","fas","","size","4x","icon","microphone-slash","style","cursor: pointer; margin-top: calc((15vh - 64px - 24px) / 2);",3,"click",4,"ngIf"],["class","white-text","fas","","size","4x","icon","microphone","style","cursor: pointer; margin-top: calc((15vh - 64px - 24px) / 2);",3,"click",4,"ngIf"],[1,"white-text"],["class","white-text","fas","","size","4x","icon","video-slash","style","cursor: pointer; margin-top: calc((15vh - 64px - 24px) / 2);",3,"click",4,"ngIf"],["class","white-text","fas","","size","4x","icon","video","style","cursor: pointer; margin-top: calc((15vh - 64px - 24px) / 2);",3,"click",4,"ngIf"],["fas","","size","4x","icon","phone-slash",1,"white-text",2,"cursor","pointer","margin-top","calc((15vh - 64px - 24px) / 2)",3,"click"],["fas","","size","4x","icon","microphone-slash",1,"white-text",2,"cursor","pointer","margin-top","calc((15vh - 64px - 24px) / 2)",3,"click"],["fas","","size","4x","icon","microphone",1,"white-text",2,"cursor","pointer","margin-top","calc((15vh - 64px - 24px) / 2)",3,"click"],["fas","","size","4x","icon","video-slash",1,"white-text",2,"cursor","pointer","margin-top","calc((15vh - 64px - 24px) / 2)",3,"click"],["fas","","size","4x","icon","video",1,"white-text",2,"cursor","pointer","margin-top","calc((15vh - 64px - 24px) / 2)",3,"click"]],template:function(t,e){if(1&t){const t=Bs();Ls(0,"div",0),Ls(1,"button",1),qs("click",(function(){return Je(t),As(6).toggle(),e.hideUnhideControls()})),Ca(2),Fs(),js(3,"div",2,3),Ls(5,"div",4,5),js(7,"div",6),Ls(8,"div",7),Ls(9,"div",8),js(10,"div",6),Ls(11,"div",9),Os(12,JP,1,0,"mdb-icon",10),Os(13,ZP,1,0,"mdb-icon",11),Ls(14,"div",12),Ca(15),Fs(),Fs(),Ls(16,"div",9),Os(17,tD,1,0,"mdb-icon",13),Os(18,eD,1,0,"mdb-icon",14),Ls(19,"div",12),Ca(20),Fs(),Fs(),Ls(21,"div",9),Ls(22,"mdb-icon",15),qs("click",(function(){return e.disconnect()})),Fs(),Ls(23,"div",12),Ca(24,"Disconnect"),Fs(),Fs(),Fs(),Fs(),Fs(),Fs()}2&t&&(wi(2),xa(" ",e.controlsStatus," "),wi(3),Rs("isCollapsed",!0),wi(7),Rs("ngIf",e.muted),wi(1),Rs("ngIf",!e.muted),wi(2),Ea(e.micStatus),wi(2),Rs("ngIf",e.cameramute),wi(1),Rs("ngIf",!e.cameramute),wi(2),Ea(e.videoStatus))},directives:[AS,xT,JS,Eh,$k,Kk],styles:[".top-left-name[_ngcontent-%COMP%]{position:absolute;top:4%;left:5%;font-size:1rem;background-color:#000;color:#fff;opacity:1%;border-radius:20px}.outer[_ngcontent-%COMP%]{position:relative}#video-grid[_ngcontent-%COMP%]{width:100%;height:calc(100vh - 120px)}video[_ngcontent-%COMP%]{width:100%;height:calc((100vh - 120px)/2 - 1rem);-o-object-fit:cover;object-fit:cover}"]}),t})(),rD=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=fe({type:t,selectors:[["app-pre-recorded"]],decls:16,vars:0,consts:[[1,"primaryColor",2,"height","120px"],[1,"row","col-12","primaryColor"],[1,"col-1"],[1,"col-10"],[1,"white-text",2,"margin","1.2rem"],[1,"row","col-10"],[1,"col-12","embed-container"],["src","https://player.vimeo.com/video/309852681","frameborder","0","webkitAllowFullScreen","","mozallowfullscreen","","allowFullScreen",""],[1,"primaryColor",2,"height","50px"],[1,"primaryColor",2,"height","220px"]],template:function(t,e){1&t&&(js(0,"div",0),Ls(1,"div",1),js(2,"div",2),Ls(3,"div",3),Ls(4,"h2",4),Ls(5,"b"),Ca(6,"Presentation Title"),Fs(),Fs(),Fs(),Fs(),Ls(7,"div",1),js(8,"div",2),Ls(9,"div",5),Ls(10,"div",6),js(11,"iframe",7),Fs(),Fs(),Fs(),js(12,"div",8),Ls(13,"div",1),js(14,"div",2),Fs(),js(15,"div",9))},styles:[".embed-container[_ngcontent-%COMP%]{--video--width:1296;--video--height:540;position:relative;padding-bottom:calc(var(--video--height)/var(--video--width)*100%);overflow:hidden;max-width:100%;background:#000}.embed-container[_ngcontent-%COMP%] embed[_ngcontent-%COMP%], .embed-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%], .embed-container[_ngcontent-%COMP%] object[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}"]}),t})(),iD=(()=>{class t{constructor(t,e){this.authService=t,this.router=e}canActivate(t,e){return console.log("this.authService.isLoggedIn: "+this.authService.isLoggedIn),!0!==this.authService.isLoggedIn&&(window.alert("Unauthorized access. Please log in."),this.router.navigate(["login"])),!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(MC),Qt(uw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),oD=(()=>{class t{constructor(t,e){this.authService=t,this.router=e}canActivate(t,e){return console.log("You are logged in: "+this.authService.isLoggedIn),this.authService.isLoggedIn&&this.authService.signOut(),!0}}return t.\u0275fac=function(e){return new(e||t)(Qt(MC),Qt(uw))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class sD{constructor(t,e,n){this.src=t,this.thumbnail=e,this.isActive=n}}function aD(t,e){1&t&&js(0,"div",4)}function lD(t,e){1&t&&(Ls(0,"div",15),Ls(1,"p",16),Ca(2,"Now Playing"),Fs(),Fs())}function cD(t,e){if(1&t){const t=Bs();Ls(0,"div",11),Ls(1,"div",12),Ls(2,"img",13),qs("click",(function(){Je(t);const n=e.$implicit;return Qs(2).changeMainEmbedVideo(n)})),Fs(),Os(3,lD,3,0,"div",14),Fs(),Fs()}if(2&t){const t=e.$implicit;wi(2),Rs("src",t.thumbnail,Zr),wi(1),Rs("ngIf",t.isActive)}}function uD(t,e){if(1&t&&(Ls(0,"div",5),js(1,"iframe",6),Fs(),Ls(2,"div",7),Ls(3,"mdb-card",8),Ls(4,"mdb-card-header",9),Ca(5,"Media Playlist"),Fs(),Ls(6,"mdb-card-body"),Os(7,cD,4,2,"div",10),Fs(),Fs(),Fs()),2&t){const t=Qs();wi(1),Rs("src",t.activeLink,ti),wi(6),Rs("ngForOf",t.vodPlaylist)}}let hD=(()=>{class t{constructor(t,e,n,r){this.activatedRoute=t,this.apiService=e,this.localStorageService=n,this.sanitizer=r,this.activeLink=this.sanitizer.bypassSecurityTrustResourceUrl(""),this.vodPlaylist=[]}ngOnInit(){this.eventName=this.activatedRoute.snapshot.params.event_name,this.apiService.getEvent(this.eventName).then(t=>{this.event=t[0].payload.doc.data();let e=this.localStorageService.getUserDataFromLocalStorage().firstName+" "+this.localStorageService.getUserDataFromLocalStorage().lastName,n=this.localStorageService.getUserDataFromLocalStorage().email,r=this.localStorageService.getUserDataFromLocalStorage().roleToken;if(console.log(this.localStorageService.getUserDataFromLocalStorage()),this.liveWebinarApi=new liveWebinar(this.event.livewebinar_id,e,n,r),1e3*this.event.start_time.seconds<(new Date).getTime()&&1e3*this.event.end_time.seconds>(new Date).getTime())this.presenting=!0;else if((1e3*this.event.start_time.seconds<(new Date).getTime()&&1e3*this.event.end_time.seconds<(new Date).getTime()||1e3*this.event.start_time.seconds>(new Date).getTime())&&(this.presenting=!1,this.event.vod_links)){this.activeLink=this.sanitizer.bypassSecurityTrustResourceUrl(this.event.vod_links[0].src);for(let t of this.event.vod_links){console.log(t);let e=new sD(this.sanitizer.bypassSecurityTrustResourceUrl(t.src),t.thumbnail,!1);this.vodPlaylist.push(e)}}})}changeMainEmbedVideo(t){this.activeLink=t.src;for(let e=0;e{class t extends nw{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return!1}}return t.\u0275fac=function(e){return pD(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const pD=ur(dD),fD=[{path:"login",component:nO,canActivate:[oD]},{path:"register",component:rO,canActivate:[oD]},{path:"verify-email",component:oO,canActivate:[oD]},{path:"forgot-password",component:mP,canActivate:[oD]},{path:"conference",component:BN,canActivate:[iD]},{path:"conference/:event_name",component:BN,canActivate:[iD]},{path:"dashboard",component:pN,canActivate:[iD]},{path:"sponsors",component:qN,canActivate:[iD]},{path:"user-profile",component:_N,canActivate:[iD]},{path:"user-profile/:id",component:_N,canActivate:[iD]},{path:"plenary",component:TN,canActivate:[iD]},{path:"plenary/:event_name",component:TN,canActivate:[iD]},{path:"keynote/:event_name",component:TN,canActivate:[iD]},{path:"pre-recorded/:event_name",component:rD,canActivate:[iD]},{path:"sponsor-microsite",component:VN,canActivate:[iD]},{path:"sponsor-microsite/:sponsor_name",component:VN,canActivate:[iD]},{path:"edit-profile",component:gP,canActivate:[iD]},{path:"networking",component:HP,canActivate:[iD]},{path:"networking/room/:roomid",component:nD,canActivate:[iD]},{path:"tracks-breakout",component:hD,canActivate:[iD]},{path:"tracks-breakout/:event_name",component:hD,canActivate:[iD]},{path:"",redirectTo:"/login",pathMatch:"full"}];let gD=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[{provide:nw,useClass:dD}],imports:[[kw.forRoot(fD,{scrollPositionRestoration:"enabled"})],kw]}),t})();class mD{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new vD(t,this.observables,this.project))}}class vD extends L{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let i=0;i0){const t=o.indexOf(n);-1!==t&&o.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class bD{constructor(t){this.predicate=t}call(t,e){return e.subscribe(new yD(t,this.predicate))}}class yD extends f{constructor(t,e){super(t),this.predicate=e,this.skipping=!0,this.index=0}_next(t){const e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}tryCallPredicate(t){try{const e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(e){this.destination.error(e)}}}function _D(t){return null==t}function wD(t){return"function"==typeof t.set}function CD(t,e){return wD(e)?e:t.ref(e)}function ED(t,e){if("string"==typeof t)return e.stringCase();if(wD(t))return e.firebaseCase();if(function(t){return"function"==typeof t.exportVal}(t))return e.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof t)}function xD(t,e,n="on",r=Mm){return new _(i=>{let o=null;return o=t[n](e,(t,e)=>{r.schedule(()=>{i.next({snapshot:t,prevKey:e})}),"once"===n&&r.schedule(()=>i.complete())},t=>{r.schedule(()=>i.error(t))}),"on"===n?{unsubscribe(){null!=o&&t.off(e,o)}}:{unsubscribe(){}}}).pipe(F(t=>{const{snapshot:n,prevKey:r}=t;let i=null;return n.exists()&&(i=n.key),{type:e,payload:n,prevKey:r,key:i}}),et())}function SD(t,e){const n=t.length;for(let r=0;r{const r={payload:e,type:"value",prevKey:n,key:e.key};return n=e.key,t=[...t,r],!1})}return t;case"child_added":if(o>-1){const i=t[o-1];(i&&i.key||null)!==r&&(t=t.filter(t=>t.payload.key!==n.key)).splice(s,0,e)}else{if(null==r)return[e,...t];(t=t.slice()).splice(s,0,e)}return t;case"child_removed":return t.filter(t=>t.payload.key!==n.key);case"child_changed":return t.map(t=>t.payload.key===i?e:t);case"child_moved":if(o>-1){const e=t.splice(o,1)[0];return(t=t.slice()).splice(s,0,e),t}return t;default:return t}}function TD(t){return(_D(t)||0===t.length)&&(t=["child_added","child_removed","child_changed","child_moved"]),t}function ID(t,e,n){return function(t,e,n){return xD(t,"value","once",n).pipe(lb(r=>{const i=[Cm(r)];return e.forEach(e=>i.push(xD(t,e,"on",n))),$(...i).pipe(sv(kD,[]))}),t=>t.lift(new UC(void 0,void 0)))}(t,e=TD(e),n)}function OD(t,e,n){return $(...(e=TD(e)).map(e=>xD(t,e,"on",n)))}function AD(t,e){return function(n,r){return ED(n,{stringCase:()=>t.child(n)[e](r),firebaseCase:()=>n[e](r),snapshotCase:()=>n.ref[e](r)})}}function ND(t,e){return function(){return xD(t,"value","on",e)}}n("NSPt");const PD=new Ut("angularfire2.realtimeDatabaseURL");let DD=(()=>{class t{constructor(t,e,n,r,i){this.schedulers=new Lv(i),this.keepUnstableUntilFirst=Fv(this.schedulers),this.database=i.runOutsideAngular(()=>Hv(t,i,e).database(n||void 0))}list(t,e){const n=CD(this.database,t);let r=n;return e&&(r=e(n)),function(t,e){const n=e.schedulers.outsideAngular,r=e.schedulers.ngZone.run(()=>t.ref);return{query:t,update:AD(r,"update"),set:AD(r,"set"),push:t=>r.push(t),remove:(i=r,function(t){return t?ED(t,{stringCase:()=>i.child(t).remove(),firebaseCase:()=>t.remove(),snapshotCase:()=>t.ref.remove()}):i.remove()}),snapshotChanges:r=>ID(t,r,n).pipe(e.keepUnstableUntilFirst),stateChanges:r=>OD(t,r,n).pipe(e.keepUnstableUntilFirst),auditTrail:r=>function(t,e,n){return function(t,e,n){return function(t,e){return xD(t,"value","on",e).pipe(F(t=>{let e;return t.payload.forEach(t=>(e=t.key,!1)),{data:t,lastKeyToLoad:e}}))}(t,n).pipe(function(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new mD(t,n))}}(e),F(([t,e])=>{const n=t.lastKeyToLoad,r=e.map(t=>t.key);return{actions:e,lastKeyToLoad:n,loadedKeys:r}}),(r=t=>-1===t.loadedKeys.indexOf(t.lastKeyToLoad),t=>t.lift(new bD(r))),F(t=>t.actions));var r}(t,OD(t,e).pipe(sv((t,e)=>[...t,e],[])),n)}(t,r,n).pipe(e.keepUnstableUntilFirst),valueChanges:r=>ID(t,r,n).pipe(F(t=>t.map(t=>t.payload.val())),e.keepUnstableUntilFirst)};var i}(r,this)}object(t){const e=CD(this.database,t);return r=this,{query:n=e,snapshotChanges:()=>ND(n,r.schedulers.outsideAngular)().pipe(r.keepUnstableUntilFirst),update:t=>n.ref.update(t),set:t=>n.ref.set(t),remove:()=>n.ref.remove(),valueChanges:()=>ND(n,r.schedulers.outsideAngular)().pipe(r.keepUnstableUntilFirst,F(t=>t.payload.exists()?t.payload.val():null))};var n,r}createPushId(){return this.database.ref().push().key}}return t.\u0275fac=function(e){return new(e||t)(Qt(Uv),Qt(Vv,8),Qt(PD,8),Qt(kc),Qt(Hc))},t.\u0275prov=ht({factory:function(){return new t(Qt(Uv),Qt(Vv,8),Qt(PD,8),Qt(kc),Qt(Hc))},token:t,providedIn:"any"}),t})(),RD=(()=>{class t{}return t.\u0275mod=be({type:t}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[DD]}),t})(),MD=(()=>{class t{constructor(t){this.afs=t,this.chatListFromDB=[],this.userChatProfiles=[]}}return t.\u0275fac=function(e){return new(e||t)(Qt(sb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const LD={url:"https://api.codekakis.com:443",options:{transports:["polling"]}};let FD=(()=>{class t{}return t.\u0275mod=be({type:t,bootstrap:[eO]}),t.\u0275inj=dt({factory:function(e){return new(e||t)},providers:[MC,eI,Kw,nC,WN,MD],imports:[[yd,gD,Vf,DI.forRoot(),BT.forRoot(),Tb,ab,RD,SN,qv.initializeApp(bu),_m,wm,$w,XO,eC.forRoot(),QP.forRoot(LD),tv]]}),t})();(function(){if(Sr)throw new Error("Cannot enable prod mode after platform setup.");xr=!1})(),vd().bootstrapModule(FD).catch(t=>console.error(t))},zVF4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mrSG"),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw s(e)},s=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},a=function(t){for(var e=[],n=0,r=0;r>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},l={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>6,h=63&c;l||(h=64,s||(u=64)),r.push(n[o>>2],n[(3&o)<<4|a>>4],n[u],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var s=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(a=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(s>>10)),e[r++]=String.fromCharCode(56320+(1023&s))}else{o=t[n++];var a=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4),64!==a&&(r.push(s<<4&240|a>>2),64!==l&&r.push(a<<6&192|l))}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},c=function(t){try{return l.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function u(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=u(t[n],e[n]));return t}var h=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function d(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function p(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var f=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,g.prototype.create),i}return r.__extends(e,t),e}(Error),g=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n"}))}var v=/\{\$([^}]+)}/g;function b(t){return JSON.parse(t)}var y=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=b(c(o[0])||""),n=b(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(s){}return{header:e,claims:n,data:r,signature:i}},_=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t>>31);var i,o,s=this.chain_[0],a=this.chain_[1],l=this.chain_[2],c=this.chain_[3],u=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=c^a&(l^c),o=1518500249):(i=a^l^c,o=1859775393):r<60?(i=a&l|c&(a|l),o=2400959708):(i=a^l^c,o=3395469782);var h=(s<<5|s>>>27)+i+u+o+n[r]&4294967295;u=c,c=l,l=4294967295&(a<<30|a>>>2),a=s,s=h}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+a&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}(),w=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=0,r=["next","error","complete"];n 4. Need to update it?")}return t+" failed: "+r+" argument "}e.CONSTANTS=i,e.Deferred=h,e.ErrorFactory=g,e.FirebaseError=f,e.Sha1=_,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},e.assert=o,e.assertionError=s,e.async=function(t,e){return function(){for(var n=[],r=0;r=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=d();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isIndexedDBAvailable=function(){return"indexedDB"in window&&null!==indexedDB},e.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(d())},e.isNode=p,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return d().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=y(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=y(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"==typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=y(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=b,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r=55296&&i<=56319){var s=i-55296;r++,o(r>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(rn&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(E(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(E(t,e,r)+"must be a valid context object.")},e.validateIndexedDBOpenable=function(){return new Promise((function(t,e){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}}))},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(E(t,e,r)+"must be a valid firebase namespace.")}},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);