function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _get(t,e,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=_superPropBase(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(t){var e=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(t);if(e){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=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"),a=n("Yvos"),s=n("NOtv")("engine.io-client:polling-xhr"),u=n("2UHX");function l(){}function c(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=c,t.exports.Request=h,a(c,i),c.prototype.supportsBinary=!0,c.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)},c.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},c.prototype.doPoll=function(){s("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{s("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))},s("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=l:this.xhr.onreadystatechange=l,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 u?"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 a(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 s(t,e){e=e||{};var r=new n;return a(t).forEach((function(t){r.append(t)})),e.type?r.getBlob(e.type):r.getBlob()}function u(t,e){return new Blob(a(t),e||{})}"undefined"!=typeof Blob&&(s.prototype=Blob.prototype,u.prototype=Blob.prototype),t.exports=r?i?Blob:u:o?s: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"),a=n("7jRU"),s=n("Wm4p"),u=n("Uxeu"),l=n("TypT");function c(t,e){if(!(this instanceof c))return new c(t,e);e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=u(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=u(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=l.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=c,c.priorWebsocketSuccess=!1,i(c.prototype),c.protocol=s.protocol,c.Socket=c,c.Transport=n("Gbct"),c.transports=n("akSB"),c.parser=n("Wm4p"),c.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=s.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})},c.prototype.open=function(){var t;if(this.rememberUpgrade&&c.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)},c.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")}))},c.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;c.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 a=new Error("probe error");a.transport=e.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,d(),e.close(),e=null)}function s(n){var i=new Error("probe error: "+n);i.transport=e.name,a(),o('probe transport "%s" failed because of error: %s',t,n),r.emit("upgradeError",i)}function u(){s("transport closed")}function l(){s("socket closed")}function h(t){e&&t.name!==e.name&&(o('"%s" works - aborting "%s"',t.name,e.name),a())}function d(){e.removeListener("open",i),e.removeListener("error",s),e.removeListener("close",u),r.removeListener("close",l),r.removeListener("upgrading",h)}c.priorWebsocketSuccess=!1,e.once("open",i),e.once("error",s),e.once("close",u),this.once("close",l),this.once("upgrading",h),e.open()},c.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",c.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;t0)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 a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===u&&!1===isNaN(t))return e.long?a(s=t,o,"day")||a(s,i,"hour")||a(s,r,"minute")||a(s,n,"second")||s+" 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,a=n("q/0M"),s=n("zVF4"),u=n("x7I3"),l=n("S+S0"),c=new a.Logger("@firebase/firestore");function h(){return c.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 k(t){return t+"\0"}var C=function(t,e,n,r,i){this.s=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},S=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 E(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function x(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}(),N=function(){function t(t){this.timestamp=t}return t.I=function(e){return new t(e)},t.min=function(){return new t(new P(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&&v(),void 0===n?n=t.length-e:n>t.length-e&&v(),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=""},a=!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,a){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===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.K=null};function H(t,e,n,r,i,o,a){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===a&&(a=null),new B(t,e,n,r,i,o,a)}function z(t){var e=m(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 v();if(this.right.At())throw v();var t=this.left.bt();if(t!==this.right.bt())throw v();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 v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw v()},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:v()}})),new yt(this.ie,this.re,t,e,n)},t.prototype.le=function(){this.oe=!1,this.se=Et()},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}(),Ct=function(){function t(t){this.Ee=t,this.Ie=new Map,this.me=ot(),this.Ae=St(),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,N.min()))}else g(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 a=new F(o.target.path);null!==e.me.get(a)||e.Ne(i,a)||e.Ve(i,a,new rn(a,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 mt(t,n,this.Re,this.me,r);return this.me=ot(),this.Ae=St(),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 kt,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 kt),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 St(){return new Z(F.P)}function Et(){return new Z(F.P)}function xt(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 P(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?xt(t)?4:10:v()}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(E(n)!==E(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 v()}}function Pt(t,e){return void 0!==(t.values||[]).find((function(t){return At(t,e)}))}function Nt(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 Kt(t){return{integerValue:""+t}}function Qt(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 Xt(t,e){return V(e)?Kt(e):Qt(t,e)}function $t(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 $t(t,e.A())}function Zt(t){return g(!!t),N.I(function(t){var e=Mt(t);return new P(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 g(_e(e)),e}function ne(t,e){return te(t.s,e.path)}function re(t,e){var n=ee(e);return g(n.get(1)===t.s.projectId),g(!n.get(3)&&!t.s.database||n.get(3)===t.s.database),new F(se(n))}function ie(t,e){return te(t.s,e)}function oe(t){var e=ee(t);return 4===e.length?R.k():se(e)}function ae(t){return new R(["projects",t.s.projectId,"databases",t.s.database]).$()}function se(t){return g(t.length>4&&"documents"===t.get(4)),t.V(5)}function ue(t,e,n){return{name:ne(t,e),fields:n.proto.mapValue.fields}}function le(t,e){var n;if(e instanceof qe)n={update:ue(t,e.key,e.value)};else if(e instanceof $e)n={delete:ne(t,e.key)};else if(e instanceof We)n={update:ue(t,e.key,e.data),updateMask:be(e.Le)};else if(e instanceof Ke)n={transform:{document:ne(t,e.key),fieldTransforms:e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof Ee)return{fieldPath:e.field.$(),setToServerValue:"REQUEST_TIME"};if(n instanceof xe)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 v()}(0,t)}))}};else{if(!(e instanceof Ye))return v();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}:v()}(t,e.Ue)),n}function ce(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 a=re(t,e.delete);return new $e(a,n)}if(e.transform){var s=re(t,e.transform.document),u=e.transform.fieldTransforms.map((function(e){return function(t,e){var n=null;"setToServerValue"in e?(g("REQUEST_TIME"===e.setToServerValue),n=new Ee):"appendMissingElements"in e?n=new xe(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new Ie(e.removeAllFromArray.values||[]):"increment"in e?n=new Ae(t,e.increment):v();var r=L.q(e.fieldPath);return new Re(r,n)}(t,e)}));return g(!0===n.exists),new Ke(s,u)}if(e.verify){var l=re(t,e.verify);return new Ye(l,n)}return v()}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:ve(t.field),op:"IS_NAN"}};if(Bt(t.value))return{unaryFilter:{field:ve(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:ve(t.field),op:(e=t.op,Wt[e]),value:t.value}};var e}(t):v()}));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:ve((e=t).field),direction:(n=e.dir,qt[n])};var e,n}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.Oe||j(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=fe(e.startAt)),e.endAt&&(n.structuredQuery.endAt=fe(e.endAt)),n}function fe(t){return{before:t.before,values:t.position}}function pe(t){return new Tn(t.values||[],!!t.before)}function ve(t){return{fieldPath:t.$()}}function ge(t){return L.q(t.fieldPath)}function me(t){return wn.create(ge(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 v()}}(t.fieldFilter.op),t.fieldFilter.value)}function ye(t){switch(t.unaryFilter.op){case"IS_NAN":var e=ge(t.unaryFilter.field);return wn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=ge(t.unaryFilter.field);return wn.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return v()}}function be(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 ke(t,e,n){return t instanceof Ee?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 xe?Te(t,e):t instanceof Ie?Oe(t,e):function(t,e){var n=Se(t,e),r=Pe(n)+Pe(t.qe);return Ut(n)&&Ut(t.qe)?Kt(r):Qt(t.serializer,r)}(t,e)}function Ce(t,e,n){return t instanceof xe?Te(t,e):t instanceof Ie?Oe(t,e):n}function Se(t,e){return t instanceof Ae?Ut(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(we),xe=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=Ne(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 un(t,e,n,r,i,o,a,s){return new sn(t,e,n,r,i,o,a,s)}function ln(t){return new sn(t)}function cn(t){return null!==t.collectionGroup}function hn(t){var e=an(t,sn);if(null===e.nn){e.nn=[];var n=e.cn(),r=e.un();if(null!==n&&null===r)n.O()||e.nn.push(new Pn(n)),e.nn.push(new Pn(L.L(),"asc"));else{for(var i=!1,o=0,a=e.tn;o0?e.tn[e.tn.length-1].dir:"asc";e.nn.push(new Pn(L.L(),u))}}}return e.nn}function dn(t){var e=an(t,sn);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 bn(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 v()}},e.prototype.ln=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e}((function(){})),kn=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),Cn=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),Sn=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)&&Pt(e.arrayValue,this.value)},e}(wn),En=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&&Pt(this.value.arrayValue,e)},e}(wn),xn=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 Pt(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=Kn(e)),e=Gn(t.get(n),e);return Kn(e)}function Gn(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return g("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),R.k();for(var n=e-2,r=[],i="",o=0;on)&&v(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=t.substring(o,a),i+="\0";break;case"\x11":i+=t.substring(o,a+1);break;default:v()}o=a+2}return new R(r)}var Xn=function(){function t(){this.Ds=new $n}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}(),$n=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 $n}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,""],[k(e),""],!1,!0);return Jn(t).$s(r).next((function(t){for(var r=0,i=t;r0){g(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=function t(e){return e?void 0!==e.unaryFilter?[ye(e)]:void 0!==e.fieldFilter?[me(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):v():[]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return new Pn(ge((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e})));var u=null;n.limit&&(u=function(t){var e;return j(e="object"==typeof t?t.value:t)?null:e}(n.limit));var l=null;n.startAt&&(l=pe(n.startAt));var c=null;return n.endAt&&(c=pe(n.endAt)),dn(un(e,i,s,a,u,"F",l,c))}(t.query),new X(e,t.targetId,0,t.lastListenSequenceNumber,r,i,G.fromBase64String(t.resumeToken))}function ur(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 lr=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:fr(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=at();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=at(),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,fr(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 a=F.j(t);o&&F.P(o,a)<0;)n(o,null),o=i.dt();o&&o.isEqual(a)&&(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=ut(),o=e.path.length+1,a={};if(n.isEqual(N.min())){var s=e.path.F();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.F(),l=nr(n);a.range=IDBKeyRange.lowerBound([u,l],!0),a.index=Hr.collectionReadTimeIndex}return hr(t).Qs(a,(function(t,n,a){if(t.length===o){var s=tr(r.serializer,n);e.path.D(s.key.path)?s instanceof nn&&bn(e,s)&&(i=i.nt(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.Ks=function(t,e){var n=this,r=ot(),i=nr(e),o=hr(t),a=IDBKeyRange.lowerBound(i,!0);return o.Qs({index:Hr.readTimeIndex,range:a},(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=N.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 cr(t).get(zr.key).next((function(t){return g(!!t),t}))},t.prototype.xs=function(t,e){return cr(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(N.min())?null:e}return null},t}();function cr(t){return wr.Ns(t,zr.store)}function hr(t){return wr.Ns(t,Hr.store)}function dr(t){return t.path.F()}function fr(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw v();e=t.noDocument}return JSON.stringify(e).length}lr.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,a){var s=e.ti.get(o);if(a){var u=er(e.Zs.serializer,a,e.readTime);i=i.add(o.path.p());var l=fr(u);r+=l-s,n.push(e.Zs.Nn(t,o,u))}else if(r-=s,e.Js){var c=er(e.Zs.serializer,new rn(o,N.min()),e.readTime);n.push(e.Zs.Nn(t,o,c))}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 pr=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}(),vr=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 pr(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 N.I(new P(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 gr(t).delete(e.targetId)})).next((function(){return n.oi(t)})).next((function(e){return g(e.targetCount>0),e.targetCount-=1,n.hi(t,e)}))},t.prototype.Ei=function(t,e,n){var r=this,i=0,o=[];return gr(t).Qs((function(a,s){var u=sr(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.wi(t,u)))})).next((function(){return Ln.Sn(o)})).next((function(){return i}))},t.prototype.pe=function(t,e){return gr(t).Qs((function(t,n){var r=sr(n);e(r)}))},t.prototype.oi=function(t){return mr(t).get(Gr.key).next((function(t){return g(null!==t),t}))},t.prototype.hi=function(t,e){return mr(t).put(Gr.key,e)},t.prototype._i=function(t,e){return gr(t).put(ur(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 gr(t).Qs({range:r,index:qr.queryTargetsIndexName},(function(t,n,r){var o=sr(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=yr(t);return e.forEach((function(e){var a=Wn(e.path);i.push(o.put(new Wr(n,a))),i.push(r.ii.Ri(t,n,e))})),Ln.Sn(i)},t.prototype.Pi=function(t,e,n){var r=this,i=yr(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=yr(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=yr(t),i=ht();return r.Qs({range:n,yi:!0},(function(t,e,n){var r=Qn(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],[k(n)],!1,!0),i=0;return yr(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 gr(t).get(e).next((function(t){return t?sr(t):null}))},t}();function gr(t){return wr.Ns(t,qr.store)}function mr(t){return wr.Ns(t,Gr.store)}function yr(t){return wr.Ns(t,Wr.store)}var br="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,a,s,u,l,c){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Ts=o,this.window=a,this.document=s,this.Si=l,this.Di=c,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 Sr(this,i),this.Li=n+"main",this.serializer=new Zn(u),this.qi=new vr(this.ii,this.serializer),this.Kn=new Yn,this.Qn=new lr(this.serializer,this.Kn),this.window&&this.window.localStorage?this.Bi=this.window.localStorage:(this.Bi=null,!1===c&&f("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 v()},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,br);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 Cr(e).put(new Xr(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 kr(t).get(Lr.key).next((function(t){return Ln.resolve(e.rr(t))}))},t.prototype.or=function(t){return Cr(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,Xr.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&&(f("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 f("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){f("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 kr(t){return wr.Ns(t,Lr.store)}function Cr(t){return wr.Ns(t,Xr.store)}var Sr=function(){function t(t,e){this.db=t,this.yr=new vi(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 Er(t,n)},t.prototype.gi=function(t,e,n){return Er(t,n)},t.prototype.Ei=function(t,e,n){return this.db.Rr().Ei(t,e,n)},t.prototype.Dr=function(t,e){return Er(t,e)},t.prototype.Cr=function(t,e){return function(t,e){var n=!1;return Nr(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(a,s){if(s<=e){var u=n.Cr(t,a).next((function(e){if(!e)return o++,r.Mn(t,a).next((function(){return r.xn(a),yr(t).delete([0,Wn(a.path)])}))}));i.push(u)}})).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 Er(t,e)},t.prototype.Sr=function(t,e){var n,r=yr(t),i=Hn.ws;return r.Qs({index:Wr.documentTargetsIndex},(function(t,r){var o=r.path,a=r.sequenceNumber;0===t[0]?(i!==Hn.ws&&e(new F(Qn(n)),i),i=a,n=o):i=Hn.ws})).next((function(){i!==Hn.ws&&e(new F(Qn(n)),i)}))},t.prototype.kr=function(t){return this.db.Pr().Xs(t)},t}();function Er(t,e){return yr(t).put(function(t,e){return new Wr(0,Wn(t.path),e)}(e,t.vi))}function xr(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 g(""!==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=Pr(t),a=Ar(t);return a.add({}).next((function(s){g("number"==typeof s);for(var u=new Rn(s,e,n,r),l=function(t,e,n){var r=n.baseMutations.map((function(e){return le(t.ks,e)})),i=n.mutations.map((function(e){return le(t.ks,e)}));return new jr(e,n.batchId,n.dn.toMillis(),r,i)}(i.serializer,i.userId,u),c=[],h=new nt((function(t,e){return _(t.$(),e.$())})),d=0,f=r;d=r),o=ar(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 ar(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 Pr(t).Qs({range:i},(function(r,i,a){var s=r[0],u=r[2],l=Qn(r[1]);if(s===n.userId&&e.path.isEqual(l))return Ar(t).get(u).next((function(t){if(!t)throw v();g(t.userId===n.userId),o.push(ar(n.serializer,t))}));a.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),a=IDBKeyRange.lowerBound(o),s=Pr(t).Qs({range:a},(function(t,i,o){var a=t[0],s=t[2],u=Qn(t[1]);a===n.userId&&e.path.isEqual(u)?r=r.add(s):o.done()}));i.push(s)})),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),a=IDBKeyRange.lowerBound(o),s=new nt(_);return Pr(t).Qs({range:a},(function(t,e,o){var a=t[0],u=t[2],l=Qn(t[1]);a===n.userId&&r.D(l)?l.length===i&&(s=s.add(u)):o.done()})).next((function(){return n.jr(t,s)}))},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 v();g(t.userId===n.userId),r.push(ar(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 Pr(t).Qs({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Qn(t[1]);i.push(o)}else r.done()})).next((function(){g(0===i.length)}))}))},t.prototype.pi=function(t,e){return Ir(t,this.userId,e)},t.prototype.Hr=function(t){var e=this;return Nr(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),a=!1;return Pr(t).Qs({range:o,yi:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(a=!0),r.done()})).next((function(){return a}))}function Or(t,e,n){var r=t.store(jr.store),i=t.store(Ur.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.Qs({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){g(1===s)})));for(var l=[],c=0,h=n.mutations;c=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),Qr(t),function(t){t.createObjectStore(Hr.store)}(t));var a=Ln.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Wr.store),t.deleteObjectStore(qr.store),t.deleteObjectStore(Gr.store)}(t),Qr(t)),a=a.next((function(){return function(t){var e=t.store(Gr.store),n=new Gr(0,0,N.min().A(),0);return e.put(Gr.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.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)}))),a=a.next((function(){!function(t){t.createObjectStore(Xr.store,{keyPath:Xr.keyPath})}(t)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(t){t.createObjectStore(zr.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(a=a.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&&(a=a.next((function(){return i.rewriteCanonicalIds(o)}))),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Hr.store).Qs((function(t,n){e+=fr(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){g(r.userId===n.userId);var i=ar(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),a=function(t){return[0,Wn(t)]}(o);r.push(e.get(a).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(Kr.store,{keyPath:Kr.keyPath});var n=e.store(Kr.store),r=new $n,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=Qn(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=sr(r),o=ur(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,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};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 Kr=function(t,e){this.collectionId=t,this.parent=e};function Qr(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)}Kr.store="collectionParents",Kr.keyPath=["collectionId","parent"];var Xr=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Xr.store="clientMetadata",Xr.keyPath="clientId";var $r=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Fr.store,jr.store,Ur.store,Hr.store,qr.store,Lr.store,Gr.store,Wr.store],[Xr.store]),[zr.store]),[Kr.store]),Yr=function(){function t(e){this.db=e,12.2===t.Yr(s.getUA())&&f("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 a=indexedDB.open(e,n);a.onsuccess=function(e){i(new t(e.target.result))},a.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."))},a.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)},a.onupgradeneeded=function(t){d("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion),r.createOrUpgrade(t.target.result,a.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=s.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,a,s,u;return i.__generator(this,(function(l){switch(l.label){case 0:r="readonly"===t,o=0,a=function(){var t,a,u,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=ei.open(s.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),a=n(t).catch((function(e){return t.abort(e),Ln.reject(e)})).bn(),u={},a.catch((function(){})),[4,t.to];case 2:return[2,(u.value=(i.sent(),a),u)];case 3:return d("SimpleDb","Transaction failed with error: %s. Retrying: %s.",(l=i.sent()).message,c="FirebaseError"!==l.name&&o<3),c?[3,4]:[2,{value:Promise.reject(l)}];case 4:return[2]}}))},s=this,l.label=1;case 1:return[5,a()];case 2:if("object"==typeof(u=l.sent()))return[2,u.value];l.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),a=e(i.primaryKey,i.value,o);if(a instanceof Ln){var s=a.catch((function(t){return o.done(),Ln.reject(t)}));n.push(s)}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(s.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 ai(){return"undefined"!=typeof window?window:null}var si=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 a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},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}(),ui=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=ai();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=ai())&&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,f("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=si._o(this,t,e,n,(function(t){return r.Fo(t)}));return this.Io.push(i),i},t.prototype.bo=function(){this.mo&&v()},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;ec.params.zo?(d("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.zo+" from "+e),r=c.params.zo):r=e,o=Date.now(),c.uh(t,r)})).next((function(r){return n=r,s=Date.now(),c.Ei(t,n,e)})).next((function(e){return i=e,u=Date.now(),c.$r(t,n)})).next((function(t){return l=Date.now(),h()<=a.LogLevel.DEBUG&&d("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-f)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(l-u)+"ms\nTotal Duration: "+(l-f)+"ms"),Ln.resolve({Uo:!0,Wo:r,Qo:i,jo:t})}))},t}(),gi=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=N.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(a){return i=a,e=o.persistence.mr(t),n=new Vn(o.Eh,e,o.persistence.gr()),e.Qr(r)})).next((function(t){for(var e=[],o=[],a=ht(),s=0,u=i;s0){var c=u.tt(l,r).Z(o.vi);i=i.nt(a,c),t.Sh(u,c,e)&&s.push(n.qi.di(o,c))}}}));var u=ot(),l=ht();if(e.jt.forEach((function(t,e){l=l.add(t)})),s.push(a.getEntries(o,l).next((function(t){e.jt.forEach((function(i,l){var c=t.get(i);l instanceof rn&&l.version.isEqual(N.min())?(a.xn(i,r),u=u.nt(i,l)):null==c||l.version.o(c.version)>0||0===l.version.o(c.version)&&c.hasPendingWrites?(a.Nn(l,r),u=u.nt(i,l)):d("LocalStore","Ignoring outdated watch update for ",i,". Current version:",c.version," Watch version:",l.version),e.Kt.has(i)&&s.push(n.persistence.ii.Nr(o,i))}))}))),!r.isEqual(N.min())){var c=n.qi.ai(o).next((function(t){return n.qi.ci(o,o.vi,r)}));s.push(c)}return Ln.Sn(s).next((function(){return a.apply(o)})).next((function(){return n.Ih.Xn(o,u)}))})).then((function(t){return n.dh=i,t}))},t.Sh=function(t,e,n){return g(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,a,s,u,l=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 l.persistence.ii.Ri(e,t.targetId,n)})).next((function(){return Ln.forEach(t.us,(function(n){return l.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,a=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 a.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=N.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:N.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(),a=Ln.resolve();return o.forEach((function(r){a=a.next((function(){return n.Mn(t,r)})).next((function(t){var o=t,a=e.An.get(r);g(null!==a),(!o||o.version.o(a)<0)&&(o=i.wn(r,o,e))&&n.Nn(o,e.mn)}))})),a.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 mi(t,e,n){return new gi(t,e,n)}function yi(t,e){var n=m(t),r=m(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 bi(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]}))}))}gi.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 ki(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 Ci(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 Si(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 xi(t,e,n,r){Ni(t,e,Ui(n)+" argument",r)}function Ti(t,e,n,r){void 0!==r&&xi(t,e,n,r)}function Ii(t,e,n,r){Ni(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=[],a=0,s=i;a20&&(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":v()}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){x(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){Ci("Blob.fromBase64String",arguments,1),xi("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(Ci("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 Ci("Blob.toBase64",arguments,0),Hi(),this.Hh.toBase64()},t.prototype.toUint8Array=function(){return Ci("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},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=[];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 Ke(t,this.fieldTransforms)),n},t}(),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=[new We(t,this.data,this.Le,e)];return this.fieldTransforms.length>0&&n.push(new Ke(t,this.fieldTransforms)),n},t}();function uo(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw v()}}var lo=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 ko(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(!Co(c,s[d])){var f=s[d],p=u[d],v=a.Ta(f);if(p instanceof Ki&&p.Jh instanceof Qi)c.push(f);else{var g=go(p,v);null!=g&&(c.push(f),h.set(f,g))}}var m=new De(c);return new so(h.Ge(),m,a.fieldTransforms)}function vo(t,e,n,r){return void 0===r&&(r=!1),go(n,t.ma(r?4:3,e))}function go(t,e){if(yo(t))return bo("Unsupported field value:",e,t),mo(t,e);if(t instanceof Ki)return function(t,e){if(!uo(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):x(t,(function(t,r){var i=go(r,e.da(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function yo(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof P||t instanceof no||t instanceof zi||t instanceof oo||t instanceof Ki)}function bo(t,e,n){if(!yo(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 ko("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 ko((r=e)instanceof Error?r.message:r.toString(),t,!1,void 0,n)}var r}function ko(t,e,n,r,i){var o=r&&!r._(),a=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field "+r),a&&(u+=" in document "+i),u+=")"),new A(O.INVALID_ARGUMENT,(s+=". ")+t+u)}function Co(t,e){return t.some((function(t){return t.isEqual(e)}))}var So=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}();So.UNAUTHENTICATED=new So(null),So.Ra=new So("google-credentials-uid"),So.Pa=new So("first-party-uid");var Eo=function(t,e){this.user=e,this.type="OAuth",this.ga={},this.ga.Authorization="Bearer "+t},xo=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(So.UNAUTHENTICATED)},t.prototype.ba=function(){this.Va=null},t}(),To=function(){function t(t){var e=this;this.va=null,this.currentUser=So.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?(g("string"==typeof n.accessToken),new Eo(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 g(null===t||"string"==typeof t),new So(t)},t}(),Io=function(){function t(t,e){this.Fa=t,this.$a=e,this.type="FirstParty",this.user=So.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(So.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?(f(e.toString()),f("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}(),Po=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}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:v()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Oe?(g(void 0===e||"string"==typeof e),G.fromBase64String(e||"")):(g(void 0===e||e instanceof Uint8Array),G.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=e.targetChange.cause,s=a&&function(t){var e=void 0===t.code?O.UNKNOWN:J(t.code);return new A(e,t.message||"")}(a);n=new wt(r,i,o,s||null)}else if("documentChange"in e){var u=e.documentChange,l=re(t,u.document.name),c=Zt(u.document.updateTime),h=new Je({mapValue:{fields:u.document.fields}}),d=new nn(l,c,h,{});n=new bt(u.targetIds||[],u.removedTargetIds||[],d.key,d)}else if("documentDelete"in e){var f=e.documentDelete,p=re(t,f.document),m=f.readTime?Zt(f.readTime):N.min(),y=new rn(p,m);n=new bt([],f.removedTargetIds||[],y.key,y)}else if("documentRemove"in e){var b=e.documentRemove,_=re(t,b.document);n=new bt([],b.removedTargetIds||[],_,null)}else{if(!("filter"in e))return v();var w=e.filter,k=new $(w.count||0);n=new _t(w.targetId,k)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return N.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?N.min():e.readTime?Zt(e.readTime):N.min()}(t);return this.listener.nu(e,n)},e.prototype.su=function(t){var e={};e.database=ae(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 v()}}(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=ae(this.serializer),e.removeTarget=t,this.Ka(e)},e}(Ao),No=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,a.ru=!1,a}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(g(!!t.streamToken),this.lastStreamToken=t.streamToken,this.ru){this.Po.reset();var e=function(t,e){return t&&t.length>0?(g(void 0!==e),t.map((function(t){return function(t,e){var n=Zt(t.updateTime?t.updateTime:e);n.isEqual(N.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 g(!t.writeResults||0===t.writeResults.length),this.ru=!0,this.listener.uu()},e.prototype.cu=function(){var t={};t.database=ae(this.serializer),this.Ka(t)},e.prototype.hu=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return le(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,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return n=m(t),r={database:ae(n.serializer),documents:e.map((function(t){return ne(n.serializer,t)}))},[4,n.du("BatchGetDocuments",r)];case 1:return o=i.sent(),a=new Map,o.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){g(!!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){g(!!e.missing),g(!!e.readTime);var n=re(t,e.missing),r=Zt(e.readTime);return new rn(n,r)}(t,e):v()}(n.serializer,t);a.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=a.get(t.toString());g(!!e),s.push(e)})),s)]}}))}))}(this.wu,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof rn||t instanceof nn?n.Pu(t):v()})),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 $e(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=m(t),r={database:ae(n.serializer),writes:e.map((function(t){return le(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 v();e=N.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(N.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?(f(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 a=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(a,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=m(t);return r._u(),new Po(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=m(t);return r._u(),new No(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 Ct(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 bt?this.xu.Pe(t):t instanceof _t?this.xu.De(t):this.xu.ye(t),e.isEqual(N.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 X(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||l&&n.Il(h,l)<0)&&(s=!0)):!c&&h?(r.track({type:0,doc:h}),p=!0):c&&!h&&(r.track({type:1,doc:c}),p=!0,(u||l)&&(s=!0)),p&&(h?(a=a.add(h),o=f?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.hn()||this.query.an())for(;a.size>this.query.limit;){var c=this.query.hn()?a.last():a.first();a=a.delete(c.key),o=o.delete(c.key),r.track({type:1,doc:c})}return{ml:a,Pl:r,Vl:s,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 v()}};return n(t)-n(e)}(t.type,e.type)||r.Il(t.doc,e.doc)})),this.yl(n);var a=e?this.pl():[],s=0===this.El.size&&this.Ht?1:0,u=s!==this.Tl;return this.Tl=s,0!==o.length||u?{snapshot:new gt(this.query,t.ml,i,o,t.Lt,0===s,u,!1),bl:a}:{bl:a}},t.prototype.vl=function(t){return this.Ht&&"Offline"===t?(this.Ht=!1,this.qn({ml:this.ml,Pl:new vt,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 Qo(e))})),this.El.forEach((function(t){e.has(t)||n.push(new Ko(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 gt.Ut(this.query,this.ml,this.Lt,0===this.Tl)},t}(),$o=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 mn(t)}),gn),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=pr.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,a,s,u,l;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 Xo(t,r.Mh),a=o.Rl(r.documents),s=yt.zt(e,n&&"Offline"!==this.onlineState),u=o.qn(a,this.Xl,s),this.e_(e,u.bl),l=new Yo(t,e,o),[2,(this.Ul.set(t,l),this.Wl.has(e)?this.Wl.get(e).push(t):this.Wl.set(e,[t]),u.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!gn(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(bi)]):[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=li(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new $o(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&&(g(t.Yt.size+t.Jt.size+t.Xt.size<=1),t.Yt.size>0?r.Ml=!0:t.Jt.size>0?g(r.Ml):t.Xt.size>0&&(g(r.Ml),r.Ml=!1))})),[4,this.i_(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,bi(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,a,s,u=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,N.min())),a=ht().add(r),s=new mt(N.min(),new Map,new nt(_),o,a),[4,this.vh(s)]):[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 u.n_(t,e)})).catch(bi)];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,bi(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,bi(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=li(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=gt.Ut(t.query,t.docs,t.Lt,t.fromCache),this.V_=!0,this.g_.next(t)},t}(),da=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(N.min())?this.C_(t,e):this.D_.Jn(t,r).next((function(o){var s=i.F_(e,o);return(e.hn()||e.an())&&i.Vl(e.en,s,r,n)?i.C_(t,e):(h()<=a.LogLevel.DEBUG&&d("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),yn(e)),i.D_.ts(t,e,n).next((function(t){return s.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&&bn(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()<=a.LogLevel.DEBUG&&d("IndexFreeQueryEngine","Using full collection scan to execute query:",yn(e)),this.D_.ts(t,e,N.min())},t}(),fa=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 a=0,s=r;ar?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),a=new nt(_);return this.k_.St((function(t){var e=t.key.path;return!!n.D(e)&&(e.length===r&&(a=a.add(t.zh)),!0)}),o),Ln.resolve(this.O_(a))},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;g(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}(),pa=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,a=this.q_(e);return this.docs=this.docs.nt(r,{Ls:e,size:a,readTime:n}),this.size+=a-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=at();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=ut(),i=new F(e.path.child("")),o=this.docs.ut(i);o.wt();){var a=o.dt(),s=a.value,u=s.Ls,l=s.readTime;if(!e.path.D(a.key.path))break;l.o(n)<=0||u instanceof nn&&bn(e,u)&&(r=r.nt(u.key,u))}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}();pa.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 va=function(){function t(t){this.persistence=t,this.U_=new I((function(t){return z(t)}),q),this.lastRemoteSnapshotVersion=N.min(),this.highestTargetId=0,this.W_=0,this.Q_=new _i,this.targetCount=0,this.j_=pr.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 pr(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(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.U_.delete(a),o.push(r.Ti(t,s.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}(),ga=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 va(this),this.Kn=new Xn,this.Qn=new pa(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 fa(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 ma(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}(),ma=function(t){function e(e){var n=this;return(n=t.call(this)||this).vi=e,n}return i.__extends(e,t),e}(Un),ya=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 v()},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}(),ba=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}(),_a={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},wa=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,a){var s=new u.XhrIo;s.listenOnce(u.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case u.ErrorCode.NO_ERROR:var e=s.getResponseJson();d("Connection","XHR received:",JSON.stringify(e)),o(e);break;case u.ErrorCode.TIMEOUT:d("Connection",'RPC "'+t+'" timed out'),a(new A(O.DEADLINE_EXCEEDED,"Request time out"));break;case u.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(d("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.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);a(new A(i,r.message))}else a(new A(O.UNKNOWN,"Server responded with status "+s.getStatus()))}else d("Connection",'RPC "'+t+'" failed'),a(new A(O.UNAVAILABLE,"Connection failed."));break;default:v()}}finally{d("Connection",'RPC "'+t+'" completed.')}}));var l=Object.assign({},e);delete l.database;var c=JSON.stringify(l);d("Connection","XHR sending: ",i+" "+c);var h={"Content-Type":"text/plain"};r._f(h,n),s.send(i,"POST",c,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=u.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),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(o.httpHeadersOverwriteParam="$httpHeaders");var l=n.join("");d("Connection","Creating WebChannel: "+l+" "+o);var h=r.createWebChannel(l,o),f=!1,v=!1,m=new ba({nf:function(t){v?d("Connection","Not sending because WebChannel is closed:",t):(f||(d("Connection","Opening WebChannel transport."),h.open(),f=!0),d("Connection","WebChannel sending:",t),h.send(t))},sf:function(){return h.close()}}),y=function(t,e){h.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return y(u.WebChannel.EventType.OPEN,(function(){v||d("Connection","WebChannel transport opened.")})),y(u.WebChannel.EventType.CLOSE,(function(){v||(v=!0,d("Connection","WebChannel transport closed"),m.uf())})),y(u.WebChannel.EventType.ERROR,(function(t){v||(v=!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 Qa(function(t){return new sn(R.k(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return Ci("Firestore.runTransaction",arguments,1),xi("Firestore.runTransaction","function",1,t),this.ed().transaction((function(n){return t(new Ma(e,n))}))},t.prototype.batch=function(){return this.ed(),new La(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(h()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.ERROR:return"error";case a.LogLevel.SILENT:return"silent";case a.LogLevel.WARN:return"warn";case a.LogLevel.INFO:return"info";case a.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){Ci("Firestore.setLogLevel",arguments,1),Pi("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),c.setLogLevel(t)},t.prototype.Ed=function(){return this.ad.timestampsInSnapshots},t}();function Ra(t,e){var n=new Ia({next:function(){e.next&&e.next()},error:function(t){throw v()}});return t.R_(n),function(){n.Wf(),t.P_(n)}}var Ma=function(){function t(t,e){this.Id=t,this.md=e}return t.prototype.get=function(t){var e=this;Ci("Transaction.get",arguments,1);var n=es("Transaction.get",t,this.Id);return this.md.Au([n.ua]).then((function(t){if(!t||1!==t.length)return v();var r=t[0];if(r instanceof rn)return new Va(e.Id,n.ua,null,!1,!1,n.ca);if(r instanceof nn)return new Va(e.Id,n.ua,r,!1,!1,n.ca);throw v()}))},t.prototype.set=function(t,e,n){Ei("Transaction.set",arguments,2,3);var r=es("Transaction.set",t,this.Id);n=Ja("Transaction.set",n);var i=rs(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=[],a=3;a0?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}(),Fa=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 Ya(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(Ci("DocumentReference.collection",arguments,1),xi("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 Ya(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){Ei("DocumentReference.set",arguments,1,2),e=Ja("DocumentReference.set",e);var n=rs(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 a=t.cn();if(null!==a&&!a.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 '"+a.toString()+"' and '"+e.field.toString()+"'");var s=t.un();null!==s&&Ga(0,e.field,s)}else if(o||i){var u=null;if(o&&(u=t._n(r)),null===u&&i&&(u=t._n(n)),null!==u)throw new A(O.INVALID_ARGUMENT,u===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+u.toString()+"' filters.")}}}(t,h),h}function za(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 Pn(e,n);return function(t,e){if(null===t.un()){var n=t.cn();null!==n&&Ga(0,n,e.field)}}(t,r),r}function qa(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(!cn(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 Wa(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 Ga(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 Ka(t){if(t.an()&&0===t.tn.length)throw new A(O.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Qa=function(){function t(t,e,n){this.bd=t,this.firestore=e,this.ca=n}return t.prototype.where=function(e,n,r){Ci("Query.where",arguments,3),Mi("Query.where",3,r);var i=Pi("Query.where",["<","<=","==",">=",">","array-contains","in","array-contains-any"],2,n),o=_o("Query.where",e),a=Ha(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 sn(t.path,t.collectionGroup,t.tn.slice(),n,t.limit,t.en,t.startAt,t.endAt)}(this.bd,a),this.firestore,this.ca)},t.prototype.orderBy=function(e,n){var r;if(Ei("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=za(this.bd,i,r);return new t(function(t,e){var n=t.tn.concat([e]);return new sn(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 Ci("Query.limit",arguments,1),xi("Query.limit","number",1,e),ji("Query.limit",1,e),new t(fn(this.bd,e,"F"),this.firestore,this.ca)},t.prototype.limitToLast=function(e){return Ci("Query.limitToLast",arguments,1),xi("Query.limitToLast","number",1,e),ji("Query.limitToLast",1,e),new t(fn(this.bd,e,"L"),this.firestore,this.ca)},t.prototype.startAt=function(e){for(var n=[],r=1;ra.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 s=[],u=0;u=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 a=e&&e.error;if(a){var l=a.status;if("string"==typeof l){if(!s[l])return new u("internal","internal");r=s[l],i=l}var c=a.message;"string"==typeof c&&(i=c),void 0!==(o=a.details)&&(o=n.decode(o))}}catch(h){}return"ok"===r?null:new u(r,i,o)}(f.status,f.json,this.serializer))throw v;if(!f.json)throw new u("internal","Response is not valid JSON object.");if(void 0===(g=f.json.data)&&(g=f.json.result),void 0===g)throw new u("internal","Response is missing data field.");return[2,{data:this.serializer.decode(g)}]}}))}))},t}();function p(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:f},i.INTERNAL.registerComponent(new a.Component("functions",(function(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),i=t.getProvider("messaging");return new f(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(a){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(a){}if(!e)try{return new(i[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(a){}}},Aplp:function(t,e,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o={},a=0,s=0;function u(t){var e="";do{e=i[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function l(){var t=u(+new Date);return t!==r?(a=0,r=t):t+"."+u(a++)}for(;s<64;s++)o[i[s]]=s;l.encode=u,l.decode=function(t){var e=0;for(s=0;s0&&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"),a=n("Wm4p"),s=n("TypT"),u=n("Yvos"),l=n("Aplp"),c=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(f){}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,u(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(),c(),t=t.replace(u,"\\\n"),this.area.value=t.replace(s,"\\n");try{this.form.submit()}catch(h){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&l()}:this.iframe.onload=l}},FGiv:function(t,e){var n=1e3,r=6e4,i=60*r,o=24*i;function a(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 s,u,l=typeof t;if("string"===l&&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 a=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===l&&isFinite(t))return e.long?(s=t,(u=Math.abs(s))>=o?a(s,u,o,"day"):u>=i?a(s,u,i,"hour"):u>=r?a(s,u,r,"minute"):u>=n?a(s,u,n,"second"):s+" 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 a=new Array(arguments.length),s=0;s>>0),y=0;function b(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=P("__EID__")?"__EID__":void 0,S(D,Error),D.prototype.name="CustomError",S(R,D),R.prototype.name="AssertionError",L.prototype.get=function(){if(0/g,rt=/"/g,it=/'/g,ot=/\x00/g,at=/[\x00&<>"']/;function st(t,e){return-1!=t.indexOf(e)}function ut(t,e){return te?1:0}t:{var lt=u.navigator;if(lt){var ct=lt.userAgent;if(ct){J=ct;break t}}J=""}function ht(t){return st(J,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function ft(t){for(var e in t)return!1;return!0}function pt(t){var e,n={};for(e in t)n[e]=t[e];return n}var vt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(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 yt(t,e){this.a=t===wt&&e||"",this.b=_t}function bt(t){return t instanceof yt&&t.constructor===yt&&t.b===_t?t.a:(M("expected object of type Const, got '"+t+"'"),"type_error:Const")}yt.prototype.ra=!0,yt.prototype.qa=function(){return this.a},yt.prototype.toString=function(){return"Const{"+this.a+"}"};var _t={},wt={},kt=new yt(wt,"");function Ct(t,e){this.a=t===Ot&&e||"",this.b=It}function St(t){return t instanceof Ct&&t.constructor===Ct&&t.b===It?t.a:(M("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function Et(t,e){var n=bt(t);if(!Tt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(xt,(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 yt?bt(t):encodeURIComponent(String(t))})),new Ct(Ot,t)}Ct.prototype.ra=!0,Ct.prototype.qa=function(){return this.a.toString()},Ct.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var xt=/%{(\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 Pt(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 Nt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Dt(t){return t instanceof At?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Nt.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"),Kt=ht("Trident")||ht("MSIE"),Qt=ht("Edge"),Xt=Qt||Kt,$t=ht("Gecko")&&!(st(J.toLowerCase(),"webkit")&&!ht("Edge"))&&!(ht("Trident")||ht("MSIE"))&&!ht("Edge"),Yt=st(J.toLowerCase(),"webkit")&&!ht("Edge");function Jt(){var t=u.document;return t?t.documentMode:void 0}t:{var Zt="",te=(Wt=J,$t?/rv:([^\);]+)(\)|;)/.exec(Wt):Qt?/Edge\/([\d\.]+)/.exec(Wt):Kt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Wt):Yt?/WebKit\/(\S+)/.exec(Wt):Gt?/(?:Version)[ \/]?(\S+)/.exec(Wt):void 0);if(te&&(Zt=te?te[1]:""),Kt){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){}},Xe.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&&Q(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(a){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=fn(r[i],t,!0,e);n=n&&o}for(i=0;i>>0);function yn(t){return p(t)?t:(t[mn]||(t[mn]=function(e){return t.handleEvent(e)}),t[mn])}function bn(){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 kn(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 Kn?(t.a=e,function(t,e){e&&!t.f&&(Qn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&($n(this,e),Jn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Vn(e,Wn)),t.a=new Kn(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 Pn?new Pn(t):new Pn(t,void 0)}function jn(t,e){var n=new Pn(null,void 0);return Nn(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)}Pn.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("")},Pn.prototype.resolve=function(t){var e=new Pn(this),n=!!t.f;n?Nn(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(st(i,"./")||st(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a2*t.c&&In(t)))}function Yn(t,e){return Qn(t),e=tr(t,e),On(t.a.b,e)}function Jn(t,e,n){$n(t,e),0'),r=a.document)&&(r.write(Ft(t)),r.close())):(a=r.open(Pt(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var dr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,fr=/^[^@]+@[^@]+$/;function pr(){var t=null;return new be((function(e){"complete"==u.document.readyState?e():(t=function(){e()},ln(window,"load",t))})).o((function(e){throw cn(window,"load",t),e}))}function vr(t){return t=t||Sr(),!("file:"!==Or()&&"ionic:"!==Or()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var t=u.window;try{return!(!t||t==t.top)}catch(e){return!1}}function mr(){return void 0!==u.WorkerGlobalScope&&"function"==typeof u.importScripts}function yr(){return e.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":e.INTERNAL.hasOwnProperty("node")?"Node":mr()?"Worker":"Browser"}function br(){var t=yr();return"ReactNative"===t||"Node"===t}var _r="Firefox";function wr(t){var e=t.toLowerCase();return st(e,"opera/")||st(e,"opr/")||st(e,"opios/")?"Opera":st(e,"iemobile")?"IEMobile":st(e,"msie")||st(e,"trident/")?"IE":st(e,"edge/")?"Edge":st(e,"firefox/")?_r:st(e,"silk/")?"Silk":st(e,"blackberry")?"Blackberry":st(e,"webos")?"Webos":!st(e,"safari/")||st(e,"chrome/")||st(e,"crios/")||st(e,"android")?!st(e,"chrome/")&&!st(e,"crios/")||st(e,"edge/")?st(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":"Chrome":"Safari"}var kr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Cr(t,e){e=e||[];var n,r=[],i={};for(n in kr)i[kr[n]]=!0;for(n=0;ne)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Sr(),e=yr(),this.b=lr(t)||"ReactNative"===e}function jr(){var t=u.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!(!Er("fireauth.oauthhelper",u)&&!Er("fireauth.iframe",u))}Fr.prototype.get=function(){var t=u.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 Kr(t){var e={};return Gr(e,t),e}function Qr(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Wr(e,n,Qr(t[n]));return e}function Xr(t){var e=t&&(t[ti]?"phone":null);if(!(e&&t&&t[Zr]))throw new E("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 $r(t){try{var e=new ei(t)}catch(n){e=null}return e}Xr.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){Xr.call(this,t),Wr(this,"phoneNumber",t[ti])}function ni(t){var e={},n=t[ai],r=t[ui],i=t[li];if(t=$r(t[si]),!i||i!=ii&&i!=oi&&!n||i==oi&&!r||i==ri&&!t)throw Error("Invalid checkActionCode response!");i==oi?(e[hi]=n||null,e[fi]=n||null,e[ci]=r):(e[hi]=r||null,e[fi]=r||null,e[ci]=n||null),e[di]=t||null,Wr(this,vi,i),Wr(this,pi,Qr(e))}S(ei,Xr),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",ai="email",si="mfaInfo",ui="newEmail",li="requestType",ci="email",hi="fromEmail",di="multiFactorInfo",fi="previousEmail",pi="data",vi="operation";function gi(t){var e=Ln(t=Fn(t),mi)||null,n=Ln(t,yi)||null,r=Ln(t,wi)||null;if(r=r&&Ci[r]||null,!e||!n||!r)throw new E("argument-error",mi+", "+yi+"and "+wi+" are required in a valid action code URL.");Gr(this,{apiKey:e,operation:r,code:n,continueUrl:Ln(t,bi)||null,languageCode:Ln(t,_i)||null,tenantId:Ln(t,ki)||null})}var mi="apiKey",yi="oobCode",bi="continueUrl",_i="languageCode",wi="mode",ki="tenantId",Ci={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ri,signIn:ii,verifyAndChangeEmail:oi,verifyEmail:"VERIFY_EMAIL"};function Si(t){try{return new gi(t)}catch(e){return null}}function Ei(t){var e=t[Ai];if(void 0===e)throw new E("missing-continue-uri");if("string"!=typeof e||"string"==typeof e&&!e.length)throw new E("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[xi];if(n&&"object"==typeof n){e=n[Di];var r=n[Pi];if(n=n[Ni],"string"==typeof e&&e.length){if(this.a=e,void 0!==r&&"boolean"!=typeof r)throw new E("argument-error",Pi+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new E("argument-error",Ni+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==e)throw new E("argument-error",Di+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new E("missing-android-pkg-name")}}else if(void 0!==n)throw new E("argument-error",xi+" 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 E("argument-error",Ri+" property must be a non empty string when specified.")}else if(void 0!==e)throw new E("argument-error",Oi+" property must be a non null object when specified.");if(void 0!==(e=t[Ii])&&"boolean"!=typeof e)throw new E("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 E("argument-error",Ti+" property must be a non empty string when specified.");this.i=t||null}var xi="android",Ti="dynamicLinkDomain",Ii="handleCodeInApp",Oi="iOS",Ai="url",Pi="installApp",Ni="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,C(),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!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(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"]=Xi,e["google.com"]=Yi,e["github.com"]=$i,e["twitter.com"]=Ji;var n=t&&t[Gi];try{if(n)return e[n]?new e[n](t):new Qi(t);if(void 0!==t[Wi])return new Ki(t)}catch(r){}return null}var Wi="idToken",Gi="providerId";function Ki(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 Qi(t){Ki.call(this,t),Wr(this,"profile",Qr((t=Dr(t.rawUserInfo||"{}"))||{}))}function Xi(t){if(Qi.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function $i(t){if(Qi.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(Qi.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ji(t){if(Qi.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 E("internal-error","Internal assert: no raw session string available");if(t&&e)throw new E("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?eo:no}S(Qi,Ki),S(Xi,Qi),S($i,Qi),S(Yi,Qi),S(Ji,Qi);var eo="enroll",no="signin";function ro(){}function io(t,e){return t.then((function(t){if(t[qa]){var n=ji(t[qa]);if(!n||e!=n.h)throw new E("user-mismatch");return t}throw new E("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==I+"user-not-found"?new E("user-mismatch"):t}))}function oo(t,e){if(!e)throw new E("internal-error","failed to construct a credential");this.a=e,Wr(this,"providerId",t),Wr(this,"signInMethod",t)}function ao(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function so(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 uo(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 E("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 lo(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:Xn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function co(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 uo(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 fo(t){if("string"!=typeof t||0!=t.indexOf("saml."))throw new E("argument-error",'SAML provider IDs must be prefixed with "saml."');ho.call(this,t,[])}function po(t){ho.call(this,t,Bi),this.a=[]}function vo(){po.call(this,"facebook.com")}function go(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new vo).credential({accessToken:e})}function mo(){po.call(this,"github.com")}function yo(t){if(!t)throw new E("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new mo).credential({accessToken:e})}function bo(){po.call(this,"google.com"),this.Aa("profile")}function _o(t,e){var n=t;return v(t)&&(n=t.idToken,e=t.accessToken),(new bo).credential({idToken:n,accessToken:e})}function wo(){ho.call(this,"twitter.com",Vi)}function ko(t,e){var n=t;if(v(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new E("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new uo("twitter.com",n,"twitter.com")}function Co(t,e,n){this.a=t,this.f=e,Wr(this,"providerId","password"),Wr(this,"signInMethod",n===Eo.EMAIL_LINK_SIGN_IN_METHOD?Eo.EMAIL_LINK_SIGN_IN_METHOD:Eo.EMAIL_PASSWORD_SIGN_IN_METHOD)}function So(t){return t&&t.email&&t.password?new Co(t.email,t.password,t.signInMethod):null}function Eo(){Gr(this,{providerId:"password",isOAuthProvider:!1})}function xo(t,e){if(!(e=To(e)))throw new E("argument-error","Invalid email link!");return new Co(t,e.code,Eo.EMAIL_LINK_SIGN_IN_METHOD)}function To(t){return(t=Si(t=Zi(t)))&&t.operation===ii?t:null}function Io(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new E("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 Po(t){try{this.a=t||e.auth()}catch(n){throw new E("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 No(t,e){if(!t)throw new E("missing-verification-id");if(!e)throw new E("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,a=t&&t.pendingToken;try{switch(e){case"google.com":return _o(o,n);case"facebook.com":return go(n);case"github.com":return yo(n);case"twitter.com":return ko(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new oo(e,a):new uo(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new po(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function Ro(t){if(!t.isOAuthProvider)throw new E("invalid-oauth-provider")}function Mo(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new E("invalid-auth-event");if(this.g&&this.a)throw new E("invalid-auth-event");if(this.g&&!this.f)throw new E("invalid-auth-event")}function Lo(t){return(t=t||{}).type?new Mo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&x(t.error),t.postBody,t.tenantId):null}function Fo(){this.b=null,this.a=[]}to.prototype.Fa=function(){return xe(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 ls(t,ao(this))},oo.prototype.b=function(t,e){var n=ao(this);return n.idToken=e,cs(t,n)},oo.prototype.c=function(t,e){return io(hs(t,ao(this)),e)},oo.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},uo.prototype.ia=function(t){return ls(t,lo(this))},uo.prototype.b=function(t,e){var n=lo(this);return n.idToken=e,cs(t,n)},uo.prototype.c=function(t,e){return io(hs(t,lo(this)),e)},uo.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=pt(t),this},S(fo,ho),S(po,ho),po.prototype.Aa=function(t){return K(this.a,t)||this.a.push(t),this},po.prototype.Nb=function(){return Y(this.a)},po.prototype.credential=function(t,e){var n;if(!(n=v(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new E("argument-error","credential failed: must provide the ID token and/or the access token.");return new uo(this.providerId,n,this.providerId)},S(vo,po),Wr(vo,"PROVIDER_ID","facebook.com"),Wr(vo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),S(mo,po),Wr(mo,"PROVIDER_ID","github.com"),Wr(mo,"GITHUB_SIGN_IN_METHOD","github.com"),S(bo,po),Wr(bo,"PROVIDER_ID","google.com"),Wr(bo,"GOOGLE_SIGN_IN_METHOD","google.com"),S(wo,ho),Wr(wo,"PROVIDER_ID","twitter.com"),Wr(wo,"TWITTER_SIGN_IN_METHOD","twitter.com"),Co.prototype.ia=function(t){return this.signInMethod==Eo.EMAIL_LINK_SIGN_IN_METHOD?Gs(t,bs,{email:this.a,oobCode:this.f}):Gs(t,Bs,{email:this.a,password:this.f})},Co.prototype.b=function(t,e){return this.signInMethod==Eo.EMAIL_LINK_SIGN_IN_METHOD?Gs(t,_s,{idToken:e,email:this.a,oobCode:this.f}):Gs(t,Ds,{idToken:e,email:this.a,password:this.f})},Co.prototype.c=function(t,e){return io(this.ia(t),e)},Co.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Gr(Eo,{PROVIDER_ID:"password"}),Gr(Eo,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Gr(Eo,{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,Gs(t,zs,n)},Io.prototype.c=function(t,e){var n=Ao(this);return n.operation="REAUTH",io(t=Gs(t,qs,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},Po.prototype.cb=function(t,e){var n=this.a.b;return xe(e.verify()).then((function(r){if("string"!=typeof r)throw new E("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=v(t)?t.session:null,o=v(t)?t.phoneNumber:t;return(i&&i.type==eo?i.Fa().then((function(t){return function(t,e){return Gs(t,Ms,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 Gs(t,Ls,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 Gs(t,Ps,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 E("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Gr(Po,{PROVIDER_ID:"phone"}),Gr(Po,{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",E.call(this,e,n)}function Bo(t,e,n){E.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 E(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(p(e)&&(e=e()),t=new Xo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var na={},ra=null;function ia(t){var e;if(ra||(ra=new $o(""),na[""]=ra,ra.c=ta),!(e=na[t])){e=new $o(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=ia(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,na[t]=e}return e}function oa(t,e){t&&t.log(ea,e,void 0)}function aa(t){this.f=t}function sa(t){bn.call(this),this.s=t,this.readyState=ua,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=ia("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}S(aa,zo),aa.prototype.a=function(){return new sa(this.f)},aa.prototype.b=function(t){return function(){return t}}({}),S(sa,bn);var ua=0;function la(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function ca(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,ha(t)}function ha(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function da(t){bn.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=fa,this.w=this.R=!1}(t=sa.prototype).open=function(t,e){if(this.readyState!=ua)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,ha(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,ca(this,!1)),this.readyState=ua},t.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ha(this)),this.a&&(this.readyState=3,ha(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):void 0!==u.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,la(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?ca(this,!0):ha(this),3==this.readyState&&la(this)}},t.rc=function(t){this.a&&(this.response=this.responseText=t,ca(this,!0))},t.qc=function(t){this.a&&(this.response=t,ca(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&&ca(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")},S(da,bn);var fa="";da.prototype.b=ia("goog.net.XhrIo");var pa=/^https?$/i,va=["POST","PUT"];function ga(t){return"content-type"==t.toLowerCase()}function ma(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ya(t),_a(t)}function ya(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ba(t){if(t.c&&void 0!==s)if(t.B[1]&&4==ka(t)&&2==Ca(t))oa(t.b,Sa(t,"Local request error detected and ignored"));else if(t.i&&4==ka(t))Cn(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==ka(t)){oa(t.b,Sa(t,"Request complete")),t.c=!1;try{var e,n=Ca(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&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!pa.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var l=2=e.l&&e.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Na(this),Ta(this),xa(this,!1,t))}},Ea.prototype.m=function(t,e){this.i=!1,xa(this,t,e)},Ea.prototype.then=function(t,e,n){var r,i,o=new be((function(t,e){r=t,i=e}));return Ia(this,r,(function(t){t instanceof Na?o.cancel():i(t)})),o.then(t,e,n)},Ea.prototype.$goog_Thenable=!0,S(Pa,D),Pa.prototype.message="Deferred has already fired",Pa.prototype.name="AlreadyCalledError",S(Na,D),Na.prototype.message="Deferred was canceled",Na.prototype.name="CanceledError",Da.prototype.c=function(){throw delete Ra[this.a],this.b};var Ra={};function Ma(t){var e={},n=e.document||document,r=St(t).toString(),i=de(document,"SCRIPT"),o={Tb:i,Ka:void 0},a=new Ea(o),s=null,h=null!=e.timeout?e.timeout:5e3;return 0t||Kt&&ne&&!(9e?null:"string"==typeof t?t.charAt(e):t[e]}(o.X()),r=u.FormData&&e instanceof u.FormData,!K(va,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{wa(t),0e;e++){var o=(0|n[e-16])+(((i=0|n[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+(((r=0|n[e-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],l=0|t.a[4],c=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&s^i&s)|0;a=(o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0)+((a=(a=l&c^~l&h)+(0|Qu[e])|0)+(0|n[e])|0)|0,o=h,h=c,c=l,l=u+a|0,u=s,s=i,i=r,r=a+d|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+l|0,t.a[5]=t.a[5]+c|0,t.a[6]=t.a[6]+h|0,t.a[7]=t.a[7]+o|0}function il(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&&(rl(t),i=0)}}t.c=i,t.g+=n}Yu.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):Y(this.h)};var ol=[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 al(){Yu.call(this,8,sl)}S(al,Yu);var sl=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function ul(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 $u,this.g=new Ku(this.h),this.f=null,this.b=[],this.a=this.c=null}function ll(t){return new E("invalid-cordova-configuration",t)}function cl(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(rl(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),c.sessionId=o;var h=su(t.u,t.i,t.l,e,n,null,r,t.m,c,t.s,i);return t.ka().then((function(){var e=t.h;return t.w.a.set(Xu,a.v(),e)})).then((function(){var e=Er("cordova.plugins.browsertab.isAvailable",u);if("function"!=typeof e)throw new E("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!=typeof(n=Er("cordova.plugins.browsertab.openUrl",u)))throw new E("invalid-cordova-configuration");n(h)}else{if("function"!=typeof(n=Er("cordova.InAppBrowser.open",u)))throw new E("invalid-cordova-configuration");e=Sr(),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 be((function(t,e){s=function(){var e=Er("cordova.plugins.browsertab.close",u);return t(),"function"==typeof e&&e(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),c=function(){jr()&&l()},o.addEventListener("resume",l=function(){a||(a=Sn(2e3).then((function(){e(new E("redirect-cancelled-by-user"))})))},!1),Sr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)})).o((function(t){return dl(i).then((function(){throw t}))}))})).ma((function(){l&&o.removeEventListener("resume",l,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.Qa(s),i.c=null}))},t.Ca=function(t){this.b.push(t),hl(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Mo("unknown",null,null,null,new E("no-auth-event")),t(e))}))},t.Qa=function(t){X(this.b,(function(e){return e==t}))};var pl={name:"pendingRedirect",F:"session"};function vl(t){return Wu(t.b,pl,t.a)}function gl(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 Al,this.B=new Ml,this.g=new fl(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=ml(this.D,this.u,this.m,T)}function ml(t,n,r,i){var o=e.SDK_VERSION||null;return vr()?new ul(t,n,r,o,i):new ru(t,n,r,o,i)}function yl(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 bl(t){t.a.Ub()&&yl(t).o((function(e){var n=new Mo("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));El(e)&&t.s(n)})),t.a.Qb()||Pl(t.b)}function _l(t,e){K(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(pl,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?vl(t.g).then((function(){yl(t).o((function(e){var n=new Mo("unknown",null,null,null,new E("operation-not-supported-in-this-environment"));El(e)&&t.s(n)}))})):bl(t)})).o((function(){bl(t)}))}function wl(t,e){X(t.h,(function(t){return t==e}))}gl.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=ml(this.D,this.u,this.m),this.i={}},gl.prototype.s=function(t){if(!t)throw new E("invalid-auth-event");if(6e5<=C()-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=u.document,e=null;return jr()||!t?xe():new be((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)},Yl.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Jl.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:Zl(this)}},Jl.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Te(new E("user-token-expired")):t||!this.b||C()>Zl(this)-3e4?this.a?function(t,e){return function(t,e){return new be((function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?Ya(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?r(Qs(t)):t.access_token&&t.refresh_token?n(t):r(new E("internal-error")):r(new E("network-request-failed"))}),"POST",Xn(e).toString(),t.g,t.m.get()):r(new E("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}):xe(null):xe({accessToken:this.b.toString(),refreshToken:this.a})},ec.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(rc,bn),rc.prototype.va=function(t){this.oa=t,Xa(this.a,t)},rc.prototype.ja=function(){return this.oa},rc.prototype.Ea=function(){return Y(this.W)},rc.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Wr(rc.prototype,"providerId","firebase"),(t=rc.prototype).reload=function(){var t=this;return Oc(this,vc(this).then((function(){return wc(t).then((function(){return hc(t)})).then(pc)})))},t.mc=function(t){return this.I(t).then((function(t){return new Ul(t)}))},t.I=function(t){var e=this;return Oc(this,vc(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new E("internal-error");return t.accessToken!=e.xa&&(cc(e,t.accessToken),e.dispatchEvent(new Ql("tokenChanged"))),bc(e,"refreshToken",t.refreshToken),t.accessToken})))},t.Ic=function(t){if(!(t=t.users)||!t.length)throw new E("internal-error");fc(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 nc(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;nthis.s&&(this.s=0),0==this.s&&$c(this)&&lc($c(this)),this.removeAuthTokenListener(t)},t.addAuthTokenListener=function(t){var e=this;this.m.push(t),Zc(this,this.h.then((function(){e.l||K(e.m,t)&&t(Yc(e))})))},t.removeAuthTokenListener=function(t){X(this.m,(function(e){return e==t}))},t.delete=function(){this.l=!0;for(var t=0;ti||i>=Sh.length)throw new E("internal-error","Argument validator received an unsupported number of arguments.");n=Sh[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new E("argument-error",t+" failed: "+r)}(t=ph.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=_h(this,xe().then((function(){if(Ir()&&!mr())return pr();throw new E("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,Gs(t.s,Os,{})})).then((function(e){t.a[mh]=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=ae(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!oe&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',Ht(a.name),'"'),a.type){o.push(' type="',Ht(a.type),'"');var s={};gt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=de(i,o),a&&("string"==typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):se(o,a)),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 k(t,e){switch(t){case m.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw v(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case m.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw v(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(l){throw v(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u][;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)},S={STATE_CHANGED:"state_changed"},E={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function x(t){switch(t){case"running":case"pausing":case"canceling":return E.RUNNING;case"paused":return E.PAUSED;case"success":return E.SUCCESS;case"canceled":return E.CANCELED;case"error":default:return E.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 P(t){return A(t)&&null!==t}function N(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 g("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 g("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw g("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw g("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 K(t){return"https://firebasestorage.googleapis.com/v0"+t}function Q(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 X(t,e){return e}var $=function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||X},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&&!N(t.pageToken))throw"Expected pageToken to be string."}}var nt=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 l()}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 s("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?new s("quota-exceeded","Quota for bucket '"+t.bucket+"' exceeded, please view quota on https://firebase.google.com/pricing/."):403===e.getStatus()?new s("unauthorized","User does not have permission to access '"+t.path+"'."):n).setServerResponseProp(n.serverResponseProp()),r}}function at(t){var e=ot(t);return function(n,r){var i=e(n,r);return 404===n.getStatus()&&(i=new s("object-not-found","Object '"+t.path+"' does not exist.")),i.setServerResponseProp(r.serverResponseProp()),i}}function st(t,e,n){var r=K(e.fullServerUrl()),i=t.maxOperationRetryTime,o=new nt(r,"GET",it(t,n),i);return o.errorHandler=at(e),o}function ut(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 a=K(e.bucketOnlyServerUrl()),s=t.maxOperationRetryTime,u=new nt(a,"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 St(t,e){return new yt((function(e){if(!(null===e||T(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)}),e)}function Et(t){return new yt((function(t){if(null!==t&&!O(t))throw"Expected a Function."}),t)}function xt(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(),a=dt(e,r,i),s={name:a.fullPath},u=K(o),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=Z(a,n),h=new nt(u,"POST",(function(t){var e;pt(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){rt(!1)}return rt(N(e)),e}),t.maxUploadRetryTime);return h.urlParams=s,h.headers=l,h.body=c,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=pt(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 ft(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 ft(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=function(t,e,n,r,i,o,a,u){var l=new ft(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw new s("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=l.total-l.current,d=c;i>0&&(d=Math.min(d,i));var f=l.current,p={"X-Goog-Upload-Command":d===c?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},v=r.slice(f,f+d);if(null===v)throw h();var g=new nt(n,"POST",(function(t,n){var i,a=pt(t,["active","final"]),s=l.current+d,u=r.size();return i="final"===a?it(e,o)(t,n):null,new ft(s,u,"final"===a,i)}),e.maxUploadRetryTime);return g.headers=p,g.body=v.uploadData(),g.progressCallback=u||null,g.errorHandler=ot(t),g}(t.location_,t.service_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(u){return t.error_=u,void t.transition_("error")}var a=t.service_.makeRequest(o,i);t.request_=a,a.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=st(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(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();a["Content-Type"]="multipart/related; boundary="+s;var u=dt(e,r,i),l=Z(u,n),c=H.getBlob("--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+l+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",r,"\r\n--"+s+"--");if(null===c)throw h();var d={name:u.fullPath},f=K(o),p=t.maxUploadRetryTime,v=new nt(f,"POST",it(t,n),p);return v.urlParams=d,v.headers=a,v.body=c.uploadData(),v.errorHandler=ot(e),v}(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_=c(),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=x(this.state_);return new gt(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!==S.STATE_CHANGED)throw"Expected one of the event types: ["+S.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=Et(!0).validator,s=St(null,!0).validator;function u(t){try{return void a(t)}catch(e){}try{if(s(t),!(I(t.next)||I(t.error)||I(t.complete)))throw"";return}catch(e){throw o}}var l=[bt(i),St(u,!0),Et(!0),Et(!0)];mt("on",l,arguments);var c=this;function h(t){return function(e,n,i){null!==t&&mt("on",t,arguments);var o=new vt(e,n,r);return c.addObserver_(o),function(){c.removeObserver_(o)}}}function d(t){if(null===t)throw o;u(t)}var f=[St(d),Et(!0),Et(!0)],p=!(I(e)||I(n)||I(r));return p?h(f):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(x(this.state_)){case E.SUCCESS:xt(this.resolve_.bind(null,this.snapshot))();break;case E.CANCELED:case E.ERROR:xt(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(x(this.state_)){case E.RUNNING:case E.PAUSED:t.next&&xt(t.next.bind(t,this.snapshot))();break;case E.SUCCESS:t.complete&&xt(t.complete.bind(t))();break;case E.CANCELED:case E.ERROR:t.error&&xt(t.error.bind(t,this.error_))();break;default:t.error&&xt(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){mt("resume",[],arguments);var t="paused"===this.state_||"pausing"===this.state_;return t&&this.transition_("running"),t},t.prototype.pause=function(){mt("pause",[],arguments);var t="running"===this.state_;return t&&this.transition_("pausing"),t},t.prototype.cancel=function(){mt("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 mt("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 $("bucket")),t.push(new $("generation")),t.push(new $("metageneration")),t.push(new $("name","fullPath",!0));var e=new $("name");e.xform=function(t,e){return function(t){return!N(t)||t.length<2?t:G(t)}(e)},t.push(e);var n=new $("size");return n.xform=function(t,e){return T(e)?Number(e):e},t.push(n),t.push(new $("timeCreated")),t.push(new $("updated")),t.push(new $("md5Hash",null,!0)),t.push(new $("cacheControl",null,!0)),t.push(new $("contentDisposition",null,!0)),t.push(new $("contentEncoding",null,!0)),t.push(new $("contentLanguage",null,!0)),t.push(new $("contentType",null,!0)),t.push(new $("metadata","customMetadata",!0)),Y=t}()},t.prototype.child=function(t){mt("child",[bt()],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),mt("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=m.RAW),mt("putString",[bt(),bt(y,!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 mt("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(){mt("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){mt("list",[kt(!0)],arguments);var e=this;return this.service.getAuthToken().then((function(n){var r=t||{},i=ut(e.service,e.location,"/",r.pageToken,r.maxResults);return e.service.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return mt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(e){var n=st(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return mt("updateMetadata",[wt()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var r=ct(e.service,e.location,t,e.mappings());return e.service.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return mt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(e){var n=lt(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 s("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,a,s,u,l,c){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_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c,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_,a=n.xhr;if(n.wasSuccessCode)try{var u=t.callback_(a,a.getResponseText());I(u)?i(u):i()}catch(h){o(h)}else null!==a?((r=l()).setServerResponseProp(a.getResponseText()),o(t.errorCallback_?t.errorCallback_(a,r):r)):o(r=n.canceled?t.appDelete_?p():c():new s("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new Pt(!1,null,!0)):this.backoffId_=function(e,n,r){var i=1,a=null,s=!1,u=0;function l(){return 2===u}var c=!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}(),Pt=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n},Nt=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(p());var r=function(t,e,n,r){var o=Q(t.urlParams),a=t.url+o,s=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(s,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(s,n),function(t){t["X-Firebase-Storage-Version"]="webjs/"+(void 0!==i.a?i.a.SDK_VERSION:"AppManager")}(s),new At(a,t.method,s,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(mt("ref",[bt(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 mt("refFromURL",[bt(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){mt("setMaxUploadRetryTime",[Ct()],arguments),this.maxUploadRetryTime_=t},Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxOperationRetryTime=function(t){mt("setMaxOperationRetryTime",[Ct()],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 Nt(n,r,new U,e)}function Mt(t){var e={TaskState:E,TaskEvent:S,StringFormat:m,Storage:Nt,Reference:It};t.INTERNAL.registerComponent(new a.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__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",d="[object Function]",f="[object GeneratorFunction]",p="[object Map]",v="[object Number]",g="[object Object]",m="[object RegExp]",y="[object Set]",b="[object String]",_="[object Symbol]",w="[object WeakMap]",k="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",E="[object Float64Array]",x="[object Int8Array]",T="[object Int16Array]",I="[object Int32Array]",O="[object Uint8Array]",A="[object Uint16Array]",P="[object Uint32Array]",N=/\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),K=/^\s+|\s+$/g,Q=/^\s+/,X=/\s+$/,$=/\{(?:\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\]$/,at=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ut=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lt=/($^)/,ct=/['\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",ft="["+dt+"]",pt="["+ht+"]",vt="\\d+",gt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+dt+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",yt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",_t="(?:\\ud83c[\\udde6-\\uddff]){2}",wt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+gt+"|"+mt+")",St="(?:"+kt+"|"+mt+")",Et="(?:"+pt+"|"+yt+")?",xt="[\\ufe0e\\ufe0f]?"+Et+"(?:\\u200d(?:"+[bt,_t,wt].join("|")+")[\\ufe0e\\ufe0f]?"+Et+")*",Tt="(?:"+["[\\u2700-\\u27bf]",_t,wt].join("|")+")"+xt,It="(?:"+[bt+pt+"?",pt,_t,wt,"[\\ud800-\\udfff]"].join("|")+")",Ot=RegExp("['\u2019]","g"),At=RegExp(pt,"g"),Pt=RegExp(yt+"(?="+yt+")|"+It+xt,"g"),Nt=RegExp([kt+"?"+gt+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ft,kt,"$"].join("|")+")",St+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ft,kt+Ct,"$"].join("|")+")",kt+"?"+Ct+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['\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_])",vt,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[S]=Ft[E]=Ft[x]=Ft[T]=Ft[I]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[A]=Ft[P]=!0,Ft[s]=Ft[u]=Ft[k]=Ft[l]=Ft[C]=Ft[c]=Ft[h]=Ft[d]=Ft[p]=Ft[v]=Ft[g]=Ft[m]=Ft[y]=Ft[b]=Ft[w]=!1;var jt={};jt[s]=jt[u]=jt[k]=jt[C]=jt[l]=jt[c]=jt[S]=jt[E]=jt[x]=jt[T]=jt[I]=jt[p]=jt[v]=jt[g]=jt[m]=jt[y]=jt[b]=jt[_]=jt[O]=jt["[object Uint8ClampedArray]"]=jt[A]=jt[P]=!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,Kt=Gt&&Gt.exports===Wt,Qt=Kt&&Ht.process,Xt=function(){try{return Gt&&Gt.require&&Gt.require("util").types||Qt&&Qt.binding&&Qt.binding("util")}catch(t){}}(),$t=Xt&&Xt.isArrayBuffer,Yt=Xt&&Xt.isDate,Jt=Xt&&Xt.isMap,Zt=Xt&&Xt.isRegExp,te=Xt&&Xt.isSet,ee=Xt&&Xt.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 le(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function Pe(t,e){for(var n=t.length;n--&&ye(e,t[n],0)>-1;);return n}function Ne(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var De=Ce({"\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=Ce({"&":"&","<":"<",">":">",'"':""","'":"'"});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,a=[];++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,ft=e.Function,pt=e.Math,vt=e.Object,gt=e.RegExp,mt=e.String,yt=e.TypeError,bt=r.prototype,_t=vt.prototype,wt=e["__core-js_shared__"],kt=ft.prototype.toString,Ct=_t.hasOwnProperty,St=0,Et=(n=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",xt=_t.toString,Tt=kt.call(vt),It=qt._,Pt=gt("^"+kt.call(Ct).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dt=Kt?e.Buffer:void 0,Ut=e.Symbol,Ht=e.Uint8Array,zt=Dt?Dt.allocUnsafe:void 0,Wt=je(vt.getPrototypeOf,vt),Gt=vt.create,Qt=_t.propertyIsEnumerable,Xt=bt.splice,ve=Ut?Ut.isConcatSpreadable:void 0,Ce=Ut?Ut.iterator:void 0,Ge=Ut?Ut.toStringTag:void 0,Ke=function(){try{var t=Yi(vt,"defineProperty");return t({},"",{}),t}catch(e){}}(),Qe=e.clearTimeout!==qt.clearTimeout&&e.clearTimeout,Xe=ht&&ht.now!==qt.Date.now&&ht.now,$e=e.setTimeout!==qt.setTimeout&&e.setTimeout,Ye=pt.ceil,Je=pt.floor,Ze=vt.getOwnPropertySymbols,tn=Dt?Dt.isBuffer:void 0,en=e.isFinite,nn=bt.join,rn=je(vt.keys,vt),on=pt.max,an=pt.min,sn=ht.now,un=e.parseInt,ln=pt.random,cn=bt.reverse,hn=Yi(e,"DataView"),dn=Yi(e,"Map"),fn=Yi(e,"Promise"),pn=Yi(e,"Set"),vn=Yi(e,"WeakMap"),gn=Yi(vt,"create"),mn=vn&&new vn,yn={},bn=To(hn),_n=To(dn),wn=To(fn),kn=To(pn),Cn=To(vn),Sn=Ut?Ut.prototype:void 0,En=Sn?Sn.valueOf:void 0,xn=Sn?Sn.toString:void 0;function Tn(t){if(qa(t)&&!Da(t)&&!(t instanceof Pn)){if(t instanceof An)return t;if(Ct.call(t,"__wrapped__"))return Io(t)}return new An(t)}var In=function(){function t(){}return function(e){if(!za(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 Pn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Xn(t,e,n,r,i,o){var a,u=1&e,h=2&e,w=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!za(t))return t;var N=Da(t);if(N){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return vi(t,a)}else{var D=to(t),R=D==d||D==f;if(Fa(t))return li(t,u);if(D==g||D==s||R&&!i){if(a=h||R?{}:no(t),!u)return h?function(t,e){return gi(t,Zi(t),e)}(t,function(t,e){return t&&gi(e,ws(e),t)}(a,t)):function(t,e){return gi(t,Ji(t),e)}(t,Wn(a,t))}else{if(!jt[D])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case k:return ci(t);case l:case c:return new r(+t);case C:return function(t,e){var n=e?ci(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case E:case x:case T:case I:case O:case"[object Uint8ClampedArray]":case A:case P:return hi(t,n);case p:return new r;case v:case b:return new r(t);case m:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new r;case _:return En?vt(En.call(t)):{}}}(t,D,u)}}o||(o=new Ln);var M=o.get(t);if(M)return M;o.set(t,a),Xa(t)?t.forEach((function(r){a.add(Xn(r,e,n,r,t,o))})):Wa(t)&&t.forEach((function(r,i){a.set(i,Xn(r,e,n,i,t,o))}));var L=N?void 0:(w?h?qi:zi:h?ws:_s)(t);return ie(L||t,(function(r,i){L&&(r=t[i=r]),Hn(a,i,Xn(r,e,n,i,t,o))})),a}function $n(t,e,n){var r=n.length;if(null==t)return!r;for(t=vt(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 yt(i);return yo((function(){t.apply(void 0,n)}),e)}function Jn(t,e,n,r){var i=-1,o=ue,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=ce(e,Te(n))),r?(o=le,a=!1):e.length>=200&&(o=Oe,a=!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 Nn,map:new(dn||Dn),string:new Nn}},Rn.prototype.delete=function(t){var e=Xi(this,t).delete(t);return this.size-=e?1:0,e},Rn.prototype.get=function(t){return Xi(this,t).get(t)},Rn.prototype.has=function(t){return Xi(this,t).has(t)},Rn.prototype.set=function(t,e){var n=Xi(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=bi(sr),tr=bi(ur,!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(s)?e>1?ir(s,e-1,n,r,i):he(i,s):r||(i[i.length]=s)}return i}var or=_i(),ar=_i(!0);function sr(t,e){return t&&or(t,e,_s)}function ur(t,e){return t&&ar(t,e,_s)}function lr(t,e){return se(e,(function(e){return Va(t[e])}))}function cr(t,e){for(var n=0,r=(e=oi(e,t)).length;null!=t&&ne}function pr(t,e){return null!=t&&Ct.call(t,e)}function vr(t,e){return null!=t&&e in vt(t)}function gr(t,e,n){for(var i=n?le:ue,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var h=t[s];s&&e&&(h=ce(h,Te(e))),l=an(h.length,l),u[s]=!n&&(e||o>=120&&h.length>=120)?new Mn(s&&h):void 0}h=t[0];var d=-1,f=u[0];t:for(;++d=s?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(Er(t,(function(t,n,i){return{criteria:ce(e,(function(e){return e(t)})),index:++r,value:t}})))}function Pr(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)s!==t&&Xt.call(s,u,1),Xt.call(t,u,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)?Xt.call(t,i,1):Yr(t,i)}}return t}function Rr(t,e){return t+Je(ln()*(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 bo(fo(t,e,Gs),t+"")}function Fr(t){return jn(Os(t))}function jr(t,e){var n=Os(t);return ko(n,Qn(e,0,n.length))}function Ur(t,e,n,r){if(!za(t))return t;for(var i=-1,o=(e=oi(e,t)).length,a=o-1,s=t;null!=s&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!Ya(a)&&(n?a<=e:a=200){var l=e?null:Mi(t);if(l)return Ve(l);a=!1,i=Oe,u=new Mn}else u=e?[]:s;t:for(;++r=r?t:zr(t,e,n)}var ui=Qe||function(t){return qt.clearTimeout(t)};function li(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 ci(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function hi(t,e){var n=e?ci(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=Ya(t),a=void 0!==e,s=null===e,u=e==e,l=Ya(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&oo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=vt(e);++r-1?i[o?e[a]:a]:void 0}}function Ei(t){return Hi((function(e){var n=e.length,r=n,o=An.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new yt(i);if(o&&!s&&"wrapper"==Gi(a))var s=new An([],!0)}for(r=s?r:n;++r1&&b.reverse(),h&&ls))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var h=-1,d=!0,f=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($,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ie(a,(function(n){var r="_."+n[0];e&n[1]&&!ue(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=sn(),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 ko(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,Qo(t,n)}));function ea(t){var e=Tn(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ra=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Kn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Pn&&io(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:na,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)})),ia=mi((function(t,e,n){Ct.call(t,n)?++t[n]:Gn(t,n,1)})),oa=Si(No),aa=Si(Do);function sa(t,e){return(Da(t)?ie:Zn)(t,Qi(e,3))}function ua(t,e){return(Da(t)?oe:tr)(t,Qi(e,3))}var la=mi((function(t,e,n){Ct.call(t,n)?t[n].push(e):Gn(t,n,[e])})),ca=Lr((function(t,e,n){var i=-1,o="function"==typeof e,a=Ma(t)?r(t.length):[];return Zn(t,(function(t){a[++i]=o?ne(e,t,n):mr(t,e,n)})),a})),ha=mi((function(t,e,n){Gn(t,n,e)}));function da(t,e){return(Da(t)?ce:Er)(t,Qi(e,3))}var fa=mi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),pa=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),[])})),va=Xe||function(){return qt.Date.now()};function ga(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 ma(t,e){var n;if("function"!=typeof e)throw new yt(i);return t=rs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ya=Lr((function(t,e,n){var r=1;if(n.length){var i=Ue(n,Ki(ya));r|=32}return Fi(t,r,e,n,i)})),ba=Lr((function(t,e,n){var r=3;if(n.length){var i=Ue(n,Ki(ba));r|=32}return Fi(e,r,t,n,i)}));function _a(t,e,n){var r,o,a,s,u,l,c=0,h=!1,d=!1,f=!0;if("function"!=typeof t)throw new yt(i);function p(e){var n=r,i=o;return r=o=void 0,c=e,s=t.apply(i,n)}function v(t){return c=t,u=yo(m,e),h?p(t):s}function g(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=a}function m(){var t=va();if(g(t))return y(t);u=yo(m,function(t){var n=e-(t-l);return d?an(n,a-(t-c)):n}(t))}function y(t){return u=void 0,f&&r?p(t):(r=o=void 0,s)}function b(){var t=va(),n=g(t);if(r=arguments,o=this,l=t,n){if(void 0===u)return v(l);if(d)return ui(u),u=yo(m,e),p(l)}return void 0===u&&(u=yo(m,e)),s}return e=os(e)||0,za(n)&&(h=!!n.leading,a=(d="maxWait"in n)?on(os(n.maxWait)||0,e):a,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==u&&ui(u),c=0,r=l=o=u=void 0},b.flush=function(){return void 0===u?s:y(va())},b}var wa=Lr((function(t,e){return Yn(t,1,e)})),ka=Lr((function(t,e,n){return Yn(t,os(e)||0,n)}));function Ca(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new yt(i);var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ca.Cache||Rn),n}function Sa(t){if("function"!=typeof t)throw new yt(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)}}Ca.Cache=Rn;var Ea=ai((function(t,e){var n=(e=1==e.length&&Da(e[0])?ce(e[0],Te(Qi())):ce(ir(e,1),Te(Qi()))).length;return Lr((function(r){for(var i=-1,o=an(r.length,n);++i=e})),Na=yr(function(){return arguments}())?yr:function(t){return qa(t)&&Ct.call(t,"callee")&&!Qt.call(t,"callee")},Da=r.isArray,Ra=$t?Te($t):function(t){return qa(t)&&dr(t)==k};function Ma(t){return null!=t&&Ha(t.length)&&!Va(t)}function La(t){return qa(t)&&Ma(t)}var Fa=tn||ou,ja=Yt?Te(Yt):function(t){return qa(t)&&dr(t)==c};function Ua(t){if(!qa(t))return!1;var e=dr(t);return e==h||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Va(t){if(!za(t))return!1;var e=dr(t);return e==d||e==f||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ba(t){return"number"==typeof t&&t==rs(t)}function Ha(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function za(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function qa(t){return null!=t&&"object"==typeof t}var Wa=Jt?Te(Jt):function(t){return qa(t)&&to(t)==p};function Ga(t){return"number"==typeof t||qa(t)&&dr(t)==v}function Ka(t){if(!qa(t)||dr(t)!=g)return!1;var e=Wt(t);if(null===e)return!0;var n=Ct.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&kt.call(n)==Tt}var Qa=Zt?Te(Zt):function(t){return qa(t)&&dr(t)==m},Xa=te?Te(te):function(t){return qa(t)&&to(t)==y};function $a(t){return"string"==typeof t||!Da(t)&&qa(t)&&dr(t)==b}function Ya(t){return"symbol"==typeof t||qa(t)&&dr(t)==_}var Ja=ee?Te(ee):function(t){return qa(t)&&Ha(t.length)&&!!Ft[dr(t)]},Za=Ni(Sr),ts=Ni((function(t,e){return t<=e}));function es(t){if(!t)return[];if(Ma(t))return $a(t)?ze(t):vi(t);if(Ce&&t[Ce])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Ce]());var e=to(t);return(e==p?Fe:e==y?Ve:Os)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=ns(t),n=e%1;return e==e?n?e-n:e:0}function is(t){return t?Qn(rs(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Ya(t))return NaN;if(za(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=za(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(K,"");var n=it.test(t);return n||at.test(t)?Bt(t.slice(2),n?2:8):rt.test(t)?NaN:+t}function as(t){return gi(t,ws(t))}function ss(t){return null==t?"":Xr(t)}var us=yi((function(t,e){if(lo(e)||Ma(e))gi(e,_s(e),t);else for(var n in e)Ct.call(e,n)&&Hn(t,n,e[n])})),ls=yi((function(t,e){gi(e,ws(e),t)})),cs=yi((function(t,e,n,r){gi(e,ws(e),t,r)})),hs=yi((function(t,e,n,r){gi(e,_s(e),t,r)})),ds=Hi(Kn),fs=Lr((function(t,e){t=vt(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})),gi(t,qi(t),n),r&&(n=Xn(n,7,Vi));for(var i=e.length;i--;)Yr(n,e[i]);return n})),Es=Hi((function(t,e){return null==t?{}:function(t,e){return Pr(t,e,(function(e,n){return gs(t,n)}))}(t,e)}));function xs(t,e){if(null==t)return{};var n=ce(qi(t),(function(t){return[t]}));return e=Qi(e),Pr(t,n,(function(t,n){return e(t,n[0])}))}var Ts=Li(_s),Is=Li(ws);function Os(t){return null==t?[]:Ie(t,_s(t))}var As=ki((function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}));function Ps(t){return Us(ss(t).toLowerCase())}function Ns(t){return(t=ss(t))&&t.replace(ut,De).replace(At,"")}var Ds=ki((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Rs=ki((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ms=wi("toLowerCase"),Ls=ki((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Fs=ki((function(t,e,n){return t+(n?" ":"")+Us(e)})),js=ki((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Us=wi("toUpperCase");function Vs(t,e,n){return t=ss(t),void 0===(e=n?void 0:e)?function(t){return Rt.test(t)}(t)?function(t){return t.match(Nt)||[]}(t):function(t){return t.match(Z)||[]}(t):t.match(e)||[]}var Bs=Lr((function(t,e){try{return ne(t,void 0,e)}catch(n){return Ua(n)?n:new dt(n)}})),Hs=Hi((function(t,e){return ie(e,(function(e){e=xo(e),Gn(t,e,ya(t[e],t))})),t}));function zs(t){return function(){return t}}var qs=Ei(),Ws=Ei(!0);function Gs(t){return t}function Ks(t){return kr("function"==typeof t?t:Xn(t,1))}var Qs=Lr((function(t,e){return function(n){return mr(n,t,e)}})),Xs=Lr((function(t,e){return function(n){return mr(t,n,e)}}));function $s(t,e,n){var r=_s(e),i=lr(e,r);null!=n||za(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=lr(e,_s(e)));var o=!(za(n)&&"chain"in n&&!n.chain),a=Va(t);return ie(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=vi(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 Ys(){}var Js=Oi(ce),Zs=Oi(ae),tu=Oi(pe);function eu(t){return ao(t)?ke(xo(t)):function(t){return function(e){return cr(e,t)}}(t)}var nu=Pi(),ru=Pi(!0);function iu(){return[]}function ou(){return!1}var au,su=Ii((function(t,e){return t+e}),0),uu=Ri("ceil"),lu=Ii((function(t,e){return t/e}),1),cu=Ri("floor"),hu=Ii((function(t,e){return t*e}),1),du=Ri("round"),fu=Ii((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new yt(i);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=ga,Tn.assign=us,Tn.assignIn=ls,Tn.assignInWith=cs,Tn.assignWith=hs,Tn.at=ds,Tn.before=ma,Tn.bind=ya,Tn.bindAll=Hs,Tn.bindKey=ba,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Da(t)?t:[t]},Tn.chain=ea,Tn.chunk=function(t,e,n){e=(n?oo(t,e,n):void 0===e)?1:on(rs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Ye(i/e));oi?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!Qa(e))&&!(e=Xr(e))&&Le(t)?si(ze(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new yt(i);return e=null==e?0:on(rs(e),0),Lr((function(n){var r=n[e],i=si(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:rs(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:rs(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?Zr(t,Qi(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?Zr(t,Qi(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 yt(i);return za(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_a(t,e,{leading:r,maxWait:e,trailing:o})},Tn.thru=na,Tn.toArray=es,Tn.toPairs=Ts,Tn.toPairsIn=Is,Tn.toPath=function(t){return Da(t)?ce(t,xo):Ya(t)?[t]:vi(Eo(ss(t)))},Tn.toPlainObject=as,Tn.transform=function(t,e,n){var r=Da(t),i=r||Fa(t)||Ja(t);if(e=Qi(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:za(t)&&Va(o)?In(Wt(t)):{}}return(i?ie:sr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return ga(t,1)},Tn.union=qo,Tn.unionBy=Wo,Tn.unionWith=Go,Tn.uniq=function(t){return t&&t.length?$r(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?$r(t,Qi(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?$r(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Yr(t,e)},Tn.unzip=Ko,Tn.unzipWith=Qo,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=Os,Tn.valuesIn=function(t){return null==t?[]:Ie(t,ws(t))},Tn.without=Xo,Tn.words=Vs,Tn.wrap=function(t,e){return xa(ii(e),t)},Tn.xor=$o,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=ta,Tn.entries=Ts,Tn.entriesIn=Is,Tn.extend=ls,Tn.extendWith=cs,$s(Tn,Tn),Tn.add=su,Tn.attempt=Bs,Tn.camelCase=As,Tn.capitalize=Ps,Tn.ceil=uu,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==e&&(e=(e=os(e))==e?e:0),Qn(os(t),e,n)},Tn.clone=function(t){return Xn(t,4)},Tn.cloneDeep=function(t){return Xn(t,5)},Tn.cloneDeepWith=function(t,e){return Xn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Xn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||$n(t,e,_s(e))},Tn.deburr=Ns,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=lu,Tn.endsWith=function(t,e,n){t=ss(t),e=Xr(e);var r=t.length,i=n=void 0===n?r:Qn(rs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=Oa,Tn.escape=function(t){return(t=ss(t))&&j.test(t)?t.replace(L,Re):t},Tn.escapeRegExp=function(t){return(t=ss(t))&&G.test(t)?t.replace(W,"\\$&"):t},Tn.every=function(t,e,n){var r=Da(t)?ae:er;return n&&oo(t,e,n)&&(e=void 0),r(t,Qi(e,3))},Tn.find=oa,Tn.findIndex=No,Tn.findKey=function(t,e){return ge(t,Qi(e,3),sr)},Tn.findLast=aa,Tn.findLastIndex=Do,Tn.findLastKey=function(t,e){return ge(t,Qi(e,3),ur)},Tn.floor=cu,Tn.forEach=sa,Tn.forEachRight=ua,Tn.forIn=function(t,e){return null==t?t:or(t,Qi(e,3),ws)},Tn.forInRight=function(t,e){return null==t?t:ar(t,Qi(e,3),ws)},Tn.forOwn=function(t,e){return t&&sr(t,Qi(e,3))},Tn.forOwnRight=function(t,e){return t&&ur(t,Qi(e,3))},Tn.get=vs,Tn.gt=Aa,Tn.gte=Pa,Tn.has=function(t,e){return null!=t&&eo(t,e,pr)},Tn.hasIn=gs,Tn.head=Mo,Tn.identity=Gs,Tn.includes=function(t,e,n,r){t=Ma(t)?t:Os(t),n=n&&!r?rs(n):0;var i=t.length;return n<0&&(n=on(i+n,0)),$a(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&ye(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:rs(n);return i<0&&(i=on(r+i,0)),ye(t,e,i)},Tn.inRange=function(t,e,n){return e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n){return t>=an(e,n)&&t=-9007199254740991&&t<=9007199254740991},Tn.isSet=Xa,Tn.isString=$a,Tn.isSymbol=Ya,Tn.isTypedArray=Ja,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return qa(t)&&to(t)==w},Tn.isWeakSet=function(t){return qa(t)&&"[object WeakSet]"==dr(t)},Tn.join=function(t,e){return null==t?"":nn.call(t,e)},Tn.kebabCase=Ds,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=rs(n))<0?on(r+i,0):an(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):me(t,_e,i,!0)},Tn.lowerCase=Rs,Tn.lowerFirst=Ms,Tn.lt=Za,Tn.lte=ts,Tn.max=function(t){return t&&t.length?nr(t,Gs,fr):void 0},Tn.maxBy=function(t,e){return t&&t.length?nr(t,Qi(e,2),fr):void 0},Tn.mean=function(t){return we(t,Gs)},Tn.meanBy=function(t,e){return we(t,Qi(e,2))},Tn.min=function(t){return t&&t.length?nr(t,Gs,Sr):void 0},Tn.minBy=function(t,e){return t&&t.length?nr(t,Qi(e,2),Sr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=hu,Tn.nth=function(t,e){return t&&t.length?Or(t,rs(e)):void 0},Tn.noConflict=function(){return qt._===this&&(qt._=It),this},Tn.noop=Ys,Tn.now=va,Tn.pad=function(t,e,n){t=ss(t);var r=(e=rs(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=ss(t);var r=(e=rs(e))?He(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=ln();return an(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return Rr(t,e)},Tn.reduce=function(t,e,n){var r=Da(t)?de:Se,i=arguments.length<3;return r(t,Qi(e,4),n,i,Zn)},Tn.reduceRight=function(t,e,n){var r=Da(t)?fe:Se,i=arguments.length<3;return r(t,Qi(e,4),n,i,tr)},Tn.repeat=function(t,e,n){return e=(n?oo(t,e,n):void 0===e)?1:rs(e),Mr(ss(t),e)},Tn.replace=function(){var t=arguments,e=ss(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=an(t,4294967295);t-=4294967295;for(var i=xe(r,e=Qi(e));++n=o)return t;var s=n-He(r);if(s<1)return r;var u=a?si(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Qa(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=gt(i.source,ss(nt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var h=l.index;u=u.slice(0,void 0===h?s:h)}}else if(t.indexOf(Xr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Tn.unescape=function(t){return(t=ss(t))&&F.test(t)?t.replace(M,qe):t},Tn.uniqueId=function(t){var e=++St;return ss(t)+e},Tn.upperCase=js,Tn.upperFirst=Us,Tn.each=sa,Tn.eachRight=ua,Tn.first=Mo,$s(Tn,(au={},sr(Tn,(function(t,e){Ct.call(Tn.prototype,e)||(au[e]=t)})),au),{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){Pn.prototype[t]=function(n){n=void 0===n?1:on(rs(n),0);var r=this.__filtered__&&!e?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Pn.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;Pn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Qi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ie(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Pn.prototype[t]=function(){return this[n](1).value()[0]}})),ie(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Pn.prototype[t]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Gs)},Pn.prototype.find=function(t){return this.filter(t).head()},Pn.prototype.findLast=function(t){return this.reverse().find(t)},Pn.prototype.invokeMap=Lr((function(t,e){return"function"==typeof t?new Pn(this):this.map((function(n){return mr(n,t,e)}))})),Pn.prototype.reject=function(t){return this.filter(Sa(Qi(t)))},Pn.prototype.slice=function(t,e){t=rs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Pn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=rs(e))<0?n.dropRight(-e):n.take(e-t)),n)},Pn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},sr(Pn.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__,a=r?[1]:arguments,s=e instanceof Pn,u=a[0],l=s||Da(e),c=function(t){var e=i.apply(Tn,he([t],a));return r&&h?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,p=s&&!d;if(!o&&l){e=p?e:new Pn(this);var v=t.apply(e,a);return v.__actions__.push({func:na,args:[c],thisArg:void 0}),new An(v,h)}return f&&p?t.apply(this,a):(v=this.thru(c),f?r?v.value()[0]:v.value():v)})})),ie(["pop","push","shift","sort","splice","unshift"],(function(t){var e=bt[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(Da(i)?i:[],t)}return this[n]((function(n){return e.apply(Da(n)?n:[],t)}))}})),sr(Pn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";Ct.call(yn,r)||(yn[r]=[]),yn[r].push({name:e,func:n})}})),yn[xi(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var t=new Pn(this.__wrapped__);return t.__actions__=vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vi(this.__views__),t},Pn.prototype.reverse=function(){if(this.__filtered__){var t=new Pn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Pn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Da(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 Pn){var e=t;return this.__actions__.length&&(e=new Pn(this)),(e=e.reverse()).__actions__.push({func:na,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,Ce&&(Tn.prototype[Ce]=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(){var t;return"object"==typeof console&&console.log&&(t=console).log.apply(t,arguments)},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){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(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(){var 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),t.exports.formatters.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,a=n("mrSG"),s=n("zVF4"),u=n("q/0M"),l=n("S+S0"),c=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),s.stringify(e))},t.prototype.get=function(t){var e=this.domStorage_.getItem(this.prefixedName_(t));return null==e?null:s.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 s.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 c(e)}}catch(n){}return new h},f=d("localStorage"),p=d("sessionStorage"),v=new u.Logger("@firebase/database"),g=(i=1,function(){return i++}),m=function(t){var e=s.stringToByteArray(t),n=new s.Sha1;n.update(e);var r=n.digest();return s.base64.encodeByteArray(r)},y=function t(){for(var e=[],n=0;nn?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;s.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 a=[];for(o=52;o;o-=1)a.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)a.push(n%2?1:0),n=Math.floor(n/2);a.push(e?1:0),a.reverse();var u=a.join(""),l="";for(o=0;o<64;o+=8){var c=parseInt(u.substr(o,8),2).toString(16);1===c.length&&(c="0"+c),l+=c}return l.toLowerCase()},K=new RegExp("^-?(0*)\\d{1,10}$"),Q=function(t){if(K.test(t)){var e=Number(t);if(e>=-2147483648&&e<=2147483647)return e}return null},X=function(t){try{t()}catch(e){setTimeout((function(){throw x("Exception was thrown by user callback.",e.stack||""),e}),Math.floor(0))}},$=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_+=s.stringLength(t),this.checkValid_()},t.prototype.pop=function(){var t=this.parts_.pop();this.byteLength_-=s.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=f.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()&&f.set("host:"+this.host,this.internalHost))},t.prototype.connectionURL=function(t,e){var n;if(s.assert("string"==typeof t,"typeof type must == string"),s.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&&E(e.host+" is no longer supported. Please use .firebaseio.com instead"),n&&"undefined"!==n||"localhost"===e.domain||E("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:")&&x("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="",s=!0,u="https",l=443;if("string"==typeof t){var c=t.indexOf("//");c>=0&&(u=t.substring(0,c-1),t=t.substring(c+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 f=function(t){var e,n,r={};"?"===t.charAt(0)&&(t=t.substring(1));try{for(var i=a.__values(t.split("&")),o=i.next();!o.done;o=i.next()){var s=o.value;if(0!==s.length){var u=s.split("=");2===u.length?r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):x("Invalid query segment '"+s+"' in query '"+t+"'")}}}catch(l){e={error:l}}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)));(c=e.indexOf(":"))>=0?(s="https"===u||"wss"===u,l=parseInt(e.substring(c+1),10)):c=e.length;var p=e.slice(0,c);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{var v=e.indexOf(".");r=e.substring(0,v).toLowerCase(),n=e.substring(v+1),o=r}"ns"in f&&(o=f.ns)}return{host:e,port:l,domain:n,subdomain:r,secure:s,scheme:u,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)},at=function(t){return null===t||"string"==typeof t||"number"==typeof t&&!T(t)||t&&"object"==typeof t&&s.contains(t,".sv")},st=function(t,e,n,r,i){i&&void 0===n||ut(s.errorPrefix(t,e,i),n,r)},ut=function t(e,n,r){var i=r instanceof Y?new J(r,e):r;if(void 0===n)throw new Error(e+"contains undefined "+i.toErrorString());if("function"==typeof n)throw new Error(e+"contains a function "+i.toErrorString()+" with contents = "+n.toString());if(T(n))throw new Error(e+"contains "+n.toString()+" "+i.toErrorString());if("string"==typeof n&&n.length>10485760/3&&s.stringLength(n)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+i.toErrorString()+" ('"+n.substring(0,50)+"...')");if(n&&"object"==typeof n){var o=!1,a=!1;if(M(n,(function(n,r){if(".value"===n)o=!0;else if(".priority"!==n&&".sv"!==n&&(a=!0,!it(n)))throw new Error(e+" contains an invalid key ("+n+") "+i.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');i.push(n),t(e,r,i),i.pop()})),o&&a)throw new Error(e+' contains ".value" child '+i.toErrorString()+" in addition to actual children.")}},lt=function(t,e,n,r,i){if(!i||void 0!==n){var o=s.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 a=[];M(n,(function(t,e){var n=new Y(t);if(ut(o,e,r.child(n)),".priority"===n.getBack()&&!at(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).");a.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);s.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 s.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}(),kt=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}(),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__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 s.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 s.assert("string"==typeof t,"KeyIndex indexValue must always be a string."),new wt(t,U)},e.prototype.toString=function(){return".key"},e}(kt),St=new Ct,Et=function(t){return"number"==typeof t?"number:"+G(t):"string:"+t},xt=function(t){if(t.isLeafNode()){var e=t.val();s.assert("string"==typeof e||"number"==typeof e||"object"==typeof e&&s.contains(e,".sv"),"Priority must be a string or number.")}else s.assert(t===V||t.isEmpty(),"priority of unexpected type.");s.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,s.assert(null!=this.value_,"LeafNode shouldn't be created with null/undefined value."),xt(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:(s.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:"+Et(this.priorityNode_.val())+":");var e=typeof this.value_;t+=e+":",t+="number"===e?G(this.value_):this.value_,this.lazyHash_=m(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:(s.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 s.assert(i>=0,"Unknown leaf type: "+n),s.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:Nt.EMPTY_NODE,this.right=null!=o?o:Nt.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 Nt.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 Nt.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}(),Pt=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}(),Nt=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 Pt,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===St||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===St||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===St?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 Nt(Ut),Vt.EMPTY_NODE,Ft.Default)||this}return a.__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"]),s.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(s.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 a=Mt(r,It.getCompare());return new Vt(o,Ht(e),new Ft({".priority":a},{".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)}}),Ct.__EMPTY_NODE=Vt.EMPTY_NODE,Tt.__childrenNodeConstructor=Vt,V=Bt,z=Bt,function(t){H=t}(Ht);var zt,qt=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a.__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}(kt)),Wt=function(t){function e(e){var n=t.call(this)||this;return n.indexPath_=e,s.assert(!e.isEmpty()&&".priority"!==e.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return a.__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}(kt),Gt=function(){function t(t,e,n){this.node_=t,this.ref_=e,this.index_=n}return t.prototype.val=function(){return s.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},t.prototype.exportVal=function(){return s.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},t.prototype.toJSON=function(){return s.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},t.prototype.exists=function(){return s.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},t.prototype.child=function(e){s.validateArgCount("DataSnapshot.child",0,1,arguments.length),e=String(e),ft("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){s.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ft("DataSnapshot.hasChild",1,t,!1);var e=new Y(t);return!this.node_.getChild(e).isEmpty()},t.prototype.getPriority=function(){return s.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},t.prototype.forEach=function(e){var n=this;if(s.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),s.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 s.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 s.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},t.prototype.getRef=function(){return s.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(t.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),t}(),Kt=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+":"+s.stringify(this.snapshot.exportVal())},t}(),Qt=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}(),Xt=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 Kt("value",this,new Gt(t.snapshotNode,e.getRef(),n))},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){s.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 Qt(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}(),$t=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 s.contains(this.callbacks_,e="children_removed"===e?"child_removed":e)},t.prototype.createCancelEvent=function(t,e){return this.cancelCallback_?new Qt(this,t,e):null},t.prototype.createEvent=function(t,e){s.assert(null!=t.childName,"Child events should have a childName.");var n=e.getRef().child(t.childName),r=e.getQueryParams().getIndex();return new Kt(t.type,this,new Gt(t.snapshotNode,n,r),t.prevName)},t.prototype.getEventRunner=function(t){var e=this.context_;if("cancel"===t.getEventType()){s.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 a=r[0],s=i[0];return!(s!==a||e.callbacks_[a]&&this.callbacks_[s]&&e.callbacks_[a]!==this.callbacks_[s])}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 s.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()===St){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&&!at(e)||null!=n&&!at(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(s.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 s.validateArgCount("Query.ref",0,0,arguments.length),new t.__referenceConstructor(this.repo,this.path)},t.prototype.on=function(e,n,r,i){s.validateArgCount("Query.on",2,4,arguments.length),ht("Query.on",1,e,!1),s.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 a={};a[e]=n,this.onChildEvent(a,o.cancel,o.context)}return n},t.prototype.onValueEvent=function(t,e,n){var r=new Xt(t,e||null,n||null);this.repo.addEventCallbackForQuery(this,r)},t.prototype.onChildEvent=function(t,e,n){var r=new $t(t,e,n);this.repo.addEventCallbackForQuery(this,r)},t.prototype.off=function(t,e,n){s.validateArgCount("Query.off",0,3,arguments.length),ht("Query.off",1,t,!0),s.validateCallback("Query.off",2,e,!0),s.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===t){var o=e||null;r=new Xt(o,null,n||null)}else t&&(e&&((i={})[t]=e),r=new $t(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},t.prototype.once=function(e,n,r,i){var o=this;s.validateArgCount("Query.once",1,4,arguments.length),ht("Query.once",1,e,!1),s.validateCallback("Query.once",2,n,!0);var a=t.getCancelAndContextArgs_("Query.once",r,i),u=!0,l=new s.Deferred;l.promise.catch((function(){}));var c=function t(r){u&&(u=!1,o.off(e,t),n&&n.bind(a.context)(r),l.resolve(r))};return this.on(e,c,(function(t){o.off(e,c),a.cancel&&a.cancel.bind(a.context)(t),l.reject(t)})),l.promise},t.prototype.limitToFirst=function(e){if(s.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(s.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(s.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.');ft("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(){s.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var e=this.queryParams_.orderBy(St);return t.validateQueryEndpoints_(e),new t(this.repo,this.path,e,!0)},t.prototype.orderByPriority=function(){s.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(){s.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),s.validateArgCount("Query.startAt",0,2,arguments.length),st("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),s.validateArgCount("Query.endAt",0,2,arguments.length),st("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(s.validateArgCount("Query.equalTo",1,2,arguments.length),st("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 s.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},t.prototype.toJSON=function(){return s.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(s.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,s.validateCallback(t,3,r.cancel,!0),r.context=n,s.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(s.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?(s.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 s.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2))):t},ee=function(t,e,n){switch(t){case"timestamp":return n.timestamp;default:s.assert(!1,"Unexpected server value: "+t)}},ne=function(t,e,n){t.hasOwnProperty("increment")||s.assert(!1,"Unexpected server value: "+JSON.stringify(t,null,2));var r=t.increment;"number"!=typeof r&&s.assert(!1,"Unexpected increment value: "+r);var i=e.node();if(s.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 a=t,s=te(a.getValue(),e,n);return s!==a.getValue()||o!==a.getPriority().val()?new Tt(s,Ht(o)):t}var u=t;return r=u,o!==u.getPriority().val()&&(r=r.updatePriority(new Tt(o))),u.forEachChild(It,(function(t,i){var o=oe(i,e.getImmediateChild(t),n);o!==i&&(r=r.updateImmediateChild(t,o))})),r}var ae,se,ue=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}(),le=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}({}),ce=function(){function t(t,e,n,r){this.fromUser=t,this.fromServer=e,this.queryId=n,this.tagged=r,s.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=le.ACK_USER_WRITE,this.source=ce.User}return t.prototype.operationForChild=function(e){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return s.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 s.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&&(ae||(ae=new Nt(P)),e=ae),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}(),fe=function(){function t(t,e){this.source=t,this.path=e,this.type=le.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}(),pe=function(){function t(t,e,n){this.source=t,this.path=e,this.snap=n,this.type=le.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}(),ve=function(){function t(t,e,n){this.source=t,this.path=e,this.children=n,this.type=le.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 pe(this.source,Y.Empty,n.value):new t(this.source,Y.Empty,n)}return s.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}(),ge=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}(),me=function(){function t(t,e){this.eventCache_=t,this.serverCache_=e}return t.prototype.updateEventSnap=function(e,n,r){return new t(new ge(e,n,r),this.serverCache_)},t.prototype.updateServerSnap=function(e,n,r){return new t(this.eventCache_,new ge(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 ge(Vt.EMPTY_NODE,!1,!1),new ge(Vt.EMPTY_NODE,!1,!1)),t}(),ye=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}(),be=function(){function t(t){this.index_=t}return t.prototype.updateChild=function(t,e,n,r,i,o){s.assert(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");var a=t.getImmediateChild(e);return a.getChild(r).equals(n.getChild(r))&&a.isEmpty()===n.isEmpty()?t:(null!=o&&(n.isEmpty()?t.hasChild(e)?o.trackChildChange(ye.childRemovedChange(e,a)):s.assert(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?o.trackChildChange(ye.childAddedChange(e,n)):o.trackChildChange(ye.childChangedChange(e,n,a))),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(ye.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(ye.childChangedChange(e,r,i))}else n.trackChildChange(ye.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;s.assert(e===ye.CHILD_ADDED||e===ye.CHILD_CHANGED||e===ye.CHILD_REMOVED,"Only child changes supported for tracking"),s.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===ye.CHILD_ADDED&&i===ye.CHILD_REMOVED)this.changeMap.set(n,ye.childChangedChange(n,t.snapshotNode,r.snapshotNode));else if(e===ye.CHILD_REMOVED&&i===ye.CHILD_ADDED)this.changeMap.delete(n);else if(e===ye.CHILD_REMOVED&&i===ye.CHILD_CHANGED)this.changeMap.set(n,ye.childRemovedChange(n,r.oldSnap));else if(e===ye.CHILD_CHANGED&&i===ye.CHILD_ADDED)this.changeMap.set(n,ye.childAddedChange(n,t.snapshotNode));else{if(e!==ye.CHILD_CHANGED||i!==ye.CHILD_CHANGED)throw s.assertionError("Illegal combination of changes: "+t+" occurred after "+r);this.changeMap.set(n,ye.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}()),ke=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 ge(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}(),Ce=function(t,e){this.viewCache=t,this.changes=e},Se=function(){function t(t){this.filter_=t}return t.prototype.assertIndexed=function(t){s.assert(t.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),s.assert(t.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},t.prototype.applyOperation=function(e,n,r,i){var o,a,u=new _e;if(n.type===le.OVERWRITE){var l=n;l.source.fromUser?o=this.applyUserOverwrite_(e,l.path,l.snap,r,i,u):(s.assert(l.source.fromServer,"Unknown source."),a=l.source.tagged||e.getServerCache().isFiltered()&&!l.path.isEmpty(),o=this.applyServerOverwrite_(e,l.path,l.snap,r,i,a,u))}else if(n.type===le.MERGE){var c=n;c.source.fromUser?o=this.applyUserMerge_(e,c.path,c.children,r,i,u):(s.assert(c.source.fromServer,"Unknown source."),a=c.source.tagged||e.getServerCache().isFiltered(),o=this.applyServerMerge_(e,c.path,c.children,r,i,a,u))}else if(n.type===le.ACK_USER_WRITE){var h=n;o=h.revert?this.revertUserWrite_(e,h.path,r,i,u):this.ackUserWrite_(e,h.path,h.affectedTree,r,i,u)}else{if(n.type!==le.LISTEN_COMPLETE)throw s.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(e,n.path,r,u)}var d=u.getChanges();return t.maybeAddValueEvent_(e,o,d),new Ce(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(ye.valueChange(e.getCompleteEventSnap()))}},t.prototype.generateEventCacheAfterServerEvent_=function(t,e,n,r,i){var o=t.getEventCache();if(null!=n.shadowingWrite(e))return t;var a=void 0,u=void 0;if(e.isEmpty())if(s.assert(t.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),t.getServerCache().isFiltered()){var l=t.getCompleteServerSnap(),c=n.calcCompleteEventChildren(l instanceof Vt?l:Vt.EMPTY_NODE);a=this.filter_.updateFullNode(t.getEventCache().getNode(),c,i)}else{var h=n.calcCompleteEventCache(t.getCompleteServerSnap());a=this.filter_.updateFullNode(t.getEventCache().getNode(),h,i)}else{var d=e.getFront();if(".priority"===d){s.assert(1===e.getLength(),"Can't have a priority with additional path components");var f=o.getNode();u=t.getServerCache().getNode();var p=n.calcEventCacheAfterServerOverwrite(e,f,u);a=null!=p?this.filter_.updatePriority(f,p):o.getNode()}else{var v=e.popFront(),g=void 0;if(o.isCompleteForChild(d)){u=t.getServerCache().getNode();var m=n.calcEventCacheAfterServerOverwrite(e,o.getNode(),u);g=null!=m?o.getNode().getImmediateChild(d).updateChild(v,m):o.getNode().getImmediateChild(d)}else g=n.calcCompleteChild(d,t.getServerCache());a=null!=g?this.filter_.updateChild(o.getNode(),d,g,v,r,i):o.getNode()}}return t.updateEventSnap(a,o.isFullyInitialized()||e.isEmpty(),this.filter_.filtersNodes())},t.prototype.applyServerOverwrite_=function(t,e,n,r,i,o,a){var s,u=t.getServerCache(),l=o?this.filter_:this.filter_.getIndexedFilter();if(e.isEmpty())s=l.updateFullNode(u.getNode(),n,null);else if(l.filtersNodes()&&!u.isFiltered()){var c=u.getNode().updateChild(e,n);s=l.updateFullNode(u.getNode(),c,null)}else{var h=e.getFront();if(!u.isCompleteForPath(e)&&e.getLength()>1)return t;var d=e.popFront(),f=u.getNode().getImmediateChild(h).updateChild(d,n);s=".priority"===h?l.updatePriority(u.getNode(),f):l.updateChild(u.getNode(),h,f,d,we,null)}var p=t.updateServerSnap(s,u.isFullyInitialized()||e.isEmpty(),l.filtersNodes()),v=new ke(r,p,i);return this.generateEventCacheAfterServerEvent_(p,e,r,v,a)},t.prototype.applyUserOverwrite_=function(t,e,n,r,i,o){var a,s,u=t.getEventCache(),l=new ke(r,t,i);if(e.isEmpty())s=this.filter_.updateFullNode(t.getEventCache().getNode(),n,o),a=t.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var c=e.getFront();if(".priority"===c)s=this.filter_.updatePriority(t.getEventCache().getNode(),n),a=t.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var h=e.popFront(),d=u.getNode().getImmediateChild(c),f=void 0;if(h.isEmpty())f=n;else{var p=l.getCompleteChild(c);f=null!=p?".priority"===h.getBack()&&p.getChild(h.parent()).isEmpty()?p:p.updateChild(h,n):Vt.EMPTY_NODE}if(d.equals(f))a=t;else{var v=this.filter_.updateChild(u.getNode(),c,f,h,l,o);a=t.updateEventSnap(v,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},t.cacheHasChild_=function(t,e){return t.getEventCache().isCompleteForChild(e)},t.prototype.applyUserMerge_=function(e,n,r,i,o,a){var s=this,u=e;return r.foreach((function(r,l){var c=n.child(r);t.cacheHasChild_(e,c.getFront())&&(u=s.applyUserOverwrite_(u,c,l,i,o,a))})),r.foreach((function(r,l){var c=n.child(r);t.cacheHasChild_(e,c.getFront())||(u=s.applyUserOverwrite_(u,c,l,i,o,a))})),u},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,a){var s=this;if(t.getServerCache().getNode().isEmpty()&&!t.getServerCache().isFullyInitialized())return t;var u,l=t;u=e.isEmpty()?n:de.Empty.setTree(e,n);var c=t.getServerCache().getNode();return u.children.inorderTraversal((function(e,n){if(c.hasChild(e)){var u=t.getServerCache().getNode().getImmediateChild(e),h=s.applyMerge_(u,n);l=s.applyServerOverwrite_(l,new Y(e),h,r,i,o,a)}})),u.children.inorderTraversal((function(e,n){var u=!t.getServerCache().isCompleteForChild(e)&&null==n.value;if(!c.hasChild(e)&&!u){var h=t.getServerCache().getNode().getImmediateChild(e),d=s.applyMerge_(h,n);l=s.applyServerOverwrite_(l,new Y(e),d,r,i,o,a)}})),l},t.prototype.ackUserWrite_=function(t,e,n,r,i,o){if(null!=r.shadowingWrite(e))return t;var a=t.getServerCache().isFiltered(),s=t.getServerCache();if(null!=n.value){if(e.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(e))return this.applyServerOverwrite_(t,e,s.getNode().getChild(e),r,i,a,o);if(e.isEmpty()){var u=de.Empty;return s.getNode().forEachChild(St,(function(t,e){u=u.set(new Y(t),e)})),this.applyServerMerge_(t,e,u,r,i,a,o)}return t}var l=de.Empty;return n.foreach((function(t,n){var r=e.child(t);s.isCompleteForPath(r)&&(l=l.set(t,s.getNode().getChild(r)))})),this.applyServerMerge_(t,e,l,r,i,a,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 a=new ke(n,t,r),u=t.getEventCache().getNode(),l=void 0;if(e.isEmpty()||".priority"===e.getFront()){var c=void 0;if(t.getServerCache().isFullyInitialized())c=n.calcCompleteEventCache(t.getCompleteServerSnap());else{var h=t.getServerCache().getNode();s.assert(h instanceof Vt,"serverChildren would be complete if leaf node"),c=n.calcCompleteEventChildren(h)}l=this.filter_.updateFullNode(u,c=c,i)}else{var d=e.getFront(),f=n.calcCompleteChild(d,t.getServerCache());null==f&&t.getServerCache().isCompleteForChild(d)&&(f=u.getImmediateChild(d)),(l=null!=f?this.filter_.updateChild(u,d,f,e.popFront(),a,i):t.getEventCache().getNode().hasChild(d)?this.filter_.updateChild(u,d,Vt.EMPTY_NODE,e.popFront(),a,i):u).isEmpty()&&t.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(t.getCompleteServerSnap())).isLeafNode()&&(l=this.filter_.updateFullNode(l,o,i))}return o=t.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(Y.Empty),t.updateEventSnap(l,o,this.filter_.filtersNodes())},t}(),Ee=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===ye.CHILD_CHANGED&&r.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push(ye.childMovedChange(t.childName,t.snapshotNode))})),this.generateEventsForType_(i,ye.CHILD_REMOVED,t,n,e),this.generateEventsForType_(i,ye.CHILD_ADDED,t,n,e),this.generateEventsForType_(i,ye.CHILD_MOVED,o,n,e),this.generateEventsForType_(i,ye.CHILD_CHANGED,t,n,e),this.generateEventsForType_(i,ye.VALUE,t,n,e),i},t.prototype.generateEventsForType_=function(t,e,n,r,i){var o=this,a=n.filter((function(t){return t.type===e}));a.sort(this.compareChanges_.bind(this)),a.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 s.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}(),xe=function(){function t(t,e){this.query_=t,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new be(n.getIndex()),i=n.getNodeFilter();this.processor_=new Se(i);var o=e.getServerCache(),a=e.getEventCache(),s=r.updateFullNode(Vt.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(Vt.EMPTY_NODE,a.getNode(),null),l=new ge(s,o.isFullyInitialized(),r.filtersNodes()),c=new ge(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new me(c,l),this.eventGenerator_=new Ee(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){s.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){s.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,a=this.allWrites_.length-1;i&&a>=0;){var u=this.allWrites_[a];u.visible&&(a>=n&&this.recordContainsPath_(u,r.path)?i=!1:r.path.contains(u.path)&&(o=!0)),a--}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 a=this.visibleWrites_.getCompleteNode(e);if(null!=a)return a;var s=this.visibleWrites_.childCompoundWrite(e);return s.isEmpty()?n:null!=n||s.hasCompleteWrite(Y.Empty)?s.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){s.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 a,s=this.visibleWrites_.childCompoundWrite(t),u=s.getCompleteNode(Y.Empty);if(null!=u)a=u;else{if(null==e)return[];a=s.apply(e)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var l=[],c=o.getCompare(),h=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),d=h.getNext();d&&l.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&&(c?this.listenProvider_.stopListening(t.queryForListening_(e),null):l.forEach((function(e){var n=i.queryToTagMap.get(t.makeQueryKey_(e));i.listenProvider_.stopListening(t.queryForListening_(e),n)}))),this.removeTags_(l)}return s},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&&s.contains(t.statsToReport_,e)&&(n[e]=i,r=!0)})),r&&this.server_.reportStats(n),$(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 a=""+o+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(a),this.myIFrame.doc.close()}catch(u){k("frame writing exception"),u.stack&&k(u.stack),k(u)}}}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||k("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;s.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(){k("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 Ke=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_=C(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!s.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,f.set("previous_websocket_failure",!0);try{if(s.isNodeSdk()){var r={headers:{"User-Agent":"Firebase/5/"+We+"/"+process.platform+"/"+(s.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(u){this.log_("Error instantiating WebSocket.");var a=u.message||u.data;return a&&this.log_(a),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 f.isInMemoryStorage||!0===f.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){f.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=s.jsonEval(e);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(t){this.totalFrames=t,this.frames=[]},t.prototype.extractFrameCount_=function(t){if(s.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=s.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}(),Xe=function(){function t(t,e,n,r,i,o,a,s){this.id=t,this.repoInfo_=e,this.applicationId_=n,this.onMessage_=r,this.onReady_=i,this.onDisconnect_=o,this.onKill_=a,this.lastSessionId=s,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=C("c:"+this.id+":"),this.transportManager_=new Qe(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_=$((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=N("t",t),n=N("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=N("t",t),n=N("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=N("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,a=this.lastSessionId,u=!1,l=null,c=function(){l?l.close():(u=!0,r())};this.realtime_={close:c,sendRequest:function(t){s.assert(l,"sendRequest call when we're not connected not allowed."),l.sendRequest(t)}};var h=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(h).then((function(e){u?k("getToken() completed but was canceled"):(k("getToken() completed. Creating connection."),o.authToken_=e&&e.accessToken,l=new Xe(i,o.repoInfo_,o.applicationId_,t,n,r,(function(t){x(t+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")}),a))})).then(null,(function(t){o.log_("Failed to get token: "+t),u||(s.CONSTANTS.NODE_ADMIN&&x(t),c())}))}},e.prototype.interrupt=function(t){k("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){k("Resuming connection for reason: "+t),delete this.interruptReasons_[t],s.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=a.__values(this.listens.values()),o=i.next();!o.done;o=i.next()){var s=o.value;try{for(var u=(n=void 0,a.__values(s.values())),l=u.next();!l.done;l=u.next())this.sendListen_(l.value)}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(f){t={error:f}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}for(var c=0;c=200&&u.status<300){try{t=s.jsonEval(u.responseText)}catch(e){x("Failed to parse JSON response for "+a+": "+u.responseText)}n(null,t)}else 401!==u.status&&404!==u.status&&x("Got unsuccessful REST response for "+a+" Status: "+u.status),n(u.status);n=null}},u.open("GET",a,!0),u.send()}))},e}($e),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 ue,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{s.stringify(o)}catch(a){throw new Error("Invalid authOverride provided: "+a)}}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 Ne,this.infoSyncTree_=new Pe({startListening:function(t,e,n,r){var o=[],a=i.infoData_.getNode(t.path);return a.isEmpty()||(o=i.infoSyncTree_.applyServerOverwrite(t.path,a),setTimeout((function(){r("ok")}),0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new Pe({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 a=s.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyTaggedQueryMerge(i,a,r)}else{var u=Ht(e);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,u,r)}else if(n){var l=s.map(e,(function(t){return Ht(t)}));o=this.serverSyncTree_.applyServerMerge(i,l)}else{var c=Ht(e);o=this.serverSyncTree_.applyServerOverwrite(i,c)}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(),a=Ht(e,n),s=this.serverSyncTree_.calcCompleteEventCache(t),u=ie(a,s,o),l=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(t,u,l,!0);this.eventQueue_.queueEvents(c),this.server_.put(t.toString(),a.val(!0),(function(e,n){var o="ok"===e;o||x("set at "+t+" failed: "+e);var a=i.serverSyncTree_.ackUserWrite(l,!o);i.eventQueue_.raiseEventsForChangedPath(t,a),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(),a={};if(M(e,(function(e,n){i=!1,a[e]=re(t.child(e),Ht(n),r.serverSyncTree_,o)})),i)k("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserMerge(t,a,s);this.eventQueue_.queueEvents(u),this.server_.merge(t.toString(),e,(function(e,i){var o="ok"===e;o||x("update at "+t+" failed: "+e);var a=r.serverSyncTree_.ackUserWrite(s,!o),u=a.length>0?r.rerunTransactions_(t):t;r.eventQueue_.raiseEventsForChangedPath(u,a),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 ue;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 ue,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(s.isEmpty(e))return k("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(ye.childChangedChange(e,n,d)),u.updateImmediateChild(e,n);null!=i&&i.trackChildChange(ye.childRemovedChange(e,d));var v=u.updateImmediateChild(e,Vt.EMPTY_NODE);return null!=f&&this.rangedFilter_.matches(f)?(null!=i&&i.trackChildChange(ye.childAddedChange(f.name,f.node)),v.updateImmediateChild(f.name,f.node)):v}return n.isEmpty()?t:h&&o(c,l)>=0?(null!=i&&(i.trackChildChange(ye.childRemovedChange(c.name,c.node)),i.trackChildChange(ye.childAddedChange(e,n))),u.updateImmediateChild(e,n).updateImmediateChild(c.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 s.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},t.prototype.getIndexStartName=function(){return s.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 s.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},t.prototype.getIndexEndName=function(){return s.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 s.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 be(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_===St?e=n.KEY_INDEX:(s.assert(this.index_ instanceof Wt,"Unrecognized index type!"),e=this.index_.toString()),r[n.ORDER_BY]=s.stringify(e),this.startSet_&&(r[n.START_AT]=s.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+s.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=s.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+s.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 a.__extends(e,t),e.prototype.getKey=function(){return s.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},e.prototype.child=function(t){return s.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof t?t=String(t):t instanceof Y||(null===this.path.getFront()?pt("Reference.child",1,t,!1):ft("Reference.child",1,t,!1)),new e(this.repo,this.path.child(t))},e.prototype.getParent=function(){s.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(){s.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){s.validateArgCount("Reference.set",1,2,arguments.length),vt("Reference.set",this.path),st("Reference.set",1,t,this.path,!1),s.validateCallback("Reference.set",2,e,!0);var n=new s.Deferred;return this.repo.setWithPriority(this.path,t,null,n.wrapCallback(e)),n.promise},e.prototype.update=function(t,e){if(s.validateArgCount("Reference.update",1,2,arguments.length),vt("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=s.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}(),sn=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 an},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 a={path:t,update:e,onComplete:n,status:null,order:g(),applyLocally:r,retryCount:0,unwatcher:function(){o.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=this.getLatestState_(t);a.currentInputSnapshot=u;var l=a.update(u.val());if(void 0===l){if(a.unwatcher(),a.currentOutputSnapshotRaw=null,a.currentOutputSnapshotResolved=null,a.onComplete){var c=new Gt(a.currentInputSnapshot,new rn(this,a.path),It);a.onComplete(null,!1,c)}}else{ut("transaction failed: Data returned ",l,a.path),a.status=sn.RUN;var h=this.transactionQueueTree_.subTree(t),d=h.getValue()||[];d.push(a),h.setValue(d);var f=void 0;"object"==typeof l&&null!==l&&s.contains(l,".priority")?(f=s.safeGet(l,".priority"),s.assert(at(f),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):f=(this.serverSyncTree_.calcCompleteEventCache(t)||Vt.EMPTY_NODE).getPriority().val(),f=f;var p=this.generateServerValues(),v=Ht(l,f),m=ie(v,u,p);a.currentOutputSnapshotRaw=v,a.currentOutputSnapshotResolved=m,a.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(t,m,a.currentWriteId,a.applyLocally);this.eventQueue_.raiseEventsForChangedPath(t,y),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);s.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(t){return t.status===sn.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,a=i.hash(),u=0;u=Ze.MAX_TRANSACTION_RETRIES_)l=!0,c="maxretry",r=r.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0));else{var h=this.getLatestState_(a.path,i);a.currentInputSnapshot=h;var d=t[o].update(h.val());if(void 0!==d){ut("transaction failed: Data returned ",d,a.path);var f=Ht(d);"object"==typeof d&&null!=d&&s.contains(d,".priority")||(f=f.updatePriority(h.getPriority()));var p=a.currentWriteId,v=this.generateServerValues(),g=ie(f,h,v);a.currentOutputSnapshotRaw=f,a.currentOutputSnapshotResolved=g,a.currentWriteId=this.getNextWriteId_(),i.splice(i.indexOf(p),1),r=(r=r.concat(this.serverSyncTree_.applyUserOverwrite(a.path,g,a.currentWriteId,a.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(p,!0))}else l=!0,c="nodata",r=r.concat(this.serverSyncTree_.ackUserWrite(a.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(e,r),r=[],l&&(t[o].status=sn.COMPLETED,setTimeout(t[o].unwatcher,Math.floor(0)),t[o].onComplete))if("nodata"===c){var m=new rn(this,t[o].path),y=new Gt(t[o].currentInputSnapshot,m,It);n.push(t[o].onComplete.bind(null,null,!1,y))}else n.push(t[o].onComplete.bind(null,new Error(c),!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}(),m=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=u.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=u.LogLevel.SILENT;break;default:this._logger.logLevel=u.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 a.__awaiter(this,void 0,void 0,(function(){var t,e,n;return a.__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 a.__awaiter(this,void 0,void 0,(function(){var t,e,n,r=this;return a.__generator(this,(function(i){switch(i.label){case 0:t=new p,setTimeout((function(){return a.__awaiter(r,void 0,void 0,(function(){return a.__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 s.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 a.__awaiter(this,void 0,void 0,(function(){return a.__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(a.__assign(a.__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 g("remote",e[t]):this.defaultConfig&&void 0!==this.defaultConfig[t]?new g("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 g("static"))},t}();function y(t,e){var n=t.target.error||void 0;return d.create(e,{originalErrorMessage:n&&n.message})}var b=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(y(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 a.__awaiter(this,void 0,void 0,(function(){var e,n=this;return a.__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"),a=n.createCompositeKey(t);try{var s=o.get(a);s.onerror=function(t){i(y(t,"storage-get"))},s.onsuccess=function(t){var e=t.target.result;r(e?e.value:void 0)}}catch(u){i(d.create("storage-get",{originalErrorMessage:u&&u.message}))}}))]}}))}))},t.prototype.set=function(t,e){return a.__awaiter(this,void 0,void 0,(function(){var n,r=this;return a.__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 a=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=r.createCompositeKey(t);try{var u=a.put({compositeKey:s,value:e});u.onerror=function(t){o(y(t,"storage-set"))},u.onsuccess=function(){i()}}catch(l){o(d.create("storage-set",{originalErrorMessage:l&&l.message}))}}))]}}))}))},t.prototype.delete=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e,n=this;return a.__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"),a=n.createCompositeKey(t);try{var s=o.delete(a);s.onerror=function(t){i(y(t,"storage-delete"))},s.onsuccess=function(){r()}}catch(u){i(d.create("storage-delete",{originalErrorMessage:u&&u.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 a.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,i,o;return a.__generator(this,(function(a){switch(a.label){case 0:return t=this.storage.getLastFetchStatus(),e=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,t];case 1:return(r=a.sent())&&(this.lastFetchStatus=r),[4,e];case 2:return(i=a.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(o=a.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 k(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 C=function(){function t(t,e){this.client=t,this.storage=e}return t.prototype.fetch=function(t){return a.__awaiter(this,void 0,void 0,(function(){var e;return a.__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 a.__awaiter(this,void 0,void 0,(function(){var e,i,o;return a.__generator(this,(function(a){switch(a.label){case 0:return[4,k(t.signal,n)];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,7]),[4,this.client.fetch(t)];case 3:return e=a.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return a.sent(),[2,e];case 5:if(!function(t){if(!(t instanceof s.FirebaseError))return!1;var e=Number(t.httpStatus);return 429===e||500===e||503===e||504===e}(i=a.sent()))throw i;return o={throttleEndTimeMillis:Date.now()+w(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(o)];case 6:return a.sent(),[2,this.attemptFetch(t,o)];case 7:return[2]}}))}))},t}(),S="@firebase/remote-config";function E(t){t.INTERNAL.registerComponent(new l.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,a=o.projectId,s=o.apiKey,l=o.appId;if(!a)throw d.create("registration-project-id");if(!s)throw d.create("registration-api-key");if(!l)throw d.create("registration-app-id");var h=new b(l,r.name,n=n||"firebase"),p=new _(h),v=new u.Logger(S);v.logLevel=u.LogLevel.ERROR;var g=new f(i,t.SDK_VERSION,n,a,s,l),y=new C(g,h),w=new c(y,h,p,v),k=new m(r,w,p,h,v);return k.ensureInitialized(),k}),"PUBLIC").setMultipleInstances(!0)),t.registerVersion(S,"0.1.26")}E(i),e.registerRemoteConfig=E},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}(),a=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(a){if(n)return null;throw a}},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(c){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=r.__read(o.value,2),s=a[1],u=this.normalizeInstanceIdentifier(a[0]);try{var l=this.getOrInitializeService(u);s.resolve(l)}catch(c){}}}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}(),s=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 a(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=s,e.Provider=a},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:f[i],data:t.substring(1)}:{type:f[i]}:p}i=new Uint8Array(t)[0];var o=a(t,1);return v&&"blob"===n&&(o=new v([o])),{type:f[i],data:o}},e.decodeBase64Packet=function(t,e){var n=f[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&&v&&(i=new v([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?v&&!h?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void g(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(p,0,1);for(var o,a,s="",u=0,l=t.length;u0;){for(var s=new Uint8Array(i),u=0===s[0],l="",c=1;255!==s[c];c++){if(l.length>310)return r(p,0,1);l+=s[c]}i=a(i,2+l.length),l=parseInt(l);var h=a(i,0,l);if(u)try{h=String.fromCharCode.apply(null,new Uint8Array(h))}catch(v){var d=new Uint8Array(h);for(h="",c=0;c>6,a[u++]=128|63&o):o<55296||o>=57344?(a[u++]=224|o>>12,a[u++]=128|o>>6&63,a[u++]=128|63&o):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++r)),a[u++]=240|o>>18,a[u++]=128|o>>12&63,a[u++]=128|o>>6&63,a[u++]=128|63&o);t=a}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 l=[],c=[];for(r=0;r<64;++r){var h=t[r]||0;l[r]=92^h,c[r]=54^h}Sha256.call(this,e,n),this.update(c),this.oKeyPad=l,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,a=t.length,s=this.blocks;o>2]|=t[o]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[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=s[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,a=this.h0,s=this.h1,u=this.h2,l=this.h3,c=this.h4,h=this.h5,d=this.h6,f=this.h7,p=this.blocks;for(t=16;t<64;++t)p[t]=p[t-16]+(((e=p[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+p[t-7]+(((e=p[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(o=s&u,t=0;t<64;t+=4)this.first?(this.is224?(n=300032,f=(e=p[0]-1413257819)-150054599<<0,l=e+24177077<<0):(n=704751109,f=(e=p[0]-210244248)-1521486534<<0,l=e+143694565<<0),this.first=!1):(f=l+(e=f+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&h^~c&d)+K[t]+p[t])<<0,l=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((n=a&s)^a&u^o))<<0),d=u+(e=d+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&c^~f&h)+K[t+1]+p[t+1])<<0,u=e+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((r=l&a)^l&s^n))<<0,h=s+(e=h+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&f^~d&c)+K[t+2]+p[t+2])<<0,s=e+(((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+((i=u&l)^u&a^r))<<0,c=a+(e=c+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)+K[t+3]+p[t+3])<<0,a=e+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((o=s&u)^s&l^i))<<0;this.h0=this.h0+a<<0,this.h1=this.h1+s<<0,this.h2=this.h2+u<<0,this.h3=this.h3+l<<0,this.h4=this.h4+c<<0,this.h5=this.h5+h<<0,this.h6=this.h6+d<<0,this.h7=this.h7+f<<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,a=this.h6,s=this.h7,u=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[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];return this.is224||(u+=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]),u},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,a=this.h6,s=this.h7,u=[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,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||u.push(s>>24&255,s>>16&255,s>>8&255,255&s),u},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,a,s,u,l=n("mrSG"),c=n("zVF4"),h=n("q/0M"),d=n("S+S0"),f=((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),p=new c.ErrorFactory("performance","Performance",f),v=function(){function t(t){if(this.window=t,!t)throw p.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 p.create("invalid String merger input");for(var r=[],i=0;ii&&r.push(e.charAt(i));return r.join("")}var m,y=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=g("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=g("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 p.create("no app id");return t},t.prototype.getProjectId=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!t)throw p.create("no project id");return t},t.prototype.getApiKey=function(){var t=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!t)throw p.create("no api key");return t},t.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},t.getInstance=function(){return void 0===u&&(u=new t),u},t}();function b(){return m}var _=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.VISIBLE=1]="VISIBLE",t[t.HIDDEN=2]="HIDDEN",t}({}),w=["firebase_","google_","ga_"],k=new RegExp("^[a-zA-Z]\\w*$");function C(){var t=v.getInstance().navigator;return"serviceWorker"in t?t.serviceWorker.controller?2:3:1}function S(){switch(v.getInstance().document.visibilityState){case"visible":return _.VISIBLE;case"hidden":return _.HIDDEN;default:return _.UNKNOWN}}function E(){var t=v.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 x=new h.Logger("Performance");function T(t){if(!t)return t;var e=y.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}x.logLevel=h.LogLevel.INFO;var O,A=1;function P(){return A=2,O=O||function(){var t=v.getInstance().document;return new Promise((function(e){if(t&&"complete"!==t.readyState){t.addEventListener("readystatechange",(function n(){"complete"===t.readyState&&(t.removeEventListener("readystatechange",n),e())}))}else e()}))}().then((function(){return(t=y.getInstance().installationsService.getId()).then((function(t){m=t})),t;var t})).then((function(t){return function(t){var e=function(){var t=v.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=y.getInstance().installationsService.getToken(),e.then((function(t){})),e).then((function(e){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+y.getInstance().getProjectId()+"/namespaces/fireperf:fetch?key="+y.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:y.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 p.create("RC response not ok")}))})).catch((function(){x.info("Could not fetch config, will use default configs")}));var e}(t).then(T).then((function(t){return function(t){var e=v.getInstance().localStorage;t&&e&&(e.setItem("@firebase/performance/config",JSON.stringify(t)),e.setItem("@firebase/performance/configexpire",String(Date.now()+60*y.getInstance().configTimeToLive*60*1e3)))}(t)}),(function(){}))}(t)})).then((function(){return N()}),(function(){return N()}))}function N(){A=3}var D,R=3,M=[],L=!1;function F(t){if(!t.eventTime||!t.message)throw p.create("invalid cc log");M=l.__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 p.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(k))}(t),r=function(t){return 0!==t.length&&t.length<=100}(e);if(n&&r)this.customAttributes[t]=e;else{if(!n)throw p.create("invalid attribute name",{attributeName:t});if(!r)throw p.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 l.__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=v.getInstance().getUrl();if(i){var o=new t("_wt_"+i,!0),a=Math.floor(1e3*v.getInstance().getTimeOrigin());if(o.setStartTime(a),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 s=n.find((function(t){return"first-paint"===t.name}));s&&s.startTime&&o.putMetric("_fp",Math.floor(1e3*s.startTime));var u=n.find((function(t){return"first-contentful-paint"===t.name}));u&&u.startTime&&o.putMetric("_fcp",Math.floor(1e3*u.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=v.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=y.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(){b()&&(setTimeout((function(){return function(){var t=v.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=v.getInstance(),e=0,n=t.getEntriesByType("resource");e0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(M=l.__spreadArrays(n,M),x.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:y.getInstance().logSource,log_event:n},e).catch((function(){M=l.__spreadArrays(e,M),R--,x.info("Tries left: "+R+"."),t(1e4)}))}():t(1e4)}),e)}(5500),L=!0),P().then(G,G)):x.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 y.getInstance().instrumentationEnabled},set:function(t){y.getInstance().instrumentationEnabled=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataCollectionEnabled",{get:function(){return y.getInstance().dataCollectionEnabled},set:function(t){y.getInstance().dataCollectionEnabled=t},enumerable:!1,configurable:!0}),t}();function X(t){t.INTERNAL.registerComponent(new d.Component("performance",(function(t){return function(t,e){if("[DEFAULT]"!==t.name)throw p.create("FB not default");if("undefined"==typeof window)throw p.create("no window");return function(t){s=t}(window),y.getInstance().firebaseAppInstance=t,y.getInstance().installationsService=e,new Q(t)}(t.getProvider("app").getImmediate(),t.getProvider("installations").getImmediate())}),"PUBLIC")),t.registerVersion("@firebase/performance","0.3.10")}X(i),e.registerPerformance=X},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)}},f.prototype.cleanup=function(){l("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();l("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout((function(){t.skipReconnect||(l("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open((function(e){e?(l("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(l("reconnect success"),t.onreconnect())})))}),e);this.subs.push({destroy:function(){clearTimeout(n)}})}},f.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 K}));var r,i=n("wj3C"),o=n.n(i),a=n("S+S0"),s=n("mrSG"),u=n("zVF4"),l=n("nbvr"),c=((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 u.ErrorFactory("installations","Installations",c);function d(t){return t instanceof u.FirebaseError&&t.code.includes("request-failed")}function f(t){return"https://firebaseinstallations.googleapis.com/v1/projects/"+t.projectId+"/installations"}function p(t){return{token:t.token,requestStatus:2,expiresIn:(e=t.expiresIn,Number(e.replace("s","000"))),creationTime:Date.now()};var e}function v(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__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 g(t){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey})}function m(t,e){var n=e.refreshToken,r=g(t);return r.append("Authorization",function(t){return"FIS_v2 "+t}(n)),r}function y(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__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 b(t,e){var n=e.fid;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return e=f(t),r=g(t),i={method:"POST",headers:r,body:JSON.stringify({fid:n,authVersion:"FIS_v2",appId:t.appId,sdkVersion:"w:0.4.15"})},[4,y((function(){return fetch(e,i)}))];case 1:return(o=s.sent()).ok?[4,o.json()]:[3,3];case 2:return[2,{fid:(a=s.sent()).fid||n,registrationStatus:2,refreshToken:a.refreshToken,authToken:p(a.authToken)}];case 3:return[4,v("Create Installation",o)];case 4:throw s.sent()}}))}))}function _(t){return new Promise((function(e){setTimeout(e,t)}))}var w=/^[cdef][\w-]{21}$/;function k(){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(s.__spread)(e))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var e}(t);return w.test(e)?e:""}catch(r){return""}}function C(t){return t.appName+"!"+t.appId}var S=new Map;function E(t,e){var n=C(t);x(n,e),function(t,e){var n=I();n&&n.postMessage({key:t,fid:e}),O()}(n,e)}function x(t,e){var n,r,i=S.get(t);if(i)try{for(var o=Object(s.__values)(i),a=o.next();!a.done;a=o.next())(0,a.value)(e)}catch(u){n={error:u}}finally{try{a&&!a.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){x(t.data.key,t.data.fid)}),T}function O(){0===S.size&&T&&(T.close(),T=null)}var A="firebase-installations-store",P=null;function N(){return P||(P=Object(l.openDb)("firebase-installations-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(A)}}))),P}function D(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=C(t),[4,N()];case 1:return r=s.sent(),i=r.transaction(A,"readwrite"),[4,(o=i.objectStore(A)).get(n)];case 2:return a=s.sent(),[4,o.put(e,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===e.fid||E(t,e.fid),[2,e]}}))}))}function R(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e=C(t),[4,N()];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(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=C(t),[4,N()];case 1:return r=s.sent(),i=r.transaction(A,"readwrite"),[4,(o=i.objectStore(A)).get(n)];case 2:return a=s.sent(),void 0!==(u=e(a))?[3,4]:[4,o.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,o.put(u,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!u||a&&a.fid===u.fid||E(t,u.fid),[2,u]}}))}))}function L(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,M(t,(function(n){var r=function(t){return U(t||{fid:k(),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(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,b(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(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r,i;return Object(s.__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,a,s=.75*t.length,u=t.length,l=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c=new ArrayBuffer(s),h=new Uint8Array(c);for(e=0;e>4,h[l++]=(15&i)<<4|o>>2,h[l++]=(3&o)<<6|63&a;return c}}()},gFX4:function(t,e,n){var r=n("zJ60"),i=n("Uwu7"),o=n("eOtv"),a=n("NOtv")("socket.io-client");t.exports=e=u;var s=e.managers={};function u(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i=r(t),u=i.source,l=i.id;return e.forceNew||e["force new connection"]||!1===e.multiplex||s[l]&&i.path in s[l].nsps?(a("ignoring socket cache for %s",u),n=o(u,e)):(s[l]||(a("new io instance for %s",u),s[l]=o(u,e)),n=s[l]),i.query&&!e.query&&(e.query=i.query),n.socket(i.path,e)}e.protocol=i.protocol,e.connect=u,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),a=(n("fSjL"),n("S+S0")),s=n("mrSG"),u=n("zVF4"),l=n("nbvr"),c=((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 u.ErrorFactory("messaging","Messaging",c);function d(t){return h.create("missing-app-config-values",{valueName:t})}var f="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",p=function(t){return t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked",t}({});function v(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,Object(s.__spread)(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function g(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 b="firebase-messaging-store",_=null;function w(){return _||(_=Object(l.openDb)("firebase-messaging-database",1,(function(t){switch(t.oldVersion){case 0:t.createObjectStore(b)}}))),_}function k(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e=E(t),[4,w()];case 1:return[4,i.sent().transaction(b).objectStore(b).get(e)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,m(t.appConfig.senderId)];case 4:return(r=i.sent())?[4,C(t,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}))}))}function C(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=E(t),[4,w()];case 1:return r=o.sent(),[4,(i=r.transaction(b,"readwrite")).objectStore(b).put(e,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,e]}}))}))}function S(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e=E(t),[4,w()];case 1:return n=i.sent(),[4,(r=n.transaction(b,"readwrite")).objectStore(b).delete(e)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function E(t){return t.appConfig.appId}function x(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,A(t)];case 1:n=s.sent(),r=P(e),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(O(t.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),h.create("token-subscribe-failed",{errorInfo:a});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(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,A(t)];case 1:n=s.sent(),r=P(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(O(t.appConfig)+"/"+e.token,i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),h.create("token-update-failed",{errorInfo:a});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(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return[4,A(t)];case 1:n=a.sent(),r={method:"DELETE",headers:n},a.label=2;case 2:return a.trys.push([2,5,,6]),[4,fetch(O(t.appConfig)+"/"+e,r)];case 3:return[4,a.sent().json()];case 4:if((i=a.sent()).error)throw h.create("token-unsubscribe-failed",{errorInfo:i.error.message});return[3,6];case 5:throw o=a.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(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__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 P(t){var e=t.vapidKey,n={web:{endpoint:t.endpoint,auth:t.auth,p256dh:t.p256dh}};return e!==f&&(n.web.applicationPubKey=e),n}function N(t,e,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw h.create("permission-blocked");return[4,L(e,n)];case 1:return r=s.sent(),[4,k(t)];case 2:return i=s.sent(),o={vapidKey:n,swScope:e.scope,endpoint:r.endpoint,auth:v(r.getKey("auth")),p256dh:v(r.getKey("p256dh"))},i?[3,3]:[2,M(t,o)];case 3:if(c=(l=o).endpoint===(u=i.subscriptionOptions).endpoint,l.vapidKey===u.vapidKey&&c&&l.auth===u.auth&&l.p256dh===u.p256dh)return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,I(t,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[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 u,l,c}))}))}function D(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,k(t)];case 1:return(n=i.sent())?[4,I(t,n.token)]:[3,4];case 2:return i.sent(),[4,S(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(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,T(e,t)];case 1:return r=a.sent(),i=Object(s.__assign)(Object(s.__assign)({},t),{token:r,createTime:Date.now()}),[4,C(e,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,D(e,n)];case 4:throw a.sent(),o;case 5:return[2]}}))}))}function M(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,x(t,e)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:e},[4,C(t,r)];case 2:return i.sent(),[2,r.token]}}))}))}function L(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__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:g(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(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(e){switch(e.label){case 0:return this.vapidKey||(this.vapidKey=f),[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,N(this.firebaseDependencies,t,this.vapidKey)]}}))}))},t.prototype.deleteToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__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(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__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(s.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(s.__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(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(s.__generator)(this,(function(a){switch(a.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===p.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:a.sent(),a.label=2;case 2:return[2]}}))}))},t.prototype.logEvent=function(t,e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return n=function(t){switch(t){case p.NOTIFICATION_CLICKED:return"notification_open";case p.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(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,k(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:f,r.label=2;case 2:return[2,N(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(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r;return Object(s.__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(s.__assign)({},t.notification);return n.data=Object(s.__assign)(Object(s.__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(s.__awaiter)(this,void 0,void 0,(function(){var r;return Object(s.__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,k(this.firebaseDependencies)];case 3:return r=i.sent(),[4,D(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,N(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:f)];case 5:return i.sent(),[2]}}))}))},t.prototype.onNotificationClick=function(t){var e,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.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=s.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return o=s.sent(),[4,new Promise((function(t){setTimeout(t,3e3)}))];case 3:return s.sent(),[3,6];case 4:return[4,o.focus()];case 5:o=s.sent(),s.label=6;case 6:return o?(a=z(p.NOTIFICATION_CLICKED,r),[2,o.postMessage(a)]):[2]}}))}))},t}();function V(t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,n,r,i,o,a,u;return Object(s.__generator)(this,(function(l){switch(l.label){case 0:return e=new URL(t,self.location.href),[4,H()];case 1:n=l.sent();try{for(r=Object(s.__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(c){a={error:c}}finally{try{i&&!i.done&&(u=r.return)&&u.call(r)}finally{if(a)throw a.error}}return[2,null]}}))}))}function B(t,e){var n,r,i=z(p.PUSH_RECEIVED,e);try{for(var o=Object(s.__values)(t),a=o.next();!a.done;a=o.next())a.value.postMessage(i)}catch(u){n={error:u}}finally{try{a&&!a.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 a.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(s.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!r[a])throw d(a)}}catch(u){e={error:u}}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;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=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 v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(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:y(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=p(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 k(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(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 S(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(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,a){n(i=t[e].apply(t,r)).then(o,a)}));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 c(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 a(t,e,n,i){i.forEach((function(i){i in n.prototype&&(t.prototype[i]=function(){return r(this[e],i,arguments)})}))}function s(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 u(t,e,n,r){r.forEach((function(r){r in n.prototype&&(t.prototype[r]=function(){return i(this[e],r,arguments)})}))}function l(t){this._index=t}function c(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 f(t,e,n){this._db=t,this.oldVersion=e,this.transaction=new d(n)}function p(t){this._db=t}o(l,"_index",["name","keyPath","multiEntry","unique"]),a(l,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(l,"_index",IDBIndex,["openCursor","openKeyCursor"]),o(c,"_cursor",["direction","key","primaryKey","value"]),a(c,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(t){t in IDBCursor.prototype&&(c.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 c(t,e._request)}))}))})})),h.prototype.createIndex=function(){return new l(this._store.createIndex.apply(this._store,arguments))},h.prototype.index=function(){return new l(this._store.index.apply(this._store,arguments))},o(h,"_store",["name","keyPath","indexNames","autoIncrement"]),a(h,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(h,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(h,"_store",IDBObjectStore,["deleteIndex"]),d.prototype.objectStore=function(){return new h(this._tx.objectStore.apply(this._tx,arguments))},o(d,"_tx",["objectStoreNames","mode"]),s(d,"_tx",IDBTransaction,["abort"]),f.prototype.createObjectStore=function(){return new h(this._db.createObjectStore.apply(this._db,arguments))},o(f,"_db",["name","version","objectStoreNames"]),s(f,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new d(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","openKeyCursor"].forEach((function(t){[h,l].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)}})}))})),[l,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 f(o.result,t.oldVersion,o.transaction))}),i.then((function(t){return new p(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 a(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 u(t,e){return o(t>>e&63|128)}function l(t,e){if(0==(4294967168&t))return o(t);var n="";return 0==(4294965248&t)?n=o(t>>6&31|192):0==(4294901760&t)?(s(t,e)||(t=65533),n=o(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=o(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+o(63&t|128)}function c(){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|c())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&e)){if((o=(15&e)<<12|c()<<6|c())>=2048)return s(o,t)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(o=(7&e)<<18|c()<<12|c()<<6|c())>=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=a(t),i=r.length,o=-1,s="";++o65535&&(i+=o((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=o(e);return i}(l)}}},"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:a[n].toLowerCase(),message:s,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 m=p.initializeApp;p.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 Qn})),n.d(e,"EventType",(function(){return Xn})),n.d(e,"WebChannel",(function(){return $n})),n.d(e,"XhrIo",(function(){return Yn})),n.d(e,"createWebChannelTransport",(function(){return Kn}));var i,o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=a||{},s=o||self;function u(){}function l(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 c(t){var e=l(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),f=0;function p(t,e,n){return t.call.apply(t.bind,arguments)}function v(t,e,n){if(!t)throw Error();if(2e?1:0}t:{var A=s.navigator;if(A){var P=A.userAgent;if(P){x=P;break t}}x=""}function N(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(Q);break t}}F=G}var X={};function $(t){return function(t,e){var n=X;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 at(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 st(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ut(t){this.src=t,this.a={},this.b=0}function lt(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&&(st(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ct(t,e,n,r){for(var i=0;i>>0);function wt(t){return"function"==l(t)?t:(t[_t]||(t[_t]=function(e){return t.handleEvent(e)}),t[_t])}function kt(){_.call(this),this.c=new ut(this),this.J=this,this.A=null}function Ct(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 ge(t){t.P=y()+t.N,me(t,t.N)}function me(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Jt(g(t.Qa,t),e)}function ye(t){t.h&&(s.clearTimeout(t.h),t.h=null)}function be(t){0==t.g.u||t.l||Rn(t.g,t)}function _e(t){ye(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(v){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(g(n.Na,n),6e3));if(1>=Ze(n.b)&&n.O){try{n.O()}catch(v){}n.O=void 0}}else Ln(n,11)}else if((t.o||n.a==t)&&Dn(n),!E(e))for(e=r=n.ja.a.parse(e),r=0;re||3==e&&!H&&!this.a.Y())){this.l||4!=e||7==n||Qt(8==n||0>=r?3:2),ye(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 a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!E(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.c=3,$t(12),_e(this),be(this);break t}this.o=!0,we(this,u)}this.F?(pe(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,ge(this)))}else 400==i&&0e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Ne(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),Ke(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())^y()).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 Ce,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n2*t.c&&Se(t)))}function Ge(t,e){return qe(t),e=Qe(t,e),Ee(t.a.b,e)}function Ke(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()),a=o.next();!a.done;a=o.next())i=i.concat(a.value.i)}catch(s){e={error:s}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return S(t.c)}function on(){}function an(){this.a=new on}function sn(t,e,n){var r=n||"";try{ke(t,(function(t,n){var i=t;h(t)&&(i=St(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function un(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}$e.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 s.JSON.stringify(t,void 0)},on.prototype.parse=function(t){return s.JSON.parse(t,void 0)};var ln=s.JSON.parse;function cn(t){kt.call(this),this.headers=new Ce,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}b(cn,kt);var hn="",dn=/^https?$/i,fn=["POST","PUT"];function pn(t){return"content-type"==t.toLowerCase()}function vn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,gn(t),yn(t)}function gn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function mn(t){if(t.b&&void 0!==a&&(!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(xe)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var l=2<_n(t)?t.a.statusText:""}catch(c){l=""}t.f=l+" ["+t.S()+"]",gn(t)}}finally{yn(t)}}}function yn(t,e){if(t.a){bn(t);var n=t.a,r=t.s[0]?u:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function bn(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(s.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 N(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 kn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Cn(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=kn("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=kn("baseRetryDelayMs",5e3,t),this.Ga=kn("retryDelaySeedMs",1e4,t),this.Da=kn("forwardChannelMaxRetries",2,t),this.ga=kn("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 $e(t&&t.concurrentRequestLimit),this.ja=new an,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function Sn(t){if(En(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 ue(t,e,void 0)).B=2,e.f=Re(Ie(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(e.f.toString(),"")),!n&&s.Image&&((new Image).src=e.f,n=!0),n||(e.a=Un(e.g,null),e.a.$(e.f)),e.s=y(),ge(e)}Fn(t)}function En(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Dn(t),t.b.cancel(),t.g&&("number"==typeof t.g&&s.clearTimeout(t.g),t.g=null)}function xn(t,e){t.f.push(new Xe(t.Fa++,e)),3==t.u&&Tn(t)}function Tn(t){Je(t.b)||t.g||(t.g=!0,Pt(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 ue(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&&ke({},(function(t,n){De(e,n,t)}))}function An(t,e,n){n=Math.min(t.f.length,n);var r=t.c?g(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var a=["count="+n];-1==o?0(l-=o))o=Math.max(0,i[u].b-100),s=!1;else try{sn(c,a,"req"+l+"_")}catch(h){r&&r(c)}}if(s){r=a.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function Pn(t){t.a||t.i||(t.J=1,Pt(t.wa,t),t.m=0)}function Nn(t){return!(t.a||t.i||3<=t.m||(t.J++,t.i=Jt(g(t.wa,t),Mn(t,t.m)),t.m++,0))}function Dn(t){null!=t.l&&(s.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=y()-e.s;var i=t.o;(r=Gt()).dispatchEvent(new Yt(r,n,e,i)),Tn(t)}else Pn(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(g(t.xa,t,e),Mn(t,t.o)),t.o++,0)))}(t,e)||2==r&&Nn(t)))switch(n&&0e?null:"string"==typeof t?t.charAt(e):t[e]}(i.K()),n=s.FormData&&t instanceof s.FormData,!(0<=w(fn,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{bn(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),a=e,s=0;a4&&void 0!==arguments[4]?arguments[4]:new P(t,n,r);if(!i.closed)return e instanceof k?e.subscribe(i):L(e)(i)}var j=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(v);function U(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 V(t,e))}}var V=function(){function t(e,n){_classCallCheck(this,t),this.project=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new B(t,this.project,this.thisArg))}}]),t}(),B=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(v);function H(t,e){return new k((function(n){var r=new d,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 z(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 k((function(n){var r=new d;return r.add(e.schedule((function(){var i=t[m]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if(M(t))return function(t,e){return new k((function(n){var r=new d;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if(R(t))return H(t,e);if(function(t){return t&&"function"==typeof t[D]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new k((function(n){var r,i=new d;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[D](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),i}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof k?t:new k(L(t))}function q(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(r){return r.pipe(q((function(n,r){return z(t(n,r)).pipe(U((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new W(t,n))})}var W=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,t),this.project=e,this.concurrent=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new G(t,this.project,this.concurrent))}}]),t}(),G=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(t){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(j);function K(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return q(y,t)}function Q(t,e){return e?H(t,e):new k(N(t))}function X(){for(var t=arguments.length,e=new Array(t),n=0;n1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===i&&1===e.length&&e[0]instanceof k?e[0]:K(r)(Q(e,i))}function $(){return function(t){return t.lift(new J(t))}}var Y,J=function(){function t(e){_classCallCheck(this,t),this.connectable=e}return _createClass(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new Z(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),Z=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(v),tt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(Y=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new et(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t}},{key:"refCount",value:function(){return $()(this)}}]),n}(k).prototype)._subscribe},_isComplete:{value:Y._isComplete,writable:!0},getSubject:{value:Y.getSubject},connect:{value:Y.connect},refCount:{value:Y.refCount}},et=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(t){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(T);function nt(){return new I}function rt(){return function(t){return $()((e=nt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,tt);return r.source=t,r.subjectFactory=n,r})(t));var e}}function it(t){return{toString:t}.toString()}function ot(t,e,n){return it((function(){var r=function(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}(e);function i(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:ct.Default;if(void 0===Kt)throw new Error("inject() must be called from an injection context");return null===Kt?Zt(t,void 0,e):Kt.get(t,e&ct.Optional?null:void 0,e)}function Yt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ct.Default;return(Ot||$t)(Tt(t),e)}var Jt=Yt;function Zt(t,e,n){var r=vt(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ct.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(Ct(t),"]"))}function te(t){for(var e=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:qt;if(e===qt){var n=new Error("NullInjectorError: No provider for ".concat(Ct(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),ne=function t(){_classCallCheck(this,t)},re=function t(){_classCallCheck(this,t)};function ie(t,e){t.forEach((function(t){return Array.isArray(t)?ie(t,e):e(t)}))}function oe(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ae(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function se(t,e){for(var n=[],r=0;r=0?t[1|r]=n:function(t,e,n,r){var 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=~r,e,n),r}function le(t,e){var n=ce(t,e);if(n>=0)return t[1|n]}function ce(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var he=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),de=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}(),fe={},pe=[],ve=0;function ge(t){return it((function(){var 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===he.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||pe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||de.Emulated,id:"c",styles:t.styles||pe,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,a=t.features,s=t.pipes;return i.id+=ve++,i.inputs=we(t.inputs,r),i.outputs=we(t.outputs),a&&a.forEach((function(t){return t(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(me)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(ye)}:null,i}))}function me(t){return Se(t)||function(t){return t[Lt]||null}(t)}function ye(t){return function(t){return t[Ft]||null}(t)}var be={};function _e(t){var e={type:t.type,bootstrap:t.bootstrap||pe,declarations:t.declarations||pe,imports:t.imports||pe,exports:t.exports||pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&it((function(){be[t.id]=t.type})),e}function we(t,e){if(null==t)return fe;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}var ke=ge;function Ce(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Se(t){return t[Mt]||null}function Ee(t,e){return t.hasOwnProperty(Vt)?t[Vt]:null}function xe(t,e){var n=t[jt]||null;if(!n&&!0===e)throw new Error("Type ".concat(Ct(t)," does not have '\u0275mod' property."));return n}function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ie(t){return Array.isArray(t)&&!0===t[1]}function Oe(t){return 0!=(8&t.flags)}function Ae(t){return 2==(2&t.flags)}function Pe(t){return 1==(1&t.flags)}function Ne(t){return null!==t.template}function De(t){return 0!=(512&t[2])}var Re=void 0;function Me(){return void 0!==Re?Re:"undefined"!=typeof document?document:void 0}function Le(t){return!!t.listen}var Fe={createRenderer:function(t,e){return Me()}};function je(t){for(;Array.isArray(t);)t=t[0];return t}function Ue(t,e){return je(e[t+20])}function Ve(t,e){return je(e[t.index])}function Be(t,e){return t.data[e+20]}function He(t,e){return t[e+20]}function ze(t,e){var n=e[t];return Te(n)?n:n[0]}function qe(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function We(t){return 4==(4&t[2])}function Ge(t){return 128==(128&t[2])}function Ke(t,e){return null===t||null==e?null:t[e]}function Qe(t){t[18]=0}function Xe(t,e){t[5]+=e;for(var n=t,r=t[3];null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}var $e={lFrame:_n(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ye(){return $e.bindingsEnabled}function Je(){return $e.lFrame.lView}function Ze(){return $e.lFrame.tView}function tn(t){$e.lFrame.contextLView=t}function en(){return $e.lFrame.previousOrParentTNode}function nn(t,e){$e.lFrame.previousOrParentTNode=t,$e.lFrame.isParent=e}function rn(){return $e.lFrame.isParent}function on(){$e.lFrame.isParent=!1}function an(){return $e.checkNoChangesMode}function sn(t){$e.checkNoChangesMode=t}function un(){var t=$e.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ln(){return $e.lFrame.bindingIndex}function cn(){return $e.lFrame.bindingIndex++}function hn(t){var e=$e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function dn(t,e){var n=$e.lFrame;n.bindingIndex=n.bindingRootIndex=t,fn(e)}function fn(t){$e.lFrame.currentDirectiveIndex=t}function pn(t){var e=$e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function vn(){return $e.lFrame.currentQueryIndex}function gn(t){$e.lFrame.currentQueryIndex=t}function mn(t,e){var n=bn();$e.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function yn(t,e){var n=bn(),r=t[1];$e.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function bn(){var t=$e.lFrame,e=null===t?null:t.child;return null===e?_n(t):e}function _n(t){var 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 wn(){var t=$e.lFrame;return $e.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var kn=wn;function Cn(){var t=wn();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 Sn(){return $e.lFrame.selectedIndex}function En(t){$e.lFrame.selectedIndex=t}function xn(){var t=$e.lFrame;return Be(t.tView,t.selectedIndex)}function Tn(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var Dn=function t(e,n,r){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Rn(t,e,n){for(var r=Le(t),i=0;ie){a=o-1;break}}}for(;o>16}function Hn(t,e){for(var n=Bn(t),r=e;n>0;)r=r[15],n--;return r}function zn(t){return"string"==typeof t?t:null==t?"":""+t}function qn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():zn(t)}var Wn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Rt);function Gn(t){return{name:"window",target:t.ownerDocument.defaultView}}function Kn(t){return{name:"document",target:t.ownerDocument}}function Qn(t){return t instanceof Function?t():t}var Xn=!0;function $n(t){var e=Xn;return Xn=t,e}var Yn=0;function Jn(t,e){var n=tr(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Zn(r.data,t),Zn(e,null),Zn(r.blueprint,null));var i=er(t,e),o=t.injectorIndex;if(Un(i))for(var a=Vn(i),s=Hn(i,e),u=s[1].data,l=0;l<8;l++)e[o+l]=s[a+l]|u[a+l];return e[o+8]=i,o}function Zn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function tr(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function er(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],r=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function nr(t,e,n){!function(t,e,n){var r="string"!=typeof n?n[Bt]:n.charCodeAt(0)||0;null==r&&(r=n[Bt]=Yn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ct.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Bt];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof o){mn(e,t);try{var a=o();if(null!=a||r&ct.Optional)return a;throw new Error("No provider for ".concat(qn(n),"!"))}finally{kn()}}else if("number"==typeof o){if(-1===o)return new cr(t,e);var s=null,u=tr(t,e),l=-1,c=r&ct.Host?e[16][6]:null;for((-1===u||r&ct.SkipSelf)&&(l=-1===u?er(t,e):e[u+8],lr(r,!1)?(s=e[1],u=Vn(l),e=Hn(l,e)):u=-1);-1!==u;){l=e[u+8];var h=e[1];if(ur(o,u,h.data)){var d=or(u,e,n,s,r,c);if(d!==ir)return d}lr(r,e[1].data[u+8]===c)&&ur(o,u,e)?(s=h,u=Vn(l),e=Hn(l,e)):u=-1}}}if(r&ct.Optional&&void 0===i&&(i=null),0==(r&(ct.Self|ct.Host))){var f=e[9],p=Xt(void 0);try{return f?f.get(n,i,r&ct.Optional):Zt(n,i,r&ct.Optional)}finally{Xt(p)}}if(r&ct.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(qn(n),"]"))}var ir={};function or(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],u=ar(s,a,n,null==r?Ae(s)&&Xn:r!=a&&3===s.type,i&ct.Host&&o===s);return null!==u?sr(e,a,u,s):ir}function ar(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=65535&o,u=t.directiveStart,l=o>>16,c=i?s+l:t.directiveEnd,h=r?s:s+l;h=u&&d.type===n)return h}if(i){var f=a[u];if(f&&Ne(f)&&f.type===n)return u}return null}function sr(t,e,n,r){var i=t[n],o=e.data;if(i instanceof Dn){var a=i;if(a.resolving)throw new Error("Circular dep for "+qn(o[n]));var s,u=$n(a.canSeeViewProviders);a.resolving=!0,a.injectImpl&&(s=Xt(a.injectImpl)),mn(t,r);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.onChanges,i=e.onInit,o=e.doCheck;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{a.injectImpl&&Xt(s),$n(u),a.resolving=!1,kn()}}return i}function ur(t,e,n){var r=64&t,i=32&t;return!!((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])&1<1?e-1:0),r=1;r',!n.querySelector||n.querySelector("svg")?(n.innerHTML='

',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return _createClass(t,[{key:"getInertBodyElement_XHR",value:function(t){t=""+t+"";try{t=encodeURI(t)}catch(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);var n=e.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();Vr.hasOwnProperty(e)&&!Lr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Qr(t))}},{key:"checkClobberedElement",value:function(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}}]),t}(),Gr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kr=/([^\#-~ |!])/g;function Qr(t){return t.replace(/&/g,"&").replace(Gr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Kr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function Xr(t,e){var n=null;try{Mr=Mr||new Or(t);var r=e?String(e):"";n=Mr.getInertBodyElement(r);var 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=Mr.getInertBodyElement(r)}while(r!==o);var a=new Wr,s=a.sanitizeChildren($r(n)||n);return Ir()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=$r(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function $r(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Yr=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}(),Jr=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"),Zr=/^url\(([^)]+)\)$/;function ti(t){var e=ri();return e?e.sanitize(Yr.HTML,t)||"":Sr(t,"HTML")?Cr(t):Xr(Me(),zn(t))}function ei(t){var e=ri();return e?e.sanitize(Yr.URL,t)||"":Sr(t,"URL")?Cr(t):Nr(zn(t))}function ni(t){var e=ri();if(e)return e.sanitize(Yr.RESOURCE_URL,t)||"";if(Sr(t,"ResourceURL"))return Cr(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function ri(){var t=Je();return t&&t[12]}function ii(t,e){t.__ngContext__=e}function oi(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function ai(){throw new Error("Cannot mix multi providers and regular providers")}function si(t,e,n){for(var r=t.length;;){var i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){var o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}function ui(t,e,n){for(var r=0;ro?"":i[c+1].toLowerCase();var d=8&r?h:null;if(d&&-1!==si(d,l,0)||2&r&&l!==h){if(di(r))return!1;a=!0}}}}else{if(!a&&!di(r)&&!di(u))return!1;if(a&&di(u))continue;a=!1,r=u|1&r}}return di(r)||a}function di(t){return 0==(1&t)}function fi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||di(a)||(e+=gi(o,i),i=""),r=a,o=o||!di(r);n++}return""!==i&&(e+=gi(o,i)),e}var yi={};function bi(t){var e=t[3];return Ie(e)?e[3]:e}function _i(t){return ki(t[13])}function wi(t){return ki(t[4])}function ki(t){for(;null!==t&&!Ie(t);)t=t[4];return t}function Ci(t){Si(Ze(),Je(),Sn()+t,an())}function Si(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&In(e,i,n)}else{var o=t.preOrderHooks;null!==o&&On(e,o,0,n)}En(n)}function Ei(t,e){return t<<17|e<<2}function xi(t){return t>>17&32767}function Ti(t){return 2|t}function Ii(t){return(131068&t)>>2}function Oi(t,e){return-131069&t|e<<2}function Ai(t){return 1|t}function Pi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&Si(t,e,0,an()),n(r,i)}finally{En(o)}}function Ui(t,e,n){if(Oe(e))for(var r=e.directiveEnd,i=e.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Ve,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0&&function t(e){for(var n=_i(e);null!==n;n=wi(n))for(var r=10;r0&&t(i)}var a=e[1].components;if(null!==a)for(var s=0;s0&&t(u)}}(n)}}function so(t,e){var n=ze(e,t),r=n[1];!function(t,e){for(var n=e.length;n0&&(t[n-1][4]=r[4]);var o=ae(t,10+e);Co(r[1],r,!1,null);var a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function xo(t,e){if(!(256&e[2])){var n=e[11];Le(n)&&n.destroyNode&&jo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Io(t[1],t);for(;e;){var n=null;if(Te(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&Io(e[1],e),e=To(e,t);null===e&&(e=t),Te(e)&&Io(e[1],e),n=e&&e[4]}e=n}}(e)}}function To(t,e){var n;return Te(t)&&(n=t[6])&&2===n.type?_o(n,t):t[3]===e?null:t[3]}function Io(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&Le(e[11])&&e[11].destroy();var r=e[17];if(null!==r&&Ie(e[3])){r!==e[3]&&So(r,e);var i=e[19];null!==i&&i.detachView(t)}}}function Oo(t,e,n){for(var r=e.parent;null!=r&&(4===r.type||5===r.type);)r=(e=r).parent;if(null==r){var i=n[6];return 2===i.type?wo(i,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ve(e,n).parentNode;if(2&r.flags){var o=t.data,a=o[o[r.index].directiveStart].encapsulation;if(a!==de.ShadowDom&&a!==de.Native)return null}return Ve(r,n)}function Ao(t,e,n,r){Le(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Po(t,e,n){Le(t)?t.appendChild(e,n):e.appendChild(n)}function No(t,e,n,r){null!==r?Ao(t,e,n,r):Po(t,e,n)}function Do(t,e){return Le(t)?t.parentNode(e):e.parentNode}function Ro(t,e){if(2===t.type){var n=_o(t,e);return null===n?null:Lo(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Ve(t,e):null}function Mo(t,e,n,r){var i=Oo(t,r,e);if(null!=i){var o=e[11],a=Ro(r.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}xo(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,n,r;e=this._lView[1],r=t,vo(n=this._lView).push(r),e.firstCreatePass&&go(e).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){lo(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){co(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){sn(!0);try{co(t,e,n)}finally{sn(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,jo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var a=n[r.index];if(null!==a&&i.push(je(a)),Ie(a))for(var s=10;s0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(ne,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ie(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var o=n[3],a=new qo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ko(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new cr(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=er(this._hostTNode,this._hostView),e=Hn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=Bn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return Un(t)&&null!=n?new cr(n,e):new cr(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(t));var o=r[n.index];if(Ie(o))i=o;else{var a;if(4===n.type)a=je(o);else if(a=r[11].createComment(""),De(r)){var s=r[11],u=Ve(n,r);Ao(s,Do(s,u),a,function(t,e){return Le(t)?t.nextSibling(e):e.nextSibling}(s,u))}else Mo(r[1],r,a,n);r[n.index]=i=oo(o,r,a,n),uo(r,i)}return new qo(i,n,r)}function $o(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&Ae(t)){var r=ze(t.index,e);return new Wo(r,r)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Wo(e[16],e):null}(en(),Je(),t)}var Yo=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return Jo()},t}(),Jo=$o,Zo=new Ht("Set Injector scope."),ta={},ea={},na=[],ra=void 0;function ia(){return void 0===ra&&(ra=new ee),ra}function oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new aa(t,n,e||ia(),r)}var aa=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ie(n,(function(t){return i.processProvider(t,e,n)})),ie([e],(function(t){return i.processInjectorType(t,[],a)})),this.records.set(zt,la(void 0,this));var s=this.records.get(Zo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Ct(e))}return _createClass(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(t){return t.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.Default;this.assertNotDestroyed();var r,i=Qt(this);try{if(!(n&ct.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Ht)&&vt(t);o=a&&this.injectableDefInScope(a)?la(sa(t),ta):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&ct.Self?ia():this.parent).get(t,e=n&ct.Optional&&e===qt?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Ct(t)),i)throw s;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=Ct(e);if(Array.isArray(e))i=e.map(Ct).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Ct(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(Wt,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{Qt(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach((function(e){return t.get(e)}))}},{key:"toString",value:function(){var t=[];return this.records.forEach((function(e,n){return t.push(Ct(n))})),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=Tt(t)))return!1;var i=mt(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=mt(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{ie(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,i=e.providers;ie(i,(function(t){return r.processProvider(t,n,i||na)}))},c=0;c0){var n=se(e,"?");throw new Error("Can't resolve all parameters for ".concat(Ct(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[yt]||t[wt]||t[_t]&&t[_t]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "').concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function ua(t,e,n){var r,i=void 0;if(ha(t)){var o=Tt(t);return Ee(o)||sa(o)}if(ca(t))i=function(){return Tt(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,_toConsumableArray(te(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return Yt(Tt(t.useExisting))};else{var a=Tt(t&&(t.useClass||t.provide));if(a||function(t,e,n){var r="";throw t&&e&&(r=" - only instances of Provider and Type are allowed, got: [".concat(e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Ct(t),"'")+r)}(e,n,t),!function(t){return!!t.deps}(t))return Ee(a)||sa(a);i=function(){return _construct(a,_toConsumableArray(te(t.deps)))}}return i}function la(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ca(t){return null!==t&&"object"==typeof t&&Gt in t}function ha(t){return"function"==typeof t}var da=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=oa(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},fa=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?da(t,e,""):da(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=qt,t.NULL=new ee,t.\u0275prov=ft({token:t,providedIn:"any",factory:function(){return Yt(zt)}}),t.__NG_ELEMENT_ID__=-1,t}(),pa=new Ht("AnalyzeForEntryComponents"),va=new Map,ga=new Set;function ma(t){return"string"==typeof t?t:t.text()}function ya(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:ct.Default,n=Je();return null==n?Yt(t,e):rr(en(),n,Tt(t),e)}function Ra(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;var n=t.attrs;if(n)for(var r=n.length,i=0;i2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Je(),o=Ze(),a=en();return Qa(o,i,i[11],a,t,e,n,r),Ga}function Ka(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=en(),o=Je(),a=Ze();return Qa(a,o,mo(pn(a.data),i,o),i,t,e,n,r),Ka}function Qa(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Pe(r),l=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),c=vo(e),h=!0;if(3===r.type){var d=Ve(r,e),f=s?s(d):fe,p=f.target||d,v=c.length,g=s?function(t){return s(je(t[r.index])).target}:r.index;if(Le(n)){var m=null;if(!s&&u&&(m=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=$a(r,e,o,!1);var y=n.listen(f.name||p,i,o);c.push(o,y),l&&l.push(i,g,v,v+1)}}else o=$a(r,e,o,!0),p.addEventListener(i,o,a),c.push(o),l&&l.push(i,g,v,a)}var b,_=r.outputs;if(h&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var k=0;k0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return($e.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,$e.lFrame.contextLView))[8]}(t)}function Ja(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Je(),i=Ze(),o=Ri(i,r[6],t,1,null,n||null);null===o.projection&&(o.projection=e),on(),function(t,e,n){Uo(e[11],0,e,n,Oo(t,n,e),Ro(n.parent||e[6],e))}(i,r,o)}function es(t,e,n){return ns(t,"",e,"",n),es}function ns(t,e,n,r,i){var o=Je(),a=Aa(o,e,n,r);return a!==yi&&Gi(Ze(),xn(),o,t,a,o[11],i,!1),ns}var rs=[];function is(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?xi(o):Ii(o),u=!1;0!==s&&(!1===u||a);){var l=t[s+1];os(t[s],e)&&(u=!0,t[s+1]=r?Ai(l):Ti(l)),s=r?xi(l):Ii(l)}u&&(t[n+1]=r?Ti(o):Ai(o))}function os(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ce(t,e)>=0}var as={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ss(t){return t.substring(as.key,as.keyEnd)}function us(t,e){var n=as.textEnd;return n===e?-1:(e=as.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,as.key=e,n),ls(t,e,n))}function ls(t,e,n){for(;e=0;n=us(e,n))ue(t,ss(e),!0)}function ps(t,e,n,r){var i,o,a=Je(),s=Ze(),u=hn(2);(s.firstUpdatePass&&ms(s,t,u,r),e!==yi&&xa(a,u,e))&&(null==n&&(i=null===(o=$e.lFrame)?null:o.currentSanitizer)&&(n=i),_s(s,s.data[Sn()+20],a,a[11],t,a[u+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Ct(Cr(t)))),t}(e,n),r,u))}function vs(t,e,n,r){var i=Ze(),o=hn(2);i.firstUpdatePass&&ms(i,null,o,r);var a=Je();if(n!==yi&&xa(a,o,n)){var s=i.data[Sn()+20];if(Cs(s,r)&&!gs(i,o)){var u=r?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=St(u,n||"")),Fa(i,s,a,n,r)}else!function(t,e,n,r,i,o,a,s){i===yi&&(i=rs);for(var u=0,l=0,c=0=t.expandoStartIndex}function ms(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[Sn()+20],a=gs(t,n);Cs(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=pn(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=bs(n=ys(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ys(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Ii(r))return t[xi(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[xi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=bs(s=ys(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==u){var d=xi(t[s+1]);t[r+1]=Ei(d,s),0!==d&&(t[d+1]=Oi(t[d+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=Ei(s,0),0!==s&&(t[s+1]=Oi(t[s+1],r)),s=r;else t[r+1]=Ei(u,0),0===s?s=r:t[u+1]=Oi(t[u+1],r),u=r;c&&(t[r+1]=Ti(t[r+1])),is(t,l,r,!0),is(t,l,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&ce(o,e)>=0&&(n[r+1]=Ai(n[r+1]))}(e,l,t,r,o),a=Ei(s,u),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}function ys(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=t[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,d=n[i+1];d===yi&&(d=h?rs:void 0);var f=h?le(d,r):c===r?d:void 0;if(l&&!ks(f)&&(f=le(u,r)),ks(f)&&(s=f,a))return s;var p=t[i+1];i=a?xi(p):Ii(p)}if(null!==e){var v=o?e.residualClasses:e.residualStyles;null!=v&&(s=le(v,r))}return s}function ks(t){return void 0!==t}function Cs(t,e){return 0!=(t.flags&(e?16:32))}function Ss(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),r=Ze(),i=t+20,o=r.firstCreatePass?Ri(r,n[6],t,3,null,null):r.data[i],a=n[i]=function(t,e){return Le(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Mo(r,n,a,o),nn(o,!1)}function Es(t){return xs("",t,""),Es}function xs(t,e,n){var r=Je(),i=Aa(r,t,e,n);return i!==yi&&function(t,e,n){var r=Ue(e,t),i=t[11];Le(i)?i.setValue(r,n):r.textContent=n}(r,Sn(),i),xs}function Ts(t,e,n){vs(ue,fs,Aa(Je(),t,e,n),!0)}function Is(t,e,n,r,i){vs(ue,fs,function(t,e,n,r,i,o){var a=Ta(t,ln(),n,i);return hn(2),a?e+zn(n)+r+zn(i)+o:yi}(Je(),t,e,n,r,i),!0)}function Os(t,e,n){var r=Je();return xa(r,cn(),e)&&Gi(Ze(),xn(),r,t,e,r[11],n,!0),Os}function As(t,e,n){var r=Je();if(xa(r,cn(),e)){var i=Ze(),o=xn();Gi(i,o,r,t,e,mo(pn(i.data),o,r),n,!0)}return As}function Ps(t,e){var n=qe(t)[1],r=n.data.length-1;Tn(n,{directiveStart:r,directiveEnd:r+1})}function Ns(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(Ne(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);var o=t;o.inputs=Ds(t.inputs),o.declaredInputs=Ds(t.declaredInputs),o.outputs=Ds(t.outputs);var a=i.hostBindings;a&&Ls(t,a);var s=i.viewQuery,u=i.contentQueries;if(s&&Rs(t,s),u&&Ms(t,u),dt(t.inputs,i.inputs),dt(t.declaredInputs,i.declaredInputs),dt(t.outputs,i.outputs),Ne(i)&&i.data.animation){var l=t.data;l.animation=(l.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=t.afterContentInit||i.afterContentInit,o.afterViewChecked=t.afterViewChecked||i.afterViewChecked,o.afterViewInit=t.afterViewInit||i.afterViewInit,o.doCheck=t.doCheck||i.doCheck,o.onDestroy=t.onDestroy||i.onDestroy,o.onInit=t.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Fn(i.hostAttrs,n=Fn(n,i.hostAttrs))}}(r)}function Ds(t){return t===fe?{}:t===pe?[]:t}function Rs(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Ms(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function Ls(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Fs=function(){function t(e,n,r){_classCallCheck(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=r}return _createClass(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function js(t){t.type.prototype.ngOnChanges&&(t.setInput=Us,t.onChanges=function(){var t=Vs(this),e=t&&t.current;if(e){var n=t.previous;if(n===fe)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}})}function Us(t,e,n,r){var i=Vs(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:fe,current:null}),o=i.current||(i.current={}),a=i.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Fs(u&&u.currentValue,e,a===fe),t[r]=e}function Vs(t){return t.__ngSimpleChanges__||null}function Bs(t,e,n,r,i){if(t=Tt(t),Array.isArray(t))for(var o=0;o>16;if(ha(t)||!t.multi){var p=new Dn(l,i,Da),v=qs(u,e,i?h:h+f,d);-1===v?(nr(Jn(c,s),a,u),Hs(a,t,e.length),e.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(p),s.push(p)):(n[v]=p,s[v]=p)}else{var g=qs(u,e,h+f,d),m=qs(u,e,h,h+f),y=g>=0&&n[g],b=m>=0&&n[m];if(i&&!b||!i&&!y){nr(Jn(c,s),a,u);var _=function(t,e,n,r,i){var o=new Dn(t,n,Da);return o.multi=[],o.index=e,o.componentProviders=0,zs(o,i,r&&!n),o}(i?Gs:Ws,n.length,i,r,l);!i&&b&&(n[m].providerFactory=_),Hs(a,t,e.length,0),e.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(_),s.push(_)}else Hs(a,t,g>-1?g:m,zs(n[i?m:g],l,!i&&r));!i&&r&&b&&n[m].componentProviders++}}}function Hs(t,e,n,r){var i=ha(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function zs(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function qs(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=Ze();if(r.firstCreatePass){var i=Ne(t);Bs(n,r.data,r.blueprint,i,!0),Bs(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}js.ngInherit=!0;var Xs=function t(){_classCallCheck(this,t)},$s=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(Ct(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Ys=function(){var t=function t(){_classCallCheck(this,t)};return t.NULL=new $s,t}(),Js=function(){var t=function t(e){_classCallCheck(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=function(){return Zs(t)},t}(),Zs=function(t){return Ko(t,en(),Je())},tu=function t(){_classCallCheck(this,t)},eu=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),nu=function(){var t=function t(){_classCallCheck(this,t)};return t.__NG_ELEMENT_ID__=function(){return ru()},t}(),ru=function(){var t=Je(),e=ze(en().index,t);return function(t){var e=t[11];if(Le(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Te(e)?e:t)},iu=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275prov=ft({token:t,providedIn:"root",factory:function(){return null}}),t}(),ou=function t(e){_classCallCheck(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},au=new ou("9.1.12"),su=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return Ca(t)}},{key:"create",value:function(t){return new lu(t)}}]),t}(),uu=function(t,e){return e},lu=function(){function t(e){_classCallCheck(this,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=e||uu}return _createClass(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex0&&Bo(l,h,_.join(" "))}if(o=Be(v,0),void 0!==e)for(var w=o.projection=[],k=0;k null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Uu=new Map,Vu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;_classCallCheck(this,n),(i=e.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Tu(_assertThisInitialized(i));var o=xe(t),a=t[Ut]||null;return a&&ju(a),i._bootstrapComponents=Qn(o.bootstrap),i._r3Injector=oa(t,r,[{provide:ne,useValue:_assertThisInitialized(i)},{provide:Ys,useValue:i.componentFactoryResolver}],Ct(t)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(t),i}return _createClass(n,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ct.Default;return t===fa||t===ne||t===zt?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(ne),Bu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).moduleType=t,null!==xe(t)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(Ct(e)," vs ").concat(Ct(e.name)))})(n,Uu.get(n),e),Uu.set(n,e)}var r=e.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(e){return t(e)}))}(t),r}return _createClass(n,[{key:"create",value:function(t){return new Vu(this.moduleType,t)}}]),n}(re);function Hu(t,e,n,r){return Ku(Je(),un(),t,e,n,r)}function zu(t,e,n,r,i){return Qu(Je(),un(),t,e,n,r,i)}function qu(t,e,n,r,i,o){return function(t,e,n,r,i,o,a,s){var u=e+n;return function(t,e,n,r,i){var o=Ta(t,e,n,r);return xa(t,e+2,i)||o}(t,u,i,o,a)?Ea(t,u+3,s?r.call(s,i,o,a):r(i,o,a)):Gu(t,u+3)}(Je(),un(),t,e,n,r,i,o)}function Wu(t,e,n,r,i,o,a,s){var u=un()+t,l=Je(),c=Ia(l,u,n,r,i,o);return xa(l,u+4,a)||c?Ea(l,u+5,s?e.call(s,n,r,i,o,a):e(n,r,i,o,a)):function(t,e){return t[e]}(l,u+5)}function Gu(t,e){var n=t[e];return n===yi?void 0:n}function Ku(t,e,n,r,i,o){var a=e+n;return xa(t,a,i)?Ea(t,a+1,o?r.call(o,i):r(i)):Gu(t,a+1)}function Qu(t,e,n,r,i,o,a){var s=e+n;return Ta(t,s,i,o)?Ea(t,s+2,a?r.call(a,i,o):r(i,o)):Gu(t,s+2)}function Xu(t,e){var n,r=Ze(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new Error("The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=Ee(n.type)),a=Xt(Da),s=$n(!1),u=o();return $n(s),Xt(a),function(t,e,n,r){var i=n+20;i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=r}(r,Je(),t,u),u}function $u(t,e,n){var r=Je(),i=He(r,t);return Zu(r,Ju(r,t)?Ku(r,un(),e,i.transform,n,i):i.transform(n))}function Yu(t,e,n,r){var i=Je(),o=He(i,t);return Zu(i,Ju(i,t)?Qu(i,un(),e,o.transform,n,r,o):o.transform(n,r))}function Ju(t,e){return t[1].data[e+20].pure}function Zu(t,e){return ka.isWrapped(e)&&(e=ka.unwrap(e),t[ln()]=yi),e}var tl=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(t=e.call(this)).__isAsync=r,t}return _createClass(n,[{key:"emit",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var i,o=function(t){return null},a=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout((function(){return t.next(e)}))}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout((function(){return t.error(e)}))}:function(e){t.error(e)}),t.complete&&(a=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)},e&&(o=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,a);return t instanceof d&&t.add(s),s}}]),n}(I);function el(){return this._results[_a()]()}var nl=function(){function t(){_classCallCheck(this,t),this.dirty=!0,this._results=[],this.changes=new tl,this.length=0;var e=_a(),n=t.prototype;n[e]||(n[e]=el)}return _createClass(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.predicate=e,this.descendants=n,this.isStatic=r,this.read=i},al=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,t),this.queries=e}return _createClass(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,r=0;r0)i.push(s[u/2]);else{for(var c=a[u+1],h=n[-l],d=10;d0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yt(zl))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t}(),Zl=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,tc.addToWindow(this)}return _createClass(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return tc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t}(),tc=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),ec=function(t,e,n){var r=t.get(Vl,[]).concat(e),i=new Bu(n);if(0===va.size)return Promise.resolve(i);var o,a,s=(o=r.map((function(t){return t.providers})),a=[],o.forEach((function(t){return t&&a.push.apply(a,_toConsumableArray(t))})),a);if(0===s.length)return Promise.resolve(i);var u=function(){var t=Rt.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}(),l=fa.create({providers:s}).get(u.ResourceLoader);return function(t){var e=[],n=new Map;function r(t){var e=n.get(t);if(!e){var r=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=r.then(ma))}return e}return va.forEach((function(t,n){var i=[];t.templateUrl&&i.push(r(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),i.push(r(e).then((function(r){a[s+n]=r,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(t){ga.delete(t)}(n)}));e.push(u)})),va=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},nc=new Ht("AllowMultipleToken"),rc=function t(e,n){_classCallCheck(this,t),this.name=e,this.token=n};function ic(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+e,i=new Ht(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=oc();if(!o||o.injector.get(nc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:Zo,useValue:"platform"});!function(t){if($l&&!$l.destroyed&&!$l.injector.get(nc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");$l=t.get(ac);var e=t.get(xl,null);e&&e.forEach((function(t){return t()}))}(fa.create({providers:a,name:r}))}return function(t){var e=oc();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 oc(){return $l&&!$l.destroyed?$l:null}var ac=function(){var t=function(){function t(e){_classCallCheck(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new Yl:("zone.js"===n?void 0:n)||new zl({enableLongStackTrace:Ir(),shouldCoalesceEventChangeDetection:r})),a=[{provide:zl,useValue:o}];return o.run((function(){var e=fa.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(gr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return cc(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var o=((a=n.injector.get(kl)).runInitializers(),a.donePromise.then((function(){return ju(n.injector.get(Al,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return qa(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(r,o)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=sc({},n);return ec(this.injector,r,t).then((function(t){return e.bootstrapModuleFactory(t,r)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(Ct(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(t){return t.destroy()})),this._destroyListeners.forEach((function(t){return t()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yt(fa))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t}();function sc(t,e){return Array.isArray(e)?e.reduce(sc,t):Object.assign(Object.assign({},t),e)}var uc,lc=((uc=function(){function t(e,n,r,i,o,a){var s=this;_classCallCheck(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ir(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var u=new k((function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){t.next(s._stable),t.complete()}))})),l=new k((function(t){var e;s._zone.runOutsideAngular((function(){e=s._zone.onStable.subscribe((function(){zl.assertNotInAngularZone(),Hl((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){zl.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=X(u,l.pipe(rt()))}return _createClass(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof Xs?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(ne),o=n.create(fa.NULL,[],e||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var a=o.injector.get(Jl,null);return a&&o.injector.get(Zl).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Ir()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(a){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;cc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Il,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),cc(this.components,t)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(t){return t.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),t}()).\u0275fac=function(t){return new(t||uc)(Yt(zl),Yt(Ol),Yt(fa),Yt(gr),Yt(Ys),Yt(kl))},uc.\u0275prov=ft({token:uc,factory:uc.\u0275fac}),uc);function cc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var hc=function t(){_classCallCheck(this,t)},dc=function t(){_classCallCheck(this,t)},fc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},pc=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._compiler=e,this._config=n||fc}return _createClass(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=_slicedToArray(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),n("zn8P")(i).then((function(t){return t[o]})).then((function(t){return vc(t,i,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))}},{key:"loadFactory",value:function(t){var e=_slicedToArray(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+o]})).then((function(t){return vc(t,r,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yt(Ul),Yt(dc,8))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t}();function vc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var gc=ic(null,"core",[{provide:Tl,useValue:"unknown"},{provide:ac,deps:[fa]},{provide:Zl,deps:[]},{provide:Ol,deps:[]}]),mc=[{provide:lc,useClass:lc,deps:[zl,Ol,fa,gr,Ys,kl]},{provide:Ou,deps:[zl],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:kl,useClass:kl,deps:[[new st,wl]]},{provide:Ul,useClass:Ul,deps:[]},Sl,{provide:mu,useFactory:function(){return _u},deps:[]},{provide:yu,useFactory:function(){return wu},deps:[]},{provide:Al,useFactory:function(t){return ju(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new at(Al),new st,new lt]]},{provide:Pl,useValue:"USD"}],yc=function(){var t=function t(e){_classCallCheck(this,t)};return t.\u0275mod=_e({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)(Yt(lc))},providers:mc}),t}(),bc={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"},_c=null;function wc(){return _c}var kc,Cc=new Ht("DocumentToken"),Sc=((kc=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||kc)},kc.\u0275prov=ft({factory:Ec,token:kc,providedIn:"platform"}),kc);function Ec(){return Yt(Ic)}var xc,Tc=new Ht("Location Initialized"),Ic=((xc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this))._doc=t,r._init(),r}return _createClass(n,[{key:"_init",value:function(){this.location=wc().getLocation(),this._history=wc().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return wc().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){wc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){wc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{key:"pushState",value:function(t,e,n){Oc()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){Oc()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(Sc)).\u0275fac=function(t){return new(t||xc)(Yt(Cc))},xc.\u0275prov=ft({factory:Ac,token:xc,providedIn:"platform"}),xc);function Oc(){return!!window.history.pushState}function Ac(){return new Ic(Yt(Cc))}function Pc(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Nc(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Dc(t){return t&&"?"!==t[0]?"?"+t:t}var Rc,Mc=((Rc=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Rc)},Rc.\u0275prov=ft({factory:Lc,token:Rc,providedIn:"root"}),Rc);function Lc(t){var e=Yt(Cc).location;return new Bc(Yt(Sc),e&&e.origin||"")}var Fc,jc,Uc,Vc=new Ht("appBaseHref"),Bc=((Uc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;if(_classCallCheck(this,n),(i=e.call(this))._platformLocation=t,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)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.");return i._baseHref=r,_possibleConstructorReturn(i)}return _createClass(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return Pc(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+Dc(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Dc(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Dc(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Mc)).\u0275fac=function(t){return new(t||Uc)(Yt(Sc),Yt(Vc,8))},Uc.\u0275prov=ft({token:Uc,factory:Uc.\u0275fac}),Uc),Hc=((jc=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return _createClass(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=Pc(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Dc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+Dc(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(Mc)).\u0275fac=function(t){return new(t||jc)(Yt(Sc),Yt(Vc,8))},jc.\u0275prov=ft({token:jc,factory:jc.\u0275fac}),jc),zc=((Fc=function(){function t(e,n){var r=this;_classCallCheck(this,t),this._subject=new tl,this._urlChangeListeners=[],this._platformStrategy=e;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=Nc(Wc(i)),this._platformStrategy.onPopState((function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})}))}return _createClass(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+Dc(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Wc(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dc(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Dc(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach((function(n){return n(t,e)}))}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}()).\u0275fac=function(t){return new(t||Fc)(Yt(Mc),Yt(Sc))},Fc.normalizeQueryParams=Dc,Fc.joinWithSlash=Pc,Fc.stripTrailingSlash=Nc,Fc.\u0275prov=ft({factory:qc,token:Fc,providedIn:"root"}),Fc);function qc(){return new zc(Yt(Mc),Yt(Sc))}function Wc(t){return t.replace(/\/index.html$/,"")}var Gc=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}(),Kc=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}(),Qc=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),Xc=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}(),$c=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}(),Yc=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 Jc(t,e){return rh(Mu(t)[Fu.DateFormat],e)}function Zc(t,e){return rh(Mu(t)[Fu.TimeFormat],e)}function th(t,e){return rh(Mu(t)[Fu.DateTimeFormat],e)}function eh(t,e){var n=Mu(t),r=n[Fu.NumberSymbols][e];if(void 0===r){if(e===Yc.CurrencyDecimal)return n[Fu.NumberSymbols][Yc.Decimal];if(e===Yc.CurrencyGroup)return n[Fu.NumberSymbols][Yc.Group]}return r}function nh(t){if(!t[Fu.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[Fu.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function rh(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function ih(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var oh=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ah={},sh=/((?:[^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]*)/,uh=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}(),lh=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}(),ch=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 hh(t,e,n,r){var i=function(t){if(_h(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();var e,n=parseFloat(t);if(!isNaN(t-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var r=_slicedToArray(t.split("-").map((function(t){return+t})),3),i=r[0],o=r[1],a=r[2];return new Date(i,o-1,a)}if(e=t.match(oh))return function(t){var e=new Date(0),n=0,r=0,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]));var a=Number(t[4]||0)-n,s=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,a,s,u,l),e}(e)}var s=new Date(t);if(!_h(s))throw new Error('Unable to convert "'.concat(t,'" into a date'));return s}(t);e=function t(e,n){var r=function(t){return Mu(t)[Fu.LocaleId]}(e);if(ah[r]=ah[r]||{},ah[r][n])return ah[r][n];var i="";switch(n){case"shortDate":i=Jc(e,$c.Short);break;case"mediumDate":i=Jc(e,$c.Medium);break;case"longDate":i=Jc(e,$c.Long);break;case"fullDate":i=Jc(e,$c.Full);break;case"shortTime":i=Zc(e,$c.Short);break;case"mediumTime":i=Zc(e,$c.Medium);break;case"longTime":i=Zc(e,$c.Long);break;case"fullTime":i=Zc(e,$c.Full);break;case"short":var o=t(e,"shortTime"),a=t(e,"shortDate");i=dh(th(e,$c.Short),[o,a]);break;case"medium":var s=t(e,"mediumTime"),u=t(e,"mediumDate");i=dh(th(e,$c.Medium),[s,u]);break;case"long":var l=t(e,"longTime"),c=t(e,"longDate");i=dh(th(e,$c.Long),[l,c]);break;case"full":var h=t(e,"fullTime"),d=t(e,"fullDate");i=dh(th(e,$c.Full),[h,d])}return i&&(ah[r][n]=i),i}(n,e)||e;for(var o,a=[];e;){if(!(o=sh.exec(e))){a.push(e);break}var s=(a=a.concat(o.slice(1))).pop();if(!s)break;e=s}var u=i.getTimezoneOffset();r&&(u=bh(r,u),i=function(t,e,n){var r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(bh(e,r)-r))}(i,r));var l="";return a.forEach((function(t){var e=function(t){if(yh[t])return yh[t];var e;switch(t){case"G":case"GG":case"GGG":e=vh(ch.Eras,Xc.Abbreviated);break;case"GGGG":e=vh(ch.Eras,Xc.Wide);break;case"GGGGG":e=vh(ch.Eras,Xc.Narrow);break;case"y":e=ph(lh.FullYear,1,0,!1,!0);break;case"yy":e=ph(lh.FullYear,2,0,!0,!0);break;case"yyy":e=ph(lh.FullYear,3,0,!1,!0);break;case"yyyy":e=ph(lh.FullYear,4,0,!1,!0);break;case"M":case"L":e=ph(lh.Month,1,1);break;case"MM":case"LL":e=ph(lh.Month,2,1);break;case"MMM":e=vh(ch.Months,Xc.Abbreviated);break;case"MMMM":e=vh(ch.Months,Xc.Wide);break;case"MMMMM":e=vh(ch.Months,Xc.Narrow);break;case"LLL":e=vh(ch.Months,Xc.Abbreviated,Qc.Standalone);break;case"LLLL":e=vh(ch.Months,Xc.Wide,Qc.Standalone);break;case"LLLLL":e=vh(ch.Months,Xc.Narrow,Qc.Standalone);break;case"w":e=mh(1);break;case"ww":e=mh(2);break;case"W":e=mh(1,!0);break;case"d":e=ph(lh.Date,1);break;case"dd":e=ph(lh.Date,2);break;case"E":case"EE":case"EEE":e=vh(ch.Days,Xc.Abbreviated);break;case"EEEE":e=vh(ch.Days,Xc.Wide);break;case"EEEEE":e=vh(ch.Days,Xc.Narrow);break;case"EEEEEE":e=vh(ch.Days,Xc.Short);break;case"a":case"aa":case"aaa":e=vh(ch.DayPeriods,Xc.Abbreviated);break;case"aaaa":e=vh(ch.DayPeriods,Xc.Wide);break;case"aaaaa":e=vh(ch.DayPeriods,Xc.Narrow);break;case"b":case"bb":case"bbb":e=vh(ch.DayPeriods,Xc.Abbreviated,Qc.Standalone,!0);break;case"bbbb":e=vh(ch.DayPeriods,Xc.Wide,Qc.Standalone,!0);break;case"bbbbb":e=vh(ch.DayPeriods,Xc.Narrow,Qc.Standalone,!0);break;case"B":case"BB":case"BBB":e=vh(ch.DayPeriods,Xc.Abbreviated,Qc.Format,!0);break;case"BBBB":e=vh(ch.DayPeriods,Xc.Wide,Qc.Format,!0);break;case"BBBBB":e=vh(ch.DayPeriods,Xc.Narrow,Qc.Format,!0);break;case"h":e=ph(lh.Hours,1,-12);break;case"hh":e=ph(lh.Hours,2,-12);break;case"H":e=ph(lh.Hours,1);break;case"HH":e=ph(lh.Hours,2);break;case"m":e=ph(lh.Minutes,1);break;case"mm":e=ph(lh.Minutes,2);break;case"s":e=ph(lh.Seconds,1);break;case"ss":e=ph(lh.Seconds,2);break;case"S":e=ph(lh.FractionalSeconds,1);break;case"SS":e=ph(lh.FractionalSeconds,2);break;case"SSS":e=ph(lh.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=gh(uh.Short);break;case"ZZZZZ":e=gh(uh.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=gh(uh.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=gh(uh.Long);break;default:return null}return yh[t]=e,e}(t);l+=e?e(i,n,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}function dh(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function fh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="";(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,o=n));for(var a=String(t);a.length2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(o,a){var s,u=function(t,e){switch(t){case lh.FullYear:return e.getFullYear();case lh.Month:return e.getMonth();case lh.Date:return e.getDate();case lh.Hours:return e.getHours();case lh.Minutes:return e.getMinutes();case lh.Seconds:return e.getSeconds();case lh.FractionalSeconds:return e.getMilliseconds();case lh.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,o);if((n>0||u>-n)&&(u+=n),t===lh.Hours)0===u&&-12===n&&(u=12);else if(t===lh.FractionalSeconds)return s=e,fh(u,3).substr(0,s);var l=eh(a,Yc.MinusSign);return fh(u,e,l,r,i)}}function vh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qc.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,o){return function(t,e,n,r,i,o){switch(n){case ch.Months:return function(t,e,n){var r=Mu(t),i=rh([r[Fu.MonthsFormat],r[Fu.MonthsStandalone]],e);return rh(i,n)}(e,i,r)[t.getMonth()];case ch.Days:return function(t,e,n){var r=Mu(t),i=rh([r[Fu.DaysFormat],r[Fu.DaysStandalone]],e);return rh(i,n)}(e,i,r)[t.getDay()];case ch.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=Mu(t);return nh(e),(e[Fu.ExtraData][2]||[]).map((function(t){return"string"==typeof t?ih(t):[ih(t[0]),ih(t[1])]}))}(e),c=function(t,e,n){var r=Mu(t);nh(r);var i=rh([r[Fu.ExtraData][0],r[Fu.ExtraData][1]],e)||[];return rh(i,n)||[]}(e,i,r);if(l.forEach((function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,o=t[1],l=o.hours,h=o.minutes;a>=r&&s>=i&&(a0?Math.floor(i/60):Math.ceil(i/60);switch(t){case uh.Short:return(i>=0?"+":"")+fh(a,2,o)+fh(Math.abs(i%60),2,o);case uh.ShortGMT:return"GMT"+(i>=0?"+":"")+fh(a,1,o);case uh.Long:return"GMT"+(i>=0?"+":"")+fh(a,2,o)+":"+fh(Math.abs(i%60),2,o);case uh.Extended:return 0===r?"Z":(i>=0?"+":"")+fh(a,2,o)+":"+fh(Math.abs(i%60),2,o);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function mh(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();i=1+Math.floor((l+u)/7)}else{var c=(o=n.getFullYear(),a=new Date(o,0,1).getDay(),new Date(o,0,1+(a<=4?4:11)-a)),h=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-c.getTime();i=1+Math.round(h/6048e5)}return fh(i,t,eh(r,Yc.MinusSign))}}var yh={};function bh(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function _h(t){return t instanceof Date&&!isNaN(t.valueOf())}var wh=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function kh(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}var Ch,Sh=function t(){_classCallCheck(this,t)},Eh=((Ch=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).locale=t,r}return _createClass(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return Mu(t)[Fu.PluralCase]}(e||this.locale)(t)){case Kc.Zero:return"zero";case Kc.One:return"one";case Kc.Two:return"two";case Kc.Few:return"few";case Kc.Many:return"many";default:return"other"}}}]),n}(Sh)).\u0275fac=function(t){return new(t||Ch)(Yt(Al))},Ch.\u0275prov=ft({token:Ch,factory:Ch.\u0275fac}),Ch);function xh(t,e){e=encodeURIComponent(e);var n,r=_createForOfIteratorHelper(t.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),a=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),s=a[0],u=a[1];if(s.trim()===e)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}var Th,Ih,Oh,Ah=((Th=function(){function t(e,n,r,i){_classCallCheck(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Ct(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&(Ca(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}()).\u0275fac=function(t){return new(t||Th)(Da(mu),Da(yu),Da(Js),Da(nu))},Th.\u0275dir=ke({type:Th,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),Th),Ph=function(){function t(e,n,r,i){_classCallCheck(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return _createClass(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Nh=((Ih=function(){function t(e,n,r){_classCallCheck(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation((function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ph(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new Dh(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var u=new Dh(t,s);n.push(u)}}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:ct.Default,e=$o(!0);if(null!=e||t&ct.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},Jh.\u0275pipe=Ce({name:"async",type:Jh,pure:!1}),Jh),rd=((Yh=function(){function t(e){_classCallCheck(this,t),this.locale=e}return _createClass(t,[{key:"transform",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return hh(e,n,i||this.locale,r)}catch(o){throw Qh(t,o.message)}}}]),t}()).\u0275fac=function(t){return new(t||Yh)(Da(Al))},Yh.\u0275pipe=Ce({name:"date",type:Yh,pure:!0}),Yh),id=(($h=function(){function t(e){_classCallCheck(this,t),this._locale=e}return _createClass(t,[{key:"transform",value:function(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){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",u=!1;if(isFinite(t)){var l=function(t){var e,n,r,i,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(r=a.search(/e/i))>0?(n<0&&(n=r),n+=+a.slice(r+1),a=a.substring(0,r)):n<0&&(n=a.length),r=0;"0"===a.charAt(r);r++);if(r===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=Number(a.charAt(r))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(l=function(t){if(0===t.digits[0])return t;var 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}(l));var c=e.minInt,h=e.minFrac,d=e.maxFrac;if(o){var f=o.match(wh);if(null===f)throw new Error(o+" is not a valid digit info");var p=f[1],v=f[3],g=f[5];null!=p&&(c=kh(p)),null!=v&&(h=kh(v)),null!=g?d=kh(g):null!=v&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction (".concat(e,") is higher than the maximum (").concat(n,")."));var r=t.digits,i=r.length-t.integerLen,o=Math.min(Math.max(e,i),n),a=o+t.integerLen,s=r[a];if(a>0){r.splice(Math.max(t.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var c=0;c>a;c--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[a-1]++;for(;i=d?r.pop():h=!1),e>=10?1:0}),0);f&&(r.unshift(f),t.integerLen++)}(l,h,d);var m=l.digits,y=l.integerLen,b=l.exponent,_=[];for(u=m.every((function(t){return!t}));y0?_=m.splice(y,m.length):(_=m,m=[0]);var w=[];for(m.length>=e.lgSize&&w.unshift(m.splice(-e.lgSize,m.length).join(""));m.length>e.gSize;)w.unshift(m.splice(-e.gSize,m.length).join(""));m.length&&w.unshift(m.join("")),s=w.join(eh(n,r)),_.length&&(s+=eh(n,i)+_.join("")),b&&(s+=eh(n,Yc.Exponential)+"+"+b)}else s=eh(n,Yc.Infinity);return s=t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}(t,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),i=r[0],o=r[1],a=-1!==i.indexOf(".")?i.split("."):[i.substring(0,i.lastIndexOf("0")+1),i.substring(i.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},Rt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Rt.getAllAngularRootElements=function(){return t.getAllRootElements()},Rt.frameworkStabilizers||(Rt.frameworkStabilizers=[]),Rt.frameworkStabilizers.push((function(t){var e=Rt.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach((function(t){t.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?wc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,tc=e}}]),t}(),bd=new Ht("EventManagerPlugins"),_d=((ld=function(){function t(e,n){var r=this;_classCallCheck(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach((function(t){return t.manager=r})),this._plugins=e.slice().reverse()}return _createClass(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")})),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Bd.hasOwnProperty(e)&&(e=Bd[e]))}return Vd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ud.forEach((function(r){r!=n&&(0,Hd[r])(t)&&(e+=r+".")})),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded((function(){return e(i)}))}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(wd)).\u0275fac=function(t){return new(t||Nd)(Yt(Cc))},Nd.\u0275prov=ft({token:Nd,factory:Nd.\u0275fac}),Nd),qd=((Pd=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||Pd)},Pd.\u0275prov=ft({factory:function(){return Yt(Wd)},token:Pd,providedIn:"root"}),Pd),Wd=((Ad=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this))._doc=t,r}return _createClass(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Yr.NONE:return e;case Yr.HTML:return Sr(e,"HTML")?Cr(e):Xr(this._doc,String(e));case Yr.STYLE:return Sr(e,"Style")?Cr(e):function(t){if(!(t=String(t).trim()))return"";var e=t.match(Zr);return e&&Nr(e[1])===e[1]||t.match(Jr)&&function(t){for(var e=!0,n=!0,r=0;r1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Jd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Zd(t){return{type:6,styles:t,offset:null}}function tf(t,e,n){return{type:0,name:t,styles:e,options:n}}function ef(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function nf(t){Promise.resolve(null).then(t)}var rf=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+n}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;nf((function(){return t._onFinish()}))}},{key:"_onStart",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}(),of=function(){function t(e){var n=this;_classCallCheck(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var r=0,i=0,o=0,a=this.players.length;0==a?nf((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++r==a&&n._onFinish()})),t.onDestroy((function(){++i==a&&n._onDestroy()})),t.onStart((function(){++o==a&&n._onStart()}))})),this.totalTime=this.players.reduce((function(t,e){return Math.max(t,e.totalTime)}),0)}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach((function(t){return t.init()}))}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach((function(t){return t.play()}))}},{key:"pause",value:function(){this.players.forEach((function(t){return t.pause()}))}},{key:"restart",value:function(){this.players.forEach((function(t){return t.restart()}))}},{key:"finish",value:function(){this._onFinish(),this.players.forEach((function(t){return t.finish()}))}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach((function(t){return t.destroy()})),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach((function(t){return t.reset()})),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach((function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)}))}},{key:"getPosition",value:function(){var t=0;return this.players.forEach((function(e){var n=e.getPosition();t=Math.min(n,t)})),t}},{key:"beforeDestroy",value:function(){this.players.forEach((function(t){t.beforeDestroy&&t.beforeDestroy()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}}]),t}();function af(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function sf(t){switch(t.length){case 0:return new rf;case 1:return t[0];default:return new of(t)}}function uf(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,l=null;if(r.forEach((function(t){var n=t.offset,r=n==u,c=r&&l||{};Object.keys(t).forEach((function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case"!":s=i[n];break;case"*":s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s})),r||s.push(c),l=c,u=n})),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function lf(t,e,n,r){switch(e){case"start":t.onStart((function(){return r(n&&cf(n,"start",t))}));break;case"done":t.onDone((function(){return r(n&&cf(n,"done",t))}));break;case"destroy":t.onDestroy((function(){return r(n&&cf(n,"destroy",t))}))}}function cf(t,e,n){var r=n.totalTime,i=hf(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 hf(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function df(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function ff(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var pf=function(t,e){return!1},vf=function(t,e){return!1},gf=function(t,e,n){return[]},mf=af();(mf||"undefined"!=typeof Element)&&(pf=function(t,e){return t.contains(e)},vf=function(){if(mf||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:vf}(),gf=function(t,e,n){var r=[];if(n)r.push.apply(r,_toConsumableArray(t.querySelectorAll(e)));else{var i=t.querySelector(e);i&&r.push(i)}return r});var yf=null,bf=!1;function _f(t){yf||(yf=("undefined"!=typeof document?document.body:null)||{},bf=!!yf.style&&"WebkitAppearance"in yf.style);var e=!0;return yf.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in yf.style)&&bf)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in yf.style),e}var wf=vf,kf=pf,Cf=gf;function Sf(t){var e={};return Object.keys(t).forEach((function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]})),e}var Ef,xf=((Ef=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return _f(t)}},{key:"matchesElement",value:function(t,e){return wf(t,e)}},{key:"containsElement",value:function(t,e){return kf(t,e)}},{key:"query",value:function(t,e,n){return Cf(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return n||""}},{key:"animate",value:function(t,e,n,r,i){return arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&arguments[6],new rf(n,r)}}]),t}()).\u0275fac=function(t){return new(t||Ef)},Ef.\u0275prov=ft({token:Ef,factory:Ef.\u0275fac}),Ef),Tf=function(){var t=function t(){_classCallCheck(this,t)};return t.NOOP=new xf,t}();function If(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Of(parseFloat(e[1]),e[2])}function Of(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Af(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};r=Of(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Of(parseFloat(s),a[4]));var u=a[5];u&&(o=u)}else r=t;if(!n){var l=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(c,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:r,delay:i,easing:o}}(t,e,n)}function Pf(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}function Nf(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var r in t)n[r]=t[r];else Pf(t,n);return n}function Df(t,e,n){return n?e+":"+n+";":""}function Rf(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=i[1],a=i[2],s=i[3];e.push($f(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push($f(s,o))}(t,i,r)})):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:np(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return Gf(n,t,e)})),options:np(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map((function(t){e.currentTime=r;var o=Gf(n,t,e);return i=Math.max(i,e.currentTime),o}));return e.currentTime=i,{type:3,steps:o,options:np(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return rp(Af(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var i=rp(0,0,"");return i.dynamic=!0,i.strValue=r,i}return rp((n=n||Af(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Zd({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Zd(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)})):n.push(t.styles);var r=!1,i=null;return n.forEach((function(t){if(ep(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}})),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(r){if(n._driver.validateStyleProperty(r)){var a=e.collectedStyles[e.currentQuerySelector],s=a[r],u=!0;s&&(o!=i&&o>=s.startTime&&i<=s.endTime&&(e.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),u=!1),o=s.startTime),u&&(a[r]={startTime:o,endTime:i}),e.options&&function(t,e,n){var r=e.params||{},i=Uf(t);i.length&&i.forEach((function(t){r.hasOwnProperty(t)||n.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}(t[r],e.options,e.errors)}else e.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))}))}))}},{key:"visitKeyframes",value:function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,l=t.steps.map((function(t){var r=n._makeStyleAst(t,e),l=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(ep(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ep(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=l&&(i++,c=r.offset=l),s=s||c<0||c>1,a=a||c0&&i0?i==d?1:h*i:o[i],s=a*v;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)})),r}},{key:"visitReference",value:function(t,e){return{type:8,animation:Gf(this,Ff(t.animation),e),options:np(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:np(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:np(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=_slicedToArray(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(Yf,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=i[0],a=i[1];e.currentQuerySelector=n.length?n+" "+o:o,df(e.collectedStyles,e.currentQuerySelector,{});var s=Gf(this,Ff(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:np(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Af(t.timings,e.errors,!0);return{type:12,animation:Gf(this,Ff(t.animation),e),timings:n,options:null}}}]),t}(),tp=function t(e){_classCallCheck(this,t),this.errors=e,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 ep(t){return!Array.isArray(t)&&"object"==typeof t}function np(t){var e;return t?(t=Pf(t)).params&&(t.params=(e=t.params)?Pf(e):null):t={},t}function rp(t,e,n){return{duration:t,delay:e,easing:n}}function ip(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var op=function(){function t(){_classCallCheck(this,t),this._map=new Map}return _createClass(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,r=this._map.get(t);r||this._map.set(t,r=[]),(n=r).push.apply(n,_toConsumableArray(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),ap=new RegExp(":enter","g"),sp=new RegExp(":leave","g");function up(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new lp).buildKeyframes(t,e,n,r,i,o,a,s,u,l)}var lp=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,r,i,o,a,s,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new op;var c=new hp(t,e,u,r,i,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Gf(this,n,c);var h=c.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[ip(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?If(n.duration):null,o=null!=n.delay?If(n.delay):null;return 0!==i&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Gf(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=cp);var a=If(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return Gf(n,t,i)})),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?If(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Gf(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)})),r.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(i),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return Af(e.params?Vf(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var 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}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(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}},{key:"visitQuery",value:function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?If(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cp);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(u=s.currentTimeline),Gf(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;Gf(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}]),t}(),cp={},hp=function(){function t(e,n,r,i,o,a,s,u){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cp,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new dp(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=If(r.duration)),null!=r.delay&&(i.delay=If(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=Vf(o[t],a,n.errors))}))}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=cp,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var 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}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,r,i,o){var a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(ap,"."+this._enterClassName)).replace(sp,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,_toConsumableArray(s))}return i||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}},{key:"params",get:function(){return this.options.params}}]),t}(),dp=function(){function t(e,n,r,i){_classCallCheck(this,t),this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return _createClass(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){r[t]="*"})):Nf(t,!1,r)})),r}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=Vf(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:"*"),i._updateStyle(t,e)}))}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)}))}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach((function(o,a){var s=Nf(o,!0);Object.keys(s).forEach((function(t){var r=s[t];"!"==r?e.add(t):"*"==r&&n.add(t)})),r||(s.offset=a/t.duration),i.push(s)}));var o=e.size?Bf(e.values()):[],a=n.size?Bf(n.values()):[];if(r){var s=i[0],u=Pf(s);s.offset=0,u.offset=1,i=[s,u]}return ip(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),fp=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o,a,s){var u,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(u=e.call(this,t,r,s.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=l,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=Nf(t[0],!1);u.offset=0,o.push(u);var l=Nf(t[0],!1);l.offset=pp(s),o.push(l);for(var c=t.length-1,h=1;h<=c;h++){var d=Nf(t[h],!1);d.offset=pp((n+d.offset*r)/a),o.push(d)}r=a,n=0,i="",t=o}return ip(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(dp);function pp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var vp=function t(){_classCallCheck(this,t)},gp=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(t,e){return zf(t)}},{key:"normalizeStyleValue",value:function(t,e,n,r){var i="",o=n.toString().trim();if(mp[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+i}}]),n}(vp),mp=function(t){var e={};return t.forEach((function(t){return 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 yp(t,e,n,r,i,o,a,s,u,l,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:h,errors:d}}var bp={},_p=function(){function t(e,n,r){_classCallCheck(this,t),this._triggerName=e,this.ast=n,this._stateStyles=r}return _createClass(t,[{key:"match",value:function(t,e,n,r){return function(t,e,n,r,i){return t.some((function(t){return t(e,n,r,i)}))}(this.ast.matchers,t,e,n,r)}},{key:"buildStyles",value:function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,r,i,o,a,s,u,l){var c=[],h=this.ast.options&&this.ast.options.params||bp,d=this.buildStyles(n,a&&a.params||bp,c),f=s&&s.params||bp,p=this.buildStyles(r,f,c),v=new Set,g=new Map,m=new Map,y="void"===r,b={params:Object.assign(Object.assign({},h),f)},_=l?[]:up(t,e,this.ast.animation,i,o,d,p,b,u,c),w=0;if(_.forEach((function(t){w=Math.max(t.duration+t.delay,w)})),c.length)return yp(e,this._triggerName,n,r,y,d,p,[],[],g,m,w,c);_.forEach((function(t){var n=t.element,r=df(g,n,{});t.preStyleProps.forEach((function(t){return r[t]=!0}));var i=df(m,n,{});t.postStyleProps.forEach((function(t){return i[t]=!0})),n!==e&&v.add(n)}));var k=Bf(v.values());return yp(e,this._triggerName,n,r,y,d,p,_,k,g,m,w)}}]),t}(),wp=function(){function t(e,n){_classCallCheck(this,t),this.styles=e,this.defaultParams=n}return _createClass(t,[{key:"buildStyles",value:function(t,e){var n={},r=Pf(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(r[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach((function(t){var o=i[t];o.length>1&&(o=Vf(o,r,e)),n[t]=o}))}})),n}}]),t}(),kp=function(){function t(e,n){var r=this;_classCallCheck(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(t){r.states[t.name]=new wp(t.style,t.options&&t.options.params||{})})),Cp(this.states,"true","1"),Cp(this.states,"false","0"),n.transitions.forEach((function(t){r.transitionFactories.push(new _p(e,t,r.states))})),this.fallbackTransition=new _p(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(t,[{key:"matchTransition",value:function(t,e,n,r){return this.transitionFactories.find((function(i){return i.match(t,e,n,r)}))||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function Cp(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Sp=new op,Ep=function(){function t(e,n,r){_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return _createClass(t,[{key:"register",value:function(t,e){var n=[],r=Jf(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}},{key:"_buildPlayer",value:function(t,e,n){var r=t.element,i=uf(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=up(this._driver,e,a,"ng-enter","ng-leave",{},{},i,Sp,o)).forEach((function(t){var e=df(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=r._driver.computeStyle(e,n,"*")}))}));var u=sf(n.map((function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return r.destroy(t)})),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}},{key:"listen",value:function(t,e,n,r){var i=hf(e,"","","");return lf(this._getPlayer(t),n,i,r),function(){}}},{key:"command",value:function(t,e,n,r){if("register"!=n)if("create"!=n){var 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)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])}}]),t}(),xp=[],Tp={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ip={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Op=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,t),this.namespaceId=n;var r,i=e&&e.hasOwnProperty("value");if(this.value=null!=(r=i?e.value:e)?r:null,i){var o=Pf(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}}},{key:"params",get:function(){return this.options.params}}]),t}(),Ap=new Op("void"),Pp=function(){function t(e,n,r){_classCallCheck(this,t),this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,jp(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=df(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=df(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(jp(t,"ng-trigger"),jp(t,"ng-trigger-"+e),u[e]=Ap),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]}))}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Dp(this.id,e,t),s=this._engine.statesByElement.get(t);s||(jp(t,"ng-trigger"),jp(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new Op(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=Ap),"void"===l.value||u.value!==l.value){var c=df(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=o.matchTransition(u.value,l.value,t,l.params),d=!1;if(!h){if(!i)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:l,player:a,isFallbackTransition:d}),d||(jp(t,"ng-animate-queued"),a.onStart((function(){Up(t,"ng-animate-queued")}))),a.onDone((function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,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}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return r.destroy(e)}))}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),jp(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Up(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,r){if(Rp(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}},{key:"markElementAsRemoved",value:function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,r,i){return Rp(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}}},{key:"_buildInstruction",value:function(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)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise((function(e){if(t.players.length)return sf(t.players).onDone((function(){return e()}));e()}))}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Tp,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(e,n){return t._balanceNamespaceList(e,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;x--)this._namespaceList[x].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(S.push(e),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,o),f=k.get(o),v=p.get(o),g=n._buildInstruction(t,r,v,f,d);if(g.errors&&g.errors.length)E.push(g);else{if(d)return e.onStart((function(){return Lf(o,g.fromStyles)})),e.onDestroy((function(){return Mf(o,g.toStyles)})),void i.push(e);if(t.isFallbackTransition)return e.onStart((function(){return Lf(o,g.fromStyles)})),e.onDestroy((function(){return Mf(o,g.toStyles)})),void i.push(e);g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(o,g.timelines),a.push({instruction:g,player:e,element:o}),g.queriedElements.forEach((function(t){return df(s,t,[]).push(e)})),g.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}})),g.postStyleProps.forEach((function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))}))}}));if(E.length){var T=[];E.forEach((function(t){T.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return T.push("- ".concat(t,"\n"))}))})),S.forEach((function(t){return t.destroy()})),this.reportError(T)}var I=new Map,O=new Map;a.forEach((function(t){var e=t.element;r.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,I))})),i.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){df(I,e,[]).push(t),t.destroy()}))}));var A=g.filter((function(t){return Bp(t,u,l)})),P=new Map;Lp(P,this.driver,y,l,"*").forEach((function(t){Bp(t,u,l)&&A.push(t)}));var N=new Map;f.forEach((function(t,e){Lp(N,n.driver,new Set(t),u,"!")})),A.forEach((function(t){var e=P.get(t),n=N.get(t);P.set(t,Object.assign(Object.assign({},e),n))}));var D=[],R=[],M={};a.forEach((function(t){var e=t.element,a=t.player,s=t.instruction;if(r.has(e)){if(c.has(e))return a.onDestroy((function(){return Mf(e,s.toStyles)})),a.disabled=!0,a.overrideTotalTime(s.totalTime),void i.push(a);var u=M;if(O.size>1){for(var l=e,h=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}h.push(l)}h.forEach((function(t){return O.set(t,u)}))}var f=n._buildAnimation(a.namespaceId,s,I,o,N,P);if(a.setRealPlayer(f),u===M)D.push(a);else{var p=n.playersByElement.get(u);p&&p.length&&(a.parentPlayer=sf(p)),i.push(a)}}else Lf(e,s.fromStyles),a.onDestroy((function(){return Mf(e,s.toStyles)})),R.push(a),c.has(e)&&i.push(a)})),R.forEach((function(t){var e=o.get(t.element);if(e&&e.length){var n=sf(e);t.setRealPlayer(n)}})),i.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var L=0;L0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new rf(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}}]),t}(),Dp=function(){function t(e,n,r){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new rf,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return lf(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))}},{key:"_queueEvent",value:function(t,e){df(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Rp(t){return t&&1===t.nodeType}function Mp(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Lp(t,e,n,r,i){var o=[];n.forEach((function(t){return o.push(Mp(t))}));var a=[];r.forEach((function(n,r){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Ip,a.push(r))})),t.set(r,o)}));var s=0;return n.forEach((function(t){return Mp(t,o[s++])})),a}function Fp(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function jp(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Up(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Vp(t,e,n){sf(n).onDone((function(){return t.processLeaveNode(e)}))}function Bp(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach((function(t){return i.add(t)})):e.set(t,r),n.delete(t),!0}var Hp=function(){function t(e,n,r){var i=this;_classCallCheck(this,t),this.bodyNode=e,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Np(e,n,r),this._timelineEngine=new Ep(e,n,r),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return _createClass(t,[{key:"registerTrigger",value:function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],u=Jf(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'.concat(r,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));a=function(t,e){return new kp(t,e)}(r,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}},{key:"register",value:function(t,e){this._transitionEngine.register(t,e)}},{key:"destroy",value:function(t,e){this._transitionEngine.destroy(t,e)}},{key:"onInsert",value:function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}},{key:"onRemove",value:function(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}},{key:"disableAnimations",value:function(t,e){this._transitionEngine.markElementAsDisabled(t,e)}},{key:"process",value:function(t,e,n,r){if("@"==n.charAt(0)){var i=_slicedToArray(ff(n),2),o=i[0],a=i[1];this._timelineEngine.command(o,e,a,r)}else this._transitionEngine.trigger(t,e,n,r)}},{key:"listen",value:function(t,e,n,r,i){if("@"==n.charAt(0)){var o=_slicedToArray(ff(n),2),a=o[0],s=o[1];return this._timelineEngine.listen(a,e,s,i)}return this._transitionEngine.listen(t,e,n,r,i)}},{key:"flush",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function zp(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=Wp(e[0]),e.length>1&&(r=Wp(e[e.length-1]))):e&&(n=Wp(e)),n||r?new qp(t,n,r):null}var qp=function(){var t=function(){function t(e,n,r){_classCallCheck(this,t),this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return _createClass(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Mf(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Mf(this._element,this._initialStyles),this._endStyles&&(Mf(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Lf(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lf(this._element,this._endStyles),this._endStyles=null),Mf(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Wp(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Yp(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){var n=Zp(t,"").split(","),r=$p(n,e);r>=0&&(n.splice(r,1),Jp(t,"",n.join(",")))}(this._element,this._name))}}]),t}();function Qp(t,e,n){Jp(t,"PlayState",n,Xp(t,e))}function Xp(t,e){var n=Zp(t,"");return n.indexOf(",")>0?$p(n.split(","),e):$p([n],e)}function $p(t,e){for(var n=0;n=0)return n;return-1}function Yp(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Jp(t,e,n,r){var i="animation"+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function Zp(t,e){return t.style["animation"+e]}var tv=function(){function t(e,n,r,i,o,a,s,u){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return _createClass(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Kp(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:Kf(t.element,r))}))}this.currentSnapshot=e}}]),t}(),ev=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).element=t,i._startingStyles={},i.__initialized=!1,i._styles=Sf(r),i}return _createClass(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(e){t._startingStyles[e]=t.element.style[e]})),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(e){return t.element.style.setProperty(e,t._styles[e])})),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)})),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(rf),nv=function(){function t(){_classCallCheck(this,t),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return _f(t)}},{key:"matchesElement",value:function(t,e){return wf(t,e)}},{key:"containsElement",value:function(t,e){return kf(t,e)}},{key:"query",value:function(t,e,n){return Cf(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map((function(t){return Sf(t)}));var r="@keyframes ".concat(e," {\n"),i="";n.forEach((function(t){i=" ";var e=parseFloat(t.offset);r+="".concat(i).concat(100*e,"% {\n"),i+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(e,": ").concat(n,";\n"))}})),r+=i+"}\n"})),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof tv})),u={};qf(n,r)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=Wf(t,e,u));if(0==n)return new ev(t,l);var c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(h);var d=zp(t,e),f=new tv(t,e,c,n,r,i,l,d);return f.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),f}},{key:"_notifyFaultyScrubber",value:function(){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)}}]),t}(),rv=function(){function t(e,n,r,i){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return _createClass(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Kf(t.element,n))})),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),iv=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ov().toString()),this._cssKeyframesDriver=new nv}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return _f(t)}},{key:"matchesElement",value:function(t,e){return wf(t,e)}},{key:"containsElement",value:function(t,e){return kf(t,e)}},{key:"query",value:function(t,e,n){return Cf(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},l=o.filter((function(t){return t instanceof rv}));qf(n,r)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var c=zp(t,e=Wf(t,e=e.map((function(t){return Nf(t,!1)})),u));return new rv(t,e,s,c)}}]),t}();function ov(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var av,sv=((av=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this))._nextAnimationId=0,i._renderer=t.createRenderer(r.body,{id:"0",encapsulation:de.None,styles:[],data:{animation:[]}}),i}return _createClass(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Jd(t):t;return cv(this._renderer,null,e,"register",[n]),new uv(e,this._renderer)}}]),n}(Xd)).\u0275fac=function(t){return new(t||av)(Yt(tu),Yt(Cc))},av.\u0275prov=ft({token:av,factory:av.\u0275fac}),av),uv=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this))._id=t,i._renderer=r,i}return _createClass(n,[{key:"create",value:function(t,e){return new lv(this._id,t,e||{},this._renderer)}}]),n}(function(){return function t(){_classCallCheck(this,t)}}()),lv=function(){function t(e,n,r,i){_classCallCheck(this,t),this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return _createClass(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0&&tt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return Bv(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return Bv(t.value)||qv.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(Bv(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Bv(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(Gv);return 0==e.length?null:function(t){return Qv(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(Gv);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach((function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)}))}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}()).\u0275fac=function(t){return new(t||Zv)},Zv.\u0275prov=ft({token:Zv,factory:Zv.\u0275fac}),Zv),sg=((Jv=function(){function t(e,n,r,i){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Fv),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){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 ')}}]),t}()).\u0275fac=function(t){return new(t||Jv)(Da(nu),Da(Js),Da(ag),Da(fa))},Jv.\u0275dir=ke({type:Jv,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Ga("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Qs([og])]}),Jv),ug={provide:Ev,useExisting:xt((function(){return lg})),multi:!0},lg=((tg=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}()).\u0275fac=function(t){return new(t||tg)(Da(nu),Da(Js))},tg.\u0275dir=ke({type:tg,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Ga("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[Qs([ug])]}),tg),cg='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',hg='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',dg='\n
\n
\n \n
\n
',fg=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"controlParentException",value:function(){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 "+cg)}},{key:"ngModelGroupException",value:function(){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 '.concat(hg,"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ").concat(dg))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+cg)}},{key:"groupParentException",value:function(){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 "+hg)}},{key:"arrayParentException",value:function(){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 });')}},{key:"disabledAttrWarning",value:function(){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 ")}},{key:"ngModelWarning",value:function(t){console.warn("\n It looks like you're using ngModel on the same form field as ".concat(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/").concat("formControl"===t?"FormControlDirective":"FormControlName","#use-with-ngmodel\n "))}}]),t}(),pg={provide:Ev,useExisting:xt((function(){return vg})),multi:!0},vg=((eg=function(){function t(e,n){_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=wa}return _createClass(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function Sg(t){return null!=t?Wv.compose(t.map(Xv)):null}function Eg(t){return null!=t?Wv.composeAsync(t.map($v)):null}function xg(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!wa(e,n.currentValue)}var Tg=[Tv,lg,ig,vg,mg,sg];function Ig(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function Og(t,e){if(!e)return null;Array.isArray(e)||Cg(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return e.forEach((function(e){var o;e.constructor===Av?n=e:(o=e,Tg.some((function(t){return o.constructor===t}))?(r&&Cg(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Cg(t,"More than one custom value accessor matches form control with"),i=e))})),i||r||n||(Cg(t,"No valid value accessor for form control with"),null)}function Ag(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Pg(t,e,n,r){Ir()&&"never"!==r&&((null!==r&&"once"!==r||e._ngModelWarningSentOnce)&&("always"!==r||n._ngModelWarningSent)||(fg.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function Ng(t){var e=Rg(t)?t.validators:t;return Array.isArray(e)?Sg(e):e||null}function Dg(t,e){var n=Rg(e)?e.asyncValidators:t;return Array.isArray(n)?Eg(n):n||null}function Rg(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var Mg,Lg,Fg,jg,Ug,Vg,Bg,Hg,zg,qg=function(){function t(e,n){_classCallCheck(this,t),this.validator=e,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(t,[{key:"setValidators",value:function(t){this.validator=Ng(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=Dg(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(t){t.markAsUntouched({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(t){t.markAsPristine({onlySelf:!0})})),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(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((function(t){return t(!0)}))}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(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((function(t){return t(!1)}))}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(e){return e._updateTreeValidity(t)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=Kv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return e.setErrors(n,{emitEvent:t})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(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;var r=t;return e.forEach((function(t){r=r instanceof Gg?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Kg&&r.at(t)||null})),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new tl,this.statusChanges=new tl}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls((function(e){return e.status===t}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(t){return t.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(t){return t.touched}))}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){Rg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),Wg=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this,Ng(i),Dg(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),t._initObservables(),t}return _createClass(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(t){return t(e.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(qg),Gg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,Ng(r),Dg(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach((function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach((function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof Wg?e.value:e.getRawValue(),t}))}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,(function(t,e){return!!e._syncPendingControls()||t}));return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach((function(n){return t(e.controls[n],n)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){var e=this,n=!1;return this._forEachChild((function(r,i){n=n||e.contains(i)&&t(r)})),n}},{key:"_reduceValue",value:function(){var t=this;return this._reduceChildren({},(function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e}))}},{key:"_reduceChildren",value:function(t,e){var n=t;return this._forEachChild((function(t,r){n=e(n,t,r)})),n}},{key:"_allControlsDisabled",value:function(){for(var t=0,e=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(qg),Kg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,Ng(r),Dg(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange((function(){})),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach((function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach((function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map((function(t){return t instanceof Wg?t.value:t.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce((function(t,e){return!!e._syncPendingControls()||t}),!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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)}},{key:"_forEachChild",value:function(t){this.controls.forEach((function(e,n){t(e,n)}))}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter((function(e){return e.enabled||t.disabled})).map((function(t){return t.value}))}},{key:"_anyControls",value:function(t){return this.controls.some((function(e){return e.enabled&&t(e)}))}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild((function(e){return t._registerControl(e)}))}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var t,e=_createForOfIteratorHelper(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(qg),Qg={provide:Nv,useExisting:xt((function(){return $g}))},Xg=Promise.resolve(null),$g=((Lg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new tl,i.form=new Gg({},Sg(t),Eg(r)),i}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;Xg.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),bg(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)}))}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;Xg.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),Ag(e._directives,t)}))}},{key:"addFormGroup",value:function(t){var e=this;Xg.then((function(){var n=e._findContainer(t.path),r=new Gg({});wg(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;Xg.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)}))}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;Xg.then((function(){n.form.get(t.path).setValue(e)}))}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Ig(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(Nv)).\u0275fac=function(t){return new(t||Lg)(Da(Hv,10),Da(zv,10))},Lg.\u0275dir=ke({type:Lg,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Ga("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qs([Qg]),Ns]}),Lg),Yg=((Mg=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return yg(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Sg(this._validators)}},{key:"asyncValidator",get:function(){return Eg(this._asyncValidators)}}]),n}(Nv)).\u0275fac=function(t){return Jg(t||Mg)},Mg.\u0275dir=ke({type:Mg,features:[Ns]}),Mg),Jg=dr(Yg),Zg=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"modelParentException",value:function(){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 '.concat(cg,'\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 '))}},{key:"formGroupNameException",value:function(){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 ".concat(hg,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(dg))}},{key:"missingNameException",value:function(){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: ')}},{key:"modelGroupParentException",value:function(){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 ".concat(hg,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(dg))}}]),t}(),tm={provide:Nv,useExisting:xt((function(){return em}))},em=((Fg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof $g||Zg.modelGroupParentException()}}]),n}(Yg)).\u0275fac=function(t){return new(t||Fg)(Da(Nv,5),Da(Hv,10),Da(zv,10))},Fg.\u0275dir=ke({type:Fg,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Qs([tm]),Ns]}),Fg),nm={provide:Fv,useExisting:xt((function(){return im}))},rm=Promise.resolve(null),im=((Ug=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this)).control=new Wg,a._registered=!1,a.update=new tl,a._parent=t,a._rawValidators=r||[],a._rawAsyncValidators=i||[],a.valueAccessor=Og(_assertThisInitialized(a),o),a}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),xg(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){bg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof em)&&this._parent instanceof Yg?Zg.formGroupNameException():this._parent instanceof em||this._parent instanceof $g||Zg.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Zg.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;rm.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;rm.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))}},{key:"path",get:function(){return this._parent?yg(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Sg(this._rawValidators)}},{key:"asyncValidator",get:function(){return Eg(this._rawAsyncValidators)}}]),n}(Fv)).\u0275fac=function(t){return new(t||Ug)(Da(Nv,9),Da(Hv,10),Da(zv,10),Da(Ev,10))},Ug.\u0275dir=ke({type:Ug,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qs([nm]),Ns,js]}),Ug),om=((jg=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||jg)},jg.\u0275dir=ke({type:jg,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),jg),am=new Ht("NgModelWithFormControlWarning"),sm={provide:Fv,useExisting:xt((function(){return um}))},um=((Vg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this))._ngModelWarningConfig=o,a.update=new tl,a._ngModelWarningSent=!1,a._rawValidators=t||[],a._rawAsyncValidators=r||[],a.valueAccessor=Og(_assertThisInitialized(a),i),a}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(bg(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),xg(t,this.viewModel)&&(Pg("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){fg.disabledAttrWarning()}},{key:"path",get:function(){return[]}},{key:"validator",get:function(){return Sg(this._rawValidators)}},{key:"asyncValidator",get:function(){return Eg(this._rawAsyncValidators)}},{key:"control",get:function(){return this.form}}]),n}(Fv)).\u0275fac=function(t){return new(t||Vg)(Da(Hv,10),Da(zv,10),Da(Ev,10),Da(am,8))},Vg.\u0275dir=ke({type:Vg,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Qs([sm]),Ns,js]}),Vg._ngModelWarningSentOnce=!1,Vg),lm={provide:Nv,useExisting:xt((function(){return cm}))},cm=((Bg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this))._validators=t,i._asyncValidators=r,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new tl,i}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return bg(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){Ag(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);wg(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);wg(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,Ig(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return kg(e)})),e.valueAccessor.registerOnTouched((function(){return kg(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&bg(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var t=Sg(this._validators);this.form.validator=Wv.compose([this.form.validator,t]);var e=Eg(this._asyncValidators);this.form.asyncValidator=Wv.composeAsync([this.form.asyncValidator,e])}},{key:"_checkFormPresent",value:function(){this.form||fg.missingFormException()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(Nv)).\u0275fac=function(t){return new(t||Bg)(Da(Hv,10),Da(zv,10))},Bg.\u0275dir=ke({type:Bg,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Ga("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Qs([lm]),Ns,js]}),Bg),hm={provide:Nv,useExisting:xt((function(){return dm}))},dm=((Hg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){vm(this._parent)&&fg.groupParentException()}}]),n}(Yg)).\u0275fac=function(t){return new(t||Hg)(Da(Nv,13),Da(Hv,10),Da(zv,10))},Hg.\u0275dir=ke({type:Hg,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Qs([hm]),Ns]}),Hg),fm={provide:Nv,useExisting:xt((function(){return pm}))},pm=((zg=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this))._parent=t,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"_checkParentType",value:function(){vm(this._parent)&&fg.arrayParentException()}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return yg(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return Sg(this._validators)}},{key:"asyncValidator",get:function(){return Eg(this._asyncValidators)}}]),n}(Nv)).\u0275fac=function(t){return new(t||zg)(Da(Nv,13),Da(Hv,10),Da(zv,10))},zg.\u0275dir=ke({type:zg,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Qs([fm]),Ns]}),zg);function vm(t){return!(t instanceof dm||t instanceof cm||t instanceof pm)}var gm,mm,ym,bm,_m,wm={provide:Fv,useExisting:xt((function(){return km}))},km=((_m=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o,a){var s;return _classCallCheck(this,n),(s=e.call(this))._ngModelWarningConfig=a,s._added=!1,s.update=new tl,s._ngModelWarningSent=!1,s._parent=t,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=Og(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._added||this._setUpControl(),xg(t,this.viewModel)&&(Pg("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_checkParentType",value:function(){!(this._parent instanceof dm)&&this._parent instanceof Yg?fg.ngModelGroupException():this._parent instanceof dm||this._parent instanceof cm||this._parent instanceof pm||fg.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}},{key:"isDisabled",set:function(t){fg.disabledAttrWarning()}},{key:"path",get:function(){return yg(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Sg(this._rawValidators)}},{key:"asyncValidator",get:function(){return Eg(this._rawAsyncValidators)}}]),n}(Fv)).\u0275fac=function(t){return new(t||_m)(Da(Nv,13),Da(Hv,10),Da(zv,10),Da(Ev,10),Da(am,8))},_m.\u0275dir=ke({type:_m,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Qs([wm]),Ns,js]}),_m._ngModelWarningSentOnce=!1,_m),Cm=((bm=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:bm}),bm.\u0275inj=pt({factory:function(t){return new(t||bm)}}),bm),Sm=((ym=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),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})}},{key:"control",value:function(t,e,n){return new Wg(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,i=t.map((function(t){return r._createControl(t)}));return new Kg(i,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach((function(r){n[r]=e._createControl(t[r])})),n}},{key:"_createControl",value:function(t){return t instanceof Wg||t instanceof Gg||t instanceof Kg?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}()).\u0275fac=function(t){return new(t||ym)},ym.\u0275prov=ft({token:ym,factory:ym.\u0275fac}),ym),Em=((mm=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:mm}),mm.\u0275inj=pt({factory:function(t){return new(t||mm)},providers:[ag],imports:[Cm]}),mm),xm=((gm=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:am,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}()).\u0275mod=_e({type:gm}),gm.\u0275inj=pt({factory:function(t){return new(t||gm)},providers:[Sm,ag],imports:[Cm]}),gm);function Tm(){for(var t=arguments.length,e=new Array(t),n=0;n1?Array.prototype.slice.call(arguments):t)}),r,n)}))}function Om(){}function Am(t,e,n){return function(r){return r.lift(new Pm(t,e,n))}}var Pm=function(){function t(e,n,r){_classCallCheck(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Nm(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),Nm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t))._tapNext=Om,s._tapError=Om,s._tapComplete=Om,s._tapError=o||Om,s._tapComplete=a||Om,r(i)?(s._context=_assertThisInitialized(s),s._tapNext=i):i&&(s._context=i,s._tapNext=i.next||Om,s._tapError=i.error||Om,s._tapComplete=i.complete||Om),s}return _createClass(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(v);function Dm(t,e){return function(n){return n.lift(new Rm(t,e))}}var Rm=function(){function t(e,n){_classCallCheck(this,t),this.predicate=e,this.thisArg=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Mm(t,this.predicate,this.thisArg))}}]),t}(),Mm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t)).predicate=r,o.thisArg=i,o.count=0,o}return _createClass(n,[{key:"_next",value:function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}]),n}(v),Lm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i.pending=!1,i}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var 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}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var 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}},{key:"_unsubscribe",value:function(){var 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}}]),n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"schedule",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this}}]),n}(d)),Fm=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;_classCallCheck(this,t),this.SchedulerAction=e,this.now=n}return _createClass(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),jm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fm.now;return _classCallCheck(this,n),(r=e.call(this,t,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():i()}))).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,r):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}]),n}(Fm),Um=new jm(Lm),Vm=function(){function t(e,n){_classCallCheck(this,t),this.period=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Bm(t,this.period,this.scheduler))}}]),t}(),Bm=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t)).period=r,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(Hm,r,{subscriber:_assertThisInitialized(o),period:r})),o}return _createClass(n,[{key:"_next",value:function(t){this.lastValue=t,this.hasValue=!0}},{key:"notifyNext",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}]),n}(v);function Hm(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function zm(t,e,n,r){var i=window&&!!window.document&&window.document.documentElement,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))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return o}function qm(t){return t&&!t.firstChange}var Wm={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},Gm={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"},Km=function(){function t(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];_classCallCheck(this,t),this.vertical=e,this.propsMap=e?Wm:Gm}return _createClass(t,[{key:"clientHeightKey",value:function(){return this.propsMap.clientHeight}},{key:"offsetHeightKey",value:function(){return this.propsMap.offsetHeight}},{key:"scrollHeightKey",value:function(){return this.propsMap.scrollHeight}},{key:"pageYOffsetKey",value:function(){return this.propsMap.pageYOffset}},{key:"offsetTopKey",value:function(){return this.propsMap.offsetTop}},{key:"scrollTopKey",value:function(){return this.propsMap.scrollTop}},{key:"topKey",value:function(){return this.propsMap.top}}]),t}();function Qm(t){return["Window","global"].some((function(e){return Object.prototype.toString.call(t).includes(e)}))}function Xm(t,e){return t?e.document.documentElement:null}function $m(t,e){var n,r,i,o,a=(r=(n=e).container,i=n.isWindow,o=Ym(n.axis),Jm(r,i,o.offsetHeightKey,o.clientHeightKey));return e.isWindow?function(t,e,n){var r=n.axis,i=n.container,o=n.isWindow,a=Ym(r),s=a.offsetHeightKey,u=a.clientHeightKey,l=t+Zm(Xm(o,i),r,o),c=Jm(e.nativeElement,o,s,u);return{height:t,scrolled:l,totalToScroll:function(t,e,n){var r=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[r]+Zm(t,e,n)}(e.nativeElement,r,o)+c,isWindow:o}}(a,t,e):function(t,e,n){var r=n.axis,i=n.container;return{height:t,scrolled:i[r.scrollTopKey()],totalToScroll:i[r.scrollHeightKey()],isWindow:!1}}(a,0,e)}function Ym(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function Jm(t,e,n,r){if(isNaN(t[n])){var i=Xm(e,t);return i?i[r]:0}return t[n]}function Zm(t,e,n){var r=e.pageYOffsetKey(),i=e.scrollTopKey(),o=e.offsetTopKey();return isNaN(window.pageYOffset)?Xm(n,t)[i]:t.ownerDocument?t.ownerDocument.defaultView[r]:t[o]}function ty(t,e,n){var r,i;if(t.totalToScroll<=0)return!1;var 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}var ey=function(){function t(e){var n=e.totalToScroll;_classCallCheck(this,t),this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=n}return _createClass(t,[{key:"updateScrollPosition",value:function(t){return this.lastScrollPosition=t}},{key:"updateTotalToScroll",value:function(t){this.lastTotalToScroll!==t&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=t)}},{key:"updateScroll",value:function(t,e){this.updateScrollPosition(t),this.updateTotalToScroll(e)}},{key:"updateTriggeredFlag",value:function(t,e){e?this.triggered.down=t:this.triggered.up=t}},{key:"isTriggeredScroll",value:function(t,e){return e?this.triggered.down===t:this.triggered.up===t}}]),t}();function ny(t){return{type:t.scrollDown?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:t.stats.scrolled}}}var ry,iy,oy=((iy=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this.zone=n,this.scrolled=new tl,this.scrolledUp=new tl,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}return _createClass(t,[{key:"ngAfterViewInit",value:function(){this.infiniteScrollDisabled||this.setup()}},{key:"ngOnChanges",value:function(t){var e=t.infiniteScrollContainer,n=t.infiniteScrollDisabled,r=t.infiniteScrollDistance,i=qm(e),o=qm(n),a=qm(r),s=!o&&!this.infiniteScrollDisabled||o&&!n.currentValue||a;(i||o||a)&&(this.destroyScroller(),s&&this.setup())}},{key:"setup",value:function(){var t=this;"undefined"!=typeof window&&this.zone.runOutsideAngular((function(){var e,n,r,i,o,a,s,u,l,c,h,d;t.disposeScroller=(e={fromRoot:t.fromRoot,alwaysCallback:t.alwaysCallback,disable:t.infiniteScrollDisabled,downDistance:t.infiniteScrollDistance,element:t.element,horizontal:t.horizontal,scrollContainer:t.infiniteScrollContainer,scrollWindow:t.scrollWindow,throttle:t.infiniteScrollThrottle,upDistance:t.infiniteScrollUpDistance},a=e.scrollContainer,s=e.scrollWindow,u=e.element,l=e.fromRoot,c=function(t,e){var n=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return Object.assign(Object.assign({},t),{container:n})}({axis:(n={axis:new Km(!e.horizontal),windowElement:zm(a,s,u,l)}).axis,isWindow:Qm(r=n.windowElement)},r),h=new ey({totalToScroll:$m(u,c)}),d={up:e.upDistance,down:e.downDistance},(i={container:c.container,throttle:e.throttle},o=Im(i.container,"scroll"),i.throttle&&(o=o.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Um;return function(n){return n.lift(new Vm(t,e))}}(i.throttle))),o).pipe(q((function(){return Tm($m(u,c))})),U((function(t){return function(t,e,n){var r=function(t,e,n){var r=function(t,e){return t=2&&(n=!0),function(r){return r.lift(new fy(t,e,n))}}var fy=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new py(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),py=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return _createClass(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(v),vy=new k((function(t){return t.complete()}));function gy(t){return t?function(t){return new k((function(e){return t.schedule((function(){return e.complete()}))}))}(t):vy}function my(t,e){return new k(e?function(n){return e.schedule(yy,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function yy(t){var e=t.error;t.subscriber.error(e)}var by=function(){var t=function(){function t(e,n,r){_classCallCheck(this,t),this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}return _createClass(t,[{key:"observe",value:function(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()}}},{key:"do",value:function(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()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Tm(this.value);case"E":return my(this.error);case"C":return gy()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function _y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new wy(t,e))}}var wy=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,t),this.scheduler=e,this.delay=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ky(t,this.scheduler,this.delay))}}]),t}(),ky=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(i=e.call(this,t)).scheduler=r,i.delay=o,i}return _createClass(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new Cy(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(by.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(by.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(by.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(v),Cy=function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n},Sy=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i}return _createClass(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}},{key:"execute",value:function(t,e){return e>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,t,e):this._execute(t,e)}},{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0||null===r&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,r):t.flush(this)}}]),n}(Lm),Ey=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return n}(jm))(Sy),xy=1,Ty=Promise.resolve(),Iy={};function Oy(t){return t in Iy&&(delete Iy[t],!0)}var Ay=function(t){var e=xy++;return Iy[e]=!0,Ty.then((function(){return Oy(e)&&t()})),e},Py=function(t){Oy(t)},Ny=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i}return _createClass(n,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=Ay(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(Py(e),t.scheduled=void 0)}}]),n}(Lm),Dy=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r=0}var My=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dy;return _classCallCheck(this,n),(r=e.call(this)).source=t,r.delayTime=i,r.scheduler=o,(!Ry(i)||i<0)&&(r.delayTime=0),o&&"function"==typeof o.schedule||(r.scheduler=Dy),r}return _createClass(n,[{key:"_subscribe",value:function(t){return this.scheduler.schedule(n.dispatch,this.delayTime,{source:this.source,subscriber:t})}}],[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Dy;return new n(t,e,r)}},{key:"dispatch",value:function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))}}]),n}(k),Ly=function(){function t(e,n){_classCallCheck(this,t),this.scheduler=e,this.delay=n}return _createClass(t,[{key:"call",value:function(t,e){return new My(e,this.delay,this.scheduler).subscribe(t)}}]),t}(),Fy=n("Wcq6");function jy(){}var Uy=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ey;_classCallCheck(this,t),this.zone=e,this.delegate=n}return _createClass(t,[{key:"now",value:function(){return this.delegate.now()}},{key:"schedule",value:function(t,e,n){var r=this.zone;return this.delegate.schedule((function(e){var n=this;r.runGuarded((function(){t.apply(n,[e])}))}),e,n)}}]),t}(),Vy=function(){function t(e){_classCallCheck(this,t),this.zone=e,this.task=null}return _createClass(t,[{key:"call",value:function(t,e){var n=this.unscheduleTask.bind(this);return this.task=this.zone.run((function(){return Zone.current.scheduleMacroTask("firebaseZoneBlock",jy,{},jy,jy)})),e.pipe(Am({next:n,complete:n,error:n})).subscribe(t).add(n)}},{key:"unscheduleTask",value:function(){var t=this;setTimeout((function(){null!=t.task&&"scheduled"===t.task.state&&(t.task.invoke(),t.task=null)}),10)}}]),t}(),By=function t(e){_classCallCheck(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular((function(){return new Uy(Zone.current)})),this.insideAngular=e.run((function(){return new Uy(Zone.current,Um)}))};function Hy(t){return function(e){return(e=e.lift(new Vy(t.ngZone))).pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new Ly(t,e))}}(t.outsideAngular),_y(t.insideAngular))}}var zy=["ngOnDestroy"],qy=new Ht("angularfire2.app.options"),Wy=new Ht("angularfire2.app.nameOrConfig"),Gy=new ou("6.0.2");function Ky(t,e,n){var r="object"==typeof n&&n||{};return r.name=r.name||"string"==typeof n&&n||"[DEFAULT]",Fy.apps.filter((function(t){return t&&t.name===r.name}))[0]||e.runOutsideAngular((function(){return Object(Fy.initializeApp)(t,r)}))}var Qy,Xy={provide:function t(){_classCallCheck(this,t)},useFactory:Ky,deps:[qy,zl,[new st,Wy]]},$y=((Qy=function(){function t(e){_classCallCheck(this,t),Object(Fy.registerVersion)("angularfire",Gy.full,e.toString()),Object(Fy.registerVersion)("angular",au.full)}return _createClass(t,null,[{key:"initializeApp",value:function(e,n){return{ngModule:t,providers:[{provide:qy,useValue:e},{provide:Wy,useValue:n}]}}}]),t}()).\u0275mod=_e({type:Qy}),Qy.\u0275inj=pt({factory:function(t){return new(t||Qy)(Yt(Tl))},providers:[Xy]}),Qy),Yy=n("wj3C"),Jy=n.n(Yy),Zy=n("6Joi");function tb(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Um;return new k((function(n){var r;return null!=e?e.schedule((function(){r=t.onSnapshot(n)})):r=t.onSnapshot(n),function(){null!=r&&r()}}))}(t,e)}function eb(t,e){return tb(t,e).pipe(U((function(t){return{payload:t,type:"query"}})))}function nb(t,e){return eb(t,e).pipe(U((function(t){return t.payload.docChanges().map((function(t){return{type:t.type,payload:t}}))})))}function rb(t,e,n){return eb(t,n).pipe(U((function(t){return t.payload.docChanges()})),dy((function(t,n){return function(t,e,n){return e.forEach((function(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)}),[]),U((function(t){return t.map((function(t){return{type:t.type,payload:t}}))})))}function ib(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}var ob=function(){function t(e,n,r){_classCallCheck(this,t),this.ref=e,this.query=n,this.afs=r}return _createClass(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?nb(this.query,this.afs.schedulers.outsideAngular).pipe(U((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})),Dm((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):nb(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(dy((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=ib(t);return rb(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return eb(this.query,this.afs.schedulers.outsideAngular).pipe(U((function(e){return e.payload.docs.map((function(e){return t.idField?Object.assign(Object.assign({},e.data()),_defineProperty({},t.idField,e.id)):e.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return z(this.query.get(t)).pipe(_y(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new ab(this.ref.doc(t),this.afs)}}]),t}(),ab=function(){function t(e,n){_classCallCheck(this,t),this.ref=e,this.afs=n}return _createClass(t,[{key:"set",value:function(t,e){return this.ref.set(t,e)}},{key:"update",value:function(t){return this.ref.update(t)}},{key:"delete",value:function(){return this.ref.delete()}},{key:"collection",value:function(t,e){var n=hb(this.ref.collection(t),e),r=n.ref,i=n.query;return new ob(r,i,this.afs)}},{key:"snapshotChanges",value:function(){return tb(this.ref,this.afs.schedulers.outsideAngular).pipe(U((function(t){return{payload:t,type:"value"}}))).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return this.snapshotChanges().pipe(U((function(t){return t.payload.data()})))}},{key:"get",value:function(t){return z(this.ref.get(t)).pipe(_y(this.afs.schedulers.insideAngular))}}]),t}(),sb=function(){function t(e,n){_classCallCheck(this,t),this.query=e,this.afs=n}return _createClass(t,[{key:"stateChanges",value:function(t){return t&&0!==t.length?nb(this.query,this.afs.schedulers.outsideAngular).pipe(U((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})),Dm((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):nb(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(dy((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=ib(t);return rb(this.query,e,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){return eb(this.query,this.afs.schedulers.outsideAngular).pipe(U((function(t){return t.payload.docs.map((function(t){return t.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return z(this.query.get(t)).pipe(_y(this.afs.schedulers.insideAngular))}}]),t}(),ub=new Ht("angularfire2.enableFirestorePersistence"),lb=new Ht("angularfire2.firestore.persistenceSettings"),cb=new Ht("angularfire2.firestore.settings");function hb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return{query:e(t),ref:t}}var db,fb,pb=((fb=function(){function t(e,n,r,i,o,a,s){var u=this;_classCallCheck(this,t),this.schedulers=new By(a),this.keepUnstableUntilFirst=Hy(this.schedulers),this.firestore=a.runOutsideAngular((function(){var t=Ky(e,a,n);Zy.registerFirestore&&Object(Zy.registerFirestore)(Jy.a);var r=t.firestore();return i&&r.settings(i),r})),this.persistenceEnabled$=r&&!function(t){return"server"===t}(o)?a.runOutsideAngular((function(){try{return z(u.firestore.enablePersistence(s||void 0).then((function(){return!0}),(function(){return!1})))}catch(t){return Tm(!1)}})):Tm(!1)}return _createClass(t,[{key:"collection",value:function(t,e){var n=hb("string"==typeof t?this.firestore.collection(t):t,e),r=n.ref,i=n.query,o=this.schedulers.ngZone.run((function(){return r}));return new ob(o,i,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},r=this.firestore.collectionGroup(t);return new sb(n(r),this)}},{key:"doc",value:function(t){var e;e="string"==typeof t?this.firestore.doc(t):t;var n=this.schedulers.ngZone.run((function(){return e}));return new ab(n,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),t}()).\u0275fac=function(t){return new(t||fb)(Yt(qy),Yt(Wy,8),Yt(ub,8),Yt(cb,8),Yt(Tl),Yt(zl),Yt(lb,8))},fb.\u0275prov=ft({factory:function(){return new fb(Yt(qy),Yt(Wy,8),Yt(ub,8),Yt(cb,8),Yt(Tl),Yt(zl),Yt(lb,8))},token:fb,providedIn:"any"}),fb),vb=((db=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:ub,useValue:!0},{provide:lb,useValue:e}]}}}]),t}()).\u0275mod=_e({type:db}),db.\u0275inj=pt({factory:function(t){return new(t||db)},providers:[pb]}),db);function gb(t,e){return"function"==typeof e?function(n){return n.pipe(gb((function(n,r){return z(t(n,r)).pipe(U((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new mb(t))}}var mb=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new yb(t,this.project))}}]),t}(),yb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).project=r,i.index=0,i}return _createClass(n,[{key:"_next",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new P(this,e,n),o=this.destination;o.add(i),this.innerSubscription=F(this,t,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)}},{key:"_complete",value:function(){var t=this.innerSubscription;t&&!t.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}}]),n}(j),bb=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this)).scheduler=o,t._events=[],t._infiniteTimeWindow=!1,t._bufferSize=r<1?1:r,t._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(t._infiniteTimeWindow=!0,t.next=t.nextInfiniteTimeWindow):t.next=t.nextTimeWindow,t}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(t){var e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"nextTimeWindow",value:function(t){this._events.push(new _b(this._getNow(),t)),this._trimBufferThenGetEvents(),_get(_getPrototypeOf(n.prototype),"next",this).call(this,t)}},{key:"_subscribe",value:function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new E;if(this.isStopped||this.hasError?e=d.EMPTY:(this.observers.push(t),e=new x(this,t)),i&&t.add(t=new ky(t,i)),n)for(var a=0;ae&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r}}]),n}(I),_b=function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n},wb=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),kb=function(){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 Cb(t){return function(e){return 0===t?gy():e.lift(new Sb(t))}}var Sb=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new kb}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Eb(t,this.total))}}]),t}(),Eb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(v);function xb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Tb(t))}}var Tb=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Ib(t,this.defaultValue))}}]),t}(),Ib=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return _createClass(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(v);function Ob(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nb;return function(e){return e.lift(new Ab(t))}}var Ab=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Pb(t,this.errorFactory))}}]),t}(),Pb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(v);function Nb(){return new wb}function Db(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Dm((function(e,n){return t(e,n,r)})):y,Cb(1),n?xb(e):Ob((function(){return new wb})))}}var Rb,Mb,Lb=((Mb=function t(e,r,i,o){_classCallCheck(this,t);var a,s,u=new By(o),l=Hy(u),c=Tm(void 0).pipe(_y(u.outsideAngular),gb((function(){return o.runOutsideAngular((function(){return n.e(5).then(n.bind(null,"6nsN"))}))})),U((function(){return Ky(e,o,r)})),U((function(t){return o.runOutsideAngular((function(){return t.auth()}))})),(s=(a={bufferSize:1,refCount:!1})&&"object"==typeof a?a:{bufferSize:a,windowTime:void 0,refCount:!1,scheduler:void 0},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,u=t.scheduler,l=0,c=!1,h=!1;return function(t){l++,e&&!c||(c=!1,e=new bb(i,a,u),n=t.subscribe({next:function(t){e.next(t)},error:function(t){c=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}));var r=e.subscribe(this);this.add((function(){l--,r.unsubscribe(),n&&!h&&s&&0===l&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(s))}));return c.pipe(Db()).subscribe(),this.authState=c.pipe(gb((function(t){return o.runOutsideAngular((function(){return new k(t.onAuthStateChanged.bind(t))}))})),l),this.user=c.pipe(gb((function(t){return o.runOutsideAngular((function(){return new k(t.onIdTokenChanged.bind(t))}))})),l),this.idToken=this.user.pipe(gb((function(t){return t?z(t.getIdToken()):Tm(null)}))),this.idTokenResult=this.user.pipe(gb((function(t){return t?z(t.getIdTokenResult()):Tm(null)}))),function(t,e,n){return new Proxy(t,{get:function(r,i){return n.runOutsideAngular((function(){if(t[i])return t[i];if(zy.includes(i))return function(){};var r=e.toPromise().then((function(t){var e=t&&t[i];return"function"==typeof e?e.bind(t):e&&e.then?e.then((function(t){return n.run((function(){return t}))})):n.run((function(){return e}))}));return new Proxy((function(){}),{get:function(t,e){return r[e]},apply:function(t,e,n){return r.then((function(t){return t&&t.apply(void 0,_toConsumableArray(n))}))}})}))}})}(this,c,o)}).\u0275fac=function(t){return new(t||Mb)(Yt(qy),Yt(Wy,8),Yt(Tl),Yt(zl))},Mb.\u0275prov=ft({factory:function(){return new Mb(Yt(qy),Yt(Wy,8),Yt(Tl),Yt(zl))},token:Mb,providedIn:"any"}),Mb),Fb=((Rb=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:Rb}),Rb.\u0275inj=pt({factory:function(t){return new(t||Rb)},providers:[Lb]}),Rb),jb={},Ub=function(){function t(e){_classCallCheck(this,t),this.resultSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Vb(t,this.resultSelector))}}]),t}(),Vb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return _createClass(n,[{key:"_next",value:function(t){this.values.push(jb),this.observables.push(t)}},{key:"_complete",value:function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?Dm((function(e,n){return t(e,n,r)})):y,zb(1),n?xb(e):Ob((function(){return new wb})))}}function Kb(t){return function(e){var n=new Qb(t),r=e.lift(n);return n.caught=r}}var Qb=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Xb(t,this.selector,this.caught))}}]),t}(),Xb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return _createClass(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new P(this,void 0,void 0);this.add(r);var i=F(this,e,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(j),$b=function(){function t(e,n,r){_classCallCheck(this,t),this.predicate=e,this.thisArg=n,this.source=r}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new Yb(t,this.predicate,this.thisArg,this.source))}}]),t}(),Yb=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t)).predicate=r,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||_assertThisInitialized(a),a}return _createClass(n,[{key:"notifyComplete",value:function(t){this.destination.next(t),this.destination.complete()}},{key:"_next",value:function(t){var 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)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}]),n}(v);function Jb(){return Hb()(Tm.apply(void 0,arguments))}function Zb(t,e){return q(t,e,1)}function t_(t,e){return arguments.length>=2?function(n){return b(dy(t,e),zb(1),xb(e))(n)}:function(e){return b(dy((function(e,n,r){return t(e,n,r+1)})),zb(1))(e)}}function e_(t){return function(e){return e.lift(new r_(t))}}var n_,r_=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new i_(t,this.callback))}}]),t}(),i_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).add(new d(r)),i}return n}(v),o_=function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n},a_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(o_),s_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(o_),u_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).reason=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(o_),l_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).error=i,o}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(o_),c_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(o_),h_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(o_),d_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o,a){var s;return _classCallCheck(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return _createClass(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(o_),f_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(o_),p_=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return _createClass(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(o_),v_=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),g_=function(){function t(e){_classCallCheck(this,t),this.route=e}return _createClass(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),m_=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),y_=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),b_=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),__=function(){function t(e){_classCallCheck(this,t),this.snapshot=e}return _createClass(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),w_=function(){function t(e,n,r){_classCallCheck(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return _createClass(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),k_=((n_=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||n_)},n_.\u0275cmp=ge({type:n_,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&Va(0,"router-outlet")},directives:function(){return[Nk]},encapsulation:2}),n_),C_=function(){function t(e){_classCallCheck(this,t),this.params=e||{}}return _createClass(t,[{key:"has",value:function(t){return this.params.hasOwnProperty(t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function S_(t){return new C_(t)}function E_(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function x_(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length1&&void 0!==arguments[1]?arguments[1]:"",n=0;n-1})):t===e}function R_(t){return Array.prototype.concat.apply([],t)}function M_(t){return t.length>0?t[t.length-1]:null}function L_(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function F_(t){return Wa(t)?t:qa(t)?z(Promise.resolve(t)):Tm(t)}function j_(t,e,n){return n?function(t,e){return N_(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!H_(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var 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((function(n){return D_(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!!H_(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!H_(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!H_(n.segments,a)&&!!n.children.primary&&e(n.children.primary,r,s)}(e,n,n.segments)}(t.root,e.root)}var U_=function(){function t(e,n,r){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=r}return _createClass(t,[{key:"toString",value:function(){return G_.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=S_(this.queryParams)),this._queryParamMap}}]),t}(),V_=function(){function t(e,n){var r=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,L_(n,(function(t,e){return t.parent=r}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return K_(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),B_=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"toString",value:function(){return Z_(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=S_(this.parameters)),this._parameterMap}}]),t}();function H_(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function z_(t,e){var n=[];return L_(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),L_(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var q_=function t(){_classCallCheck(this,t)},W_=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new iw(t);return new U_(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/"+function t(e,n){if(!e.hasChildren())return K_(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return L_(e.children,(function(e,n){"primary"!==n&&i.push("".concat(n,":").concat(t(e,!1)))})),i.length>0?"".concat(r,"(").concat(i.join("//"),")"):r}var o=z_(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:["".concat(r,":").concat(t(n,!1))]}));return"".concat(K_(e),"/(").concat(o.join("//"),")")}(t.root,!0)).concat((e=t.queryParams,n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return"".concat(X_(t),"=").concat(X_(e))})).join("&"):"".concat(X_(t),"=").concat(X_(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"");var e,n}}]),t}(),G_=new W_;function K_(t){return t.segments.map((function(t){return Z_(t)})).join("/")}function Q_(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function X_(t){return Q_(t).replace(/%3B/gi,";")}function $_(t){return Q_(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Y_(t){return decodeURIComponent(t)}function J_(t){return Y_(t.replace(/\+/g,"%20"))}function Z_(t){return"".concat($_(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat($_(t),"=").concat($_(e[t]))})).join("")));var e}var tw=/^[^\/()?;=#]+/;function ew(t){var e=t.match(tw);return e?e[0]:""}var nw=/^[^=?&#]+/,rw=/^[^?&#]+/,iw=function(){function t(e){_classCallCheck(this,t),this.url=e,this.remaining=e}return _createClass(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new V_([],{}):new V_([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new V_(t,e)),n}},{key:"parseSegment",value:function(){var t=ew(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new B_(Y_(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=ew(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=ew(this.remaining);r&&(n=r,this.capture(n))}t[Y_(e)]=Y_(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(nw);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(rw);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=J_(e),o=J_(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=ew(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new V_([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),ow=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=aw(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=aw(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=sw(t,this._root);return e.length<2?[]:e[e.length-2].children.map((function(t){return t.value})).filter((function(e){return e!==t}))}},{key:"pathFromRoot",value:function(t){return sw(t,this._root).map((function(t){return t.value}))}},{key:"root",get:function(){return this._root.value}}]),t}();function aw(t,e){if(t===e.value)return e;var n,r=_createForOfIteratorHelper(e.children);try{for(r.s();!(n=r.n()).done;){var i=aw(t,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function sw(t,e){if(t===e.value)return[e];var n,r=_createForOfIteratorHelper(e.children);try{for(r.s();!(n=r.n()).done;){var i=sw(t,n.value);if(i.length)return i.unshift(e),i}}catch(o){r.e(o)}finally{r.f()}return[]}var uw=function(){function t(e,n){_classCallCheck(this,t),this.value=e,this.children=n}return _createClass(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function lw(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var cw=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).snapshot=r,gw(_assertThisInitialized(i),t),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(ow);function hw(t,e){var n=function(t,e){var n=new pw([],{},{},"",{},"primary",e,null,t.root,-1,{});return new vw("",new uw(n,[]))}(t,e),r=new ly([new B_("",{})]),i=new ly({}),o=new ly({}),a=new ly({}),s=new ly(""),u=new dw(r,i,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new cw(new uw(u,[]),n)}var dw=function(){function t(e,n,r,i,o,a,s,u){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return _createClass(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(U((function(t){return S_(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U((function(t){return S_(t)})))),this._queryParamMap}}]),t}();function fw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce((function(t,e){return{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))}var pw=function(){function t(e,n,r,i,o,a,s,u,l,c,h){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=h}return _createClass(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=S_(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=S_(this.queryParams)),this._queryParamMap}}]),t}(),vw=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,r)).url=t,gw(_assertThisInitialized(i),r),i}return _createClass(n,[{key:"toString",value:function(){return mw(this._root)}}]),n}(ow);function gw(t,e){e.value._routerState=t,e.children.forEach((function(e){return gw(t,e)}))}function mw(t){var e=t.children.length>0?" { ".concat(t.children.map(mw).join(", ")," } "):"";return"".concat(t.value).concat(e)}function yw(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,N_(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),N_(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&_w(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==M_(r))throw new Error("{outlets:{}} has to be the last command")}return _createClass(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Cw=function t(e,n,r){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function Sw(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Ew(t,e,n){if(t||(t=new V_([],{})),0===t.segments.length&&t.hasChildren())return xw(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Sw(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Aw(s,u,a))return o;r+=2}else{if(!Aw(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new V_([],{primary:t}):t;return new U_(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(U((function(t){return new V_([],t)}))):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Tm({});var o=[],a=[],s={};return L_(n,(function(n,i){var u,l,c=(u=i,l=n,r.expandSegmentGroup(t,e,l,u)).pipe(U((function(t){return s[i]=t})));"primary"===i?o.push(c):a.push(c)})),Tm.apply(null,o.concat(a)).pipe(Hb(),Gb(),U((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,r,i,o){var a=this;return Tm.apply(void 0,_toConsumableArray(n)).pipe(U((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,r,i,o).pipe(Kb((function(t){if(t instanceof Mw)return Tm(null);throw t})))})),Hb(),Db((function(t){return!!t})),Kb((function(t,n){if(t instanceof wb||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,r,i))return Tm(new V_([],{}));throw new Mw(e)}throw t})))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return qw(r)!==o?Fw(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Fw(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?jw(o):this.lineralizeSegments(n,o).pipe(q((function(n){var o=new V_(n,{});return i.expandSegment(t,o,e,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Bw(e,r,i),u=s.matched,l=s.consumedSegments,c=s.lastChild,h=s.positionalParamSegments;if(!u)return Fw(e);var d=this.applyRedirectCommands(l,r.redirectTo,h);return r.redirectTo.startsWith("/")?jw(d):this.lineralizeSegments(r,d).pipe(q((function(r){return a.expandSegment(t,e,n,r.concat(i.slice(c)),o,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(U((function(t){return n._loadedConfig=t,new V_(r,{})}))):Tm(new V_(r,{}));var o=Bw(e,n,r),a=o.matched,s=o.consumedSegments,u=o.lastChild;if(!a)return Fw(e);var l=r.slice(u);return this.getChildConfig(t,n,r).pipe(q((function(t){var n=t.module,r=t.routes,o=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some((function(n){return zw(t,e,n)&&"primary"!==qw(n)}))}(t,n,r)?{segmentGroup:Hw(new V_(e,function(t,e){var n={};n.primary=e;var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;""===o.path&&"primary"!==qw(o)&&(n[qw(o)]=new V_([],{}))}}catch(a){i.e(a)}finally{i.f()}return n}(r,new V_(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return zw(t,e,n)}))}(t,n,r)?{segmentGroup:Hw(new V_(t.segments,function(t,e,n,r){var i,o={},a=_createForOfIteratorHelper(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;zw(t,e,s)&&!r[qw(s)]&&(o[qw(s)]=new V_([],{}))}}catch(u){a.e(u)}finally{a.f()}return Object.assign(Object.assign({},r),o)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,l,r),a=o.segmentGroup,u=o.slicedSegments;return 0===u.length&&a.hasChildren()?i.expandChildren(n,r,a).pipe(U((function(t){return new V_(s,t)}))):0===r.length&&0===u.length?Tm(new V_(s,{})):i.expandSegment(n,a,r,u,"primary",!0).pipe(U((function(t){return new V_(s.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Tm(new T_(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Tm(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?z(i).pipe(U((function(r){var i,o=t.get(r);if(function(t){return t&&Dw(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!Dw(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return F_(i)}))).pipe(Hb(),(r=function(t){return!0===t},function(t){return t.lift(new $b(r,void 0,t))})):Tm(!0)}(t.injector,e,n).pipe(q((function(n){return n?r.configLoader.load(t.injector,e).pipe(U((function(t){return e._loadedConfig=t,t}))):function(t){return new k((function(e){return e.error(E_("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Tm(new T_([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Tm(n);if(r.numberOfChildren>1||!r.children.primary)return Uw(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new U_(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return L_(t,(function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t})),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return L_(e.children,(function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)})),new V_(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map((function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)}))}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n,r=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(r),o;r++}}catch(a){i.e(a)}finally{i.f()}return t}}]),t}();function Bw(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:{}};var r=(e.matcher||x_)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Hw(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new V_(t.segments.concat(e.segments),e.children)}return t}function zw(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function qw(t){return t.outlet||"primary"}var Ww=function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]},Gw=function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n};function Kw(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Qw(t,e,n){var r=lw(t),i=t.value;L_(r,(function(t,r){Qw(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new Gw(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var Xw=Symbol("INITIAL_VALUE");function $w(){return gb((function(t){return(function(){for(var t=arguments.length,e=new Array(t),n=0;n0?M_(n).parameters:{};i=new pw(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,uk(t),r,t.component,t,rk(e),ik(e)+n.length,lk(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new ek;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||x_)(n,t,e);if(!r)throw new ek;var i={};L_(r.posParams,(function(t,e){i[e]=t.path}));var 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=u.consumedSegments,a=n.slice(u.lastChild),i=new pw(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,uk(t),r,t.component,t,rk(e),ik(e)+o.length,lk(t))}var l=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=ok(e,o,a,l,this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(l,h);return[new uw(i,f)]}if(0===l.length&&0===d.length)return[new uw(i,[])];var p=this.processSegment(l,h,d,"primary");return[new uw(i,p)]}}]),t}();function rk(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ik(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ok(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return ak(t,e,n)&&"primary"!==sk(n)}))}(t,n,r)){var o=new V_(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var o,a=_createForOfIteratorHelper(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&"primary"!==sk(s)){var u=new V_([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[sk(s)]=u}}}catch(l){a.e(l)}finally{a.f()}return i}(t,e,r,new V_(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return ak(t,e,n)}))}(t,n,r)){var a=new V_(t.segments,function(t,e,n,r,i,o){var a,s={},u=_createForOfIteratorHelper(r);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(ak(t,n,l)&&!i[sk(l)]){var c=new V_([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[sk(l)]=c}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new V_(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function ak(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function sk(t){return t.outlet||"primary"}function uk(t){return t.data||{}}function lk(t){return t.resolve||{}}function ck(t,e,n,r){var i=Kw(t,e,r);return F_(i.resolve?i.resolve(e,n):i(e,n))}function hk(t){return function(e){return e.pipe(gb((function(e){var n=t(e);return n?z(n).pipe(U((function(){return e}))):z([e])})))}}var dk=function t(){_classCallCheck(this,t)},fk=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}(),pk=new Ht("ROUTES"),vk=function(){function t(e,n,r,i){_classCallCheck(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return _createClass(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(U((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new T_(R_(i.injector.get(pk)).map(P_),i)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?z(this.loader.load(t)):F_(t()).pipe(q((function(t){return t instanceof re?Tm(t):z(e.compiler.compileModuleAsync(t))})))}}]),t}(),gk=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function mk(t){throw t}function yk(t,e,n){return e.parse("/")}function bk(t,e){return Tm(null)}var _k,wk,kk,Ck=((kk=function(){function t(e,n,r,i,o,a,s,u){var l=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I,this.errorHandler=mk,this.malformedUriErrorHandler=yk,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:bk,afterPreactivation:bk},this.urlHandlingStrategy=new gk,this.routeReuseStrategy=new fk,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(ne),this.console=o.get(Ol);var c=o.get(zl);this.isNgZoneEnabled=c instanceof zl,this.resetConfig(u),this.currentUrlTree=new U_(new V_([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vk(a,s,(function(t){return l.triggerEvent(new v_(t))}),(function(t){return l.triggerEvent(new g_(t))})),this.routerState=hw(this.currentUrlTree,this.rootComponentType),this.transitions=new ly({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()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Dm((function(t){return 0!==t.id})),U((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),gb((function(t){var r,i,o,a=!1,s=!1;return Tm(t).pipe(Am((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),gb((function(t){var r,i,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Tm(t).pipe(gb((function(t){var r=e.transitions.getValue();return n.next(new a_(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?vy:[t]})),gb((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(gb((function(t){return function(t,e,n,r,i){return new Vw(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,a).pipe(U((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),Am((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,o){return function(r){return r.pipe(q((function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new nk(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(U((function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})})));var a})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Am((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Am((function(t){var r=new c_(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,c=t.source,h=t.restoredState,d=t.extras,f=new a_(u,e.serializeUrl(l),c,h);n.next(f);var p=hw(l,e.rootComponentType).snapshot;return Tm(Object.assign(Object.assign({},t),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),vy})),hk((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),Am((function(t){var n=new h_(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),U((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,o=n._root,function t(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=lw(n);return e.children.forEach((function(e){!function(e,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,s=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){var l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!H_(t.url,e.url);case"pathParamsOrQueryParamsChange":return!H_(t.url,e.url)||!N_(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bw(t,e)||!N_(t.queryParams,e.queryParams);case"paramsChange":default:return!bw(t,e)}}(s,a,a.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Ww(i)):(a.data=s.data,a._resolvedData=s._resolvedData),t(e,n,a.component?u?u.children:null:r,i,o),l&&o.canDeactivateChecks.push(new Gw(u&&u.outlet&&u.outlet.component||null,s))}else s&&Qw(n,u,o),o.canActivateChecks.push(new Ww(i)),t(e,null,a.component?u?u.children:null:r,i,o)}(e,a[e.value.outlet],r,i.concat([e.value]),o),delete a[e.value.outlet]})),L_(a,(function(t,e){return Qw(t,r.getContext(e),o)})),o}(o,r?r._root:null,i,[o.value]))});var n,r,i,o})),function(t,e){return function(n){return n.pipe(q((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Tm(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return z(t).pipe(q((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Tm(o.map((function(o){var a,s=Kw(o,e,i);if(function(t){return t&&Dw(t.canDeactivate)}(s))a=F_(s.canDeactivate(t,e,n,r));else{if(!Dw(s))throw new Error("Invalid CanDeactivate guard");a=F_(s(t,e,n,r))}return a.pipe(Db())}))).pipe($w()):Tm(!0)}(t.component,t.route,n,e,r)})),Db((function(t){return!0!==t}),!0))}(s,r,i,t).pipe(q((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return z(e).pipe(Zb((function(e){return z([Jw(e.route.parent,r),Yw(e.route,r),tk(t,e.path,n),Zw(t,e.route,n)]).pipe(Hb(),Db((function(t){return!0!==t}),!0))})),Db((function(t){return!0!==t}),!0))}(r,a,t,e):Tm(n)})),U((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Am((function(t){if(Rw(t.guardsResult)){var n=E_('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),Am((function(t){var n=new d_(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Dm((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new u_(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),hk((function(t){if(t.guards.canActivateChecks.length)return Tm(t).pipe(Am((function(t){var n=new f_(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(q((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?z(i).pipe(Zb((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Tm({});if(1===i.length){var o=i[0];return ck(t[o],e,n,r).pipe(U((function(t){return _defineProperty({},o,t)})))}var a={};return z(i).pipe(q((function(i){return ck(t[i],e,n,r).pipe(U((function(t){return a[i]=t,t})))}))).pipe(Gb(),U((function(){return a})))}(t._resolve,t,e,r).pipe(U((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),fw(t,n).resolve),null})))}(t.route,e,n,r)})),t_((function(t,e){return t})),U((function(e){return t}))):Tm(t)})))}),Am((function(t){var n=new p_(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),hk((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})})),U((function(t){var n=function(t,e,n){var r=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){var i=r.value;i._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map((function(n){var i,o=_createForOfIteratorHelper(r.children);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.shouldReuseRoute(a.value.snapshot,n.value))return t(e,n,a)}}catch(s){o.e(s)}finally{o.f()}return t(e,n)}))}(e,n,r);return new uw(i,o)}var a=e.retrieve(n.value);if(a){var s=a.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(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,a=e.queryParamsHandling,s=e.preserveFragment;Ir()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,l=s?this.currentUrlTree.fragment:i,c=null;if(a)switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}else c=o?this.currentUrlTree.queryParams:r||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,r,i){if(0===n.length)return ww(e.root,e.root,e,r,i);var o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kw(!0,0,t);var e=0,n=!1,r=t.reduce((function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return L_(r.outlets,(function(t,e){o[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:o}])}if(r.segmentPath)return[].concat(_toConsumableArray(t),[r.segmentPath])}return"string"!=typeof r?[].concat(_toConsumableArray(t),[r]):0===i?(r.split("/").forEach((function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))})),t):[].concat(_toConsumableArray(t),[r])}),[]);return new kw(n,e,r)}(n);if(o.toRoot())return ww(e.root,new V_([],{}),e,r,i);var a=function(t,e,n){if(t.isAbsolute)return new Cw(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new Cw(n.snapshot._urlSegment,!0,0);var r=_w(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Cw(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?xw(a.segmentGroup,a.index,o.commands):Ew(a.segmentGroup,a.index,o.commands);return ww(a.segmentGroup,s,e,r,i)}(u,this.currentUrlTree,t,c,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Ir()&&this.isNgZoneEnabled&&!zl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Rw(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return _createClass(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof a_?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof s_&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))}))}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe((function(e){e instanceof w_&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))}))}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new w_(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){Ma()},Ik.\u0275dir=ke({type:Ik}),Ik),jk=new Ht("ROUTER_CONFIGURATION"),Uk=new Ht("ROUTER_FORROOT_GUARD"),Vk=[zc,{provide:q_,useClass:W_},{provide:Ck,useFactory:function(t,e,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,c=new Ck(null,t,e,n,r,i,o,R_(a));if(u&&(c.urlHandlingStrategy=u),l&&(c.routeReuseStrategy=l),s.errorHandler&&(c.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(c.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=wc();c.events.subscribe((function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()}))}return s.onSameUrlNavigation&&(c.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(c.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(c.relativeLinkResolution=s.relativeLinkResolution),c},deps:[q_,Pk,zc,fa,hc,Ul,pk,jk,[function(){return function t(){_classCallCheck(this,t)}}(),new st],[dk,new st]]},Pk,{provide:dw,useFactory:function(t){return t.routerState.root},deps:[Ck]},{provide:hc,useClass:pc},Lk,Mk,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(Kb((function(){return Tm(null)})))}}]),t}(),{provide:jk,useValue:{enableTracing:!1}}];function Bk(){return new rc("Router",Ck)}var Hk,zk=((Hk=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Vk,Kk(e),{provide:Uk,useFactory:Gk,deps:[[Ck,new st,new lt]]},{provide:jk,useValue:n||{}},{provide:Mc,useFactory:Wk,deps:[Sc,[new at(Vc),new st],jk]},{provide:Fk,useFactory:qk,deps:[Ck,dd,jk]},{provide:Rk,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Mk},{provide:rc,multi:!0,useFactory:Bk},[Xk,{provide:wl,multi:!0,useFactory:$k,deps:[Xk]},{provide:tC,useFactory:Yk,deps:[Xk]},{provide:Il,multi:!0,useExisting:tC}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Kk(e)]}}}]),t}()).\u0275mod=_e({type:Hk}),Hk.\u0275inj=pt({factory:function(t){return new(t||Hk)(Yt(Uk,8),Yt(Ck,8))}}),Hk);function qk(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Fk(t,e,n)}function Wk(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new Hc(t,e):new Bc(t,e)}function Gk(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Kk(t){return[{provide:pa,multi:!0,useValue:t},{provide:pk,multi:!0,useValue:t}]}var Qk,Xk=((Qk=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new I}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(Tc,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),r=t.injector.get(Ck),i=t.injector.get(jk);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(i.initialNavigation,"'"));r.hooks.afterPreactivation=function(){return t.initNavigation?Tm(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(jk),n=this.injector.get(Lk),r=this.injector.get(Fk),i=this.injector.get(Ck),o=this.injector.get(lc);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())}},{key:"isLegacyEnabled",value:function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}},{key:"isLegacyDisabled",value:function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}]),t}()).\u0275fac=function(t){return new(t||Qk)(Yt(fa))},Qk.\u0275prov=ft({token:Qk,factory:Qk.\u0275fac}),Qk);function $k(t){return t.appInitializer.bind(t)}function Yk(t){return t.bootstrapListener.bind(t)}var Jk,Zk,tC=new Ht("Router Initializer"),eC=function(){function t(e,n){_classCallCheck(this,t),this.defaultTranscoder=e,this.subject=n}return _createClass(t,[{key:"has",value:function(t){return this.subject.has(t)}},{key:"get",value:function(t,e){return this.subject.get(t,e||this.defaultTranscoder)}},{key:"set",value:function(t,e,n){this.subject.set(t,e,n||this.defaultTranscoder)}},{key:"remove",value:function(t){this.subject.remove(t)}},{key:"clear",value:function(){this.subject.clear()}},{key:"withDefaultTranscoder",value:function(e){return new t(e,this.subject)}}]),t}(),nC=function(){function t(e){_classCallCheck(this,t),this.defaultTranscoder=e}return _createClass(t,[{key:"get",value:function(t,e){var n=this.getItem(t);return void 0!==n?(e||this.defaultTranscoder).decode(n):void 0}},{key:"set",value:function(t,e,n){this.setItem(t,(n||this.defaultTranscoder).encode(e))}},{key:"withDefaultTranscoder",value:function(t){return new eC(t,this)}}]),t}(),rC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return JSON.stringify(t)}},{key:"decode",value:function(t){try{return JSON.parse(t)}catch(e){return}}}]),t}(),iC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return t}},{key:"decode",value:function(t){return t}}]),t}(),oC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return t.toString()}},{key:"decode",value:function(t){return"true"===t||"false"!==t&&void 0}}]),t}(),aC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return t.toString()}},{key:"decode",value:function(t){var e=Number(t);return Number.isFinite(e)?e:void 0}}]),t}(),sC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return t.toISOString()}},{key:"decode",value:function(t){var e=Date.parse(t);return isNaN(e)?void 0:new Date(e)}}]),t}(),uC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encode",value:function(t){return t.valueOf().toString()}},{key:"decode",value:function(t){var e=parseInt(t,10);return isNaN(e)?void 0:new Date(e)}}]),t}(),lC={JSON:new rC,STRING:new iC,BOOLEAN:new oC,NUMBER:new aC,DATE_ISO_STRING:new sC,DATE_EPOCH_TIME:new uC},cC=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.call(this,lC.JSON)).storage=new Map,t}return _createClass(n,[{key:"has",value:function(t){return this.storage.has(t)}},{key:"remove",value:function(t){this.storage.delete(t)}},{key:"clear",value:function(){this.storage.clear()}},{key:"getItem",value:function(t){if(this.storage.has(t))return this.storage.get(t)}},{key:"setItem",value:function(t,e){this.storage.set(t,e)}}]),n}(nC),hC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,lC.JSON)).storage=t,r}return _createClass(n,[{key:"has",value:function(t){return null!==this.storage.getItem(t)}},{key:"remove",value:function(t){this.storage.removeItem(t)}},{key:"clear",value:function(){this.storage.clear()}},{key:"getItem",value:function(t){var e=this.storage.getItem(t);return null!==e?e:void 0}},{key:"setItem",value:function(t,e){return this.storage.setItem(t,e)}}]),n}(nC),dC=new Ht("LOCAL_STORAGE",{providedIn:"root",factory:function(){try{if("undefined"!=typeof localStorage&&function(t){if(!t)return!1;try{var e=Date.now(),n="storage-test-entry-"+e,r="storage-test-value-"+e;t.setItem(n,r);var i=t.getItem(n);return t.removeItem(n),i===r}catch(o){return!1}}(localStorage))return new hC(localStorage)}catch(t){}return new cC}}),fC=((Zk=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:Zk}),Zk.\u0275inj=pt({factory:function(t){return new(t||Zk)}}),Zk),pC=((Jk=function(){function t(e,n){_classCallCheck(this,t),this.storage=e,this.afs=n,this.localStorageValueChanges=new ly("none")}return _createClass(t,[{key:"getUserDataFromLocalStorage",value:function(){return null==this.storage.get("user_nowevents")?null:this.storage.get("user_nowevents")}},{key:"setUserDataToLocalStorage",value:function(t,e){console.log("test"),this.storage.set("user_nowevents",t),this.localStorageUserData=new uy(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)}},{key:"clearUserDataFromLocalStorage",value:function(){this.storage.remove("user_nowevents")}},{key:"setEvent",value:function(t){this.storage.set("event_nowevents",t)}},{key:"syncUserDataFromFirestore",value:function(t){return this.afs.collection("users",(function(e){return e.where("uid","==",t)})).valueChanges()}}]),t}()).\u0275fac=function(t){return new(t||Jk)(Yt(dC),Yt(pb))},Jk.\u0275prov=ft({token:Jk,factory:Jk.\u0275fac}),Jk),vC={target:null,action:"click",duration:650,easing:"easeInOutQuad",offset:0,offsetMap:new Map},gC={easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},easeOutElastic:function(t){return Math.pow(2,-10*t)*Math.sin((t-1/4)*(2*Math.PI)/1)+1}};function mC(t){return t===window}var yC,bC,_C,wC,kC=function(){function t(e,n,r,i,o,a){var s=this;_classCallCheck(this,t),this.container=e,this.listenerTarget=n,this.isWindow=r,this.to=i,this.options=o,this.isBrowser=a,this.loop=function(){s.timeLapsed+=s.tick,s.percentage=s.timeLapsed/s.options.duration,s.percentage=s.percentage>1?1:s.percentage,s.position=s.startPosition+(s.startPosition-s.to<=0?1:-1)*s.distance*gC[s.options.easing](s.percentage),null!==s.lastPosition&&s.position===s.lastPosition?s.stop():(s.source$.next(s.position),s.isWindow?s.listenerTarget.scrollTo(0,Math.floor(s.position)):s.container.scrollTop=Math.floor(s.position),s.lastPosition=s.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);var u=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((function(t,e){return s.mappedOffset=window.innerWidth>e?t:s.mappedOffset})),this.distance+=this.mappedOffset*(u<=0?1:-1),this.source$=new bb}return _createClass(t,[{key:"start",value:function(){return clearInterval(this.interval),this.interval=setInterval(this.loop,this.tick),this.source$.asObservable()}},{key:"stop",value:function(){clearInterval(this.interval),this.interval=null,this.source$.complete()}}]),t}(),CC=((yC=function(){function t(e,n){_classCallCheck(this,t),this.document=e,this.platformId=n,this.interruptiveEvents=["mousewheel","DOMMouseScroll","touchstart"]}return _createClass(t,[{key:"scrollTo",value:function(t){return ad(this.platformId)?this.start(t):(new bb).asObservable()}},{key:"start",value:function(t){var e=this,n=Object.assign(Object.assign({},vC),t);this.animation&&this.animation.stop();var r=this.getNode(n.target);if(n.target&&!r)return my("Unable to find Target Element");var i=this.getContainer(n,r);if(n.container&&!i)return my("Unable to find Container Element");var o=this.getListenerTarget(i)||window,a=i?i.getBoundingClientRect().top:0;r&&(a=mC(o)?window.scrollY+r.getBoundingClientRect().top:r.getBoundingClientRect().top),this.animation=new kC(i,o,mC(o),a,n,ad(this.platformId));var s=function(){return e.animation.stop()};this.addInterruptiveEventListeners(o,s);var u=this.animation.start();return this.subscribeToAnimation(u,o,s),u}},{key:"subscribeToAnimation",value:function(t,e,n){var r=this,i=t.subscribe((function(){}),(function(){}),(function(){r.removeInterruptiveEventListeners(r.interruptiveEvents,e,n),i.unsubscribe()}))}},{key:"getContainer",value:function(t,e){var n=null;return t.container?n=this.getNode(t.container,!0):e&&(n=this.getFirstScrollableParent(e)),n}},{key:"addInterruptiveEventListeners",value:function(t,e){var n=this;t||(t=window),this.interruptiveEvents.forEach((function(r){return t.addEventListener(r,e,!!n.supportPassive()&&{passive:!0})}))}},{key:"supportPassive",value:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(n){}return t}},{key:"removeInterruptiveEventListeners",value:function(t,e,n){e||(e=window),t.forEach((function(t){return e.removeEventListener(t,n)}))}},{key:"getFirstScrollableParent",value:function(t){var e=window.getComputedStyle(t),n=/(auto|scroll|overlay)/;if("fixed"===e.position)return null;for(var r=t;r.parentElement;)if(r=r.parentElement,"absolute"!==(e=window.getComputedStyle(r)).position&&"hidden"!==e.overflow&&"hidden"!==e.overflowY&&(n.test(e.overflow+e.overflowY)||"BODY"===r.tagName))return r;return null}},{key:"getNode",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof(n=t)||n instanceof String?e=!r||"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)?e=this.document.getElementById(String(t)):function(t){return t instanceof Js}(t)?e=t.nativeElement:function(t){return t instanceof HTMLElement}(t)&&(e=t),e}},{key:"getListenerTarget",value:function(t){return t?this.isDocumentBody(t)?window:t:null}},{key:"isDocumentBody",value:function(t){return"BODY"===t.tagName.toUpperCase()}}]),t}()).\u0275fac=function(t){return new(t||yC)(Yt(Cc),Yt(Tl))},yC.\u0275prov=ft({token:yC,factory:yC.\u0275fac}),yC),SC=((wC=bC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:bC,providers:[CC]}}}]),t}()).\u0275mod=_e({type:wC}),wC.\u0275inj=pt({factory:function(t){return new(t||wC)}}),wC),EC=((_C=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.afs=e,this.localStorageService=n,this.router=r,this._scrollToService=i,this.afAuth=o,this.chat={chatId:"",messages:[]},this.messages=[],this.showMessages=!1,this.message="",this.conversationArray=[],this.newChatAddedAlertSubject=new ly("none"),this.chatListFromDB=[],this.userChatProfiles=[],this.totalUnreadCount=0,this.localStorageServiceUserData=this.localStorageService.localStorageUserData}return _createClass(t,[{key:"triggerScrollTo",value:function(){this._scrollToService.scrollTo({target:"destination"})}},{key:"messageButtonPressedAlert",value:function(){this.newChatAddedAlertSubject.next("newchat")}},{key:"selectUser",value:function(t){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.localStorageServiceUserData=this.localStorageService.getUserDataFromLocalStorage(),null==this.localStorageServiceUserData.conversations&&(this.localStorageServiceUserData.conversations=[]),(n=_toConsumableArray(this.localStorageServiceUserData.conversations).find((function(e){return e.uid==t.uid})))?this.getChat(n.chatId).subscribe((function(t){r.temp=t,r.chat=r.temp[0],r.messages=null==r.chat.messages?[]:r.chat.messages,r.showMessages=!0})):(this.addNewChat().then((function(){return Object(sy.__awaiter)(r,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.addConvo(t);case 2:case"end":return e.stop()}}),e,this)})))})).then((function(){return Object(sy.__awaiter)(r,void 0,void 0,regeneratorRuntime.mark((function e(){var n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCurrentUser();case 2:e.sent.subscribe((function(){new Promise((function(t,e){n.afs.collection("users").doc(n.localStorageServiceUserData.uid).get().subscribe((function(e){n.localStorageUserDataObject=new uy(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((function(){n.localStorageService.setUserDataToLocalStorage(n.localStorageUserDataObject,"users/conversations"),n.localStorageServiceUserData=n.localStorageService.getUserDataFromLocalStorage(),null==n.localStorageServiceUserData.conversations&&(n.localStorageServiceUserData.conversations=[]);var e=_toConsumableArray(n.localStorageServiceUserData.conversations).find((function(e){return e.uid==t.uid}));e&&n.getChat(e.chatId).subscribe((function(t){n.temp=t,n.chat=n.temp[0],n.messages=null==n.chat.messages?[]:n.chat.messages,n.showMessages=!0}))}))}));case 3:case"end":return e.stop()}}),e,this)})))})),this.showMessages=!0);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"addConvo",value:function(t){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n={firstName:t.firstName,uid:t.uid,chatId:this.chat.chatId},r={firstName:this.localStorageServiceUserData.firstName,uid:this.localStorageServiceUserData.uid,chatId:this.chat.chatId},i=this.afs.doc("users/"+this.localStorageServiceUserData.uid),o=this.afs.doc("users/"+t.uid),i.get().subscribe((function(t){var e=t.data();return e.conversations&&null!=e.conversations||(e.conversations=[]),e.conversations.push(n),i.update({conversations:e.conversations})})),o.get().subscribe((function(t){var e=t.data();return e.conversations&&null!=e.conversations||(e.conversations=[]),e.conversations.push(r),o.update({conversations:e.conversations})}));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"addNewChat",value:function(){var t=this,e=this.afs.createId();return this.afs.doc("conversations/"+e).set({chatId:e,messages:[]}).then((function(){t.chat={chatId:e,messages:[]}}))}},{key:"getChat",value:function(t){return this.afs.collection("conversations",(function(e){return e.where("chatId","==",t)})).valueChanges()}},{key:"getCurrentUser",value:function(){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.afs.doc("users/"+this.localStorageService.getUserDataFromLocalStorage().uid).valueChanges());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"updateMessageStatus",value:function(t){var e=this;this.getConversationItems(t).then((function(){var n=e.afs.doc("conversations/"+t);console.log(t);for(var r=e.conversationArray.length-1;0<=r&&e.conversationArray[r].senderId!==e.localStorageService.getUserDataFromLocalStorage().uid&&(e.conversationArray[r].senderId===e.localStorageService.getUserDataFromLocalStorage().uid||!0!==e.conversationArray[r].messageReadStatus);r--)e.conversationArray[r].senderId!==e.localStorageService.getUserDataFromLocalStorage().uid&&!1===e.conversationArray[r].messageReadStatus&&(e.conversationArray[r].messageReadStatus=!0);n.update({messages:e.conversationArray}),e.conversationArray=[]}))}},{key:"getNumberOfUnreadMessage",value:function(t){var e,n=this,r=0;return new Promise((function(i,o){n.getConversationItems(t).then((function(o){e=o,n.afs.doc("conversations/"+t);for(var a=e.length-1;0<=a&&e[a].senderId!==n.localStorageService.getUserDataFromLocalStorage().uid&&(e[a].senderId===n.localStorageService.getUserDataFromLocalStorage().uid||!0!==e[a].messageReadStatus);a--)e[a].senderId!==n.localStorageService.getUserDataFromLocalStorage().uid&&!1===e[a].messageReadStatus&&r++;i(r)}))}))}},{key:"getConversationItems",value:function(t){var e=this;return null!=t&&null!=t||(t="0"),new Promise((function(n,r){e.afs.collection("conversations").doc(t).get().subscribe((function(t){void 0!==t.data()?(console.log(t.data()),e.conversationArray=null===t.data().messages||void 0===t.data().messages?[]:t.data().messages):e.conversationArray=[],n(e.conversationArray)}))}))}},{key:"sendMessage",value:function(){var t=this;""!=this.message?this.afAuth.currentUser.then((function(e){console.log(e);var n={senderId:e.uid,senderName:t.localStorageService.getUserDataFromLocalStorage().firstName,timestamp:cy.firestore.Timestamp.fromDate(new Date),content:t.message,messageReadStatus:!1};t.message="",t.messages.push(n),t.pushNewMessage(t.messages).then((function(){})),setTimeout((function(){t.localStorageService.localStorageValueChanges.next("users/conversations"),t.newChatAddedAlertSubject.next("newchat")}),1e3)})):alert("Enter message")}},{key:"pushNewMessage",value:function(t){return this.afs.doc("conversations/"+this.chat.chatId).update({messages:t})}},{key:"getAllChatArrayForSideNavBar",value:function(t){var e=this;this.afs.collection("users").doc(t).get().subscribe((function(n){e.chatListFromDB=null!==n.data().conversations||void 0!==n.data().conversations?n.data().conversations:[];var r,i=[],o=_createForOfIteratorHelper(e.chatListFromDB);try{var a=function(){var n=r.value;e.getUserBasicInfoFromUid(n.uid).then((function(r){e.getTimestampAndLastMessage(n.chatId).then((function(o){e.getNumberOfUnreadMessage(n.chatId).then((function(a){e.totalUnreadCount=0,i.push({uid:n.uid,photoURL:r.userProfileByUid,firstName:r.userChatName,lastMessage:o.userLastMessage,timestamp:o.userMessageTimeStamp,chatId:n.chatId,numberOfNotifications:a,conversations:[{chatId:n.chatId,uid:t,firstName:n.firstName}]});var s,u=_createForOfIteratorHelper(i);try{for(u.s();!(s=u.n()).done;){var l=s.value;e.totalUnreadCount+=l.numberOfNotifications}}catch(c){u.e(c)}finally{u.f()}e.userChatProfiles=i.sort((function(t,e){return e.timestamp-t.timestamp}))}))}))}))};for(o.s();!(r=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}))}},{key:"getUserBasicInfoFromUid",value:function(t){var e=this,n="";return new Promise((function(r,i){e.afs.collection("users").doc(t).get().subscribe((function(i){console.log(t),null===i.data().photoURL?(e.userProfileByUid="/assets/default-profile.png",n="/assets/default-profile.png"):(e.userProfileByUid=i.data().photoURL,n=i.data().photoURL),e.userChatName=i.data().firstName;var o={userChatName:i.data().firstName,userProfileByUid:n};r(o)}))}))}},{key:"getTimestampAndLastMessage",value:function(t){var e=this,n="",r="",i=0;return new Promise((function(o,a){e.afs.collection("conversations").doc(t).get().subscribe((function(t){0==t.data().messages.length?(n="No Message",r="0",i=0):(n=t.data().messages[t.data().messages.length-1].content,r=t.data().messages[t.data().messages.length-1].timestamp,i=t.data().messages.length),o({userLastMessage:n,userMessageTimeStamp:r,userChatLength:i})}))}))}},{key:"getOnlyOneConversationChanges",value:function(t){return this.afs.collection("conversations",(function(e){return e.where("chatId","==",t)})).valueChanges()}},{key:"getValueChangesForChatList",value:function(t){var e=this;this.localStorageService.syncUserDataFromFirestore(t).subscribe((function(){e.afs.collection("users").doc(t).get().subscribe((function(n){var r=new uy(n.data().uid,n.data().accountCreated,n.data().email,n.data().displayName,n.data().photoURL,n.data().emailVerified,n.data().firstName,n.data().lastName,n.data().department,n.data().organization,n.data().jobTitle,n.data().conversations,n.data().roleToken,n.data().meetingPulseKey);e.localStorageService.setUserDataToLocalStorage(r,"syncuserdata");var i,o=e.localStorageService.getUserDataFromLocalStorage(),a=_createForOfIteratorHelper(o.conversations);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.getOnlyOneConversationChanges(s.chatId).subscribe((function(){e.getAllChatArrayForSideNavBar(t)}))}}catch(u){a.e(u)}finally{a.f()}0===o.conversations.length&&e.getAllChatArrayForSideNavBar(t)}))}))}}]),t}()).\u0275fac=function(t){return new(t||_C)(Yt(pb),Yt(pC),Yt(Ck),Yt(CC),Yt(Lb))},_C.\u0275prov=ft({token:_C,factory:_C.\u0275fac,providedIn:"root"}),_C),xC=function t(){_classCallCheck(this,t)},TC=function t(){_classCallCheck(this,t)},IC=function(){function t(e){var n=this;_classCallCheck(this,t),this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?function(){n.headers=new Map,e.split("\n").forEach((function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}}))}:function(){n.headers=new Map,Object.keys(e).forEach((function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))}))}:this.headers=new Map}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,_toConsumableArray(n)),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach((function(n){return t(e.normalizedNames.get(n),e.headers.get(n))}))}}]),t}(),OC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return AC(t)}},{key:"encodeValue",value:function(t){return AC(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),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,"/")}var PC=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new OC,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){var n=new Map;return t.length>0&&t.split("&").forEach((function(t){var r=t.indexOf("="),i=_slicedToArray(-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],2),o=i[0],a=i[1],s=n.get(o)||[];s.push(a),n.set(o,s)})),n}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach((function(t){var r=n.fromObject[t];e.map.set(t,Array.isArray(r)?r:[r])}))):this.map=null}return _createClass(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map((function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map((function(e){return n+"="+t.encoder.encodeValue(e)})).join("&")})).filter((function(t){return""!==t})).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach((function(e){return t.map.set(e,t.cloneFrom.map.get(e))})),this.updates.forEach((function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)}}]),t}();function NC(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function DC(t){return"undefined"!=typeof Blob&&t instanceof Blob}function RC(t){return"undefined"!=typeof FormData&&t instanceof FormData}var MC=function(){function t(e,n,r,i){var o;if(_classCallCheck(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new IC),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,l=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce((function(t,n){return t.set(n,e.setHeaders[n])}),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),l)),new t(n,r,o,{params:l,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),LC=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}(),FC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,t),this.headers=e.headers||new IC,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},jC=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,r)).type=LC.ResponseHeader,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(FC),UC=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(t=e.call(this,r)).type=LC.Response,t.body=void 0!==r.body?r.body:null,t}return _createClass(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(FC),VC=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(FC);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}}var HC,zC,qC,WC,GC,KC,QC,XC,$C,YC,JC=((HC=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof MC)n=t;else{var o=void 0;o=i.headers instanceof IC?i.headers:new IC(i.headers);var a=void 0;i.params&&(a=i.params instanceof PC?i.params:new PC({fromObject:i.params})),n=new MC(t,e,void 0!==i.body?i.body:null,{headers:o,params:a,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var s=Tm(n).pipe(Zb((function(t){return r.handler.handle(t)})));if(t instanceof MC||"events"===i.observe)return s;var u=s.pipe(Dm((function(t){return t instanceof UC})));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(U((function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body})));case"json":default:return u.pipe(U((function(t){return t.body})))}case"response":return u;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new PC).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,BC(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,BC(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,BC(n,e))}}]),t}()).\u0275fac=function(t){return new(t||HC)(Yt(xC))},HC.\u0275prov=ft({token:HC,factory:HC.\u0275fac}),HC),ZC=function(){function t(e,n){_classCallCheck(this,t),this.next=e,this.interceptor=n}return _createClass(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),tS=new Ht("HTTP_INTERCEPTORS"),eS=((zC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||zC)},zC.\u0275prov=ft({token:zC,factory:zC.\u0275fac}),zC),nS=/^\)\]\}',?\n/,rS=function t(){_classCallCheck(this,t)},iS=((WC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}()).\u0275fac=function(t){return new(t||WC)},WC.\u0275prov=ft({token:WC,factory:WC.\u0275fac}),WC),oS=((qC=function(){function t(e){_classCallCheck(this,t),this.xhrFactory=e}return _createClass(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new k((function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach((function(t,e){return r.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new IC(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new jC({headers:i,status:e,statusText:n,url:o})},l=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===r.response?r.responseText:r.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var h=l;l=l.replace(nS,"");try{l=""!==l?JSON.parse(l):null}catch(d){l=h,c&&(c=!1,l={error:d,text:l})}}c?(n.next(new UC({body:l,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new VC({error:l,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,i=new VC({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,d=function(e){h||(n.next(u()),h=!0);var i={type:LC.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},f=function(t){var e={type:LC.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",l),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",d),null!==a&&r.upload&&r.upload.addEventListener("progress",f)),r.send(a),n.next({type:LC.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",l),t.reportProgress&&(r.removeEventListener("progress",d),null!==a&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}}))}}]),t}()).\u0275fac=function(t){return new(t||qC)(Yt(rS))},qC.\u0275prov=ft({token:qC,factory:qC.\u0275fac}),qC),aS=new Ht("XSRF_COOKIE_NAME"),sS=new Ht("XSRF_HEADER_NAME"),uS=function t(){_classCallCheck(this,t)},lS=((YC=function(){function t(e,n,r){_classCallCheck(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=xh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}()).\u0275fac=function(t){return new(t||YC)(Yt(Cc),Yt(Tl),Yt(aS))},YC.\u0275prov=ft({token:YC,factory:YC.\u0275fac}),YC),cS=(($C=function(){function t(e,n){_classCallCheck(this,t),this.tokenService=e,this.headerName=n}return _createClass(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var 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)}}]),t}()).\u0275fac=function(t){return new(t||$C)(Yt(uS),Yt(sS))},$C.\u0275prov=ft({token:$C,factory:$C.\u0275fac}),$C),hS=((XC=function(){function t(e,n){_classCallCheck(this,t),this.backend=e,this.injector=n,this.chain=null}return _createClass(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(tS,[]);this.chain=e.reduceRight((function(t,e){return new ZC(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}()).\u0275fac=function(t){return new(t||XC)(Yt(TC),Yt(fa))},XC.\u0275prov=ft({token:XC,factory:XC.\u0275fac}),XC),dS=((QC=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:cS,useClass:eS}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:aS,useValue:e.cookieName}:[],e.headerName?{provide:sS,useValue:e.headerName}:[]]}}}]),t}()).\u0275mod=_e({type:QC}),QC.\u0275inj=pt({factory:function(t){return new(t||QC)},providers:[cS,{provide:tS,useExisting:cS,multi:!0},{provide:uS,useClass:lS},{provide:aS,useValue:"XSRF-TOKEN"},{provide:sS,useValue:"X-XSRF-TOKEN"}]}),QC),fS=((KC=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:KC}),KC.\u0275inj=pt({factory:function(t){return new(t||KC)},providers:[JC,{provide:xC,useClass:hS},oS,{provide:TC,useExisting:oS},iS,{provide:rS,useExisting:iS}],imports:[[dS.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),KC),pS=((GC=function(){function t(e,n,r,i,o,a,s){var u=this;_classCallCheck(this,t),this.afs=e,this.afAuth=n,this.router=r,this.ngZone=i,this.localStorageService=o,this.chatService=a,this.httpClient=s,this.profilePhotoSubject=new ly("../../assets/default-profile.png"),this.firstTimeLoggedIn=!0,this.loggedIn=!0,this.afAuth.authState.subscribe((function(t){if(t){u.userData=t,u.chatService.getValueChangesForChatList(u.userData.uid);var e=u.localStorageService.getUserDataFromLocalStorage();null!==e&&u.profilePhotoSubject.next(null===e.photoURL?"/assets/default-profile.png":e.photoURL)}else console.log("Logged out"),u.localStorageService.clearUserDataFromLocalStorage()}))}return _createClass(t,[{key:"forgotPassword",value:function(t){var e=this;return this.afAuth.sendPasswordResetEmail(t).then((function(){window.alert("Password reset email sent, check your inbox."),e.router.navigate(["login"])})).catch((function(t){window.alert("There is no registration record corresponding to this email. Hint: use the email you previously registered with.")}))}},{key:"signUp",value:function(t,e,n,r,i,o,a){var s=this;return this.afAuth.createUserWithEmailAndPassword(t,e).then((function(e){s.emailVerificationRequired?(s.setUserDataForSignUp(e.user,n,r,i,o,a),s.sendVerificationMail(t,n,r)):(s.setUserDataForSignUp(e.user,n,r,i,o,a),window.alert("Thank you for registering for NHG Quality Webinar! A confirmation email will be sent to your registered email shortly."),s.router.navigate(["login"]))})).catch((function(t){window.alert(t.message)}))}},{key:"setUserDataForSignUp",value:function(t,e,n,r,i,o){var a=Object(hy.sha256)("Fr2Df8kQ9v5Sqg3G"+t.uid+e+" "+n+t.email),s=btoa(JSON.stringify({client:"trial",id:t.uid,name:e+" "+n,email:t.email,signature:a})),u=this.afs.doc("users/"+t.uid),l={uid:t.uid,accountCreated:cy.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:s};return u.set(l,{merge:!0})}},{key:"sendVerificationMail",value:function(t,e,n){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.afAuth.currentUser.then((function(t){return t.sendEmailVerification()})).then((function(){e.router.navigate(["verify-email"])})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getCurrentUser",value:function(){return this.afAuth.currentUser}},{key:"signIn",value:function(t,e){var n=this;return this.afAuth.signInWithEmailAndPassword(t,e).then((function(e){console.log("Results for Logging in: ",e.user),n.emailVerificationRequired?1==e.user.emailVerified?n.currentUserInfo=n.afs.collection("users").doc(e.user.uid).get().subscribe((function(t){if(null!=t){null==t.data().photoURL?n.profilePhotoSubject.next("/assets/default-profile.png"):n.profilePhotoSubject.next(t.data().photoURL);var r=new uy(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);n.localStorageService.setUserDataToLocalStorage(r,"signin"),n.router.navigate(["/plenary/Keynote"])}})):(window.alert("Please verify your email. A verification email has been sent to your email address."),n.currentUserInfo=n.afs.collection("users").doc(e.user.uid).get().subscribe((function(e){n.sendVerificationMail(t,e.data().firstName,e.data().lastName)}))):n.currentUserInfo=n.afs.collection("users").doc(e.user.uid).get().subscribe((function(t){if(null!=t){null==t.data().photoURL?n.profilePhotoSubject.next("/assets/default-profile.png"):n.profilePhotoSubject.next(t.data().photoURL);var r=new uy(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);n.localStorageService.setUserDataToLocalStorage(r,"signin"),n.router.navigate(["/plenary/Keynote"])}}))})).catch((function(t){window.alert("There is no registration record corresponding to this email. Registeration has closed.")}))}},{key:"setEmailVerifiedFromAngularFireAuthAPI",value:function(t,e){var n=this;console.log("Checking email verification status: ",e),this.afs.collection("users").doc(t).get().subscribe((function(r){return n.afs.doc("users/"+t).update({emailVerified:e})}))}},{key:"signOut",value:function(){var t=this;return this.afAuth.signOut().then((function(){t.localStorageService.clearUserDataFromLocalStorage(),t.router.navigate(["login"])}))}},{key:"isLoggedIn",get:function(){var t=this.localStorageService.getUserDataFromLocalStorage();return this.emailVerificationRequired?!!t&&null!==t&&!1!==t.emailVerified:!!t}}]),t}()).\u0275fac=function(t){return new(t||GC)(Yt(pb),Yt(Lb),Yt(Ck),Yt(zl),Yt(pC),Yt(EC),Yt(JC))},GC.\u0275prov=ft({token:GC,factory:GC.\u0275fac,providedIn:"root"}),GC);function vS(t){return function(e){return e.lift(new gS(t))}}var gS=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new mS(t),r=F(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}]),t}(),mS=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t)).seenValue=!1,r}return _createClass(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(j),yS=function(){function t(e,n){_classCallCheck(this,t),this.compare=e,this.keySelector=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new bS(t,this.compare,this.keySelector))}}]),t}(),bS=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this,t)).keySelector=i,o.hasKey=!1,"function"==typeof r&&(o.compare=r),o}return _createClass(n,[{key:"compare",value:function(t,e){return t===e}},{key:"_next",value:function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))}}]),n}(v);function _S(t){return function(e){return e.lift(new wS(t))}}var wS=function(){function t(e){_classCallCheck(this,t),this.total=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new kS(t,this.total))}}]),t}(),kS=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return _createClass(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(v);function CS(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var SS,ES=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t,r)).scheduler=t,i.work=r,i}return _createClass(n,[{key:"requestAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(Lm),xS=new(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var 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")||zS(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}()).\u0275fac=function(t){return new(t||FS)(Yt(PS))},FS.\u0275prov=ft({factory:function(){return new FS(Yt(PS))},token:FS,providedIn:"root"}),FS);function zS(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function qS(t){if(!zS(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var WS,GS,KS=function(){function t(e,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];_classCallCheck(this,t),this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return _createClass(t,[{key:"destroy",value:function(){var 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}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.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)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var 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}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Cb(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),QS=((GS=function(){function t(e,n,r){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._document=r}return _createClass(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new KS(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||GS)(Yt(HS),Yt(zl),Yt(Cc))},GS.\u0275prov=ft({factory:function(){return new GS(Yt(HS),Yt(zl),Yt(Cc))},token:GS,providedIn:"root"}),GS),XS=((WS=function(){function t(e,n,r){_classCallCheck(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=r,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}},{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=DS(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=DS(t)}}]),t}()).\u0275fac=function(t){return new(t||WS)(Da(Js),Da(QS),Da(Cc))},WS.\u0275dir=ke({type:WS,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[js]}),WS),$S=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o,a,s,u){var l;return _classCallCheck(this,n),(l=e.call(this,t,r,i,o,u.defer))._focusTrapManager=a,l._inertStrategy=s,l._focusTrapManager.register(_assertThisInitialized(l)),l}return _createClass(n,[{key:"destroy",value:function(){this._focusTrapManager.deregister(this),_get(_getPrototypeOf(n.prototype),"destroy",this).call(this)}},{key:"_enable",value:function(){this._inertStrategy.preventFocus(this),this.toggleAnchors(!0)}},{key:"_disable",value:function(){this._inertStrategy.allowFocus(this),this.toggleAnchors(!1)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._enabled?this._focusTrapManager.register(this):this._focusTrapManager.deregister(this)}}]),n}(KS),YS="undefined"!=typeof Element&&!!Element.prototype.closest;function JS(t,e){return t.matches?t.matches(e):t.msMatchesSelector(e)}var ZS,tE,eE,nE,rE=function(){function t(){_classCallCheck(this,t),this._listener=null}return _createClass(t,[{key:"preventFocus",value:function(t){var e=this;this._listener&&t._document.removeEventListener("focus",this._listener,!0),this._listener=function(n){return e._trapFocus(t,n)},t._ngZone.runOutsideAngular((function(){t._document.addEventListener("focus",e._listener,!0)}))}},{key:"allowFocus",value:function(t){this._listener&&(t._document.removeEventListener("focus",this._listener,!0),this._listener=null)}},{key:"_trapFocus",value:function(t,e){var n=e.target,r=t._element;r.contains(n)||null!==function(t,e){if(!(t instanceof Node))return null;for(var n=t;null!=n&&!(n instanceof Element);)n=n.parentNode;return n&&(YS?n.closest("div.cdk-overlay-pane"):function(t,e){for(var n=t;null!=n&&!(n instanceof Element&&JS(n,"div.cdk-overlay-pane"));)n=n.parentNode;return n||null}(n))}(n)||setTimeout((function(){t.enabled&&!r.contains(t._document.activeElement)&&t.focusFirstTabbableElement()}))}}]),t}(),iE=function t(){_classCallCheck(this,t),this.defer=!1},oE=new Ht("FOCUS_TRAP_INERT_STRATEGY"),aE=((tE=function(){function t(){_classCallCheck(this,t),this._focusTrapStack=[]}return _createClass(t,[{key:"register",value:function(t){this._focusTrapStack=this._focusTrapStack.filter((function(e){return e!==t}));var e=this._focusTrapStack;e.length&&e[e.length-1]._disable(),e.push(t),t._enable()}},{key:"deregister",value:function(t){t._disable();var e=this._focusTrapStack,n=e.indexOf(t);-1!==n&&(e.splice(n,1),e.length&&e[e.length-1]._enable())}}]),t}()).\u0275fac=function(t){return new(t||tE)},tE.\u0275prov=ft({factory:function(){return new tE},token:tE,providedIn:"root"}),tE),sE=((ZS=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this._checker=e,this._ngZone=n,this._focusTrapManager=r,this._document=i,this._inertStrategy=o||new rE}return _createClass(t,[{key:"create",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new iE;return"boolean"==typeof n?(e=new iE).defer=n:e=n,new $S(t,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,e)}}]),t}()).\u0275fac=function(t){return new(t||ZS)(Yt(HS),Yt(zl),Yt(aE),Yt(Cc),Yt(oE,8))},ZS.\u0275prov=ft({factory:function(){return new ZS(Yt(HS),Yt(zl),Yt(aE),Yt(Cc),Yt(oE,8))},token:ZS,providedIn:"root"}),ZS),uE=new Ht("cdk-focus-monitor-default-options"),lE=(eE={passive:!0,capture:!0},function(){if(null==TS&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return TS=!0}}))}finally{TS=TS||!1}return TS}()?eE:!!eE.capture),cE=((nE=function(){function t(e,n,r,i){var o=this;_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!o._lastTouchTarget){var e=function(t){return 0===t.buttons}(t)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=hE(t),o._touchTimeoutId=setTimeout((function(){return o._lastTouchTarget=null}),650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout((function(){return o._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(t){for(var e=hE(t),n="focus"===t.type?o._onFocus:o._onBlur,r=e;r;r=r.parentElement)n.call(o,t,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return _createClass(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Tm(null);var n=LS(t),r=function(t){if(function(){if(null==IS){var t="undefined"!=typeof document?document.head:null;IS=!(!t||!t.createShadowRoot&&!t.attachShadow)}return IS}()){var 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();var o={checkChildren:e,subject:new I,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject.asObservable()}},{key:"stopMonitoring",value:function(t){var e=LS(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var r=LS(t);this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n)}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach((function(e,n){return t.stopMonitoring(n)}))}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(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)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular((function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout((function(){return e._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(t){var e=hE(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===hE(t))){var r=this._getFocusOrigin(t);this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run((function(){return t.next(e)}))}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular((function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,lE),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,lE)})),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,lE),t.addEventListener("mousedown",e._documentMousedownListener,lE),t.addEventListener("touchstart",e._documentTouchstartListener,lE),n.addEventListener("focus",e._windowFocusListener)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,lE),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,lE),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,lE),r.removeEventListener("mousedown",this._documentMousedownListener,lE),r.removeEventListener("touchstart",this._documentTouchstartListener,lE),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}]),t}()).\u0275fac=function(t){return new(t||nE)(Yt(zl),Yt(PS),Yt(Cc,8),Yt(uE,8))},nE.\u0275prov=ft({factory:function(){return new nE(Yt(zl),Yt(PS),Yt(Cc,8),Yt(uE,8))},token:nE,providedIn:"root"}),nE);function hE(t){return t.composedPath?t.composedPath()[0]:t.target}var dE,fE,pE=((fE=function(){function t(e,n){_classCallCheck(this,t),this._platform=e,this._document=n}return _createClass(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var 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}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var 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");var 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"))}}}]),t}()).\u0275fac=function(t){return new(t||fE)(Yt(PS),Yt(Cc))},fE.\u0275prov=ft({factory:function(){return new fE(Yt(PS),Yt(Cc))},token:fE,providedIn:"root"}),fE),vE=((dE=function t(e){_classCallCheck(this,t),e._applyBodyHighContrastModeCssClasses()}).\u0275mod=_e({type:dE}),dE.\u0275inj=pt({factory:function(t){return new(t||dE)(Yt(pE))},imports:[[NS,BS]]}),dE),gE=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new mE(t,this.durationSelector))}}]),t}(),mE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).durationSelector=r,i.hasValue=!1,i}return _createClass(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=F(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(t,e,n,r){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(j);function yE(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Um;return e=function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=-1;return Ry(e)?r=Number(e)<1?1:Number(e):A(e)&&(n=e),A(n)||(n=Um),new k((function(e){var i=Ry(t)?t:+t-n.now();return n.schedule(CS,i,{index:0,period:r,subscriber:e})}))}(t,n)},function(t){return t.lift(new gE(e))}}var bE,_E,wE,kE,CE,SE,EE=new Ht("cdk-dir-doc",{providedIn:"root",factory:function(){return Jt(Cc)}}),xE=((SE=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new tl,e){var n=e.documentElement?e.documentElement.dir:null,r=(e.body?e.body.dir:null)||n;this.value="ltr"===r||"rtl"===r?r:"ltr"}}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}()).\u0275fac=function(t){return new(t||SE)(Yt(EE,8))},SE.\u0275prov=ft({factory:function(){return new SE(Yt(EE,8))},token:SE,providedIn:"root"}),SE),TE=((CE=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:CE}),CE.\u0275inj=pt({factory:function(t){return new(t||CE)}}),CE),IE=((kE=function(){function t(e,n,r){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new I,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return _createClass(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe((function(){return e._scrolled.next(t)})))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new k((function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(yE(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Tm()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Dm((function(t){return!t||n.indexOf(t)>-1})))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach((function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Im(t._getWindow().document,"scroll").subscribe((function(){return t._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||kE)(Yt(zl),Yt(PS),Yt(Cc,8))},kE.\u0275prov=ft({factory:function(){return new kE(Yt(zl),Yt(PS),Yt(Cc,8))},token:kE,providedIn:"root"}),kE),OE=((wE=function(){function t(e,n,r){var i=this;_classCallCheck(this,t),this._platform=e,this._change=new I,this._changeListener=function(t){i._change.next(t)},this._document=r,n.runOutsideAngular((function(){if(e.isBrowser){var t=i._getWindow();t.addEventListener("resize",i._changeListener),t.addEventListener("orientationchange",i._changeListener)}i.change().subscribe((function(){return i._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var 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}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(yE(t)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||wE)(Yt(PS),Yt(zl),Yt(Cc,8))},wE.\u0275prov=ft({factory:function(){return new wE(Yt(PS),Yt(zl),Yt(Cc,8))},token:wE,providedIn:"root"}),wE),AE=((_E=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:_E}),_E.\u0275inj=pt({factory:function(t){return new(t||_E)}}),_E),PE=((bE=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:bE}),bE.\u0275inj=pt({factory:function(t){return new(t||bE)},imports:[[TE,NS,AE],TE,AE]}),bE);function NE(){throw Error("Host already has a portal attached")}var DE,RE=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"attach",value:function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&NE(),this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var 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())}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),ME=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var a;return _classCallCheck(this,n),(a=e.call(this)).component=t,a.viewContainerRef=r,a.injector=i,a.componentFactoryResolver=o,a}return n}(RE),LE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=r,o.context=i,o}return _createClass(n,[{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,_get(_getPrototypeOf(n.prototype),"detach",this).call(this)}},{key:"origin",get:function(){return this.templateRef.elementRef}}]),n}(RE),FE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).element=t instanceof Js?t.nativeElement:t,r}return n}(RE),jE=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o,a){var s,u;return _classCallCheck(this,n),(u=e.call(this)).outletElement=t,u._componentFactoryResolver=r,u._appRef=i,u._defaultInjector=o,u.attachDomPortal=function(t){if(!u._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var e=t.element;if(!e.parentNode)throw Error("DOM portal content must be attached to a parent node.");var r=u._document.createComment("dom-portal");e.parentNode.insertBefore(r,e),u.outletElement.appendChild(e),_get((s=_assertThisInitialized(u),_getPrototypeOf(n.prototype)),"setDisposeFn",s).call(s,(function(){r.parentNode&&r.parentNode.replaceChild(e,r)}))},u._document=a,u}return _createClass(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn((function(){return e.destroy()}))):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn((function(){n._appRef.detachView(e.hostView),e.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(e)),e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef,t.context);return r.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),r.detectChanges(),this.setDisposeFn((function(){var t=n.indexOf(r);-1!==t&&n.remove(t)})),r}},{key:"dispose",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(function(){function t(){_classCallCheck(this,t),this._isDisposed=!1,this.attachDomPortal=null}return _createClass(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&NE(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof ME?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof LE?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof FE?(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.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}()),UE=((DE=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:DE}),DE.\u0275inj=pt({factory:function(t){return new(t||DE)}}),DE),VE=function(){function t(e,n){_classCallCheck(this,t),this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return _createClass(t,[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=MS(-this._previousScrollPosition.left),t.style.top=MS(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var 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}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}]),t}();function BE(){return Error("Scroll strategy has already been attached.")}var HE=function(){function t(e,n,r,i){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run((function(){return o._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw BE();this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),zE=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function qE(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function WE(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var GE,KE=function(){function t(e,n,r,i){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw BE();this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;qE(e,[{width:r,height:i,bottom:i,right:r,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),QE=((GE=function t(e,n,r,i){var o=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new zE},this.close=function(t){return new HE(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new VE(o._viewportRuler,o._document)},this.reposition=function(t){return new KE(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=i}).\u0275fac=function(t){return new(t||GE)(Yt(IE),Yt(OE),Yt(zl),Yt(Cc))},GE.\u0275prov=ft({factory:function(){return new GE(Yt(IE),Yt(OE),Yt(zl),Yt(Cc))},token:GE,providedIn:"root"}),GE),XE=function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new zE,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,this.excludeFromOutsideClick=[],e)for(var n=0,r=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}()).\u0275fac=function(t){return new(t||nx)(Yt(Cc))},nx.\u0275prov=ft({factory:function(){return new nx(Yt(Cc))},token:nx,providedIn:"root"}),nx),ox=((ex=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t))._keydownListener=function(t){for(var e=r._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},r}return _createClass(n,[{key:"add",value:function(t){_get(_getPrototypeOf(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(ix)).\u0275fac=function(t){return new(t||ex)(Yt(Cc))},ex.\u0275prov=ft({factory:function(){return new ex(Yt(Cc))},token:ex,providedIn:"root"}),ex),ax=((tx=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t))._platform=r,i._cursorStyleIsSet=!1,i._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=i._attachedOverlays,r=n.length-1;r>-1;r--){var o=n[r];if(!(o._outsidePointerEvents.observers.length<1)){if([].concat(_toConsumableArray(o.getConfig().excludeFromOutsideClick),[o.overlayElement]).some((function(t){return t.contains(e)})))break;o._outsidePointerEvents.next(t)}}},i}return _createClass(n,[{key:"add",value:function(t){_get(_getPrototypeOf(n.prototype),"add",this).call(this,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)}},{key:"detach",value:function(){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)}}]),n}(ix)).\u0275fac=function(t){return new(t||tx)(Yt(Cc),Yt(PS))},tx.\u0275prov=ft({factory:function(){return new tx(Yt(Cc),Yt(PS))},token:tx,providedIn:"root"}),tx),sx=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),ux=((rx=function(){function t(e,n){_classCallCheck(this,t),this._platform=n,this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||sx)for(var e=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;nf&&(f=g,d=v)}}catch(m){p.e(m)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&dx(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)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var 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}}},{key:"_getOverlayFit",value:function(t,e,n,r){var i=t.x,o=t.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var u=0-o,l=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,u,l),d=c*h;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:c==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=fx(this._overlayRef.getConfig().minHeight),a=fx(this._overlayRef.getConfig().minWidth),s=t.fitsInViewportHorizontally||null!=a&&a<=i;return(t.fitsInViewportVertically||null!=o&&o<=r)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var r,i,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),u=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);return r=e.width<=o.width?l||-a:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-h/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)a=t.x,o=u.right-t.x;else{var d=Math.min(u.right-t.x+u.left,t.x),f=this._lastBoundingBoxSize.width;o=2*d,a=t.x-d,o>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var 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));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=MS(n.height),r.top=MS(n.top),r.bottom=MS(n.bottom),r.width=MS(n.width),r.left=MS(n.left),r.right=MS(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",i&&(r.maxHeight=MS(i)),o&&(r.maxWidth=MS(o))}this._lastBoundingBoxSize=n,dx(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){dx(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){dx(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},r=this._hasExactPosition(),i=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){var a=this._viewportRuler.getViewportScrollPosition();dx(n,this._getExactOverlayY(e,t,a)),dx(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",u=this._getOffset(e,"x"),l=this._getOffset(e,"y");u&&(s+="translateX(".concat(u,"px) ")),l&&(s+="translateY(".concat(l,"px)")),n.transform=s.trim(),o.maxHeight&&(r?n.maxHeight=MS(o.maxHeight):i&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=MS(o.maxWidth):i&&(n.maxWidth="")),dx(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var r={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var 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=MS(i.y),r}},{key:"_getExactOverlayX",value:function(t,e,n){var r={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n)),"right"===(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?r.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":r.left=MS(i.x),r}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:WE(t,n),isOriginOutsideView:qE(t,n),isOverlayClipped:WE(e,n),isOverlayOutsideView:qE(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),r=n.width,i=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),u=!("100%"!==i&&"100vh"!==i||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=u?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?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=u?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var 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}}}]),t}(),bx=((vx=function(){function t(e,n,r,i){_classCallCheck(this,t),this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=i}return _createClass(t,[{key:"global",value:function(){return new yx}},{key:"connectedTo",value:function(t,e,n){return new mx(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new hx(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||vx)(Yt(OE),Yt(Cc),Yt(PS),Yt(ux))},vx.\u0275prov=ft({factory:function(){return new vx(Yt(OE),Yt(Cc),Yt(PS),Yt(ux))},token:vx,providedIn:"root"}),vx),_x=0,wx=((px=function(){function t(e,n,r,i,o,a,s,u,l,c,h){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=a,this._ngZone=s,this._document=u,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new XE(t);return i.direction=i.direction||this._directionality.value,new lx(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-"+_x++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(lc)),new jE(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}()).\u0275fac=function(t){return new(t||px)(Yt(QE),Yt(ux),Yt(Ys),Yt(bx),Yt(ox),Yt(fa),Yt(zl),Yt(Cc),Yt(xE),Yt(zc,8),Yt(ax,8))},px.\u0275prov=ft({token:px,factory:px.\u0275fac}),px),kx={provide:new Ht("cdk-connected-overlay-scroll-strategy"),deps:[wx],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Cx=((gx=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:gx}),gx.\u0275inj=pt({factory:function(t){return new(t||gx)},providers:[wx,kx],imports:[[TE,UE,PE],PE]}),gx),Sx=["*"],Ex=["mdbBtn",""],xx=["card"];function Tx(t,e){if(1&t){var n=za();ja(0,"div",6),ja(1,"a",7),Ga("click",(function(){return tn(n),Ya().previousSlide()})),Va(2,"i",8),Ua(),ja(3,"a",7),Ga("click",(function(){return tn(n),Ya().nextSlide()})),Va(4,"i",9),Ua(),Ua()}if(2&t){var r=Ya();Ci(1),hs("disabled",0===r.activeSlide&&r.noWrap),Ci(2),hs("disabled",r.isLast(r.activeSlide)&&r.noWrap)}}function Ix(t,e){if(1&t){var n=za();ja(0,"li",12),Ga("click",(function(){tn(n);var t=e.index;return Ya(2).selectSlide(t)})),Ua()}2&t&&hs("active",!0===e.$implicit.active)}function Ox(t,e){if(1&t&&(ja(0,"ol",10),Pa(1,Ix,1,2,"li",11),Ua()),2&t){var n=Ya();Ci(1),La("ngForOf",n.slides)}}function Ax(t,e){if(1&t){var n=za();ja(0,"li",12),Ga("click",(function(){tn(n);var t=e.index;return Ya(2).selectSlide(t)})),Va(1,"img",13),Ua()}if(2&t){var r=e.$implicit,i=Ya(2);hs("active",!0===r.active),Ci(1),es("src",i.getImg(r),ei)}}function Px(t,e){if(1&t&&(ja(0,"ol",10),Pa(1,Ax,2,3,"li",11),Ua()),2&t){var n=Ya();Ci(1),La("ngForOf",n.slides)}}function Nx(t,e){if(1&t){var n=za();ja(0,"a",14),Ga("click",(function(){return tn(n),Ya().previousSlide()})),Va(1,"span",15),ja(2,"span",16),Ss(3,"Previous"),Ua(),Ua()}if(2&t){var r=Ya();hs("disabled",0===r.activeSlide&&r.noWrap)}}function Dx(t,e){if(1&t){var n=za();ja(0,"a",17),Ga("click",(function(){return tn(n),Ya().nextSlide()})),Va(1,"span",18),ja(2,"span",16),Ss(3,"Next"),Ua(),Ua()}if(2&t){var r=Ya();hs("disabled",r.isLast(r.activeSlide)&&r.noWrap)}}var Rx=["mdbCollapse",""],Mx=["mdbDropdown",""],Lx=function(t,e,n,r,i){return{fas:t,far:e,fab:n,fal:r,fad:i}},Fx=["mdbModal",""],jx=["navbar"],Ux=["mobile"],Vx=["nav"],Bx=["container"],Hx=["toggler"];function zx(t,e){1&t&&ts(0,4,["*ngIf","this.doubleNav == true"])}function qx(t,e){if(1&t){var n=za();ja(0,"button",7,8),Ga("click",(function(t){return tn(n),Ya(2).toggle(),t.preventDefault()})),Va(2,"span",9),Ua()}if(2&t){var r=Ya(2);Oa("aria-controls",r.collapseId)("aria-expanded",r.ariaExpanded)}}function Wx(t,e){if(1&t&&(ja(0,"div"),Pa(1,qx,3,2,"button",6),Ua()),2&t){var n=Ya();Ci(1),La("ngIf",0!==n.el.nativeElement.children.length)}}var Gx=[[["mdb-navbar-brand"]],[["logo"]],"*",[["links"]],[["navlinks"]]],Kx=function(t){return{container:t}},Qx=function(t){return{display:t}},Xx=function(t,e,n){return{collapse:t,show:e,collapsing:n}},$x=["mdb-navbar-brand","logo","*","links","navlinks"],Yx=function(t){return{disabled:t}};function Jx(t,e){if(1&t){var n=za();ja(0,"button",5),Ga("click",(function(){return tn(n),Ya().remove()})),Ss(1," \xd7\n"),Ua()}}function Zx(t,e){if(1&t&&(ja(0,"div"),Ss(1),Ua()),2&t){var n=Ya();ds(n.options.titleClass),Oa("aria-label",n.title),Ci(1),xs(" ",n.title,"\n")}}function tT(t,e){if(1&t&&Va(0,"div",6),2&t){var n=Ya();ds(n.options.messageClass),La("innerHTML",n.message,ti)}}function eT(t,e){if(1&t&&(ja(0,"div"),Ss(1),Ua()),2&t){var n=Ya();ds(n.options.messageClass),Oa("aria-label",n.message),Ci(1),xs(" ",n.message,"\n")}}function nT(t,e){if(1&t){var n=za();ja(0,"button",7),Ga("click",(function(){return tn(n),Ya().onActionClick()})),Ss(1),Ua()}if(2&t){var r=Ya();La("ngClass",r.options.actionButtonClass),Ci(1),Es(r.options.actionButton)}}function rT(t,e){if(1&t&&(ja(0,"div"),Va(1,"div",8),Ua()),2&t){var n=Ya();Ci(1),cs("width",n.width,"%")}}var iT=["sidenav"],oT=["overlay"],aT=["itemsList"],sT=["tabEl"];function uT(t,e){1&t&&Va(0,"span",8)}function lT(t,e){if(1&t){var n=za();ja(0,"span"),ja(1,"span",13),Ga("click",(function(t){tn(n);var e=Ya(2).$implicit,r=Ya();return t.preventDefault(),r.removeTab(e)})),Ua(),Ua()}}var cT=function(t){return{"waves-light":t}};function hT(t,e){if(1&t&&(ja(0,"a",9,10),Va(2,"span",11),Pa(3,lT,2,0,"span",12),Ua()),2&t){var n=Ya().$implicit,r=Ya();hs("active",n.active)("disabled",n.disabled),La("ngClass",Hu(8,cT,!r.disableWaves)),Ci(2),La("mdbNgTransclude",n.headingRef)("innerHTML",n.heading,ti),Ci(1),La("ngIf",n.removable)}}function dT(t,e){if(1&t){var n=za();ja(0,"span"),ja(1,"span",13),Ga("click",(function(t){tn(n);var e=Ya(2).$implicit,r=Ya();return t.preventDefault(),r.removeTab(e)})),Ua(),Ua()}}function fT(t,e){if(1&t&&(ja(0,"a",14,10),Va(2,"span",11),Pa(3,dT,2,0,"span",12),Ua()),2&t){var n=Ya().$implicit,r=Ya();hs("active",n.active)("disabled",n.disabled),La("ngClass",Hu(8,cT,!r.disableWaves)),Ci(2),La("mdbNgTransclude",n.headingRef)("innerHTML",n.heading,ti),Ci(1),La("ngIf",n.removable)}}var pT=function(t,e,n){return{"ml-auto":t,"list-group-item-action":e,"nav-item":n}};function vT(t,e){if(1&t){var n=za();ja(0,"li",2),Ga("click",(function(t){tn(n);var r=e.index;return Ya().click(t,r)})),Pa(1,uT,1,0,"span",5),Pa(2,hT,4,10,"a",6),Pa(3,fT,4,10,"a",7),Ua()}if(2&t){var r=e.$implicit,i=e.index,o=Ya();ds(r.customClass),hs("active",r.active)("disabled",r.disabled),La("ngClass",qu(11,pT,"content"===r.type&&0===i,o.buttonClass.includes("list-group"),"content"!==r.type)),Ci(1),La("ngIf","content"!==o.tabs[i].type&&o.tabs[i+1]&&"content"===o.tabs[i+1].type),Ci(1),La("ngIf","content"!==r.type),Ci(1),La("ngIf","content"===r.type)}}var gT=["plate"],mT=["hand"],yT=["fg"],bT=["bg"],_T=function(t,e){return{left:t,top:e}},wT=function(t){return{active:t}},kT=function(t){return{visibility:t}},CT=["focus"],ST=["digitalMinute"];function ET(t,e){if(1&t){var n=za();ja(0,"div",34),ja(1,"span",35),Ga("click",(function(){return tn(n),Ya()._setAmPm("AM")}))("keydown.enter",(function(){return tn(n),Ya()._setAmPm("AM")})),Ss(2,"AM"),Ua(),ja(3,"span",35),Ga("click",(function(){return tn(n),Ya()._setAmPm("PM")}))("keydown.enter",(function(){return tn(n),Ya()._setAmPm("PM")})),Ss(4,"PM"),Ua(),Ua()}if(2&t){var r=Ya();Ci(1),La("ngClass",Hu(2,wT,"AM"==r._selectedTime.ampm)),Ci(2),La("ngClass",Hu(4,wT,"PM"==r._selectedTime.ampm))}}function xT(t,e){if(1&t&&(ja(0,"div",36),Ss(1),Ua()),2&t){var n=e.$implicit;es("id",n.hour),La("ngClass",Hu(4,Yx,n.disabled))("ngStyle",zu(6,_T,n.left+"px",n.top+"px")),Ci(1),xs(" ",n.hour," ")}}function TT(t,e){if(1&t&&(ja(0,"div",37),Ss(1),Ua()),2&t){var n=e.$implicit;La("ngClass",Hu(3,Yx,n.disabled))("ngStyle",zu(5,_T,n.left+"px",n.top+"px")),Ci(1),xs(" ",n.min," ")}}function IT(t,e){if(1&t){var n=za();ja(0,"button",38),Ga("click",(function(){return tn(n),Ya()._clearBtnClicked()})),Ss(1),Ua()}if(2&t){var r=Ya();Ci(1),xs(" ",r.clearButton," ")}}function OT(t,e){if(1&t){var n=za();ja(0,"button",39),Ga("click",(function(){return tn(n),Ya()._closeBtnClicked()})),Ss(1),Ua()}if(2&t){var r=Ya();Ci(1),xs(" ",r.closeButton," ")}}var AT,PT,NT,DT,RT,MT,LT,FT,jT,UT,VT,BT,HT,zT,qT=function(t,e){return{active:t,disabled:e}},WT=function(t){return{"mdb-timepicker-dial-out":t}},GT=((zT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._renderer=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._renderer.addClass(this._el.nativeElement,"badge"),this.color&&this.color.split(" ").forEach((function(e){t._renderer.addClass(t._el.nativeElement,e)}))}}]),t}()).\u0275fac=function(t){return new(t||zT)(Da(Js),Da(nu))},zT.\u0275cmp=ge({type:zT,selectors:[["mdb-badge"]],hostVars:16,hostBindings:function(t,e){2&t&&hs("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:Sx,decls:2,vars:4,template:function(t,e){1&t&&(Za(),ja(0,"span"),ts(1),Ua()),2&t&&Is("",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}),zT),KT=((HT=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:HT}),HT.\u0275inj=pt({factory:function(t){return new(t||HT)}}),HT),QT=((BT=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:BT}),BT.\u0275inj=pt({factory:function(t){return new(t||BT)},imports:[[od]]}),BT),XT=((VT=function(){function t(e,n){_classCallCheck(this,t),this.el=e,this.renderer=n,this.color="",this.rounded=!1,this.gradient="",this.outline=!1,this.flat=!1,this.size="",this.block=!1,this.floating=!1}return _createClass(t,[{key:"ngOnInit",value:function(){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()}},{key:"ngOnChanges",value:function(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)){var e=this.outlineClass;this.outlineClass="btn-outline-"+this.color,this.renderer.removeClass(this.el.nativeElement,e),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")))}},{key:"initClasses",value:function(){""!==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"))}}]),t}()).\u0275fac=function(t){return new(t||VT)(Da(Js),Da(nu))},VT.\u0275cmp=ge({type:VT,selectors:[["","mdbBtn",""]],inputs:{color:"color",rounded:"rounded",gradient:"gradient",outline:"outline",flat:"flat",size:"size",block:"block",floating:"floating"},features:[js],attrs:Ex,ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(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}),VT),$T=((UT=function(){function t(e,n){_classCallCheck(this,t),this.renderer=e,this.el=n}return _createClass(t,[{key:"ngOnInit",value:function(){this.createCaptionElement()}},{key:"createCaptionElement",value:function(){var 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}},{key:"showCaption",value:function(){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")}}]),t}()).\u0275fac=function(t){return new(t||UT)(Da(nu),Da(Js))},UT.\u0275dir=ke({type:UT,selectors:[["","mdbFixedCaption",""]],inputs:{caption:["mdbFixedCaption","caption"],collapseButtonActivator:["collapseButton","collapseButtonActivator"]}}),UT),YT=((jT=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:jT}),jT.\u0275inj=pt({factory:function(t){return new(t||jT)}}),jT),JT=((FT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n}return _createClass(t,[{key:"ngOnInit",value:function(){this._r.addClass(this._el.nativeElement,"card-footer")}}]),t}()).\u0275fac=function(t){return new(t||FT)(Da(Js),Da(nu))},FT.\u0275cmp=ge({type:FT,selectors:[["mdb-card-footer"]],ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2,changeDetection:0}),FT),ZT=((LT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n}return _createClass(t,[{key:"ngOnInit",value:function(){this._r.addClass(this._el.nativeElement,"card-title")}}]),t}()).\u0275fac=function(t){return new(t||LT)(Da(Js),Da(nu))},LT.\u0275cmp=ge({type:LT,selectors:[["mdb-card-title"]],ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2,changeDetection:0}),LT),tI=((MT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||MT)},MT.\u0275cmp=ge({type:MT,selectors:[["mdb-card-text"]],inputs:{class:"class"},ngContentSelectors:Sx,decls:2,vars:3,template:function(t,e){1&t&&(Za(),ja(0,"p"),ts(1),Ua()),2&t&&Ts("card-text ",e.class," ")},encapsulation:2,changeDetection:0}),MT),eI=((RT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._r.addClass(this._el.nativeElement,"card-body"),this.class&&this.class.split(" ").forEach((function(e){t._r.addClass(t._el.nativeElement,e)}))}},{key:"cascade",set:function(t){t&&this._r.addClass(this._el.nativeElement,"card-body-cascade")}}]),t}()).\u0275fac=function(t){return new(t||RT)(Da(Js),Da(nu))},RT.\u0275cmp=ge({type:RT,selectors:[["mdb-card-body"]],inputs:{cascade:"cascade",class:"class"},ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2,changeDetection:0}),RT),nI=((DT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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((function(e){t._r.addClass(t._el.nativeElement,e)}))}},{key:"narrower",set:function(t){t?this._r.addClass(this._el.nativeElement,"narrower"):!t&&this._el.nativeElement.classList.contains("narrower")&&this._r.removeClass(this._el.nativeElement,"narrower")}},{key:"reverse",set:function(t){t?this._r.addClass(this._el.nativeElement,"reverse"):!t&&this._el.nativeElement.classList.contains("reserse")&&this._r.removeClass(this._el.nativeElement,"reverse")}},{key:"dark",set:function(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")}},{key:"bgColor",set:function(t){t&&this._r.addClass(this._el.nativeElement,t)}},{key:"borderColor",set:function(t){t&&this._r.addClass(this._el.nativeElement,t)}}]),t}()).\u0275fac=function(t){return new(t||DT)(Da(Js),Da(nu))},DT.\u0275cmp=ge({type:DT,selectors:[["mdb-card"]],viewQuery:function(t,e){var n;1&t&&dl(xx,!0),2&t&&hl(n=gl())&&(e.card=n.first)},inputs:{narrower:"narrower",reverse:"reverse",dark:"dark",bgColor:"bgColor",borderColor:"borderColor",class:"class",cascade:"cascade",wider:"wider",imageBackground:"imageBackground"},ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(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}),DT),rI=((NT=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||NT)},NT.\u0275cmp=ge({type:NT,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&&Va(0,"img",0),2&t&&La("src",e.src,ei)("alt",e.alt)},encapsulation:2,changeDetection:0}),NT),iI=((PT=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._r.addClass(this._el.nativeElement,"card-header"),this.class&&this.class.split(" ").forEach((function(e){t._r.addClass(t._el.nativeElement,e)}))}}]),t}()).\u0275fac=function(t){return new(t||PT)(Da(Js),Da(nu))},PT.\u0275cmp=ge({type:PT,selectors:[["mdb-card-header"]],inputs:{class:"class"},ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2,changeDetection:0}),PT),oI=((AT=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:AT}),AT.\u0275inj=pt({factory:function(t){return new(t||AT)},imports:[[od]]}),AT),aI="undefined"!=typeof window&&window||{},sI=aI.document,uI=aI.navigator;function lI(){return"bs4"===aI.__theme}var cI,hI,dI,fI,pI,vI,gI,mI,yI=((hI=function t(e){_classCallCheck(this,t),this.animated=!1,this.directionNext=!1,this.directionLeft=!1,this.directionPrev=!1,this.directionRight=!1,this.el=null,this.el=e}).\u0275fac=function(t){return new(t||hI)(Da(Js))},hI.\u0275cmp=ge({type:hI,selectors:[["mdb-slide"],["mdb-carousel-item"]],hostVars:14,hostBindings:function(t,e){2&t&&hs("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:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2}),hI),bI=((cI=function t(){_classCallCheck(this,t),this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.keyboard=!1}).\u0275prov=ft({token:cI,factory:cI.\u0275fac=function(t){return new(t||cI)}}),cI),_I=function(t){return t[t.UNKNOWN=0]="UNKNOWN",t[t.NEXT=1]="NEXT",t[t.PREV=2]="PREV",t}({}),wI=((mI=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.el=n,this.cdRef=i,this.renderer=o,this.SWIPE_ACTION={LEFT:"swipeleft",RIGHT:"swiperight"},this._destroy$=new I,this.destroyed=!1,this.animationEnd=!0,this.isBrowser=!1,this.isControls=!0,this.class="",this.type="",this.animation="",this.allowSwipe=!0,this.activeSlideChange=new tl(!1),this.isBrowser=ad(r),Object.assign(this,e)}return _createClass(t,[{key:"checkNavigation",value:function(){return"carousel-multi-item"!==this.type}},{key:"checkDots",value:function(){return"carousel-thumbnails"!==this.type}},{key:"getImg",value:function(t){return t.el.nativeElement.querySelector("img").src}},{key:"ngOnDestroy",value:function(){this.destroyed=!0,this._destroy$.next(),this._destroy$.complete()}},{key:"ngAfterViewInit",value:function(){var t=this;this.play(),this._slidesList.changes.pipe(vS(this._destroy$)).subscribe((function(e){t._slidesList=e,setTimeout((function(){t._select(0)}),0)})),this.activeSlideIndex?setTimeout((function(){t._select(t.activeSlideIndex),t.activeSlideChange.emit({relatedTarget:t.activeSlide})}),0):setTimeout((function(){t._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"))}},{key:"swipe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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()))}},{key:"nextSlide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.restartTimer();var e=this.el.nativeElement.getElementsByTagName("video"),n=this.findNextSlideIndex(_I.NEXT,t);if(e.length>0)for(var r=0;r0&&void 0!==arguments[0]&&arguments[0];this.restartTimer();var e=this.el.nativeElement.getElementsByTagName("video"),n=_I.PREV,r=this.findNextSlideIndex(n,t);if(e.length>0)for(var i=0;it&&this.slideAnimation(t,_I.PREV):"fade"===this.animation?t!==this.activeSlide&&this.fadeAnimation(t):this.animation||setTimeout((function(){var n=t=this.slides.length}},{key:"findNextSlideIndex",value:function(t,e){var n=0;if(e||!this.isLast(this.activeSlide)||t===_I.PREV||!this.noWrap){switch(t){case _I.NEXT:n=this.isLast(this._currentActiveSlide)?!e&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case _I.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}}},{key:"_select",value:function(t){if(isNaN(t))this.pause();else{var e=this.slides[this._currentActiveSlide];e&&(e.active=!1);var n=this.slides[t];n&&(this._currentActiveSlide=t,n.active=!0,this.activeSlide=t),this.cdRef.markForCheck()}}},{key:"restartTimer",value:function(){var t=this;if(this.resetTimer(),this.isBrowser){var e=+this.interval;!isNaN(e)&&e>0&&(this.currentInterval=setInterval((function(){var e=+t.interval;t.isPlaying&&!isNaN(t.interval)&&e>0&&t.slides.length?t.nextSlide():t.pause()}),e))}}},{key:"resetTimer",value:function(){this.isBrowser&&this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}},{key:"hasClass",value:function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}},{key:"classAdd",value:function(t,e){t.classList?t.classList.add(e):this.hasClass(t,e)||(t.className+=" "+e)}},{key:"removeClass",value:function(t,e){if(t.classList)t.classList.remove(e);else if(this.hasClass(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}},{key:"keyboardControl",value:function(t){this.keyboard&&(39===t.keyCode&&this.nextSlide(),37===t.keyCode&&this.previousSlide())}},{key:"focus",value:function(){this.el.nativeElement.focus()}},{key:"slides",get:function(){return this._slidesList.toArray()}},{key:"activeSlide",set:function(t){this._slidesList&&t!==this._currentActiveSlide&&this._select(t)},get:function(){return this._currentActiveSlide}},{key:"interval",get:function(){return this._interval},set:function(t){this._interval=t,this.restartTimer()}},{key:"isBs4",get:function(){return!lI()}}]),t}()).\u0275fac=function(t){return new(t||mI)(Da(bI),Da(Js),Da(Tl),Da(Yo),Da(nu))},mI.\u0275cmp=ge({type:mI,selectors:[["mdb-carousel"]],contentQueries:function(t,e,n){var r;1&t&&vl(n,yI,!1),2&t&&hl(r=gl())&&(e._slidesList=r)},hostBindings:function(t,e){1&t&&Ga("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:Sx,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&&(Za(),ja(0,"div",0),Ga("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()})),Pa(1,Tx,5,4,"div",1),Pa(2,Ox,2,1,"ol",2),Pa(3,Px,2,1,"ol",2),ja(4,"div",3),ts(5),Ua(),Pa(6,Nx,4,2,"a",4),Pa(7,Dx,4,2,"a",5),Ua()),2&t&&(Is("carousel ",e.class," ",e.type,""),Ci(1),La("ngIf",e.slides.length>1&&!e.checkNavigation()&&e.isControls),Ci(1),La("ngIf",e.slides.length>1&&e.checkDots()&&e.isControls),Ci(1),La("ngIf",e.slides.length>1&&!e.checkDots()&&e.isControls),Ci(3),La("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls),Ci(1),La("ngIf",e.slides.length>1&&e.checkNavigation()&&e.isControls))},directives:[Rh,XT,Nh],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}),mI),kI=((gI=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:gI}),gI.\u0275inj=pt({factory:function(t){return new(t||gI)},providers:[bI],imports:[[od,YT]]}),gI),CI=((vI=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:vI}),vI.\u0275inj=pt({factory:function(t){return new(t||vI)}}),vI),SI=((pI=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:pI}),pI.\u0275inj=pt({factory:function(t){return new(t||pI)},imports:[[od,Em]]}),pI),EI=((fI=function(){function t(e){_classCallCheck(this,t),this._cdRef=e,this.isCollapsed=!0,this.showBsCollapse=new tl,this.shownBsCollapse=new tl,this.hideBsCollapse=new tl,this.hiddenBsCollapse=new tl,this.collapsed=new tl,this.expanded=new tl,this.overflow="hidden"}return _createClass(t,[{key:"onExpandBodyDone",value:function(t){var e=this;setTimeout((function(){"expanded"===t.toState?(e.shownBsCollapse.emit(e),e.expanded.emit(e),e.overflow="visible",e.showCaptions()):(e.hiddenBsCollapse.emit(e),e.collapsed.emit(e))}),0)}},{key:"showCaptions",value:function(){this.captions.forEach((function(t){return t.showCaption()}))}},{key:"toggle",value:function(){this.isCollapsed?this.show():this.hide()}},{key:"show",value:function(){this.expandAnimationState="expanded",this.isCollapsed=!1,this.showBsCollapse.emit(this),this._cdRef.markForCheck()}},{key:"hide",value:function(){this.overflow="hidden",this.expandAnimationState="collapsed",this.isCollapsed=!0,this.hideBsCollapse.emit(this),this._cdRef.markForCheck()}},{key:"initializeCollapseState",value:function(){this.isCollapsed?this.hide():this.show()}},{key:"ngOnInit",value:function(){this.initializeCollapseState()}}]),t}()).\u0275fac=function(t){return new(t||fI)(Da(Yo))},fI.\u0275cmp=ge({type:fI,selectors:[["","mdbCollapse",""]],contentQueries:function(t,e,n){var r;1&t&&vl(n,$T,!1),2&t&&hl(r=gl())&&(e.captions=r)},hostVars:3,hostBindings:function(t,e){1&t&&Ka("@expandBody.done",(function(t){return e.onExpandBodyDone(t)})),2&t&&(As("@expandBody",e.expandAnimationState),cs("overflow",e.overflow))},inputs:{isCollapsed:"isCollapsed"},outputs:{showBsCollapse:"showBsCollapse",shownBsCollapse:"shownBsCollapse",hideBsCollapse:"hideBsCollapse",hiddenBsCollapse:"hiddenBsCollapse",collapsed:"collapsed",expanded:"expanded"},exportAs:["bs-collapse"],attrs:Rx,ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2,data:{animation:[$d("expandBody",[tf("collapsed",Zd({height:"0px"})),tf("expanded",Zd({height:"*"})),ef("expanded <=> collapsed",Yd("500ms ease"))])]},changeDetection:0}),fI),xI=((dI=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:dI}),dI.\u0275inj=pt({factory:function(t){return new(t||dI)}}),dI),TI=function(){function t(e,n){_classCallCheck(this,t),this.open=e,this.close=n||e}return _createClass(t,[{key:"isManual",value:function(){return"manual"===this.open||"manual"===this.close}}]),t}(),II={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};"undefined"!=typeof window&&window,"undefined"==typeof console||console;var OI=function t(e,n,r){_classCallCheck(this,t),this.nodes=e,this.viewRef=n,this.componentRef=r},AI=function(){function t(e,n,r,i,o,a,s,u){_classCallCheck(this,t),this._viewContainerRef=e,this._renderer=n,this._elementRef=r,this._injector=i,this._componentFactoryResolver=o,this._ngZone=a,this._applicationRef=s,this._posService=u,this.onBeforeShow=new tl,this.onShown=new tl,this.onBeforeHide=new tl,this.onHidden=new tl,this.shown=new tl,this.hidden=new tl,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}return _createClass(t,[{key:"attach",value:function(t){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(t),this}},{key:"to",value:function(t){return this.container=t||this.container,this}},{key:"position",value:function(t){return this.attachment=t.attachment||this.attachment,this._elementRef=t.target||this._elementRef,this}},{key:"provide",value:function(t){return this._providers.push(t),this}},{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(t.content,t.data);var e=fa.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 Js&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document){var n=document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector);n&&n.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}},{key:"hide",value:function(){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);var 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}},{key:"toggle",value:function(){this.isShown?this.hide():this.show()}},{key:"dispose",value:function(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}},{key:"listen",value:function(t){var e=this;this.triggers=t.triggers||this.triggers,this._listenOpts.outsideClick=t.outsideClick,this._listenOpts.outsideEsc=t.outsideEsc,t.target=t.target||this._elementRef.nativeElement;var n=this._listenOpts.hide=function(){return t.hide?t.hide():void e.hide()},r=this._listenOpts.show=function(n){t.show?t.show(n):e.show(n),n()};return this._unregisterListenersFn=function(t,e){var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:II,n=(t||"").trim();if(0===n.length)return[];var r=n.split(/\s+/).map((function(t){return t.split(":")})).map((function(t){var n=e[t[0]]||t;return new TI(n[0],n[1])})),i=r.filter((function(t){return 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;var i=[],o=[],a=function(){o.forEach((function(t){return i.push(t())})),o.length=0};return n.forEach((function(n){var s=n.open===n.close,u=s?e.toggle:e.show;s||o.push((function(){return t.listen(r,n.close,e.hide)})),i.push(t.listen(r,n.open,(function(){return u(a)})))})),function(){i.forEach((function(t){return t()}))}}(this._renderer,{target:t.target,triggers:t.triggers,show:r,hide:n,toggle:function(t){e.isShown?n():r(t)}}),this}},{key:"_removeGlobalListener",value:function(){this._globalListener&&(this._globalListener(),this._globalListener=null)}},{key:"attachInline",value:function(t,e){return this._inlineViewRef=t.createEmbeddedView(e),this}},{key:"_registerOutsideClick",value:function(){var t=this;if(this._componentRef&&this._componentRef.location){if(this._listenOpts&&this._listenOpts.outsideClick){var e=this._componentRef.location.nativeElement;setTimeout((function(){var n;t._globalListener=(n={targets:[e,t._elementRef.nativeElement],outsideClick:t._listenOpts.outsideClick,hide:function(){return t._listenOpts.hide()}}).outsideClick?t._renderer.listen("document","click",(function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some((function(e){return e.contains(t.target)}))||n.hide()})):Function.prototype}))}var n;this._listenOpts.outsideEsc&&(this._globalListener=(n={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:function(){return t._listenOpts.hide()}}).outsideEsc?this._renderer.listen("document","keyup.esc",(function(t){n.target&&n.target.contains(t.target)||n.targets&&n.targets.some((function(e){return e.contains(t.target)}))||n.hide()})):Function.prototype)}}},{key:"getInnerComponent",value:function(){return this._innerComponent}},{key:"_subscribePositioning",value:function(){var t=this;!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe((function(){t._posService.position({element:t._componentRef.location,target:t._elementRef,attachment:t.attachment,appendToBody:"body"===t.container})})),this._zoneSubscription=this._ngZone.onStable.subscribe((function(){t._componentRef&&t._posService.calcPosition()})))}},{key:"_unsubscribePositioning",value:function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}},{key:"_getContentRef",value:function(t,e){if(!t)return new OI([]);if(t instanceof ku){if(this._viewContainerRef){var n=this._viewContainerRef.createEmbeddedView(t);return n.markForCheck(),new OI([n.rootNodes],n)}var r=t.createEmbeddedView({});return this._applicationRef.attachView(r),new OI([r.rootNodes],r)}if("function"==typeof t){var i=this._componentFactoryResolver.resolveComponentFactory(t),o=fa.create({providers:this._providers,parent:this._injector}),a=i.create(o);return Object.assign(a.instance,e),this._applicationRef.attachView(a.hostView),new OI([[a.location.nativeElement]],a.hostView,a)}return new OI([[this._renderer.createText(""+t)]])}},{key:"isShown",get:function(){return!this._isHiding&&!!this._componentRef}}]),t}();function PI(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function NI(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function DI(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=PI(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(String(n)+String(i)+String(r))?t:DI(NI(t))}var RI="undefined"!=typeof window&&"undefined"!=typeof document,MI=RI&&!(!window.MSInputMethodContext||!document.documentMode),LI=RI&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function FI(t){return 11===t?MI:10===t?LI:MI||LI}function jI(t){if(!t)return document.documentElement;for(var e,n=FI(10)?document.body:null,r=t.offsetParent||null;r===n&&t.nextElementSibling&&"BODY"!==t.nodeName;)r=(e=t.nextElementSibling).offsetParent;var i=r&&r.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===PI(r,"position")?jI(r):r:e?e.ownerDocument.documentElement:document.documentElement}function UI(t){return null!==t.parentNode?UI(t.parentNode):t}function VI(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var 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);var a,s,u=o.commonAncestorContainer;if(t!==u&&e!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&jI(a.firstElementChild)!==a?jI(u):u;var l=UI(t);return l.host?VI(l.host,e):VI(t,UI(e).host)}function BI(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border".concat(n,"Width")])+parseFloat(t["border".concat(r,"Width")])}function HI(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],FI(10)?parseInt(n["offset"+t],10)+parseInt(r["margin"+("Height"===t?"Top":"Left")],10)+parseInt(r["margin"+("Height"===t?"Bottom":"Right")],10):0)}function zI(t){var e=t.body,n=t.documentElement,r=FI(10)&&getComputedStyle(n);return{height:HI("Height",e,n,r),width:HI("Width",e,n,r)}}function qI(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[n]}return t[n]}function WI(t){return Object.assign(Object.assign({},t),{right:t.left+t.width,bottom:t.top+t.height})}function GI(t){var e={};try{if(FI(10)){e=t.getBoundingClientRect();var n=qI(t,"top"),r=qI(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(l){return}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?zI(t.ownerDocument):{},a=t.offsetWidth-(o.width||t.clientWidth||i.right-i.left),s=t.offsetHeight-(o.height||t.clientHeight||i.bottom-i.top);if(a||s){var u=PI(t);a-=BI(u,"x"),s-=BI(u,"y"),i.width-=a,i.height-=s}return WI(i)}function KI(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=FI(10),i="HTML"===e.nodeName,o=GI(t),a=GI(e),s=DI(t),u=PI(e),l=parseFloat(u.borderTopWidth),c=parseFloat(u.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=WI({top:o.top-a.top-l,left:o.left-a.left-c,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var d=parseFloat(u.marginTop),f=parseFloat(u.marginLeft);h.top-=l-d,h.bottom-=l-d,h.left-=c-f,h.right-=c-f,h.marginTop=d,h.marginLeft=f}return(r&&!n?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=qI(e,"top"),i=qI(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 QI(t){if(!t||!t.parentElement||FI())return document.documentElement;for(var e=t.parentElement;e&&"none"===PI(e,"transform");)e=e.parentElement;return e||document.documentElement}function XI(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?QI(t):VI(t,e);if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=KI(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:qI(n),s=e?0:qI(n,"left");return WI({top:a-Number(r.top)+Number(r.marginTop),left:s-Number(r.left)+Number(r.marginLeft),width:i,height:o})}(a,i);else{var s;"scrollParent"===r?"BODY"===(s=DI(NI(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===r?t.ownerDocument.documentElement:r;var u=KI(s,a,i);if("HTML"!==s.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===PI(e,"position")||t(NI(e)))}(a))o=u;else{var l=zI(t.ownerDocument),c=l.height,h=l.width;o.top+=u.top-u.marginTop,o.bottom=Number(c)+Number(u.top),o.left+=u.left-u.marginLeft,o.right=Number(h)+Number(u.left)}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function $I(t){return t.width*t.height}function YI(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["top","left","bottom","right"],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"viewport",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(-1===t.indexOf("auto"))return t;var s=XI(n,r,a,o),u={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(u).map((function(t){return Object.assign(Object.assign({key:t},u[t]),{area:$I(u[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),h=(c=i.reduce((function(t,e){return Object.assign(Object.assign({},t),_defineProperty({},e,c[e]))}),{})).length>0?c[0].key:l[0].key,d=t.split(" ")[1];return n.className=n.className.replace(/auto/g,h),h+(d?"-"+d:"")}function JI(t){var 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 ZI(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return KI(e,n?QI(t):VI(t,e),n)}function tO(t,e,n){var r=n.split(" ")[0],i=JI(t),o={width:i.width,height:i.height},a=-1!==["right","left"].indexOf(r),s=a?"top":"left",u=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[u]=r===u?e[u]-i[c]:e[function(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}(u)],o}function eO(t,e){return t&&t.modifiers&&t.modifiers[e]&&t.modifiers[e].enabled}function nO(t,e,n){Object.keys(e).forEach((function(r){var i,o="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&""!==(i=e[r])&&!isNaN(parseFloat(i))&&isFinite(i)&&(o="px"),n?n.setStyle(t,r,"".concat(String(e[r])).concat(o)):t.style[r]=String(e[r])+o}))}function rO(t){var e,n=t.offsets.target,r=t.instance.target.querySelector(".arrow");if(!r)return t;var i=-1!==["left","right"].indexOf(t.placement),o=i?"height":"width",a=i?"Top":"Left",s=a.toLowerCase(),u=i?"left":"top",l=i?"bottom":"right",c=JI(r)[o];t.offsets.host[l]-cn[l]&&(n[s]+=Number(t.offsets.host[s])+Number(c)-Number(n[l])),n=WI(n);var h=Number(t.offsets.host[s])+Number(t.offsets.host[o]/2-c/2),d=PI(t.instance.target),f=parseFloat(d["margin"+a]),p=parseFloat(d["border".concat(a,"Width")]),v=h-n[s]-f-p;return v=Math.max(Math.min(n[o]-c,v),0),t.offsets.arrow=(_defineProperty(e={},s,Math.round(v)),_defineProperty(e,u,""),e),t.instance.arrow=r,t}function iO(t){if(t.offsets.target=WI(t.offsets.target),!eO(t.options,"flip"))return t.offsets.target=Object.assign(Object.assign({},t.offsets.target),tO(t.instance.target,t.offsets.host,t.placement)),t;var e=XI(t.instance.target,t.instance.host,0,"viewport",!1),n=t.placement.split(" ")[0],r=t.placement.split(" ")[1]||"",i=t.offsets.host,o=t.instance.target,a=t.instance.host,s=r?YI("auto",i,o,a,["top","bottom"]):YI("auto",i,o,a),u=[n,s];return u.forEach((function(i,o){if(n!==i||u.length===o+1)return t;var a="left"===(n=t.placement.split(" ")[0])&&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),c=Math.floor(t.offsets.target.top)Math.floor(e.bottom),d="left"===n&&s||"right"===n&&l||"top"===n&&c||"bottom"===n&&h,f=-1!==["top","bottom"].indexOf(n),p=f&&"left"===r&&s||f&&"right"===r&&l||!f&&"left"===r&&c||!f&&"right"===r&&h;(a||d||p)&&((a||d)&&(n=u[o+1]),p&&(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),tO(t.instance.target,t.offsets.host,t.placement)))})),t}function oO(t){if(!eO(t.options,"preventOverflow"))return t;var e=t.instance.target.style,n=e.top,r=e.left,i=e.transform;e.top="",e.left="",e.transform="";var o=XI(t.instance.target,t.instance.host,0,"scrollParent",!1);e.top=n,e.left=r,e.transform=i;var a,s={primary:function(e){var n=t.offsets.target[e];return t.offsets.target[e]o[e]&&(r=Math.min(t.offsets.target[n],o[e]-("right"===e?t.offsets.target.width:t.offsets.target.height))),_defineProperty({},n,r)}};return["left","right","top","bottom"].forEach((function(e){a=-1!==["left","top"].indexOf(e)?"primary":"secondary",t.offsets.target=Object.assign(Object.assign({},t.offsets.target),s[a](e))})),t}function aO(t){var e=t.placement,n=e.split(" ")[0],r=e.split(" ")[1];if(r){var i=t.offsets,o=i.host,a=i.target,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={left:_defineProperty({},u,o[u]),right:_defineProperty({},u,o[u]+o[l]-o[l])};t.offsets.target=Object.assign(Object.assign({},a),c[r])}return t}var sO,uO=new(function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"position",value:function(t,e){return this.offset(t,e)}},{key:"offset",value:function(t,e){return ZI(e,t)}},{key:"positionElements",value:function(t,e,n,r,i){return[iO,aO,oO,rO].reduce((function(t,e){return e(t)}),function(t,e,n,r){var i=ZI(t,e),o=!!n.match(/auto/g),a=n.match(/auto\s(left|right|top|bottom)/g)?n.split(" ")[1]||"":n;return{options:r,instance:{target:t,host:e,arrow:null},offsets:{target:tO(t,i,a),host:i,arrow:null},positionFixed:!1,placement:a=YI(a,i,t,e),placementAuto:o}}(e,t,n,i))}}]),t}()),lO=((sO=function(){function t(e,n,r){var i=this;_classCallCheck(this,t),this._ngZone=r,this.update$$=new I,this.positionElements=new Map,ad(n)&&this._ngZone.runOutsideAngular((function(){X(Im(window,"scroll"),Im(window,"resize"),Tm(0,xS),i.update$$).subscribe((function(){i.positionElements.forEach((function(t){var n,r,o,a,s,u;n=cO(t.target),r=cO(t.element),o=t.attachment,a=t.appendToBody,s=i.options,u=e.createRenderer(null,null),function(t,e){var 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);nO(n,{"will-change":"transform",top:"0px",left:"0px",transform:"translate3d(".concat(r.left,"px, ").concat(r.top,"px, 0px)")},e),t.instance.arrow&&nO(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])}(uO.positionElements(n,r,o,a,s),u)}))}))}))}return _createClass(t,[{key:"position",value:function(t){this.addPositionElement(t)}},{key:"addPositionElement",value:function(t){this.positionElements.set(cO(t.element),t)}},{key:"calcPosition",value:function(){this.update$$.next()}},{key:"deletePositionElement",value:function(t){this.positionElements.delete(cO(t))}},{key:"setOptions",value:function(t){this.options=t}}]),t}()).\u0275fac=function(t){return new(t||sO)(Yt(tu),Yt(Tl),Yt(zl))},sO.\u0275prov=ft({token:sO,factory:sO.\u0275fac}),sO);function cO(t){return t&&"string"==typeof t?document.querySelector(t):t instanceof Js?t.nativeElement:t}var hO,dO,fO,pO,vO,gO,mO,yO,bO,_O,wO,kO,CO,SO,EO,xO,TO,IO,OO,AO,PO,NO,DO,RO,MO,LO,FO,jO,UO,VO,BO,HO,zO,qO,WO,GO,KO,QO,XO,$O,YO,JO,ZO,tA,eA,nA,rA,iA,oA,aA,sA,uA,lA,cA,hA,dA,fA,pA,vA,gA=((yO=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this._componentFactoryResolver=e,this._ngZone=n,this._injector=r,this._posService=i,this._applicationRef=o}return _createClass(t,[{key:"createLoader",value:function(t,e,n){return new AI(e,n,t,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}]),t}()).\u0275fac=function(t){return new(t||yO)(Yt(Ys),Yt(zl),Yt(fa),Yt(lO),Yt(lc))},yO.\u0275prov=ft({token:yO,factory:yO.\u0275fac}),yO),mA=((mO=function t(){_classCallCheck(this,t),this.autoClose=!0}).\u0275prov=ft({token:mO,factory:mO.\u0275fac=function(t){return new(t||mO)}}),mO),yA=((gO=function t(){var e=this;_classCallCheck(this,t),this.direction="down",this.isOpenChange=new tl,this.isDisabledChange=new tl,this.toggleClick=new tl,this.dropdownMenu=new Promise((function(t){e.resolveDropdownMenu=t}))}).\u0275prov=ft({token:gO,factory:gO.\u0275fac=function(t){return new(t||gO)}}),gO),bA=((vO=function(){function t(e){var n=this;_classCallCheck(this,t),this._state=e,this.isOpen=!1,this.display="block",this.position="absolute",this._subscription=e.isOpenChange.subscribe((function(t){n.isOpen=t}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._subscription.unsubscribe()}},{key:"direction",get:function(){return this._state.direction}}]),t}()).\u0275fac=function(t){return new(t||vO)(Da(yA))},vO.\u0275cmp=ge({type:vO,selectors:[["mdb-dropdown-container"]],hostVars:4,hostBindings:function(t,e){2&t&&cs("display",e.display)("position",e.position)},ngContentSelectors:Sx,decls:2,vars:8,template:function(t,e){1&t&&(Za(),ja(0,"div"),ts(1),Ua()),2&t&&hs("dropup","up"===e.direction)("dropdown","down"===e.direction)("show",e.isOpen)("open",e.isOpen)},directives:function(){return[_A]},encapsulation:2,changeDetection:0}),vO),_A=((pO=function(){function t(e,n,r,i,o,a,s){_classCallCheck(this,t),this._elementRef=e,this._renderer=n,this._viewContainerRef=r,this._cis=i,this._config=o,this._state=a,this.cdRef=s,this.dropupDefault=!1,this.dynamicPosition=!1,this._destroy$=new I,this._isInlineOpen=!1,this._subscriptions=[],this._isInited=!1,this._dropdown=this._cis.createLoader(this._elementRef,this._viewContainerRef,this._renderer).provide({provide:yA,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}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this._isInited||(this._isInited=!0,this._showInline=!this.container,this._dropup=this.dropup,this._dropdown.listen({triggers:this.triggers,show:function(){return t.show()}}),this._state.toggleClick.pipe(vS(this._destroy$)).subscribe((function(e){return t.toggle(e)})),this._state.isDisabledChange.pipe(vS(this._destroy$)).subscribe((function(e){!0===e&&t.hide()})),this._showInline&&this._state.dropdownMenu.then((function(e){t._inlinedMenu=e.viewContainer.createEmbeddedView(e.templateRef)})),this._state.isOpenChange.pipe(vS(this._destroy$)).subscribe((function(){setTimeout((function(){var e=t._elementRef.nativeElement.querySelector(".dropdown-menu"),n=e.getBoundingClientRect().left;e.classList.contains("dropdown-menu-right")&&n<=e.clientWidth&&t._renderer.setStyle(e,"right",n<0?n+"px":"0")}),0)})))}},{key:"show",value:function(){var t=this;if(!this.isOpen&&!this.isDisabled){var e=this._elementRef.nativeElement.children[0],n=this._elementRef.nativeElement.querySelector(".dropdown-menu");if(n.parentNode.classList.contains("btn-group")||n.parentNode.classList.contains("dropdown")||this._isDropupDefault||n.parentNode.classList.add("dropdown"),this.dropup&&!this._isDropupDefault&&n.parentNode.classList.add("dropup-material"),"BUTTON"!==e.tagName?n.classList.add("A"===e.tagName?"a-various-dropdown":"various-dropdown"):(e.classList.contains("btn-sm")&&n.classList.add("small-dropdown"),e.classList.contains("btn-md")&&n.classList.add("medium-dropdown"),e.classList.contains("btn-lg")&&n.classList.add("large-dropdown")),setTimeout((function(){if(n.classList.add("fadeInDropdown"),t.dynamicPosition){var e=n.getBoundingClientRect(),r={top:e.top<0,bottom:e.bottom>(window.innerHeight||document.documentElement.clientHeight)};t.dropup&&r.top?t.dropup=!1:!t.dropup&&r.bottom&&(t.dropup=!0)}}),0),this._showInline)return this._isInlineOpen=!0,n.parentNode.classList.contains("dropdown")||n.parentNode.classList.contains("dropup-material")?setTimeout((function(){t.onShown.emit(!0),t.shown.emit(!0)}),560):setTimeout((function(){t.onShown.emit(!0),t.shown.emit(!0)}),0),void this._state.isOpenChange.emit(!0);this._state.dropdownMenu.then((function(e){var n=!0===t.dropup||!0===t.dropupDefault;t._state.direction=n?"up":"down";var r=t.placement||(n?"top left":"bottom left");t._dropdown.attach(bA).to(t.container).position({attachment:r}).show({content:e.templateRef,placement:r}),t._state.isOpenChange.emit(!0)}))}}},{key:"hide",value:function(){var t=this;if(this.isOpen){this.dropup!==this._dropup&&(this.dropup=this._dropup);var e=this._elementRef.nativeElement.querySelector(".dropdown-menu");e.classList.remove("fadeInDropdown"),e.parentNode.classList.contains("dropdown")||e.parentNode.classList.contains("dropup-material")?setTimeout((function(){t._showInline?(t._isInlineOpen=!1,t.onHidden.emit(!0),t.hidden.emit(!0),t.cdRef.markForCheck()):t._dropdown.hide(),t._state.isOpenChange.emit(!1)}),560):setTimeout((function(){t._showInline?(t._isInlineOpen=!1,t.onHidden.emit(!0),t.hidden.emit(!0),t.cdRef.markForCheck()):t._dropdown.hide(),t._state.isOpenChange.emit(!1)}),0)}}},{key:"toggle",value:function(t){return this.isOpen||!1===t?this.hide():this.show()}},{key:"ngOnDestroy",value:function(){this._destroy$.next(),this._destroy$.complete(),this._dropdown.dispose()}},{key:"isDropup",get:function(){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}},{key:"autoClose",set:function(t){"boolean"==typeof t&&(this._state.autoClose=t)},get:function(){return this._state.autoClose}},{key:"isDisabled",set:function(t){this._isDisabled=t,this._state.isDisabledChange.emit(t),t&&this.hide()},get:function(){return this._isDisabled}},{key:"isOpen",get:function(){return this._showInline?this._isInlineOpen:this._dropdown.isShown},set:function(t){t?this.show():this.hide()}},{key:"isBs4",get:function(){return!lI()}}]),t}()).\u0275fac=function(t){return new(t||pO)(Da(Js),Da(nu),Da(Su),Da(gA),Da(mA),Da(yA),Da(Yo))},pO.\u0275cmp=ge({type:pO,selectors:[["","mdbDropdown",""],["","dropdown",""]],hostVars:6,hostBindings:function(t,e){2&t&&hs("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:[Qs([yA])],attrs:Mx,ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(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}),pO),wA=((fO=function t(e,n,r){_classCallCheck(this,t),e.resolveDropdownMenu({templateRef:r,viewContainer:n})}).\u0275fac=function(t){return new(t||fO)(Da(yA),Da(Su),Da(ku))},fO.\u0275dir=ke({type:fO,selectors:[["","mdbDropdownMenu",""],["","dropdownMenu",""]],exportAs:["bs-dropdown-menu"]}),fO),kA=((dO=function(){function t(e,n,r,i){var o=this;_classCallCheck(this,t),this._state=e,this._element=n,this._renderer=r,this._cdRef=i,this._subscriptions=[],this.ariaHaspopup=!0,this.isDisabled=null,this._state.isOpenChange.subscribe((function(t){o.isOpen=t,t?(o._documentClickListener=o._renderer.listen("document","click",(function(t){o._state.autoClose&&2!==t.button&&!o._element.nativeElement.contains(t.target)&&(o._state.toggleClick.emit(!1),o._cdRef.detectChanges())})),o._escKeyUpListener=o._renderer.listen(o._element.nativeElement,"keyup.esc",(function(){o._state.autoClose&&(o._state.toggleClick.emit(!1),o._cdRef.detectChanges())}))):(o._documentClickListener(),o._escKeyUpListener())})),this._subscriptions.push(this._state.isDisabledChange.subscribe((function(t){return o.isDisabled=t||null})))}return _createClass(t,[{key:"onClick",value:function(){this.isDisabled||this._state.toggleClick.emit()}},{key:"ngOnDestroy",value:function(){this._documentClickListener&&this._documentClickListener(),this._escKeyUpListener&&this._escKeyUpListener();var t,e=_createForOfIteratorHelper(this._subscriptions);try{for(e.s();!(t=e.n()).done;)t.value.unsubscribe()}catch(n){e.e(n)}finally{e.f()}}}]),t}()).\u0275fac=function(t){return new(t||dO)(Da(yA),Da(Js),Da(nu),Da(Yo))},dO.\u0275dir=ke({type:dO,selectors:[["","mdbDropdownToggle",""],["","dropdownToggle",""]],hostVars:3,hostBindings:function(t,e){1&t&&Ga("click",(function(){return e.onClick()})),2&t&&Oa("aria-haspopup",e.ariaHaspopup)("disabled",e.isDisabled)("aria-expanded",e.isOpen)},exportAs:["bs-dropdown-toggle"]}),dO),CA=((hO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[gA,lO,yA,{provide:mA,useValue:e||{autoClose:!0}}]}}}]),t}()).\u0275mod=_e({type:hO}),hO.\u0275inj=pt({factory:function(t){return new(t||hO)}}),hO),SA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"focusTrapModal",value:function(t,e){var n,r,i;r=(n=e.nativeElement.querySelectorAll("a[href], button, textarea, input, select, form, mdb-select, mdb-auto-completer, mdb-checkbox, mdb-range-input"))[0],i=n[n.length-1],"Tab"!==t.key&&9!==t.keyCode||(t.shiftKey?sI&&sI.activeElement===r&&(i.focus(),t.preventDefault()):sI&&sI.activeElement===i&&(r.focus(),t.preventDefault()))}},{key:"getClosestEl",value:function(t,e){for(;t&&t!==sI;t=t.parentNode)if(t.matches&&t.matches(e))return t;return null}},{key:"getCoords",value:function(t){var e=t.getBoundingClientRect(),n=sI.body,r=sI.documentElement,i=e.left+(aI.pageXOffset||r.scrollLeft||n.scrollLeft)-(r.clientLeft||n.clientLeft||0);return{top:Math.round(e.top+(aI.pageYOffset||r.scrollTop||n.scrollTop)-(r.clientTop||n.clientTop||0)),left:Math.round(i)}}}],[{key:"reflow",value:function(t){}},{key:"getStyles",value:function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=aI),e.getComputedStyle(t)}}]),t}(),EA=((OO=function(){function t(e,n){_classCallCheck(this,t),this._el=e,this._renderer=n,this.fab=!1,this.far=!1,this.fal=!1,this.fad=!1,this.fas=!0,this.sizeClass="",this.utils=new SA}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.size&&(this.sizeClass="fa-"+this.size);var e=this._el.nativeElement.classList;this.fab=e.contains("fab"),this.far=e.contains("far"),this.fas=e.contains("fas"),this.fal=e.contains("fal"),this.fad=e.contains("fad");var n=this.utils.getClosestEl(this._el.nativeElement,".md-form")||this.utils.getClosestEl(this._el.nativeElement,".md-outline");n&&n.childNodes.forEach((function(e){t._renderer.listen(e,"focus",(function(){t._renderer.addClass(t._el.nativeElement,"active")})),t._renderer.listen(e,"blur",(function(){t._renderer.removeClass(t._el.nativeElement,"active")}))}))}}]),t}()).\u0275fac=function(t){return new(t||OO)(Da(Js),Da(nu))},OO.\u0275cmp=ge({type:OO,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;1&t&&Va(0,"i",0),2&t&&(n=e.icon,r=e.class,i=e.classInside,o=e.sizeClass,vs(ue,fs,function(t,e,n,r,i,o,a,s,u,l){var c=Ia(t,ln(),n,i,a,u);return hn(4),c?"fa-"+zn(n)+" "+zn(i)+" "+zn(a)+" "+zn(u):yi}(Je(),0,n,0,r,0,i,0,o),!0),La("ngClass",Wu(7,Lx,e.fas,e.far,e.fab,e.fal,e.fad)))},directives:[Ah],encapsulation:2,changeDetection:0}),OO),xA=((IO=function t(e,n){_classCallCheck(this,t),this._el=e,this._r=n,this._r.addClass(this._el.nativeElement,"fas")}).\u0275fac=function(t){return new(t||IO)(Da(Js),Da(nu))},IO.\u0275dir=ke({type:IO,selectors:[["","fas",""],["","solid",""]]}),IO),TA=((TO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:TO}),TO.\u0275inj=pt({factory:function(t){return new(t||TO)},imports:[[od]]}),TO),IA=0,OA=((xO=function(){function t(e,n){_classCallCheck(this,t),this.el=e,this.renderer=n,this.id="mdb-error-"+IA++,this.errorMsg=!0,this.messageId=this.id,this.utils=new SA}return _createClass(t,[{key:"_calculateMarginTop",value:function(){var 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")}},{key:"ngOnInit",value:function(){var t=this;this.prefix=this.el.nativeElement.parentNode.querySelector(".prefix"),this.prefix&&this.prefix.classList.add("error-message");var e=this.utils.getClosestEl(this.el.nativeElement,".md-textarea");if(this._calculateMarginTop(),e){var n=e.offsetHeight+4+"px";this.renderer.setStyle(this.el.nativeElement,"top",n),this.textareaListenFunction=this.renderer.listen(e,"keyup",(function(){n=e.offsetHeight+4+"px",t.renderer.setStyle(t.el.nativeElement,"top",n)}))}}},{key:"ngOnDestroy",value:function(){this.textareaListenFunction&&this.textareaListenFunction(),this.prefix&&this.prefix.classList.remove("error-message")}}]),t}()).\u0275fac=function(t){return new(t||xO)(Da(Js),Da(nu))},xO.\u0275cmp=ge({type:xO,selectors:[["mdb-error"]],hostVars:3,hostBindings:function(t,e){2&t&&(Oa("id",e.messageId),hs("error-message",e.errorMsg))},inputs:{id:"id"},ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(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}),xO),AA=0,PA=((EO=function(){function t(e,n){_classCallCheck(this,t),this.el=e,this.renderer=n,this.id="mdb-success-"+AA++,this.successMsg=!0,this.messageId=this.id,this.utils=new SA}return _createClass(t,[{key:"_calculateMarginTop",value:function(){var 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")}},{key:"ngOnInit",value:function(){var t=this;this.prefix=this.el.nativeElement.parentNode.querySelector(".prefix"),this.prefix&&this.prefix.classList.add("success-message");var e=this.utils.getClosestEl(this.el.nativeElement,".md-textarea");if(this._calculateMarginTop(),e){var n=e.offsetHeight+4+"px";this.renderer.setStyle(this.el.nativeElement,"top",n),this.textareaListenFunction=this.renderer.listen(e,"keyup",(function(){n=e.offsetHeight+4+"px",t.renderer.setStyle(t.el.nativeElement,"top",n)}))}}},{key:"ngOnDestroy",value:function(){this.textareaListenFunction&&this.textareaListenFunction(),this.prefix&&this.prefix.classList.remove("success-message")}}]),t}()).\u0275fac=function(t){return new(t||EO)(Da(Js),Da(nu))},EO.\u0275cmp=ge({type:EO,selectors:[["mdb-success"]],hostVars:3,hostBindings:function(t,e){2&t&&(Oa("id",e.messageId),hs("success-message",e.successMsg))},inputs:{id:"id"},ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(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}),EO),NA=((SO=function(){function t(e,n){_classCallCheck(this,t),this.renderer=e,this.el=n,this._validate=!0,this._validateSuccess=!0,this._validateError=!0}return _createClass(t,[{key:"updateSuccessClass",value:function(){this.validate&&this.validateSuccess?this.renderer.addClass(this.el.nativeElement,"validate-success"):this.renderer.removeClass(this.el.nativeElement,"validate-success")}},{key:"updateErrorClass",value:function(){this.validate&&this.validateError?this.renderer.addClass(this.el.nativeElement,"validate-error"):this.renderer.removeClass(this.el.nativeElement,"validate-error")}},{key:"ngOnInit",value:function(){this.updateSuccessClass(),this.updateErrorClass()}},{key:"validate",get:function(){return this._validate},set:function(t){this._validate=t,this.updateErrorClass(),this.updateSuccessClass()}},{key:"validateSuccess",get:function(){return this._validateSuccess},set:function(t){this._validateSuccess=t,this.updateSuccessClass()}},{key:"validateError",get:function(){return this._validateError},set:function(t){this._validateError=t,this.updateErrorClass(),this.updateSuccessClass()}}]),t}()).\u0275fac=function(t){return new(t||SO)(Da(nu),Da(Js))},SO.\u0275dir=ke({type:SO,selectors:[["","mdbValidate",""]],inputs:{validate:"validate",validateSuccess:"validateSuccess",validateError:"validateError",mdbValidate:"mdbValidate"}}),SO),DA=((CO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:CO}),CO.\u0275inj=pt({factory:function(t){return new(t||CO)},imports:[[od]]}),CO),RA=((kO=function(){function t(e,n,r){_classCallCheck(this,t),this.el=e,this._renderer=n,this.elLabel=null,this.elIcon=null,this.focusCheckbox=!0,this.focusRadio=!0,this.isBrowser=!1,this.isClicked=!1,this.element=null,this.isBrowser=ad(r)}return _createClass(t,[{key:"onfocus",value:function(){try{this._renderer.addClass(this.elLabel,"active"),this.isClicked=!0}catch(t){}}},{key:"onblur",value:function(){try{""===this.el.nativeElement.value&&this._renderer.removeClass(this.elLabel,"active"),this.isClicked=!1}catch(t){}}},{key:"onchange",value:function(){try{this.checkValue()}catch(t){}}},{key:"onkeydown",value:function(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()}},{key:"oncut",value:function(){var t=this;try{setTimeout((function(){t.delayedResize()}),0)}catch(e){}}},{key:"onpaste",value:function(){var t=this;try{setTimeout((function(){t.delayedResize()}),0)}catch(e){}}},{key:"ondrop",value:function(){var t=this;try{setTimeout((function(){t.delayedResize()}),0)}catch(e){}}},{key:"ngAfterViewInit",value:function(){if(this.isBrowser)try{this.element=document.querySelector(".md-textarea-auto"),this.element&&this.delayedResize()}catch(e){}var 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")}},{key:"ngAfterViewChecked",value:function(){this.initComponent(),this.checkValue()}},{key:"resize",value:function(){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"))}},{key:"delayedResize",value:function(){var t=this;setTimeout((function(){t.resize()}),0)}},{key:"initComponent",value:function(){var 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}}},{key:"checkValue",value:function(){var t="";null!=this.elLabel&&(""===(t=this.el.nativeElement.value||"")&&(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"))}}]),t}()).\u0275fac=function(t){return new(t||kO)(Da(Js),Da(nu),Da(Tl))},kO.\u0275dir=ke({type:kO,selectors:[["","mdbInput",""]],hostBindings:function(t,e){1&t&&Ga("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"}}),kO),MA=((wO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:wO}),wO.\u0275inj=pt({factory:function(t){return new(t||wO)}}),wO),LA=((_O=function t(){_classCallCheck(this,t)}).\u0275prov=ft({token:_O,factory:_O.\u0275fac=function(t){return new(t||_O)}}),_O),FA=((bO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"hide",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||bO)},bO.\u0275prov=ft({token:bO,factory:bO.\u0275fac}),bO),jA={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",containerClass:"",animated:!0,scroll:!1,data:{}},UA=((YO=function(){function t(e,n){_classCallCheck(this,t),this.element=e,this.renderer=n,this.classNameBackDrop=!0,this._isShown=!1}return _createClass(t,[{key:"ngOnInit",value:function(){this.renderer.addClass(this.element.nativeElement,"fade"),SA.reflow(this.element.nativeElement),this.isShown=!0}},{key:"isAnimated",get:function(){return this._isAnimated},set:function(t){this._isAnimated=t}},{key:"isShown",get:function(){return this._isShown},set:function(t){this._isShown=t,t?(this.renderer.addClass(this.element.nativeElement,"in"),lI()||this.renderer.addClass(this.element.nativeElement,"show")):(this.renderer.removeClass(this.element.nativeElement,"in"),lI()||this.renderer.removeClass(this.element.nativeElement,"show"))}}]),t}()).\u0275fac=function(t){return new(t||YO)(Da(Js),Da(nu))},YO.\u0275cmp=ge({type:YO,selectors:[["mdb-modal-backdrop"]],hostVars:2,hostBindings:function(t,e){2&t&&hs("modal-backdrop",e.classNameBackDrop)},decls:0,vars:0,template:function(t,e){},encapsulation:2}),YO),VA=(($O=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this._element=e,this._focusTrapFactory=n,this._renderer=i,this.onShow=new tl,this.open=new tl,this.onShown=new tl,this.opened=new tl,this.onHide=new tl,this.close=new tl,this.onHidden=new tl,this.closed=new tl,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 SA,this._backdrop=o.createLoader(e,r,i)}return _createClass(t,[{key:"onClick",value:function(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||(this.dismissReason="backdrop-click",this.hide(t))}},{key:"onEsc",value:function(){this.config.keyboard&&(this.dismissReason="esc",this.hide())}},{key:"ngOnDestroy",value:function(){this.config=void 0,this._isShown&&(this._isShown=!1,this.hideModal(),this._backdrop.dispose())}},{key:"ngAfterViewInit",value:function(){var t=this;this._config=this._config||this.getConfig(),setTimeout((function(){t._config.show&&t.show()}),0),this._createFocusTrap()}},{key:"ngOnChanges",value:function(){this.config.backdrop?this.showBackdrop():this.removeBackdrop()}},{key:"toggle",value:function(){return this._isShown?this.hide():this.show()}},{key:"show",value:function(){var t=this;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(),sI&&sI.body&&(sI.body.classList.contains("modal-open")?this.isNested=!0:this._renderer.addClass(sI.body,"modal-open")),this.showBackdrop((function(){t.showElement()})),!this.config.backdrop&&this.config.ignoreBackdropClick&&(this._renderer.setStyle(this._element.nativeElement,"position","fixed"),-1!==uI.userAgent.indexOf("Safari")&&-1===uI.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"))))}},{key:"hide",value:function(t){var e=this;t&&t.preventDefault();var n=Array.from(this._element.nativeElement.querySelectorAll("iframe")),r=Array.from(this._element.nativeElement.querySelectorAll("video"));n.forEach((function(t){var n=t.getAttribute("src");e._renderer.setAttribute(t,"src",n)})),r.forEach((function(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"),lI()||this._renderer.removeClass(this._element.nativeElement,"show"),this.isAnimated?this.timerHideModal=setTimeout((function(){return e.hideModal()}),300):this.hideModal())}},{key:"getConfig",value:function(t){return Object.assign({},jA,t)}},{key:"showElement",value:function(){var t=this;this._element.nativeElement.parentNode&&this._element.nativeElement.parentNode.nodeType===Node.ELEMENT_NODE||sI&&sI.body&&sI.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&&SA.reflow(this._element.nativeElement),this._renderer.addClass(this._element.nativeElement,"in"),lI()||this._renderer.addClass(this._element.nativeElement,"show");var e=function(){t._config.focus&&t._element.nativeElement.focus(),t.onShown.emit(t),t.opened.emit(t)};this.isAnimated?setTimeout(e,300):e()}},{key:"_createFocusTrap",value:function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._element.nativeElement))}},{key:"hideModal",value:function(){var t=this;this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","true"),this._renderer.setStyle(this._element.nativeElement,"display","none"),this.showBackdrop((function(){t.isNested||sI&&sI.body&&t._renderer.removeClass(sI.body,"modal-open"),t.resetAdjustments(),t.focusOtherModal(),t.onHidden.emit(t),t.closed.emit(t)}))}},{key:"showBackdrop",value:function(t){var e=this;if(!this._isShown||!this.config.backdrop||this.backdrop&&this.backdrop.instance.isShown)if(!this._isShown&&this.backdrop){this.backdrop.instance.isShown=!1;var n=function(){e.removeBackdrop(),t&&t()};this.backdrop.instance.isAnimated?this.timerRmBackDrop=setTimeout(n,150):n()}else t&&t();else{if(this.removeBackdrop(),this._backdrop.attach(UA).to("body").show({isAnimated:this.isAnimated}),this.backdrop=this._backdrop._componentRef,!t)return;if(!this.isAnimated)return void t();setTimeout(t,150)}}},{key:"removeBackdrop",value:function(){this._backdrop.hide(),this.backdrop=void 0}},{key:"focusOtherModal",value:function(){try{var t=this._element.nativeElement.parentElement.querySelectorAll(".in[mdbModal]");if(!t.length)return;t[t.length-1].nativeElement.focus()}catch(e){}}},{key:"resetAdjustments",value:function(){this._renderer.setStyle(this._element.nativeElement,"paddingLeft",""),this._renderer.setStyle(this._element.nativeElement,"paddingRight","")}},{key:"checkScrollbar",value:function(){this.isBodyOverflowing=sI.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}),$O),BA=((XO=function(){function t(e,n,r){_classCallCheck(this,t),this._renderer=r,this.modalClass="modal",this.tabindex=-1,this.role="dialog",this.modal=!0,this.isShown=!1,this.isModalHiding=!1,this._element=n,this.config=Object.assign({},e)}return _createClass(t,[{key:"onClick",value:function(t){this.config.ignoreBackdropClick||"static"===this.config.backdrop||t.target!==this._element.nativeElement||(this.mdbModalService.setDismissReason("backdrop-click"),this.hide())}},{key:"onEsc",value:function(){this.config.keyboard&&this.level===this.mdbModalService.getModalsCount()&&(this.mdbModalService.setDismissReason("esc"),this.hide())}},{key:"ngOnInit",value:function(){var t=this;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,lI()?"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((function(){t.isShown=!0,t._renderer.addClass(t._element.nativeElement,lI()?"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")}},{key:"focusModalElement",value:function(){this.config.focus&&this._element.nativeElement.focus()}},{key:"updateContainerClass",value:function(){if(this.config.containerClass)for(var t=this.config.containerClass.split(" "),e=0;e.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}),XO),HA=((QO=function(){function t(e,n){_classCallCheck(this,t),this.clf=n,this.config=jA,this.open=new tl,this.opened=new tl,this.close=new tl,this.closed=new tl,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=e.createRenderer(null,null)}return _createClass(t,[{key:"show",value:function(t,e){return this.modalsCount++,this._createLoaders(),this.config=Object.assign({},jA,e),this._showBackdrop(),this.lastDismissReason=null,this._showModal(t)}},{key:"hide",value:function(t){var e=this;1===this.modalsCount&&(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1?this.modalsCount-1:0,setTimeout((function(){e._hideModal(t),e.removeLoaders(t)}),this.config.animated?150:0)}},{key:"_showBackdrop",value:function(){var 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(UA).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}},{key:"_hideBackdrop",value:function(){var t=this;this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout((function(){return t.removeBackdrop()}),this.config.animated?150:0))}},{key:"_showModal",value:function(t){var e=this.loaders[this.loaders.length-1],n=new FA,r=e.provide({provide:LA,useValue:this.config}).provide({provide:FA,useValue:n}).attach(BA).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=function(){r.instance.hide()},n.content=e.getInnerComponent()||null,n}},{key:"_hideModal",value:function(t){var e=this.loaders[t-1];e&&e.hide()}},{key:"getModalsCount",value:function(){return this.modalsCount}},{key:"setDismissReason",value:function(t){this.lastDismissReason=t}},{key:"removeBackdrop",value:function(){this._backdropLoader.hide(),this.backdropRef=null}},{key:"checkScrollbar",value:function(){this.isBodyOverflowing=document.body.clientWidtht.scrollSensitivity?t.renderer.addClass(t.navbar.nativeElement,"top-nav-collapse"):t.renderer.removeClass(t.navbar.nativeElement,"top-nav-collapse")}))}))}},{key:"ngOnInit",value:function(){var t=this.SideClass.split(" ");this.doubleNav=-1!==t.indexOf("double-nav")}},{key:"ngAfterViewInit",value:function(){var t=this;this.containerInside||Array.from(this.container.nativeElement.children).forEach((function(e){t.renderer.appendChild(t.navbar.nativeElement,e),t.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()}},{key:"toggle",value:function(){this.collapsing||(this.shown?this.hide():this.show())}},{key:"show",value:function(){var t=this;this.shown=!0,this.collapse=!1,this.collapsing=!0,this.ariaExpanded=!0,setTimeout((function(){t.height=t.el.nativeElement.scrollHeight,t.renderer.setStyle(t.el.nativeElement,"height",t.height+"px")}),0),setTimeout((function(){t.collapsing=!1,t.collapse=!0,t.showClass=!0}),this.duration),this._cdRef.markForCheck()}},{key:"hide",value:function(){var t=this;this.shown&&(this.shown=!1,this.collapse=!1,this.showClass=!1,this.collapsing=!0,this.ariaExpanded=!1,setTimeout((function(){t.renderer.setStyle(t.el.nativeElement,"height","0px")}),0),setTimeout((function(){t.collapsing=!1,t.collapse=!0}),this.duration)),this._cdRef.markForCheck()}},{key:"onResize",value:function(t){var e,n=this;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.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}),qO),KA=((zO=function t(){_classCallCheck(this,t)}).\u0275fac=function(t){return new(t||zO)},zO.\u0275cmp=ge({type:zO,selectors:[["logo"],["mdb-navbar-brand"]],ngContentSelectors:Sx,decls:1,vars:0,template:function(t,e){1&t&&(Za(),ts(0))},encapsulation:2}),zO),QA=((HO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:HO}),HO.\u0275inj=pt({factory:function(t){return new(t||HO)},providers:[qA],imports:[[od]]}),HO),XA=((BO=function t(){_classCallCheck(this,t),this.placement="top",this.triggers="click"}).\u0275prov=ft({token:BO,factory:BO.\u0275fac=function(t){return new(t||BO)}}),BO),$A=((VO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[XA,gA,lO]}}}]),t}()).\u0275mod=_e({type:VO}),VO.\u0275inj=pt({factory:function(t){return new(t||VO)},imports:[[od]]}),VO),YA=((UO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:UO}),UO.\u0275inj=pt({factory:function(t){return new(t||UO)},imports:[[od]]}),UO),JA=((jO=function(){function t(){_classCallCheck(this,t),this._dataSource=[],this._dataSourceChanged=new I}return _createClass(t,[{key:"addRow",value:function(t){this.getDataSource().push(t)}},{key:"addRowAfter",value:function(t,e){this.getDataSource().splice(t,0,e)}},{key:"removeRow",value:function(t){this.getDataSource().splice(t,1)}},{key:"rowRemoved",value:function(){return new k((function(t){t.next(!0)}))}},{key:"removeLastRow",value:function(){this.getDataSource().pop()}},{key:"getDataSource",value:function(){return this._dataSource}},{key:"setDataSource",value:function(t){this._dataSource=t,this._dataSourceChanged.next(this.getDataSource())}},{key:"dataSourceChange",value:function(){return this._dataSourceChanged}},{key:"filterLocalDataBy",value:function(t){return this.getDataSource().filter((function(e){return Object.keys(e).some((function(n){if(e[n])return e[n].toString().toLowerCase().includes(t)}))}))}},{key:"searchLocalDataBy",value:function(t){return t?t?this.filterLocalDataBy(t.toLowerCase()):void 0:this.getDataSource()}},{key:"searchDataObservable",value:function(t){var e=this;return new k((function(n){n.next(e.searchLocalDataBy(t))}))}}]),t}()).\u0275fac=function(t){return new(t||jO)},jO.\u0275prov=ft({factory:function(){return new jO},token:jO,providedIn:"root"}),jO),ZA=((FO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:FO}),FO.\u0275inj=pt({factory:function(t){return new(t||FO)},providers:[JA],imports:[[od]]}),FO),tP=((LO=function t(){_classCallCheck(this,t),this.placement="top",this.triggers="hover focus"}).\u0275prov=ft({token:LO,factory:LO.\u0275fac=function(t){return new(t||LO)}}),LO),eP=((MO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[tP,gA,lO]}}}]),t}()).\u0275mod=_e({type:MO}),MO.\u0275inj=pt({factory:function(t){return new(t||MO)},imports:[[od]]}),MO),nP=((RO=function(){function t(e){_classCallCheck(this,t),this.el=e}return _createClass(t,[{key:"click",value:function(t){if(!this.el.nativeElement.classList.contains("disabled")){var e=this.el.nativeElement;e.classList.contains("waves-effect")||(e.className+=" waves-effect");var n=t.clientX-e.getBoundingClientRect().left,r=t.clientY-e.getBoundingClientRect().top,i=document.createElement("div");i.className+="waves-ripple waves-rippling";var o=e.appendChild(i),a=n+"px";i.style.top=r+"px",i.style.left=a;var s="scale("+e.clientWidth/100*3+") translate(0,0)";i.style.webkitTransform=s,i.style.transform=s,i.style.opacity="1",i.style.webkitTransitionDuration="750ms",i.style.transitionDuration="750ms",this.removeRipple(e,o)}}},{key:"removeRipple",value:function(t,e){e.classList.remove("waves-rippling"),setTimeout((function(){e.style.opacity="0",setTimeout((function(){t.removeChild(e)}),750)}),200)}}]),t}()).\u0275fac=function(t){return new(t||RO)(Da(Js))},RO.\u0275dir=ke({type:RO,selectors:[["","mdbWavesEffect",""]],hostBindings:function(t,e){1&t&&Ga("click",(function(t){return e.click(t)}))}}),RO),rP=((DO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:DO}),DO.\u0275inj=pt({factory:function(t){return new(t||DO)}}),DO),iP=((NO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:NO}),NO.\u0275inj=pt({factory:function(t){return new(t||NO)},imports:[[YT,rP.forRoot(),MA.forRoot(),QA,CA.forRoot(),kI.forRoot(),CI,xI.forRoot(),zA.forRoot(),eP.forRoot(),$A.forRoot(),TA,oI.forRoot(),SI,ZA,KT,QT,DA,YA],YT,oI,rP,MA,QA,CA,kI,CI,xI,zA,eP,$A,TA,SI,ZA,KT,QT,DA,YA]}),NO),oP=((PO=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:iP}}}]),t}()).\u0275mod=_e({type:PO}),PO.\u0275inj=pt({factory:function(t){return new(t||PO)},imports:[YT,oI,rP,MA,QA,CA,kI,CI,xI,zA,eP,$A,TA,SI,ZA,KT,QT,DA,YA]}),PO),aP=((AO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:AO}),AO.\u0275inj=pt({factory:function(t){return new(t||AO)},imports:[[od]]}),AO),sP=function(){function t(e,n){_classCallCheck(this,t),this.component=e,this.injector=n}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedHost=t,t.attach(this,e)}},{key:"detach",value:function(){var t=this._attachedHost;return this._attachedHost=null,t.detach()}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}},{key:"isAttached",get:function(){return null!=this._attachedHost}}]),t}(),uP=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var o;return _classCallCheck(this,n),(o=e.call(this))._hostDomElement=t,o._componentFactoryResolver=r,o._appRef=i,o}return _createClass(n,[{key:"attachComponentPortal",value:function(t,e){var n,r=this,i=this._componentFactoryResolver.resolveComponentFactory(t.component);return n=i.create(t.injector),this._appRef.attachView(n.hostView),this.setDisposeFn((function(){r._appRef.detachView(n.hostView),n.destroy()})),e?this._hostDomElement.insertBefore(this._getComponentRootNode(n),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(n)),n}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(function(){function t(){_classCallCheck(this,t),this.setToNullValue=null}return _createClass(t,[{key:"attach",value:function(t,e){return this._attachedPortal=t,this.attachComponentPortal(t,e)}},{key:"detach",value:function(){this._attachedPortal&&this._attachedPortal.setAttachedHost(null),this._attachedPortal=null,null!=this._disposeFn&&(this._disposeFn(),this._disposeFn=this.setToNullValue)}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}}]),t}()),lP=function(){function t(e){_classCallCheck(this,t),this._portalHost=e}return _createClass(t,[{key:"attach",value:function(t,e){return this._portalHost.attach(t,e)}},{key:"detach",value:function(){return this._portalHost.detach()}}]),t}(),cP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t=document.createElement("div");t.classList.add("overlay-container"),document.body.appendChild(t),this._containerElement=t}}]),t}(),hP=function(){var t=function(){function t(e,n,r){_classCallCheck(this,t),this._overlayContainer=e,this._componentFactoryResolver=n,this._appRef=r,this._paneElements={}}return _createClass(t,[{key:"create",value:function(t,e){return this._createOverlayRef(this.getPaneElement(t,e))}},{key:"getPaneElement",value:function(t,e){return this._paneElements[t]||(this._paneElements[t]=this._createPaneElement(t,e)),this._paneElements[t]}},{key:"_createPaneElement",value:function(t,e){var n=document.createElement("div");return n.id="toast-container",n.classList.add(t),e?e.getContainerElement().appendChild(n):this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalHost",value:function(t){return new uP(t,this._componentFactoryResolver,this._appRef)}},{key:"_createOverlayRef",value:function(t){return new lP(this._createPortalHost(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Yt(cP),Yt(Ys),Yt(lc))},t.\u0275prov=ft({token:t,factory:t.\u0275fac}),t}(),dP=function(){function t(e,n,r,i,o,a){_classCallCheck(this,t),this.toastId=e,this.config=n,this.message=r,this.title=i,this.toastType=o,this.toastRef=a,this._onTap=new I,this._onAction=new I}return _createClass(t,[{key:"triggerTap",value:function(){this._onTap.next(),this._onTap.complete()}},{key:"onTap",value:function(){return this._onTap.asObservable()}},{key:"triggerAction",value:function(t){this._onAction.next(t),this._onAction.complete()}},{key:"onAction",value:function(){return this._onAction.asObservable()}}]),t}(),fP={serviceInstance:new Object},pP=((JO=function(){function t(e,n){var r=this;_classCallCheck(this,t),this.toastPackage=e,this.appRef=n,this.width=-1,this.state="inactive",this.toastClasses="",this.toastService=fP.serviceInstance,this.message=e.message,this.title=e.title,this.options=e.config,this.toastClasses="".concat(e.toastType," ").concat(e.config.toastClass),this.sub=e.toastRef.afterActivate().subscribe((function(){r.activateToast()})),this.sub1=e.toastRef.manualClosed().subscribe((function(){r.remove()})),this.opacity=this.options.opacity}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.sub1.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}},{key:"activateToast",value:function(){var t=this;this.state="active",0!==this.options.timeOut&&(this.timeout=setTimeout((function(){t.remove()}),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval((function(){return t.updateProgress()}),10))),this.options.onActivateTick&&this.appRef.tick()}},{key:"updateProgress",value:function(){if(0!==this.width){var t=(new Date).getTime();this.width=(this.hideTime-t)/this.options.timeOut*100,this.width<=0&&(this.width=0)}}},{key:"remove",value:function(){var t=this;"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout((function(){return t.toastService.remove(t.toastPackage.toastId)}),250))}},{key:"onActionClick",value:function(){this.toastPackage.triggerAction(),this.remove()}},{key:"tapToast",value:function(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}},{key:"stickAround",value:function(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}},{key:"delayedHideToast",value:function(){var t=this;0!=+this.options.extendedTimeOut&&"removed"!==this.state&&(this.timeout=setTimeout((function(){return t.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((function(){return t.updateProgress()}),10)))}},{key:"animationParams",get:function(){return{value:this.state,params:{opacity:this.opacity}}}}]),t}()).\u0275fac=function(t){return new(t||JO)(Da(dP),Da(lc))},JO.\u0275cmp=ge({type:JO,selectors:[["mdb-toast-component"]],hostVars:3,hostBindings:function(t,e){1&t&&Ga("click",(function(){return e.tapToast()}))("mouseenter",(function(){return e.stickAround()}))("mouseleave",(function(){return e.delayedHideToast()})),2&t&&(As("@flyInOut",e.animationParams),ds(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&&(Pa(0,Jx,2,0,"button",0),Pa(1,Zx,2,5,"div",1),Pa(2,tT,1,4,"div",2),Pa(3,eT,2,5,"div",1),Pa(4,nT,2,2,"button",3),Pa(5,rT,2,2,"div",4)),2&t&&(La("ngIf",e.options.closeButton),Ci(1),La("ngIf",e.title),Ci(1),La("ngIf",e.message&&e.options.enableHtml),Ci(1),La("ngIf",e.message&&!e.options.enableHtml),Ci(1),La("ngIf",e.options.actionButton),Ci(1),La("ngIf",e.options.progressBar))},directives:[Rh,Ah],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:[$d("flyInOut",[tf("inactive",Zd({opacity:0})),tf("active",Zd({opacity:"{{ opacity }}"}),{params:{opacity:.5}}),tf("removed",Zd({opacity:0})),ef("inactive => active",Yd("300ms ease-in")),ef("active => removed",Yd("300ms ease-in"))])]}}),JO),vP=function(){function t(e,n){_classCallCheck(this,t),this._toastPackage=e,this._parentInjector=n}return _createClass(t,[{key:"get",value:function(t,e){return t===dP&&this._toastPackage?this._toastPackage:this._parentInjector.get(t,e)}}]),t}(),gP=new Ht("ToastConfig"),mP=function(){function t(e){_classCallCheck(this,t),this._overlayRef=e,this._afterClosed=new I,this._activate=new I,this._manualClose=new I}return _createClass(t,[{key:"manualClose",value:function(){this._manualClose.next(),this._manualClose.complete()}},{key:"manualClosed",value:function(){return this._manualClose.asObservable()}},{key:"close",value:function(){this._overlayRef.detach(),this._afterClosed.next(),this._afterClosed.complete()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"isInactive",value:function(){return this._activate.isStopped}},{key:"activate",value:function(){this._activate.next(),this._activate.complete()}},{key:"afterActivate",value:function(){return this._activate.asObservable()}}]),t}(),yP=((dA=function(){function t(e,n,r,i){function o(t,n){return e&&void 0!==t?t:n}_classCallCheck(this,t),this.toastConfig=e,this.overlay=n,this._injector=r,this.sanitizer=i,this.index=0,this.previousToastMessage="",this.currentlyActive=0,this.toasts=[],fP.serviceInstance=this,this.toastConfig=this.applyConfig(e),this.toastConfig.maxOpened=o(this.toastConfig.maxOpened,0),this.toastConfig.autoDismiss=o(this.toastConfig.autoDismiss,!1),this.toastConfig.newestOnTop=o(this.toastConfig.newestOnTop,!0),this.toastConfig.preventDuplicates=o(this.toastConfig.preventDuplicates,!1),this.toastConfig.opacity=o(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=o(this.toastConfig.timeOut,5e3),this.toastConfig.closeButton=o(this.toastConfig.closeButton,!1),this.toastConfig.extendedTimeOut=o(this.toastConfig.extendedTimeOut,1e3),this.toastConfig.progressBar=o(this.toastConfig.progressBar,!1),this.toastConfig.enableHtml=o(this.toastConfig.enableHtml,!1),this.toastConfig.toastClass=o(this.toastConfig.toastClass,"md-toast"),this.toastConfig.positionClass=o(this.toastConfig.positionClass,"md-toast-top-right"),this.toastConfig.titleClass=o(this.toastConfig.titleClass,"md-toast-title"),this.toastConfig.messageClass=o(this.toastConfig.messageClass,"md-toast-message"),this.toastConfig.tapToDismiss=o(this.toastConfig.tapToDismiss,!0),this.toastConfig.toastComponent=o(this.toastConfig.toastComponent,pP),this.toastConfig.onActivateTick=o(this.toastConfig.onActivateTick,!1),this.toastConfig.actionButton=o(this.toastConfig.actionButton,""),this.toastConfig.actionButtonClass=o(this.toastConfig.actionButtonClass,""),this.toastConfig.opacity=o(this.toastConfig.opacity,.5)}return _createClass(t,[{key:"show",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=this.applyConfig(n||{}),o=r.includes("md-toast")?r:"md-toast-"+r;return this._buildNotification(o,t,e,i)}},{key:"success",value:function(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.success,t,e,this.applyConfig(n))}},{key:"error",value:function(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.error,t,e,this.applyConfig(n))}},{key:"info",value:function(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.info,t,e,this.applyConfig(n))}},{key:"warning",value:function(t,e,n){return this._buildNotification(this.toastConfig.iconClasses.warning,t,e,this.applyConfig(n))}},{key:"clear",value:function(t){var e,n,r=_createForOfIteratorHelper(this.toasts);try{for(r.s();!(n=r.n()).done;)if(e=n.value,void 0!==t){if(e.toastId===t)return void e.toastRef.manualClose()}else e.toastRef.manualClose()}catch(i){r.e(i)}finally{r.f()}}},{key:"remove",value:function(t){var 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]){var n=this.toasts[this.currentlyActive].toastRef;n.isInactive()||(this.currentlyActive=this.currentlyActive+1,n.activate())}return!0}},{key:"isDuplicate",value:function(t){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};function e(e,n){return t&&void 0!==e?e:n}var n=Object.assign({},this.toastConfig);return n.closeButton=e(t.closeButton,n.closeButton),n.extendedTimeOut=e(t.extendedTimeOut,n.extendedTimeOut),n.progressBar=e(t.progressBar,n.progressBar),n.timeOut=e(t.timeOut,n.timeOut),n.enableHtml=e(t.enableHtml,n.enableHtml),n.toastClass=e(t.toastClass,n.toastClass),n.positionClass=e(t.positionClass,n.positionClass),n.titleClass=e(t.titleClass,n.titleClass),n.messageClass=e(t.messageClass,n.messageClass),n.tapToDismiss=e(t.tapToDismiss,n.tapToDismiss),n.toastComponent=e(t.toastComponent,n.toastComponent),n.onActivateTick=e(t.onActivateTick,n.onActivateTick),n.actionButton=e(t.actionButton,n.actionButton),n.actionButtonClass=e(t.actionButtonClass,n.actionButtonClass),n.opacity=e(t.opacity,n.opacity),n}},{key:"_findToast",value:function(t){for(var e=0;e=this.toastConfig.maxOpened&&(o=!0,this.toastConfig.autoDismiss&&this.clear(this.toasts[this.toasts.length-this.toastConfig.maxOpened].toastId)),!o){var a=this.overlay.create(r.positionClass,this.overlayContainer);this.index=this.index+1;var s=e;e&&r.enableHtml&&(s=this.sanitizer.sanitize(Yr.HTML,e));var u=new mP(a),l=new dP(this.index,r,s,n,t,u),c={toastId:this.index,message:e,toastRef:u,onShown:u.afterActivate(),onHidden:u.afterClosed(),onTap:l.onTap(),onAction:l.onAction()},h=new vP(l,this._injector),d=new sP(r.toastComponent,h);return c.portal=a.attach(d,this.toastConfig.newestOnTop),o||setTimeout((function(){c.toastRef.activate(),i.currentlyActive=i.currentlyActive+1})),this.toasts.push(c),c}}}]),t}()).\u0275fac=function(t){return new(t||dA)(Yt(gP),Yt(hP),Yt(fa),Yt(qd))},dA.\u0275prov=ft({token:dA,factory:dA.\u0275fac}),dA),bP=((hA=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("ToastModule is already loaded. It should only be imported in your application's main module.")}return _createClass(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:gP,useValue:e},cP,hP,yP]}}}]),t}()).\u0275mod=_e({type:hA}),hA.\u0275inj=pt({factory:function(t){return new(t||hA)(Yt(hA,12))},imports:[[od]]}),hA),_P=((cA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:cA}),cA.\u0275inj=pt({factory:function(t){return new(t||cA)},imports:[[od,fS,Em]]}),cA),wP=((lA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:lA}),lA.\u0275inj=pt({factory:function(t){return new(t||lA)}}),lA),kP=((uA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:uA}),uA.\u0275inj=pt({factory:function(t){return new(t||uA)},imports:[[od]]}),uA),CP=((sA=function(){function t(){_classCallCheck(this,t),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}}}return _createClass(t,[{key:"setLocaleOptions",value:function(t){var e=this;Object.entries(t).forEach((function(t){e.locales[t[0]]=t[1]}))}},{key:"getLocaleOptions",value:function(t){return t&&this.locales.hasOwnProperty(t)?this.locales[t]:this.locales.en}}]),t}()).\u0275fac=function(t){return new(t||sA)},sA.\u0275prov=ft({token:sA,factory:sA.\u0275fac}),sA),SP=((aA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:aA}),aA.\u0275inj=pt({factory:function(t){return new(t||aA)},providers:[CP],imports:[[od,Em]]}),aA),EP=((oA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:oA}),oA.\u0275inj=pt({factory:function(t){return new(t||oA)},imports:[[od]]}),oA),xP=((iA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:iA}),iA.\u0275inj=pt({factory:function(t){return new(t||iA)}}),iA),TP=((rA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:rA}),rA.\u0275inj=pt({factory:function(t){return new(t||rA)}}),rA),IP=((nA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:nA}),nA.\u0275inj=pt({factory:function(t){return new(t||nA)},imports:[[od,Em]]}),nA),OP=((eA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:eA}),eA.\u0275inj=pt({factory:function(t){return new(t||eA)},imports:[[od,Em]]}),eA),AP=((tA=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:tA}),tA.\u0275inj=pt({factory:function(t){return new(t||tA)},imports:[[od,SI]]}),tA),PP=((ZO=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:ZO}),ZO.\u0275inj=pt({factory:function(t){return new(t||ZO)},imports:[[od,AP,Cx],AP]}),ZO),NP="The ".concat("spinning-preloader-container".split("-").join(" ")," was not found"),DP=((vA=function(){function t(e){_classCallCheck(this,t),this.document=e,this.container=this.document.querySelector(".spinning-preloader-container")}return _createClass(t,[{key:"start",value:function(){this.container.classList.remove("complete")}},{key:"stop",value:function(){this.container.classList.add("complete")}},{key:"container",get:function(){return this._container},set:function(t){this._container=t||this.document.createElement("div")}}],[{key:"errorHandler",value:function(){throw new TypeError(NP)}}]),t}()).\u0275fac=function(t){return new(t||vA)(Yt(Cc))},vA.\u0275prov=ft({token:vA,factory:vA.\u0275fac}),vA),RP=((pA=function t(){_classCallCheck(this,t),this.animate=!0,this.max=100}).\u0275prov=ft({token:pA,factory:pA.\u0275fac=function(t){return new(t||pA)}}),pA),MP=((fA=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[RP]}}}]),t}()).\u0275mod=_e({type:fA}),fA.\u0275inj=pt({factory:function(t){return new(t||fA)},imports:[[od]]}),fA);Math;var LP,FP,jP,UP,VP,BP,HP,zP,qP,WP,GP,KP,QP,XP,$P,YP,JP,ZP,tN,eN,nN,rN,iN,oN,aN,sN,uN,lN=((FP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:FP}),FP.\u0275inj=pt({factory:function(t){return new(t||FP)}}),FP),cN=((LP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[]}}}]),t}()).\u0275mod=_e({type:LP}),LP.\u0275inj=pt({factory:function(t){return new(t||LP)},imports:[[od]]}),LP),hN=[cN,lN,MP],dN=((qP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:qP}),qP.\u0275inj=pt({factory:function(t){return new(t||qP)},imports:[[cN.forRoot(),lN.forRoot(),MP.forRoot()],cN,lN,MP]}),qP),fN=((zP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:dN}}}]),t}()).\u0275mod=_e({type:zP}),zP.\u0275inj=pt({factory:function(t){return new(t||zP)},imports:[hN,cN,lN,MP]}),zP),pN=((HP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:HP}),HP.\u0275inj=pt({factory:function(t){return new(t||HP)},imports:[[od,Em]]}),HP),vN=((BP=function(){function t(){_classCallCheck(this,t),this.scrollSpys=[],this.activeSubject=new I,this.active$=this.activeSubject}return _createClass(t,[{key:"addScrollSpy",value:function(t){this.scrollSpys.push(t)}},{key:"removeScrollSpy",value:function(t){var e=this.scrollSpys.findIndex((function(e){return e.id===t}));this.scrollSpys.splice(e,1)}},{key:"updateActiveState",value:function(t,e){var n=this.scrollSpys.find((function(e){return e.id===t}));if(n){var r=n.links.find((function(t){return t.id===e}));this.setActiveLink(r)}}},{key:"removeActiveState",value:function(t,e){var n=this.scrollSpys.find((function(e){return e.id===t}));if(n){var r=n.links.find((function(t){return t.id===e}));r&&(r.active=!1,r.detectChanges())}}},{key:"setActiveLink",value:function(t){t&&(t.active=!0,t.detectChanges(),this.activeSubject.next(t))}},{key:"removeActiveLinks",value:function(t){var e=this.scrollSpys.find((function(e){return e.id===t}));e&&e.links.forEach((function(t){t.active=!1,t.detectChanges()}))}}]),t}()).\u0275fac=function(t){return new(t||BP)},BP.\u0275prov=ft({token:BP,factory:BP.\u0275fac}),BP),gN=((VP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:VP}),VP.\u0275inj=pt({factory:function(t){return new(t||VP)},providers:[vN]}),VP),mN=((UP=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.el=n,this.renderer=r,this._cdRef=i,this.document=o,this.slimSidenav=!1,this.isBrowser=!1,this._sidenavTransform="translateX(-100%)",this.fixed=!0,this._side="left",this.isBrowser=ad(e)}return _createClass(t,[{key:"ngOnInit",value:function(){this.sidenavBreakpoint&&this.sidenavBreakpoint>=aI.innerWidth&&this.hide()}},{key:"ngAfterViewInit",value:function(){if("right"===this._side&&this.renderer.addClass(this.sideNav.nativeElement,"side-nav-right"),this.isBrowser){var t=this.el.nativeElement.children[0].children,e=this.el.nativeElement.querySelector(".sidenav-bg"),n=0;if(e){for(var r=0;r+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))}}},{key:"show",value:function(){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())}},{key:"hide",value:function(){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())}},{key:"toggle",value:function(){this.shown?this.hide():this.show()}},{key:"toggleSlim",value:function(){var t=this,e=this.el.nativeElement.querySelector(".sidenav-bg"),n=this.el.nativeElement.querySelectorAll("mdb-accordion-item-head");this.slimSidenav=!this.slimSidenav,n.forEach((function(e){t.slimSidenav?t.renderer.addClass(e,"overflow-hidden"):t.renderer.removeClass(e,"overflow-hidden")})),this.renderer.addClass(this.sideNav.nativeElement,"overflow-hidden"),this.slimSidenav?(this.renderer.addClass(this.sideNav.nativeElement,"slim"),this.renderer.addClass(e,"slim")):(this.renderer.removeClass(this.sideNav.nativeElement,"slim"),this.renderer.removeClass(e,"slim")),this._cdRef.markForCheck()}},{key:"showOverlay",value:function(){var t=this;this.renderer.setStyle(this.overlay.nativeElement,"display","block"),setTimeout((function(){t.renderer.setStyle(t.overlay.nativeElement,"opacity","1")}),10)}},{key:"hideOverlay",value:function(){var t=this;this.renderer.setStyle(this.overlay.nativeElement,"opacity","0"),setTimeout((function(){t.renderer.setStyle(t.overlay.nativeElement,"display","none")}),200)}},{key:"setShown",value:function(t){var e=this;setTimeout((function(){e.shown=t}),510)}},{key:"ngOnDestroy",value:function(){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")}},{key:"side",get:function(){return this._side},set:function(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}}]),t}()).\u0275fac=function(t){return new(t||UP)(Da(Tl),Da(Js),Da(nu),Da(Yo),Da(Cc))},UP.\u0275cmp=ge({type:UP,selectors:[["mdb-sidenav"],["mdb-side-nav"]],viewQuery:function(t,e){var n;1&t&&(dl(iT,!0),dl(oT,!0)),2&t&&(hl(n=gl())&&(e.sideNav=n.first),hl(n=gl())&&(e.overlay=n.first))},hostBindings:function(t,e){1&t&&Ga("resize",(function(){return e.windowsResize()}),!1,Gn)},inputs:{fixed:"fixed",side:"side",class:"class",sidenavBreakpoint:"sidenavBreakpoint"},ngContentSelectors:Sx,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&&(Za(),ja(0,"ul",0,1),ts(2),Ua(),ja(3,"div",2,3),Ga("click",(function(){return e.hide()}))("touchstart",(function(){return e.hide()})),Ua()),2&t&&Ts("",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}),UP),yN=((jP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:jP}),jP.\u0275inj=pt({factory:function(t){return new(t||jP)},imports:[[od]]}),jP),bN=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"defaultEasingLogic",get:function(){return t._easingLogic},set:function(e){t._easingLogic=e}}]),t}();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:function(t,e,n,r){return n*t/r+e}},t}(),_N=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"isUndefinedOrNull",value:function(t){return void 0===t||null==t}},{key:"extractElementPosition",value:function(e,n){var r=e.body,i=e.documentElement,o=e.defaultView&&e.defaultView.pageYOffset||i.scrollTop||r.scrollTop,a=e.defaultView&&e.defaultView.pageXOffset||i.scrollLeft||r.scrollLeft,s=i.clientTop||r.clientTop||0,u=i.clientLeft||r.clientLeft||0;if(t.isUndefinedOrNull(n))return{top:o,left:a};var l=n.getBoundingClientRect(),c=l.left+a-u;return{top:Math.round(l.top+o-s),left:Math.round(c)}}}]),t}(),wN=((uN=function(){function t(){var e=this;_classCallCheck(this,t),this.runningInstances=[],this.onInterrupted={report:function(t,n){if(n.interruptible){var r=!0;"keyup"===t.type?-1===bN._interruptKeys.indexOf(t.keyCode)&&(r=!1):"mousedown"===t.type&&(n.scrollingViews.some((function(e){return e.contains(t.target)}))||(r=!1)),r&&e.stopAll(n.namespace)}}},t.instanceCounter>0&&Ir()&&console.warn("An instance of PageScrollService already exists, usually including one provider should be enough, so double check."),t.instanceCounter++}return _createClass(t,[{key:"stopInternal",value:function(t,e){var 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)}},{key:"start",value:function(t){var e=this;if(this.stopAll(t.namespace),null!==t.scrollingViews&&0!==t.scrollingViews.length){var n=!1;t.startScrollPosition=0,t.scrollingViews.forEach((function(e){if(!_N.isUndefinedOrNull(e)){var r=t.getScrollPropertyValue(e);!n&&r&&(t.startScrollPosition=r,n=!0)}}));var r=t.getCurrentOffset(),i=t.extractScrollTargetPosition();if(t.targetScrollPosition=Math.round((t.verticalScrolling?i.top:i.left)-r),t.distanceToScroll=t.targetScrollPosition-t.startScrollPosition,isNaN(t.distanceToScroll))return Ir(),void t.fireEvent(!1);var o=Math.abs(t.distanceToScroll)0){for(var e=!1,n=0;nt.tabOrder}));e>=0?this.tabs.splice(e,0,t):this.tabs.push(t),t.active=1===this.tabs.length&&!1!==t.active}},{key:"removeTab",value:function(t){var e=this.tabs.indexOf(t);if(-1!==e&&!this.isDestroyed){if(t.active&&this.hasAvailableTabs(e)){var n=this.getClosestTabIndex(e);this.tabs[n].active=!0}t.removed.emit(t),this.tabs.splice(e,1),this.cdRef.markForCheck()}}},{key:"getClosestTabIndex",value:function(t){var e=this.tabs.length;if(!e)return-1;for(var n=1;n<=e;n+=1){var r=t-n,i=t+n;if(this.tabs[r]&&!this.tabs[r].disabled)return r;if(this.tabs[i]&&!this.tabs[i].disabled)return i}return-1}},{key:"hasAvailableTabs",value:function(t){var e=this.tabs.length;if(!e)return!1;for(var n=0;n.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}),nN),IN=((eN=function(){function t(e,n,r,i){_classCallCheck(this,t),this.tabset=n,this.el=r,this.renderer=i,this._disabled=!1,this.select=new tl,this.deselect=new tl,this.removed=new tl,this.addClass=!0,this.test=!0,this._active=!1,this.isBrowser=null,this.isBrowser=ad(e),this.tabset=n}return _createClass(t,[{key:"ngOnInit",value:function(){this.removable=this.removable,this.tabset.addTab(this),this.tabset.initActiveTab()}},{key:"ngOnDestroy",value:function(){this.tabset.removeTab(this)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._disabled&&this._active&&this.tabset.initActiveTab()}},{key:"active",get:function(){return this._active},set:function(t){var e=this;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((function(t){t!==e&&(t.active=!1)})))}}]),t}()).\u0275fac=function(t){return new(t||eN)(Da(Tl),Da(TN),Da(Js),Da(nu))},eN.\u0275dir=ke({type:eN,selectors:[["mdb-tab"],["","mdbTab",""]],hostVars:4,hostBindings:function(t,e){2&t&&hs("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"}}),eN),ON=((tN=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:t,providers:[xN]}}}]),t}()).\u0275mod=_e({type:tN}),tN.\u0275inj=pt({factory:function(t){return new(t||tN)},imports:[[od]]}),tN),AN=((ZP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:ZP}),ZP.\u0275inj=pt({factory:function(t){return new(t||ZP)},imports:[[od,Em]]}),ZP),PN=((JP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:JP}),JP.\u0275inj=pt({factory:function(t){return new(t||JP)},imports:[[od,Em,YT.forRoot(),rP.forRoot()]]}),JP),NN=((YP=function(){function t(e,n,r,i,o,a){var s=this;_classCallCheck(this,t),this._cdRef=e,this._ngZone=n,this.focusMonitor=r,this.elem=i,this.renderer=o,this._document=a,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=function(){var t=Number(s._to24(s._selectedTime).h);s._okButtonDisabled=s._disabledHours[t],s._okButtonDisabled||(s._min&&s._selectedTime.h===s._min.h&&s._selectedTime.ampm===s._min.ampm&&(s._okButtonDisabled=s._selectedTime.ms._max.m))}}return _createClass(t,[{key:"ngOnInit",value:function(){this._max=this.max,this._min=this.min,this._selectedTime=this.value;var t=this._selectedTime.ampm;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()}},{key:"ngAfterViewInit",value:function(){var t=this;["mousedown","mouseup","touchend","touchstart"].forEach((function(e){t.renderer.listen(t.plate.nativeElement,e,(function(n){"mousedown"!==e&&"touchstart"!==e||t._mousedown(n,!1)}))})),this._checkDraw(),setTimeout((function(){t.focusMonitor.focusVia(t.focus,"keyboard")}),0)}},{key:"_checkDraw",value:function(){var t=this._selectedTime,e=t.h,n=t.m,r=this._showHours?parseInt(e,0):parseInt(n,0),i=r*(Math.PI/(this._showHours?6:30)),o=this._showHours&&r>0&&r<13?this._radius.inner:this._radius.outer,a=Math.sin(i)*o,s=-Math.cos(i)*o;this.setClockHand(a,s)}},{key:"_mousedown",value:function(t,e){var n=this;this._isMouseDown=!0;var r=this.plate.nativeElement.getBoundingClientRect(),i=/^touch/.test(t.type),o=r.left+this._radius.dial,a=r.top+this._radius.dial,s=(i?t.touches[0]:t).clientX-o,u=(i?t.touches[0]:t).clientY-a,l=Math.sqrt(s*s+u*u),c=!1;if(!e||!(lthis._radius.outer+this._radius.tick)){t.preventDefault(),t.stopPropagation(),this._showHours?this.setClockHand(s,u):this.setClockHand(s,u,this.rounding);var h=function(t){n.touchSupported||t.preventDefault(),t.stopPropagation();var e=/^touch/.test(t.type),r=(e?t.touches[0]:t).clientX-o,i=(e?t.touches[0]:t).clientY-a;(c||r!==s||i!==u)&&(c=!0,n._ngZone.run((function(){n.setClockHand(r,i,n.rounding)})))},d=function t(r){n._document.removeEventListener("mousemove",h),n.touchSupported&&n._document.removeEventListener("touchmove",h),n.touchSupported||r.preventDefault();var i=r.clientX-o,l=r.clientY-a;(e||c)&&i===s&&l===u&&n.setClockHand(i,l),n._ngZone.run((function(){n.autoClose&&!n._showHours&&n._okBtnClicked()})),n._showMinutesClock(),n.digitalMinute.nativeElement.focus(),n._isMouseDown=!1,n._document.removeEventListener("mouseup",t),n.touchSupported&&n._document.removeEventListener("touchend",t),n.picker._emitTimeChangeEvent(n._selectedTime)};this._document.addEventListener("mousemove",h),this.touchSupported&&this._document.addEventListener("touchmove",h),this._document.addEventListener("mouseup",d),this.touchSupported&&this._document.addEventListener("touchend",d)}}},{key:"_closeBtnClicked",value:function(){var t=this._selectedTime,e=t.ampm,n=t.h,r=t.m;this._returnHours="".concat(n,":").concat(r).concat(e),this.picker.close(!1)}},{key:"_clearBtnClicked",value:function(){this._setAmPm("AM"),this._setHour(12),this._setMinute(0),this._generateTick(),this._showHoursClock(),this.picker._setValue(""),this.picker._selectionChange$.next("")}},{key:"_okBtnClicked",value:function(){if(!this._okButtonDisabled){var t=this._selectedTime,e=t.ampm,n=t.h,r=t.m;this._returnHours="".concat(n,":").concat(r).concat(e),this.picker._setValue(this._returnHours),this.picker._emitTimeDoneEvent(this._selectedTime),this.picker.onChangeCb(this._returnHours),this.picker.close(!0)}}},{key:"_arrowChangeHour",value:function(t){var e,n=this._to24(this._selectedTime),r=n.h,i=n.ampm,o=Number(r),a=[];this._disabledHours.map((function(t,e){return!t&&a.push(e)}));var s="ArrowUp"===t?a.indexOf(o)+1:a.indexOf(o)-1;s=(s=s<0?a.length-1:s)>a.length-1?0:s,e=a[s],this.twelveHour&&(e>=12?(e-=12,"AM"===i&&this._setAmPm("PM")):(e<=0||e<12)&&"PM"===i&&this._setAmPm("AM")),this._showHoursClock(),this._setHour(e),this._checkDraw()}},{key:"_arrowChangeMinute",value:function(t){if(!this._minuteDigitalDisabled){this._showHours&&this._showMinutesClock();var e,n=this._selectedTime.m,r=[];this._generateMinutesDisable(),this._disabledMinutes.map((function(t,e){t||r.push(e)}));var i="ArrowUp"===t?r.indexOf(Number(n))+1:r.indexOf(Number(n))-1;i=(i=i<0?r.length-1:i)>r.length-1?0:i,e=r[i],this._setMinute(e),this._checkDraw()}}},{key:"_generateMinutesDisable",value:function(){for(var t=0;t<60;t++){var e=this.rounding>1&&t%this.rounding!=0,n=this._rangeMinute(t,"min")||this._rangeMinute(t,"max")||e;this._disabledMinutes[t]=n}}},{key:"_setHour",value:function(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())}},{key:"_setMinute",value:function(t){Number(this._selectedTime.m)!==t&&(this._selectedTime.m=(t=(t=t>=60?0:t)<=-1?59:t)>=10?""+t:"0"+t,this._setOkBtnDisabled())}},{key:"_setAmPm",value:function(t){this._selectedTime.ampm=t,this._generateTick(),this._setOkBtnDisabled(),this._setMinuteDigitalDisabled(),this._checkDraw(),this.picker._emitTimeChangeEvent(this._selectedTime)}},{key:"_showHoursClock",value:function(){this._generateTick(),this._showHours=!0,this._setOkBtnDisabled(),this._checkDraw()}},{key:"_showMinutesClock",value:function(){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())}},{key:"_generateTick",value:function(){if(this.twelveHour){this._hoursTicks=[];for(var t=1;t<13;t++){var 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(var r=0;r<24;r++){var i=r/6*Math.PI,o=r>0&&r<13?this._radius.inner:this._radius.outer,a={hour:0===r?"0"+r.toString():r.toString(),left:this._radius.dial+Math.sin(i)*o-this._radius.tick,top:this._radius.dial-Math.cos(i)*o-this._radius.tick,disabled:this._rangeHour(r,"min")||this._rangeHour(r,"max")};this._hoursTicks.push(a)}}this._minutesTicks=[];for(var s=0;s<60;s+=5){var u=s/30*Math.PI,l=this.rounding>1&&s%this.rounding!=0,c={min:s<10?"0"+s.toString():s.toString(),left:this._radius.dial+Math.sin(u)*this._radius.outer-this._radius.tick,top:this._radius.dial-Math.cos(u)*this._radius.outer-this._radius.tick,disabled:this._rangeMinute(s,"min")||this._rangeMinute(s,"max")||l};this._minutesTicks.push(c)}}},{key:"setClockHand",value:function(t,e,n){var r=Math.atan2(t,-e),i=this._showHours,o=Math.PI/(i?6:n?this._denominator[n]:30),a=Math.sqrt(t*t+e*e),s=i&&a<(this._radius.outer+this._radius.inner)/2,u=this._showHours?parseInt(this._selectedTime.h,0):parseInt(this._selectedTime.m,0),l=s&&!this.twelveHour?this._radius.inner:this._radius.outer;if(r<0&&(r=2*Math.PI+r),r=(u=Math.round(r/o))*o,this.twelveHour&&i){if(0===u&&(u=12),this._isMouseDown&&i&&(this._rangeHour(u,"min")||this._rangeHour(u,"max")))return}else if(!this.twelveHour&&i){if(u=24===(u=s?u:u+12)?0:u,u=s&&0===u?12:u,u=s||12!==u?u:0,this._isMouseDown&&i&&(this._rangeHour(u,"min")||this._rangeHour(u,"max")))return}else n&&(u*=n),60===u&&(u=0);if(i)this.fg.nativeElement.setAttribute("class","mdb-timepicker-canvas-fg");else{if(this._rangeMinute(u,"min")||this._rangeMinute(u,"max"))return void this._cdRef.markForCheck();this.fg.nativeElement.setAttribute("class",u%5==0?"mdb-timepicker-canvas-fg":"mdb-timepicker-canvas-fg active")}var c=Math.sin(r)*(l-this._radius.tick),h=-Math.cos(r)*(l-this._radius.tick),d=Math.sin(r)*l,f=-Math.cos(r)*l;this.hand.nativeElement.setAttribute("x2",c),this.hand.nativeElement.setAttribute("y2",h),this.bg.nativeElement.setAttribute("cx",d),this.bg.nativeElement.setAttribute("cy",f),this.fg.nativeElement.setAttribute("cx",d),this.fg.nativeElement.setAttribute("cy",f),this._showHours?u!==Number(this._selectedTime.h)&&(this._setHour(u),this._setMinuteDigitalDisabled()):u!==Number(this._selectedTime.m)&&this._setMinute(u),this._cdRef.markForCheck()}},{key:"_to24",value:function(t){var e="PM"===t.ampm?Number(t.h)+12:Number(t.h);return e=24===(e=12===e?0:e)?12:e,Object.assign(Object.assign({},t),{h:""+e})}},{key:"_rangeHour",value:function(t,e){var n=!1,r=Number(this._to24(Object.assign(Object.assign({},this._selectedTime),{h:""+t})).h);if(this.twelveHour){var i=this._min&&Number(this._to24(this._min).h),o=this._max&&Number(this._to24(this._max).h);"min"===e&&this.min&&(n=ro),i>o&&(n=!1,n=i>r&&r>o)}else{var a=this.min&&Number(this._min.h),s=this.max&&Number(this._max.h);"min"===e&&this.min?(n=ts)&&this._min&&this._min.h>this._max.h&&a<=t&&(n=!1)}return this._disabledHours[r]=n,n}},{key:"_rangeMinute",value:function(t,e){var n=!1;if(!this._showHours)if("min"===e&&this.min){var r=this._min.h===this._selectedTime.h;n=tNumber(this._max.m)&&i}if(this.twelveHour){var o=this._min&&Number(this._to24(this._min).h),a=this._max&&Number(this._to24(this._max).h),s=Number(this._to24(this._selectedTime).h);"min"===e&&o?n=s===o&&tNumber(this._max.m)),n=n||this._disabledHours[s]}return n}},{key:"_setMinuteDigitalDisabled",value:function(){var t=this._to24(this._selectedTime).h;this._minuteDigitalDisabled=this._disabledHours[Number(t)]}}]),t}()).\u0275fac=function(t){return new(t||YP)(Da(Yo),Da(zl),Da(cE),Da(Js),Da(nu),Da(Cc))},YP.\u0275cmp=ge({type:YP,selectors:[["mdb-timepicker-content"]],viewQuery:function(t,e){var n;1&t&&(fl(gT,!0),fl(mT,!0),fl(yT,!0),fl(bT,!0),fl(CT,!0),fl(ST,!0)),2&t&&(hl(n=gl())&&(e.plate=n.first),hl(n=gl())&&(e.hand=n.first),hl(n=gl())&&(e.fg=n.first),hl(n=gl())&&(e.bg=n.first),hl(n=gl())&&(e.focus=n.first),hl(n=gl())&&(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&&(ja(0,"div",0),ja(1,"div",1),ja(2,"div",2),ja(3,"span",3,4),Ga("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()})),Ss(5),Ua(),Ss(6,":"),ja(7,"span",5,6),Ga("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()})),Ss(9),Ua(),Ua(),Pa(10,ET,5,6,"div",7),Ua(),ja(11,"div",8),ja(12,"div",9,10),ja(14,"div",11),$e.lFrame.currentNamespace="http://www.w3.org/2000/svg",ja(15,"svg",12,13),ja(17,"g",14,15),Va(19,"line",16,17),Va(21,"circle",18,19),Va(23,"circle",20,21),Va(25,"circle",22,23),Ua(),Ua(),Ua(),$e.lFrame.currentNamespace=null,ja(27,"div",24,25),Pa(29,xT,2,9,"div",26),Ua(),ja(30,"div",27,28),Pa(32,TT,2,8,"div",29),Ua(),Ua(),Ua(),ja(33,"div",30),Pa(34,IT,2,1,"button",31),Pa(35,OT,2,1,"button",32),ja(36,"button",33),Ga("click",(function(){return e._okBtnClicked()})),Ss(37),Ua(),Ua(),Ua()),2&t&&(Ci(3),La("ngClass",Hu(15,wT,e._showHours)),Ci(2),xs(" ",e._selectedTime.h,""),Ci(2),La("ngClass",zu(17,qT,!e._showHours,e._minuteDigitalDisabled)),Ci(2),Es(e._selectedTime.m),Ci(1),La("ngIf",e.twelveHour),Ci(17),La("ngClass",Hu(20,WT,!e._showHours))("ngStyle",Hu(22,kT,e._showHours?"visible":"hidden")),Ci(2),La("ngForOf",e._hoursTicks),Ci(1),La("ngClass",Hu(24,WT,e._showHours))("ngStyle",Hu(26,kT,e._showHours?"hidden":"visible")),Ci(2),La("ngForOf",e._minutesTicks),Ci(2),La("ngIf",e.clearButton),Ci(1),La("ngIf",e.closeButton),Ci(1),La("ngClass",Hu(28,Yx,e._okButtonDisabled)),Ci(1),xs(" ",e.okButton," "))},directives:[XS,Ah,Rh,Gh,Nh,nP],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}),YP),DN=(($P=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:$P,bootstrap:function(){return[NN]}}),$P.\u0275inj=pt({factory:function(t){return new(t||$P)},imports:[[od,Cx,vE,YT.forRoot(),rP.forRoot()]]}),$P),RN=((XP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:XP}),XP.\u0275inj=pt({factory:function(t){return new(t||XP)},imports:[[od,SI]]}),XP),MN=((QP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:QP}),QP.\u0275inj=pt({factory:function(t){return new(t||QP)},providers:[],imports:[[kP.forRoot(),AN,fN.forRoot(),ON.forRoot(),OP,SP,PN,DN,IP,yN,EP,aP,SN,kN.forRoot(),TP.forRoot(),gN,wP,pN,_P,CN,RN,PP,AP],kP,xP,AN,fN,ON,OP,SP,PN,DN,IP,yN,EP,aP,SN,kN,TP,gN,wP,pN,_P,CN,RN,PP,AP]}),QP),LN=((KP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:MN}}}]),t}()).\u0275mod=_e({type:KP}),KP.\u0275inj=pt({factory:function(t){return new(t||KP)},imports:[kP,xP,AN,fN,ON,OP,SP,PN,DN,IP,yN,EP,aP,SN,kN,TP,gN,wP,pN,_P,CN,RN,PP,AP]}),KP),FN=((GP=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:GP}),GP.\u0275inj=pt({factory:function(t){return new(t||GP)},providers:[],imports:[[oP.forRoot(),LN.forRoot()],oP,LN]}),GP),jN=((WP=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:FN}}}]),t}()).\u0275mod=_e({type:WP}),WP.\u0275inj=pt({factory:function(t){return new(t||WP)},imports:[oP,LN]}),WP),UN=["chatContainer"],VN=["chatTextBox"],BN=["content"],HN=["chatService.messages"];function zN(t,e){if(1&t&&(ja(0,"div",20),Va(1,"img",21),Va(2,"span",22),Ua()),2&t){var n=Ya(2);Ci(1),es("src",n.userThatIAmTalkingTo.photoURL,ei)}}function qN(t,e){if(1&t&&(ja(0,"p",23),ja(1,"strong"),Ss(2),Ua(),Ua()),2&t){var n=Ya(2);Ci(2),Es(n.userThatIAmTalkingTo.firstName)}}function WN(t,e){if(1&t&&(ja(0,"mdb-card",29),ja(1,"mdb-card-body",30),ja(2,"mdb-card-text",31),Ss(3),Ua(),Ua(),ja(4,"p",32),Ss(5),Xu(6,"date"),Ua(),Ua()),2&t){var n=Ya().$implicit;Ci(3),xs("",n.content," "),Ci(2),xs(" ",Yu(6,2,n.timestamp.toDate(),"dd MMM hh:mm"),"")}}function GN(t,e){if(1&t&&(ja(0,"mdb-card",33),ja(1,"mdb-card-body",30),ja(2,"mdb-card-text",31),Ss(3),Ua(),Ua(),ja(4,"p",32),Ss(5),Xu(6,"date"),Ua(),Ua()),2&t){var n=Ya().$implicit;Ci(3),xs("",n.content," "),Ci(2),xs(" ",Yu(6,2,n.timestamp.toDate(),"dd MMM hh:mm"),"")}}function KN(t,e){if(1&t&&(ja(0,"div",26),Pa(1,WN,7,5,"mdb-card",27),Pa(2,GN,7,5,"mdb-card",28),Ua()),2&t){var n=e.$implicit,r=Ya(3);Ci(1),La("ngIf",n.senderId!=r.localStorageService.getUserDataFromLocalStorage().uid),Ci(1),La("ngIf",n.senderId==r.localStorageService.getUserDataFromLocalStorage().uid)}}function QN(t,e){if(1&t&&(ja(0,"mdb-card-body",24),Pa(1,KN,3,2,"div",25),Ua()),2&t){var n=Ya(2);Ci(1),La("ngForOf",n.chatService.messages)}}function XN(t,e){if(1&t){var n=za();ja(0,"div",1,2),ja(2,"div",3),ja(3,"div",4),ja(4,"mdb-card",5),ja(5,"mdb-card-header",6),ja(6,"div",7),Pa(7,zN,3,1,"div",8),ja(8,"div",9),Pa(9,qN,3,1,"p",10),Ua(),Ua(),ja(10,"div",11),ja(11,"a",12),Ga("click",(function(){return tn(n),Ya().closeChatContainer()})),Va(12,"mdb-icon",13),Ua(),Ua(),Ua(),ja(13,"div",14,15),Pa(15,QN,2,1,"mdb-card-body",16),Ua(),ja(16,"mdb-card-footer",17),ja(17,"input",18,19),Ga("ngModelChange",(function(t){return tn(n),Ya().chatService.message=t}))("keydown.enter",(function(){return tn(n),Ya().chatService.sendMessage()}))("focus",(function(t){return tn(n),Ya().onFocus(t)})),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(6),ns("routerLink","/user-profile/",null==r.userThatIAmTalkingTo?null:r.userThatIAmTalkingTo.uid,""),Ci(1),La("ngIf",r.userThatIAmTalkingTo),Ci(2),La("ngIf",r.userThatIAmTalkingTo),Ci(6),La("ngIf",r.chatService.showMessages),Ci(2),La("ngModel",r.chatService.message)}}var $N,YN=(($N=function(){function t(e,n,r,i){var o=this;_classCallCheck(this,t),this.chatService=e,this.localStorageService=n,this.authService=r,this.renderer=i,this.scrollToBottom=function(){try{o.content.nativeElement.scrollTop=o.content.nativeElement.scrollHeight}catch(t){}}}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){this.chatContainer.nativeElement.addEventListener("focus",this.onFocus.bind(this)),this.scrollToBottom(),this.messages.changes.subscribe(this.scrollToBottom)}},{key:"closeChatContainer",value:function(){var t=this;this.renderer.setStyle(this.chatContainer.nativeElement,"display","none"),setTimeout((function(){t.chatService.updateMessageStatus(t.chatId)}),1e3)}},{key:"openChatContainer",value:function(t){console.log(t),this.userThatIAmTalkingTo=t,this.chatService.selectUser(t),console.log(this.userThatIAmTalkingTo.conversations);for(var e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(v),ED=function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n},xD=function(t,e){return{isMouseDragable:t,isTouchDragable:e}};function TD(t,e){if(1&t&&(ja(0,"div",4),Va(1,"owl-stage",5),Ua()),2&t){var n=Ya();Ci(1),La("owlDraggable",zu(3,xD,null==n.owlDOMData?null:n.owlDOMData.isMouseDragable,null==n.owlDOMData?null:n.owlDOMData.isTouchDragable))("stageData",n.stageData)("slidesData",n.slidesData)}}var ID=function(t,e){return{active:t,"owl-dot-text":e}};function OD(t,e){if(1&t){var n=za();ja(0,"div",11),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya(2).moveByDot(t.id)})),Va(1,"span",12),Ua()}if(2&t){var r=e.$implicit;La("ngClass",zu(2,ID,r.active,r.showInnerContent)),Ci(1),La("innerHTML",r.innerContent,ti)}}var AD=function(t){return{disabled:t}};function PD(t,e){if(1&t){var n=za();Ba(0),ja(1,"div",6),ja(2,"div",7),Ga("click",(function(){return tn(n),Ya().prev()})),Ua(),ja(3,"div",8),Ga("click",(function(){return tn(n),Ya().next()})),Ua(),Ua(),ja(4,"div",9),Pa(5,OD,2,5,"div",10),Ua(),Ha()}if(2&t){var r=Ya();Ci(1),La("ngClass",Hu(7,AD,null==r.navData?null:r.navData.disabled)),Ci(1),La("ngClass",Hu(9,AD,null==r.navData||null==r.navData.prev?null:r.navData.prev.disabled))("innerHTML",null==r.navData||null==r.navData.prev?null:r.navData.prev.htmlText,ti),Ci(1),La("ngClass",Hu(11,AD,null==r.navData||null==r.navData.next?null:r.navData.next.disabled))("innerHTML",null==r.navData||null==r.navData.next?null:r.navData.next.htmlText,ti),Ci(1),La("ngClass",Hu(13,AD,null==r.dotsData?null:r.dotsData.disabled)),Ci(1),La("ngForOf",null==r.dotsData?null:r.dotsData.dots)}}var ND=function(t,e,n,r,i){return{"owl-rtl":t,"owl-loaded":e,"owl-responsive":n,"owl-drag":r,"owl-grab":i}};function DD(t,e){}function RD(t,e){1&t&&Pa(0,DD,0,0,"ng-template",4),2&t&&La("ngTemplateOutlet",Ya().$implicit.tplRef)}var MD=function(t,e,n,r){return{width:t,"margin-left":e,"margin-right":n,left:r}};function LD(t,e){if(1&t){var n=za();Ba(0),ja(1,"div",2),Ga("animationend",(function(){tn(n);var t=e.$implicit;return Ya().clear(t.id)})),Pa(2,RD,1,1,void 0,3),Ua(),Ha()}if(2&t){var r=e.$implicit;Ci(1),La("ngClass",r.classes)("ngStyle",(4,i=MD,o=r.width+"px",a=r.marginL?r.marginL+"px":"",s=r.marginR?r.marginR+"px":"",u=r.left,function(t,e,n,r,i,o,a,s,u){var l=e+4;return Ia(t,l,i,o,a,s)?Ea(t,l+4,r(i,o,a,s)):Gu(t,l+4)}(Je(),un(),0,i,o,a,s,u)))("@autoHeight",r.heightState),Ci(1),La("ngIf",r.load)}var i,o,a,s,u}var FD,jD,UD,VD,BD,HD,zD,qD,WD,GD,KD,QD,XD,$D,YD=function(t,e,n,r,i){return{width:t,transform:e,transition:n,"padding-left":r,"padding-right":i}},JD=((FD=function(){function t(e){_classCallCheck(this,t),this.eventManager=e,this.resizeSubject=new I,this.eventManager.addGlobalEventListener("window","resize",this.onResize.bind(this)),this.eventManager.addGlobalEventListener("window","onload",this.onLoaded.bind(this))}return _createClass(t,[{key:"onResize",value:function(t){this.resizeSubject.next(t.target)}},{key:"onLoaded",value:function(t){this.windowWidth=t.target}},{key:"onResize$",get:function(){return this.resizeSubject.asObservable()}}]),t}()).\u0275fac=function(t){return new(t||FD)(Yt(_d))},FD.\u0275prov=ft({token:FD,factory:FD.\u0275fac}),FD),ZD=function t(){_classCallCheck(this,t),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},tR=function t(){_classCallCheck(this,t),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"},eR=((jD=function(){function t(e){_classCallCheck(this,t),this.errorHandler=e}return _createClass(t,[{key:"log",value:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i1||t.items.merge,i[a]=r?e*o:n._items[a].width?n._items[a].width:e;n._widths=i,n.slidesData.forEach((function(e,r){e.width=n._widths[r],e.marginR=t.css["margin-right"],e.marginL=t.css["margin-left"]}))}},{filter:["items","settings"],run:function(){var t=[],e=n._items,r=n.settings,i=Math.max(2*r.items,4),o=2*Math.ceil(e.length/2),a=[],s=[],u=r.loop&&e.length?r.rewind?i:Math.max(i,o):0;for(u/=2;u--;)t.push(n.normalize(t.length/2,!0)),a.push(Object.assign({},n.slidesData[t[t.length-1]])),t.push(n.normalize(e.length-1-(t.length-1)/2,!0)),s.unshift(Object.assign({},n.slidesData[t[t.length-1]]));n._clones=t,a=a.map((function(t){return t.id="".concat(n.clonedIdPrefix).concat(t.id),t.isActive=!1,t.isCloned=!0,t})),s=s.map((function(t){return t.id="".concat(n.clonedIdPrefix).concat(t.id),t.isActive=!1,t.isCloned=!0,t})),n.slidesData=s.concat(n.slidesData).concat(a)}},{filter:["width","items","settings"],run:function(){for(var t=n.settings.rtl?1:-1,e=n._clones.length+n._items.length,r=[],i=-1,o=0,a=0;++i=t:e>t}));t=c.length?c[c.length-1]:t}for(o=0,a=n._coordinates.length;o",e)||n._op(i,"<",t)&&n._op(i,">",e))&&l.push(o);n.slidesData.forEach((function(t){return t.isActive=!1,t})),l.forEach((function(t){n.slidesData[t].isActive=!0})),n.settings.center&&(n.slidesData.forEach((function(t){return t.isCentered=!1,t})),n.slidesData[n.current()].isCentered=!0)}}]}return _createClass(t,[{key:"getViewCurSettings",value:function(){return this._viewSettingsShipper$.asObservable()}},{key:"getInitializedState",value:function(){return this._initializedCarousel$.asObservable()}},{key:"getChangeState",value:function(){return this._changeSettingsCarousel$.asObservable()}},{key:"getChangedState",value:function(){return this._changedSettingsCarousel$.asObservable()}},{key:"getTranslateState",value:function(){return this._translateCarousel$.asObservable()}},{key:"getTranslatedState",value:function(){return this._translatedCarousel$.asObservable()}},{key:"getResizeState",value:function(){return this._resizeCarousel$.asObservable()}},{key:"getResizedState",value:function(){return this._resizedCarousel$.asObservable()}},{key:"getRefreshState",value:function(){return this._refreshCarousel$.asObservable()}},{key:"getRefreshedState",value:function(){return this._refreshedCarousel$.asObservable()}},{key:"getDragState",value:function(){return this._dragCarousel$.asObservable()}},{key:"getDraggedState",value:function(){return this._draggedCarousel$.asObservable()}},{key:"setOptions",value:function(t){var e=new ZD,n=this._validateOptions(t,e);this._options=Object.assign(Object.assign({},e),n)}},{key:"_validateOptions",value:function(t,e){var n=this,r=Object.assign({},t),i=new tR,o=function(r,i){return n.logger.log("options.".concat(i," must be type of ").concat(r,"; ").concat(i,"=").concat(t[i]," skipped to defaults: ").concat(i,"=").concat(e[i])),e[i]};for(var a in r)if(r.hasOwnProperty(a))if("number"===i[a])this._isNumeric(r[a])?(r[a]=+r[a],r[a]="items"===a?this._validateItems(r[a],r.skip_validateItems):r[a]):r[a]=o(i[a],a);else if("boolean"===i[a]&&"boolean"!=typeof r[a])r[a]=o(i[a],a);else if("number|boolean"!==i[a]||this._isNumberOrBoolean(r[a]))if("number|string"!==i[a]||this._isNumberOrString(r[a]))if("string|boolean"!==i[a]||this._isStringOrBoolean(r[a])){if("string[]"===i[a])if(Array.isArray(r[a])){var s=!1;r[a].forEach((function(t){s="string"==typeof t})),s||(r[a]=o(i[a],a))}else r[a]=o(i[a],a)}else r[a]=o(i[a],a);else r[a]=o(i[a],a);else r[a]=o(i[a],a);return r}},{key:"_validateItems",value:function(t,e){var 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}},{key:"setCarouselWidth",value:function(t){this._width=t}},{key:"setup",value:function(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}})}},{key:"setOptionsForViewport",value:function(){var t=this,e=this._width,n=this._options.responsive,r=-1;if(Object.keys(n).length)if(e){for(var i in n)n.hasOwnProperty(i)&&+i<=e&&+i>r&&(r=Number(i));this.settings=Object.assign(Object.assign(Object.assign({},this._options),n[r]),{items:n[r]&&n[r].items?this._validateItems(n[r].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;var o=[];this._items.forEach((function(e){o.push(t.settings.merge?e.dataMerge:1)})),this._mergers=o,this._breakpoint=r,this.invalidate("settings")}else this.settings.items=1}},{key:"initialize",value:function(t){var e=this;this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),t.forEach((function(t){e._mergers.push(e.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")}},{key:"sendChanges",value:function(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}},{key:"_optionsLogic",value:function(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}},{key:"update",value:function(){for(var t=this,e=0,n=this._pipe.length,r=function(e){return t._invalidated[e]},i={};e0)&&this._pipe[e].run(i),e++}this.slidesData.forEach((function(e){return e.classes=t.setCurSlideClasses(e)})),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}},{key:"width",value:function(t){switch(t=t||rR.Default){case rR.Inner:case rR.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}},{key:"refresh",value:function(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}},{key:"onResize",value:function(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")}},{key:"prepareDragging",value:function(t){var e,n;return n={x:+(e=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","))[0],y:+e[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===t.type&&(this.owlDOMData.isGrab=!0),this.speed(0),n}},{key:"enterDragging",value:function(){this.enter("dragging"),this._trigger("drag")}},{key:"defineNewCoordsDrag",value:function(t,e){var n=null,r=null,i=null,o=this.difference(e.pointer,this.pointer(t)),a=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,a.x=((a.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,a.x=Math.max(Math.min(a.x,n+i),r+i)),a)}},{key:"finishDragging",value:function(t,e,n){var r,i=this.difference(e.pointer,this.pointer(t)),o=e.stage.current,a=["right","left"][+(this.settings.rtl?i.x<+this.settings.rtl:i.x>+this.settings.rtl)];(0!==i.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),r=this.closest(o.x,0!==i.x?a:e.direction),this.current()!==this.current(-1===r?void 0:r)&&(this.invalidate("position"),this.update()),e.direction=a,(Math.abs(i.x)>3||(new Date).getTime()-e.time>300)&&n()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}},{key:"closest",value:function(t,e){var n=this.width(),r=this.coordinates(),i=-1;this.settings.center&&(r=r.map((function(t){return 0===t&&(t+=1e-6),t})));for(var 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}},{key:"animate",value:function(t){var 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:"")}},{key:"is",value:function(t){return this._states.current[t]&&this._states.current[t]>0}},{key:"current",value:function(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}},{key:"invalidate",value:function(t){return"string"==typeof t&&(this._invalidated[t]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}},{key:"reset",value:function(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"]))}},{key:"normalize",value:function(t,e){var 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}},{key:"relative",value:function(t){return this.normalize(t-=this._clones.length/2,!0)}},{key:"maximum",value:function(){var t,e,n,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.settings,o=this._coordinates.length;if(i.loop)o=this._clones.length/2+this._items.length-1;else if(i.autoWidth||i.merge){for(t=this._items.length,e=this.slidesData[--t].width,n=this._width;t--&&!((e+=+this.slidesData[t].width+this.settings.margin)>n););o=t+1}else o=i.center?this._items.length-1:this._items.length-i.items;return r&&(o-=this._clones.length/2),Math.max(o,0)}},{key:"minimum",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?0:this._clones.length/2}},{key:"items",value:function(t){return void 0===t?this._items.slice():(t=this.normalize(t,!0),[this._items[t]])}},{key:"mergers",value:function(t){return void 0===t?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])}},{key:"clones",value:function(t){var e=this._clones.length/2,n=e+this._items.length,r=function(t){return t%2==0?n+t/2:e-(t+1)/2};return void 0===t?this._clones.map((function(t,e){return r(e)})):this._clones.map((function(e,n){return e===t?r(n):null})).filter((function(t){return t}))}},{key:"speed",value:function(t){return void 0!==t&&(this._speed=t),this._speed}},{key:"coordinates",value:function(t){var e,n=this,r=1,i=t-1;return void 0===t?this._coordinates.map((function(t,e){return n.coordinates(e)})):(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))}},{key:"_duration",value:function(t,e,n){return 0===n?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(+n||this.settings.smartSpeed)}},{key:"to",value:function(t,e){var n=this,r=this.current(),i=null,o=t-this.relative(r),a=this.maximum(),s=0,u=+(o>0)-+(o<0),l=this._items.length,c=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(o)>l/2&&(o+=-1*u*l),(i=(((t=r+o)-c)%l+l)%l+c)!==t&&i-o<=a&&i-o>0&&(r=i-o,t=i,s=30,this.reset(r),this.sendChanges())):t=this.settings.rewind?(t%(a+=1)+a)%a:Math.max(c,Math.min(a,t)),setTimeout((function(){n.speed(n._duration(r,t,e)),n.current(t),n.update()}),s)}},{key:"next",value:function(t){t=t||!1,this.to(this.relative(this.current())+1,t)}},{key:"prev",value:function(t){t=t||!1,this.to(this.relative(this.current())-1,t)}},{key:"onTransitionEnd",value:function(t){if(void 0!==t)return!1;this.leave("animating"),this._trigger("translated")}},{key:"_viewport",value:function(){var t;return this._width?t=this._width:this.logger.log("Can not detect viewport width."),t}},{key:"setItems",value:function(t){this._items=t}},{key:"_defineSlidesData",value:function(){var t;this.slidesData&&this.slidesData.length&&(t=new Map,this.slidesData.forEach((function(e){e.load&&t.set(e.id,e.load)}))),this.slidesData=this._items.map((function(e){return{id:""+e.id,isActive:!1,tplRef:e.tplRef,dataMerge:e.dataMerge,width:0,isCloned:!1,load:!!t&&t.get(e.id),hashFragment:e.dataHash}}))}},{key:"setCurSlideClasses",value:function(t){var 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}},{key:"_op",value:function(t,e,n){var 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}}},{key:"_trigger",value:function(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)}}},{key:"enter",value:function(t){var e=this;[t].concat(this._states.tags[t]||[]).forEach((function(t){void 0===e._states.current[t]&&(e._states.current[t]=0),e._states.current[t]++}))}},{key:"leave",value:function(t){var e=this;[t].concat(this._states.tags[t]||[]).forEach((function(t){(0===e._states.current[t]||e._states.current[t])&&e._states.current[t]--}))}},{key:"register",value:function(t){var e=this;t.type===nR.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((function(n,r){return e._states.tags[t.name].indexOf(n)===r})))}},{key:"_suppress",value:function(t){var e=this;t.forEach((function(t){e._supress[t]=!0}))}},{key:"_release",value:function(t){var e=this;t.forEach((function(t){delete e._supress[t]}))}},{key:"pointer",value:function(t){var 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}},{key:"_isNumeric",value:function(t){return!isNaN(parseFloat(t))}},{key:"_isNumberOrBoolean",value:function(t){return this._isNumeric(t)||"boolean"==typeof t}},{key:"_isNumberOrString",value:function(t){return this._isNumeric(t)||"string"==typeof t}},{key:"_isStringOrBoolean",value:function(t){return"string"==typeof t||"boolean"==typeof t}},{key:"difference",value:function(t,e){return{x:t.x-e.x,y:t.y-e.y}}},{key:"invalidated",get:function(){return this._invalidated}},{key:"states",get:function(){return this._states}}]),t}()).\u0275fac=function(t){return new(t||BD)(Yt(eR))},BD.\u0275prov=ft({token:BD,factory:BD.\u0275fac}),BD),oR=((VD=function(){function t(e){_classCallCheck(this,t),this.carouselService=e,this._initialized=!1,this._pages=[],this._navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}},this._dotsData={disabled:!1,dots:[]},this.spyDataStreams()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.navSubscription.unsubscribe()}},{key:"spyDataStreams",value:function(){var t=this,e=X(this.carouselService.getInitializedState().pipe(Am((function(e){t.initialize(),t._updateNavPages(),t.draw(),t.update(),t.carouselService.sendChanges()}))),this.carouselService.getChangedState().pipe(Dm((function(t){return"position"===t.property.name})),Am((function(e){t.update()}))),this.carouselService.getRefreshedState().pipe(Am((function(){t._updateNavPages(),t.draw(),t.update(),t.carouselService.sendChanges()}))));this.navSubscription=e.subscribe((function(){}))}},{key:"initialize",value:function(){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}},{key:"_updateNavPages",value:function(){var t,e,n=this.carouselService.clones().length/2,r=n+this.carouselService.items().length,i=this.carouselService.maximum(!0),o=[],a=this.carouselService.settings,s=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if(s=+s,"page"!==a.slideBy&&(a.slideBy=Math.min(+a.slideBy,a.items)),a.dots||"page"===a.slideBy)for(t=n,e=0;t=s||0===e){if(o.push({start:Math.min(i,t-n),end:t-n+s-1}),Math.min(i,t-n)===i)break;e=0}e+=this.carouselService.mergers(this.carouselService.relative(t))}this._pages=o}},{key:"draw",value:function(){var t,e=this,n=this.carouselService.settings,r=this.carouselService.items(),i=r.length<=n.items;if(this._navData.disabled=!n.nav||i,this._dotsData.disabled=!n.dots||i,n.dots)if(t=this._pages.length-this._dotsData.dots.length,n.dotsData&&0!==t)this._dotsData.dots=[],r.forEach((function(t){e._dotsData.dots.push({active:!1,id:"dot-"+t.id,innerContent:t.dotContent,showInnerContent:!0})}));else if(t>0)for(var o=this._dotsData.dots.length>0?this._dotsData.dots.length:0,a=0;a=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}},{key:"_updateDots",value:function(){var t;this.carouselService.settings.dots&&(this._dotsData.dots.forEach((function(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)}},{key:"_current",value:function(){var t=this.carouselService.relative(this.carouselService.current()),e=this._pages.filter((function(e,n){return e.start<=t&&e.end>=t})).pop();return this._pages.findIndex((function(t){return t.start===e.start&&t.end===e.end}))}},{key:"_getPosition",value:function(t){var e,n,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}},{key:"next",value:function(t){this.carouselService.to(this._getPosition(!0),t)}},{key:"prev",value:function(t){this.carouselService.to(this._getPosition(!1),t)}},{key:"to",value:function(t,e,n){var 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)}},{key:"moveByDot",value:function(t){var e=this._dotsData.dots.findIndex((function(e){return t===e.id}));this.to(e,this.carouselService.settings.dotsSpeed)}},{key:"toSlideById",value:function(t){var e=this.carouselService.slidesData.findIndex((function(e){return e.id===t&&!1===e.isCloned}));-1!==e&&e!==this.carouselService.current()&&this.carouselService.to(this.carouselService.relative(e),!1)}}]),t}()).\u0275fac=function(t){return new(t||VD)(Yt(iR))},VD.\u0275prov=ft({token:VD,factory:VD.\u0275fac}),VD),aR=new Ht("WindowToken"),sR=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"nativeWindow",get:function(){throw new Error("Not implemented.")}}]),t}(),uR=[{provide:sR,useClass:(HD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"nativeWindow",get:function(){return window}}]),n}(sR),HD.\u0275fac=function(t){return new(t||HD)},HD.\u0275prov=ft({token:HD,factory:HD.\u0275fac}),HD)},{provide:aR,useFactory:function(t,e){return ad(e)?t.nativeWindow:{setTimeout:function(t,e){},clearTimeout:function(t){}}},deps:[sR,Tl]}],lR=new Ht("DocumentToken"),cR=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"nativeDocument",get:function(){throw new Error("Not implemented.")}}]),t}(),hR=[{provide:cR,useClass:(zD=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"nativeDocument",get:function(){return document}}]),n}(cR),zD.\u0275fac=function(t){return new(t||zD)},zD.\u0275prov=ft({token:zD,factory:zD.\u0275fac}),zD)},{provide:lR,useFactory:function(t,e){return ad(e)?t.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[cR,Tl]}],dR=(($D=function(){function t(e,n,r){_classCallCheck(this,t),this.carouselService=e,this._timeout=null,this._paused=!1,this.winRef=n,this.docRef=r,this.spyDataStreams()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.autoplaySubscription.unsubscribe()}},{key:"spyDataStreams",value:function(){var t=this,e=X(this.carouselService.getInitializedState().pipe(Am((function(){t.carouselService.settings.autoplay&&t.play()}))),this.carouselService.getChangedState().pipe(Am((function(e){t._handleChangeObservable(e)}))),this.carouselService.getResizedState().pipe(Am((function(){t.carouselService.settings.autoplay?t.play():t.stop()}))));this.autoplaySubscription=e.subscribe((function(){}))}},{key:"play",value:function(t,e){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),this.carouselService.is("rotating")||(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}},{key:"_getNextTimeout",value:function(t,e){var n=this;return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!t,this.winRef.setTimeout((function(){n._paused||n.carouselService.is("busy")||n.carouselService.is("interacting")||n.docRef.hidden||n.carouselService.next(e||n.carouselService.settings.autoplaySpeed)}),t||this.carouselService.settings.autoplayTimeout)}},{key:"_setAutoPlayInterval",value:function(t){this._timeout=this._getNextTimeout(t)}},{key:"stop",value:function(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}},{key:"pause",value:function(){this.carouselService.is("rotating")&&(this._paused=!0)}},{key:"_handleChangeObservable",value:function(t){"settings"===t.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===t.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}},{key:"_playAfterTranslated",value:function(){var t=this;Tm("translated").pipe(gb((function(e){return t.carouselService.getTranslatedState()})),Db(),Dm((function(){return t._isArtificialAutoplayTimeout})),Am((function(){return t._setAutoPlayInterval()}))).subscribe((function(){}))}},{key:"startPausing",value:function(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}},{key:"startPlayingMouseLeave",value:function(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}},{key:"startPlayingTouchEnd",value:function(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}}]),t}()).\u0275fac=function(t){return new(t||$D)(Yt(iR),Yt(aR),Yt(lR))},$D.\u0275prov=ft({token:$D,factory:$D.\u0275fac}),$D),fR=((XD=function(){function t(e){_classCallCheck(this,t),this.carouselService=e,this.spyDataStreams()}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.lazyLoadSubscription.unsubscribe()}},{key:"spyDataStreams",value:function(){var t=this,e=X(this.carouselService.getInitializedState().pipe(Am((function(){var e=t.carouselService.settings&&!t.carouselService.settings.lazyLoad;t.carouselService.slidesData.forEach((function(t){return t.load=!!e}))}))),this.carouselService.getChangeState(),this.carouselService.getResizedState()).pipe(Am((function(e){return t._defineLazyLoadSlides(e)})));this.lazyLoadSubscription=e.subscribe((function(){}))}},{key:"_defineLazyLoadSlides",value:function(t){var e=this;if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(t.property&&"position"===t.property.name||"initialized"===t||"resized"===t)){var n=this.carouselService.settings,r=this.carouselService.clones().length,i=n.center&&Math.ceil(n.items/2)||n.items,o=n.center&&-1*i||0,a=(t.property&&void 0!==t.property.value?t.property.value:this.carouselService.current())+o;for(n.lazyLoadEager>0&&(i+=n.lazyLoadEager,n.loop&&(a-=n.lazyLoadEager,i++));o++=e&&r=0?e.id.slice(n.length):e.id;return Object.assign(Object.assign({},e),{id:r,isActive:!0})})),t_(kD,[]),U((function(n){return{slides:n,startPosition:t.carouselService.relative(e.property.value)}}))))})),Am((function(e){t.gatherTranslatedData(),t.changed.emit(e.slides.length?e:t.slidesOutputData)}))),this._draggingCarousel$=this.carouselService.getDragState().pipe(Am((function(){t.gatherTranslatedData(),t.dragging.emit({dragging:!0,data:t.slidesOutputData})})),gb((function(){return t.carouselService.getDraggedState().pipe(U((function(){return!!t.carouselService.is("animating")})))})),gb((function(e){return e?t.carouselService.getTranslatedState().pipe(Db()):Tm("not animating")})),Am((function(){t.dragging.emit({dragging:!1,data:t.slidesOutputData})}))),this._carouselMerge$=X(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe((function(){}))}},{key:"_winResizeWatcher",value:function(){var t=this;Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe(Dm((function(){return t.carouselWindowWidth!==t.el.nativeElement.querySelector(".owl-carousel").clientWidth})),function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Um,r=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new CD(r,n))}}(this.carouselService.settings.responsiveRefreshRate)).subscribe((function(){t.carouselService.onResize(t.el.nativeElement.querySelector(".owl-carousel").clientWidth),t.carouselWindowWidth=t.el.nativeElement.querySelector(".owl-carousel").clientWidth})))}},{key:"onTransitionEnd",value:function(){this.carouselService.onTransitionEnd()}},{key:"next",value:function(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}},{key:"prev",value:function(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}},{key:"moveByDot",value:function(t){this.carouselLoaded&&this.navigationService.moveByDot(t)}},{key:"to",value:function(t){this.carouselLoaded&&this.navigationService.toSlideById(t)}},{key:"gatherTranslatedData",value:function(){var t,e=this.carouselService.clonedIdPrefix,n=this.slidesData.filter((function(t){return!0===t.isActive})).map((function(t){return{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}}},{key:"startPausing",value:function(){this.autoplayService.startPausing()}},{key:"startPlayML",value:function(){this.autoplayService.startPlayingMouseLeave()}},{key:"startPlayTE",value:function(){this.autoplayService.startPlayingTouchEnd()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Da(Js),Da(JD),Da(iR),Da(oR),Da(dR),Da(fR),Da(pR),Da(vR),Da(gR),Da(eR),Da(Yo),Da(lR))},t.\u0275cmp=ge({type:t,selectors:[["owl-carousel-o"]],contentQueries:function(t,e,n){var r;1&t&&vl(n,yR,!1),2&t&&hl(r=gl())&&(e.slides=r)},hostBindings:function(t,e){1&t&&Ga("visibilitychange",(function(t){return e.onVisibilityChange(t)}),!1,Kn)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[Qs([oR,dR,iR,fR,pR,vR,gR])],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&&(ja(0,"div",0,1),Ga("mouseover",(function(){return e.startPausing()}))("mouseleave",(function(){return e.startPlayML()}))("touchstart",(function(){return e.startPausing()}))("touchend",(function(){return e.startPlayTE()})),Pa(2,TD,2,6,"div",2),Pa(3,PD,6,15,"ng-container",3),Ua()),2&t&&(La("ngClass",Wu(3,ND,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)),Ci(2),La("ngIf",e.carouselLoaded),Ci(1),La("ngIf",e.slides.toArray().length))},directives:function(){return[Ah,Rh,_R,Nh]},styles:[".owl-theme[_ngcontent-%COMP%] { display: block; }"]}),t}(),_R=((qD=function(){function t(e,n,r,i,o){var a=this;_classCallCheck(this,t),this.zone=e,this.el=n,this.renderer=r,this.carouselService=i,this.animateService=o,this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this._oneDragMove$=new I,this.bindOneMouseTouchMove=function(t){a._oneMouseTouchMove(t)},this.bindOnDragMove=function(t){a._onDragMove(t)},this.bindOnDragEnd=function(t){a._onDragEnd(t)},this._oneClickHandler=function(){a.listenerOneClick=a.renderer.listen(a._drag.target,"click",(function(){return!1})),a.listenerOneClick()}}return _createClass(t,[{key:"onMouseDown",value:function(t){this.owlDraggable.isMouseDragable&&this._onDragStart(t)}},{key:"onTouchStart",value:function(t){this.owlDraggable.isTouchDragable&&this._onDragStart(t)}},{key:"onTouchCancel",value:function(t){this._onDragEnd(t)}},{key:"onDragStart",value:function(){if(this.owlDraggable.isMouseDragable)return!1}},{key:"onSelectStart",value:function(){if(this.owlDraggable.isMouseDragable)return!1}},{key:"ngOnInit",value:function(){var t=this;this._oneMoveSubsription=this._oneDragMove$.pipe(Db()).subscribe((function(){t._sendChanges()}))}},{key:"ngOnDestroy",value:function(){this._oneMoveSubsription.unsubscribe()}},{key:"_onDragStart",value:function(t){var e=this,n=null;3!==t.which&&(n=this._prepareDragging(t),this._drag.time=(new Date).getTime(),this._drag.target=t.target,this._drag.stage.start=n,this._drag.stage.current=n,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((function(){e.listenerOneMouseMove=e.renderer.listen(document,"mousemove",e.bindOneMouseTouchMove),e.listenerOneTouchMove=e.renderer.listen(document,"touchmove",e.bindOneMouseTouchMove)})))}},{key:"_oneMouseTouchMove",value:function(t){var 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) nulled",[Yd("700ms 350ms")]),ef("nulled => full",[Yd(350)])])]}}),qD),wR=function(){var t=function t(){_classCallCheck(this,t)};return t.\u0275mod=_e({type:t}),t.\u0275inj=pt({factory:function(e){return new(e||t)},providers:[uR,JD,hR,eR],imports:[[od]]}),t}(),kR=["plenaryCollapsible"],CR=["track1Collapsible"],SR=["track2Collapsible"],ER=["track3Collapsible"],xR=["track4Collapsible"],TR=["track5Collapsible"],IR=["track6Collapsible"],OR=["track7Collapsible"],AR=["track8Collapsible"],PR=["track9Collapsible"],NR=["track10Collapsible"],DR=["sponsorCollapsible"];function RR(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function MR(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya().showPlenaryCollapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function LR(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya().navigateToRoom(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,RR,2,0,"p",57),Ua(),Pa(8,MR,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function FR(t,e){1&t&&(Ba(0),Pa(1,LR,9,7,"ng-template",50),Ha())}function jR(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function UR(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack1Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function VR(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,jR,2,0,"p",57),Ua(),Pa(8,UR,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function BR(t,e){1&t&&(Ba(0),Pa(1,VR,9,7,"ng-template",50),Ha())}function HR(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",6),Ss(3," Hybrid Events Breakout "),Ua(),Ua(),ja(4,"div",43),ja(5,"div",44),ja(6,"span",45),Ga("click",(function(){return tn(n),Na(10).prev()})),ja(7,"div",10),Va(8,"mdb-icon",11),Ua(),Ua(),ja(9,"owl-carousel-o",12,62),Pa(11,BR,2,0,"ng-container",14),Ua(),ja(12,"span",47),Ga("click",(function(){return tn(n),Na(10).next()})),ja(13,"div",10),Va(14,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(9),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track1SlideStore)}}function zR(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function qR(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack2Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function WR(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,zR,2,0,"p",57),Ua(),Pa(8,qR,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function GR(t,e){1&t&&(Ba(0),Pa(1,WR,9,7,"ng-template",50),Ha())}function KR(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",6),Ss(3," NOW Online Events Breakout "),Ua(),Ua(),ja(4,"div",43),ja(5,"div",44),ja(6,"span",45),Ga("click",(function(){return tn(n),Na(10).prev()})),ja(7,"div",10),Va(8,"mdb-icon",11),Ua(),Ua(),ja(9,"owl-carousel-o",12,63),Pa(11,GR,2,0,"ng-container",14),Ua(),ja(12,"span",47),Ga("click",(function(){return tn(n),Na(10).next()})),ja(13,"div",10),Va(14,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(9),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track2SlideStore)}}function QR(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function XR(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack3Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function $R(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,QR,2,0,"p",57),Ua(),Pa(8,XR,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function YR(t,e){1&t&&(Ba(0),Pa(1,$R,9,7,"ng-template",50),Ha())}function JR(t,e){if(1&t){var n=za();ja(0,"div",64),ja(1,"div",5),ja(2,"p",65),Ss(3," Featured Sponsor - Mischief Makers "),Ua(),Ua(),ja(4,"div",43),ja(5,"div",44),ja(6,"span",45),Ga("click",(function(){return tn(n),Na(10).prev()})),ja(7,"div",10),Va(8,"mdb-icon",11),Ua(),Ua(),ja(9,"owl-carousel-o",12,66),Pa(11,YR,2,0,"ng-container",14),Ua(),ja(12,"span",47),Ga("click",(function(){return tn(n),Na(10).next()})),ja(13,"div",10),Va(14,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(9),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track3SlideStore)}}function ZR(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function tM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack4Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function eM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,ZR,2,0,"p",57),Ua(),Pa(8,tM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function nM(t,e){1&t&&(Ba(0),Pa(1,eM,9,7,"ng-template",50),Ha())}function rM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),Ss(3," Track 4 "),Ua(),Ua(),ja(4,"div",7),ja(5,"div",8),ja(6,"span",45),Ga("click",(function(){return tn(n),Na(10).prev()})),ja(7,"div",10),Va(8,"mdb-icon",11),Ua(),Ua(),ja(9,"owl-carousel-o",12,67),Pa(11,nM,2,0,"ng-container",14),Ua(),ja(12,"span",47),Ga("click",(function(){return tn(n),Na(10).next()})),ja(13,"div",10),Va(14,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(9),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track4SlideStore)}}function iM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function oM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack5Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function aM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",69),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Pa(7,iM,2,0,"p",57),Ua(),Pa(8,oM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function sM(t,e){1&t&&(Ba(0),Pa(1,aM,9,7,"ng-template",50),Ha())}function uM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 5"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,68),Pa(12,sM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track5SlideStore)}}function lM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function cM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack6Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function hM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,lM,2,0,"p",57),Ua(),Pa(8,cM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function dM(t,e){1&t&&(Ba(0),Pa(1,hM,9,7,"ng-template",50),Ha())}function fM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 6"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,70),Pa(12,dM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track6SlideStore)}}function pM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function vM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack7Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function gM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,pM,2,0,"p",57),Ua(),Pa(8,vM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function mM(t,e){1&t&&(Ba(0),Pa(1,gM,9,7,"ng-template",50),Ha())}function yM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 7"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,71),Pa(12,mM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track7SlideStore)}}function bM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function _M(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack8Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function wM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,bM,2,0,"p",57),Ua(),Pa(8,_M,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function kM(t,e){1&t&&(Ba(0),Pa(1,wM,9,7,"ng-template",50),Ha())}function CM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 8"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,72),Pa(12,kM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track8SlideStore)}}function SM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function EM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack9Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function xM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,SM,2,0,"p",57),Ua(),Pa(8,EM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function TM(t,e){1&t&&(Ba(0),Pa(1,xM,9,7,"ng-template",50),Ha())}function IM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 9"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,73),Pa(12,TM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track9SlideStore)}}function OM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function AM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showTrack10Collapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function PM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya(2).navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,OM,2,0,"p",57),Ua(),Pa(8,AM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function NM(t,e){1&t&&(Ba(0),Pa(1,PM,9,7,"ng-template",50),Ha())}function DM(t,e){if(1&t){var n=za();ja(0,"div",4),ja(1,"div",5),ja(2,"p",65),ja(3,"strong"),Ss(4,"Track 10"),Ua(),Ua(),Ua(),ja(5,"div",7),ja(6,"div",8),ja(7,"span",45),Ga("click",(function(){return tn(n),Na(11).prev()})),ja(8,"div",10),Va(9,"mdb-icon",11),Ua(),Ua(),ja(10,"owl-carousel-o",12,74),Pa(12,NM,2,0,"ng-container",14),Ua(),ja(13,"span",47),Ga("click",(function(){return tn(n),Na(11).next()})),ja(14,"div",10),Va(15,"mdb-icon",16),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(10),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.track10SlideStore)}}function RM(t,e){1&t&&(ja(0,"p",59),Ss(1,"Event Ended"),Ua())}function MM(t,e){if(1&t){var n=za();ja(0,"div",60),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya().showSponsorCollapsible(t.event_name,t.event_description,t.event_type)})),Va(1,"mdb-icon",61),Ua()}}function LM(t,e){if(1&t){var n=za();ja(0,"div",51),Va(1,"img",52),ja(2,"div",53),ja(3,"div",54),Ss(4),Ua(),Ua(),ja(5,"div",55),Ga("click",(function(){tn(n);var t=Ya().$implicit;return Ya().navigateToBreakout(t.event_type,t.event_name)})),Ua(),ja(6,"div",56),Pa(7,RM,2,0,"p",57),Ua(),Pa(8,MM,2,0,"div",58),Ua()}if(2&t){var r=Ya().$implicit;La("ngClass","ENDED"!=r.status?"zoom":""),Ci(1),La("src",r.image,ei)("title",r.title),Ci(3),Es(r.status),Ci(2),La("ngClass","ENDED"==r.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==r.status),Ci(1),La("ngIf","ENDED"!=r.status&&12399!=r.event_id)}}function FM(t,e){1&t&&(Ba(0),Pa(1,LM,9,7,"ng-template",50),Ha())}var jM,UM=((jM=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.authService=e,this.eventService=n,this.localStorageService=r,this.router=i,this.chatService=o,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=[]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var t=this;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((function(e){for(var n,r=0;r(new Date).getTime()?(n.status="LIVE",t.plenarySlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.plenarySlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.plenarySlideStore.push(n)):"sponsor-presentation"===n.event_type?(console.log(n),1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.sponsorSlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.sponsorSlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.sponsorSlideStore.push(n))):null!=n.track&&(1===n.track&&(console.log(n),1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track1SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track1SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track1SlideStore.push(n))),2===n.track&&(1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track2SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track2SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track2SlideStore.push(n))),3===n.track&&(1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track3SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track3SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track3SlideStore.push(n))),4===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track4SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track4SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track4SlideStore.push(n)):5===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track5SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track5SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track5SlideStore.push(n)):6===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track6SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track6SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track6SlideStore.push(n)):7===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track7SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track7SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track7SlideStore.push(n)):8===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track8SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track8SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track8SlideStore.push(n)):9===n.track?1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track9SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track9SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track9SlideStore.push(n)):10===n.track&&(1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds>(new Date).getTime()?(n.status="LIVE",t.track10SlideStore.push(n)):1e3*n.start_time.seconds<(new Date).getTime()&&1e3*n.end_time.seconds<(new Date).getTime()?(n.status="ENDED",t.track10SlideStore.push(n)):1e3*o.start_time.seconds>(new Date).getTime()&&(n.status=hh(new Date(1e3*o.start_time.seconds),"h:mm a","en"),t.track10SlideStore.push(n)))),i+1==e.docs.length){if(t.plenarySlideStore.length>=1&&t.plenarySlideStore.length<5)for(var a=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),s=t.plenarySlideStore.length;s<5;s++)t.plenarySlideStore.push(a);if(t.sponsorSlideStore.length>=1&&t.sponsorSlideStore.length<5)for(var u=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),l=t.sponsorSlideStore.length;l<5;l++)t.sponsorSlideStore.push(u);if(t.track1SlideStore.length>=1&&t.track1SlideStore.length<5)for(var c=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),h=t.track1SlideStore.length;h<5;h++)t.track1SlideStore.push(c);if(t.track2SlideStore.length>=1&&t.track2SlideStore.length<5)for(var d=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),f=t.track2SlideStore.length;f<5;f++)t.track2SlideStore.push(d);if(t.track3SlideStore.length>=1&&t.track3SlideStore.length<5)for(var p=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),v=t.track3SlideStore.length;v<5;v++)t.track3SlideStore.push(p);if(t.track4SlideStore.length>=1&&t.track4SlideStore.length<5)for(var g=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),m=t.track4SlideStore.length;m<5;m++)t.track4SlideStore.push(g);if(t.track5SlideStore.length>=1&&t.track5SlideStore.length<5)for(var y=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),b=t.track5SlideStore.length;b<5;b++)t.track5SlideStore.push(y);if(t.track6SlideStore.length>=1&&t.track6SlideStore.length<5)for(var _=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),w=t.track6SlideStore.length;w<5;w++)t.track6SlideStore.push(_);if(t.track7SlideStore.length>=1&&t.track7SlideStore.length<5)for(var k=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),C=t.track7SlideStore.length;C<5;C++)t.track7SlideStore.push(k);if(t.track8SlideStore.length>=1&&t.track8SlideStore.length<5)for(var S=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),E=t.track8SlideStore.length;E<5;E++)t.track8SlideStore.push(S);if(t.track9SlideStore.length>=1&&t.track9SlideStore.length<5)for(var x=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),T=t.track9SlideStore.length;T<5;T++)t.track9SlideStore.push(x);if(t.track10SlideStore.length>=1&&t.track10SlideStore.length<5)for(var I=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),O=t.track10SlideStore.length;O<5;O++)t.track10SlideStore.push(I)}}t.plenarySlideStore.sort((function(t,e){return"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})),t.sponsorSlideStore.sort((function(t,e){return"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})),t.track1SlideStore.sort((function(t,e){return"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(t.track2SlideStore),t.track2SlideStore.sort((function(t,e){return"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(t.track2SlideStore),t.track3SlideStore.sort((function(t,e){return"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})),t.track4SlideStore.sort((function(t,e){return"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})),t.track5SlideStore.sort((function(t,e){return"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})),t.track6SlideStore.sort((function(t,e){return"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})),t.track7SlideStore.sort((function(t,e){return"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})),t.track8SlideStore.sort((function(t,e){return"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})),t.track9SlideStore.sort((function(t,e){return"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})),t.track10SlideStore.sort((function(t,e){return"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(var A=0;A0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track1BreakoutEventName," "),Ci(2),Es(e.track1BreakoutEventDescription),Ci(6),La("ngIf",e.track2SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track2BreakoutEventName," "),Ci(2),Es(e.track2BreakoutEventDescription),Ci(6),La("ngIf",e.track3SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track3BreakoutEventName," "),Ci(2),Es(e.track3BreakoutEventDescription),Ci(6),La("ngIf",e.track4SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track4BreakoutEventName," "),Ci(2),Es(e.track4BreakoutEventDescription),Ci(6),La("ngIf",e.track5SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track5BreakoutEventName," "),Ci(2),Es(e.track5BreakoutEventDescription),Ci(6),La("ngIf",e.track6SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track6BreakoutEventName," "),Ci(2),Es(e.track6BreakoutEventDescription),Ci(6),La("ngIf",e.track7SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track7BreakoutEventName," "),Ci(2),Es(e.track7BreakoutEventDescription),Ci(6),La("ngIf",e.track8SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track8BreakoutEventName," "),Ci(2),Es(e.track8BreakoutEventDescription),Ci(6),La("ngIf",e.track9SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track9BreakoutEventName," "),Ci(2),Es(e.track9BreakoutEventDescription),Ci(6),La("ngIf",e.track10SlideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.track10BreakoutEventName," "),Ci(2),Es(e.track10BreakoutEventDescription),Ci(15),La("options",e.carouselOptions),Ci(2),La("ngForOf",e.sponsorSlideStore),Ci(4),La("isCollapsed",!0),Ci(7),xs(" ",e.sponsorEventName," "),Ci(2),Es(e.sponsorEventDescription))},directives:[wI,yI,EA,xA,bR,Nh,EI,nI,XT,nP,Rh,yR,Ah],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}"]}),jM),VM=["chatboxchild"];function BM(t,e){if(1&t&&(ja(0,"div",22),Va(1,"img",23),Va(2,"img",24),Va(3,"img",25),Ua()),2&t){var n=Ya();Ci(1),La("src",n.userProfilePictureURL,ei),Ci(1),La("src",n.userProfilePictureURL,ei),Ci(1),La("src",n.userProfilePictureURL,ei)}}function HM(t,e){if(1&t){var n=za();ja(0,"button",26),Ga("click",(function(){return tn(n),Ya().privateMessage()})),Va(1,"mdb-icon",27),Ss(2,"Message "),Ua()}}function zM(t,e){1&t&&(ja(0,"button",28),Va(1,"mdb-icon",29),Ss(2,"Edit "),Ua())}function qM(t,e){if(1&t){var n=za();ja(0,"button",30),Ga("click",(function(){return tn(n),Ya().privateMessage()})),Va(1,"mdb-icon",27),Ss(2,"Message "),Ua()}}function WM(t,e){1&t&&(ja(0,"button",31),Va(1,"mdb-icon",29),Ss(2,"Edit "),Ua())}var GM,KM=((GM=function(){function t(e,n,r,i,o,a){_classCallCheck(this,t),this.document=e,this.activatedRoute=n,this.chatService=r,this.router=i,this.localStorageService=o,this.afs=a,this.userProfileObjectEvent=new tl,this.zoom_Login=!1,this.self=!0,this.userChatProfiles=[]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;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((function(e){t.userProfilePictureURL=null==e.data().photoURL||""==e.data().photoURL||null==e.data().photoURL?"/assets/default-profile.png":e.data().photoURL,t.firstAndLastName=e.data().firstName+" "+e.data().lastName,t.jobTitleAndOrganization=e.data().jobTitle+" at "+e.data().organization,t.email=e.data().email,t.department=e.data().department,t.organization=e.data().organization,t.jobTitle=e.data().jobTitle}))}},{key:"privateMessage",value:function(){var t=this;new Promise((function(e,n){t.afs.collection("users").doc(t.privateMessageUid).get().subscribe((function(n){if(null!==n){t.defaultPhotoURL=null==n.data().photoURL?"/assets/default-profile.png":n.data().photoURL;var r={uid:n.data().uid,accountCreated:n.data().accountCreated,email:n.data().email,displayName:n.data().displayName,photoURL:t.defaultPhotoURL,emailVerified:n.data().emailVerified,firstName:n.data().firstName,lastName:n.data().lastName,department:n.data().department,organization:n.data().organization,jobTitle:n.data().jobTitle,conversations:n.data().conversations};e(r)}}))})).then((function(e){console.log(e),t.chatboxchild.openChatContainer(e),t.chatService.messageButtonPressedAlert()}))}}]),t}()).\u0275fac=function(t){return new(t||GM)(Da(Cc),Da(dw),Da(EC),Da(Ck),Da(pC),Da(pb))},GM.\u0275cmp=ge({type:GM,selectors:[["app-user-profile"]],viewQuery:function(t,e){var n;1&t&&fl(VM,!0),2&t&&hl(n=gl())&&(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&&(ja(0,"div",0),Va(1,"div",1),ja(2,"div",2),ja(3,"mdb-card",3),ja(4,"div",4),ja(5,"div",5),Pa(6,BM,4,3,"div",6),Ua(),ja(7,"div",7),ja(8,"div",8),ja(9,"p",9),Ss(10),Ua(),ja(11,"p",10),Va(12,"mdb-icon",11),Ss(13),Ua(),Va(14,"hr"),ja(15,"p",10),Va(16,"mdb-icon",12),Ss(17),Ua(),ja(18,"p",10),Va(19,"mdb-icon",13),Ss(20),Ua(),ja(21,"p",10),Va(22,"mdb-icon",14),Ss(23),Ua(),Pa(24,HM,3,0,"button",15),Pa(25,zM,3,0,"button",16),Ua(),ja(26,"div",17),ja(27,"p",18),Ss(28),Ua(),ja(29,"p",10),Va(30,"mdb-icon",11),Ss(31),Ua(),Va(32,"hr"),ja(33,"p",10),Va(34,"mdb-icon",12),Ss(35),Ua(),ja(36,"p",10),Va(37,"mdb-icon",13),Ss(38),Ua(),ja(39,"p",10),Va(40,"mdb-icon",14),Ss(41),Ua(),Pa(42,qM,3,0,"button",19),Pa(43,WM,3,0,"button",20),Ua(),Ua(),Ua(),Ua(),Ua(),Va(44,"app-chat-box",null,21),Ua()),2&t&&(Ci(6),La("ngIf",e.userProfilePictureURL),Ci(4),xs(" ",e.firstAndLastName,""),Ci(3),xs("",e.email," "),Ci(4),xs("",e.department," "),Ci(3),xs("",e.organization," "),Ci(3),xs("",e.jobTitle," "),Ci(1),La("ngIf",!e.self),Ci(1),La("ngIf",e.self),Ci(3),Es(e.firstAndLastName),Ci(3),xs("",e.email," "),Ci(4),xs("",e.department," "),Ci(3),xs("",e.organization," "),Ci(3),xs("",e.jobTitle," "),Ci(1),La("ngIf",!e.self),Ci(1),La("ngIf",e.self))},directives:[nI,Rh,EA,xA,YN,XT,nP,Sk],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}"]}),GM);function QM(t){var e=function(t){return new k((function(e){return t.on("state_changed",(function(t){return e.next(t)}),(function(t){return e.error(t)}),(function(){return e.complete()})),function(){return 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:function(){return e},percentageChanges:function(){return e.pipe(U((function(t){return t.bytesTransferred/t.totalBytes*100})))}}}function XM(t,e,n){return{getDownloadURL:function(){return Tm(void 0).pipe(_y(e.outsideAngular),gb((function(){return t.getDownloadURL()})),n)},getMetadata:function(){return Tm(void 0).pipe(_y(e.outsideAngular),gb((function(){return t.getMetadata()})),n)},delete:function(){return z(t.delete())},child:function(r){return XM(t.child(r),e,n)},updateMetadata:function(e){return z(t.updateMetadata(e))},put:function(e,n){return QM(t.put(e,n))},putString:function(e,n,r){return QM(t.putString(e,n,r))},listAll:function(){return z(t.listAll())}}}n("LmZi");var $M,YM,JM,ZM=new Ht("angularfire2.storageBucket"),tL=((YM=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.schedulers=new By(o),this.keepUnstableUntilFirst=Hy(this.schedulers),this.storage=o.runOutsideAngular((function(){return Ky(e,o,n).storage(r||void 0)}))}return _createClass(t,[{key:"ref",value:function(t){return XM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst)}},{key:"upload",value:function(t,e,n){return XM(this.storage.ref(t),this.schedulers,this.keepUnstableUntilFirst).put(e,n)}}]),t}()).\u0275fac=function(t){return new(t||YM)(Yt(qy),Yt(Wy,8),Yt(ZM,8),Yt(Tl),Yt(zl))},YM.\u0275prov=ft({factory:function(){return new YM(Yt(qy),Yt(Wy,8),Yt(ZM,8),Yt(Tl),Yt(zl))},token:YM,providedIn:"any"}),YM),eL=(($M=function t(){_classCallCheck(this,t)}).\u0275mod=_e({type:$M}),$M.\u0275inj=pt({factory:function(t){return new(t||$M)},providers:[tL]}),$M),nL=["videoPlayerDiv"],rL=((JM=function(){function t(e,n,r,i,o,a,s){_classCallCheck(this,t),this.localStorageService=e,this.apiService=n,this._document=r,this.storage=i,this.activatedRoute=o,this.router=a,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=[]}return _createClass(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var t=this;try{var e=this.localStorageService.getUserDataFromLocalStorage().meetingPulseKey.replace("=","%3D");this.eventName=this.activatedRoute.snapshot.params.event_name,this.apiService.getEvent(this.eventName).then((function(n){t.event=n[0].payload.doc.data(),t.meetingPulseSrc=t.sanitizer.bypassSecurityTrustResourceUrl("https://global.meet.ps/attendee/nhg?i="+e),t.eventSpeakers=t.event.speakers;var r=t.storage.ref("event_files/"+t.event.event_id),i="";r.listAll().toPromise().then((function(e){e.items.forEach((function(e){console.log(e.name);var n=e.name;e.getDownloadURL().then((function(e){switch(n.split(".").pop()){case"pptx":i="../../assets/ppt.png";break;case"pdf":i="../../assets/pdf.png";break;case"docx":i="../../assets/doc.png"}t.files.push({filename:n,url:e,src:i})}))}))})),t.wowza=new wowzaScript(t.event.wowza_rtmp_link,t.event.wowza_preview_poster)}))}catch(n){console.log("Error #342")}}},{key:"onScroll",value:function(t){var e=document.scrollingElement.scrollTop,n=this.videoPlayerDiv.nativeElement.getBoundingClientRect().height;this.videoInView=!(e>70+n)}}]),t}()).\u0275fac=function(t){return new(t||JM)(Da(pC),Da(wD),Da(Cc),Da(tL),Da(dw),Da(Ck),Da(qd))},JM.\u0275cmp=ge({type:JM,selectors:[["app-plenary"]],viewQuery:function(t,e){var n;1&t&&fl(nL,!0,Js),2&t&&hl(n=gl())&&(e.videoPlayerDiv=n.first)},hostBindings:function(t,e){1&t&&Ga("scroll",(function(t){return e.onScroll(t)}),!1,Gn)},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&&(Va(0,"div",0),ja(1,"div",1,2),ja(3,"div",3),Va(4,"div",4),ja(5,"div",5),ja(6,"div",6),Va(7,"iframe",7),Ua(),Ua(),Ua(),Ua())},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}"]}),JM),iL=["collapsible"],oL=["videoPlayerDiv"];function aL(t,e){1&t&&Va(0,"div",52,53)}function sL(t,e){1&t&&Va(0,"div",54)}function uL(t,e){if(1&t&&(ja(0,"div",49),Pa(1,aL,2,0,"div",50),Pa(2,sL,1,0,"ng-template",null,51,_l),Ua()),2&t){var n=Na(3),r=Ya();Ci(1),La("ngIf","jitsi"===(null==r.sponsor?null:r.sponsor.stream_type))("ngIfElse",n)}}function lL(t,e){if(1&t&&(ja(0,"div",55),Va(1,"iframe",56),Ua()),2&t){var n=Ya();Ci(1),La("src",n.vimeoVodLink,ni)}}function cL(t,e){if(1&t&&(ja(0,"div",57),ja(1,"a",58),Va(2,"img",59),Ua(),Va(3,"br"),Ss(4),Ua()),2&t){var n=e.$implicit;Ci(1),es("href",n.url,ei),es("download",n.filename),Ci(1),es("src",n.src,ei),Ci(2),xs(" ",n.filename," ")}}function hL(t,e){1&t&&(ja(0,"p",80),Ss(1,"Event Ended"),Ua())}function dL(t,e){if(1&t){var n=za();ja(0,"div",81),Ga("click",(function(){tn(n);var t=Ya(2).$implicit;return Ya(2).showCollapsible(t.event_name,t.event_description)})),Va(1,"mdb-icon",82),Ua()}}function fL(t,e){if(1&t&&(ja(0,"div",72),Va(1,"img",73),ja(2,"div",74),ja(3,"div",75),Ss(4),Ua(),Ua(),Va(5,"div",76),ja(6,"div",77),Pa(7,hL,2,0,"p",78),Ua(),Pa(8,dL,2,0,"div",79),Ua()),2&t){var n=Ya().$implicit;La("ngClass","ENDED"!=n.status?"zoom":""),Ci(1),La("src",n.image,ei)("title",n.title),Ci(3),Es(n.status),Ci(2),La("ngClass","ENDED"==n.status?"mask flex-center rgba-grey-strong opacity1":""),Ci(1),La("ngIf","ENDED"==n.status),Ci(1),La("ngIf","ENDED"!=n.status)}}function pL(t,e){1&t&&(Ba(0),Pa(1,fL,9,7,"ng-template",71),Ha())}function vL(t,e){if(1&t){var n=za();ja(0,"div",60),ja(1,"div",61),ja(2,"div",62),ja(3,"span",63),Ga("click",(function(){return tn(n),Na(7).prev()})),ja(4,"div",64),Va(5,"mdb-icon",65),Ua(),Ua(),ja(6,"owl-carousel-o",66,67),Pa(8,pL,2,0,"ng-container",68),Ua(),ja(9,"span",69),Ga("click",(function(){return tn(n),Na(7).next()})),ja(10,"div",64),Va(11,"mdb-icon",70),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Ya();Ci(6),La("options",r.carouselOptions),Ci(2),La("ngForOf",r.slideStore)}}var gL,mL,yL=((mL=function(){function t(e,n,r,i,o,a,s){_classCallCheck(this,t),this.localStorageService=e,this.eventService=n,this.router=r,this.activatedRoute=i,this._document=o,this.storage=a,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=[]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this,e=this.localStorageService.getUserDataFromLocalStorage().firstName+" "+this.localStorageService.getUserDataFromLocalStorage().lastName;this.sponsorName=this.activatedRoute.snapshot.params.sponsor_name,this.eventService.getSponsorByName(this.sponsorName).then((function(e){t.sponsor=e[0].payload.doc.data(),t.gruveoLink=t.sponsor.gruveo_link,t.vimeoVodLink=t.sanitizer.bypassSecurityTrustResourceUrl(t.sponsor.vimeo_vod_link)})).then((function(){t.eventService.getAllSponsorPresentations().then((function(n){for(var r=0;r(new Date).getTime()){if(t.presenting=!0,"jitsi"==t.sponsor.stream_type){var o=t.localStorageService.getUserDataFromLocalStorage().email;t.domain="meet.jit.si",t.options={roomName:t.sponsor.jitsi_room_name,width:document.getElementById("jitsiWidth").offsetWidth-15,height:700,parentNode:document.querySelector("#meet"),userInfo:{email:o,displayName:e}},t.jitsiApi=new JitsiMeetExternalAPI(t.domain,t.options)}else"livewebinar"==t.sponsor.stream_type&&(console.log(t.sponsor),t.liveWebinarApi=new liveWebinar(t.sponsor.livewebinar_id,e));break}t.presenting=!1;break}}})),t.eventService.getAllSponsorTracksBySponsorId(t.sponsor.sponsor_id).then((function(e){for(var n=0;n(new Date).getTime()?(i.status="LIVE",t.slideStore.push(i)):1e3*i.start_time.seconds<(new Date).getTime()&&1e3*i.end_time.seconds<(new Date).getTime()?(i.status="ENDED",t.slideStore.push(i)):1e3*r.start_time.seconds>(new Date).getTime()&&(i.status=hh(new Date(1e3*r.start_time.seconds),"h:mm:ss a","en"),t.slideStore.push(i)),n+1==e.length&&t.slideStore.length>=1&&t.slideStore.length<5)for(var o=new mD("","",12399,"","carousel-filler","../../assets/transparent.png","",[],12399,"",1,"","","",""),a=t.slideStore.length;a<5;a++)t.slideStore.push(o)}}));var n=t.storage.ref("sponsor_files/"+t.sponsor.sponsor_id),r="";n.listAll().toPromise().then((function(e){e.items.forEach((function(e){var n=e.name;e.getDownloadURL().then((function(e){switch(n.split(".").pop()){case"pptx":r="../../assets/ppt.png";break;case"pdf":r="../../assets/pdf.png";break;case"docx":r="../../assets/docx.png"}t.files.push({filename:n,url:e,src:r})}))}))}))}))}},{key:"onScroll",value:function(t){var e=document.scrollingElement.scrollTop,n=this.videoPlayerDiv.nativeElement.getBoundingClientRect().height;this.videoInView=!(e>70+n)}},{key:"videoCall",value:function(){window.open(this.gruveoLink,"_blank")}},{key:"showCollapsible",value:function(t,e){var n=this.breakoutEventName;this.breakoutEventName=t,this.breakoutEventDescription=e,this.collapsible.isCollapsed?this.collapsible.toggle():this.collapsible.isCollapsed||n!=this.breakoutEventName||this.collapsible.toggle()}}]),t}()).\u0275fac=function(t){return new(t||mL)(Da(pC),Da(wD),Da(Ck),Da(dw),Da(Cc),Da(tL),Da(qd))},mL.\u0275cmp=ge({type:mL,selectors:[["app-sponsor-microsite"]],viewQuery:function(t,e){var n;1&t&&(dl(iL,!0),fl(oL,!0,Js)),2&t&&(hl(n=gl())&&(e.collapsible=n.first),hl(n=gl())&&(e.videoPlayerDiv=n.first))},hostBindings:function(t,e){1&t&&Ga("scroll",(function(t){return e.onScroll(t)}),!1,Gn)},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){var n=za();Va(0,"div",0),ja(1,"div",1,2),Va(3,"div",3),ja(4,"div",4),Pa(5,uL,4,2,"div",5),Pa(6,lL,2,1,"ng-template",null,6,_l),Va(8,"div",7),ja(9,"div",8),ja(10,"mdb-tabset",9,10),ja(12,"mdb-tab",11),ja(13,"div",12),ja(14,"div",13),Va(15,"br"),Va(16,"img",14),Va(17,"br"),ja(18,"p"),Ss(19),Ua(),Ua(),Ua(),Ua(),ja(20,"mdb-tab",15),ja(21,"div",12),ja(22,"div",13),Va(23,"br"),ja(24,"div"),ja(25,"ul",16),ja(26,"li"),ja(27,"div",17),Va(28,"mdb-icon",18),ja(29,"a",19),Ss(30),Ua(),Ua(),ja(31,"div",20),Va(32,"mdb-icon",21),ja(33,"a",19),Ss(34),Ua(),Ua(),Ua(),Va(35,"br"),ja(36,"li"),ja(37,"div",17),Va(38,"mdb-icon",22),ja(39,"a",23),Ss(40),Ua(),Ua(),ja(41,"div",20),Va(42,"mdb-icon",24),ja(43,"a",23),Ss(44),Ua(),Ua(),Ua(),Va(45,"br"),Ua(),ja(46,"div",25),ja(47,"button",26),Ga("click",(function(){return e.videoCall()})),Ss(48," Video call"),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),ja(49,"mdb-tab",27),ja(50,"div",28),Pa(51,cL,5,4,"div",29),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Va(52,"div",30),ja(53,"div",31),Va(54,"div",32),ja(55,"div",33),ja(56,"div",34),ja(57,"p",35),Ss(58," Sponsor Tracks "),Ua(),Ua(),Pa(59,vL,12,2,"div",36),ja(60,"div",37,38),Va(62,"div",39),ja(63,"mdb-card",40),ja(64,"div",41),ja(65,"div",42),ja(66,"h5",43),Ss(67),Ua(),ja(68,"p",44),Ss(69),Ua(),ja(70,"button",45),Ss(71," Watch "),Ua(),ja(72,"div",46),ja(73,"a",47),Ga("click",(function(){return tn(n),Na(61).toggle()})),Va(74,"mdb-icon",48),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ua(),Ua()}if(2&t){var r=Na(7);Ci(5),La("ngIf",e.presenting)("ngIfElse",r),Ci(5),La("buttonClass","md-tabs tabs-dark tabs-3")("contentClass","card"),Ci(6),La("src",null==e.sponsor?null:e.sponsor.sponsor_logo,ei),Ci(3),Es(null==e.sponsor?null:e.sponsor.sponsor_description),Ci(10),ns("href","mailto:",null==e.sponsor?null:e.sponsor.sponsor_email,"",ei),Ci(1),Es(null==e.sponsor?null:e.sponsor.sponsor_email),Ci(3),ns("href","mailto:",null==e.sponsor?null:e.sponsor.sponsor_email,"",ei),Ci(1),Es(null==e.sponsor?null:e.sponsor.sponsor_email),Ci(5),es("href",null==e.sponsor?null:e.sponsor.sponsor_website,ei),Ci(1),Es(null==e.sponsor?null:e.sponsor.sponsor_website),Ci(3),es("href",null==e.sponsor?null:e.sponsor.sponsor_website,ei),Ci(1),Es(null==e.sponsor?null:e.sponsor.sponsor_website),Ci(7),La("ngForOf",e.files),Ci(8),La("ngIf",e.slideStore.length>0),Ci(1),La("isCollapsed",!0),Ci(7),xs(" ",e.breakoutEventName," "),Ci(2),Es(e.breakoutEventDescription)}},directives:[Rh,TN,IN,EA,xA,XT,nP,Nh,EI,nI,bR,yR,Ah],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}"]}),mL),bL=((gL=function(){function t(){_classCallCheck(this,t),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"}return _createClass(t,[{key:"ngOnInit",value:function(){}}]),t}()).\u0275fac=function(t){return new(t||gL)},gL.\u0275cmp=ge({type:gL,selectors:[["app-conference"]],decls:6,vars:0,consts:[[1,"primaryColor",2,"height","400px"],[1,"row","col-12","primaryColor"]],template:function(t,e){1&t&&(Va(0,"div",0),ja(1,"div",1),ja(2,"main"),ja(3,"h1"),Ss(4,"Zoom Angular Web SDK"),Ua(),Ua(),Ua(),Va(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}"]}),gL);function _L(t,e){if(1&t){var n=za();Ba(0),ja(1,"div",9),ja(2,"div",10),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya().navigateSponsor(t)})),Va(3,"img",11),Ua(),Ua(),ja(4,"div",12),ja(5,"div",13),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya().navigateSponsor(t)})),Va(6,"img",11),Ua(),Ua(),Ha()}if(2&t){var r=e.$implicit;Ci(3),La("src",r.sponsor_logo,ei),Ci(3),La("src",r.sponsor_logo,ei)}}function wL(t,e){if(1&t){var n=za();Ba(0),ja(1,"div",14),ja(2,"div",10),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya().navigateSponsor(t)})),Va(3,"img",11),Ua(),Ua(),ja(4,"div",12),ja(5,"div",13),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya().navigateSponsor(t)})),Va(6,"img",11),Ua(),Ua(),Ha()}if(2&t){var r=e.$implicit;Ci(3),La("src",r.sponsor_logo,ei),Ci(3),La("src",r.sponsor_logo,ei)}}var kL,CL,SL=((CL=function(){function t(e,n,r,i){_classCallCheck(this,t),this.authService=e,this.eventService=n,this.localStorageService=r,this.router=i,this.mainSponsorStore=[],this.subSponsorStore=[]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.eventService.getAllSponsors().then((function(e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=(iF[t[e+0]]+iF[t[e+1]]+iF[t[e+2]]+iF[t[e+3]]+"-"+iF[t[e+4]]+iF[t[e+5]]+"-"+iF[t[e+6]]+iF[t[e+7]]+"-"+iF[t[e+8]]+iF[t[e+9]]+"-"+iF[t[e+10]]+iF[t[e+11]]+iF[t[e+12]]+iF[t[e+13]]+iF[t[e+14]]+iF[t[e+15]]).toLowerCase();if(!rF(n))throw TypeError("Stringified UUID is invalid");return n}(r)},uF=((aF=function(){function t(e,n){_classCallCheck(this,t),this.afs=e,this.router=n}return _createClass(t,[{key:"getAllNetworkingRooms",value:function(){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.afs.collection("networkingRooms").snapshotChanges());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"updateUserCount",value:function(t,e){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function n(){var r=this;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,cy.firestore().runTransaction((function(n){return Object(sy.__awaiter)(r,void 0,void 0,regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",n.get(cy.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s")).then((function(r){var i=r.data()[t];if(i[1]+=e,i[1]<=0){if("static-1"==t||"static-2"==t||"static-3"==t)return;n.update(cy.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s"),_defineProperty({},t,cy.firestore.FieldValue.delete()))}else n.update(cy.firestore().collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s"),_defineProperty({},t,i))})));case 1:case"end":return r.stop()}}),r)})))})).then((function(t){console.log("Transaction completed!")}));case 2:case"end":return n.stop()}}),n)})))}},{key:"getRoomCount",value:function(t){var e=this;return new Promise((function(n,r){e.afs.collection("networkingRooms").doc("QN4lbiXxd6aCeD9mno9s").get().subscribe((function(e){var r=e.data()[t];n(r[1]<5?"pass":void 0===r[1]?"undefined room":"more than 5")}))}))}},{key:"createNetworkingRoom",value:function(t,e){return this.afs.doc("networkingRooms/QN4lbiXxd6aCeD9mno9s").set(_defineProperty({},t,[e,0]),{merge:!0})}},{key:"getAllUsers",value:function(){return Object(sy.__awaiter)(this,void 0,void 0,regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){e.afs.collection("users").get().subscribe((function(e){t(e)}))})));case 1:case"end":return t.stop()}}),t)})))}}]),t}()).\u0275fac=function(t){return new(t||aF)(Yt(pb),Yt(Ck))},aF.\u0275prov=ft({token:aF,factory:aF.\u0275fac,providedIn:"root"}),aF);function lF(t,e){if(1&t){var n=za();ja(0,"div"),ja(1,"button",45),Ga("click",(function(){return tn(n),Ya().resetFilter()})),Ss(2,"Clear search fields"),Ua(),Ua()}}function cF(t,e){if(1&t){var n=za();ja(0,"div",46),ja(1,"button",47),Ga("click",(function(){return tn(n),Ya().resetFilter()})),Ss(2,"Clear search fields"),Ua(),Ua()}}function hF(t,e){if(1&t&&(ja(0,"div",48),ja(1,"mdb-card",49),Va(2,"mdb-card-img",50),ja(3,"mdb-card-body"),ja(4,"mdb-card-title"),ja(5,"h4"),Ss(6),Ua(),Ua(),ja(7,"mdb-card-text"),Ss(8),Va(9,"br"),Ss(10),Va(11,"br"),Ss(12),Ua(),ja(13,"a",51),Ss(14,"View Profile"),Ua(),Ua(),Ua(),Ua()),2&t){var n=e.$implicit;Ci(2),es("src",null==n?null:n.photoUrl),Ci(4),xs("",n.firstName+" "+n.lastName," "),Ci(2),xs(" Department: ",n.department," "),Ci(2),xs(" Organisation: ",n.organization," "),Ci(2),xs(" Job Title: ",n.jobTitle," "),Ci(1),ns("routerLink","/user-profile/",null==n?null:n.uid,"")}}function dF(t,e){1&t&&(ja(0,"div",52),ja(1,"div",53),ja(2,"span",54),Ss(3,"Loading..."),Ua(),Ua(),Ua())}function fF(t,e){1&t&&Va(0,"img",68)}function pF(t,e){1&t&&Va(0,"img",68)}function vF(t,e){1&t&&Va(0,"img",69)}function gF(t,e){1&t&&Va(0,"img",70)}function mF(t,e){1&t&&Va(0,"img",71)}function yF(t,e){1&t&&Va(0,"img",72)}function bF(t,e){1&t&&Va(0,"img",73)}function _F(t,e){1&t&&(ja(0,"div",74),ja(1,"p",75),Ss(2,"Room Full"),Ua(),Ua())}function wF(t,e){1&t&&Va(0,"img",73)}function kF(t,e){if(1&t){var n=za();Ba(0,55),ja(1,"div",56),ja(2,"div",57),Ga("click",(function(){tn(n);var t=e.$implicit;return Ya().navigateToRoom(t.roomId)})),Pa(3,fF,1,0,"img",58),Pa(4,pF,1,0,"img",58),Pa(5,vF,1,0,"img",59),Pa(6,gF,1,0,"img",60),Pa(7,mF,1,0,"img",61),Pa(8,yF,1,0,"img",62),Pa(9,bF,1,0,"img",63),Pa(10,_F,3,0,"div",64),Pa(11,wF,1,0,"img",65),ja(12,"div",66),Ss(13),Ua(),ja(14,"div",67),Ss(15),Ua(),Ua(),Ua(),Ha()}if(2&t){var r=e.$implicit;La("ngSwitch",r.count),Ci(3),La("ngSwitchCase",-1),Ci(1),La("ngSwitchCase",0),Ci(1),La("ngSwitchCase",1),Ci(1),La("ngSwitchCase",2),Ci(1),La("ngSwitchCase",3),Ci(1),La("ngSwitchCase",4),Ci(1),La("ngSwitchCase",5),Ci(1),La("ngSwitchCase",5),Ci(3),Es(r.roomName),Ci(2),xs("",r.count,"/5")}}function CF(t,e){1&t&&(ja(0,"mdb-error"),Ss(1," Please input a valid room name. "),Ua())}function SF(t,e){1&t&&Va(0,"mdb-success")}var EF,xF,TF=((EF=function(){function t(e,n,r){_classCallCheck(this,t),this.apiService=e,this.networkService=n,this.router=r,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=[]}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this;this.getAllRooms(),this.getAllUsers().then((function(){t.users.lengtht.users.length&&(e=t.users.length-t.visibleUsersOnInfiniteScroll.length);for(var r=n;r1?e-1:0),r=1;r(new Date).getTime())t.presenting=!0;else if((1e3*t.event.start_time.seconds<(new Date).getTime()&&1e3*t.event.end_time.seconds<(new Date).getTime()||1e3*t.event.start_time.seconds>(new Date).getTime())&&(t.presenting=!1,t.event.vod_links)){t.activeLink=t.sanitizer.bypassSecurityTrustResourceUrl(t.event.vod_links[0].src);var o,a=_createForOfIteratorHelper(t.event.vod_links);try{for(a.s();!(o=a.n()).done;){var s=o.value;console.log(s);var u=new XF(t.sanitizer.bypassSecurityTrustResourceUrl(s.src),s.thumbnail,!1);t.vodPlaylist.push(u)}}catch(l){a.e(l)}finally{a.f()}}}))}},{key:"changeMainEmbedVideo",value:function(t){this.activeLink=t.src;for(var e=0;e0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(t){if(0===this.toRespond.length){var e=[t].concat(_toConsumableArray(this.values));this.project?this._tryProject(e):this.destination.next(e)}}},{key:"_tryProject",value:function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(j),cj=function(){function t(e){_classCallCheck(this,t),this.predicate=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new hj(t,this.predicate))}}]),t}(),hj=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t)).predicate=r,i.skipping=!0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)}},{key:"tryCallPredicate",value:function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(n){this.destination.error(n)}}}]),n}(v);function dj(t){return null==t}function fj(t){return"function"==typeof t.set}function pj(t,e){return fj(e)?e:t.ref(e)}function vj(t,e){if("string"==typeof t)return e.stringCase();if(fj(t))return e.firebaseCase();if("function"==typeof t.exportVal)return e.snapshotCase();throw new Error("Expects a string, snapshot, or reference. Got: "+typeof t)}function gj(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"on",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Um;return new k((function(i){var o;return o=t[n](e,(function(t,e){r.schedule((function(){i.next({snapshot:t,prevKey:e})})),"once"===n&&r.schedule((function(){return i.complete()}))}),(function(t){r.schedule((function(){return i.error(t)}))})),"on"===n?{unsubscribe:function(){null!=o&&t.off(e,o)}}:{unsubscribe:function(){}}})).pipe(U((function(t){var n=t.snapshot,r=t.prevKey,i=null;return n.exists()&&(i=n.key),{type:e,payload:n,prevKey:r,key:i}})),rt())}function mj(t,e){for(var n=t.length,r=0;r-1){var u=t[o-1];(u&&u.key||null)!==r&&(t=t.filter((function(t){return t.payload.key!==n.key}))).splice(a,0,e)}else{if(null==r)return[e].concat(_toConsumableArray(t));(t=t.slice()).splice(a,0,e)}return t;case"child_removed":return t.filter((function(t){return t.payload.key!==n.key}));case"child_changed":return t.map((function(t){return t.payload.key===i?e:t}));case"child_moved":if(o>-1){var l=t.splice(o,1)[0];return(t=t.slice()).splice(a,0,l),t}return t;default:return t}}function bj(t){return(dj(t)||0===t.length)&&(t=["child_added","child_removed","child_changed","child_moved"]),t}function _j(t,e,n){return function(t,e,n){return gj(t,"value","once",n).pipe(gb((function(r){var i=[Tm(r)];return e.forEach((function(e){return i.push(gj(t,e,"on",n))})),X.apply(void 0,i).pipe(dy(yj,[]))})),(function(t){return t.lift(new yS(void 0,void 0))}))}(t,e=bj(e),n)}function wj(t,e,n){return X.apply(void 0,_toConsumableArray((e=bj(e)).map((function(e){return gj(t,e,"on",n)}))))}function kj(t,e){return function(n,r){return vj(n,{stringCase:function(){return t.child(n)[e](r)},firebaseCase:function(){return n[e](r)},snapshotCase:function(){return n.ref[e](r)}})}}function Cj(t,e){return function(){return gj(t,"value","on",e)}}n("NSPt");var Sj,Ej,xj,Tj,Ij=new Ht("angularfire2.realtimeDatabaseURL"),Oj=((xj=function(){function t(e,n,r,i,o){_classCallCheck(this,t),this.schedulers=new By(o),this.keepUnstableUntilFirst=Hy(this.schedulers),this.database=o.runOutsideAngular((function(){return Ky(e,o,n).database(r||void 0)}))}return _createClass(t,[{key:"list",value:function(t,e){var n=pj(this.database,t),r=n;return e&&(r=e(n)),function(t,e){var n,r=e.schedulers.outsideAngular,i=e.schedulers.ngZone.run((function(){return t.ref}));return{query:t,update:kj(i,"update"),set:kj(i,"set"),push:function(t){return i.push(t)},remove:(n=i,function(t){return t?vj(t,{stringCase:function(){return n.child(t).remove()},firebaseCase:function(){return t.remove()},snapshotCase:function(){return t.ref.remove()}}):n.remove()}),snapshotChanges:function(n){return _j(t,n,r).pipe(e.keepUnstableUntilFirst)},stateChanges:function(n){return wj(t,n,r).pipe(e.keepUnstableUntilFirst)},auditTrail:function(n){return function(t,e,n){return function(t,e,n){return function(t,e){return gj(t,"value","on",e).pipe(U((function(t){var e;return t.payload.forEach((function(t){return e=t.key,!1})),{data:t,lastKeyToLoad:e}})))}(t,n).pipe(function(){for(var t=arguments.length,e=new Array(t),n=0;n>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},u={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&l;u||(h=64,a||(c=64)),r.push(n[o>>2],n[(3&o)<<4|s>>4],n[c],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(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 a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}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!==s&&(r.push(a<<4&240|s>>2),64!==u&&r.push(s<<6&192|u))}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)}}},l=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function c(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]=c(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 f(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}var p=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,v.prototype.create),i}return r.__extends(e,t),e}(Error),v=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 m=/\{\$([^}]+)}/g;function y(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=y(l(o[0])||""),n=y(l(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}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,a=this.chain_[0],s=this.chain_[1],u=this.chain_[2],l=this.chain_[3],c=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=l^s&(u^l),o=1518500249):(i=s^u^l,o=1859775393):r<60?(i=s&u|l&(s|u),o=2400959708):(i=s^u^l,o=3395469782);var h=(a<<5|a>>>27)+i+c+o+n[r]&4294967295;c=l,l=u,u=4294967295&(s<<30|s>>>2),s=a,a=h}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+s&4294967295,this.chain_[2]=this.chain_[2]+u&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+c&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=v,e.FirebaseError=p,e.Sha1=_,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},e.assert=o,e.assertionError=a,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=f,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!f()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return d().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"==typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(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=b(t).claims;return"object"==typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=y,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 a=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(C(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(C(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(C(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]]]);